mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Bugfix for model evaluator and internal, uninterpreted FPA functions.
Fixes #518
This commit is contained in:
parent
cdc8e1303a
commit
778c7fcc64
3 changed files with 21 additions and 1 deletions
|
@ -111,7 +111,7 @@ struct evaluator_cfg : public default_rewriter_cfg {
|
|||
br_status reduce_app(func_decl * f, unsigned num, expr * const * args, expr_ref & result, proof_ref & result_pr) {
|
||||
result_pr = 0;
|
||||
family_id fid = f->get_family_id();
|
||||
if (fid == null_family_id && num == 0) {
|
||||
if (num == 0 && (fid == null_family_id || m().get_plugin(f->get_family_id())->is_considered_uninterpreted(f))) {
|
||||
expr * val = m_model.get_const_interp(f);
|
||||
if (val != 0) {
|
||||
result = val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue