3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

fix relevancy bug for recfun

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-01-30 07:19:57 -08:00
parent 39bfdbd8c0
commit 657ed4db7a
5 changed files with 14 additions and 4 deletions

View file

@ -296,9 +296,12 @@ namespace smt {
}
literal theory_recfun::mk_literal(expr* e) {
bool is_not = m.is_not(e, e);
ctx.internalize(e, false);
literal lit = ctx.get_literal(e);
ctx.mark_as_relevant(lit);
if (is_not)
lit.neg();
return lit;
}