3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

avoid units

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-10-11 19:33:39 -07:00
parent 2af713e4db
commit d7b82366c6

View file

@ -98,6 +98,8 @@ namespace sls {
sat::literal l = to_literal(p);
SASSERT(ctx.is_true(l));
lits.push_back(~l);
if (ctx.is_unit(l))
continue;
if (ctx.rand(++n) == 0)
flit = l;
}