mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
fix bug in translation of pbeq into sat
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
badb32f9ae
commit
354c16454a
5 changed files with 10 additions and 7 deletions
|
@ -571,6 +571,8 @@ struct goal2sat::imp {
|
|||
l.neg();
|
||||
}
|
||||
m_ext->add_at_least(v2, lits, lits.size() - k.get_unsigned());
|
||||
|
||||
|
||||
if (root) {
|
||||
m_result_stack.reset();
|
||||
}
|
||||
|
@ -582,7 +584,8 @@ struct goal2sat::imp {
|
|||
mk_clause(~l, l2);
|
||||
mk_clause(~l1, ~l2, l);
|
||||
m_result_stack.shrink(m_result_stack.size() - t->get_num_args());
|
||||
m_result_stack.push_back(l);
|
||||
m_result_stack.push_back(sign ? ~l : l);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue