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

Percentage Accurate: 84.5% → 97.4%
Time: 7.7s
Alternatives: 12
Speedup: 0.8×

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 12 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.5% 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: 97.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}\;x\_m \leq 4 \cdot 10^{-10}:\\ \;\;\;\;\frac{x\_m \cdot \left(y - z\right)}{t - z}\\ \mathbf{else}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot \left(y - z\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 (<= x_m 4e-10) (/ (* x_m (- y z)) (- t z)) (* (/ x_m (- t z)) (- y 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 (x_m <= 4e-10) {
		tmp = (x_m * (y - z)) / (t - z);
	} else {
		tmp = (x_m / (t - z)) * (y - 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) :: tmp
    if (x_m <= 4d-10) then
        tmp = (x_m * (y - z)) / (t - z)
    else
        tmp = (x_m / (t - z)) * (y - 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 tmp;
	if (x_m <= 4e-10) {
		tmp = (x_m * (y - z)) / (t - z);
	} else {
		tmp = (x_m / (t - z)) * (y - 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):
	tmp = 0
	if x_m <= 4e-10:
		tmp = (x_m * (y - z)) / (t - z)
	else:
		tmp = (x_m / (t - z)) * (y - 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 (x_m <= 4e-10)
		tmp = Float64(Float64(x_m * Float64(y - z)) / Float64(t - z));
	else
		tmp = Float64(Float64(x_m / Float64(t - z)) * Float64(y - 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)
	tmp = 0.0;
	if (x_m <= 4e-10)
		tmp = (x_m * (y - z)) / (t - z);
	else
		tmp = (x_m / (t - z)) * (y - 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_] := N[(x$95$s * If[LessEqual[x$95$m, 4e-10], N[(N[(x$95$m * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * N[(y - 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}\;x\_m \leq 4 \cdot 10^{-10}:\\
\;\;\;\;\frac{x\_m \cdot \left(y - z\right)}{t - z}\\

\mathbf{else}:\\
\;\;\;\;\frac{x\_m}{t - z} \cdot \left(y - z\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < 4.00000000000000015e-10

    1. Initial program 88.5%

      \[\frac{x \cdot \left(y - z\right)}{t - z} \]
    2. Add Preprocessing

    if 4.00000000000000015e-10 < x

    1. Initial program 66.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. *-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-/.f6498.0

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

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

Alternative 2: 37.4% 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{x\_m \cdot \left(y - z\right)}{t - z} \leq -2 \cdot 10^{-85}:\\ \;\;\;\;\frac{x\_m}{z} \cdot 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 (<= (/ (* x_m (- y z)) (- t z)) -2e-85) (* (/ x_m z) 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 (((x_m * (y - z)) / (t - z)) <= -2e-85) {
		tmp = (x_m / z) * 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 (((x_m * (y - z)) / (t - z)) <= (-2d-85)) then
        tmp = (x_m / z) * 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 (((x_m * (y - z)) / (t - z)) <= -2e-85) {
		tmp = (x_m / z) * 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 ((x_m * (y - z)) / (t - z)) <= -2e-85:
		tmp = (x_m / z) * 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 (Float64(Float64(x_m * Float64(y - z)) / Float64(t - z)) <= -2e-85)
		tmp = Float64(Float64(x_m / z) * 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 (((x_m * (y - z)) / (t - z)) <= -2e-85)
		tmp = (x_m / z) * 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[N[(N[(x$95$m * N[(y - z), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision], -2e-85], N[(N[(x$95$m / z), $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}\;\frac{x\_m \cdot \left(y - z\right)}{t - z} \leq -2 \cdot 10^{-85}:\\
\;\;\;\;\frac{x\_m}{z} \cdot t\\

\mathbf{else}:\\
\;\;\;\;1 \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)) < -2e-85

    1. Initial program 79.2%

      \[\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. fp-cancel-sub-sign-invN/A

        \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{x \cdot y}{z}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{t \cdot x}{z}} \]
      2. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{x}{z}} \cdot \left(y - t\right) \]
      17. lower--.f6457.1

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

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

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

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

      if -2e-85 < (/.f64 (*.f64 x (-.f64 y z)) (-.f64 t z))

      1. Initial program 86.3%

        \[\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. associate-/l*N/A

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
        8. *-lft-identityN/A

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

          \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
        10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

          \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
        17. fp-cancel-sub-sign-invN/A

          \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
        18. *-lft-identityN/A

          \[\leadsto \frac{z - \color{blue}{y}}{z} \cdot x \]
        19. lower--.f6447.4

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

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

        \[\leadsto 1 \cdot x \]
      7. Step-by-step derivation
        1. Applied rewrites36.8%

          \[\leadsto 1 \cdot x \]
      8. Recombined 2 regimes into one program.
      9. Final simplification28.0%

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

      Alternative 3: 68.9% 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 := \left(z - y\right) \cdot \frac{x\_m}{z}\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -6.4 \cdot 10^{+204}:\\ \;\;\;\;1 \cdot x\_m\\ \mathbf{elif}\;z \leq -3.5 \cdot 10^{-76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.22 \cdot 10^{-36}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\ \mathbf{elif}\;z \leq 3.4 \cdot 10^{+76}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\_m\\ \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 (* (- z y) (/ x_m z))))
         (*
          x_s
          (if (<= z -6.4e+204)
            (* 1.0 x_m)
            (if (<= z -3.5e-76)
              t_1
              (if (<= z 1.22e-36)
                (/ (* (- y z) x_m) t)
                (if (<= z 3.4e+76) t_1 (* 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 t_1 = (z - y) * (x_m / z);
      	double tmp;
      	if (z <= -6.4e+204) {
      		tmp = 1.0 * x_m;
      	} else if (z <= -3.5e-76) {
      		tmp = t_1;
      	} else if (z <= 1.22e-36) {
      		tmp = ((y - z) * x_m) / t;
      	} else if (z <= 3.4e+76) {
      		tmp = t_1;
      	} 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) :: t_1
          real(8) :: tmp
          t_1 = (z - y) * (x_m / z)
          if (z <= (-6.4d+204)) then
              tmp = 1.0d0 * x_m
          else if (z <= (-3.5d-76)) then
              tmp = t_1
          else if (z <= 1.22d-36) then
              tmp = ((y - z) * x_m) / t
          else if (z <= 3.4d+76) then
              tmp = t_1
          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 t_1 = (z - y) * (x_m / z);
      	double tmp;
      	if (z <= -6.4e+204) {
      		tmp = 1.0 * x_m;
      	} else if (z <= -3.5e-76) {
      		tmp = t_1;
      	} else if (z <= 1.22e-36) {
      		tmp = ((y - z) * x_m) / t;
      	} else if (z <= 3.4e+76) {
      		tmp = t_1;
      	} 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):
      	t_1 = (z - y) * (x_m / z)
      	tmp = 0
      	if z <= -6.4e+204:
      		tmp = 1.0 * x_m
      	elif z <= -3.5e-76:
      		tmp = t_1
      	elif z <= 1.22e-36:
      		tmp = ((y - z) * x_m) / t
      	elif z <= 3.4e+76:
      		tmp = t_1
      	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)
      	t_1 = Float64(Float64(z - y) * Float64(x_m / z))
      	tmp = 0.0
      	if (z <= -6.4e+204)
      		tmp = Float64(1.0 * x_m);
      	elseif (z <= -3.5e-76)
      		tmp = t_1;
      	elseif (z <= 1.22e-36)
      		tmp = Float64(Float64(Float64(y - z) * x_m) / t);
      	elseif (z <= 3.4e+76)
      		tmp = t_1;
      	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)
      	t_1 = (z - y) * (x_m / z);
      	tmp = 0.0;
      	if (z <= -6.4e+204)
      		tmp = 1.0 * x_m;
      	elseif (z <= -3.5e-76)
      		tmp = t_1;
      	elseif (z <= 1.22e-36)
      		tmp = ((y - z) * x_m) / t;
      	elseif (z <= 3.4e+76)
      		tmp = t_1;
      	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_] := Block[{t$95$1 = N[(N[(z - y), $MachinePrecision] * N[(x$95$m / z), $MachinePrecision]), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -6.4e+204], N[(1.0 * x$95$m), $MachinePrecision], If[LessEqual[z, -3.5e-76], t$95$1, If[LessEqual[z, 1.22e-36], N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 3.4e+76], t$95$1, N[(1.0 * x$95$m), $MachinePrecision]]]]]), $MachinePrecision]]
      
      \begin{array}{l}
      x\_m = \left|x\right|
      \\
      x\_s = \mathsf{copysign}\left(1, x\right)
      
      \\
      \begin{array}{l}
      t_1 := \left(z - y\right) \cdot \frac{x\_m}{z}\\
      x\_s \cdot \begin{array}{l}
      \mathbf{if}\;z \leq -6.4 \cdot 10^{+204}:\\
      \;\;\;\;1 \cdot x\_m\\
      
      \mathbf{elif}\;z \leq -3.5 \cdot 10^{-76}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 1.22 \cdot 10^{-36}:\\
      \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\
      
      \mathbf{elif}\;z \leq 3.4 \cdot 10^{+76}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;1 \cdot x\_m\\
      
      
      \end{array}
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -6.3999999999999999e204 or 3.3999999999999997e76 < z

        1. Initial program 70.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. associate-/l*N/A

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

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

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

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

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

            \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
          8. *-lft-identityN/A

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

            \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
          10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

            \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
          17. fp-cancel-sub-sign-invN/A

            \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
          18. *-lft-identityN/A

            \[\leadsto \frac{z - \color{blue}{y}}{z} \cdot x \]
          19. lower--.f6482.0

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

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

          \[\leadsto 1 \cdot x \]
        7. Step-by-step derivation
          1. Applied rewrites77.4%

            \[\leadsto 1 \cdot x \]

          if -6.3999999999999999e204 < z < -3.49999999999999997e-76 or 1.2200000000000001e-36 < z < 3.3999999999999997e76

          1. Initial program 81.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. associate-/l*N/A

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
            8. *-lft-identityN/A

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

              \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
            10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

              \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
            17. fp-cancel-sub-sign-invN/A

              \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
            18. *-lft-identityN/A

              \[\leadsto \frac{z - \color{blue}{y}}{z} \cdot x \]
            19. lower--.f6465.1

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

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

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

            if -3.49999999999999997e-76 < z < 1.2200000000000001e-36

            1. Initial program 92.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. *-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-/.f6494.5

                \[\leadsto \color{blue}{\frac{x}{t - z}} \cdot \left(y - z\right) \]
            4. Applied rewrites94.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 \cdot \left(y - z\right)}{t}} \]
            6. 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--.f6474.9

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

              \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot x}{t}} \]
          7. Recombined 3 regimes into one program.
          8. Final simplification72.5%

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.4 \cdot 10^{+204}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;z \leq -3.5 \cdot 10^{-76}:\\ \;\;\;\;\left(z - y\right) \cdot \frac{x}{z}\\ \mathbf{elif}\;z \leq 1.22 \cdot 10^{-36}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{elif}\;z \leq 3.4 \cdot 10^{+76}:\\ \;\;\;\;\left(z - y\right) \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
          9. Add Preprocessing

          Alternative 4: 75.2% accurate, 0.6× 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.2 \cdot 10^{+38}:\\ \;\;\;\;\frac{z - y}{z} \cdot x\_m\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{-139}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot y\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-27}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\ \mathbf{else}:\\ \;\;\;\;x\_m - \frac{y}{z} \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.2e+38)
              (* (/ (- z y) z) x_m)
              (if (<= z 1.2e-139)
                (* (/ x_m (- t z)) y)
                (if (<= z 1.6e-27) (/ (* (- y z) x_m) t) (- x_m (* (/ 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 <= -2.2e+38) {
          		tmp = ((z - y) / z) * x_m;
          	} else if (z <= 1.2e-139) {
          		tmp = (x_m / (t - z)) * y;
          	} else if (z <= 1.6e-27) {
          		tmp = ((y - z) * x_m) / t;
          	} else {
          		tmp = x_m - ((y / z) * 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.2d+38)) then
                  tmp = ((z - y) / z) * x_m
              else if (z <= 1.2d-139) then
                  tmp = (x_m / (t - z)) * y
              else if (z <= 1.6d-27) then
                  tmp = ((y - z) * x_m) / t
              else
                  tmp = x_m - ((y / z) * 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.2e+38) {
          		tmp = ((z - y) / z) * x_m;
          	} else if (z <= 1.2e-139) {
          		tmp = (x_m / (t - z)) * y;
          	} else if (z <= 1.6e-27) {
          		tmp = ((y - z) * x_m) / t;
          	} else {
          		tmp = x_m - ((y / z) * 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.2e+38:
          		tmp = ((z - y) / z) * x_m
          	elif z <= 1.2e-139:
          		tmp = (x_m / (t - z)) * y
          	elif z <= 1.6e-27:
          		tmp = ((y - z) * x_m) / t
          	else:
          		tmp = x_m - ((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 <= -2.2e+38)
          		tmp = Float64(Float64(Float64(z - y) / z) * x_m);
          	elseif (z <= 1.2e-139)
          		tmp = Float64(Float64(x_m / Float64(t - z)) * y);
          	elseif (z <= 1.6e-27)
          		tmp = Float64(Float64(Float64(y - z) * x_m) / t);
          	else
          		tmp = Float64(x_m - Float64(Float64(y / z) * 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.2e+38)
          		tmp = ((z - y) / z) * x_m;
          	elseif (z <= 1.2e-139)
          		tmp = (x_m / (t - z)) * y;
          	elseif (z <= 1.6e-27)
          		tmp = ((y - z) * x_m) / t;
          	else
          		tmp = x_m - ((y / z) * 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.2e+38], N[(N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision] * x$95$m), $MachinePrecision], If[LessEqual[z, 1.2e-139], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 1.6e-27], N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $MachinePrecision], N[(x$95$m - N[(N[(y / z), $MachinePrecision] * x$95$m), $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.2 \cdot 10^{+38}:\\
          \;\;\;\;\frac{z - y}{z} \cdot x\_m\\
          
          \mathbf{elif}\;z \leq 1.2 \cdot 10^{-139}:\\
          \;\;\;\;\frac{x\_m}{t - z} \cdot y\\
          
          \mathbf{elif}\;z \leq 1.6 \cdot 10^{-27}:\\
          \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\
          
          \mathbf{else}:\\
          \;\;\;\;x\_m - \frac{y}{z} \cdot x\_m\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if z < -2.20000000000000006e38

            1. Initial program 69.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. associate-/l*N/A

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

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

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

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

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

                \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
              8. *-lft-identityN/A

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

                \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
              10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

                \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
              17. fp-cancel-sub-sign-invN/A

                \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
              18. *-lft-identityN/A

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

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

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

            if -2.20000000000000006e38 < z < 1.20000000000000007e-139

            1. Initial program 91.4%

              \[\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--.f6483.9

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

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

            if 1.20000000000000007e-139 < z < 1.59999999999999995e-27

            1. Initial program 96.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. *-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.1

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

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

              \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
            6. 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--.f6474.0

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

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

            if 1.59999999999999995e-27 < z

            1. Initial program 77.1%

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

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

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

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

                \[\leadsto \frac{\color{blue}{\frac{y \cdot y - z \cdot z}{y + z}} \cdot x}{t - z} \]
              5. associate-*l/N/A

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

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

                \[\leadsto \frac{\color{blue}{\left(y \cdot y - z \cdot z\right) \cdot \frac{x}{y + z}}}{t - z} \]
              8. difference-of-squaresN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{-1 \cdot \left(x \cdot y\right) - \color{blue}{\left(\mathsf{neg}\left(x\right)\right)} \cdot z}{z} \]
              6. fp-cancel-sign-sub-invN/A

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

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

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

                \[\leadsto \frac{x \cdot z + \color{blue}{\left(\mathsf{neg}\left(x\right)\right)} \cdot y}{z} \]
              10. fp-cancel-sub-signN/A

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

                \[\leadsto \color{blue}{\frac{x \cdot z}{z} - \frac{x \cdot y}{z}} \]
              12. associate-/l*N/A

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

                \[\leadsto x \cdot \color{blue}{1} - \frac{x \cdot y}{z} \]
              14. *-rgt-identityN/A

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

                \[\leadsto \color{blue}{x - \frac{x \cdot y}{z}} \]
              16. associate-/l*N/A

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.2 \cdot 10^{+38}:\\ \;\;\;\;\frac{z - y}{z} \cdot x\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{-139}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-27}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{z} \cdot x\\ \end{array} \]
          5. Add Preprocessing

          Alternative 5: 75.2% accurate, 0.6× speedup?

          \[\begin{array}{l} x\_m = \left|x\right| \\ x\_s = \mathsf{copysign}\left(1, x\right) \\ \begin{array}{l} t_1 := \frac{z - y}{z} \cdot x\_m\\ x\_s \cdot \begin{array}{l} \mathbf{if}\;z \leq -2.2 \cdot 10^{+38}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{-139}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot y\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-27}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\ \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 (* (/ (- z y) z) x_m)))
             (*
              x_s
              (if (<= z -2.2e+38)
                t_1
                (if (<= z 1.2e-139)
                  (* (/ x_m (- t z)) y)
                  (if (<= z 1.6e-27) (/ (* (- y z) x_m) t) 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 = ((z - y) / z) * x_m;
          	double tmp;
          	if (z <= -2.2e+38) {
          		tmp = t_1;
          	} else if (z <= 1.2e-139) {
          		tmp = (x_m / (t - z)) * y;
          	} else if (z <= 1.6e-27) {
          		tmp = ((y - z) * x_m) / t;
          	} 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 = ((z - y) / z) * x_m
              if (z <= (-2.2d+38)) then
                  tmp = t_1
              else if (z <= 1.2d-139) then
                  tmp = (x_m / (t - z)) * y
              else if (z <= 1.6d-27) then
                  tmp = ((y - z) * x_m) / t
              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 = ((z - y) / z) * x_m;
          	double tmp;
          	if (z <= -2.2e+38) {
          		tmp = t_1;
          	} else if (z <= 1.2e-139) {
          		tmp = (x_m / (t - z)) * y;
          	} else if (z <= 1.6e-27) {
          		tmp = ((y - z) * x_m) / t;
          	} 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 = ((z - y) / z) * x_m
          	tmp = 0
          	if z <= -2.2e+38:
          		tmp = t_1
          	elif z <= 1.2e-139:
          		tmp = (x_m / (t - z)) * y
          	elif z <= 1.6e-27:
          		tmp = ((y - z) * x_m) / t
          	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(z - y) / z) * x_m)
          	tmp = 0.0
          	if (z <= -2.2e+38)
          		tmp = t_1;
          	elseif (z <= 1.2e-139)
          		tmp = Float64(Float64(x_m / Float64(t - z)) * y);
          	elseif (z <= 1.6e-27)
          		tmp = Float64(Float64(Float64(y - z) * x_m) / t);
          	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 = ((z - y) / z) * x_m;
          	tmp = 0.0;
          	if (z <= -2.2e+38)
          		tmp = t_1;
          	elseif (z <= 1.2e-139)
          		tmp = (x_m / (t - z)) * y;
          	elseif (z <= 1.6e-27)
          		tmp = ((y - z) * x_m) / t;
          	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[(z - y), $MachinePrecision] / z), $MachinePrecision] * x$95$m), $MachinePrecision]}, N[(x$95$s * If[LessEqual[z, -2.2e+38], t$95$1, If[LessEqual[z, 1.2e-139], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 1.6e-27], N[(N[(N[(y - z), $MachinePrecision] * x$95$m), $MachinePrecision] / t), $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{z - y}{z} \cdot x\_m\\
          x\_s \cdot \begin{array}{l}
          \mathbf{if}\;z \leq -2.2 \cdot 10^{+38}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;z \leq 1.2 \cdot 10^{-139}:\\
          \;\;\;\;\frac{x\_m}{t - z} \cdot y\\
          
          \mathbf{elif}\;z \leq 1.6 \cdot 10^{-27}:\\
          \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if z < -2.20000000000000006e38 or 1.59999999999999995e-27 < z

            1. Initial program 73.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. associate-/l*N/A

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

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

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

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

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

                \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
              8. *-lft-identityN/A

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

                \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
              10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

                \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
              17. fp-cancel-sub-sign-invN/A

                \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
              18. *-lft-identityN/A

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

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

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

            if -2.20000000000000006e38 < z < 1.20000000000000007e-139

            1. Initial program 91.4%

              \[\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--.f6483.9

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

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

            if 1.20000000000000007e-139 < z < 1.59999999999999995e-27

            1. Initial program 96.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. *-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.1

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

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

              \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
            6. 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--.f6474.0

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.2 \cdot 10^{+38}:\\ \;\;\;\;\frac{z - y}{z} \cdot x\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{-139}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-27}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{else}:\\ \;\;\;\;\frac{z - y}{z} \cdot x\\ \end{array} \]
          5. Add Preprocessing

          Alternative 6: 89.2% 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 -7 \cdot 10^{+93} \lor \neg \left(z \leq 1.85 \cdot 10^{+98}\right):\\ \;\;\;\;\frac{z}{t - z} \cdot \left(-x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot \left(y - z\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 (or (<= z -7e+93) (not (<= z 1.85e+98)))
              (* (/ z (- t z)) (- x_m))
              (* (/ x_m (- t z)) (- y 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 <= -7e+93) || !(z <= 1.85e+98)) {
          		tmp = (z / (t - z)) * -x_m;
          	} else {
          		tmp = (x_m / (t - z)) * (y - 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) :: tmp
              if ((z <= (-7d+93)) .or. (.not. (z <= 1.85d+98))) then
                  tmp = (z / (t - z)) * -x_m
              else
                  tmp = (x_m / (t - z)) * (y - 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 tmp;
          	if ((z <= -7e+93) || !(z <= 1.85e+98)) {
          		tmp = (z / (t - z)) * -x_m;
          	} else {
          		tmp = (x_m / (t - z)) * (y - 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):
          	tmp = 0
          	if (z <= -7e+93) or not (z <= 1.85e+98):
          		tmp = (z / (t - z)) * -x_m
          	else:
          		tmp = (x_m / (t - z)) * (y - 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 <= -7e+93) || !(z <= 1.85e+98))
          		tmp = Float64(Float64(z / Float64(t - z)) * Float64(-x_m));
          	else
          		tmp = Float64(Float64(x_m / Float64(t - z)) * Float64(y - 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)
          	tmp = 0.0;
          	if ((z <= -7e+93) || ~((z <= 1.85e+98)))
          		tmp = (z / (t - z)) * -x_m;
          	else
          		tmp = (x_m / (t - z)) * (y - 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_] := N[(x$95$s * If[Or[LessEqual[z, -7e+93], N[Not[LessEqual[z, 1.85e+98]], $MachinePrecision]], N[(N[(z / N[(t - z), $MachinePrecision]), $MachinePrecision] * (-x$95$m)), $MachinePrecision], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * N[(y - 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 -7 \cdot 10^{+93} \lor \neg \left(z \leq 1.85 \cdot 10^{+98}\right):\\
          \;\;\;\;\frac{z}{t - z} \cdot \left(-x\_m\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{x\_m}{t - z} \cdot \left(y - z\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if z < -6.99999999999999996e93 or 1.8499999999999999e98 < z

            1. Initial program 70.6%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{z}{t - z} \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)} \]
              10. lower-neg.f6492.9

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

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

            if -6.99999999999999996e93 < z < 1.8499999999999999e98

            1. Initial program 90.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. *-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-/.f6495.2

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

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

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

          Alternative 7: 74.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 -2.1 \cdot 10^{+38} \lor \neg \left(z \leq 1.7 \cdot 10^{-67}\right):\\ \;\;\;\;\frac{z}{t - z} \cdot \left(-x\_m\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot y\\ \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 (or (<= z -2.1e+38) (not (<= z 1.7e-67)))
              (* (/ z (- t z)) (- x_m))
              (* (/ x_m (- t z)) y))))
          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+38) || !(z <= 1.7e-67)) {
          		tmp = (z / (t - z)) * -x_m;
          	} else {
          		tmp = (x_m / (t - z)) * y;
          	}
          	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.1d+38)) .or. (.not. (z <= 1.7d-67))) then
                  tmp = (z / (t - z)) * -x_m
              else
                  tmp = (x_m / (t - z)) * y
              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.1e+38) || !(z <= 1.7e-67)) {
          		tmp = (z / (t - z)) * -x_m;
          	} else {
          		tmp = (x_m / (t - z)) * y;
          	}
          	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.1e+38) or not (z <= 1.7e-67):
          		tmp = (z / (t - z)) * -x_m
          	else:
          		tmp = (x_m / (t - z)) * y
          	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+38) || !(z <= 1.7e-67))
          		tmp = Float64(Float64(z / Float64(t - z)) * Float64(-x_m));
          	else
          		tmp = Float64(Float64(x_m / Float64(t - z)) * y);
          	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.1e+38) || ~((z <= 1.7e-67)))
          		tmp = (z / (t - z)) * -x_m;
          	else
          		tmp = (x_m / (t - z)) * y;
          	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[Or[LessEqual[z, -2.1e+38], N[Not[LessEqual[z, 1.7e-67]], $MachinePrecision]], N[(N[(z / N[(t - z), $MachinePrecision]), $MachinePrecision] * (-x$95$m)), $MachinePrecision], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $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^{+38} \lor \neg \left(z \leq 1.7 \cdot 10^{-67}\right):\\
          \;\;\;\;\frac{z}{t - z} \cdot \left(-x\_m\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{x\_m}{t - z} \cdot y\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if z < -2.1e38 or 1.70000000000000005e-67 < z

            1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{z}{t - z} \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)} \]
              10. lower-neg.f6485.1

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

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

            if -2.1e38 < z < 1.70000000000000005e-67

            1. Initial program 91.6%

              \[\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--.f6481.6

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

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

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

          Alternative 8: 68.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 -1.02 \cdot 10^{+45} \lor \neg \left(z \leq 5.2 \cdot 10^{+23}\right):\\ \;\;\;\;1 \cdot x\_m\\ \mathbf{else}:\\ \;\;\;\;\frac{x\_m}{t - z} \cdot y\\ \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 (or (<= z -1.02e+45) (not (<= z 5.2e+23)))
              (* 1.0 x_m)
              (* (/ x_m (- t z)) y))))
          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.02e+45) || !(z <= 5.2e+23)) {
          		tmp = 1.0 * x_m;
          	} else {
          		tmp = (x_m / (t - z)) * y;
          	}
          	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 <= (-1.02d+45)) .or. (.not. (z <= 5.2d+23))) then
                  tmp = 1.0d0 * x_m
              else
                  tmp = (x_m / (t - z)) * y
              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 <= -1.02e+45) || !(z <= 5.2e+23)) {
          		tmp = 1.0 * x_m;
          	} else {
          		tmp = (x_m / (t - z)) * y;
          	}
          	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 <= -1.02e+45) or not (z <= 5.2e+23):
          		tmp = 1.0 * x_m
          	else:
          		tmp = (x_m / (t - z)) * y
          	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.02e+45) || !(z <= 5.2e+23))
          		tmp = Float64(1.0 * x_m);
          	else
          		tmp = Float64(Float64(x_m / Float64(t - z)) * y);
          	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 <= -1.02e+45) || ~((z <= 5.2e+23)))
          		tmp = 1.0 * x_m;
          	else
          		tmp = (x_m / (t - z)) * y;
          	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[Or[LessEqual[z, -1.02e+45], N[Not[LessEqual[z, 5.2e+23]], $MachinePrecision]], N[(1.0 * x$95$m), $MachinePrecision], N[(N[(x$95$m / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $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.02 \cdot 10^{+45} \lor \neg \left(z \leq 5.2 \cdot 10^{+23}\right):\\
          \;\;\;\;1 \cdot x\_m\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{x\_m}{t - z} \cdot y\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if z < -1.02e45 or 5.19999999999999983e23 < z

            1. Initial program 72.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. associate-/l*N/A

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

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

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

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

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

                \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
              8. *-lft-identityN/A

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

                \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
              10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

                \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
              17. fp-cancel-sub-sign-invN/A

                \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
              18. *-lft-identityN/A

                \[\leadsto \frac{z - \color{blue}{y}}{z} \cdot x \]
              19. lower--.f6478.5

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

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

              \[\leadsto 1 \cdot x \]
            7. Step-by-step derivation
              1. Applied rewrites70.3%

                \[\leadsto 1 \cdot x \]

              if -1.02e45 < z < 5.19999999999999983e23

              1. Initial program 91.3%

                \[\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--.f6478.6

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

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.02 \cdot 10^{+45} \lor \neg \left(z \leq 5.2 \cdot 10^{+23}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \end{array} \]
            10. Add Preprocessing

            Alternative 9: 66.0% 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.2 \cdot 10^{+92} \lor \neg \left(z \leq 1.5 \cdot 10^{-26}\right):\\ \;\;\;\;1 \cdot x\_m\\ \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 (or (<= z -4.2e+92) (not (<= z 1.5e-26)))
                (* 1.0 x_m)
                (/ (* (- 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 ((z <= -4.2e+92) || !(z <= 1.5e-26)) {
            		tmp = 1.0 * x_m;
            	} 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 ((z <= (-4.2d+92)) .or. (.not. (z <= 1.5d-26))) then
                    tmp = 1.0d0 * x_m
                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 ((z <= -4.2e+92) || !(z <= 1.5e-26)) {
            		tmp = 1.0 * x_m;
            	} 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 (z <= -4.2e+92) or not (z <= 1.5e-26):
            		tmp = 1.0 * x_m
            	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 ((z <= -4.2e+92) || !(z <= 1.5e-26))
            		tmp = Float64(1.0 * x_m);
            	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 ((z <= -4.2e+92) || ~((z <= 1.5e-26)))
            		tmp = 1.0 * x_m;
            	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[Or[LessEqual[z, -4.2e+92], N[Not[LessEqual[z, 1.5e-26]], $MachinePrecision]], N[(1.0 * x$95$m), $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}\;z \leq -4.2 \cdot 10^{+92} \lor \neg \left(z \leq 1.5 \cdot 10^{-26}\right):\\
            \;\;\;\;1 \cdot x\_m\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{\left(y - z\right) \cdot x\_m}{t}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -4.19999999999999972e92 or 1.50000000000000006e-26 < z

              1. Initial program 72.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. associate-/l*N/A

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
                8. *-lft-identityN/A

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

                  \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
                10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

                  \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
                17. fp-cancel-sub-sign-invN/A

                  \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
                18. *-lft-identityN/A

                  \[\leadsto \frac{z - \color{blue}{y}}{z} \cdot x \]
                19. lower--.f6479.8

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

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

                \[\leadsto 1 \cdot x \]
              7. Step-by-step derivation
                1. Applied rewrites69.4%

                  \[\leadsto 1 \cdot x \]

                if -4.19999999999999972e92 < z < 1.50000000000000006e-26

                1. Initial program 91.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-/.f6494.7

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

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

                  \[\leadsto \color{blue}{\frac{x \cdot \left(y - z\right)}{t}} \]
                6. 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--.f6467.8

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

                  \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot x}{t}} \]
              8. Recombined 2 regimes into one program.
              9. Final simplification68.5%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.2 \cdot 10^{+92} \lor \neg \left(z \leq 1.5 \cdot 10^{-26}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \end{array} \]
              10. Add Preprocessing

              Alternative 10: 60.8% 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.3 \cdot 10^{+33} \lor \neg \left(z \leq 2.8 \cdot 10^{-35}\right):\\ \;\;\;\;1 \cdot x\_m\\ \mathbf{else}:\\ \;\;\;\;\frac{x\_m}{t} \cdot y\\ \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 (or (<= z -2.3e+33) (not (<= z 2.8e-35))) (* 1.0 x_m) (* (/ x_m t) y))))
              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.3e+33) || !(z <= 2.8e-35)) {
              		tmp = 1.0 * x_m;
              	} else {
              		tmp = (x_m / t) * y;
              	}
              	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.3d+33)) .or. (.not. (z <= 2.8d-35))) then
                      tmp = 1.0d0 * x_m
                  else
                      tmp = (x_m / t) * y
                  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.3e+33) || !(z <= 2.8e-35)) {
              		tmp = 1.0 * x_m;
              	} else {
              		tmp = (x_m / t) * y;
              	}
              	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.3e+33) or not (z <= 2.8e-35):
              		tmp = 1.0 * x_m
              	else:
              		tmp = (x_m / t) * y
              	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.3e+33) || !(z <= 2.8e-35))
              		tmp = Float64(1.0 * x_m);
              	else
              		tmp = Float64(Float64(x_m / t) * y);
              	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.3e+33) || ~((z <= 2.8e-35)))
              		tmp = 1.0 * x_m;
              	else
              		tmp = (x_m / t) * y;
              	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[Or[LessEqual[z, -2.3e+33], N[Not[LessEqual[z, 2.8e-35]], $MachinePrecision]], N[(1.0 * x$95$m), $MachinePrecision], N[(N[(x$95$m / t), $MachinePrecision] * y), $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.3 \cdot 10^{+33} \lor \neg \left(z \leq 2.8 \cdot 10^{-35}\right):\\
              \;\;\;\;1 \cdot x\_m\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{x\_m}{t} \cdot y\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -2.30000000000000011e33 or 2.8e-35 < z

                1. Initial program 73.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. associate-/l*N/A

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

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

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

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

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

                    \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
                  8. *-lft-identityN/A

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

                    \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
                  10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

                    \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
                  17. fp-cancel-sub-sign-invN/A

                    \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
                  18. *-lft-identityN/A

                    \[\leadsto \frac{z - \color{blue}{y}}{z} \cdot x \]
                  19. lower--.f6476.4

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

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

                  \[\leadsto 1 \cdot x \]
                7. Step-by-step derivation
                  1. Applied rewrites65.6%

                    \[\leadsto 1 \cdot x \]

                  if -2.30000000000000011e33 < z < 2.8e-35

                  1. Initial program 91.9%

                    \[\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-*.f6462.7

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

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

                      \[\leadsto \frac{x}{t} \cdot \color{blue}{y} \]
                  7. Recombined 2 regimes into one program.
                  8. Final simplification65.0%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.3 \cdot 10^{+33} \lor \neg \left(z \leq 2.8 \cdot 10^{-35}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{t} \cdot y\\ \end{array} \]
                  9. Add Preprocessing

                  Alternative 11: 61.8% 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 -6.5 \cdot 10^{+33} \lor \neg \left(z \leq 2.8 \cdot 10^{-35}\right):\\ \;\;\;\;1 \cdot x\_m\\ \mathbf{else}:\\ \;\;\;\;x\_m \cdot \frac{y}{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 (or (<= z -6.5e+33) (not (<= z 2.8e-35))) (* 1.0 x_m) (* x_m (/ y 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 ((z <= -6.5e+33) || !(z <= 2.8e-35)) {
                  		tmp = 1.0 * x_m;
                  	} else {
                  		tmp = x_m * (y / 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 ((z <= (-6.5d+33)) .or. (.not. (z <= 2.8d-35))) then
                          tmp = 1.0d0 * x_m
                      else
                          tmp = x_m * (y / 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 ((z <= -6.5e+33) || !(z <= 2.8e-35)) {
                  		tmp = 1.0 * x_m;
                  	} else {
                  		tmp = x_m * (y / 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 (z <= -6.5e+33) or not (z <= 2.8e-35):
                  		tmp = 1.0 * x_m
                  	else:
                  		tmp = x_m * (y / 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 ((z <= -6.5e+33) || !(z <= 2.8e-35))
                  		tmp = Float64(1.0 * x_m);
                  	else
                  		tmp = Float64(x_m * Float64(y / 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 ((z <= -6.5e+33) || ~((z <= 2.8e-35)))
                  		tmp = 1.0 * x_m;
                  	else
                  		tmp = x_m * (y / 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[Or[LessEqual[z, -6.5e+33], N[Not[LessEqual[z, 2.8e-35]], $MachinePrecision]], N[(1.0 * x$95$m), $MachinePrecision], N[(x$95$m * N[(y / t), $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 -6.5 \cdot 10^{+33} \lor \neg \left(z \leq 2.8 \cdot 10^{-35}\right):\\
                  \;\;\;\;1 \cdot x\_m\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;x\_m \cdot \frac{y}{t}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if z < -6.49999999999999993e33 or 2.8e-35 < z

                    1. Initial program 73.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. associate-/l*N/A

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

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

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

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

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

                        \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
                      8. *-lft-identityN/A

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

                        \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
                      10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

                        \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
                      17. fp-cancel-sub-sign-invN/A

                        \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
                      18. *-lft-identityN/A

                        \[\leadsto \frac{z - \color{blue}{y}}{z} \cdot x \]
                      19. lower--.f6476.4

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

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

                      \[\leadsto 1 \cdot x \]
                    7. Step-by-step derivation
                      1. Applied rewrites65.6%

                        \[\leadsto 1 \cdot x \]

                      if -6.49999999999999993e33 < z < 2.8e-35

                      1. Initial program 91.9%

                        \[\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-*.f6462.7

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

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.5 \cdot 10^{+33} \lor \neg \left(z \leq 2.8 \cdot 10^{-35}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{y}{t}\\ \end{array} \]
                      9. Add Preprocessing

                      Alternative 12: 36.0% 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 84.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. associate-/l*N/A

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

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

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

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

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

                          \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(y - z\right)\right)}{z}} \cdot x \]
                        8. *-lft-identityN/A

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

                          \[\leadsto \frac{\mathsf{neg}\left(\left(y - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot z\right)\right)}{z} \cdot x \]
                        10. fp-cancel-sign-sub-invN/A

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

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

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

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

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

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

                          \[\leadsto \frac{z + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot y}{z} \cdot x \]
                        17. fp-cancel-sub-sign-invN/A

                          \[\leadsto \frac{\color{blue}{z - 1 \cdot y}}{z} \cdot x \]
                        18. *-lft-identityN/A

                          \[\leadsto \frac{z - \color{blue}{y}}{z} \cdot x \]
                        19. lower--.f6449.8

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

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

                        \[\leadsto 1 \cdot x \]
                      7. Step-by-step derivation
                        1. Applied rewrites35.0%

                          \[\leadsto 1 \cdot x \]
                        2. Final simplification35.0%

                          \[\leadsto 1 \cdot x \]
                        3. 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 2024326 
                        (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)))