Skip to content

Commit

Permalink
handle constants
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Aug 27, 2021
1 parent 09696e9 commit 8f306c6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/model/model_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ void model_core::add_lambda_defs() {
quantifier* q = m.is_lambda_def(f);
if (!q)
continue;
func_interp* fi = alloc(func_interp, m, f->get_arity());
fi->set_else(q);
register_decl(f, fi);
if (f->get_arity() > 0) {
func_interp* fi = alloc(func_interp, m, f->get_arity());
fi->set_else(q);
register_decl(f, fi);
}
else
register_decl(f, q);
}
}

0 comments on commit 8f306c6

Please sign in to comment.