mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +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:
parent
fd54408629
commit
dae3cd450b
|
@ -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());
|
return b.get_degree() <= 1 && gt_on_var_nex(a, *b.to_mul()[0].e());
|
||||||
case expr_type::SUM:
|
case expr_type::SUM:
|
||||||
SASSERT(b.size() > 1);
|
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:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue