mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 06:03:23 +00:00
adding translation routine to context to address enhancement request #209
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9acaa49a05
commit
32f3bd17fb
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ namespace smt {
|
||||||
asserted_formulas& src_af = m_asserted_formulas;
|
asserted_formulas& src_af = m_asserted_formulas;
|
||||||
asserted_formulas& dst_af = new_ctx->m_asserted_formulas;
|
asserted_formulas& dst_af = new_ctx->m_asserted_formulas;
|
||||||
|
|
||||||
SASSERT(m_base_lvl == 0); // please don't clone me
|
SASSERT(m_base_lvl == 0);
|
||||||
SASSERT(src_af.get_qhead() == src_af.get_num_formulas()); // should be the same.
|
SASSERT(src_af.get_qhead() == src_af.get_num_formulas()); // should be the same.
|
||||||
|
|
||||||
// Copy asserted formulas.
|
// Copy asserted formulas.
|
||||||
|
@ -209,7 +209,7 @@ namespace smt {
|
||||||
else if (e = m_bool_var2expr.get(lit.var(), 0)) {
|
else if (e = m_bool_var2expr.get(lit.var(), 0)) {
|
||||||
result = ::translate(e, m_manager, m);
|
result = ::translate(e, m_manager, m);
|
||||||
if (lit.sign()) {
|
if (lit.sign()) {
|
||||||
result = dst.get_manager().mk_not(result);
|
result = m.mk_not(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue