diff --git a/examples/c++/example.cpp b/examples/c++/example.cpp index 5635e6d12..2753e1475 100644 --- a/examples/c++/example.cpp +++ b/examples/c++/example.cpp @@ -23,7 +23,7 @@ void demorgan() { expr x = c.bool_const("x"); expr y = c.bool_const("y"); - expr conjecture = !(x && y) == (!x || !y); + expr conjecture = (!(x && y)) == (!x || !y); solver s(c); // adding the negation of the conjecture as a constraint.