\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot y \le -4.28824894235068545 \cdot 10^{303} \lor \neg \left(x \cdot y - z \cdot y \le -4.7564680486971018 \cdot 10^{-95} \lor \neg \left(x \cdot y - z \cdot y \le 6.6450334734924226 \cdot 10^{-297}\right) \land x \cdot y - z \cdot y \le 6.61588088234635616 \cdot 10^{208}\right):\\
\;\;\;\;y \cdot \left(\left(x - z\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y - z \cdot y\right) \cdot t\\
\end{array}double f(double x, double y, double z, double t) {
double r527181 = x;
double r527182 = y;
double r527183 = r527181 * r527182;
double r527184 = z;
double r527185 = r527184 * r527182;
double r527186 = r527183 - r527185;
double r527187 = t;
double r527188 = r527186 * r527187;
return r527188;
}
double f(double x, double y, double z, double t) {
double r527189 = x;
double r527190 = y;
double r527191 = r527189 * r527190;
double r527192 = z;
double r527193 = r527192 * r527190;
double r527194 = r527191 - r527193;
double r527195 = -4.2882489423506854e+303;
bool r527196 = r527194 <= r527195;
double r527197 = -4.756468048697102e-95;
bool r527198 = r527194 <= r527197;
double r527199 = 6.645033473492423e-297;
bool r527200 = r527194 <= r527199;
double r527201 = !r527200;
double r527202 = 6.615880882346356e+208;
bool r527203 = r527194 <= r527202;
bool r527204 = r527201 && r527203;
bool r527205 = r527198 || r527204;
double r527206 = !r527205;
bool r527207 = r527196 || r527206;
double r527208 = r527189 - r527192;
double r527209 = t;
double r527210 = r527208 * r527209;
double r527211 = r527190 * r527210;
double r527212 = r527194 * r527209;
double r527213 = r527207 ? r527211 : r527212;
return r527213;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 7.1 |
|---|---|
| Target | 3.1 |
| Herbie | 0.7 |
if (- (* x y) (* z y)) < -4.2882489423506854e+303 or -4.756468048697102e-95 < (- (* x y) (* z y)) < 6.645033473492423e-297 or 6.615880882346356e+208 < (- (* x y) (* z y)) Initial program 22.6
rmApplied distribute-rgt-out--22.6
Applied associate-*l*1.7
if -4.2882489423506854e+303 < (- (* x y) (* z y)) < -4.756468048697102e-95 or 6.645033473492423e-297 < (- (* x y) (* z y)) < 6.615880882346356e+208Initial program 0.3
Final simplification0.7
herbie shell --seed 2020047 +o rules:numerics
(FPCore (x y z t)
:name "Linear.Projection:inverseInfinitePerspective from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -9.231879582886777e-80) (* (* y t) (- x z)) (if (< t 2.543067051564877e+83) (* y (* t (- x z))) (* (* y (- x z)) t)))
(* (- (* x y) (* z y)) t))