
(FPCore (x y z t) :precision binary64 (+ x (/ (* y (- z x)) t)))
double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y * (z - x)) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
def code(x, y, z, t): return x + ((y * (z - x)) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(y * Float64(z - x)) / t)) end
function tmp = code(x, y, z, t) tmp = x + ((y * (z - x)) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - x\right)}{t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ x (/ (* y (- z x)) t)))
double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x + ((y * (z - x)) / t)
end function
public static double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
def code(x, y, z, t): return x + ((y * (z - x)) / t)
function code(x, y, z, t) return Float64(x + Float64(Float64(y * Float64(z - x)) / t)) end
function tmp = code(x, y, z, t) tmp = x + ((y * (z - x)) / t); end
code[x_, y_, z_, t_] := N[(x + N[(N[(y * N[(z - x), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - x\right)}{t}
\end{array}
(FPCore (x y z t) :precision binary64 (fma (/ y t) (- z x) x))
double code(double x, double y, double z, double t) {
return fma((y / t), (z - x), x);
}
function code(x, y, z, t) return fma(Float64(y / t), Float64(z - x), x) end
code[x_, y_, z_, t_] := N[(N[(y / t), $MachinePrecision] * N[(z - x), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\frac{y}{t}, z - x, x\right)
\end{array}
Initial program 92.4%
lift--.f64N/A
lift-*.f64N/A
remove-double-negN/A
remove-double-negN/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6498.1
Applied rewrites98.1%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (fma z (/ y t) x))) (if (<= z -4.2e-38) t_1 (if (<= z 1.7e-5) (fma (- (/ x t)) y x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = fma(z, (y / t), x);
double tmp;
if (z <= -4.2e-38) {
tmp = t_1;
} else if (z <= 1.7e-5) {
tmp = fma(-(x / t), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = fma(z, Float64(y / t), x) tmp = 0.0 if (z <= -4.2e-38) tmp = t_1; elseif (z <= 1.7e-5) tmp = fma(Float64(-Float64(x / t)), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -4.2e-38], t$95$1, If[LessEqual[z, 1.7e-5], N[((-N[(x / t), $MachinePrecision]) * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \frac{y}{t}, x\right)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-5}:\\
\;\;\;\;\mathsf{fma}\left(-\frac{x}{t}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.20000000000000026e-38 or 1.7e-5 < z Initial program 94.1%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f6489.1
Applied rewrites89.1%
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-fma.f6492.6
Applied rewrites92.6%
if -4.20000000000000026e-38 < z < 1.7e-5Initial program 90.5%
lift--.f64N/A
lift-*.f64N/A
remove-double-negN/A
remove-double-negN/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6490.4
Applied rewrites90.4%
Final simplification91.5%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (fma z (/ y t) x))) (if (<= z -1.35e-37) t_1 (if (<= z 2.5e-5) (fma (/ y t) (- x) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = fma(z, (y / t), x);
double tmp;
if (z <= -1.35e-37) {
tmp = t_1;
} else if (z <= 2.5e-5) {
tmp = fma((y / t), -x, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = fma(z, Float64(y / t), x) tmp = 0.0 if (z <= -1.35e-37) tmp = t_1; elseif (z <= 2.5e-5) tmp = fma(Float64(y / t), Float64(-x), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -1.35e-37], t$95$1, If[LessEqual[z, 2.5e-5], N[(N[(y / t), $MachinePrecision] * (-x) + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \frac{y}{t}, x\right)\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-5}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{t}, -x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.35000000000000008e-37 or 2.50000000000000012e-5 < z Initial program 94.1%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f6489.1
Applied rewrites89.1%
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-fma.f6492.6
Applied rewrites92.6%
if -1.35000000000000008e-37 < z < 2.50000000000000012e-5Initial program 90.5%
lift--.f64N/A
lift-*.f64N/A
remove-double-negN/A
remove-double-negN/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6496.1
Applied rewrites96.1%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6490.4
Applied rewrites90.4%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (fma z (/ y t) x))) (if (<= z -4.2e-38) t_1 (if (<= z 1.7e-5) (* (/ x t) (- t y)) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = fma(z, (y / t), x);
double tmp;
if (z <= -4.2e-38) {
tmp = t_1;
} else if (z <= 1.7e-5) {
tmp = (x / t) * (t - y);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = fma(z, Float64(y / t), x) tmp = 0.0 if (z <= -4.2e-38) tmp = t_1; elseif (z <= 1.7e-5) tmp = Float64(Float64(x / t) * Float64(t - y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -4.2e-38], t$95$1, If[LessEqual[z, 1.7e-5], N[(N[(x / t), $MachinePrecision] * N[(t - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \frac{y}{t}, x\right)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-5}:\\
\;\;\;\;\frac{x}{t} \cdot \left(t - y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.20000000000000026e-38 or 1.7e-5 < z Initial program 94.1%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f6489.1
Applied rewrites89.1%
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-fma.f6492.6
Applied rewrites92.6%
if -4.20000000000000026e-38 < z < 1.7e-5Initial program 90.5%
lift--.f64N/A
lift-*.f64N/A
remove-double-negN/A
remove-double-negN/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6490.4
Applied rewrites90.4%
Taylor expanded in t around 0
lower-/.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
*-commutativeN/A
distribute-lft-out--N/A
lower-*.f64N/A
lower--.f6472.7
Applied rewrites72.7%
lift--.f64N/A
lift-*.f64N/A
clear-numN/A
associate-/r/N/A
lift-*.f64N/A
associate-*r*N/A
associate-*l/N/A
*-lft-identityN/A
lower-*.f64N/A
lower-/.f6484.2
Applied rewrites84.2%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (* y (/ (- z x) t)))) (if (<= y -5.5e+34) t_1 (if (<= y 2.65e+74) (fma z (/ y t) x) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = y * ((z - x) / t);
double tmp;
if (y <= -5.5e+34) {
tmp = t_1;
} else if (y <= 2.65e+74) {
tmp = fma(z, (y / t), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = Float64(y * Float64(Float64(z - x) / t)) tmp = 0.0 if (y <= -5.5e+34) tmp = t_1; elseif (y <= 2.65e+74) tmp = fma(z, Float64(y / t), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(y * N[(N[(z - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+34], t$95$1, If[LessEqual[y, 2.65e+74], N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - x}{t}\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{+74}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{y}{t}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.4999999999999996e34 or 2.6499999999999999e74 < y Initial program 86.6%
Taylor expanded in y around inf
div-subN/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f6486.7
Applied rewrites86.7%
if -5.4999999999999996e34 < y < 2.6499999999999999e74Initial program 97.1%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f6484.2
Applied rewrites84.2%
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-fma.f6486.3
Applied rewrites86.3%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (fma z (/ y t) x))) (if (<= z 9e-280) t_1 (if (<= z 4e-109) (- (* y (/ x t))) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = fma(z, (y / t), x);
double tmp;
if (z <= 9e-280) {
tmp = t_1;
} else if (z <= 4e-109) {
tmp = -(y * (x / t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t) t_1 = fma(z, Float64(y / t), x) tmp = 0.0 if (z <= 9e-280) tmp = t_1; elseif (z <= 4e-109) tmp = Float64(-Float64(y * Float64(x / t))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, 9e-280], t$95$1, If[LessEqual[z, 4e-109], (-N[(y * N[(x / t), $MachinePrecision]), $MachinePrecision]), t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \frac{y}{t}, x\right)\\
\mathbf{if}\;z \leq 9 \cdot 10^{-280}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-109}:\\
\;\;\;\;-y \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < 8.9999999999999991e-280 or 4e-109 < z Initial program 92.0%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f6479.5
Applied rewrites79.5%
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-fma.f6486.4
Applied rewrites86.4%
if 8.9999999999999991e-280 < z < 4e-109Initial program 94.2%
lift--.f64N/A
lift-*.f64N/A
remove-double-negN/A
remove-double-negN/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6490.3
Applied rewrites90.3%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6468.1
Applied rewrites68.1%
Taylor expanded in z around 0
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6457.8
Applied rewrites57.8%
lift-neg.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6461.6
Applied rewrites61.6%
Final simplification81.7%
(FPCore (x y z t) :precision binary64 (let* ((t_1 (/ (* t x) t))) (if (<= t -1.95e+71) t_1 (if (<= t 1.05e+59) (* (/ y t) z) t_1))))
double code(double x, double y, double z, double t) {
double t_1 = (t * x) / t;
double tmp;
if (t <= -1.95e+71) {
tmp = t_1;
} else if (t <= 1.05e+59) {
tmp = (y / t) * z;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (t * x) / t
if (t <= (-1.95d+71)) then
tmp = t_1
else if (t <= 1.05d+59) then
tmp = (y / t) * z
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (t * x) / t;
double tmp;
if (t <= -1.95e+71) {
tmp = t_1;
} else if (t <= 1.05e+59) {
tmp = (y / t) * z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t): t_1 = (t * x) / t tmp = 0 if t <= -1.95e+71: tmp = t_1 elif t <= 1.05e+59: tmp = (y / t) * z else: tmp = t_1 return tmp
function code(x, y, z, t) t_1 = Float64(Float64(t * x) / t) tmp = 0.0 if (t <= -1.95e+71) tmp = t_1; elseif (t <= 1.05e+59) tmp = Float64(Float64(y / t) * z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (t * x) / t; tmp = 0.0; if (t <= -1.95e+71) tmp = t_1; elseif (t <= 1.05e+59) tmp = (y / t) * z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t * x), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -1.95e+71], t$95$1, If[LessEqual[t, 1.05e+59], N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t \cdot x}{t}\\
\mathbf{if}\;t \leq -1.95 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+59}:\\
\;\;\;\;\frac{y}{t} \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.9500000000000001e71 or 1.04999999999999992e59 < t Initial program 83.2%
lift--.f64N/A
lift-*.f64N/A
remove-double-negN/A
remove-double-negN/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6485.2
Applied rewrites85.2%
Taylor expanded in t around 0
lower-/.f64N/A
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
*-commutativeN/A
distribute-lft-out--N/A
lower-*.f64N/A
lower--.f6448.5
Applied rewrites48.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f6446.2
Applied rewrites46.2%
if -1.9500000000000001e71 < t < 1.04999999999999992e59Initial program 97.6%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f6449.8
Applied rewrites49.8%
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-*.f6456.1
Applied rewrites56.1%
Final simplification52.6%
(FPCore (x y z t) :precision binary64 (fma z (/ y t) x))
double code(double x, double y, double z, double t) {
return fma(z, (y / t), x);
}
function code(x, y, z, t) return fma(z, Float64(y / t), x) end
code[x_, y_, z_, t_] := N[(z * N[(y / t), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(z, \frac{y}{t}, x\right)
\end{array}
Initial program 92.4%
Taylor expanded in z around inf
lower-/.f64N/A
lower-*.f6472.5
Applied rewrites72.5%
lift-*.f64N/A
lift-/.f64N/A
+-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-fma.f6478.1
Applied rewrites78.1%
(FPCore (x y z t) :precision binary64 (* (/ y t) z))
double code(double x, double y, double z, double t) {
return (y / t) * z;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (y / t) * z
end function
public static double code(double x, double y, double z, double t) {
return (y / t) * z;
}
def code(x, y, z, t): return (y / t) * z
function code(x, y, z, t) return Float64(Float64(y / t) * z) end
function tmp = code(x, y, z, t) tmp = (y / t) * z; end
code[x_, y_, z_, t_] := N[(N[(y / t), $MachinePrecision] * z), $MachinePrecision]
\begin{array}{l}
\\
\frac{y}{t} \cdot z
\end{array}
Initial program 92.4%
Taylor expanded in x around 0
lower-/.f64N/A
lower-*.f6437.1
Applied rewrites37.1%
*-commutativeN/A
associate-/l*N/A
lift-/.f64N/A
lower-*.f6442.2
Applied rewrites42.2%
Final simplification42.2%
(FPCore (x y z t) :precision binary64 (- x (+ (* x (/ y t)) (* (- z) (/ y t)))))
double code(double x, double y, double z, double t) {
return x - ((x * (y / t)) + (-z * (y / t)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x - ((x * (y / t)) + (-z * (y / t)))
end function
public static double code(double x, double y, double z, double t) {
return x - ((x * (y / t)) + (-z * (y / t)));
}
def code(x, y, z, t): return x - ((x * (y / t)) + (-z * (y / t)))
function code(x, y, z, t) return Float64(x - Float64(Float64(x * Float64(y / t)) + Float64(Float64(-z) * Float64(y / t)))) end
function tmp = code(x, y, z, t) tmp = x - ((x * (y / t)) + (-z * (y / t))); end
code[x_, y_, z_, t_] := N[(x - N[(N[(x * N[(y / t), $MachinePrecision]), $MachinePrecision] + N[((-z) * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \left(x \cdot \frac{y}{t} + \left(-z\right) \cdot \frac{y}{t}\right)
\end{array}
herbie shell --seed 2024219
(FPCore (x y z t)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, D"
:precision binary64
:alt
(! :herbie-platform default (- x (+ (* x (/ y t)) (* (- z) (/ y t)))))
(+ x (/ (* y (- z x)) t)))