3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-12 06:00:53 +00:00
Nikolaj Bjorner 2021-03-16 05:26:06 -07:00
parent dc5fa89de3
commit cb8c6ffafc
3 changed files with 8 additions and 4 deletions

View file

@ -161,9 +161,9 @@ namespace smt {
}
enode* theory::ensure_enode(expr* e) {
if (!ctx.e_internalized(e)) {
if (!ctx.e_internalized(e))
ctx.internalize(e, is_quantifier(e));
}
ctx.ensure_internalized(e); // make sure theory variables are attached.
enode* n = ctx.get_enode(e);
ctx.mark_as_relevant(n);
return n;