mirror of
https://github.com/Z3Prover/z3
synced 2025-05-13 18:54:43 +00:00
add checks for flipping externals / assumptions in model converter, fix scc converter bug
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
caaad8825d
commit
aeabdb4aae
5 changed files with 31 additions and 7 deletions
|
@ -182,7 +182,7 @@ namespace sat {
|
|||
literal l(v, false);
|
||||
literal r = roots[v];
|
||||
SASSERT(v != r.var());
|
||||
if (m_solver.is_external(v) && !m_solver.set_root(l, r)) {
|
||||
if (m_solver.is_external(v) || !m_solver.set_root(l, r)) {
|
||||
// cannot really eliminate v, since we have to notify extension of future assignments
|
||||
m_solver.mk_bin_clause(~l, r, false);
|
||||
m_solver.mk_bin_clause(l, ~r, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue