3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-16 02:00:00 +00:00

fix: correct misleading API comments in fp.go and JavaExample.java (#9003)

* Initial plan

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

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
Copilot 2026-03-15 12:08:59 -07:00 committed by GitHub
parent bebad7da50
commit 6893674392
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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))
}