mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
FPA API bugfix
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
c2b5b6a36b
commit
72dbb2a513
|
@ -3788,19 +3788,6 @@ namespace Microsoft.Z3
|
||||||
return new FPExpr(this, Native.Z3_mk_fpa_convert(this.nCtx, s.NativeObject, rm.NativeObject, t.NativeObject));
|
return new FPExpr(this, Native.Z3_mk_fpa_convert(this.nCtx, s.NativeObject, rm.NativeObject, t.NativeObject));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Conversion of a floating point term to a bit-vector term in IEEE754 format.
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// The size of the resulting bit-vector is automatically determined.
|
|
||||||
/// </remarks>
|
|
||||||
/// <param name="t">floating point term</param>
|
|
||||||
public FPExpr MkFPToIEEEBV(FPExpr t)
|
|
||||||
{
|
|
||||||
Contract.Ensures(Contract.Result<FPNum>() != null);
|
|
||||||
return new FPExpr(this, Native.Z3_mk_fpa_to_ieee_bv(this.nCtx, t.NativeObject));
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Miscellaneous
|
#region Miscellaneous
|
||||||
|
|
|
@ -73,7 +73,7 @@ public:
|
||||||
SASSERT(m_bv_util.is_bv(sign) && m_bv_util.get_bv_size(sign) == 1);
|
SASSERT(m_bv_util.is_bv(sign) && m_bv_util.get_bv_size(sign) == 1);
|
||||||
SASSERT(m_bv_util.is_bv(significand));
|
SASSERT(m_bv_util.is_bv(significand));
|
||||||
SASSERT(m_bv_util.is_bv(exponent));
|
SASSERT(m_bv_util.is_bv(exponent));
|
||||||
result = m.mk_app(m_util.get_family_id(), OP_FLOAT_FP, sign, significand, exponent);
|
result = m.mk_app(m_util.get_family_id(), OP_FLOAT_TO_FP, sign, significand, exponent);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mk_eq(expr * a, expr * b, expr_ref & result);
|
void mk_eq(expr * a, expr * b, expr_ref & result);
|
||||||
|
|
Loading…
Reference in a new issue