mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 09:44:43 +00:00
properly handle recursive function definitions #898
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3bbe5eceeb
commit
e05cee757b
5 changed files with 12 additions and 32 deletions
|
@ -318,7 +318,7 @@ namespace smt {
|
|||
|
||||
bool model_checker::check_rec_fun(quantifier* q) {
|
||||
TRACE("model_checker", tout << mk_pp(q, m) << "\n";);
|
||||
SASSERT(q->get_num_patterns() == 1);
|
||||
SASSERT(q->get_num_patterns() == 2); // first pattern is the function, second is the body.
|
||||
expr* fn = to_app(q->get_pattern(0))->get_arg(0);
|
||||
SASSERT(is_app(fn));
|
||||
func_decl* f = to_app(fn)->get_decl();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue