We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4f03c7 commit 09aae3bCopy full SHA for 09aae3b
unit/solvers/prop/bdd_expr.cpp
@@ -56,12 +56,12 @@ SCENARIO("bdd_expr", "[core][solver][prop][bdd_expr]")
56
WHEN("It is converted to an exprt")
57
{
58
const exprt result = bdd_expr_converter.as_expr(bdd);
59
- THEN("It is equal to the expression (a & !b) or (!b & a)")
+ THEN("It is equivalent to the expression !(!a || b)")
60
61
- REQUIRE(result.id() == ID_and);
62
- REQUIRE(result.operands().size() == 2);
63
- REQUIRE((result.op0() == a || result.op1() == a));
64
- REQUIRE((result.op0() == not_exprt(b) || result.op1() == not_exprt(b)));
+ const bddt to_compare =
+ bdd_expr_converter.from_expr(not_exprt{or_exprt{not_exprt{a}, b}});
+ REQUIRE(bdd.bdd_xor(to_compare).is_false());
+ REQUIRE(bdd.bdd_xor(to_compare.bdd_not()).is_true());
65
}
66
67
0 commit comments