3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

fix mutex finding for smt-core: it was returning mutexes for negations of literals

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-10-20 22:13:23 -07:00
parent 881e82e3fa
commit 9cd7b9b4f6
2 changed files with 15 additions and 8 deletions

View file

@ -373,7 +373,7 @@ namespace smt {
expr* n = vars[i];
bool neg = m_manager.is_not(n, n);
if (b_internalized(n)) {
lits.insert(literal(get_bool_var(n), !neg).index());
lits.insert(literal(get_bool_var(n), neg).index());
}
}
while (!lits.empty()) {