3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 00:55:31 +00:00
This commit is contained in:
Jakob Rath 2023-07-21 12:45:46 +02:00
parent e1bb0f5377
commit e7c9112beb
2 changed files with 6 additions and 3 deletions

View file

@ -610,8 +610,11 @@ namespace polysat {
SASSERT(!has_sub(x));
SASSERT(!has_sub(y));
if (width(x) == width(y)) {
if (!merge_base(x, y, dep))
if (!merge_base(x, y, dep)) {
xs.clear();
ys.clear();
return false;
}
}
else if (width(x) > width(y)) {
// need to split x according to y
@ -785,7 +788,7 @@ namespace polysat {
continue;
pdd const body = a.is_one() ? (m.mk_var(x) - p) : (m.mk_var(x) + p);
// c is either x = body or x != body, depending on polarity
LOG("Equation from lit(" << c.blit() << ") " << c << ": v" << x << " = " << body);
LOG("Equation from lit(" << c.blit() << ") " << c << ": v" << x << (c.is_positive() ? " = " : " != ") << body);
if (!add_equation(x, body, c.blit())) {
SASSERT(is_conflict());
return;

View file

@ -318,7 +318,7 @@ void tst_slicing() {
using namespace polysat;
test_slicing::test1();
test_slicing::test2();
// test_slicing::test3();
test_slicing::test3();
test_slicing::test4();
test_slicing::test5();
test_slicing::test6();