3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

Fix order of arguments when normalizing a conjunction

This commit is contained in:
Arie Gurfinkel 2018-06-28 14:21:32 -04:00
parent a8c9e3a837
commit a63e4b48ca

View file

@ -666,9 +666,6 @@ namespace {
flatten_and(out, v);
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) {
// remove redundant inequalities
simplify_bounds(v);
@ -680,6 +677,8 @@ namespace {
v.reset();
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",
tout << "Normalized:\n"