mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 21:03:39 +00:00
Fix order of arguments when normalizing a conjunction
This commit is contained in:
parent
a8c9e3a837
commit
a63e4b48ca
1 changed files with 2 additions and 3 deletions
|
@ -666,9 +666,6 @@ namespace {
|
||||||
flatten_and(out, v);
|
flatten_and(out, v);
|
||||||
|
|
||||||
if (v.size() > 1) {
|
if (v.size() > 1) {
|
||||||
// sort arguments of the top-level and
|
|
||||||
std::stable_sort(v.c_ptr(), v.c_ptr() + v.size(), ast_lt_proc());
|
|
||||||
|
|
||||||
if (use_simplify_bounds) {
|
if (use_simplify_bounds) {
|
||||||
// remove redundant inequalities
|
// remove redundant inequalities
|
||||||
simplify_bounds(v);
|
simplify_bounds(v);
|
||||||
|
@ -680,6 +677,8 @@ namespace {
|
||||||
v.reset();
|
v.reset();
|
||||||
egraph.to_lits(v);
|
egraph.to_lits(v);
|
||||||
}
|
}
|
||||||
|
// sort arguments of the top-level and
|
||||||
|
std::stable_sort(v.c_ptr(), v.c_ptr() + v.size(), ast_lt_proc());
|
||||||
|
|
||||||
TRACE("spacer_normalize",
|
TRACE("spacer_normalize",
|
||||||
tout << "Normalized:\n"
|
tout << "Normalized:\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue