x \cdot \left(y + 1.0\right)
\mathsf{fma}\left(x, y, x \cdot 1.0\right)double f(double x, double y) {
double r32318465 = x;
double r32318466 = y;
double r32318467 = 1.0;
double r32318468 = r32318466 + r32318467;
double r32318469 = r32318465 * r32318468;
return r32318469;
}
double f(double x, double y) {
double r32318470 = x;
double r32318471 = y;
double r32318472 = 1.0;
double r32318473 = r32318470 * r32318472;
double r32318474 = fma(r32318470, r32318471, r32318473);
return r32318474;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0 |
Initial program 0.0
rmApplied distribute-lft-in0.0
rmApplied fma-def0
Final simplification0
herbie shell --seed 2019163 +o rules:numerics
(FPCore (x y)
:name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, B"
:herbie-target
(+ x (* x y))
(* x (+ y 1.0)))