mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
fix #5252
This commit is contained in:
parent
55f8ad068f
commit
4f9ad28a05
|
@ -18,6 +18,7 @@ Revision History:
|
||||||
--*/
|
--*/
|
||||||
#include "ast/ast_pp.h"
|
#include "ast/ast_pp.h"
|
||||||
#include "ast/ast_util.h"
|
#include "ast/ast_util.h"
|
||||||
|
#include "ast/recfun_decl_plugin.h"
|
||||||
#include "ast/rewriter/rewriter_types.h"
|
#include "ast/rewriter/rewriter_types.h"
|
||||||
#include "ast/rewriter/bool_rewriter.h"
|
#include "ast/rewriter/bool_rewriter.h"
|
||||||
#include "ast/rewriter/arith_rewriter.h"
|
#include "ast/rewriter/arith_rewriter.h"
|
||||||
|
@ -374,6 +375,8 @@ struct evaluator_cfg : public default_rewriter_cfg {
|
||||||
|
|
||||||
var_subst vs(m, false);
|
var_subst vs(m, false);
|
||||||
result = vs(fi->get_interp(), num, args);
|
result = vs(fi->get_interp(), num, args);
|
||||||
|
if (!is_ground(result.get()) && recfun::util(m).is_defined(f))
|
||||||
|
return BR_DONE;
|
||||||
return BR_REWRITE_FULL;
|
return BR_REWRITE_FULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue