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:
parent
39bfdbd8c0
commit
657ed4db7a
5 changed files with 14 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue