3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 11:37:54 +00:00

have propagate return whether it did something

This commit is contained in:
Nikolaj Bjorner 2024-01-11 11:45:05 -08:00
parent 4a2217a3e8
commit a2df3cb828
7 changed files with 45 additions and 42 deletions

View file

@ -80,16 +80,17 @@ namespace polysat {
}
void umul_ovfl_constraint::propagate(core& c, lbool value, dependency const& dep) {
bool umul_ovfl_constraint::propagate(core& c, lbool value, dependency const& dep) {
if (value == l_undef)
return;
return false;
auto& C = c.cs();
auto p1 = c.subst(p());
auto q1 = c.subst(q());
if (narrow_bound(c, value == l_true, p(), q(), p1, q1, dep))
return;
return true;
if (narrow_bound(c, value == l_true, q(), p(), q1, p1, dep))
return;
return true;
return false;
}
/**