3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 21:38:44 +00:00

add a constant to the context trail

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2018-11-05 22:30:08 -08:00 committed by Lev Nachmanson
parent fde1cd23d5
commit 025e4b90ca

View file

@ -411,6 +411,7 @@ class theory_lra::imp {
TRACE("arith", tout << "add " << cnst << "\n";);
mk_enode(cnst);
theory_var v = mk_var(cnst);
ctx().push_trail(value_trail<smt::context, lp::var_index>(var));
var = m_solver->add_var(v, true);
m_theory_var2var_index.setx(v, var, UINT_MAX);
m_var_index2theory_var.setx(var, v, UINT_MAX);