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

Percentage Accurate: 84.4% → 96.8%
Time: 8.8s
Alternatives: 12
Speedup: 1.0×

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.4% 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: 96.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{y - z}{t - z} \cdot x \end{array} \]
(FPCore (x y z t) :precision binary64 (* (/ (- y z) (- t z)) x))
double code(double x, double y, double z, double t) {
	return ((y - z) / (t - z)) * x;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = ((y - z) / (t - z)) * x
end function
public static double code(double x, double y, double z, double t) {
	return ((y - z) / (t - z)) * x;
}
def code(x, y, z, t):
	return ((y - z) / (t - z)) * x
function code(x, y, z, t)
	return Float64(Float64(Float64(y - z) / Float64(t - z)) * x)
end
function tmp = code(x, y, z, t)
	tmp = ((y - z) / (t - z)) * x;
end
code[x_, y_, z_, t_] := N[(N[(N[(y - z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]
\begin{array}{l}

\\
\frac{y - z}{t - z} \cdot x
\end{array}
Derivation
  1. Initial program 82.3%

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
  5. Add Preprocessing

Alternative 2: 74.2% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-266}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+32}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;\frac{z - y}{z} \cdot x\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= z -2.7e-7)
   (fma (- x) (/ y z) x)
   (if (<= z 1.7e-266)
     (/ (* (- y z) x) t)
     (if (<= z 9.5e+32) (* (/ x (- t z)) y) (* (/ (- z y) z) x)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= -2.7e-7) {
		tmp = fma(-x, (y / z), x);
	} else if (z <= 1.7e-266) {
		tmp = ((y - z) * x) / t;
	} else if (z <= 9.5e+32) {
		tmp = (x / (t - z)) * y;
	} else {
		tmp = ((z - y) / z) * x;
	}
	return tmp;
}
function code(x, y, z, t)
	tmp = 0.0
	if (z <= -2.7e-7)
		tmp = fma(Float64(-x), Float64(y / z), x);
	elseif (z <= 1.7e-266)
		tmp = Float64(Float64(Float64(y - z) * x) / t);
	elseif (z <= 9.5e+32)
		tmp = Float64(Float64(x / Float64(t - z)) * y);
	else
		tmp = Float64(Float64(Float64(z - y) / z) * x);
	end
	return tmp
end
code[x_, y_, z_, t_] := If[LessEqual[z, -2.7e-7], N[((-x) * N[(y / z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.7e-266], N[(N[(N[(y - z), $MachinePrecision] * x), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 9.5e+32], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-7}:\\
\;\;\;\;\mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\

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

\mathbf{elif}\;z \leq 9.5 \cdot 10^{+32}:\\
\;\;\;\;\frac{x}{t - z} \cdot y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -2.70000000000000009e-7

    1. Initial program 68.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--.f6479.5

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

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

      \[\leadsto \frac{-1 \cdot y}{z} \cdot x \]
    7. Step-by-step derivation
      1. Applied rewrites15.5%

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

        \[\leadsto x + \color{blue}{-1 \cdot \frac{x \cdot y}{z}} \]
      3. Step-by-step derivation
        1. Applied rewrites79.5%

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

        if -2.70000000000000009e-7 < z < 1.69999999999999997e-266

        1. Initial program 95.1%

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
        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--.f6490.2

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

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

        if 1.69999999999999997e-266 < z < 9.50000000000000006e32

        1. Initial program 91.2%

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

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

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

        if 9.50000000000000006e32 < z

        1. Initial program 74.1%

          \[\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--.f6471.7

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

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

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

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

            \[\leadsto \frac{z - y}{z} \cdot x \]
          3. Step-by-step derivation
            1. Applied rewrites71.7%

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-266}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+32}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;\frac{z - y}{z} \cdot x\\ \end{array} \]
          6. Add Preprocessing

          Alternative 3: 74.2% accurate, 0.6× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\ \mathbf{if}\;z \leq -2.7 \cdot 10^{-7}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-266}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+32}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t)
           :precision binary64
           (let* ((t_1 (fma (- x) (/ y z) x)))
             (if (<= z -2.7e-7)
               t_1
               (if (<= z 1.7e-266)
                 (/ (* (- y z) x) t)
                 (if (<= z 9.5e+32) (* (/ x (- t z)) y) t_1)))))
          double code(double x, double y, double z, double t) {
          	double t_1 = fma(-x, (y / z), x);
          	double tmp;
          	if (z <= -2.7e-7) {
          		tmp = t_1;
          	} else if (z <= 1.7e-266) {
          		tmp = ((y - z) * x) / t;
          	} else if (z <= 9.5e+32) {
          		tmp = (x / (t - z)) * y;
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t)
          	t_1 = fma(Float64(-x), Float64(y / z), x)
          	tmp = 0.0
          	if (z <= -2.7e-7)
          		tmp = t_1;
          	elseif (z <= 1.7e-266)
          		tmp = Float64(Float64(Float64(y - z) * x) / t);
          	elseif (z <= 9.5e+32)
          		tmp = Float64(Float64(x / Float64(t - z)) * y);
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-x) * N[(y / z), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -2.7e-7], t$95$1, If[LessEqual[z, 1.7e-266], N[(N[(N[(y - z), $MachinePrecision] * x), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[z, 9.5e+32], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\
          \mathbf{if}\;z \leq -2.7 \cdot 10^{-7}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;z \leq 1.7 \cdot 10^{-266}:\\
          \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\
          
          \mathbf{elif}\;z \leq 9.5 \cdot 10^{+32}:\\
          \;\;\;\;\frac{x}{t - z} \cdot y\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if z < -2.70000000000000009e-7 or 9.50000000000000006e32 < 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--.f6476.0

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

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

              \[\leadsto \frac{-1 \cdot y}{z} \cdot x \]
            7. Step-by-step derivation
              1. Applied rewrites15.8%

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

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

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

                if -2.70000000000000009e-7 < z < 1.69999999999999997e-266

                1. Initial program 95.1%

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                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--.f6490.2

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

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

                if 1.69999999999999997e-266 < z < 9.50000000000000006e32

                1. Initial program 91.2%

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

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

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{-7}:\\ \;\;\;\;\mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-266}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+32}:\\ \;\;\;\;\frac{x}{t - z} \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\ \end{array} \]
              6. Add Preprocessing

              Alternative 4: 90.2% accurate, 0.7× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.9 \cdot 10^{+171}:\\ \;\;\;\;\frac{z}{t - z} \cdot \left(-x\right)\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+181}:\\ \;\;\;\;\frac{x}{t - z} \cdot \left(y - z\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{x}{z} \cdot \left(y - t\right)\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (if (<= z -2.9e+171)
                 (* (/ z (- t z)) (- x))
                 (if (<= z 2.2e+181) (* (/ x (- t z)) (- y z)) (- x (* (/ x z) (- y t))))))
              double code(double x, double y, double z, double t) {
              	double tmp;
              	if (z <= -2.9e+171) {
              		tmp = (z / (t - z)) * -x;
              	} else if (z <= 2.2e+181) {
              		tmp = (x / (t - z)) * (y - z);
              	} else {
              		tmp = x - ((x / z) * (y - t));
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8) :: tmp
                  if (z <= (-2.9d+171)) then
                      tmp = (z / (t - z)) * -x
                  else if (z <= 2.2d+181) then
                      tmp = (x / (t - z)) * (y - z)
                  else
                      tmp = x - ((x / z) * (y - t))
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t) {
              	double tmp;
              	if (z <= -2.9e+171) {
              		tmp = (z / (t - z)) * -x;
              	} else if (z <= 2.2e+181) {
              		tmp = (x / (t - z)) * (y - z);
              	} else {
              		tmp = x - ((x / z) * (y - t));
              	}
              	return tmp;
              }
              
              def code(x, y, z, t):
              	tmp = 0
              	if z <= -2.9e+171:
              		tmp = (z / (t - z)) * -x
              	elif z <= 2.2e+181:
              		tmp = (x / (t - z)) * (y - z)
              	else:
              		tmp = x - ((x / z) * (y - t))
              	return tmp
              
              function code(x, y, z, t)
              	tmp = 0.0
              	if (z <= -2.9e+171)
              		tmp = Float64(Float64(z / Float64(t - z)) * Float64(-x));
              	elseif (z <= 2.2e+181)
              		tmp = Float64(Float64(x / Float64(t - z)) * Float64(y - z));
              	else
              		tmp = Float64(x - Float64(Float64(x / z) * Float64(y - t)));
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t)
              	tmp = 0.0;
              	if (z <= -2.9e+171)
              		tmp = (z / (t - z)) * -x;
              	elseif (z <= 2.2e+181)
              		tmp = (x / (t - z)) * (y - z);
              	else
              		tmp = x - ((x / z) * (y - t));
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_] := If[LessEqual[z, -2.9e+171], N[(N[(z / N[(t - z), $MachinePrecision]), $MachinePrecision] * (-x)), $MachinePrecision], If[LessEqual[z, 2.2e+181], N[(N[(x / N[(t - z), $MachinePrecision]), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x / z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -2.9 \cdot 10^{+171}:\\
              \;\;\;\;\frac{z}{t - z} \cdot \left(-x\right)\\
              
              \mathbf{elif}\;z \leq 2.2 \cdot 10^{+181}:\\
              \;\;\;\;\frac{x}{t - z} \cdot \left(y - z\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;x - \frac{x}{z} \cdot \left(y - t\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if z < -2.89999999999999985e171

                1. Initial program 66.3%

                  \[\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.f6499.8

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

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

                if -2.89999999999999985e171 < z < 2.2000000000000001e181

                1. Initial program 87.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-/.f6491.0

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

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

                if 2.2000000000000001e181 < z

                1. Initial program 58.5%

                  \[\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--.f6492.2

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

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

              Alternative 5: 74.5% accurate, 0.7× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.1 \cdot 10^{+34} \lor \neg \left(z \leq 1.9 \cdot 10^{+38}\right):\\ \;\;\;\;\frac{z}{t - z} \cdot \left(-x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{t - z}\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (if (or (<= z -5.1e+34) (not (<= z 1.9e+38)))
                 (* (/ z (- t z)) (- x))
                 (/ (* y x) (- t z))))
              double code(double x, double y, double z, double t) {
              	double tmp;
              	if ((z <= -5.1e+34) || !(z <= 1.9e+38)) {
              		tmp = (z / (t - z)) * -x;
              	} else {
              		tmp = (y * x) / (t - z);
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8) :: tmp
                  if ((z <= (-5.1d+34)) .or. (.not. (z <= 1.9d+38))) then
                      tmp = (z / (t - z)) * -x
                  else
                      tmp = (y * x) / (t - z)
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t) {
              	double tmp;
              	if ((z <= -5.1e+34) || !(z <= 1.9e+38)) {
              		tmp = (z / (t - z)) * -x;
              	} else {
              		tmp = (y * x) / (t - z);
              	}
              	return tmp;
              }
              
              def code(x, y, z, t):
              	tmp = 0
              	if (z <= -5.1e+34) or not (z <= 1.9e+38):
              		tmp = (z / (t - z)) * -x
              	else:
              		tmp = (y * x) / (t - z)
              	return tmp
              
              function code(x, y, z, t)
              	tmp = 0.0
              	if ((z <= -5.1e+34) || !(z <= 1.9e+38))
              		tmp = Float64(Float64(z / Float64(t - z)) * Float64(-x));
              	else
              		tmp = Float64(Float64(y * x) / Float64(t - z));
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t)
              	tmp = 0.0;
              	if ((z <= -5.1e+34) || ~((z <= 1.9e+38)))
              		tmp = (z / (t - z)) * -x;
              	else
              		tmp = (y * x) / (t - z);
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_] := If[Or[LessEqual[z, -5.1e+34], N[Not[LessEqual[z, 1.9e+38]], $MachinePrecision]], N[(N[(z / N[(t - z), $MachinePrecision]), $MachinePrecision] * (-x)), $MachinePrecision], N[(N[(y * x), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -5.1 \cdot 10^{+34} \lor \neg \left(z \leq 1.9 \cdot 10^{+38}\right):\\
              \;\;\;\;\frac{z}{t - z} \cdot \left(-x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{y \cdot x}{t - z}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -5.10000000000000036e34 or 1.8999999999999999e38 < z

                1. Initial program 69.0%

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

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

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

                if -5.10000000000000036e34 < z < 1.8999999999999999e38

                1. Initial program 92.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 6: 73.4% accurate, 0.7× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{-7} \lor \neg \left(z \leq 9.5 \cdot 10^{+32}\right):\\ \;\;\;\;\mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \end{array} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (if (or (<= z -2.7e-7) (not (<= z 9.5e+32)))
                 (fma (- x) (/ y z) x)
                 (/ (* (- y z) x) t)))
              double code(double x, double y, double z, double t) {
              	double tmp;
              	if ((z <= -2.7e-7) || !(z <= 9.5e+32)) {
              		tmp = fma(-x, (y / z), x);
              	} else {
              		tmp = ((y - z) * x) / t;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t)
              	tmp = 0.0
              	if ((z <= -2.7e-7) || !(z <= 9.5e+32))
              		tmp = fma(Float64(-x), Float64(y / z), x);
              	else
              		tmp = Float64(Float64(Float64(y - z) * x) / t);
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_] := If[Or[LessEqual[z, -2.7e-7], N[Not[LessEqual[z, 9.5e+32]], $MachinePrecision]], N[((-x) * N[(y / z), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] * x), $MachinePrecision] / t), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -2.7 \cdot 10^{-7} \lor \neg \left(z \leq 9.5 \cdot 10^{+32}\right):\\
              \;\;\;\;\mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -2.70000000000000009e-7 or 9.50000000000000006e32 < 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--.f6476.0

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

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

                  \[\leadsto \frac{-1 \cdot y}{z} \cdot x \]
                7. Step-by-step derivation
                  1. Applied rewrites15.8%

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

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

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

                    if -2.70000000000000009e-7 < z < 9.50000000000000006e32

                    1. Initial program 92.9%

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                    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--.f6478.5

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{-7} \lor \neg \left(z \leq 9.5 \cdot 10^{+32}\right):\\ \;\;\;\;\mathsf{fma}\left(-x, \frac{y}{z}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \end{array} \]
                  6. Add Preprocessing

                  Alternative 7: 65.7% accurate, 0.7× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.2 \cdot 10^{+35} \lor \neg \left(z \leq 1.22 \cdot 10^{+114}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \end{array} \end{array} \]
                  (FPCore (x y z t)
                   :precision binary64
                   (if (or (<= z -5.2e+35) (not (<= z 1.22e+114)))
                     (* 1.0 x)
                     (/ (* (- y z) x) t)))
                  double code(double x, double y, double z, double t) {
                  	double tmp;
                  	if ((z <= -5.2e+35) || !(z <= 1.22e+114)) {
                  		tmp = 1.0 * x;
                  	} else {
                  		tmp = ((y - z) * x) / t;
                  	}
                  	return tmp;
                  }
                  
                  real(8) function code(x, y, z, t)
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8) :: tmp
                      if ((z <= (-5.2d+35)) .or. (.not. (z <= 1.22d+114))) then
                          tmp = 1.0d0 * x
                      else
                          tmp = ((y - z) * x) / t
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t) {
                  	double tmp;
                  	if ((z <= -5.2e+35) || !(z <= 1.22e+114)) {
                  		tmp = 1.0 * x;
                  	} else {
                  		tmp = ((y - z) * x) / t;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t):
                  	tmp = 0
                  	if (z <= -5.2e+35) or not (z <= 1.22e+114):
                  		tmp = 1.0 * x
                  	else:
                  		tmp = ((y - z) * x) / t
                  	return tmp
                  
                  function code(x, y, z, t)
                  	tmp = 0.0
                  	if ((z <= -5.2e+35) || !(z <= 1.22e+114))
                  		tmp = Float64(1.0 * x);
                  	else
                  		tmp = Float64(Float64(Float64(y - z) * x) / t);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t)
                  	tmp = 0.0;
                  	if ((z <= -5.2e+35) || ~((z <= 1.22e+114)))
                  		tmp = 1.0 * x;
                  	else
                  		tmp = ((y - z) * x) / t;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_] := If[Or[LessEqual[z, -5.2e+35], N[Not[LessEqual[z, 1.22e+114]], $MachinePrecision]], N[(1.0 * x), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] * x), $MachinePrecision] / t), $MachinePrecision]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;z \leq -5.2 \cdot 10^{+35} \lor \neg \left(z \leq 1.22 \cdot 10^{+114}\right):\\
                  \;\;\;\;1 \cdot x\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if z < -5.20000000000000013e35 or 1.21999999999999999e114 < z

                    1. Initial program 65.1%

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

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

                      \[\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 rewrites73.0%

                        \[\leadsto 1 \cdot x \]

                      if -5.20000000000000013e35 < z < 1.21999999999999999e114

                      1. Initial program 92.4%

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\frac{y - z}{t - z} \cdot x} \]
                      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--.f6472.5

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

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

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

                    Alternative 8: 67.9% accurate, 0.7× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{-7}:\\ \;\;\;\;x - \frac{x \cdot y}{z}\\ \mathbf{elif}\;z \leq 1.22 \cdot 10^{+114}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
                    (FPCore (x y z t)
                     :precision binary64
                     (if (<= z -2.7e-7)
                       (- x (/ (* x y) z))
                       (if (<= z 1.22e+114) (/ (* (- y z) x) t) (* 1.0 x))))
                    double code(double x, double y, double z, double t) {
                    	double tmp;
                    	if (z <= -2.7e-7) {
                    		tmp = x - ((x * y) / z);
                    	} else if (z <= 1.22e+114) {
                    		tmp = ((y - z) * x) / t;
                    	} else {
                    		tmp = 1.0 * x;
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y, z, t)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8) :: tmp
                        if (z <= (-2.7d-7)) then
                            tmp = x - ((x * y) / z)
                        else if (z <= 1.22d+114) then
                            tmp = ((y - z) * x) / t
                        else
                            tmp = 1.0d0 * x
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t) {
                    	double tmp;
                    	if (z <= -2.7e-7) {
                    		tmp = x - ((x * y) / z);
                    	} else if (z <= 1.22e+114) {
                    		tmp = ((y - z) * x) / t;
                    	} else {
                    		tmp = 1.0 * x;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t):
                    	tmp = 0
                    	if z <= -2.7e-7:
                    		tmp = x - ((x * y) / z)
                    	elif z <= 1.22e+114:
                    		tmp = ((y - z) * x) / t
                    	else:
                    		tmp = 1.0 * x
                    	return tmp
                    
                    function code(x, y, z, t)
                    	tmp = 0.0
                    	if (z <= -2.7e-7)
                    		tmp = Float64(x - Float64(Float64(x * y) / z));
                    	elseif (z <= 1.22e+114)
                    		tmp = Float64(Float64(Float64(y - z) * x) / t);
                    	else
                    		tmp = Float64(1.0 * x);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t)
                    	tmp = 0.0;
                    	if (z <= -2.7e-7)
                    		tmp = x - ((x * y) / z);
                    	elseif (z <= 1.22e+114)
                    		tmp = ((y - z) * x) / t;
                    	else
                    		tmp = 1.0 * x;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_] := If[LessEqual[z, -2.7e-7], N[(x - N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.22e+114], N[(N[(N[(y - z), $MachinePrecision] * x), $MachinePrecision] / t), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;z \leq -2.7 \cdot 10^{-7}:\\
                    \;\;\;\;x - \frac{x \cdot y}{z}\\
                    
                    \mathbf{elif}\;z \leq 1.22 \cdot 10^{+114}:\\
                    \;\;\;\;\frac{\left(y - z\right) \cdot x}{t}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;1 \cdot x\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if z < -2.70000000000000009e-7

                      1. Initial program 68.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--.f6479.5

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

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

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

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

                        if -2.70000000000000009e-7 < z < 1.21999999999999999e114

                        1. Initial program 92.5%

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

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

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

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

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

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

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

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

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

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

                        if 1.21999999999999999e114 < z

                        1. Initial program 65.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--.f6480.8

                            \[\leadsto \frac{\color{blue}{z - y}}{z} \cdot x \]
                        5. Applied rewrites80.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 rewrites70.8%

                            \[\leadsto 1 \cdot x \]
                        8. Recombined 3 regimes into one program.
                        9. Final simplification73.8%

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

                        Alternative 9: 61.3% accurate, 0.8× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.6 \cdot 10^{+34} \lor \neg \left(z \leq 9 \cdot 10^{+32}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{t} \cdot x\\ \end{array} \end{array} \]
                        (FPCore (x y z t)
                         :precision binary64
                         (if (or (<= z -4.6e+34) (not (<= z 9e+32))) (* 1.0 x) (* (/ y t) x)))
                        double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if ((z <= -4.6e+34) || !(z <= 9e+32)) {
                        		tmp = 1.0 * x;
                        	} else {
                        		tmp = (y / t) * x;
                        	}
                        	return tmp;
                        }
                        
                        real(8) function code(x, y, z, t)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            real(8) :: tmp
                            if ((z <= (-4.6d+34)) .or. (.not. (z <= 9d+32))) then
                                tmp = 1.0d0 * x
                            else
                                tmp = (y / t) * x
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t) {
                        	double tmp;
                        	if ((z <= -4.6e+34) || !(z <= 9e+32)) {
                        		tmp = 1.0 * x;
                        	} else {
                        		tmp = (y / t) * x;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t):
                        	tmp = 0
                        	if (z <= -4.6e+34) or not (z <= 9e+32):
                        		tmp = 1.0 * x
                        	else:
                        		tmp = (y / t) * x
                        	return tmp
                        
                        function code(x, y, z, t)
                        	tmp = 0.0
                        	if ((z <= -4.6e+34) || !(z <= 9e+32))
                        		tmp = Float64(1.0 * x);
                        	else
                        		tmp = Float64(Float64(y / t) * x);
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t)
                        	tmp = 0.0;
                        	if ((z <= -4.6e+34) || ~((z <= 9e+32)))
                        		tmp = 1.0 * x;
                        	else
                        		tmp = (y / t) * x;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.6e+34], N[Not[LessEqual[z, 9e+32]], $MachinePrecision]], N[(1.0 * x), $MachinePrecision], N[(N[(y / t), $MachinePrecision] * x), $MachinePrecision]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;z \leq -4.6 \cdot 10^{+34} \lor \neg \left(z \leq 9 \cdot 10^{+32}\right):\\
                        \;\;\;\;1 \cdot x\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\frac{y}{t} \cdot x\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if z < -4.5999999999999996e34 or 9.0000000000000007e32 < z

                          1. Initial program 69.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--.f6477.2

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

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

                              \[\leadsto 1 \cdot x \]

                            if -4.5999999999999996e34 < z < 9.0000000000000007e32

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

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

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

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

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

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

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

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

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

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

                          Alternative 10: 59.9% accurate, 0.8× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.3 \cdot 10^{+34} \lor \neg \left(z \leq 8.8 \cdot 10^{+32}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot x}{t}\\ \end{array} \end{array} \]
                          (FPCore (x y z t)
                           :precision binary64
                           (if (or (<= z -3.3e+34) (not (<= z 8.8e+32))) (* 1.0 x) (/ (* y x) t)))
                          double code(double x, double y, double z, double t) {
                          	double tmp;
                          	if ((z <= -3.3e+34) || !(z <= 8.8e+32)) {
                          		tmp = 1.0 * x;
                          	} else {
                          		tmp = (y * x) / t;
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8) :: tmp
                              if ((z <= (-3.3d+34)) .or. (.not. (z <= 8.8d+32))) then
                                  tmp = 1.0d0 * x
                              else
                                  tmp = (y * x) / t
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t) {
                          	double tmp;
                          	if ((z <= -3.3e+34) || !(z <= 8.8e+32)) {
                          		tmp = 1.0 * x;
                          	} else {
                          		tmp = (y * x) / t;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t):
                          	tmp = 0
                          	if (z <= -3.3e+34) or not (z <= 8.8e+32):
                          		tmp = 1.0 * x
                          	else:
                          		tmp = (y * x) / t
                          	return tmp
                          
                          function code(x, y, z, t)
                          	tmp = 0.0
                          	if ((z <= -3.3e+34) || !(z <= 8.8e+32))
                          		tmp = Float64(1.0 * x);
                          	else
                          		tmp = Float64(Float64(y * x) / t);
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t)
                          	tmp = 0.0;
                          	if ((z <= -3.3e+34) || ~((z <= 8.8e+32)))
                          		tmp = 1.0 * x;
                          	else
                          		tmp = (y * x) / t;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_] := If[Or[LessEqual[z, -3.3e+34], N[Not[LessEqual[z, 8.8e+32]], $MachinePrecision]], N[(1.0 * x), $MachinePrecision], N[(N[(y * x), $MachinePrecision] / t), $MachinePrecision]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;z \leq -3.3 \cdot 10^{+34} \lor \neg \left(z \leq 8.8 \cdot 10^{+32}\right):\\
                          \;\;\;\;1 \cdot x\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\frac{y \cdot x}{t}\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if z < -3.29999999999999988e34 or 8.80000000000000004e32 < z

                            1. Initial program 69.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--.f6477.2

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

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

                                \[\leadsto 1 \cdot x \]

                              if -3.29999999999999988e34 < z < 8.80000000000000004e32

                              1. Initial program 92.7%

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

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

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

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

                            Alternative 11: 60.2% accurate, 0.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.4 \cdot 10^{+34} \lor \neg \left(z \leq 9 \cdot 10^{+32}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{t} \cdot y\\ \end{array} \end{array} \]
                            (FPCore (x y z t)
                             :precision binary64
                             (if (or (<= z -4.4e+34) (not (<= z 9e+32))) (* 1.0 x) (* (/ x t) y)))
                            double code(double x, double y, double z, double t) {
                            	double tmp;
                            	if ((z <= -4.4e+34) || !(z <= 9e+32)) {
                            		tmp = 1.0 * x;
                            	} else {
                            		tmp = (x / t) * y;
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(x, y, z, t)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                real(8), intent (in) :: z
                                real(8), intent (in) :: t
                                real(8) :: tmp
                                if ((z <= (-4.4d+34)) .or. (.not. (z <= 9d+32))) then
                                    tmp = 1.0d0 * x
                                else
                                    tmp = (x / t) * y
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t) {
                            	double tmp;
                            	if ((z <= -4.4e+34) || !(z <= 9e+32)) {
                            		tmp = 1.0 * x;
                            	} else {
                            		tmp = (x / t) * y;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t):
                            	tmp = 0
                            	if (z <= -4.4e+34) or not (z <= 9e+32):
                            		tmp = 1.0 * x
                            	else:
                            		tmp = (x / t) * y
                            	return tmp
                            
                            function code(x, y, z, t)
                            	tmp = 0.0
                            	if ((z <= -4.4e+34) || !(z <= 9e+32))
                            		tmp = Float64(1.0 * x);
                            	else
                            		tmp = Float64(Float64(x / t) * y);
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t)
                            	tmp = 0.0;
                            	if ((z <= -4.4e+34) || ~((z <= 9e+32)))
                            		tmp = 1.0 * x;
                            	else
                            		tmp = (x / t) * y;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_] := If[Or[LessEqual[z, -4.4e+34], N[Not[LessEqual[z, 9e+32]], $MachinePrecision]], N[(1.0 * x), $MachinePrecision], N[(N[(x / t), $MachinePrecision] * y), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;z \leq -4.4 \cdot 10^{+34} \lor \neg \left(z \leq 9 \cdot 10^{+32}\right):\\
                            \;\;\;\;1 \cdot x\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\frac{x}{t} \cdot y\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if z < -4.4000000000000005e34 or 9.0000000000000007e32 < z

                              1. Initial program 69.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--.f6477.2

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

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

                                  \[\leadsto 1 \cdot x \]

                                if -4.4000000000000005e34 < z < 9.0000000000000007e32

                                1. Initial program 92.7%

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

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

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

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

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

                                Alternative 12: 34.6% accurate, 3.8× speedup?

                                \[\begin{array}{l} \\ 1 \cdot x \end{array} \]
                                (FPCore (x y z t) :precision binary64 (* 1.0 x))
                                double code(double x, double y, double z, double t) {
                                	return 1.0 * x;
                                }
                                
                                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 = 1.0d0 * x
                                end function
                                
                                public static double code(double x, double y, double z, double t) {
                                	return 1.0 * x;
                                }
                                
                                def code(x, y, z, t):
                                	return 1.0 * x
                                
                                function code(x, y, z, t)
                                	return Float64(1.0 * x)
                                end
                                
                                function tmp = code(x, y, z, t)
                                	tmp = 1.0 * x;
                                end
                                
                                code[x_, y_, z_, t_] := N[(1.0 * x), $MachinePrecision]
                                
                                \begin{array}{l}
                                
                                \\
                                1 \cdot x
                                \end{array}
                                
                                Derivation
                                1. Initial program 82.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--.f6449.6

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

                                  \[\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 rewrites34.7%

                                    \[\leadsto 1 \cdot x \]
                                  2. Add Preprocessing

                                  Developer Target 1: 96.8% 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 2024337 
                                  (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)))