3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

build errors

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-01-09 09:03:17 -08:00
parent a18d2a606b
commit f4966795f9
2 changed files with 3 additions and 1 deletions

View file

@ -300,7 +300,7 @@ namespace sat {
lit = lit.sign() ? ~to_root[lit.var()] : to_root[lit.var()];
}
}
if (changed) {
if (changed && (n.is_and() || n.is_xor())) {
std::sort(m_literals.c_ptr() + n.offset(), m_literals.c_ptr() + n.offset() + n.num_children());
}
}

View file

@ -13,6 +13,8 @@
#pragma once
#include "util/region.h"
#include "util/debug.h"
#include <algorithm>
namespace sat {