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 31ec09c commit 0f70d29Copy full SHA for 0f70d29
src/solvers/prop/prop.h
@@ -44,13 +44,20 @@ class propt
44
45
virtual void l_set_to(literalt a, bool value)
46
{
47
- set_equal(a, const_literal(value));
+ if(value)
48
+ lcnf({a});
49
+ else
50
+ lcnf({!a});
51
}
52
53
void l_set_to_true(literalt a)
- { l_set_to(a, true); }
54
+ {
55
56
+ }
57
void l_set_to_false(literalt a)
- { l_set_to(a, false); }
58
59
60
61
62
// constraints
63
void lcnf(literalt l0, literalt l1)
0 commit comments