\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot y \le -8.274186156879764240774351835854573918832 \cdot 10^{226}:\\
\;\;\;\;\left(y \cdot t\right) \cdot \left(x - z\right)\\
\mathbf{elif}\;x \cdot y - z \cdot y \le -4.819622087448949409690444355976373823692 \cdot 10^{-247}:\\
\;\;\;\;\left(x \cdot y - z \cdot y\right) \cdot t\\
\mathbf{elif}\;x \cdot y - z \cdot y \le 1.232937047876378353025506941095613328966 \cdot 10^{-242}:\\
\;\;\;\;\left(y \cdot t\right) \cdot \left(x - z\right)\\
\mathbf{elif}\;x \cdot y - z \cdot y \le 1.77758114352811529361559523864976797551 \cdot 10^{299}:\\
\;\;\;\;\left(x \cdot y - z \cdot y\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(t \cdot \left(x - z\right)\right)\\
\end{array}double f(double x, double y, double z, double t) {
double r496117 = x;
double r496118 = y;
double r496119 = r496117 * r496118;
double r496120 = z;
double r496121 = r496120 * r496118;
double r496122 = r496119 - r496121;
double r496123 = t;
double r496124 = r496122 * r496123;
return r496124;
}
double f(double x, double y, double z, double t) {
double r496125 = x;
double r496126 = y;
double r496127 = r496125 * r496126;
double r496128 = z;
double r496129 = r496128 * r496126;
double r496130 = r496127 - r496129;
double r496131 = -8.274186156879764e+226;
bool r496132 = r496130 <= r496131;
double r496133 = t;
double r496134 = r496126 * r496133;
double r496135 = r496125 - r496128;
double r496136 = r496134 * r496135;
double r496137 = -4.8196220874489494e-247;
bool r496138 = r496130 <= r496137;
double r496139 = r496130 * r496133;
double r496140 = 1.2329370478763784e-242;
bool r496141 = r496130 <= r496140;
double r496142 = 1.7775811435281153e+299;
bool r496143 = r496130 <= r496142;
double r496144 = r496133 * r496135;
double r496145 = r496126 * r496144;
double r496146 = r496143 ? r496139 : r496145;
double r496147 = r496141 ? r496136 : r496146;
double r496148 = r496138 ? r496139 : r496147;
double r496149 = r496132 ? r496136 : r496148;
return r496149;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 7.0 |
|---|---|
| Target | 3.1 |
| Herbie | 0.3 |
if (- (* x y) (* z y)) < -8.274186156879764e+226 or -4.8196220874489494e-247 < (- (* x y) (* z y)) < 1.2329370478763784e-242Initial program 21.6
rmApplied distribute-rgt-out--21.6
Applied associate-*l*0.6
Simplified0.6
rmApplied associate-*r*0.5
if -8.274186156879764e+226 < (- (* x y) (* z y)) < -4.8196220874489494e-247 or 1.2329370478763784e-242 < (- (* x y) (* z y)) < 1.7775811435281153e+299Initial program 0.2
if 1.7775811435281153e+299 < (- (* x y) (* z y)) Initial program 58.5
rmApplied distribute-rgt-out--58.5
Applied associate-*l*0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019326
(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))