
(FPCore (x y z) :precision binary64 (- (fma x y z) (+ 1.0 (+ (* x y) z))))
double code(double x, double y, double z) {
return fma(x, y, z) - (1.0 + ((x * y) + z));
}
function code(x, y, z) return Float64(fma(x, y, z) - Float64(1.0 + Float64(Float64(x * y) + z))) end
code[x_, y_, z_] := N[(N[(x * y + z), $MachinePrecision] - N[(1.0 + N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, z\right) - \left(1 + \left(x \cdot y + z\right)\right)
\end{array}
herbie shell --seed 2024186 -o setup:simplify
(FPCore (x y z)
:name "simple fma test"
:precision binary64
:alt
(! :herbie-platform default -1)
(- (fma x y z) (+ 1.0 (+ (* x y) z))))
Please file a bug report with this information.
| compile-specs: Unknown operator fma | L | C | |
|---|---|---|---|
| rival-compile | /home/nightlies/rival/main/eval/compile.rkt | 98 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/contract/private/arrow-val-first.rkt | 486 | 18 |
| make-search-func | /home/nightlies/herbie/artem-popl-eval/src/sampling.rkt | 129 | 0 |
| sample-points | /home/nightlies/herbie/artem-popl-eval/src/sampling.rkt | 248 | 0 |
| setup-context! | /home/nightlies/herbie/artem-popl-eval/src/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/artem-popl-eval/src/sandbox.rkt | 166 | 0 |
| (unnamed) | /home/nightlies/herbie/artem-popl-eval/src/sandbox.rkt | 260 | 6 |
| (unnamed) | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/engine.rkt | 42 | 24 |