mirror of
https://github.com/Z3Prover/z3
synced 2025-06-03 21:01:22 +00:00
Added support for patching of models containing toIntegral, max, min.
This commit is contained in:
parent
2c2a77174c
commit
f45fcbe282
1 changed files with 18 additions and 0 deletions
|
@ -384,6 +384,24 @@ class fpa2bv_approx_tactic: public tactic {
|
||||||
mpf_mngr.abs(est_arg_val[0], est_rhs_value);
|
mpf_mngr.abs(est_arg_val[0], est_rhs_value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case OP_FPA_MIN:
|
||||||
|
{
|
||||||
|
mpf_mngr.minimum( arg_val[1], arg_val[2], rhs_value);
|
||||||
|
mpf_mngr.minimum( est_arg_val[1], est_arg_val[2], est_rhs_value);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case OP_FPA_MAX:
|
||||||
|
{
|
||||||
|
mpf_mngr.maximum( arg_val[1], arg_val[2], rhs_value);
|
||||||
|
mpf_mngr.maximum( est_arg_val[1], est_arg_val[2], est_rhs_value);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case OP_FPA_ROUND_TO_INTEGRAL:
|
||||||
|
{
|
||||||
|
mpf_mngr.round_to_integral(rm,arg_val[1],rhs_value);
|
||||||
|
mpf_mngr.round_to_integral(rm,est_arg_val[1],est_rhs_value);
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
NOT_IMPLEMENTED_YET();
|
NOT_IMPLEMENTED_YET();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue