mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +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
|
@ -184,6 +184,22 @@ class fpa_decl_plugin : public decl_plugin {
|
|||
unsigned mk_id(mpf const & v);
|
||||
void recycled_id(unsigned id);
|
||||
|
||||
virtual bool is_considered_uninterpreted(func_decl * f) {
|
||||
if (f->get_family_id() != get_family_id())
|
||||
return false;
|
||||
switch (f->get_decl_kind())
|
||||
{
|
||||
case OP_FPA_INTERNAL_TO_UBV_UNSPECIFIED:
|
||||
case OP_FPA_INTERNAL_TO_SBV_UNSPECIFIED:
|
||||
case OP_FPA_INTERNAL_TO_REAL_UNSPECIFIED:
|
||||
case OP_FPA_INTERNAL_TO_IEEE_BV_UNSPECIFIED:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public:
|
||||
fpa_decl_plugin();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue