nm->integerType(),
"Variable introduced in realToIntInternal pass");
var_eq.push_back(n.eqNode(ret));
- TheoryModel* m = d_preprocContext->getTheoryEngine()->getModel();
- m->addSubstitution(n, ret);
+ // ensure that the original variable is defined to be the returned
+ // one, which is important for models and for incremental solving.
+ std::vector<Expr> args;
+ smt::currentSmtEngine()->defineFunction(
+ n.toExpr(), args, ret.toExpr());
}
}
}
regress0/push-pop/issue2137.min.smt2
regress0/push-pop/issue3915-real-as-int.smt2
regress0/push-pop/quant-fun-proc-unfd.smt2
+ regress0/push-pop/real-as-int-incremental.smt2
regress0/push-pop/simple_unsat_cores.smt2
regress0/push-pop/test.00.cvc
regress0/push-pop/test.01.cvc