LogicCircuits.jl icon indicating copy to clipboard operation
LogicCircuits.jl copied to clipboard

Add back infer_vtree tests

Open khosravipasha opened this issue 3 years ago • 0 comments

This was the removed tests. Currently cannot load logic circuit from psdd files, so would need to go around that (find a sdd to test this on or move the test to ProbCircuits.

    little = load_logic_circuit(zoo_psdd_file("little_4var.psdd")) 
    little_vtree = zoo_vtree("little_4var.vtree")

    inferred = infer_vtree(little)::Vtree
    @test respects_vtree(little, little_vtree)
    @test respects_vtree(little, inferred)

khosravipasha avatar Sep 18 '21 21:09 khosravipasha