mirror of
https://github.com/Z3Prover/z3
synced 2025-06-30 01:48:45 +00:00
FPA: improved error messages for to_fp
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
d1cb2566e4
commit
7a15c41c47
2 changed files with 15 additions and 4 deletions
|
@ -499,8 +499,19 @@ func_decl * float_decl_plugin::mk_to_fp(decl_kind k, unsigned num_parameters, pa
|
|||
symbol name("to_fp");
|
||||
return m_manager->mk_func_decl(name, arity, domain, fp, func_decl_info(m_family_id, k, num_parameters, parameters));
|
||||
}
|
||||
else
|
||||
NOT_IMPLEMENTED_YET();
|
||||
else {
|
||||
m_manager->raise_exception("Unexpected argument combination for (_ to_fp eb sb). Supported argument combinations are: "
|
||||
"((_ BitVec 1) (_ BitVec eb) (_ BitVec sb-1)),"
|
||||
"(_ BitVec (eb+sb)),"
|
||||
"(Real),"
|
||||
"(RoundingMode (_ BitVec (eb+sb))),"
|
||||
"(RoundingMode (_ FloatingPoint eb' sb')),"
|
||||
"(RoundingMode Real Int), and"
|
||||
"(RoundingMode Real)."
|
||||
);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
func_decl * float_decl_plugin::mk_to_fp_unsigned(decl_kind k, unsigned num_parameters, parameter const * parameters,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue