3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00

fix a bug in nex_creator, already fixed in debug branch

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-03-17 14:46:46 -07:00
parent fd54408629
commit dae3cd450b

View file

@ -156,7 +156,12 @@ bool nex_creator::gt_on_var_nex(const nex_var& a, const nex& b) const {
return b.get_degree() <= 1 && gt_on_var_nex(a, *b.to_mul()[0].e());
case expr_type::SUM:
SASSERT(b.size() > 1);
return gt(&a, b.to_sum()[0]);
if(gt(&a, b.to_sum()[0]))
return true;
if (gt(b.to_sum()[0], &a ))
return false;
return true;
default:
UNREACHABLE();
return false;