3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-17 18:43:45 +00:00

fix: correct misleading API comments in fp.go and JavaExample.java

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-15 18:17:57 +00:00
parent b549c50af6
commit ee1ebed1cf
2 changed files with 2 additions and 2 deletions

View file

@ -2345,7 +2345,7 @@ class JavaExample
if (!five.isGround())
throw new TestFailedException();
// a free variable is not ground
// an uninterpreted constant is also ground (no bound variables)
IntExpr x = ctx.mkIntConst("x");
if (!x.isGround())
throw new TestFailedException();

View file

@ -223,7 +223,7 @@ func (c *Context) MkFPNumeralInt64Uint64(sgn bool, exp int64, sig uint64, sort *
return newExpr(c, C.Z3_mk_fpa_numeral_int64_uint64(c.ptr, C.bool(sgn), C.int64_t(exp), C.uint64_t(sig), sort.ptr))
}
// MkFPFMA creates a floating-point fused multiply-add: rm * (t1 * t2) + t3.
// MkFPFMA creates a floating-point fused multiply-add: round((t1 * t2) + t3, rm).
func (c *Context) MkFPFMA(rm, t1, t2, t3 *Expr) *Expr {
return newExpr(c, C.Z3_mk_fpa_fma(c.ptr, rm.ptr, t1.ptr, t2.ptr, t3.ptr))
}