Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3

Percentage Accurate: 84.1% → 95.6%
Time: 10.0s
Alternatives: 15
Speedup: 0.7×

Specification

?
\[\begin{array}{l} \\ \frac{x \cdot \left(y - z\right)}{t - z} \end{array} \]
(FPCore (x y z t) :precision binary64 (/ (* x (- y z)) (- t z)))
double code(double x, double y, double z, double t) {
	return (x * (y - z)) / (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 = (x * (y - z)) / (t - z)
end function
public static double code(double x, double y, double z, double t) {
	return (x * (y - z)) / (t - z);
}
def code(x, y, z, t):
	return (x * (y - z)) / (t - z)
function code(x, y, z, t)
	return Float64(Float64(x * Float64(y - z)) / Float64(t - z))
end
function tmp = code(x, y, z, t)
	tmp = (x * (y - z)) / (t - z);
end
code[x_, y_, z_, t_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x \cdot \left(y - z\right)}{t - z}
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 15 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 84.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{x \cdot \left(y - z\right)}{t - z} \end{array} \]
(FPCore (x y z t) :precision binary64 (/ (* x (- y z)) (- t z)))
double code(double x, double y, double z, double t) {
	return (x * (y - z)) / (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 = (x * (y - z)) / (t - z)
end function
public static double code(double x, double y, double z, double t) {
	return (x * (y - z)) / (t - z);
}
def code(x, y, z, t):
	return (x * (y - z)) / (t - z)
function code(x, y, z, t)
	return Float64(Float64(x * Float64(y - z)) / Float64(t - z))
end
function tmp = code(x, y, z, t)
	tmp = (x * (y - z)) / (t - z);
end
code[x_, y_, z_, t_] := N[(N[(x * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x \cdot \left(y - z\right)}{t - z}
\end{array}

Alternative 1: 95.6% accurate, 0.5× speedup?

\[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;\frac{\left(y - z\right) \cdot x\_m}{t - z} \leq -5 \cdot 10^{-214}:\\ \;\;\;\;\left(z - y\right) \cdot \frac{x\_m}{z - t}\\ \mathbf{else}:\\ \;\;\;\;\frac{z - y}{z - t} \cdot x\_m\\ \end{array} \end{array} \]
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
 :precision binary64
 (*
  x_s
  (if (<= (/ (* (- y z) x_m) (- t z)) -5e-214)
    (* (- z y) (/ x_m (- z t)))
    (* (/ (- z y) (- z t)) x_m))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
	double tmp;
	if ((((y - z) * x_m) / (t - z)) <= -5e-214) {
		tmp = (z - y) * (x_m / (z - t));
	} else {
		tmp = ((z - y) / (z - t)) * x_m;
	}
	return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
    real(8), intent (in) :: x_s
    real(8), intent (in) :: x_m
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if ((((y - z) * x_m) / (t - z)) <= (-5d-214)) then
        tmp = (z - y) * (x_m / (z - t))
    else
        tmp = ((z - y) / (z - t)) * x_m
    end if
    code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
	double tmp;
	if ((((y - z) * x_m) / (t - z)) <= -5e-214) {
		tmp = (z - y) * (x_m / (z - t));
	} else {
		tmp = ((z - y) / (z - t)) * x_m;
	}
	return x_s * tmp;
}
x\_m = math.fabs(x)
x\_s = math.copysign(1.0, x)
def code(x_s, x_m, y, z, t):
	tmp = 0
	if (((y - z) * x_m) / (t - z)) <= -5e-214:
		tmp = (z - y) * (x_m / (z - t))
	else:
		tmp = ((z - y) / (z - t)) * x_m
	return x_s * tmp
x\_m = abs(x)
x\_s = copysign(1.0, x)
function code(x_s, x_m, y, z, t)
	tmp = 0.0
	if (Float64(Float64(Float64(y - z) * x_m) / Float64(t - z)) <= -5e-214)
		tmp = Float64(Float64(z - y) * Float64(x_m / Float64(z - t)));
	else
		tmp = Float64(Float64(Float64(z - y) / Float64(z - t)) * x_m);
	end
	return Float64(x_s * tmp)
end
x\_m = abs(x);
x\_s = sign(x) * abs(1.0);
function tmp_2 = code(x_s, x_m, y, z, t)
	tmp = 0.0;
	if ((((y - z) * x_m) / (t - z)) <= -5e-214)
		tmp = (z - y) * (x_m / (z - t));
	else
		tmp = ((z - y) / (z - t)) * x_m;
	end
	tmp_2 = x_s * tmp;
end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], -5e-214], N[(N[(z - y), $MachinePrecision] * N[(x$95$m / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] * x$95$m), $MachinePrecision]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)

\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;\frac{\left(y - z\right) \cdot x\_m}{t - z} \leq -5 \cdot 10^{-214}:\\
\;\;\;\;\left(z - y\right) \cdot \frac{x\_m}{z - t}\\

\mathbf{else}:\\
\;\;\;\;\frac{z - y}{z - t} \cdot x\_m\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < -4.9999999999999998e-214

    1. Initial program 74.1%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
      2. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
      3. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t - z} \]
      4. associate-/l*N/A

        \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{x}{t - z}} \]
      5. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]
      6. lower-*.f64N/A

        \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]
      7. lower-/.f6485.2

        \[\leadsto \color{blue}{\frac{x}{t - z}} \cdot \left(y - z\right) \]
    4. Applied rewrites85.2%

      \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]

    if -4.9999999999999998e-214 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z))

    1. Initial program 86.5%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
      2. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
      3. associate-/l*N/A

        \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
      4. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
      5. lower-*.f64N/A

        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
      6. lower-/.f6494.1

        \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
    4. Applied rewrites94.1%

      \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification90.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - z\right) \cdot x}{t - z} \leq -5 \cdot 10^{-214}:\\ \;\;\;\;\left(z - y\right) \cdot \frac{x}{z - t}\\ \mathbf{else}:\\ \;\;\;\;\frac{z - y}{z - t} \cdot x\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 67.8% accurate, 0.3× speedup?

\[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{\left(y - z\right) \cdot x\_m}{t - z}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -2 \cdot 10^{-54}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot y\\ \mathbf{elif}\;t\_1 \leq 4 \cdot 10^{-185}:\\ \;\;\;\;\frac{z \cdot x\_m}{z - t}\\ \mathbf{else}:\\ \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\ \end{array} \end{array} \end{array} \]
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
 :precision binary64
 (let* ((t_1 (/ (* (- y z) x_m) (- t z))))
   (*
    x_s
    (if (<= t_1 -2e-54)
      (* (/ x_m (- t z)) y)
      (if (<= t_1 4e-185) (/ (* z x_m) (- z t)) (- x_m (/ (* y x_m) z)))))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = ((y - z) * x_m) / (t - z);
	double tmp;
	if (t_1 <= -2e-54) {
		tmp = (x_m / (t - z)) * y;
	} else if (t_1 <= 4e-185) {
		tmp = (z * x_m) / (z - t);
	} else {
		tmp = x_m - ((y * x_m) / z);
	}
	return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
    real(8), intent (in) :: x_s
    real(8), intent (in) :: x_m
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: tmp
    t_1 = ((y - z) * x_m) / (t - z)
    if (t_1 <= (-2d-54)) then
        tmp = (x_m / (t - z)) * y
    else if (t_1 <= 4d-185) then
        tmp = (z * x_m) / (z - t)
    else
        tmp = x_m - ((y * x_m) / z)
    end if
    code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = ((y - z) * x_m) / (t - z);
	double tmp;
	if (t_1 <= -2e-54) {
		tmp = (x_m / (t - z)) * y;
	} else if (t_1 <= 4e-185) {
		tmp = (z * x_m) / (z - t);
	} else {
		tmp = x_m - ((y * x_m) / z);
	}
	return x_s * tmp;
}
x\_m = math.fabs(x)
x\_s = math.copysign(1.0, x)
def code(x_s, x_m, y, z, t):
	t_1 = ((y - z) * x_m) / (t - z)
	tmp = 0
	if t_1 <= -2e-54:
		tmp = (x_m / (t - z)) * y
	elif t_1 <= 4e-185:
		tmp = (z * x_m) / (z - t)
	else:
		tmp = x_m - ((y * x_m) / z)
	return x_s * tmp
x\_m = abs(x)
x\_s = copysign(1.0, x)
function code(x_s, x_m, y, z, t)
	t_1 = Float64(Float64(Float64(y - z) * x_m) / Float64(t - z))
	tmp = 0.0
	if (t_1 <= -2e-54)
		tmp = Float64(Float64(x_m / Float64(t - z)) * y);
	elseif (t_1 <= 4e-185)
		tmp = Float64(Float64(z * x_m) / Float64(z - t));
	else
		tmp = Float64(x_m - Float64(Float64(y * x_m) / z));
	end
	return Float64(x_s * tmp)
end
x\_m = abs(x);
x\_s = sign(x) * abs(1.0);
function tmp_2 = code(x_s, x_m, y, z, t)
	t_1 = ((y - z) * x_m) / (t - z);
	tmp = 0.0;
	if (t_1 <= -2e-54)
		tmp = (x_m / (t - z)) * y;
	elseif (t_1 <= 4e-185)
		tmp = (z * x_m) / (z - t);
	else
		tmp = x_m - ((y * x_m) / z);
	end
	tmp_2 = x_s * tmp;
end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, -2e-54], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t$95$1, 4e-185], N[(N[(z * x$95$m), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], N[(x$95$m - N[(N[(y * x$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)

\\
\begin{array}{l}
t_1 := \frac{\left(y - z\right) \cdot x\_m}{t - z}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-54}:\\
\;\;\;\;\frac{x\_m}{t - z} \cdot y\\

\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{-185}:\\
\;\;\;\;\frac{z \cdot x\_m}{z - t}\\

\mathbf{else}:\\
\;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < -2.0000000000000001e-54

    1. Initial program 65.5%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\frac{x \cdot y}{t - z}} \]
    4. Step-by-step derivation
      1. associate-*l/N/A

        \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]
      2. lower-*.f64N/A

        \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]
      3. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{x}{t - z}} \cdot y \]
      4. lower--.f6450.5

        \[\leadsto \frac{x}{\color{blue}{t - z}} \cdot y \]
    5. Applied rewrites50.5%

      \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]

    if -2.0000000000000001e-54 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < 4e-185

    1. Initial program 94.9%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0

      \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
      2. neg-sub0N/A

        \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
      3. associate-/l*N/A

        \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
      4. div-subN/A

        \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
      5. sub-negN/A

        \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
      6. *-inversesN/A

        \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
      8. distribute-lft-outN/A

        \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
      9. associate-/l*N/A

        \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
      10. *-commutativeN/A

        \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
      11. mul-1-negN/A

        \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      12. unsub-negN/A

        \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
      13. associate-+l-N/A

        \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
      14. neg-sub0N/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
      15. mul-1-negN/A

        \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
      16. +-commutativeN/A

        \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
      17. mul-1-negN/A

        \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
      18. unsub-negN/A

        \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
      19. lower--.f64N/A

        \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
      20. lower-/.f64N/A

        \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
      21. *-commutativeN/A

        \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
      22. lower-*.f6443.7

        \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
    5. Applied rewrites43.7%

      \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]
    6. Taylor expanded in y around 0

      \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot z}{t - z}} \]
    7. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot z}{t - z}\right)} \]
      2. distribute-neg-frac2N/A

        \[\leadsto \color{blue}{\frac{x \cdot z}{\mathsf{neg}\left(\left(t - z\right)\right)}} \]
      3. mul-1-negN/A

        \[\leadsto \frac{x \cdot z}{\color{blue}{-1 \cdot \left(t - z\right)}} \]
      4. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{x \cdot z}{-1 \cdot \left(t - z\right)}} \]
      5. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{z \cdot x}}{-1 \cdot \left(t - z\right)} \]
      6. lower-*.f64N/A

        \[\leadsto \frac{\color{blue}{z \cdot x}}{-1 \cdot \left(t - z\right)} \]
      7. mul-1-negN/A

        \[\leadsto \frac{z \cdot x}{\color{blue}{\mathsf{neg}\left(\left(t - z\right)\right)}} \]
      8. sub-negN/A

        \[\leadsto \frac{z \cdot x}{\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(z\right)\right)\right)}\right)} \]
      9. +-commutativeN/A

        \[\leadsto \frac{z \cdot x}{\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + t\right)}\right)} \]
      10. distribute-neg-inN/A

        \[\leadsto \frac{z \cdot x}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}} \]
      11. unsub-negN/A

        \[\leadsto \frac{z \cdot x}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t}} \]
      12. remove-double-negN/A

        \[\leadsto \frac{z \cdot x}{\color{blue}{z} - t} \]
      13. lower--.f6469.5

        \[\leadsto \frac{z \cdot x}{\color{blue}{z - t}} \]
    8. Applied rewrites69.5%

      \[\leadsto \color{blue}{\frac{z \cdot x}{z - t}} \]

    if 4e-185 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z))

    1. Initial program 81.6%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0

      \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
      2. neg-sub0N/A

        \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
      3. associate-/l*N/A

        \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
      4. div-subN/A

        \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
      5. sub-negN/A

        \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
      6. *-inversesN/A

        \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
      8. distribute-lft-outN/A

        \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
      9. associate-/l*N/A

        \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
      10. *-commutativeN/A

        \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
      11. mul-1-negN/A

        \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      12. unsub-negN/A

        \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
      13. associate-+l-N/A

        \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
      14. neg-sub0N/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
      15. mul-1-negN/A

        \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
      16. +-commutativeN/A

        \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
      17. mul-1-negN/A

        \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
      18. unsub-negN/A

        \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
      19. lower--.f64N/A

        \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
      20. lower-/.f64N/A

        \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
      21. *-commutativeN/A

        \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
      22. lower-*.f6460.0

        \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
    5. Applied rewrites60.0%

      \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification60.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - z\right) \cdot x}{t - z} \leq -2 \cdot 10^{-54}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \mathbf{elif}\;\frac{\left(y - z\right) \cdot x}{t - z} \leq 4 \cdot 10^{-185}:\\ \;\;\;\;\frac{z \cdot x}{z - t}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot x}{z}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 67.4% accurate, 0.3× speedup?

\[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{\left(y - z\right) \cdot x\_m}{t - z}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t\_1 \leq -5 \cdot 10^{-214}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot y\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-298}:\\ \;\;\;\;\frac{y \cdot x\_m}{t}\\ \mathbf{else}:\\ \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\ \end{array} \end{array} \end{array} \]
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
 :precision binary64
 (let* ((t_1 (/ (* (- y z) x_m) (- t z))))
   (*
    x_s
    (if (<= t_1 -5e-214)
      (* (/ x_m (- t z)) y)
      (if (<= t_1 2e-298) (/ (* y x_m) t) (- x_m (/ (* y x_m) z)))))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = ((y - z) * x_m) / (t - z);
	double tmp;
	if (t_1 <= -5e-214) {
		tmp = (x_m / (t - z)) * y;
	} else if (t_1 <= 2e-298) {
		tmp = (y * x_m) / t;
	} else {
		tmp = x_m - ((y * x_m) / z);
	}
	return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0d0, x)
real(8) function code(x_s, x_m, y, z, t)
    real(8), intent (in) :: x_s
    real(8), intent (in) :: x_m
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: tmp
    t_1 = ((y - z) * x_m) / (t - z)
    if (t_1 <= (-5d-214)) then
        tmp = (x_m / (t - z)) * y
    else if (t_1 <= 2d-298) then
        tmp = (y * x_m) / t
    else
        tmp = x_m - ((y * x_m) / z)
    end if
    code = x_s * tmp
end function
x\_m = Math.abs(x);
x\_s = Math.copySign(1.0, x);
public static double code(double x_s, double x_m, double y, double z, double t) {
	double t_1 = ((y - z) * x_m) / (t - z);
	double tmp;
	if (t_1 <= -5e-214) {
		tmp = (x_m / (t - z)) * y;
	} else if (t_1 <= 2e-298) {
		tmp = (y * x_m) / t;
	} else {
		tmp = x_m - ((y * x_m) / z);
	}
	return x_s * tmp;
}
x\_m = math.fabs(x)
x\_s = math.copysign(1.0, x)
def code(x_s, x_m, y, z, t):
	t_1 = ((y - z) * x_m) / (t - z)
	tmp = 0
	if t_1 <= -5e-214:
		tmp = (x_m / (t - z)) * y
	elif t_1 <= 2e-298:
		tmp = (y * x_m) / t
	else:
		tmp = x_m - ((y * x_m) / z)
	return x_s * tmp
x\_m = abs(x)
x\_s = copysign(1.0, x)
function code(x_s, x_m, y, z, t)
	t_1 = Float64(Float64(Float64(y - z) * x_m) / Float64(t - z))
	tmp = 0.0
	if (t_1 <= -5e-214)
		tmp = Float64(Float64(x_m / Float64(t - z)) * y);
	elseif (t_1 <= 2e-298)
		tmp = Float64(Float64(y * x_m) / t);
	else
		tmp = Float64(x_m - Float64(Float64(y * x_m) / z));
	end
	return Float64(x_s * tmp)
end
x\_m = abs(x);
x\_s = sign(x) * abs(1.0);
function tmp_2 = code(x_s, x_m, y, z, t)
	t_1 = ((y - z) * x_m) / (t - z);
	tmp = 0.0;
	if (t_1 <= -5e-214)
		tmp = (x_m / (t - z)) * y;
	elseif (t_1 <= 2e-298)
		tmp = (y * x_m) / t;
	else
		tmp = x_m - ((y * x_m) / z);
	end
	tmp_2 = x_s * tmp;
end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t$95$1, -5e-214], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t$95$1, 2e-298], N[(N[(y * x$95$m), $MachinePrecision] / t), $MachinePrecision], N[(x$95$m - N[(N[(y * x$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)

\\
\begin{array}{l}
t_1 := \frac{\left(y - z\right) \cdot x\_m}{t - z}\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-214}:\\
\;\;\;\;\frac{x\_m}{t - z} \cdot y\\

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-298}:\\
\;\;\;\;\frac{y \cdot x\_m}{t}\\

\mathbf{else}:\\
\;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\


\end{array}
\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < -4.9999999999999998e-214

    1. Initial program 74.1%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\frac{x \cdot y}{t - z}} \]
    4. Step-by-step derivation
      1. associate-*l/N/A

        \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]
      2. lower-*.f64N/A

        \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]
      3. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{x}{t - z}} \cdot y \]
      4. lower--.f6443.3

        \[\leadsto \frac{x}{\color{blue}{t - z}} \cdot y \]
    5. Applied rewrites43.3%

      \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]

    if -4.9999999999999998e-214 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z)) < 1.99999999999999982e-298

    1. Initial program 90.2%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \color{blue}{\frac{x \cdot y}{t}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{x \cdot y}{t}} \]
      2. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{y \cdot x}}{t} \]
      3. lower-*.f6468.9

        \[\leadsto \frac{\color{blue}{y \cdot x}}{t} \]
    5. Applied rewrites68.9%

      \[\leadsto \color{blue}{\frac{y \cdot x}{t}} \]

    if 1.99999999999999982e-298 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z))

    1. Initial program 84.9%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0

      \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
      2. neg-sub0N/A

        \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
      3. associate-/l*N/A

        \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
      4. div-subN/A

        \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
      5. sub-negN/A

        \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
      6. *-inversesN/A

        \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
      8. distribute-lft-outN/A

        \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
      9. associate-/l*N/A

        \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
      10. *-commutativeN/A

        \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
      11. mul-1-negN/A

        \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      12. unsub-negN/A

        \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
      13. associate-+l-N/A

        \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
      14. neg-sub0N/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
      15. mul-1-negN/A

        \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
      16. +-commutativeN/A

        \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
      17. mul-1-negN/A

        \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
      18. unsub-negN/A

        \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
      19. lower--.f64N/A

        \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
      20. lower-/.f64N/A

        \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
      21. *-commutativeN/A

        \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
      22. lower-*.f6458.8

        \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
    5. Applied rewrites58.8%

      \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification54.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - z\right) \cdot x}{t - z} \leq -5 \cdot 10^{-214}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \mathbf{elif}\;\frac{\left(y - z\right) \cdot x}{t - z} \leq 2 \cdot 10^{-298}:\\ \;\;\;\;\frac{y \cdot x}{t}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot x}{z}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 70.6% accurate, 0.5× speedup?

\[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;y \leq -1.75 \cdot 10^{+90}:\\ \;\;\;\;\frac{y}{t - z} \cdot x\_m\\ \mathbf{elif}\;y \leq -2.9 \cdot 10^{-48}:\\ \;\;\;\;\mathsf{fma}\left(x\_m, \frac{t - y}{z}, x\_m\right)\\ \mathbf{elif}\;y \leq -1.46 \cdot 10^{-137}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\ \mathbf{elif}\;y \leq 5.4 \cdot 10^{+98}:\\ \;\;\;\;\frac{z}{z - t} \cdot x\_m\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x\_m}{t - z}\\ \end{array} \end{array} \]
x\_m = (fabs.f64 x)
x\_s = (copysign.f64 #s(literal 1 binary64) x)
(FPCore (x_s x_m y z t)
 :precision binary64
 (*
  x_s
  (if (<= y -1.75e+90)
    (* (/ y (- t z)) x_m)
    (if (<= y -2.9e-48)
      (fma x_m (/ (- t y) z) x_m)
      (if (<= y -1.46e-137)
        (/ (* (- y z) x_m) t)
        (if (<= y 5.4e+98) (* (/ z (- z t)) x_m) (/ (* y x_m) (- t z))))))))
x\_m = fabs(x);
x\_s = copysign(1.0, x);
double code(double x_s, double x_m, double y, double z, double t) {
	double tmp;
	if (y <= -1.75e+90) {
		tmp = (y / (t - z)) * x_m;
	} else if (y <= -2.9e-48) {
		tmp = fma(x_m, ((t - y) / z), x_m);
	} else if (y <= -1.46e-137) {
		tmp = ((y - z) * x_m) / t;
	} else if (y <= 5.4e+98) {
		tmp = (z / (z - t)) * x_m;
	} else {
		tmp = (y * x_m) / (t - z);
	}
	return x_s * tmp;
}
x\_m = abs(x)
x\_s = copysign(1.0, x)
function code(x_s, x_m, y, z, t)
	tmp = 0.0
	if (y <= -1.75e+90)
		tmp = Float64(Float64(y / Float64(t - z)) * x_m);
	elseif (y <= -2.9e-48)
		tmp = fma(x_m, Float64(Float64(t - y) / z), x_m);
	elseif (y <= -1.46e-137)
		tmp = Float64(Float64(Float64(y - z) * x_m) / t);
	elseif (y <= 5.4e+98)
		tmp = Float64(Float64(z / Float64(z - t)) * x_m);
	else
		tmp = Float64(Float64(y * x_m) / Float64(t - z));
	end
	return Float64(x_s * tmp)
end
x\_m = N[Abs[x], $MachinePrecision]
x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[y, -1.75e+90], N[(N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision] * x$95$m), $MachinePrecision], If[LessEqual[y, -2.9e-48], N[(x$95$m * N[(N[(t - y), $MachinePrecision] / z), $MachinePrecision] + x$95$m), $MachinePrecision], If[LessEqual[y, -1.46e-137], N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[y, 5.4e+98], N[(N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision] * x$95$m), $MachinePrecision], N[(N[(y * x$95$m), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]
\begin{array}{l}
x\_m = \left|x\right|
\\
x\_s = \mathsf{copysign}\left(1, x\right)

\\
x\_s \cdot \begin{array}{l}
\mathbf{if}\;y \leq -1.75 \cdot 10^{+90}:\\
\;\;\;\;\frac{y}{t - z} \cdot x\_m\\

\mathbf{elif}\;y \leq -2.9 \cdot 10^{-48}:\\
\;\;\;\;\mathsf{fma}\left(x\_m, \frac{t - y}{z}, x\_m\right)\\

\mathbf{elif}\;y \leq -1.46 \cdot 10^{-137}:\\
\;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\

\mathbf{elif}\;y \leq 5.4 \cdot 10^{+98}:\\
\;\;\;\;\frac{z}{z - t} \cdot x\_m\\

\mathbf{else}:\\
\;\;\;\;\frac{y \cdot x\_m}{t - z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y < -1.7499999999999999e90

    1. Initial program 85.7%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
      2. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
      3. associate-/l*N/A

        \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
      4. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
      5. lower-*.f64N/A

        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
      6. lower-/.f6497.7

        \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
    4. Applied rewrites97.7%

      \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
    5. Taylor expanded in y around inf

      \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]
    6. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]
      2. lower--.f6489.5

        \[\leadsto \frac{y}{\color{blue}{t - z}} \cdot x \]
    7. Applied rewrites89.5%

      \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]

    if -1.7499999999999999e90 < y < -2.9000000000000003e-48

    1. Initial program 86.1%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{x \cdot y}{z}\right) - -1 \cdot \frac{t \cdot x}{z}} \]
    4. Step-by-step derivation
      1. associate--l+N/A

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{x \cdot y}{z} - -1 \cdot \frac{t \cdot x}{z}\right)} \]
      2. distribute-lft-out--N/A

        \[\leadsto x + \color{blue}{-1 \cdot \left(\frac{x \cdot y}{z} - \frac{t \cdot x}{z}\right)} \]
      3. div-subN/A

        \[\leadsto x + -1 \cdot \color{blue}{\frac{x \cdot y - t \cdot x}{z}} \]
      4. +-commutativeN/A

        \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y - t \cdot x}{z} + x} \]
      5. mul-1-negN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y - t \cdot x}{z}\right)\right)} + x \]
      6. distribute-neg-frac2N/A

        \[\leadsto \color{blue}{\frac{x \cdot y - t \cdot x}{\mathsf{neg}\left(z\right)}} + x \]
      7. *-commutativeN/A

        \[\leadsto \frac{x \cdot y - \color{blue}{x \cdot t}}{\mathsf{neg}\left(z\right)} + x \]
      8. distribute-lft-out--N/A

        \[\leadsto \frac{\color{blue}{x \cdot \left(y - t\right)}}{\mathsf{neg}\left(z\right)} + x \]
      9. mul-1-negN/A

        \[\leadsto \frac{x \cdot \left(y - t\right)}{\color{blue}{-1 \cdot z}} + x \]
      10. associate-/l*N/A

        \[\leadsto \color{blue}{x \cdot \frac{y - t}{-1 \cdot z}} + x \]
      11. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(x, \frac{y - t}{-1 \cdot z}, x\right)} \]
      12. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{y - t}{-1 \cdot z}}, x\right) \]
      13. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(x, \frac{\color{blue}{y - t}}{-1 \cdot z}, x\right) \]
      14. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(x, \frac{y - t}{\color{blue}{\mathsf{neg}\left(z\right)}}, x\right) \]
      15. lower-neg.f6477.6

        \[\leadsto \mathsf{fma}\left(x, \frac{y - t}{\color{blue}{-z}}, x\right) \]
    5. Applied rewrites77.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \frac{y - t}{-z}, x\right)} \]

    if -2.9000000000000003e-48 < y < -1.46e-137

    1. Initial program 90.8%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf

      \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
      2. *-commutativeN/A

        \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
      3. lower-*.f64N/A

        \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
      4. lower--.f6476.8

        \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot x}{t} \]
    5. Applied rewrites76.8%

      \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot x}{t}} \]

    if -1.46e-137 < y < 5.4e98

    1. Initial program 74.7%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
      2. lift-*.f64N/A

        \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
      3. associate-/l*N/A

        \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
      4. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
      5. lower-*.f64N/A

        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
      6. lower-/.f6496.2

        \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
    4. Applied rewrites96.2%

      \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
    5. Taylor expanded in z around inf

      \[\leadsto \color{blue}{1} \cdot x \]
    6. Step-by-step derivation
      1. Applied rewrites55.6%

        \[\leadsto \color{blue}{1} \cdot x \]
      2. Taylor expanded in y around 0

        \[\leadsto \color{blue}{\left(-1 \cdot \frac{z}{t - z}\right)} \cdot x \]
      3. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{z}{t - z}\right)\right)} \cdot x \]
        2. distribute-neg-frac2N/A

          \[\leadsto \color{blue}{\frac{z}{\mathsf{neg}\left(\left(t - z\right)\right)}} \cdot x \]
        3. mul-1-negN/A

          \[\leadsto \frac{z}{\color{blue}{-1 \cdot \left(t - z\right)}} \cdot x \]
        4. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{z}{-1 \cdot \left(t - z\right)}} \cdot x \]
        5. mul-1-negN/A

          \[\leadsto \frac{z}{\color{blue}{\mathsf{neg}\left(\left(t - z\right)\right)}} \cdot x \]
        6. sub-negN/A

          \[\leadsto \frac{z}{\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(z\right)\right)\right)}\right)} \cdot x \]
        7. +-commutativeN/A

          \[\leadsto \frac{z}{\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + t\right)}\right)} \cdot x \]
        8. distribute-neg-inN/A

          \[\leadsto \frac{z}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}} \cdot x \]
        9. unsub-negN/A

          \[\leadsto \frac{z}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t}} \cdot x \]
        10. remove-double-negN/A

          \[\leadsto \frac{z}{\color{blue}{z} - t} \cdot x \]
        11. lower--.f6485.9

          \[\leadsto \frac{z}{\color{blue}{z - t}} \cdot x \]
      4. Applied rewrites85.9%

        \[\leadsto \color{blue}{\frac{z}{z - t}} \cdot x \]

      if 5.4e98 < y

      1. Initial program 92.5%

        \[\frac{x \cdot \left(y - z\right)}{t - z} \]
      2. Add Preprocessing
      3. Taylor expanded in z around 0

        \[\leadsto \frac{\color{blue}{x \cdot y}}{t - z} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \frac{\color{blue}{y \cdot x}}{t - z} \]
        2. lower-*.f6478.4

          \[\leadsto \frac{\color{blue}{y \cdot x}}{t - z} \]
      5. Applied rewrites78.4%

        \[\leadsto \frac{\color{blue}{y \cdot x}}{t - z} \]
    7. Recombined 5 regimes into one program.
    8. Final simplification83.9%

      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.75 \cdot 10^{+90}:\\ \;\;\;\;\frac{y}{t - z} \cdot x\\ \mathbf{elif}\;y \leq -2.9 \cdot 10^{-48}:\\ \;\;\;\;\mathsf{fma}\left(x, \frac{t - y}{z}, x\right)\\ \mathbf{elif}\;y \leq -1.46 \cdot 10^{-137}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{elif}\;y \leq 5.4 \cdot 10^{+98}:\\ \;\;\;\;\frac{z}{z - t} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{t - z}\\ \end{array} \]
    9. Add Preprocessing

    Alternative 5: 70.7% accurate, 0.5× speedup?

    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+90}:\\ \;\;\;\;\frac{y}{t - z} \cdot x\_m\\ \mathbf{elif}\;y \leq -4.8 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(\frac{-x\_m}{z}, y, x\_m\right)\\ \mathbf{elif}\;y \leq -1.46 \cdot 10^{-137}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\ \mathbf{elif}\;y \leq 5.4 \cdot 10^{+98}:\\ \;\;\;\;\frac{z}{z - t} \cdot x\_m\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x\_m}{t - z}\\ \end{array} \end{array} \]
    x\_m = (fabs.f64 x)
    x\_s = (copysign.f64 #s(literal 1 binary64) x)
    (FPCore (x_s x_m y z t)
     :precision binary64
     (*
      x_s
      (if (<= y -1.15e+90)
        (* (/ y (- t z)) x_m)
        (if (<= y -4.8e-64)
          (fma (/ (- x_m) z) y x_m)
          (if (<= y -1.46e-137)
            (/ (* (- y z) x_m) t)
            (if (<= y 5.4e+98) (* (/ z (- z t)) x_m) (/ (* y x_m) (- t z))))))))
    x\_m = fabs(x);
    x\_s = copysign(1.0, x);
    double code(double x_s, double x_m, double y, double z, double t) {
    	double tmp;
    	if (y <= -1.15e+90) {
    		tmp = (y / (t - z)) * x_m;
    	} else if (y <= -4.8e-64) {
    		tmp = fma((-x_m / z), y, x_m);
    	} else if (y <= -1.46e-137) {
    		tmp = ((y - z) * x_m) / t;
    	} else if (y <= 5.4e+98) {
    		tmp = (z / (z - t)) * x_m;
    	} else {
    		tmp = (y * x_m) / (t - z);
    	}
    	return x_s * tmp;
    }
    
    x\_m = abs(x)
    x\_s = copysign(1.0, x)
    function code(x_s, x_m, y, z, t)
    	tmp = 0.0
    	if (y <= -1.15e+90)
    		tmp = Float64(Float64(y / Float64(t - z)) * x_m);
    	elseif (y <= -4.8e-64)
    		tmp = fma(Float64(Float64(-x_m) / z), y, x_m);
    	elseif (y <= -1.46e-137)
    		tmp = Float64(Float64(Float64(y - z) * x_m) / t);
    	elseif (y <= 5.4e+98)
    		tmp = Float64(Float64(z / Float64(z - t)) * x_m);
    	else
    		tmp = Float64(Float64(y * x_m) / Float64(t - z));
    	end
    	return Float64(x_s * tmp)
    end
    
    x\_m = N[Abs[x], $MachinePrecision]
    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
    code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[y, -1.15e+90], N[(N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision] * x$95$m), $MachinePrecision], If[LessEqual[y, -4.8e-64], N[(N[((-x$95$m) / z), $MachinePrecision] * y + x$95$m), $MachinePrecision], If[LessEqual[y, -1.46e-137], N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[y, 5.4e+98], N[(N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision] * x$95$m), $MachinePrecision], N[(N[(y * x$95$m), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]]]]]), $MachinePrecision]
    
    \begin{array}{l}
    x\_m = \left|x\right|
    \\
    x\_s = \mathsf{copysign}\left(1, x\right)
    
    \\
    x\_s \cdot \begin{array}{l}
    \mathbf{if}\;y \leq -1.15 \cdot 10^{+90}:\\
    \;\;\;\;\frac{y}{t - z} \cdot x\_m\\
    
    \mathbf{elif}\;y \leq -4.8 \cdot 10^{-64}:\\
    \;\;\;\;\mathsf{fma}\left(\frac{-x\_m}{z}, y, x\_m\right)\\
    
    \mathbf{elif}\;y \leq -1.46 \cdot 10^{-137}:\\
    \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\
    
    \mathbf{elif}\;y \leq 5.4 \cdot 10^{+98}:\\
    \;\;\;\;\frac{z}{z - t} \cdot x\_m\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{y \cdot x\_m}{t - z}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if y < -1.15e90

      1. Initial program 85.7%

        \[\frac{x \cdot \left(y - z\right)}{t - z} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-/.f64N/A

          \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
        2. lift-*.f64N/A

          \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
        3. associate-/l*N/A

          \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
        4. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
        5. lower-*.f64N/A

          \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
        6. lower-/.f6497.7

          \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
      4. Applied rewrites97.7%

        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
      5. Taylor expanded in y around inf

        \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]
      6. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]
        2. lower--.f6489.5

          \[\leadsto \frac{y}{\color{blue}{t - z}} \cdot x \]
      7. Applied rewrites89.5%

        \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]

      if -1.15e90 < y < -4.79999999999999997e-64

      1. Initial program 87.0%

        \[\frac{x \cdot \left(y - z\right)}{t - z} \]
      2. Add Preprocessing
      3. Taylor expanded in t around 0

        \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
      4. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
        2. neg-sub0N/A

          \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
        3. associate-/l*N/A

          \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
        4. div-subN/A

          \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
        5. sub-negN/A

          \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
        6. *-inversesN/A

          \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
        7. metadata-evalN/A

          \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
        8. distribute-lft-outN/A

          \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
        9. associate-/l*N/A

          \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
        10. *-commutativeN/A

          \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
        11. mul-1-negN/A

          \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
        12. unsub-negN/A

          \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
        13. associate-+l-N/A

          \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
        14. neg-sub0N/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
        15. mul-1-negN/A

          \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
        16. +-commutativeN/A

          \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
        17. mul-1-negN/A

          \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
        18. unsub-negN/A

          \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
        19. lower--.f64N/A

          \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
        20. lower-/.f64N/A

          \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
        21. *-commutativeN/A

          \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
        22. lower-*.f6471.6

          \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
      5. Applied rewrites71.6%

        \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]
      6. Step-by-step derivation
        1. Applied rewrites75.0%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{-x}{z}, y, x\right)} \]

        if -4.79999999999999997e-64 < y < -1.46e-137

        1. Initial program 89.9%

          \[\frac{x \cdot \left(y - z\right)}{t - z} \]
        2. Add Preprocessing
        3. Taylor expanded in t around inf

          \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
        4. Step-by-step derivation
          1. lower-/.f64N/A

            \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
          2. *-commutativeN/A

            \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
          3. lower-*.f64N/A

            \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
          4. lower--.f6479.5

            \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot x}{t} \]
        5. Applied rewrites79.5%

          \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot x}{t}} \]

        if -1.46e-137 < y < 5.4e98

        1. Initial program 74.7%

          \[\frac{x \cdot \left(y - z\right)}{t - z} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. lift-/.f64N/A

            \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
          2. lift-*.f64N/A

            \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
          3. associate-/l*N/A

            \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
          4. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
          5. lower-*.f64N/A

            \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
          6. lower-/.f6496.2

            \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
        4. Applied rewrites96.2%

          \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
        5. Taylor expanded in z around inf

          \[\leadsto \color{blue}{1} \cdot x \]
        6. Step-by-step derivation
          1. Applied rewrites55.6%

            \[\leadsto \color{blue}{1} \cdot x \]
          2. Taylor expanded in y around 0

            \[\leadsto \color{blue}{\left(-1 \cdot \frac{z}{t - z}\right)} \cdot x \]
          3. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{z}{t - z}\right)\right)} \cdot x \]
            2. distribute-neg-frac2N/A

              \[\leadsto \color{blue}{\frac{z}{\mathsf{neg}\left(\left(t - z\right)\right)}} \cdot x \]
            3. mul-1-negN/A

              \[\leadsto \frac{z}{\color{blue}{-1 \cdot \left(t - z\right)}} \cdot x \]
            4. lower-/.f64N/A

              \[\leadsto \color{blue}{\frac{z}{-1 \cdot \left(t - z\right)}} \cdot x \]
            5. mul-1-negN/A

              \[\leadsto \frac{z}{\color{blue}{\mathsf{neg}\left(\left(t - z\right)\right)}} \cdot x \]
            6. sub-negN/A

              \[\leadsto \frac{z}{\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(z\right)\right)\right)}\right)} \cdot x \]
            7. +-commutativeN/A

              \[\leadsto \frac{z}{\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + t\right)}\right)} \cdot x \]
            8. distribute-neg-inN/A

              \[\leadsto \frac{z}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}} \cdot x \]
            9. unsub-negN/A

              \[\leadsto \frac{z}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t}} \cdot x \]
            10. remove-double-negN/A

              \[\leadsto \frac{z}{\color{blue}{z} - t} \cdot x \]
            11. lower--.f6485.9

              \[\leadsto \frac{z}{\color{blue}{z - t}} \cdot x \]
          4. Applied rewrites85.9%

            \[\leadsto \color{blue}{\frac{z}{z - t}} \cdot x \]

          if 5.4e98 < y

          1. Initial program 92.5%

            \[\frac{x \cdot \left(y - z\right)}{t - z} \]
          2. Add Preprocessing
          3. Taylor expanded in z around 0

            \[\leadsto \frac{\color{blue}{x \cdot y}}{t - z} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \frac{\color{blue}{y \cdot x}}{t - z} \]
            2. lower-*.f6478.4

              \[\leadsto \frac{\color{blue}{y \cdot x}}{t - z} \]
          5. Applied rewrites78.4%

            \[\leadsto \frac{\color{blue}{y \cdot x}}{t - z} \]
        7. Recombined 5 regimes into one program.
        8. Add Preprocessing

        Alternative 6: 71.8% accurate, 0.5× speedup?

        \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{y}{t - z} \cdot x\_m\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+90}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -4.8 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(\frac{-x\_m}{z}, y, x\_m\right)\\ \mathbf{elif}\;y \leq -1.46 \cdot 10^{-137}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\ \mathbf{elif}\;y \leq 5.4 \cdot 10^{+98}:\\ \;\;\;\;\frac{z}{z - t} \cdot x\_m\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
        x\_m = (fabs.f64 x)
        x\_s = (copysign.f64 #s(literal 1 binary64) x)
        (FPCore (x_s x_m y z t)
         :precision binary64
         (let* ((t_1 (* (/ y (- t z)) x_m)))
           (*
            x_s
            (if (<= y -1.15e+90)
              t_1
              (if (<= y -4.8e-64)
                (fma (/ (- x_m) z) y x_m)
                (if (<= y -1.46e-137)
                  (/ (* (- y z) x_m) t)
                  (if (<= y 5.4e+98) (* (/ z (- z t)) x_m) t_1)))))))
        x\_m = fabs(x);
        x\_s = copysign(1.0, x);
        double code(double x_s, double x_m, double y, double z, double t) {
        	double t_1 = (y / (t - z)) * x_m;
        	double tmp;
        	if (y <= -1.15e+90) {
        		tmp = t_1;
        	} else if (y <= -4.8e-64) {
        		tmp = fma((-x_m / z), y, x_m);
        	} else if (y <= -1.46e-137) {
        		tmp = ((y - z) * x_m) / t;
        	} else if (y <= 5.4e+98) {
        		tmp = (z / (z - t)) * x_m;
        	} else {
        		tmp = t_1;
        	}
        	return x_s * tmp;
        }
        
        x\_m = abs(x)
        x\_s = copysign(1.0, x)
        function code(x_s, x_m, y, z, t)
        	t_1 = Float64(Float64(y / Float64(t - z)) * x_m)
        	tmp = 0.0
        	if (y <= -1.15e+90)
        		tmp = t_1;
        	elseif (y <= -4.8e-64)
        		tmp = fma(Float64(Float64(-x_m) / z), y, x_m);
        	elseif (y <= -1.46e-137)
        		tmp = Float64(Float64(Float64(y - z) * x_m) / t);
        	elseif (y <= 5.4e+98)
        		tmp = Float64(Float64(z / Float64(z - t)) * x_m);
        	else
        		tmp = t_1;
        	end
        	return Float64(x_s * tmp)
        end
        
        x\_m = N[Abs[x], $MachinePrecision]
        x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
        code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y / N[(t - z), $MachinePrecision]), $MachinePrecision] * x$95$m), $MachinePrecision]}, N[(x$95$s * If[LessEqual[y, -1.15e+90], t$95$1, If[LessEqual[y, -4.8e-64], N[(N[((-x$95$m) / z), $MachinePrecision] * y + x$95$m), $MachinePrecision], If[LessEqual[y, -1.46e-137], N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[y, 5.4e+98], N[(N[(z / N[(z - t), $MachinePrecision]), $MachinePrecision] * x$95$m), $MachinePrecision], t$95$1]]]]), $MachinePrecision]]
        
        \begin{array}{l}
        x\_m = \left|x\right|
        \\
        x\_s = \mathsf{copysign}\left(1, x\right)
        
        \\
        \begin{array}{l}
        t_1 := \frac{y}{t - z} \cdot x\_m\\
        x\_s \cdot \begin{array}{l}
        \mathbf{if}\;y \leq -1.15 \cdot 10^{+90}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq -4.8 \cdot 10^{-64}:\\
        \;\;\;\;\mathsf{fma}\left(\frac{-x\_m}{z}, y, x\_m\right)\\
        
        \mathbf{elif}\;y \leq -1.46 \cdot 10^{-137}:\\
        \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\
        
        \mathbf{elif}\;y \leq 5.4 \cdot 10^{+98}:\\
        \;\;\;\;\frac{z}{z - t} \cdot x\_m\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if y < -1.15e90 or 5.4e98 < y

          1. Initial program 88.7%

            \[\frac{x \cdot \left(y - z\right)}{t - z} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. lift-/.f64N/A

              \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
            2. lift-*.f64N/A

              \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
            3. associate-/l*N/A

              \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
            4. *-commutativeN/A

              \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
            5. lower-*.f64N/A

              \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
            6. lower-/.f6494.2

              \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
          4. Applied rewrites94.2%

            \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
          5. Taylor expanded in y around inf

            \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]
          6. Step-by-step derivation
            1. lower-/.f64N/A

              \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]
            2. lower--.f6483.4

              \[\leadsto \frac{y}{\color{blue}{t - z}} \cdot x \]
          7. Applied rewrites83.4%

            \[\leadsto \color{blue}{\frac{y}{t - z}} \cdot x \]

          if -1.15e90 < y < -4.79999999999999997e-64

          1. Initial program 87.0%

            \[\frac{x \cdot \left(y - z\right)}{t - z} \]
          2. Add Preprocessing
          3. Taylor expanded in t around 0

            \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
          4. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
            2. neg-sub0N/A

              \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
            3. associate-/l*N/A

              \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
            4. div-subN/A

              \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
            5. sub-negN/A

              \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
            6. *-inversesN/A

              \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
            7. metadata-evalN/A

              \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
            8. distribute-lft-outN/A

              \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
            9. associate-/l*N/A

              \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
            10. *-commutativeN/A

              \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
            11. mul-1-negN/A

              \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
            12. unsub-negN/A

              \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
            13. associate-+l-N/A

              \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
            14. neg-sub0N/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
            15. mul-1-negN/A

              \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
            16. +-commutativeN/A

              \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
            17. mul-1-negN/A

              \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
            18. unsub-negN/A

              \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
            19. lower--.f64N/A

              \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
            20. lower-/.f64N/A

              \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
            21. *-commutativeN/A

              \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
            22. lower-*.f6471.6

              \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
          5. Applied rewrites71.6%

            \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]
          6. Step-by-step derivation
            1. Applied rewrites75.0%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{-x}{z}, y, x\right)} \]

            if -4.79999999999999997e-64 < y < -1.46e-137

            1. Initial program 89.9%

              \[\frac{x \cdot \left(y - z\right)}{t - z} \]
            2. Add Preprocessing
            3. Taylor expanded in t around inf

              \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
            4. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
              2. *-commutativeN/A

                \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
              3. lower-*.f64N/A

                \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
              4. lower--.f6479.5

                \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot x}{t} \]
            5. Applied rewrites79.5%

              \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot x}{t}} \]

            if -1.46e-137 < y < 5.4e98

            1. Initial program 74.7%

              \[\frac{x \cdot \left(y - z\right)}{t - z} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. lift-/.f64N/A

                \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
              2. lift-*.f64N/A

                \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
              3. associate-/l*N/A

                \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
              4. *-commutativeN/A

                \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
              5. lower-*.f64N/A

                \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
              6. lower-/.f6496.2

                \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
            4. Applied rewrites96.2%

              \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
            5. Taylor expanded in z around inf

              \[\leadsto \color{blue}{1} \cdot x \]
            6. Step-by-step derivation
              1. Applied rewrites55.6%

                \[\leadsto \color{blue}{1} \cdot x \]
              2. Taylor expanded in y around 0

                \[\leadsto \color{blue}{\left(-1 \cdot \frac{z}{t - z}\right)} \cdot x \]
              3. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{z}{t - z}\right)\right)} \cdot x \]
                2. distribute-neg-frac2N/A

                  \[\leadsto \color{blue}{\frac{z}{\mathsf{neg}\left(\left(t - z\right)\right)}} \cdot x \]
                3. mul-1-negN/A

                  \[\leadsto \frac{z}{\color{blue}{-1 \cdot \left(t - z\right)}} \cdot x \]
                4. lower-/.f64N/A

                  \[\leadsto \color{blue}{\frac{z}{-1 \cdot \left(t - z\right)}} \cdot x \]
                5. mul-1-negN/A

                  \[\leadsto \frac{z}{\color{blue}{\mathsf{neg}\left(\left(t - z\right)\right)}} \cdot x \]
                6. sub-negN/A

                  \[\leadsto \frac{z}{\mathsf{neg}\left(\color{blue}{\left(t + \left(\mathsf{neg}\left(z\right)\right)\right)}\right)} \cdot x \]
                7. +-commutativeN/A

                  \[\leadsto \frac{z}{\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + t\right)}\right)} \cdot x \]
                8. distribute-neg-inN/A

                  \[\leadsto \frac{z}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) + \left(\mathsf{neg}\left(t\right)\right)}} \cdot x \]
                9. unsub-negN/A

                  \[\leadsto \frac{z}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right) - t}} \cdot x \]
                10. remove-double-negN/A

                  \[\leadsto \frac{z}{\color{blue}{z} - t} \cdot x \]
                11. lower--.f6485.9

                  \[\leadsto \frac{z}{\color{blue}{z - t}} \cdot x \]
              4. Applied rewrites85.9%

                \[\leadsto \color{blue}{\frac{z}{z - t}} \cdot x \]
            7. Recombined 4 regimes into one program.
            8. Add Preprocessing

            Alternative 7: 88.8% accurate, 0.7× speedup?

            \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -1.4 \cdot 10^{+184}:\\ \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\ \mathbf{elif}\;z \leq 8.6 \cdot 10^{+132}:\\ \;\;\;\;\left(z - y\right) \cdot \frac{x\_m}{z - t}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x\_m, \frac{t - y}{z}, x\_m\right)\\ \end{array} \end{array} \]
            x\_m = (fabs.f64 x)
            x\_s = (copysign.f64 #s(literal 1 binary64) x)
            (FPCore (x_s x_m y z t)
             :precision binary64
             (*
              x_s
              (if (<= z -1.4e+184)
                (- x_m (/ (* y x_m) z))
                (if (<= z 8.6e+132)
                  (* (- z y) (/ x_m (- z t)))
                  (fma x_m (/ (- t y) z) x_m)))))
            x\_m = fabs(x);
            x\_s = copysign(1.0, x);
            double code(double x_s, double x_m, double y, double z, double t) {
            	double tmp;
            	if (z <= -1.4e+184) {
            		tmp = x_m - ((y * x_m) / z);
            	} else if (z <= 8.6e+132) {
            		tmp = (z - y) * (x_m / (z - t));
            	} else {
            		tmp = fma(x_m, ((t - y) / z), x_m);
            	}
            	return x_s * tmp;
            }
            
            x\_m = abs(x)
            x\_s = copysign(1.0, x)
            function code(x_s, x_m, y, z, t)
            	tmp = 0.0
            	if (z <= -1.4e+184)
            		tmp = Float64(x_m - Float64(Float64(y * x_m) / z));
            	elseif (z <= 8.6e+132)
            		tmp = Float64(Float64(z - y) * Float64(x_m / Float64(z - t)));
            	else
            		tmp = fma(x_m, Float64(Float64(t - y) / z), x_m);
            	end
            	return Float64(x_s * tmp)
            end
            
            x\_m = N[Abs[x], $MachinePrecision]
            x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
            code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -1.4e+184], N[(x$95$m - N[(N[(y * x$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.6e+132], N[(N[(z - y), $MachinePrecision] * N[(x$95$m / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x$95$m * N[(N[(t - y), $MachinePrecision] / z), $MachinePrecision] + x$95$m), $MachinePrecision]]]), $MachinePrecision]
            
            \begin{array}{l}
            x\_m = \left|x\right|
            \\
            x\_s = \mathsf{copysign}\left(1, x\right)
            
            \\
            x\_s \cdot \begin{array}{l}
            \mathbf{if}\;z \leq -1.4 \cdot 10^{+184}:\\
            \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\
            
            \mathbf{elif}\;z \leq 8.6 \cdot 10^{+132}:\\
            \;\;\;\;\left(z - y\right) \cdot \frac{x\_m}{z - t}\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(x\_m, \frac{t - y}{z}, x\_m\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -1.39999999999999995e184

              1. Initial program 59.8%

                \[\frac{x \cdot \left(y - z\right)}{t - z} \]
              2. Add Preprocessing
              3. Taylor expanded in t around 0

                \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
              4. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
                2. neg-sub0N/A

                  \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
                3. associate-/l*N/A

                  \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
                4. div-subN/A

                  \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
                5. sub-negN/A

                  \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
                6. *-inversesN/A

                  \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
                7. metadata-evalN/A

                  \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
                8. distribute-lft-outN/A

                  \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
                9. associate-/l*N/A

                  \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
                10. *-commutativeN/A

                  \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
                11. mul-1-negN/A

                  \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                12. unsub-negN/A

                  \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
                13. associate-+l-N/A

                  \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
                14. neg-sub0N/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
                15. mul-1-negN/A

                  \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
                16. +-commutativeN/A

                  \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
                17. mul-1-negN/A

                  \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
                18. unsub-negN/A

                  \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                19. lower--.f64N/A

                  \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                20. lower-/.f64N/A

                  \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
                21. *-commutativeN/A

                  \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
                22. lower-*.f6497.2

                  \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
              5. Applied rewrites97.2%

                \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]

              if -1.39999999999999995e184 < z < 8.59999999999999964e132

              1. Initial program 87.2%

                \[\frac{x \cdot \left(y - z\right)}{t - z} \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. lift-/.f64N/A

                  \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
                2. lift-*.f64N/A

                  \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
                3. *-commutativeN/A

                  \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t - z} \]
                4. associate-/l*N/A

                  \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{x}{t - z}} \]
                5. *-commutativeN/A

                  \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]
                6. lower-*.f64N/A

                  \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]
                7. lower-/.f6490.2

                  \[\leadsto \color{blue}{\frac{x}{t - z}} \cdot \left(y - z\right) \]
              4. Applied rewrites90.2%

                \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]

              if 8.59999999999999964e132 < z

              1. Initial program 71.8%

                \[\frac{x \cdot \left(y - z\right)}{t - z} \]
              2. Add Preprocessing
              3. Taylor expanded in z around inf

                \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{x \cdot y}{z}\right) - -1 \cdot \frac{t \cdot x}{z}} \]
              4. Step-by-step derivation
                1. associate--l+N/A

                  \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{x \cdot y}{z} - -1 \cdot \frac{t \cdot x}{z}\right)} \]
                2. distribute-lft-out--N/A

                  \[\leadsto x + \color{blue}{-1 \cdot \left(\frac{x \cdot y}{z} - \frac{t \cdot x}{z}\right)} \]
                3. div-subN/A

                  \[\leadsto x + -1 \cdot \color{blue}{\frac{x \cdot y - t \cdot x}{z}} \]
                4. +-commutativeN/A

                  \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y - t \cdot x}{z} + x} \]
                5. mul-1-negN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y - t \cdot x}{z}\right)\right)} + x \]
                6. distribute-neg-frac2N/A

                  \[\leadsto \color{blue}{\frac{x \cdot y - t \cdot x}{\mathsf{neg}\left(z\right)}} + x \]
                7. *-commutativeN/A

                  \[\leadsto \frac{x \cdot y - \color{blue}{x \cdot t}}{\mathsf{neg}\left(z\right)} + x \]
                8. distribute-lft-out--N/A

                  \[\leadsto \frac{\color{blue}{x \cdot \left(y - t\right)}}{\mathsf{neg}\left(z\right)} + x \]
                9. mul-1-negN/A

                  \[\leadsto \frac{x \cdot \left(y - t\right)}{\color{blue}{-1 \cdot z}} + x \]
                10. associate-/l*N/A

                  \[\leadsto \color{blue}{x \cdot \frac{y - t}{-1 \cdot z}} + x \]
                11. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(x, \frac{y - t}{-1 \cdot z}, x\right)} \]
                12. lower-/.f64N/A

                  \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{y - t}{-1 \cdot z}}, x\right) \]
                13. lower--.f64N/A

                  \[\leadsto \mathsf{fma}\left(x, \frac{\color{blue}{y - t}}{-1 \cdot z}, x\right) \]
                14. mul-1-negN/A

                  \[\leadsto \mathsf{fma}\left(x, \frac{y - t}{\color{blue}{\mathsf{neg}\left(z\right)}}, x\right) \]
                15. lower-neg.f6499.9

                  \[\leadsto \mathsf{fma}\left(x, \frac{y - t}{\color{blue}{-z}}, x\right) \]
              5. Applied rewrites99.9%

                \[\leadsto \color{blue}{\mathsf{fma}\left(x, \frac{y - t}{-z}, x\right)} \]
            3. Recombined 3 regimes into one program.
            4. Final simplification92.2%

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.4 \cdot 10^{+184}:\\ \;\;\;\;x - \frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 8.6 \cdot 10^{+132}:\\ \;\;\;\;\left(z - y\right) \cdot \frac{x}{z - t}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \frac{t - y}{z}, x\right)\\ \end{array} \]
            5. Add Preprocessing

            Alternative 8: 68.9% accurate, 0.7× speedup?

            \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t \leq -4.5 \cdot 10^{+18}:\\ \;\;\;\;\frac{x\_m}{t} \cdot \left(y - z\right)\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{+57}:\\ \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\ \end{array} \end{array} \]
            x\_m = (fabs.f64 x)
            x\_s = (copysign.f64 #s(literal 1 binary64) x)
            (FPCore (x_s x_m y z t)
             :precision binary64
             (*
              x_s
              (if (<= t -4.5e+18)
                (* (/ x_m t) (- y z))
                (if (<= t 1.7e+57) (- x_m (/ (* y x_m) z)) (/ (* (- y z) x_m) t)))))
            x\_m = fabs(x);
            x\_s = copysign(1.0, x);
            double code(double x_s, double x_m, double y, double z, double t) {
            	double tmp;
            	if (t <= -4.5e+18) {
            		tmp = (x_m / t) * (y - z);
            	} else if (t <= 1.7e+57) {
            		tmp = x_m - ((y * x_m) / z);
            	} else {
            		tmp = ((y - z) * x_m) / t;
            	}
            	return x_s * tmp;
            }
            
            x\_m = abs(x)
            x\_s = copysign(1.0d0, x)
            real(8) function code(x_s, x_m, y, z, t)
                real(8), intent (in) :: x_s
                real(8), intent (in) :: x_m
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8) :: tmp
                if (t <= (-4.5d+18)) then
                    tmp = (x_m / t) * (y - z)
                else if (t <= 1.7d+57) then
                    tmp = x_m - ((y * x_m) / z)
                else
                    tmp = ((y - z) * x_m) / t
                end if
                code = x_s * tmp
            end function
            
            x\_m = Math.abs(x);
            x\_s = Math.copySign(1.0, x);
            public static double code(double x_s, double x_m, double y, double z, double t) {
            	double tmp;
            	if (t <= -4.5e+18) {
            		tmp = (x_m / t) * (y - z);
            	} else if (t <= 1.7e+57) {
            		tmp = x_m - ((y * x_m) / z);
            	} else {
            		tmp = ((y - z) * x_m) / t;
            	}
            	return x_s * tmp;
            }
            
            x\_m = math.fabs(x)
            x\_s = math.copysign(1.0, x)
            def code(x_s, x_m, y, z, t):
            	tmp = 0
            	if t <= -4.5e+18:
            		tmp = (x_m / t) * (y - z)
            	elif t <= 1.7e+57:
            		tmp = x_m - ((y * x_m) / z)
            	else:
            		tmp = ((y - z) * x_m) / t
            	return x_s * tmp
            
            x\_m = abs(x)
            x\_s = copysign(1.0, x)
            function code(x_s, x_m, y, z, t)
            	tmp = 0.0
            	if (t <= -4.5e+18)
            		tmp = Float64(Float64(x_m / t) * Float64(y - z));
            	elseif (t <= 1.7e+57)
            		tmp = Float64(x_m - Float64(Float64(y * x_m) / z));
            	else
            		tmp = Float64(Float64(Float64(y - z) * x_m) / t);
            	end
            	return Float64(x_s * tmp)
            end
            
            x\_m = abs(x);
            x\_s = sign(x) * abs(1.0);
            function tmp_2 = code(x_s, x_m, y, z, t)
            	tmp = 0.0;
            	if (t <= -4.5e+18)
            		tmp = (x_m / t) * (y - z);
            	elseif (t <= 1.7e+57)
            		tmp = x_m - ((y * x_m) / z);
            	else
            		tmp = ((y - z) * x_m) / t;
            	end
            	tmp_2 = x_s * tmp;
            end
            
            x\_m = N[Abs[x], $MachinePrecision]
            x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
            code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[t, -4.5e+18], N[(N[(x$95$m / t), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+57], N[(x$95$m - N[(N[(y * x$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $MachinePrecision]]]), $MachinePrecision]
            
            \begin{array}{l}
            x\_m = \left|x\right|
            \\
            x\_s = \mathsf{copysign}\left(1, x\right)
            
            \\
            x\_s \cdot \begin{array}{l}
            \mathbf{if}\;t \leq -4.5 \cdot 10^{+18}:\\
            \;\;\;\;\frac{x\_m}{t} \cdot \left(y - z\right)\\
            
            \mathbf{elif}\;t \leq 1.7 \cdot 10^{+57}:\\
            \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if t < -4.5e18

              1. Initial program 80.3%

                \[\frac{x \cdot \left(y - z\right)}{t - z} \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. lift-/.f64N/A

                  \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
                2. lift-*.f64N/A

                  \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
                3. *-commutativeN/A

                  \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t - z} \]
                4. associate-/l*N/A

                  \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{x}{t - z}} \]
                5. *-commutativeN/A

                  \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]
                6. lower-*.f64N/A

                  \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]
                7. lower-/.f6484.5

                  \[\leadsto \color{blue}{\frac{x}{t - z}} \cdot \left(y - z\right) \]
              4. Applied rewrites84.5%

                \[\leadsto \color{blue}{\frac{x}{t - z} \cdot \left(y - z\right)} \]
              5. Taylor expanded in t around inf

                \[\leadsto \color{blue}{\frac{x}{t}} \cdot \left(y - z\right) \]
              6. Step-by-step derivation
                1. lower-/.f6471.5

                  \[\leadsto \color{blue}{\frac{x}{t}} \cdot \left(y - z\right) \]
              7. Applied rewrites71.5%

                \[\leadsto \color{blue}{\frac{x}{t}} \cdot \left(y - z\right) \]

              if -4.5e18 < t < 1.69999999999999996e57

              1. Initial program 80.8%

                \[\frac{x \cdot \left(y - z\right)}{t - z} \]
              2. Add Preprocessing
              3. Taylor expanded in t around 0

                \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
              4. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
                2. neg-sub0N/A

                  \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
                3. associate-/l*N/A

                  \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
                4. div-subN/A

                  \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
                5. sub-negN/A

                  \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
                6. *-inversesN/A

                  \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
                7. metadata-evalN/A

                  \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
                8. distribute-lft-outN/A

                  \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
                9. associate-/l*N/A

                  \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
                10. *-commutativeN/A

                  \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
                11. mul-1-negN/A

                  \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                12. unsub-negN/A

                  \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
                13. associate-+l-N/A

                  \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
                14. neg-sub0N/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
                15. mul-1-negN/A

                  \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
                16. +-commutativeN/A

                  \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
                17. mul-1-negN/A

                  \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
                18. unsub-negN/A

                  \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                19. lower--.f64N/A

                  \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                20. lower-/.f64N/A

                  \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
                21. *-commutativeN/A

                  \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
                22. lower-*.f6480.2

                  \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
              5. Applied rewrites80.2%

                \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]

              if 1.69999999999999996e57 < t

              1. Initial program 85.9%

                \[\frac{x \cdot \left(y - z\right)}{t - z} \]
              2. Add Preprocessing
              3. Taylor expanded in t around inf

                \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
              4. Step-by-step derivation
                1. lower-/.f64N/A

                  \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
                2. *-commutativeN/A

                  \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
                3. lower-*.f64N/A

                  \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
                4. lower--.f6473.3

                  \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot x}{t} \]
              5. Applied rewrites73.3%

                \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot x}{t}} \]
            3. Recombined 3 regimes into one program.
            4. Add Preprocessing

            Alternative 9: 71.5% accurate, 0.7× speedup?

            \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -2.1 \cdot 10^{-35}:\\ \;\;\;\;\mathsf{fma}\left(\frac{-x\_m}{z}, y, x\_m\right)\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{+15}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\ \mathbf{else}:\\ \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\ \end{array} \end{array} \]
            x\_m = (fabs.f64 x)
            x\_s = (copysign.f64 #s(literal 1 binary64) x)
            (FPCore (x_s x_m y z t)
             :precision binary64
             (*
              x_s
              (if (<= z -2.1e-35)
                (fma (/ (- x_m) z) y x_m)
                (if (<= z 3.5e+15) (/ (* (- y z) x_m) t) (- x_m (/ (* y x_m) z))))))
            x\_m = fabs(x);
            x\_s = copysign(1.0, x);
            double code(double x_s, double x_m, double y, double z, double t) {
            	double tmp;
            	if (z <= -2.1e-35) {
            		tmp = fma((-x_m / z), y, x_m);
            	} else if (z <= 3.5e+15) {
            		tmp = ((y - z) * x_m) / t;
            	} else {
            		tmp = x_m - ((y * x_m) / z);
            	}
            	return x_s * tmp;
            }
            
            x\_m = abs(x)
            x\_s = copysign(1.0, x)
            function code(x_s, x_m, y, z, t)
            	tmp = 0.0
            	if (z <= -2.1e-35)
            		tmp = fma(Float64(Float64(-x_m) / z), y, x_m);
            	elseif (z <= 3.5e+15)
            		tmp = Float64(Float64(Float64(y - z) * x_m) / t);
            	else
            		tmp = Float64(x_m - Float64(Float64(y * x_m) / z));
            	end
            	return Float64(x_s * tmp)
            end
            
            x\_m = N[Abs[x], $MachinePrecision]
            x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
            code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -2.1e-35], N[(N[((-x$95$m) / z), $MachinePrecision] * y + x$95$m), $MachinePrecision], If[LessEqual[z, 3.5e+15], N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $MachinePrecision], N[(x$95$m - N[(N[(y * x$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]), $MachinePrecision]
            
            \begin{array}{l}
            x\_m = \left|x\right|
            \\
            x\_s = \mathsf{copysign}\left(1, x\right)
            
            \\
            x\_s \cdot \begin{array}{l}
            \mathbf{if}\;z \leq -2.1 \cdot 10^{-35}:\\
            \;\;\;\;\mathsf{fma}\left(\frac{-x\_m}{z}, y, x\_m\right)\\
            
            \mathbf{elif}\;z \leq 3.5 \cdot 10^{+15}:\\
            \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\
            
            \mathbf{else}:\\
            \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -2.1e-35

              1. Initial program 74.7%

                \[\frac{x \cdot \left(y - z\right)}{t - z} \]
              2. Add Preprocessing
              3. Taylor expanded in t around 0

                \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
              4. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
                2. neg-sub0N/A

                  \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
                3. associate-/l*N/A

                  \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
                4. div-subN/A

                  \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
                5. sub-negN/A

                  \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
                6. *-inversesN/A

                  \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
                7. metadata-evalN/A

                  \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
                8. distribute-lft-outN/A

                  \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
                9. associate-/l*N/A

                  \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
                10. *-commutativeN/A

                  \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
                11. mul-1-negN/A

                  \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                12. unsub-negN/A

                  \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
                13. associate-+l-N/A

                  \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
                14. neg-sub0N/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
                15. mul-1-negN/A

                  \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
                16. +-commutativeN/A

                  \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
                17. mul-1-negN/A

                  \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
                18. unsub-negN/A

                  \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                19. lower--.f64N/A

                  \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                20. lower-/.f64N/A

                  \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
                21. *-commutativeN/A

                  \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
                22. lower-*.f6470.3

                  \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
              5. Applied rewrites70.3%

                \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]
              6. Step-by-step derivation
                1. Applied rewrites72.6%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{-x}{z}, y, x\right)} \]

                if -2.1e-35 < z < 3.5e15

                1. Initial program 92.0%

                  \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                2. Add Preprocessing
                3. Taylor expanded in t around inf

                  \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
                4. Step-by-step derivation
                  1. lower-/.f64N/A

                    \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
                  2. *-commutativeN/A

                    \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
                  3. lower-*.f64N/A

                    \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
                  4. lower--.f6477.8

                    \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot x}{t} \]
                5. Applied rewrites77.8%

                  \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot x}{t}} \]

                if 3.5e15 < z

                1. Initial program 74.2%

                  \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                2. Add Preprocessing
                3. Taylor expanded in t around 0

                  \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
                4. Step-by-step derivation
                  1. mul-1-negN/A

                    \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
                  2. neg-sub0N/A

                    \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
                  3. associate-/l*N/A

                    \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
                  4. div-subN/A

                    \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
                  5. sub-negN/A

                    \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
                  6. *-inversesN/A

                    \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
                  7. metadata-evalN/A

                    \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
                  8. distribute-lft-outN/A

                    \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
                  9. associate-/l*N/A

                    \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
                  10. *-commutativeN/A

                    \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
                  11. mul-1-negN/A

                    \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                  12. unsub-negN/A

                    \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
                  13. associate-+l-N/A

                    \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
                  14. neg-sub0N/A

                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
                  15. mul-1-negN/A

                    \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
                  16. +-commutativeN/A

                    \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
                  17. mul-1-negN/A

                    \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
                  18. unsub-negN/A

                    \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                  19. lower--.f64N/A

                    \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                  20. lower-/.f64N/A

                    \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
                  21. *-commutativeN/A

                    \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
                  22. lower-*.f6477.4

                    \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
                5. Applied rewrites77.4%

                  \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]
              7. Recombined 3 regimes into one program.
              8. Add Preprocessing

              Alternative 10: 68.9% accurate, 0.7× speedup?

              \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{\left(y - z\right) \cdot x\_m}{t}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;t \leq -4.5 \cdot 10^{+18}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{+57}:\\ \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \end{array} \]
              x\_m = (fabs.f64 x)
              x\_s = (copysign.f64 #s(literal 1 binary64) x)
              (FPCore (x_s x_m y z t)
               :precision binary64
               (let* ((t_1 (/ (* (- y z) x_m) t)))
                 (*
                  x_s
                  (if (<= t -4.5e+18) t_1 (if (<= t 1.7e+57) (- x_m (/ (* y x_m) z)) t_1)))))
              x\_m = fabs(x);
              x\_s = copysign(1.0, x);
              double code(double x_s, double x_m, double y, double z, double t) {
              	double t_1 = ((y - z) * x_m) / t;
              	double tmp;
              	if (t <= -4.5e+18) {
              		tmp = t_1;
              	} else if (t <= 1.7e+57) {
              		tmp = x_m - ((y * x_m) / z);
              	} else {
              		tmp = t_1;
              	}
              	return x_s * tmp;
              }
              
              x\_m = abs(x)
              x\_s = copysign(1.0d0, x)
              real(8) function code(x_s, x_m, y, z, t)
                  real(8), intent (in) :: x_s
                  real(8), intent (in) :: x_m
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8) :: t_1
                  real(8) :: tmp
                  t_1 = ((y - z) * x_m) / t
                  if (t <= (-4.5d+18)) then
                      tmp = t_1
                  else if (t <= 1.7d+57) then
                      tmp = x_m - ((y * x_m) / z)
                  else
                      tmp = t_1
                  end if
                  code = x_s * tmp
              end function
              
              x\_m = Math.abs(x);
              x\_s = Math.copySign(1.0, x);
              public static double code(double x_s, double x_m, double y, double z, double t) {
              	double t_1 = ((y - z) * x_m) / t;
              	double tmp;
              	if (t <= -4.5e+18) {
              		tmp = t_1;
              	} else if (t <= 1.7e+57) {
              		tmp = x_m - ((y * x_m) / z);
              	} else {
              		tmp = t_1;
              	}
              	return x_s * tmp;
              }
              
              x\_m = math.fabs(x)
              x\_s = math.copysign(1.0, x)
              def code(x_s, x_m, y, z, t):
              	t_1 = ((y - z) * x_m) / t
              	tmp = 0
              	if t <= -4.5e+18:
              		tmp = t_1
              	elif t <= 1.7e+57:
              		tmp = x_m - ((y * x_m) / z)
              	else:
              		tmp = t_1
              	return x_s * tmp
              
              x\_m = abs(x)
              x\_s = copysign(1.0, x)
              function code(x_s, x_m, y, z, t)
              	t_1 = Float64(Float64(Float64(y - z) * x_m) / t)
              	tmp = 0.0
              	if (t <= -4.5e+18)
              		tmp = t_1;
              	elseif (t <= 1.7e+57)
              		tmp = Float64(x_m - Float64(Float64(y * x_m) / z));
              	else
              		tmp = t_1;
              	end
              	return Float64(x_s * tmp)
              end
              
              x\_m = abs(x);
              x\_s = sign(x) * abs(1.0);
              function tmp_2 = code(x_s, x_m, y, z, t)
              	t_1 = ((y - z) * x_m) / t;
              	tmp = 0.0;
              	if (t <= -4.5e+18)
              		tmp = t_1;
              	elseif (t <= 1.7e+57)
              		tmp = x_m - ((y * x_m) / z);
              	else
              		tmp = t_1;
              	end
              	tmp_2 = x_s * tmp;
              end
              
              x\_m = N[Abs[x], $MachinePrecision]
              x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
              code[x$95$s_, x$95$m_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $MachinePrecision]}, N[(x$95$s * If[LessEqual[t, -4.5e+18], t$95$1, If[LessEqual[t, 1.7e+57], N[(x$95$m - N[(N[(y * x$95$m), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]), $MachinePrecision]]
              
              \begin{array}{l}
              x\_m = \left|x\right|
              \\
              x\_s = \mathsf{copysign}\left(1, x\right)
              
              \\
              \begin{array}{l}
              t_1 := \frac{\left(y - z\right) \cdot x\_m}{t}\\
              x\_s \cdot \begin{array}{l}
              \mathbf{if}\;t \leq -4.5 \cdot 10^{+18}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;t \leq 1.7 \cdot 10^{+57}:\\
              \;\;\;\;x\_m - \frac{y \cdot x\_m}{z}\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if t < -4.5e18 or 1.69999999999999996e57 < t

                1. Initial program 83.2%

                  \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                2. Add Preprocessing
                3. Taylor expanded in t around inf

                  \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
                4. Step-by-step derivation
                  1. lower-/.f64N/A

                    \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
                  2. *-commutativeN/A

                    \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
                  3. lower-*.f64N/A

                    \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot x}}{t} \]
                  4. lower--.f6470.5

                    \[\leadsto \frac{\color{blue}{\left(y - z\right)} \cdot x}{t} \]
                5. Applied rewrites70.5%

                  \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot x}{t}} \]

                if -4.5e18 < t < 1.69999999999999996e57

                1. Initial program 80.8%

                  \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                2. Add Preprocessing
                3. Taylor expanded in t around 0

                  \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot \left(y - z\right)}{z}} \]
                4. Step-by-step derivation
                  1. mul-1-negN/A

                    \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{x \cdot \left(y - z\right)}{z}\right)} \]
                  2. neg-sub0N/A

                    \[\leadsto \color{blue}{0 - \frac{x \cdot \left(y - z\right)}{z}} \]
                  3. associate-/l*N/A

                    \[\leadsto 0 - \color{blue}{x \cdot \frac{y - z}{z}} \]
                  4. div-subN/A

                    \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)} \]
                  5. sub-negN/A

                    \[\leadsto 0 - x \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)} \]
                  6. *-inversesN/A

                    \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right) \]
                  7. metadata-evalN/A

                    \[\leadsto 0 - x \cdot \left(\frac{y}{z} + \color{blue}{-1}\right) \]
                  8. distribute-lft-outN/A

                    \[\leadsto 0 - \color{blue}{\left(x \cdot \frac{y}{z} + x \cdot -1\right)} \]
                  9. associate-/l*N/A

                    \[\leadsto 0 - \left(\color{blue}{\frac{x \cdot y}{z}} + x \cdot -1\right) \]
                  10. *-commutativeN/A

                    \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{-1 \cdot x}\right) \]
                  11. mul-1-negN/A

                    \[\leadsto 0 - \left(\frac{x \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                  12. unsub-negN/A

                    \[\leadsto 0 - \color{blue}{\left(\frac{x \cdot y}{z} - x\right)} \]
                  13. associate-+l-N/A

                    \[\leadsto \color{blue}{\left(0 - \frac{x \cdot y}{z}\right) + x} \]
                  14. neg-sub0N/A

                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} + x \]
                  15. mul-1-negN/A

                    \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot y}{z}} + x \]
                  16. +-commutativeN/A

                    \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{z}} \]
                  17. mul-1-negN/A

                    \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{x \cdot y}{z}\right)\right)} \]
                  18. unsub-negN/A

                    \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                  19. lower--.f64N/A

                    \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
                  20. lower-/.f64N/A

                    \[\leadsto x - \color{blue}{\frac{x \cdot y}{z}} \]
                  21. *-commutativeN/A

                    \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
                  22. lower-*.f6480.2

                    \[\leadsto x - \frac{\color{blue}{y \cdot x}}{z} \]
                5. Applied rewrites80.2%

                  \[\leadsto \color{blue}{x - \frac{y \cdot x}{z}} \]
              3. Recombined 2 regimes into one program.
              4. Add Preprocessing

              Alternative 11: 67.9% accurate, 0.7× speedup?

              \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -4.6 \cdot 10^{+99}:\\ \;\;\;\;1 \cdot x\_m\\ \mathbf{elif}\;z \leq 3 \cdot 10^{+16}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\_m\\ \end{array} \end{array} \]
              x\_m = (fabs.f64 x)
              x\_s = (copysign.f64 #s(literal 1 binary64) x)
              (FPCore (x_s x_m y z t)
               :precision binary64
               (*
                x_s
                (if (<= z -4.6e+99)
                  (* 1.0 x_m)
                  (if (<= z 3e+16) (* (/ x_m (- t z)) y) (* 1.0 x_m)))))
              x\_m = fabs(x);
              x\_s = copysign(1.0, x);
              double code(double x_s, double x_m, double y, double z, double t) {
              	double tmp;
              	if (z <= -4.6e+99) {
              		tmp = 1.0 * x_m;
              	} else if (z <= 3e+16) {
              		tmp = (x_m / (t - z)) * y;
              	} else {
              		tmp = 1.0 * x_m;
              	}
              	return x_s * tmp;
              }
              
              x\_m = abs(x)
              x\_s = copysign(1.0d0, x)
              real(8) function code(x_s, x_m, y, z, t)
                  real(8), intent (in) :: x_s
                  real(8), intent (in) :: x_m
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8) :: tmp
                  if (z <= (-4.6d+99)) then
                      tmp = 1.0d0 * x_m
                  else if (z <= 3d+16) then
                      tmp = (x_m / (t - z)) * y
                  else
                      tmp = 1.0d0 * x_m
                  end if
                  code = x_s * tmp
              end function
              
              x\_m = Math.abs(x);
              x\_s = Math.copySign(1.0, x);
              public static double code(double x_s, double x_m, double y, double z, double t) {
              	double tmp;
              	if (z <= -4.6e+99) {
              		tmp = 1.0 * x_m;
              	} else if (z <= 3e+16) {
              		tmp = (x_m / (t - z)) * y;
              	} else {
              		tmp = 1.0 * x_m;
              	}
              	return x_s * tmp;
              }
              
              x\_m = math.fabs(x)
              x\_s = math.copysign(1.0, x)
              def code(x_s, x_m, y, z, t):
              	tmp = 0
              	if z <= -4.6e+99:
              		tmp = 1.0 * x_m
              	elif z <= 3e+16:
              		tmp = (x_m / (t - z)) * y
              	else:
              		tmp = 1.0 * x_m
              	return x_s * tmp
              
              x\_m = abs(x)
              x\_s = copysign(1.0, x)
              function code(x_s, x_m, y, z, t)
              	tmp = 0.0
              	if (z <= -4.6e+99)
              		tmp = Float64(1.0 * x_m);
              	elseif (z <= 3e+16)
              		tmp = Float64(Float64(x_m / Float64(t - z)) * y);
              	else
              		tmp = Float64(1.0 * x_m);
              	end
              	return Float64(x_s * tmp)
              end
              
              x\_m = abs(x);
              x\_s = sign(x) * abs(1.0);
              function tmp_2 = code(x_s, x_m, y, z, t)
              	tmp = 0.0;
              	if (z <= -4.6e+99)
              		tmp = 1.0 * x_m;
              	elseif (z <= 3e+16)
              		tmp = (x_m / (t - z)) * y;
              	else
              		tmp = 1.0 * x_m;
              	end
              	tmp_2 = x_s * tmp;
              end
              
              x\_m = N[Abs[x], $MachinePrecision]
              x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
              code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -4.6e+99], N[(1.0 * x$95$m), $MachinePrecision], If[LessEqual[z, 3e+16], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(1.0 * x$95$m), $MachinePrecision]]]), $MachinePrecision]
              
              \begin{array}{l}
              x\_m = \left|x\right|
              \\
              x\_s = \mathsf{copysign}\left(1, x\right)
              
              \\
              x\_s \cdot \begin{array}{l}
              \mathbf{if}\;z \leq -4.6 \cdot 10^{+99}:\\
              \;\;\;\;1 \cdot x\_m\\
              
              \mathbf{elif}\;z \leq 3 \cdot 10^{+16}:\\
              \;\;\;\;\frac{x\_m}{t - z} \cdot y\\
              
              \mathbf{else}:\\
              \;\;\;\;1 \cdot x\_m\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -4.60000000000000038e99 or 3e16 < z

                1. Initial program 70.7%

                  \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. lift-/.f64N/A

                    \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
                  2. lift-*.f64N/A

                    \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
                  3. associate-/l*N/A

                    \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
                  4. *-commutativeN/A

                    \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                  5. lower-*.f64N/A

                    \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                  6. lower-/.f6499.9

                    \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
                4. Applied rewrites99.9%

                  \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                5. Taylor expanded in z around inf

                  \[\leadsto \color{blue}{1} \cdot x \]
                6. Step-by-step derivation
                  1. Applied rewrites70.8%

                    \[\leadsto \color{blue}{1} \cdot x \]

                  if -4.60000000000000038e99 < z < 3e16

                  1. Initial program 90.7%

                    \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                  2. Add Preprocessing
                  3. Taylor expanded in y around inf

                    \[\leadsto \color{blue}{\frac{x \cdot y}{t - z}} \]
                  4. Step-by-step derivation
                    1. associate-*l/N/A

                      \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]
                    2. lower-*.f64N/A

                      \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]
                    3. lower-/.f64N/A

                      \[\leadsto \color{blue}{\frac{x}{t - z}} \cdot y \]
                    4. lower--.f6464.8

                      \[\leadsto \frac{x}{\color{blue}{t - z}} \cdot y \]
                  5. Applied rewrites64.8%

                    \[\leadsto \color{blue}{\frac{x}{t - z} \cdot y} \]
                7. Recombined 2 regimes into one program.
                8. Add Preprocessing

                Alternative 12: 61.4% accurate, 0.8× speedup?

                \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -2.5 \cdot 10^{+52}:\\ \;\;\;\;1 \cdot x\_m\\ \mathbf{elif}\;z \leq 2.9 \cdot 10^{+16}:\\ \;\;\;\;\frac{y}{t} \cdot x\_m\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\_m\\ \end{array} \end{array} \]
                x\_m = (fabs.f64 x)
                x\_s = (copysign.f64 #s(literal 1 binary64) x)
                (FPCore (x_s x_m y z t)
                 :precision binary64
                 (*
                  x_s
                  (if (<= z -2.5e+52)
                    (* 1.0 x_m)
                    (if (<= z 2.9e+16) (* (/ y t) x_m) (* 1.0 x_m)))))
                x\_m = fabs(x);
                x\_s = copysign(1.0, x);
                double code(double x_s, double x_m, double y, double z, double t) {
                	double tmp;
                	if (z <= -2.5e+52) {
                		tmp = 1.0 * x_m;
                	} else if (z <= 2.9e+16) {
                		tmp = (y / t) * x_m;
                	} else {
                		tmp = 1.0 * x_m;
                	}
                	return x_s * tmp;
                }
                
                x\_m = abs(x)
                x\_s = copysign(1.0d0, x)
                real(8) function code(x_s, x_m, y, z, t)
                    real(8), intent (in) :: x_s
                    real(8), intent (in) :: x_m
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    real(8) :: tmp
                    if (z <= (-2.5d+52)) then
                        tmp = 1.0d0 * x_m
                    else if (z <= 2.9d+16) then
                        tmp = (y / t) * x_m
                    else
                        tmp = 1.0d0 * x_m
                    end if
                    code = x_s * tmp
                end function
                
                x\_m = Math.abs(x);
                x\_s = Math.copySign(1.0, x);
                public static double code(double x_s, double x_m, double y, double z, double t) {
                	double tmp;
                	if (z <= -2.5e+52) {
                		tmp = 1.0 * x_m;
                	} else if (z <= 2.9e+16) {
                		tmp = (y / t) * x_m;
                	} else {
                		tmp = 1.0 * x_m;
                	}
                	return x_s * tmp;
                }
                
                x\_m = math.fabs(x)
                x\_s = math.copysign(1.0, x)
                def code(x_s, x_m, y, z, t):
                	tmp = 0
                	if z <= -2.5e+52:
                		tmp = 1.0 * x_m
                	elif z <= 2.9e+16:
                		tmp = (y / t) * x_m
                	else:
                		tmp = 1.0 * x_m
                	return x_s * tmp
                
                x\_m = abs(x)
                x\_s = copysign(1.0, x)
                function code(x_s, x_m, y, z, t)
                	tmp = 0.0
                	if (z <= -2.5e+52)
                		tmp = Float64(1.0 * x_m);
                	elseif (z <= 2.9e+16)
                		tmp = Float64(Float64(y / t) * x_m);
                	else
                		tmp = Float64(1.0 * x_m);
                	end
                	return Float64(x_s * tmp)
                end
                
                x\_m = abs(x);
                x\_s = sign(x) * abs(1.0);
                function tmp_2 = code(x_s, x_m, y, z, t)
                	tmp = 0.0;
                	if (z <= -2.5e+52)
                		tmp = 1.0 * x_m;
                	elseif (z <= 2.9e+16)
                		tmp = (y / t) * x_m;
                	else
                		tmp = 1.0 * x_m;
                	end
                	tmp_2 = x_s * tmp;
                end
                
                x\_m = N[Abs[x], $MachinePrecision]
                x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -2.5e+52], N[(1.0 * x$95$m), $MachinePrecision], If[LessEqual[z, 2.9e+16], N[(N[(y / t), $MachinePrecision] * x$95$m), $MachinePrecision], N[(1.0 * x$95$m), $MachinePrecision]]]), $MachinePrecision]
                
                \begin{array}{l}
                x\_m = \left|x\right|
                \\
                x\_s = \mathsf{copysign}\left(1, x\right)
                
                \\
                x\_s \cdot \begin{array}{l}
                \mathbf{if}\;z \leq -2.5 \cdot 10^{+52}:\\
                \;\;\;\;1 \cdot x\_m\\
                
                \mathbf{elif}\;z \leq 2.9 \cdot 10^{+16}:\\
                \;\;\;\;\frac{y}{t} \cdot x\_m\\
                
                \mathbf{else}:\\
                \;\;\;\;1 \cdot x\_m\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if z < -2.5e52 or 2.9e16 < z

                  1. Initial program 71.3%

                    \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                  2. Add Preprocessing
                  3. Step-by-step derivation
                    1. lift-/.f64N/A

                      \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
                    2. lift-*.f64N/A

                      \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
                    3. associate-/l*N/A

                      \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
                    4. *-commutativeN/A

                      \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                    5. lower-*.f64N/A

                      \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                    6. lower-/.f6499.9

                      \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
                  4. Applied rewrites99.9%

                    \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                  5. Taylor expanded in z around inf

                    \[\leadsto \color{blue}{1} \cdot x \]
                  6. Step-by-step derivation
                    1. Applied rewrites67.3%

                      \[\leadsto \color{blue}{1} \cdot x \]

                    if -2.5e52 < z < 2.9e16

                    1. Initial program 92.0%

                      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. lift-/.f64N/A

                        \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
                      2. lift-*.f64N/A

                        \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
                      3. associate-/l*N/A

                        \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
                      4. *-commutativeN/A

                        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                      5. lower-*.f64N/A

                        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                      6. lower-/.f6491.6

                        \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
                    4. Applied rewrites91.6%

                      \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                    5. Taylor expanded in z around 0

                      \[\leadsto \color{blue}{\frac{y}{t}} \cdot x \]
                    6. Step-by-step derivation
                      1. lower-/.f6459.6

                        \[\leadsto \color{blue}{\frac{y}{t}} \cdot x \]
                    7. Applied rewrites59.6%

                      \[\leadsto \color{blue}{\frac{y}{t}} \cdot x \]
                  7. Recombined 2 regimes into one program.
                  8. Add Preprocessing

                  Alternative 13: 60.0% accurate, 0.8× speedup?

                  \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -2.5 \cdot 10^{+52}:\\ \;\;\;\;1 \cdot x\_m\\ \mathbf{elif}\;z \leq 2.7 \cdot 10^{+16}:\\ \;\;\;\;\frac{y \cdot x\_m}{t}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\_m\\ \end{array} \end{array} \]
                  x\_m = (fabs.f64 x)
                  x\_s = (copysign.f64 #s(literal 1 binary64) x)
                  (FPCore (x_s x_m y z t)
                   :precision binary64
                   (*
                    x_s
                    (if (<= z -2.5e+52)
                      (* 1.0 x_m)
                      (if (<= z 2.7e+16) (/ (* y x_m) t) (* 1.0 x_m)))))
                  x\_m = fabs(x);
                  x\_s = copysign(1.0, x);
                  double code(double x_s, double x_m, double y, double z, double t) {
                  	double tmp;
                  	if (z <= -2.5e+52) {
                  		tmp = 1.0 * x_m;
                  	} else if (z <= 2.7e+16) {
                  		tmp = (y * x_m) / t;
                  	} else {
                  		tmp = 1.0 * x_m;
                  	}
                  	return x_s * tmp;
                  }
                  
                  x\_m = abs(x)
                  x\_s = copysign(1.0d0, x)
                  real(8) function code(x_s, x_m, y, z, t)
                      real(8), intent (in) :: x_s
                      real(8), intent (in) :: x_m
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8) :: tmp
                      if (z <= (-2.5d+52)) then
                          tmp = 1.0d0 * x_m
                      else if (z <= 2.7d+16) then
                          tmp = (y * x_m) / t
                      else
                          tmp = 1.0d0 * x_m
                      end if
                      code = x_s * tmp
                  end function
                  
                  x\_m = Math.abs(x);
                  x\_s = Math.copySign(1.0, x);
                  public static double code(double x_s, double x_m, double y, double z, double t) {
                  	double tmp;
                  	if (z <= -2.5e+52) {
                  		tmp = 1.0 * x_m;
                  	} else if (z <= 2.7e+16) {
                  		tmp = (y * x_m) / t;
                  	} else {
                  		tmp = 1.0 * x_m;
                  	}
                  	return x_s * tmp;
                  }
                  
                  x\_m = math.fabs(x)
                  x\_s = math.copysign(1.0, x)
                  def code(x_s, x_m, y, z, t):
                  	tmp = 0
                  	if z <= -2.5e+52:
                  		tmp = 1.0 * x_m
                  	elif z <= 2.7e+16:
                  		tmp = (y * x_m) / t
                  	else:
                  		tmp = 1.0 * x_m
                  	return x_s * tmp
                  
                  x\_m = abs(x)
                  x\_s = copysign(1.0, x)
                  function code(x_s, x_m, y, z, t)
                  	tmp = 0.0
                  	if (z <= -2.5e+52)
                  		tmp = Float64(1.0 * x_m);
                  	elseif (z <= 2.7e+16)
                  		tmp = Float64(Float64(y * x_m) / t);
                  	else
                  		tmp = Float64(1.0 * x_m);
                  	end
                  	return Float64(x_s * tmp)
                  end
                  
                  x\_m = abs(x);
                  x\_s = sign(x) * abs(1.0);
                  function tmp_2 = code(x_s, x_m, y, z, t)
                  	tmp = 0.0;
                  	if (z <= -2.5e+52)
                  		tmp = 1.0 * x_m;
                  	elseif (z <= 2.7e+16)
                  		tmp = (y * x_m) / t;
                  	else
                  		tmp = 1.0 * x_m;
                  	end
                  	tmp_2 = x_s * tmp;
                  end
                  
                  x\_m = N[Abs[x], $MachinePrecision]
                  x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                  code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -2.5e+52], N[(1.0 * x$95$m), $MachinePrecision], If[LessEqual[z, 2.7e+16], N[(N[(y * x$95$m), $MachinePrecision] / t), $MachinePrecision], N[(1.0 * x$95$m), $MachinePrecision]]]), $MachinePrecision]
                  
                  \begin{array}{l}
                  x\_m = \left|x\right|
                  \\
                  x\_s = \mathsf{copysign}\left(1, x\right)
                  
                  \\
                  x\_s \cdot \begin{array}{l}
                  \mathbf{if}\;z \leq -2.5 \cdot 10^{+52}:\\
                  \;\;\;\;1 \cdot x\_m\\
                  
                  \mathbf{elif}\;z \leq 2.7 \cdot 10^{+16}:\\
                  \;\;\;\;\frac{y \cdot x\_m}{t}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;1 \cdot x\_m\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if z < -2.5e52 or 2.7e16 < z

                    1. Initial program 71.3%

                      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                    2. Add Preprocessing
                    3. Step-by-step derivation
                      1. lift-/.f64N/A

                        \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
                      2. lift-*.f64N/A

                        \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
                      3. associate-/l*N/A

                        \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
                      4. *-commutativeN/A

                        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                      5. lower-*.f64N/A

                        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                      6. lower-/.f6499.9

                        \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
                    4. Applied rewrites99.9%

                      \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                    5. Taylor expanded in z around inf

                      \[\leadsto \color{blue}{1} \cdot x \]
                    6. Step-by-step derivation
                      1. Applied rewrites67.3%

                        \[\leadsto \color{blue}{1} \cdot x \]

                      if -2.5e52 < z < 2.7e16

                      1. Initial program 92.0%

                        \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                      2. Add Preprocessing
                      3. Taylor expanded in z around 0

                        \[\leadsto \color{blue}{\frac{x \cdot y}{t}} \]
                      4. Step-by-step derivation
                        1. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{x \cdot y}{t}} \]
                        2. *-commutativeN/A

                          \[\leadsto \frac{\color{blue}{y \cdot x}}{t} \]
                        3. lower-*.f6457.6

                          \[\leadsto \frac{\color{blue}{y \cdot x}}{t} \]
                      5. Applied rewrites57.6%

                        \[\leadsto \color{blue}{\frac{y \cdot x}{t}} \]
                    7. Recombined 2 regimes into one program.
                    8. Add Preprocessing

                    Alternative 14: 59.6% accurate, 0.8× speedup?

                    \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -5.8 \cdot 10^{+50}:\\ \;\;\;\;1 \cdot x\_m\\ \mathbf{elif}\;z \leq 2.7 \cdot 10^{+16}:\\ \;\;\;\;\frac{x\_m}{t} \cdot y\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\_m\\ \end{array} \end{array} \]
                    x\_m = (fabs.f64 x)
                    x\_s = (copysign.f64 #s(literal 1 binary64) x)
                    (FPCore (x_s x_m y z t)
                     :precision binary64
                     (*
                      x_s
                      (if (<= z -5.8e+50)
                        (* 1.0 x_m)
                        (if (<= z 2.7e+16) (* (/ x_m t) y) (* 1.0 x_m)))))
                    x\_m = fabs(x);
                    x\_s = copysign(1.0, x);
                    double code(double x_s, double x_m, double y, double z, double t) {
                    	double tmp;
                    	if (z <= -5.8e+50) {
                    		tmp = 1.0 * x_m;
                    	} else if (z <= 2.7e+16) {
                    		tmp = (x_m / t) * y;
                    	} else {
                    		tmp = 1.0 * x_m;
                    	}
                    	return x_s * tmp;
                    }
                    
                    x\_m = abs(x)
                    x\_s = copysign(1.0d0, x)
                    real(8) function code(x_s, x_m, y, z, t)
                        real(8), intent (in) :: x_s
                        real(8), intent (in) :: x_m
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8) :: tmp
                        if (z <= (-5.8d+50)) then
                            tmp = 1.0d0 * x_m
                        else if (z <= 2.7d+16) then
                            tmp = (x_m / t) * y
                        else
                            tmp = 1.0d0 * x_m
                        end if
                        code = x_s * tmp
                    end function
                    
                    x\_m = Math.abs(x);
                    x\_s = Math.copySign(1.0, x);
                    public static double code(double x_s, double x_m, double y, double z, double t) {
                    	double tmp;
                    	if (z <= -5.8e+50) {
                    		tmp = 1.0 * x_m;
                    	} else if (z <= 2.7e+16) {
                    		tmp = (x_m / t) * y;
                    	} else {
                    		tmp = 1.0 * x_m;
                    	}
                    	return x_s * tmp;
                    }
                    
                    x\_m = math.fabs(x)
                    x\_s = math.copysign(1.0, x)
                    def code(x_s, x_m, y, z, t):
                    	tmp = 0
                    	if z <= -5.8e+50:
                    		tmp = 1.0 * x_m
                    	elif z <= 2.7e+16:
                    		tmp = (x_m / t) * y
                    	else:
                    		tmp = 1.0 * x_m
                    	return x_s * tmp
                    
                    x\_m = abs(x)
                    x\_s = copysign(1.0, x)
                    function code(x_s, x_m, y, z, t)
                    	tmp = 0.0
                    	if (z <= -5.8e+50)
                    		tmp = Float64(1.0 * x_m);
                    	elseif (z <= 2.7e+16)
                    		tmp = Float64(Float64(x_m / t) * y);
                    	else
                    		tmp = Float64(1.0 * x_m);
                    	end
                    	return Float64(x_s * tmp)
                    end
                    
                    x\_m = abs(x);
                    x\_s = sign(x) * abs(1.0);
                    function tmp_2 = code(x_s, x_m, y, z, t)
                    	tmp = 0.0;
                    	if (z <= -5.8e+50)
                    		tmp = 1.0 * x_m;
                    	elseif (z <= 2.7e+16)
                    		tmp = (x_m / t) * y;
                    	else
                    		tmp = 1.0 * x_m;
                    	end
                    	tmp_2 = x_s * tmp;
                    end
                    
                    x\_m = N[Abs[x], $MachinePrecision]
                    x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                    code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * If[LessEqual[z, -5.8e+50], N[(1.0 * x$95$m), $MachinePrecision], If[LessEqual[z, 2.7e+16], N[(N[(x$95$m / t), $MachinePrecision] * y), $MachinePrecision], N[(1.0 * x$95$m), $MachinePrecision]]]), $MachinePrecision]
                    
                    \begin{array}{l}
                    x\_m = \left|x\right|
                    \\
                    x\_s = \mathsf{copysign}\left(1, x\right)
                    
                    \\
                    x\_s \cdot \begin{array}{l}
                    \mathbf{if}\;z \leq -5.8 \cdot 10^{+50}:\\
                    \;\;\;\;1 \cdot x\_m\\
                    
                    \mathbf{elif}\;z \leq 2.7 \cdot 10^{+16}:\\
                    \;\;\;\;\frac{x\_m}{t} \cdot y\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;1 \cdot x\_m\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if z < -5.8e50 or 2.7e16 < z

                      1. Initial program 71.3%

                        \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
                        2. lift-*.f64N/A

                          \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
                        3. associate-/l*N/A

                          \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
                        4. *-commutativeN/A

                          \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                        5. lower-*.f64N/A

                          \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                        6. lower-/.f6499.9

                          \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
                      4. Applied rewrites99.9%

                        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                      5. Taylor expanded in z around inf

                        \[\leadsto \color{blue}{1} \cdot x \]
                      6. Step-by-step derivation
                        1. Applied rewrites67.3%

                          \[\leadsto \color{blue}{1} \cdot x \]

                        if -5.8e50 < z < 2.7e16

                        1. Initial program 92.0%

                          \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                        2. Add Preprocessing
                        3. Taylor expanded in z around 0

                          \[\leadsto \color{blue}{\frac{x \cdot y}{t}} \]
                        4. Step-by-step derivation
                          1. lower-/.f64N/A

                            \[\leadsto \color{blue}{\frac{x \cdot y}{t}} \]
                          2. *-commutativeN/A

                            \[\leadsto \frac{\color{blue}{y \cdot x}}{t} \]
                          3. lower-*.f6457.6

                            \[\leadsto \frac{\color{blue}{y \cdot x}}{t} \]
                        5. Applied rewrites57.6%

                          \[\leadsto \color{blue}{\frac{y \cdot x}{t}} \]
                        6. Step-by-step derivation
                          1. Applied rewrites55.7%

                            \[\leadsto \frac{x}{t} \cdot \color{blue}{y} \]
                        7. Recombined 2 regimes into one program.
                        8. Add Preprocessing

                        Alternative 15: 34.3% accurate, 3.8× speedup?

                        \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ x\_s \cdot \left(1 \cdot x\_m\right) \end{array} \]
                        x\_m = (fabs.f64 x)
                        x\_s = (copysign.f64 #s(literal 1 binary64) x)
                        (FPCore (x_s x_m y z t) :precision binary64 (* x_s (* 1.0 x_m)))
                        x\_m = fabs(x);
                        x\_s = copysign(1.0, x);
                        double code(double x_s, double x_m, double y, double z, double t) {
                        	return x_s * (1.0 * x_m);
                        }
                        
                        x\_m = abs(x)
                        x\_s = copysign(1.0d0, x)
                        real(8) function code(x_s, x_m, y, z, t)
                            real(8), intent (in) :: x_s
                            real(8), intent (in) :: x_m
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            code = x_s * (1.0d0 * x_m)
                        end function
                        
                        x\_m = Math.abs(x);
                        x\_s = Math.copySign(1.0, x);
                        public static double code(double x_s, double x_m, double y, double z, double t) {
                        	return x_s * (1.0 * x_m);
                        }
                        
                        x\_m = math.fabs(x)
                        x\_s = math.copysign(1.0, x)
                        def code(x_s, x_m, y, z, t):
                        	return x_s * (1.0 * x_m)
                        
                        x\_m = abs(x)
                        x\_s = copysign(1.0, x)
                        function code(x_s, x_m, y, z, t)
                        	return Float64(x_s * Float64(1.0 * x_m))
                        end
                        
                        x\_m = abs(x);
                        x\_s = sign(x) * abs(1.0);
                        function tmp = code(x_s, x_m, y, z, t)
                        	tmp = x_s * (1.0 * x_m);
                        end
                        
                        x\_m = N[Abs[x], $MachinePrecision]
                        x\_s = N[With[{TMP1 = Abs[1.0], TMP2 = Sign[x]}, TMP1 * If[TMP2 == 0, 1, TMP2]], $MachinePrecision]
                        code[x$95$s_, x$95$m_, y_, z_, t_] := N[(x$95$s * N[(1.0 * x$95$m), $MachinePrecision]), $MachinePrecision]
                        
                        \begin{array}{l}
                        x\_m = \left|x\right|
                        \\
                        x\_s = \mathsf{copysign}\left(1, x\right)
                        
                        \\
                        x\_s \cdot \left(1 \cdot x\_m\right)
                        \end{array}
                        
                        Derivation
                        1. Initial program 81.9%

                          \[\frac{x \cdot \left(y - z\right)}{t - z} \]
                        2. Add Preprocessing
                        3. Step-by-step derivation
                          1. lift-/.f64N/A

                            \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t - z}} \]
                          2. lift-*.f64N/A

                            \[\leadsto \frac{\color{blue}{x \cdot \left(y - z\right)}}{t - z} \]
                          3. associate-/l*N/A

                            \[\leadsto \color{blue}{x \cdot \frac{y - z}{t - z}} \]
                          4. *-commutativeN/A

                            \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                          5. lower-*.f64N/A

                            \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                          6. lower-/.f6495.6

                            \[\leadsto \color{blue}{\frac{y - z}{t - z}} \cdot x \]
                        4. Applied rewrites95.6%

                          \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                        5. Taylor expanded in z around inf

                          \[\leadsto \color{blue}{1} \cdot x \]
                        6. Step-by-step derivation
                          1. Applied rewrites39.1%

                            \[\leadsto \color{blue}{1} \cdot x \]
                          2. Add Preprocessing

                          Developer Target 1: 97.0% accurate, 0.8× speedup?

                          \[\begin{array}{l} \\ \frac{x}{\frac{t - z}{y - z}} \end{array} \]
                          (FPCore (x y z t) :precision binary64 (/ x (/ (- t z) (- y z))))
                          double code(double x, double y, double z, double t) {
                          	return x / ((t - z) / (y - 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 = x / ((t - z) / (y - z))
                          end function
                          
                          public static double code(double x, double y, double z, double t) {
                          	return x / ((t - z) / (y - z));
                          }
                          
                          def code(x, y, z, t):
                          	return x / ((t - z) / (y - z))
                          
                          function code(x, y, z, t)
                          	return Float64(x / Float64(Float64(t - z) / Float64(y - z)))
                          end
                          
                          function tmp = code(x, y, z, t)
                          	tmp = x / ((t - z) / (y - z));
                          end
                          
                          code[x_, y_, z_, t_] := N[(x / N[(N[(t - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                          
                          \begin{array}{l}
                          
                          \\
                          \frac{x}{\frac{t - z}{y - z}}
                          \end{array}
                          

                          Reproduce

                          ?
                          herbie shell --seed 2024267 
                          (FPCore (x y z t)
                            :name "Graphics.Rendering.Chart.Plot.AreaSpots:renderAreaSpots4D from Chart-1.5.3"
                            :precision binary64
                          
                            :alt
                            (! :herbie-platform default (/ x (/ (- t z) (- y z))))
                          
                            (/ (* x (- y z)) (- t z)))