Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 80.1% → 95.2%
Time: 10.1s
Alternatives: 23
Speedup: 0.3×

Specification

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

\\
x + \left(y - z\right) \cdot \frac{t - x}{a - 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 23 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: 80.1% accurate, 1.0× speedup?

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

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

Alternative 1: 95.2% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{z - y}{z - a}, t - x, x\right)\\ t_2 := x - \left(z - y\right) \cdot \frac{x - t}{z - a}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{-294}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 0:\\ \;\;\;\;t - \left(y - a\right) \cdot \frac{-x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (fma (/ (- z y) (- z a)) (- t x) x))
        (t_2 (- x (* (- z y) (/ (- x t) (- z a))))))
   (if (<= t_2 -2e-294)
     t_1
     (if (<= t_2 0.0) (- t (* (- y a) (/ (- x) z))) t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = fma(((z - y) / (z - a)), (t - x), x);
	double t_2 = x - ((z - y) * ((x - t) / (z - a)));
	double tmp;
	if (t_2 <= -2e-294) {
		tmp = t_1;
	} else if (t_2 <= 0.0) {
		tmp = t - ((y - a) * (-x / z));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a)
	t_1 = fma(Float64(Float64(z - y) / Float64(z - a)), Float64(t - x), x)
	t_2 = Float64(x - Float64(Float64(z - y) * Float64(Float64(x - t) / Float64(z - a))))
	tmp = 0.0
	if (t_2 <= -2e-294)
		tmp = t_1;
	elseif (t_2 <= 0.0)
		tmp = Float64(t - Float64(Float64(y - a) * Float64(Float64(-x) / z)));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(z - y), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-294], t$95$1, If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(y - a), $MachinePrecision] * N[((-x) / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{z - y}{z - a}, t - x, x\right)\\
t_2 := x - \left(z - y\right) \cdot \frac{x - t}{z - a}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{-294}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \left(y - a\right) \cdot \frac{-x}{z}\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.00000000000000003e-294 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    1. Initial program 92.3%

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
      10. flip3--N/A

        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
      11. clear-num-revN/A

        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
      12. clear-numN/A

        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
      13. flip3--N/A

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
      16. lower-/.f6495.6

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

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

    if -2.00000000000000003e-294 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0

    1. Initial program 4.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
      16. lower--.f6499.7

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

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

      \[\leadsto t - \frac{-1 \cdot x}{z} \cdot \left(y - a\right) \]
    7. Step-by-step derivation
      1. Applied rewrites99.7%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;x - \left(z - y\right) \cdot \frac{x - t}{z - a} \leq -2 \cdot 10^{-294}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - y}{z - a}, t - x, x\right)\\ \mathbf{elif}\;x - \left(z - y\right) \cdot \frac{x - t}{z - a} \leq 0:\\ \;\;\;\;t - \left(y - a\right) \cdot \frac{-x}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - y}{z - a}, t - x, x\right)\\ \end{array} \]
    10. Add Preprocessing

    Alternative 2: 89.7% accurate, 0.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x - t}{z - a}\\ t_2 := \mathsf{fma}\left(t\_1, y - z, x\right)\\ t_3 := x - \left(z - y\right) \cdot t\_1\\ \mathbf{if}\;t\_3 \leq -2 \cdot 10^{-294}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_3 \leq 5 \cdot 10^{-129}:\\ \;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (/ (- x t) (- z a)))
            (t_2 (fma t_1 (- y z) x))
            (t_3 (- x (* (- z y) t_1))))
       (if (<= t_3 -2e-294)
         t_2
         (if (<= t_3 5e-129) (- t (* (/ (- t x) z) (- y a))) t_2))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = (x - t) / (z - a);
    	double t_2 = fma(t_1, (y - z), x);
    	double t_3 = x - ((z - y) * t_1);
    	double tmp;
    	if (t_3 <= -2e-294) {
    		tmp = t_2;
    	} else if (t_3 <= 5e-129) {
    		tmp = t - (((t - x) / z) * (y - a));
    	} else {
    		tmp = t_2;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	t_1 = Float64(Float64(x - t) / Float64(z - a))
    	t_2 = fma(t_1, Float64(y - z), x)
    	t_3 = Float64(x - Float64(Float64(z - y) * t_1))
    	tmp = 0.0
    	if (t_3 <= -2e-294)
    		tmp = t_2;
    	elseif (t_3 <= 5e-129)
    		tmp = Float64(t - Float64(Float64(Float64(t - x) / z) * Float64(y - a)));
    	else
    		tmp = t_2;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[(y - z), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$3 = N[(x - N[(N[(z - y), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -2e-294], t$95$2, If[LessEqual[t$95$3, 5e-129], N[(t - N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{x - t}{z - a}\\
    t_2 := \mathsf{fma}\left(t\_1, y - z, x\right)\\
    t_3 := x - \left(z - y\right) \cdot t\_1\\
    \mathbf{if}\;t\_3 \leq -2 \cdot 10^{-294}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_3 \leq 5 \cdot 10^{-129}:\\
    \;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.00000000000000003e-294 or 5.00000000000000027e-129 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

      1. Initial program 93.6%

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

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

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

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

          \[\leadsto \color{blue}{\frac{t - x}{a - z} \cdot \left(y - z\right)} + x \]
        5. lower-fma.f6493.6

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a - z}}, y - z, x\right) \]
        7. frac-2negN/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{\mathsf{neg}\left(\left(t - x\right)\right)}{\mathsf{neg}\left(\left(a - z\right)\right)}}, y - z, x\right) \]
        9. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{0 - \left(t - x\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        10. lift--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(t - x\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        11. sub-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(t + \left(\mathsf{neg}\left(x\right)\right)\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        12. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + t\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        13. associate--r+N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - \left(\mathsf{neg}\left(x\right)\right)\right) - t}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        14. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right)} - t}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        15. remove-double-negN/A

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

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - t}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        17. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{0 - \left(a - z\right)}}, y - z, x\right) \]
        18. lift--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(a - z\right)}}, y - z, x\right) \]
        19. sub-negN/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(a + \left(\mathsf{neg}\left(z\right)\right)\right)}}, y - z, x\right) \]
        20. +-commutativeN/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + a\right)}}, y - z, x\right) \]
        21. associate--r+N/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - a}}, y - z, x\right) \]
        22. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)} - a}, y - z, x\right) \]
        23. remove-double-negN/A

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

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

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

      if -2.00000000000000003e-294 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.00000000000000027e-129

      1. Initial program 16.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 3: 65.1% accurate, 0.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -2.7 \cdot 10^{+76}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\ \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (if (<= z -1.9e+203)
       (* (/ z (- z a)) t)
       (if (<= z -2.7e+76)
         (* (/ y (- z a)) (- x t))
         (if (<= z 8e+53)
           (fma (- y z) (/ (- t x) a) x)
           (if (<= z 4.45e+164)
             (* (/ t (- z a)) (- z y))
             (fma a (/ (- t x) z) t))))))
    double code(double x, double y, double z, double t, double a) {
    	double tmp;
    	if (z <= -1.9e+203) {
    		tmp = (z / (z - a)) * t;
    	} else if (z <= -2.7e+76) {
    		tmp = (y / (z - a)) * (x - t);
    	} else if (z <= 8e+53) {
    		tmp = fma((y - z), ((t - x) / a), x);
    	} else if (z <= 4.45e+164) {
    		tmp = (t / (z - a)) * (z - y);
    	} else {
    		tmp = fma(a, ((t - x) / z), t);
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	tmp = 0.0
    	if (z <= -1.9e+203)
    		tmp = Float64(Float64(z / Float64(z - a)) * t);
    	elseif (z <= -2.7e+76)
    		tmp = Float64(Float64(y / Float64(z - a)) * Float64(x - t));
    	elseif (z <= 8e+53)
    		tmp = fma(Float64(y - z), Float64(Float64(t - x) / a), x);
    	elseif (z <= 4.45e+164)
    		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
    	else
    		tmp = fma(a, Float64(Float64(t - x) / z), t);
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -2.7e+76], N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e+53], N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.45e+164], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\
    \;\;\;\;\frac{z}{z - a} \cdot t\\
    
    \mathbf{elif}\;z \leq -2.7 \cdot 10^{+76}:\\
    \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\
    
    \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\
    \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\
    
    \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\
    \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if z < -1.90000000000000012e203

      1. Initial program 60.7%

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

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

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

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

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

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

          \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
        6. lower--.f6470.3

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

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

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

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

        if -1.90000000000000012e203 < z < -2.6999999999999999e76

        1. Initial program 67.9%

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

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

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

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

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

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

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

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

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

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

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

        if -2.6999999999999999e76 < z < 7.9999999999999999e53

        1. Initial program 93.5%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(y - z, \color{blue}{\frac{t - x}{a}}, x\right) \]
          7. lower--.f6473.2

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

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

        if 7.9999999999999999e53 < z < 4.4499999999999999e164

        1. Initial program 76.4%

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

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

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

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

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

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

            \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
          6. lower--.f6470.9

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

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

        if 4.4499999999999999e164 < z

        1. Initial program 48.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
        7. Step-by-step derivation
          1. Applied rewrites80.3%

            \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
        8. Recombined 5 regimes into one program.
        9. Final simplification73.4%

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -2.7 \cdot 10^{+76}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\ \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
        10. Add Preprocessing

        Alternative 4: 63.1% accurate, 0.6× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.7 \cdot 10^{+81}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 9 \cdot 10^{-80}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (if (<= z -1.9e+203)
           (* (/ z (- z a)) t)
           (if (<= z -1.7e+81)
             (* (/ y (- z a)) (- x t))
             (if (<= z 9e-80)
               (fma (/ y a) (- t x) x)
               (if (<= z 4.45e+164)
                 (* (/ t (- z a)) (- z y))
                 (fma a (/ (- t x) z) t))))))
        double code(double x, double y, double z, double t, double a) {
        	double tmp;
        	if (z <= -1.9e+203) {
        		tmp = (z / (z - a)) * t;
        	} else if (z <= -1.7e+81) {
        		tmp = (y / (z - a)) * (x - t);
        	} else if (z <= 9e-80) {
        		tmp = fma((y / a), (t - x), x);
        	} else if (z <= 4.45e+164) {
        		tmp = (t / (z - a)) * (z - y);
        	} else {
        		tmp = fma(a, ((t - x) / z), t);
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a)
        	tmp = 0.0
        	if (z <= -1.9e+203)
        		tmp = Float64(Float64(z / Float64(z - a)) * t);
        	elseif (z <= -1.7e+81)
        		tmp = Float64(Float64(y / Float64(z - a)) * Float64(x - t));
        	elseif (z <= 9e-80)
        		tmp = fma(Float64(y / a), Float64(t - x), x);
        	elseif (z <= 4.45e+164)
        		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
        	else
        		tmp = fma(a, Float64(Float64(t - x) / z), t);
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -1.7e+81], N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e-80], N[(N[(y / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.45e+164], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\
        \;\;\;\;\frac{z}{z - a} \cdot t\\
        
        \mathbf{elif}\;z \leq -1.7 \cdot 10^{+81}:\\
        \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\
        
        \mathbf{elif}\;z \leq 9 \cdot 10^{-80}:\\
        \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\
        
        \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\
        \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 5 regimes
        2. if z < -1.90000000000000012e203

          1. Initial program 60.7%

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

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

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

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

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

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

              \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
            6. lower--.f6470.3

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

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

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

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

            if -1.90000000000000012e203 < z < -1.70000000000000001e81

            1. Initial program 66.5%

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

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

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

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

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

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

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

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

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

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

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

            if -1.70000000000000001e81 < z < 9.0000000000000006e-80

            1. Initial program 95.4%

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
              10. flip3--N/A

                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
              11. clear-num-revN/A

                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
              12. clear-numN/A

                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
              13. flip3--N/A

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
              16. lower-/.f6496.1

                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, t - x, x\right) \]
            4. Applied rewrites96.1%

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
            5. Taylor expanded in z around 0

              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
            6. Step-by-step derivation
              1. lower-/.f6474.7

                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
            7. Applied rewrites74.7%

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

            if 9.0000000000000006e-80 < z < 4.4499999999999999e164

            1. Initial program 79.8%

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

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

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

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

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

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

                \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
              6. lower--.f6460.3

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

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

            if 4.4499999999999999e164 < z

            1. Initial program 48.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
            7. Step-by-step derivation
              1. Applied rewrites80.3%

                \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
            8. Recombined 5 regimes into one program.
            9. Final simplification72.4%

              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.7 \cdot 10^{+81}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 9 \cdot 10^{-80}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
            10. Add Preprocessing

            Alternative 5: 38.7% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(x - t\right) \cdot y}{z}\\ t_2 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{if}\;z \leq -1.16 \cdot 10^{+198}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -1.52 \cdot 10^{-114}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-187}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{+64}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (let* ((t_1 (/ (* (- x t) y) z)) (t_2 (fma (/ a z) t t)))
               (if (<= z -1.16e+198)
                 t_2
                 (if (<= z -1.52e-114)
                   t_1
                   (if (<= z 2.8e-187) (* (/ y (- a z)) t) (if (<= z 9.2e+64) t_1 t_2))))))
            double code(double x, double y, double z, double t, double a) {
            	double t_1 = ((x - t) * y) / z;
            	double t_2 = fma((a / z), t, t);
            	double tmp;
            	if (z <= -1.16e+198) {
            		tmp = t_2;
            	} else if (z <= -1.52e-114) {
            		tmp = t_1;
            	} else if (z <= 2.8e-187) {
            		tmp = (y / (a - z)) * t;
            	} else if (z <= 9.2e+64) {
            		tmp = t_1;
            	} else {
            		tmp = t_2;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a)
            	t_1 = Float64(Float64(Float64(x - t) * y) / z)
            	t_2 = fma(Float64(a / z), t, t)
            	tmp = 0.0
            	if (z <= -1.16e+198)
            		tmp = t_2;
            	elseif (z <= -1.52e-114)
            		tmp = t_1;
            	elseif (z <= 2.8e-187)
            		tmp = Float64(Float64(y / Float64(a - z)) * t);
            	elseif (z <= 9.2e+64)
            		tmp = t_1;
            	else
            		tmp = t_2;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - t), $MachinePrecision] * y), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a / z), $MachinePrecision] * t + t), $MachinePrecision]}, If[LessEqual[z, -1.16e+198], t$95$2, If[LessEqual[z, -1.52e-114], t$95$1, If[LessEqual[z, 2.8e-187], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 9.2e+64], t$95$1, t$95$2]]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \frac{\left(x - t\right) \cdot y}{z}\\
            t_2 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\
            \mathbf{if}\;z \leq -1.16 \cdot 10^{+198}:\\
            \;\;\;\;t\_2\\
            
            \mathbf{elif}\;z \leq -1.52 \cdot 10^{-114}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 2.8 \cdot 10^{-187}:\\
            \;\;\;\;\frac{y}{a - z} \cdot t\\
            
            \mathbf{elif}\;z \leq 9.2 \cdot 10^{+64}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_2\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -1.16000000000000001e198 or 9.2e64 < z

              1. Initial program 61.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
              7. Step-by-step derivation
                1. Applied rewrites70.1%

                  \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                2. Taylor expanded in t around inf

                  \[\leadsto t \cdot \left(1 + \color{blue}{\frac{a}{z}}\right) \]
                3. Step-by-step derivation
                  1. Applied rewrites60.6%

                    \[\leadsto \mathsf{fma}\left(\frac{a}{z}, t, t\right) \]

                  if -1.16000000000000001e198 < z < -1.51999999999999997e-114 or 2.8e-187 < z < 9.2e64

                  1. Initial program 87.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                    16. lower--.f6453.9

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

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

                    \[\leadsto y \cdot \color{blue}{\left(\frac{x}{z} - \frac{t}{z}\right)} \]
                  7. Step-by-step derivation
                    1. Applied rewrites38.0%

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

                    if -1.51999999999999997e-114 < z < 2.8e-187

                    1. Initial program 95.6%

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

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

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

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

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

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

                        \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                      6. lower--.f6445.6

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

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

                      \[\leadsto \frac{t \cdot y}{\color{blue}{a - z}} \]
                    7. Step-by-step derivation
                      1. Applied rewrites43.9%

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+198}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{elif}\;z \leq -1.52 \cdot 10^{-114}:\\ \;\;\;\;\frac{\left(x - t\right) \cdot y}{z}\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-187}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{\left(x - t\right) \cdot y}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 6: 34.3% accurate, 0.7× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.56 \cdot 10^{-114}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{-234}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{+58}:\\ \;\;\;\;\frac{y}{-z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (let* ((t_1 (fma (/ a z) t t)))
                       (if (<= z -2.15e-14)
                         t_1
                         (if (<= z -1.56e-114)
                           (/ (* y x) z)
                           (if (<= z 3.5e-234)
                             (* (/ y a) t)
                             (if (<= z 7.2e+58) (* (/ y (- z)) t) t_1))))))
                    double code(double x, double y, double z, double t, double a) {
                    	double t_1 = fma((a / z), t, t);
                    	double tmp;
                    	if (z <= -2.15e-14) {
                    		tmp = t_1;
                    	} else if (z <= -1.56e-114) {
                    		tmp = (y * x) / z;
                    	} else if (z <= 3.5e-234) {
                    		tmp = (y / a) * t;
                    	} else if (z <= 7.2e+58) {
                    		tmp = (y / -z) * t;
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a)
                    	t_1 = fma(Float64(a / z), t, t)
                    	tmp = 0.0
                    	if (z <= -2.15e-14)
                    		tmp = t_1;
                    	elseif (z <= -1.56e-114)
                    		tmp = Float64(Float64(y * x) / z);
                    	elseif (z <= 3.5e-234)
                    		tmp = Float64(Float64(y / a) * t);
                    	elseif (z <= 7.2e+58)
                    		tmp = Float64(Float64(y / Float64(-z)) * t);
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(a / z), $MachinePrecision] * t + t), $MachinePrecision]}, If[LessEqual[z, -2.15e-14], t$95$1, If[LessEqual[z, -1.56e-114], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 3.5e-234], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 7.2e+58], N[(N[(y / (-z)), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\
                    \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;z \leq -1.56 \cdot 10^{-114}:\\
                    \;\;\;\;\frac{y \cdot x}{z}\\
                    
                    \mathbf{elif}\;z \leq 3.5 \cdot 10^{-234}:\\
                    \;\;\;\;\frac{y}{a} \cdot t\\
                    
                    \mathbf{elif}\;z \leq 7.2 \cdot 10^{+58}:\\
                    \;\;\;\;\frac{y}{-z} \cdot t\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 4 regimes
                    2. if z < -2.14999999999999999e-14 or 7.19999999999999993e58 < z

                      1. Initial program 67.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                      7. Step-by-step derivation
                        1. Applied rewrites56.4%

                          \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                        2. Taylor expanded in t around inf

                          \[\leadsto t \cdot \left(1 + \color{blue}{\frac{a}{z}}\right) \]
                        3. Step-by-step derivation
                          1. Applied rewrites47.7%

                            \[\leadsto \mathsf{fma}\left(\frac{a}{z}, t, t\right) \]

                          if -2.14999999999999999e-14 < z < -1.5599999999999999e-114

                          1. Initial program 93.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                            16. lower--.f6462.0

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

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

                            \[\leadsto \frac{x \cdot \left(y - a\right)}{\color{blue}{z}} \]
                          7. Step-by-step derivation
                            1. Applied rewrites43.8%

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

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

                                \[\leadsto \frac{y \cdot x}{z} \]

                              if -1.5599999999999999e-114 < z < 3.5000000000000001e-234

                              1. Initial program 96.5%

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

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

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

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

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

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

                                  \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                6. lower--.f6449.1

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

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

                                \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                              7. Step-by-step derivation
                                1. Applied rewrites44.0%

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

                                if 3.5000000000000001e-234 < z < 7.19999999999999993e58

                                1. Initial program 90.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                  16. lower--.f6440.6

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

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

                                  \[\leadsto -1 \cdot \color{blue}{\frac{y \cdot \left(t - x\right)}{z}} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites35.4%

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

                                    \[\leadsto -1 \cdot \frac{t \cdot y}{\color{blue}{z}} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites27.3%

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

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{elif}\;z \leq -1.56 \cdot 10^{-114}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{-234}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{+58}:\\ \;\;\;\;\frac{y}{-z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \end{array} \]
                                  6. Add Preprocessing

                                  Alternative 7: 72.5% accurate, 0.7× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \left(y - a\right) \cdot \frac{-x}{z}\\ \mathbf{if}\;z \leq -1.1 \cdot 10^{+76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{+160}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (let* ((t_1 (- t (* (- y a) (/ (- x) z)))))
                                     (if (<= z -1.1e+76)
                                       t_1
                                       (if (<= z 8e+53)
                                         (fma (/ (- y z) a) (- t x) x)
                                         (if (<= z 3.2e+160) (* (/ t (- z a)) (- z y)) t_1)))))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double t_1 = t - ((y - a) * (-x / z));
                                  	double tmp;
                                  	if (z <= -1.1e+76) {
                                  		tmp = t_1;
                                  	} else if (z <= 8e+53) {
                                  		tmp = fma(((y - z) / a), (t - x), x);
                                  	} else if (z <= 3.2e+160) {
                                  		tmp = (t / (z - a)) * (z - y);
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a)
                                  	t_1 = Float64(t - Float64(Float64(y - a) * Float64(Float64(-x) / z)))
                                  	tmp = 0.0
                                  	if (z <= -1.1e+76)
                                  		tmp = t_1;
                                  	elseif (z <= 8e+53)
                                  		tmp = fma(Float64(Float64(y - z) / a), Float64(t - x), x);
                                  	elseif (z <= 3.2e+160)
                                  		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y - a), $MachinePrecision] * N[((-x) / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e+76], t$95$1, If[LessEqual[z, 8e+53], N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 3.2e+160], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := t - \left(y - a\right) \cdot \frac{-x}{z}\\
                                  \mathbf{if}\;z \leq -1.1 \cdot 10^{+76}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\
                                  \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\
                                  
                                  \mathbf{elif}\;z \leq 3.2 \cdot 10^{+160}:\\
                                  \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 3 regimes
                                  2. if z < -1.1e76 or 3.1999999999999998e160 < z

                                    1. Initial program 57.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto t - \frac{-1 \cdot x}{z} \cdot \left(y - a\right) \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites81.6%

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

                                      if -1.1e76 < z < 7.9999999999999999e53

                                      1. Initial program 93.5%

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
                                        10. flip3--N/A

                                          \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
                                        11. clear-num-revN/A

                                          \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
                                        12. clear-numN/A

                                          \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
                                        13. flip3--N/A

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

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                        16. lower-/.f6494.8

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, t - x, x\right) \]
                                      4. Applied rewrites94.8%

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

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

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a}}, t - x, x\right) \]
                                        2. lower--.f6474.3

                                          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - z}}{a}, t - x, x\right) \]
                                      7. Applied rewrites74.3%

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

                                      if 7.9999999999999999e53 < z < 3.1999999999999998e160

                                      1. Initial program 79.9%

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

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

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

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

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

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

                                          \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                        6. lower--.f6474.0

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

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.1 \cdot 10^{+76}:\\ \;\;\;\;t - \left(y - a\right) \cdot \frac{-x}{z}\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{+160}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;t - \left(y - a\right) \cdot \frac{-x}{z}\\ \end{array} \]
                                    10. Add Preprocessing

                                    Alternative 8: 65.5% accurate, 0.7× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.55 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (if (<= z -1.55e+203)
                                       (* (/ z (- z a)) t)
                                       (if (<= z 8e+53)
                                         (fma (/ (- y z) a) (- t x) x)
                                         (if (<= z 4.45e+164) (* (/ t (- z a)) (- z y)) (fma a (/ (- t x) z) t)))))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double tmp;
                                    	if (z <= -1.55e+203) {
                                    		tmp = (z / (z - a)) * t;
                                    	} else if (z <= 8e+53) {
                                    		tmp = fma(((y - z) / a), (t - x), x);
                                    	} else if (z <= 4.45e+164) {
                                    		tmp = (t / (z - a)) * (z - y);
                                    	} else {
                                    		tmp = fma(a, ((t - x) / z), t);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a)
                                    	tmp = 0.0
                                    	if (z <= -1.55e+203)
                                    		tmp = Float64(Float64(z / Float64(z - a)) * t);
                                    	elseif (z <= 8e+53)
                                    		tmp = fma(Float64(Float64(y - z) / a), Float64(t - x), x);
                                    	elseif (z <= 4.45e+164)
                                    		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
                                    	else
                                    		tmp = fma(a, Float64(Float64(t - x) / z), t);
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.55e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 8e+53], N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.45e+164], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;z \leq -1.55 \cdot 10^{+203}:\\
                                    \;\;\;\;\frac{z}{z - a} \cdot t\\
                                    
                                    \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\
                                    \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\
                                    
                                    \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\
                                    \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 4 regimes
                                    2. if z < -1.55e203

                                      1. Initial program 60.7%

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

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

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

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

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

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

                                          \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                        6. lower--.f6470.3

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

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

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

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

                                        if -1.55e203 < z < 7.9999999999999999e53

                                        1. Initial program 90.2%

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
                                          10. flip3--N/A

                                            \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
                                          11. clear-num-revN/A

                                            \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
                                          12. clear-numN/A

                                            \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
                                          13. flip3--N/A

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

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

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                          16. lower-/.f6492.3

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, t - x, x\right) \]
                                        4. Applied rewrites92.3%

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

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

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

                                            \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - z}}{a}, t - x, x\right) \]
                                        7. Applied rewrites69.2%

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

                                        if 7.9999999999999999e53 < z < 4.4499999999999999e164

                                        1. Initial program 76.4%

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

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

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

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

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

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

                                            \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                          6. lower--.f6470.9

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

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

                                        if 4.4499999999999999e164 < z

                                        1. Initial program 48.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites80.3%

                                            \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                        8. Recombined 4 regimes into one program.
                                        9. Final simplification72.5%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.55 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+53}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{elif}\;z \leq 4.45 \cdot 10^{+164}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
                                        10. Add Preprocessing

                                        Alternative 9: 62.7% accurate, 0.7× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.7 \cdot 10^{+81}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (if (<= z -1.9e+203)
                                           (* (/ z (- z a)) t)
                                           (if (<= z -1.7e+81)
                                             (* (/ y (- z a)) (- x t))
                                             (if (<= z 5.2e+67) (fma (/ y a) (- t x) x) (fma a (/ (- t x) z) t)))))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double tmp;
                                        	if (z <= -1.9e+203) {
                                        		tmp = (z / (z - a)) * t;
                                        	} else if (z <= -1.7e+81) {
                                        		tmp = (y / (z - a)) * (x - t);
                                        	} else if (z <= 5.2e+67) {
                                        		tmp = fma((y / a), (t - x), x);
                                        	} else {
                                        		tmp = fma(a, ((t - x) / z), t);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a)
                                        	tmp = 0.0
                                        	if (z <= -1.9e+203)
                                        		tmp = Float64(Float64(z / Float64(z - a)) * t);
                                        	elseif (z <= -1.7e+81)
                                        		tmp = Float64(Float64(y / Float64(z - a)) * Float64(x - t));
                                        	elseif (z <= 5.2e+67)
                                        		tmp = fma(Float64(y / a), Float64(t - x), x);
                                        	else
                                        		tmp = fma(a, Float64(Float64(t - x) / z), t);
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+203], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, -1.7e+81], N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e+67], N[(N[(y / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\
                                        \;\;\;\;\frac{z}{z - a} \cdot t\\
                                        
                                        \mathbf{elif}\;z \leq -1.7 \cdot 10^{+81}:\\
                                        \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\
                                        
                                        \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\
                                        \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 4 regimes
                                        2. if z < -1.90000000000000012e203

                                          1. Initial program 60.7%

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

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

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

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

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

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

                                              \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                            6. lower--.f6470.3

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

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

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

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

                                            if -1.90000000000000012e203 < z < -1.70000000000000001e81

                                            1. Initial program 66.5%

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

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

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

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

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

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

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

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

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

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

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

                                            if -1.70000000000000001e81 < z < 5.2000000000000001e67

                                            1. Initial program 93.6%

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
                                              10. flip3--N/A

                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
                                              11. clear-num-revN/A

                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
                                              12. clear-numN/A

                                                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
                                              13. flip3--N/A

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

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

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                              16. lower-/.f6494.8

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, t - x, x\right) \]
                                            4. Applied rewrites94.8%

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                            5. Taylor expanded in z around 0

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
                                            6. Step-by-step derivation
                                              1. lower-/.f6470.7

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
                                            7. Applied rewrites70.7%

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

                                            if 5.2000000000000001e67 < z

                                            1. Initial program 59.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites67.6%

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+203}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq -1.7 \cdot 10^{+81}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 10: 37.6% accurate, 0.8× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{if}\;z \leq -1.9 \cdot 10^{+198}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\ \;\;\;\;\frac{x}{z} \cdot \left(y - a\right)\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (let* ((t_1 (fma (/ a z) t t)))
                                               (if (<= z -1.9e+198)
                                                 t_1
                                                 (if (<= z -7e-114)
                                                   (* (/ x z) (- y a))
                                                   (if (<= z 6.2e+64) (* (/ y (- a z)) t) t_1)))))
                                            double code(double x, double y, double z, double t, double a) {
                                            	double t_1 = fma((a / z), t, t);
                                            	double tmp;
                                            	if (z <= -1.9e+198) {
                                            		tmp = t_1;
                                            	} else if (z <= -7e-114) {
                                            		tmp = (x / z) * (y - a);
                                            	} else if (z <= 6.2e+64) {
                                            		tmp = (y / (a - z)) * t;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a)
                                            	t_1 = fma(Float64(a / z), t, t)
                                            	tmp = 0.0
                                            	if (z <= -1.9e+198)
                                            		tmp = t_1;
                                            	elseif (z <= -7e-114)
                                            		tmp = Float64(Float64(x / z) * Float64(y - a));
                                            	elseif (z <= 6.2e+64)
                                            		tmp = Float64(Float64(y / Float64(a - z)) * t);
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(a / z), $MachinePrecision] * t + t), $MachinePrecision]}, If[LessEqual[z, -1.9e+198], t$95$1, If[LessEqual[z, -7e-114], N[(N[(x / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+64], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\
                                            \mathbf{if}\;z \leq -1.9 \cdot 10^{+198}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\
                                            \;\;\;\;\frac{x}{z} \cdot \left(y - a\right)\\
                                            
                                            \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\
                                            \;\;\;\;\frac{y}{a - z} \cdot t\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 3 regimes
                                            2. if z < -1.89999999999999994e198 or 6.1999999999999998e64 < z

                                              1. Initial program 61.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites70.1%

                                                  \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                2. Taylor expanded in t around inf

                                                  \[\leadsto t \cdot \left(1 + \color{blue}{\frac{a}{z}}\right) \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites60.6%

                                                    \[\leadsto \mathsf{fma}\left(\frac{a}{z}, t, t\right) \]

                                                  if -1.89999999999999994e198 < z < -7e-114

                                                  1. Initial program 84.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \frac{x \cdot \left(y - a\right)}{\color{blue}{z}} \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites33.4%

                                                      \[\leadsto \frac{\left(y - a\right) \cdot x}{\color{blue}{z}} \]
                                                    2. Step-by-step derivation
                                                      1. Applied rewrites34.9%

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

                                                      if -7e-114 < z < 6.1999999999999998e64

                                                      1. Initial program 93.4%

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

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

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

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

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

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

                                                          \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                                        6. lower--.f6441.5

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

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

                                                        \[\leadsto \frac{t \cdot y}{\color{blue}{a - z}} \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites37.0%

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

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+198}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\ \;\;\;\;\frac{x}{z} \cdot \left(y - a\right)\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 11: 37.6% accurate, 0.8× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{if}\;z \leq -1.9 \cdot 10^{+198}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a)
                                                       :precision binary64
                                                       (let* ((t_1 (fma (/ a z) t t)))
                                                         (if (<= z -1.9e+198)
                                                           t_1
                                                           (if (<= z -7e-114)
                                                             (* (/ (- y a) z) x)
                                                             (if (<= z 6.2e+64) (* (/ y (- a z)) t) t_1)))))
                                                      double code(double x, double y, double z, double t, double a) {
                                                      	double t_1 = fma((a / z), t, t);
                                                      	double tmp;
                                                      	if (z <= -1.9e+198) {
                                                      		tmp = t_1;
                                                      	} else if (z <= -7e-114) {
                                                      		tmp = ((y - a) / z) * x;
                                                      	} else if (z <= 6.2e+64) {
                                                      		tmp = (y / (a - z)) * t;
                                                      	} else {
                                                      		tmp = t_1;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      function code(x, y, z, t, a)
                                                      	t_1 = fma(Float64(a / z), t, t)
                                                      	tmp = 0.0
                                                      	if (z <= -1.9e+198)
                                                      		tmp = t_1;
                                                      	elseif (z <= -7e-114)
                                                      		tmp = Float64(Float64(Float64(y - a) / z) * x);
                                                      	elseif (z <= 6.2e+64)
                                                      		tmp = Float64(Float64(y / Float64(a - z)) * t);
                                                      	else
                                                      		tmp = t_1;
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(a / z), $MachinePrecision] * t + t), $MachinePrecision]}, If[LessEqual[z, -1.9e+198], t$95$1, If[LessEqual[z, -7e-114], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 6.2e+64], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\
                                                      \mathbf{if}\;z \leq -1.9 \cdot 10^{+198}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\
                                                      \;\;\;\;\frac{y - a}{z} \cdot x\\
                                                      
                                                      \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\
                                                      \;\;\;\;\frac{y}{a - z} \cdot t\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 3 regimes
                                                      2. if z < -1.89999999999999994e198 or 6.1999999999999998e64 < z

                                                        1. Initial program 61.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                        7. Step-by-step derivation
                                                          1. Applied rewrites70.1%

                                                            \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                          2. Taylor expanded in t around inf

                                                            \[\leadsto t \cdot \left(1 + \color{blue}{\frac{a}{z}}\right) \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites60.6%

                                                              \[\leadsto \mathsf{fma}\left(\frac{a}{z}, t, t\right) \]

                                                            if -1.89999999999999994e198 < z < -7e-114

                                                            1. Initial program 84.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \frac{x \cdot \left(y - a\right)}{\color{blue}{z}} \]
                                                            7. Step-by-step derivation
                                                              1. Applied rewrites33.4%

                                                                \[\leadsto \frac{\left(y - a\right) \cdot x}{\color{blue}{z}} \]
                                                              2. Step-by-step derivation
                                                                1. Applied rewrites34.8%

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

                                                                if -7e-114 < z < 6.1999999999999998e64

                                                                1. Initial program 93.4%

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

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

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

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

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

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

                                                                    \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                                                  6. lower--.f6441.5

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

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

                                                                  \[\leadsto \frac{t \cdot y}{\color{blue}{a - z}} \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites37.0%

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

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+198}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \end{array} \]
                                                                10. Add Preprocessing

                                                                Alternative 12: 38.2% accurate, 0.8× speedup?

                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                (FPCore (x y z t a)
                                                                 :precision binary64
                                                                 (let* ((t_1 (fma (/ a z) t t)))
                                                                   (if (<= z -2.15e-14)
                                                                     t_1
                                                                     (if (<= z -7e-114)
                                                                       (/ (* y x) z)
                                                                       (if (<= z 6.2e+64) (* (/ y (- a z)) t) t_1)))))
                                                                double code(double x, double y, double z, double t, double a) {
                                                                	double t_1 = fma((a / z), t, t);
                                                                	double tmp;
                                                                	if (z <= -2.15e-14) {
                                                                		tmp = t_1;
                                                                	} else if (z <= -7e-114) {
                                                                		tmp = (y * x) / z;
                                                                	} else if (z <= 6.2e+64) {
                                                                		tmp = (y / (a - z)) * t;
                                                                	} else {
                                                                		tmp = t_1;
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                function code(x, y, z, t, a)
                                                                	t_1 = fma(Float64(a / z), t, t)
                                                                	tmp = 0.0
                                                                	if (z <= -2.15e-14)
                                                                		tmp = t_1;
                                                                	elseif (z <= -7e-114)
                                                                		tmp = Float64(Float64(y * x) / z);
                                                                	elseif (z <= 6.2e+64)
                                                                		tmp = Float64(Float64(y / Float64(a - z)) * t);
                                                                	else
                                                                		tmp = t_1;
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(a / z), $MachinePrecision] * t + t), $MachinePrecision]}, If[LessEqual[z, -2.15e-14], t$95$1, If[LessEqual[z, -7e-114], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 6.2e+64], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\
                                                                \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\
                                                                \;\;\;\;t\_1\\
                                                                
                                                                \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\
                                                                \;\;\;\;\frac{y \cdot x}{z}\\
                                                                
                                                                \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\
                                                                \;\;\;\;\frac{y}{a - z} \cdot t\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;t\_1\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 3 regimes
                                                                2. if z < -2.14999999999999999e-14 or 6.1999999999999998e64 < z

                                                                  1. Initial program 67.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites56.4%

                                                                      \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                                    2. Taylor expanded in t around inf

                                                                      \[\leadsto t \cdot \left(1 + \color{blue}{\frac{a}{z}}\right) \]
                                                                    3. Step-by-step derivation
                                                                      1. Applied rewrites47.7%

                                                                        \[\leadsto \mathsf{fma}\left(\frac{a}{z}, t, t\right) \]

                                                                      if -2.14999999999999999e-14 < z < -7e-114

                                                                      1. Initial program 93.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                        16. lower--.f6462.0

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

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

                                                                        \[\leadsto \frac{x \cdot \left(y - a\right)}{\color{blue}{z}} \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites43.8%

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

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

                                                                            \[\leadsto \frac{y \cdot x}{z} \]

                                                                          if -7e-114 < z < 6.1999999999999998e64

                                                                          1. Initial program 93.4%

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

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

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

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

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

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

                                                                              \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                                                            6. lower--.f6441.5

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

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

                                                                            \[\leadsto \frac{t \cdot y}{\color{blue}{a - z}} \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites37.0%

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

                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{elif}\;z \leq -7 \cdot 10^{-114}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+64}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \end{array} \]
                                                                          10. Add Preprocessing

                                                                          Alternative 13: 72.1% accurate, 0.8× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.4 \cdot 10^{-24}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{elif}\;a \leq 2.8 \cdot 10^{+42}:\\ \;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{-z}{a - z}, t - x, x\right)\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a)
                                                                           :precision binary64
                                                                           (if (<= a -6.4e-24)
                                                                             (fma (/ (- y z) a) (- t x) x)
                                                                             (if (<= a 2.8e+42)
                                                                               (- t (* (/ (- t x) z) (- y a)))
                                                                               (fma (/ (- z) (- a z)) (- t x) x))))
                                                                          double code(double x, double y, double z, double t, double a) {
                                                                          	double tmp;
                                                                          	if (a <= -6.4e-24) {
                                                                          		tmp = fma(((y - z) / a), (t - x), x);
                                                                          	} else if (a <= 2.8e+42) {
                                                                          		tmp = t - (((t - x) / z) * (y - a));
                                                                          	} else {
                                                                          		tmp = fma((-z / (a - z)), (t - x), x);
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          function code(x, y, z, t, a)
                                                                          	tmp = 0.0
                                                                          	if (a <= -6.4e-24)
                                                                          		tmp = fma(Float64(Float64(y - z) / a), Float64(t - x), x);
                                                                          	elseif (a <= 2.8e+42)
                                                                          		tmp = Float64(t - Float64(Float64(Float64(t - x) / z) * Float64(y - a)));
                                                                          	else
                                                                          		tmp = fma(Float64(Float64(-z) / Float64(a - z)), Float64(t - x), x);
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.4e-24], N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 2.8e+42], N[(t - N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-z) / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          \mathbf{if}\;a \leq -6.4 \cdot 10^{-24}:\\
                                                                          \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\
                                                                          
                                                                          \mathbf{elif}\;a \leq 2.8 \cdot 10^{+42}:\\
                                                                          \;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;\mathsf{fma}\left(\frac{-z}{a - z}, t - x, x\right)\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 3 regimes
                                                                          2. if a < -6.40000000000000025e-24

                                                                            1. Initial program 88.9%

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
                                                                              10. flip3--N/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
                                                                              11. clear-num-revN/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
                                                                              12. clear-numN/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
                                                                              13. flip3--N/A

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

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

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                                                              16. lower-/.f6492.6

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

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

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

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a}}, t - x, x\right) \]
                                                                              2. lower--.f6486.0

                                                                                \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - z}}{a}, t - x, x\right) \]
                                                                            7. Applied rewrites86.0%

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

                                                                            if -6.40000000000000025e-24 < a < 2.7999999999999999e42

                                                                            1. Initial program 74.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                              16. lower--.f6482.7

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

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

                                                                            if 2.7999999999999999e42 < a

                                                                            1. Initial program 89.0%

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
                                                                              10. flip3--N/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
                                                                              11. clear-num-revN/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
                                                                              12. clear-numN/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
                                                                              13. flip3--N/A

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

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

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                                                              16. lower-/.f6493.9

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

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                                                            5. Taylor expanded in y around 0

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

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

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

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

                                                                          Alternative 14: 74.8% accurate, 0.8× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{if}\;a \leq -6.4 \cdot 10^{-24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 6.2 \cdot 10^{+64}:\\ \;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a)
                                                                           :precision binary64
                                                                           (let* ((t_1 (fma (/ (- y z) a) (- t x) x)))
                                                                             (if (<= a -6.4e-24)
                                                                               t_1
                                                                               (if (<= a 6.2e+64) (- t (* (/ (- t x) z) (- y a))) t_1))))
                                                                          double code(double x, double y, double z, double t, double a) {
                                                                          	double t_1 = fma(((y - z) / a), (t - x), x);
                                                                          	double tmp;
                                                                          	if (a <= -6.4e-24) {
                                                                          		tmp = t_1;
                                                                          	} else if (a <= 6.2e+64) {
                                                                          		tmp = t - (((t - x) / z) * (y - a));
                                                                          	} else {
                                                                          		tmp = t_1;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          function code(x, y, z, t, a)
                                                                          	t_1 = fma(Float64(Float64(y - z) / a), Float64(t - x), x)
                                                                          	tmp = 0.0
                                                                          	if (a <= -6.4e-24)
                                                                          		tmp = t_1;
                                                                          	elseif (a <= 6.2e+64)
                                                                          		tmp = Float64(t - Float64(Float64(Float64(t - x) / z) * Float64(y - a)));
                                                                          	else
                                                                          		tmp = t_1;
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -6.4e-24], t$95$1, If[LessEqual[a, 6.2e+64], N[(t - N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          t_1 := \mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\
                                                                          \mathbf{if}\;a \leq -6.4 \cdot 10^{-24}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          \mathbf{elif}\;a \leq 6.2 \cdot 10^{+64}:\\
                                                                          \;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 2 regimes
                                                                          2. if a < -6.40000000000000025e-24 or 6.1999999999999998e64 < a

                                                                            1. Initial program 88.7%

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
                                                                              10. flip3--N/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
                                                                              11. clear-num-revN/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
                                                                              12. clear-numN/A

                                                                                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
                                                                              13. flip3--N/A

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

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

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                                                              16. lower-/.f6493.2

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, t - x, x\right) \]
                                                                            4. Applied rewrites93.2%

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

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

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a}}, t - x, x\right) \]
                                                                              2. lower--.f6479.7

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

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

                                                                            if -6.40000000000000025e-24 < a < 6.1999999999999998e64

                                                                            1. Initial program 75.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          Alternative 15: 36.1% accurate, 0.8× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.56 \cdot 10^{-114}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 9 \cdot 10^{+57}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a)
                                                                           :precision binary64
                                                                           (let* ((t_1 (fma (/ a z) t t)))
                                                                             (if (<= z -2.15e-14)
                                                                               t_1
                                                                               (if (<= z -1.56e-114)
                                                                                 (/ (* y x) z)
                                                                                 (if (<= z 9e+57) (* (/ y a) t) t_1)))))
                                                                          double code(double x, double y, double z, double t, double a) {
                                                                          	double t_1 = fma((a / z), t, t);
                                                                          	double tmp;
                                                                          	if (z <= -2.15e-14) {
                                                                          		tmp = t_1;
                                                                          	} else if (z <= -1.56e-114) {
                                                                          		tmp = (y * x) / z;
                                                                          	} else if (z <= 9e+57) {
                                                                          		tmp = (y / a) * t;
                                                                          	} else {
                                                                          		tmp = t_1;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          function code(x, y, z, t, a)
                                                                          	t_1 = fma(Float64(a / z), t, t)
                                                                          	tmp = 0.0
                                                                          	if (z <= -2.15e-14)
                                                                          		tmp = t_1;
                                                                          	elseif (z <= -1.56e-114)
                                                                          		tmp = Float64(Float64(y * x) / z);
                                                                          	elseif (z <= 9e+57)
                                                                          		tmp = Float64(Float64(y / a) * t);
                                                                          	else
                                                                          		tmp = t_1;
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(a / z), $MachinePrecision] * t + t), $MachinePrecision]}, If[LessEqual[z, -2.15e-14], t$95$1, If[LessEqual[z, -1.56e-114], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 9e+57], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          t_1 := \mathsf{fma}\left(\frac{a}{z}, t, t\right)\\
                                                                          \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          \mathbf{elif}\;z \leq -1.56 \cdot 10^{-114}:\\
                                                                          \;\;\;\;\frac{y \cdot x}{z}\\
                                                                          
                                                                          \mathbf{elif}\;z \leq 9 \cdot 10^{+57}:\\
                                                                          \;\;\;\;\frac{y}{a} \cdot t\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 3 regimes
                                                                          2. if z < -2.14999999999999999e-14 or 8.99999999999999991e57 < z

                                                                            1. Initial program 67.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                            7. Step-by-step derivation
                                                                              1. Applied rewrites56.4%

                                                                                \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                                              2. Taylor expanded in t around inf

                                                                                \[\leadsto t \cdot \left(1 + \color{blue}{\frac{a}{z}}\right) \]
                                                                              3. Step-by-step derivation
                                                                                1. Applied rewrites47.7%

                                                                                  \[\leadsto \mathsf{fma}\left(\frac{a}{z}, t, t\right) \]

                                                                                if -2.14999999999999999e-14 < z < -1.5599999999999999e-114

                                                                                1. Initial program 93.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                                  16. lower--.f6462.0

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

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

                                                                                  \[\leadsto \frac{x \cdot \left(y - a\right)}{\color{blue}{z}} \]
                                                                                7. Step-by-step derivation
                                                                                  1. Applied rewrites43.8%

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

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

                                                                                      \[\leadsto \frac{y \cdot x}{z} \]

                                                                                    if -1.5599999999999999e-114 < z < 8.99999999999999991e57

                                                                                    1. Initial program 93.4%

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

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

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

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

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

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

                                                                                        \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                                                                      6. lower--.f6441.5

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

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

                                                                                      \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                                                    7. Step-by-step derivation
                                                                                      1. Applied rewrites31.3%

                                                                                        \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
                                                                                    8. Recombined 3 regimes into one program.
                                                                                    9. Final simplification39.3%

                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.15 \cdot 10^{-14}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \mathbf{elif}\;z \leq -1.56 \cdot 10^{-114}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 9 \cdot 10^{+57}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a}{z}, t, t\right)\\ \end{array} \]
                                                                                    10. Add Preprocessing

                                                                                    Alternative 16: 29.5% accurate, 0.8× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) + x\\ \mathbf{if}\;z \leq -1 \cdot 10^{+201}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -1.56 \cdot 10^{-114}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 1.05 \cdot 10^{+58}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                    (FPCore (x y z t a)
                                                                                     :precision binary64
                                                                                     (let* ((t_1 (+ (- t x) x)))
                                                                                       (if (<= z -1e+201)
                                                                                         t_1
                                                                                         (if (<= z -1.56e-114)
                                                                                           (/ (* y x) z)
                                                                                           (if (<= z 1.05e+58) (* (/ y a) t) t_1)))))
                                                                                    double code(double x, double y, double z, double t, double a) {
                                                                                    	double t_1 = (t - x) + x;
                                                                                    	double tmp;
                                                                                    	if (z <= -1e+201) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (z <= -1.56e-114) {
                                                                                    		tmp = (y * x) / z;
                                                                                    	} else if (z <= 1.05e+58) {
                                                                                    		tmp = (y / a) * t;
                                                                                    	} else {
                                                                                    		tmp = t_1;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    real(8) function code(x, y, z, t, a)
                                                                                        real(8), intent (in) :: x
                                                                                        real(8), intent (in) :: y
                                                                                        real(8), intent (in) :: z
                                                                                        real(8), intent (in) :: t
                                                                                        real(8), intent (in) :: a
                                                                                        real(8) :: t_1
                                                                                        real(8) :: tmp
                                                                                        t_1 = (t - x) + x
                                                                                        if (z <= (-1d+201)) then
                                                                                            tmp = t_1
                                                                                        else if (z <= (-1.56d-114)) then
                                                                                            tmp = (y * x) / z
                                                                                        else if (z <= 1.05d+58) then
                                                                                            tmp = (y / a) * t
                                                                                        else
                                                                                            tmp = t_1
                                                                                        end if
                                                                                        code = tmp
                                                                                    end function
                                                                                    
                                                                                    public static double code(double x, double y, double z, double t, double a) {
                                                                                    	double t_1 = (t - x) + x;
                                                                                    	double tmp;
                                                                                    	if (z <= -1e+201) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (z <= -1.56e-114) {
                                                                                    		tmp = (y * x) / z;
                                                                                    	} else if (z <= 1.05e+58) {
                                                                                    		tmp = (y / a) * t;
                                                                                    	} else {
                                                                                    		tmp = t_1;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    def code(x, y, z, t, a):
                                                                                    	t_1 = (t - x) + x
                                                                                    	tmp = 0
                                                                                    	if z <= -1e+201:
                                                                                    		tmp = t_1
                                                                                    	elif z <= -1.56e-114:
                                                                                    		tmp = (y * x) / z
                                                                                    	elif z <= 1.05e+58:
                                                                                    		tmp = (y / a) * t
                                                                                    	else:
                                                                                    		tmp = t_1
                                                                                    	return tmp
                                                                                    
                                                                                    function code(x, y, z, t, a)
                                                                                    	t_1 = Float64(Float64(t - x) + x)
                                                                                    	tmp = 0.0
                                                                                    	if (z <= -1e+201)
                                                                                    		tmp = t_1;
                                                                                    	elseif (z <= -1.56e-114)
                                                                                    		tmp = Float64(Float64(y * x) / z);
                                                                                    	elseif (z <= 1.05e+58)
                                                                                    		tmp = Float64(Float64(y / a) * t);
                                                                                    	else
                                                                                    		tmp = t_1;
                                                                                    	end
                                                                                    	return tmp
                                                                                    end
                                                                                    
                                                                                    function tmp_2 = code(x, y, z, t, a)
                                                                                    	t_1 = (t - x) + x;
                                                                                    	tmp = 0.0;
                                                                                    	if (z <= -1e+201)
                                                                                    		tmp = t_1;
                                                                                    	elseif (z <= -1.56e-114)
                                                                                    		tmp = (y * x) / z;
                                                                                    	elseif (z <= 1.05e+58)
                                                                                    		tmp = (y / a) * t;
                                                                                    	else
                                                                                    		tmp = t_1;
                                                                                    	end
                                                                                    	tmp_2 = tmp;
                                                                                    end
                                                                                    
                                                                                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -1e+201], t$95$1, If[LessEqual[z, -1.56e-114], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, 1.05e+58], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    
                                                                                    \\
                                                                                    \begin{array}{l}
                                                                                    t_1 := \left(t - x\right) + x\\
                                                                                    \mathbf{if}\;z \leq -1 \cdot 10^{+201}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    \mathbf{elif}\;z \leq -1.56 \cdot 10^{-114}:\\
                                                                                    \;\;\;\;\frac{y \cdot x}{z}\\
                                                                                    
                                                                                    \mathbf{elif}\;z \leq 1.05 \cdot 10^{+58}:\\
                                                                                    \;\;\;\;\frac{y}{a} \cdot t\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 3 regimes
                                                                                    2. if z < -1.00000000000000004e201 or 1.05000000000000006e58 < z

                                                                                      1. Initial program 60.5%

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

                                                                                        \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                      4. Step-by-step derivation
                                                                                        1. lower--.f6443.2

                                                                                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                      5. Applied rewrites43.2%

                                                                                        \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                                                                      if -1.00000000000000004e201 < z < -1.5599999999999999e-114

                                                                                      1. Initial program 84.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        \[\leadsto \frac{x \cdot \left(y - a\right)}{\color{blue}{z}} \]
                                                                                      7. Step-by-step derivation
                                                                                        1. Applied rewrites32.9%

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

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

                                                                                            \[\leadsto \frac{y \cdot x}{z} \]

                                                                                          if -1.5599999999999999e-114 < z < 1.05000000000000006e58

                                                                                          1. Initial program 93.4%

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

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

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

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

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

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

                                                                                              \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                                                                            6. lower--.f6441.5

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

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

                                                                                            \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                                                          7. Step-by-step derivation
                                                                                            1. Applied rewrites31.3%

                                                                                              \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
                                                                                          8. Recombined 3 regimes into one program.
                                                                                          9. Final simplification33.8%

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

                                                                                          Alternative 17: 63.2% accurate, 0.9× speedup?

                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.95 \cdot 10^{+127}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                                                                                          (FPCore (x y z t a)
                                                                                           :precision binary64
                                                                                           (if (<= z -1.95e+127)
                                                                                             (* (/ z (- z a)) t)
                                                                                             (if (<= z 5.2e+67) (fma (/ y a) (- t x) x) (fma a (/ (- t x) z) t))))
                                                                                          double code(double x, double y, double z, double t, double a) {
                                                                                          	double tmp;
                                                                                          	if (z <= -1.95e+127) {
                                                                                          		tmp = (z / (z - a)) * t;
                                                                                          	} else if (z <= 5.2e+67) {
                                                                                          		tmp = fma((y / a), (t - x), x);
                                                                                          	} else {
                                                                                          		tmp = fma(a, ((t - x) / z), t);
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          function code(x, y, z, t, a)
                                                                                          	tmp = 0.0
                                                                                          	if (z <= -1.95e+127)
                                                                                          		tmp = Float64(Float64(z / Float64(z - a)) * t);
                                                                                          	elseif (z <= 5.2e+67)
                                                                                          		tmp = fma(Float64(y / a), Float64(t - x), x);
                                                                                          	else
                                                                                          		tmp = fma(a, Float64(Float64(t - x) / z), t);
                                                                                          	end
                                                                                          	return tmp
                                                                                          end
                                                                                          
                                                                                          code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.95e+127], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 5.2e+67], N[(N[(y / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]
                                                                                          
                                                                                          \begin{array}{l}
                                                                                          
                                                                                          \\
                                                                                          \begin{array}{l}
                                                                                          \mathbf{if}\;z \leq -1.95 \cdot 10^{+127}:\\
                                                                                          \;\;\;\;\frac{z}{z - a} \cdot t\\
                                                                                          
                                                                                          \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\
                                                                                          \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\
                                                                                          
                                                                                          \mathbf{else}:\\
                                                                                          \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                                                                          
                                                                                          
                                                                                          \end{array}
                                                                                          \end{array}
                                                                                          
                                                                                          Derivation
                                                                                          1. Split input into 3 regimes
                                                                                          2. if z < -1.94999999999999991e127

                                                                                            1. Initial program 64.6%

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

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

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

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

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

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

                                                                                                \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                                                                              6. lower--.f6454.9

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

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

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

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

                                                                                              if -1.94999999999999991e127 < z < 5.2000000000000001e67

                                                                                              1. Initial program 92.2%

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

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

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

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

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

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

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

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

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

                                                                                                  \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
                                                                                                10. flip3--N/A

                                                                                                  \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
                                                                                                11. clear-num-revN/A

                                                                                                  \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
                                                                                                12. clear-numN/A

                                                                                                  \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
                                                                                                13. flip3--N/A

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

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

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                                                                                16. lower-/.f6493.9

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

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                                                                              5. Taylor expanded in z around 0

                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
                                                                                              6. Step-by-step derivation
                                                                                                1. lower-/.f6469.6

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

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

                                                                                              if 5.2000000000000001e67 < z

                                                                                              1. Initial program 59.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites67.6%

                                                                                                  \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                                                              8. Recombined 3 regimes into one program.
                                                                                              9. Final simplification68.8%

                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.95 \cdot 10^{+127}:\\ \;\;\;\;\frac{z}{z - a} \cdot t\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
                                                                                              10. Add Preprocessing

                                                                                              Alternative 18: 63.9% accurate, 0.9× speedup?

                                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.95 \cdot 10^{+127}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{-x}{z}, t\right)\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                                                                                              (FPCore (x y z t a)
                                                                                               :precision binary64
                                                                                               (if (<= z -1.95e+127)
                                                                                                 (fma a (/ (- x) z) t)
                                                                                                 (if (<= z 5.2e+67) (fma (/ y a) (- t x) x) (fma a (/ (- t x) z) t))))
                                                                                              double code(double x, double y, double z, double t, double a) {
                                                                                              	double tmp;
                                                                                              	if (z <= -1.95e+127) {
                                                                                              		tmp = fma(a, (-x / z), t);
                                                                                              	} else if (z <= 5.2e+67) {
                                                                                              		tmp = fma((y / a), (t - x), x);
                                                                                              	} else {
                                                                                              		tmp = fma(a, ((t - x) / z), t);
                                                                                              	}
                                                                                              	return tmp;
                                                                                              }
                                                                                              
                                                                                              function code(x, y, z, t, a)
                                                                                              	tmp = 0.0
                                                                                              	if (z <= -1.95e+127)
                                                                                              		tmp = fma(a, Float64(Float64(-x) / z), t);
                                                                                              	elseif (z <= 5.2e+67)
                                                                                              		tmp = fma(Float64(y / a), Float64(t - x), x);
                                                                                              	else
                                                                                              		tmp = fma(a, Float64(Float64(t - x) / z), t);
                                                                                              	end
                                                                                              	return tmp
                                                                                              end
                                                                                              
                                                                                              code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.95e+127], N[(a * N[((-x) / z), $MachinePrecision] + t), $MachinePrecision], If[LessEqual[z, 5.2e+67], N[(N[(y / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]
                                                                                              
                                                                                              \begin{array}{l}
                                                                                              
                                                                                              \\
                                                                                              \begin{array}{l}
                                                                                              \mathbf{if}\;z \leq -1.95 \cdot 10^{+127}:\\
                                                                                              \;\;\;\;\mathsf{fma}\left(a, \frac{-x}{z}, t\right)\\
                                                                                              
                                                                                              \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\
                                                                                              \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\
                                                                                              
                                                                                              \mathbf{else}:\\
                                                                                              \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                                                                              
                                                                                              
                                                                                              \end{array}
                                                                                              \end{array}
                                                                                              
                                                                                              Derivation
                                                                                              1. Split input into 3 regimes
                                                                                              2. if z < -1.94999999999999991e127

                                                                                                1. Initial program 64.6%

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

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

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

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

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

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

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

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

                                                                                                    \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                  8. lower--.f64N/A

                                                                                                    \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                  9. div-subN/A

                                                                                                    \[\leadsto t - \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                  10. associate-/l*N/A

                                                                                                    \[\leadsto t - \left(\color{blue}{y \cdot \frac{t - x}{z}} - \frac{a \cdot \left(t - x\right)}{z}\right) \]
                                                                                                  11. associate-/l*N/A

                                                                                                    \[\leadsto t - \left(y \cdot \frac{t - x}{z} - \color{blue}{a \cdot \frac{t - x}{z}}\right) \]
                                                                                                  12. distribute-rgt-out--N/A

                                                                                                    \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                  13. lower-*.f64N/A

                                                                                                    \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                  14. lower-/.f64N/A

                                                                                                    \[\leadsto t - \color{blue}{\frac{t - x}{z}} \cdot \left(y - a\right) \]
                                                                                                  15. lower--.f64N/A

                                                                                                    \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                                                  16. lower--.f6481.8

                                                                                                    \[\leadsto t - \frac{t - x}{z} \cdot \color{blue}{\left(y - a\right)} \]
                                                                                                5. Applied rewrites81.8%

                                                                                                  \[\leadsto \color{blue}{t - \frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                6. Taylor expanded in y around 0

                                                                                                  \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                7. Step-by-step derivation
                                                                                                  1. Applied rewrites61.6%

                                                                                                    \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                                                                  2. Taylor expanded in x around inf

                                                                                                    \[\leadsto \mathsf{fma}\left(a, \frac{-1 \cdot x}{z}, t\right) \]
                                                                                                  3. Step-by-step derivation
                                                                                                    1. Applied rewrites61.7%

                                                                                                      \[\leadsto \mathsf{fma}\left(a, \frac{-x}{z}, t\right) \]

                                                                                                    if -1.94999999999999991e127 < z < 5.2000000000000001e67

                                                                                                    1. Initial program 92.2%

                                                                                                      \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                    2. Add Preprocessing
                                                                                                    3. Step-by-step derivation
                                                                                                      1. lift-+.f64N/A

                                                                                                        \[\leadsto \color{blue}{x + \left(y - z\right) \cdot \frac{t - x}{a - z}} \]
                                                                                                      2. +-commutativeN/A

                                                                                                        \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t - x}{a - z} + x} \]
                                                                                                      3. lift-*.f64N/A

                                                                                                        \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t - x}{a - z}} + x \]
                                                                                                      4. lift-/.f64N/A

                                                                                                        \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t - x}{a - z}} + x \]
                                                                                                      5. clear-numN/A

                                                                                                        \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{1}{\frac{a - z}{t - x}}} + x \]
                                                                                                      6. associate-*r/N/A

                                                                                                        \[\leadsto \color{blue}{\frac{\left(y - z\right) \cdot 1}{\frac{a - z}{t - x}}} + x \]
                                                                                                      7. div-invN/A

                                                                                                        \[\leadsto \frac{\left(y - z\right) \cdot 1}{\color{blue}{\left(a - z\right) \cdot \frac{1}{t - x}}} + x \]
                                                                                                      8. times-fracN/A

                                                                                                        \[\leadsto \color{blue}{\frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{t - x}}} + x \]
                                                                                                      9. lift--.f64N/A

                                                                                                        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{t - x}}} + x \]
                                                                                                      10. flip3--N/A

                                                                                                        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}}}} + x \]
                                                                                                      11. clear-num-revN/A

                                                                                                        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\color{blue}{\frac{t \cdot t + \left(x \cdot x + t \cdot x\right)}{{t}^{3} - {x}^{3}}}} + x \]
                                                                                                      12. clear-numN/A

                                                                                                        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{{t}^{3} - {x}^{3}}{t \cdot t + \left(x \cdot x + t \cdot x\right)}} + x \]
                                                                                                      13. flip3--N/A

                                                                                                        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\left(t - x\right)} + x \]
                                                                                                      14. lift--.f64N/A

                                                                                                        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\left(t - x\right)} + x \]
                                                                                                      15. lower-fma.f64N/A

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                                                                                      16. lower-/.f6493.9

                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, t - x, x\right) \]
                                                                                                    4. Applied rewrites93.9%

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)} \]
                                                                                                    5. Taylor expanded in z around 0

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
                                                                                                    6. Step-by-step derivation
                                                                                                      1. lower-/.f6469.6

                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
                                                                                                    7. Applied rewrites69.6%

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]

                                                                                                    if 5.2000000000000001e67 < z

                                                                                                    1. Initial program 59.7%

                                                                                                      \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                    2. Add Preprocessing
                                                                                                    3. Taylor expanded in z around inf

                                                                                                      \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - -1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                    4. Step-by-step derivation
                                                                                                      1. metadata-evalN/A

                                                                                                        \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                      2. cancel-sign-sub-invN/A

                                                                                                        \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + 1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                      3. *-lft-identityN/A

                                                                                                        \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + \color{blue}{\frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                      4. mul-1-negN/A

                                                                                                        \[\leadsto \left(t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right)}{z}\right)\right)}\right) + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                      5. unsub-negN/A

                                                                                                        \[\leadsto \color{blue}{\left(t - \frac{y \cdot \left(t - x\right)}{z}\right)} + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                      6. associate-+l-N/A

                                                                                                        \[\leadsto \color{blue}{t - \left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                      7. div-subN/A

                                                                                                        \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                      8. lower--.f64N/A

                                                                                                        \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                      9. div-subN/A

                                                                                                        \[\leadsto t - \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                      10. associate-/l*N/A

                                                                                                        \[\leadsto t - \left(\color{blue}{y \cdot \frac{t - x}{z}} - \frac{a \cdot \left(t - x\right)}{z}\right) \]
                                                                                                      11. associate-/l*N/A

                                                                                                        \[\leadsto t - \left(y \cdot \frac{t - x}{z} - \color{blue}{a \cdot \frac{t - x}{z}}\right) \]
                                                                                                      12. distribute-rgt-out--N/A

                                                                                                        \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                      13. lower-*.f64N/A

                                                                                                        \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                      14. lower-/.f64N/A

                                                                                                        \[\leadsto t - \color{blue}{\frac{t - x}{z}} \cdot \left(y - a\right) \]
                                                                                                      15. lower--.f64N/A

                                                                                                        \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                                                      16. lower--.f6489.4

                                                                                                        \[\leadsto t - \frac{t - x}{z} \cdot \color{blue}{\left(y - a\right)} \]
                                                                                                    5. Applied rewrites89.4%

                                                                                                      \[\leadsto \color{blue}{t - \frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                    6. Taylor expanded in y around 0

                                                                                                      \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                    7. Step-by-step derivation
                                                                                                      1. Applied rewrites67.6%

                                                                                                        \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                                                                    8. Recombined 3 regimes into one program.
                                                                                                    9. Add Preprocessing

                                                                                                    Alternative 19: 62.7% accurate, 0.9× speedup?

                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.35 \cdot 10^{+124}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{-x}{z}, t\right)\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                                                                                                    (FPCore (x y z t a)
                                                                                                     :precision binary64
                                                                                                     (if (<= z -1.35e+124)
                                                                                                       (fma a (/ (- x) z) t)
                                                                                                       (if (<= z 5.2e+67) (fma (/ (- t x) a) y x) (fma a (/ (- t x) z) t))))
                                                                                                    double code(double x, double y, double z, double t, double a) {
                                                                                                    	double tmp;
                                                                                                    	if (z <= -1.35e+124) {
                                                                                                    		tmp = fma(a, (-x / z), t);
                                                                                                    	} else if (z <= 5.2e+67) {
                                                                                                    		tmp = fma(((t - x) / a), y, x);
                                                                                                    	} else {
                                                                                                    		tmp = fma(a, ((t - x) / z), t);
                                                                                                    	}
                                                                                                    	return tmp;
                                                                                                    }
                                                                                                    
                                                                                                    function code(x, y, z, t, a)
                                                                                                    	tmp = 0.0
                                                                                                    	if (z <= -1.35e+124)
                                                                                                    		tmp = fma(a, Float64(Float64(-x) / z), t);
                                                                                                    	elseif (z <= 5.2e+67)
                                                                                                    		tmp = fma(Float64(Float64(t - x) / a), y, x);
                                                                                                    	else
                                                                                                    		tmp = fma(a, Float64(Float64(t - x) / z), t);
                                                                                                    	end
                                                                                                    	return tmp
                                                                                                    end
                                                                                                    
                                                                                                    code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.35e+124], N[(a * N[((-x) / z), $MachinePrecision] + t), $MachinePrecision], If[LessEqual[z, 5.2e+67], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]
                                                                                                    
                                                                                                    \begin{array}{l}
                                                                                                    
                                                                                                    \\
                                                                                                    \begin{array}{l}
                                                                                                    \mathbf{if}\;z \leq -1.35 \cdot 10^{+124}:\\
                                                                                                    \;\;\;\;\mathsf{fma}\left(a, \frac{-x}{z}, t\right)\\
                                                                                                    
                                                                                                    \mathbf{elif}\;z \leq 5.2 \cdot 10^{+67}:\\
                                                                                                    \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
                                                                                                    
                                                                                                    \mathbf{else}:\\
                                                                                                    \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                                                                                    
                                                                                                    
                                                                                                    \end{array}
                                                                                                    \end{array}
                                                                                                    
                                                                                                    Derivation
                                                                                                    1. Split input into 3 regimes
                                                                                                    2. if z < -1.34999999999999989e124

                                                                                                      1. Initial program 63.0%

                                                                                                        \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                      2. Add Preprocessing
                                                                                                      3. Taylor expanded in z around inf

                                                                                                        \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - -1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                      4. Step-by-step derivation
                                                                                                        1. metadata-evalN/A

                                                                                                          \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                        2. cancel-sign-sub-invN/A

                                                                                                          \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + 1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                        3. *-lft-identityN/A

                                                                                                          \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + \color{blue}{\frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                        4. mul-1-negN/A

                                                                                                          \[\leadsto \left(t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right)}{z}\right)\right)}\right) + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                        5. unsub-negN/A

                                                                                                          \[\leadsto \color{blue}{\left(t - \frac{y \cdot \left(t - x\right)}{z}\right)} + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                        6. associate-+l-N/A

                                                                                                          \[\leadsto \color{blue}{t - \left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                        7. div-subN/A

                                                                                                          \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                        8. lower--.f64N/A

                                                                                                          \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                        9. div-subN/A

                                                                                                          \[\leadsto t - \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                        10. associate-/l*N/A

                                                                                                          \[\leadsto t - \left(\color{blue}{y \cdot \frac{t - x}{z}} - \frac{a \cdot \left(t - x\right)}{z}\right) \]
                                                                                                        11. associate-/l*N/A

                                                                                                          \[\leadsto t - \left(y \cdot \frac{t - x}{z} - \color{blue}{a \cdot \frac{t - x}{z}}\right) \]
                                                                                                        12. distribute-rgt-out--N/A

                                                                                                          \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                        13. lower-*.f64N/A

                                                                                                          \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                        14. lower-/.f64N/A

                                                                                                          \[\leadsto t - \color{blue}{\frac{t - x}{z}} \cdot \left(y - a\right) \]
                                                                                                        15. lower--.f64N/A

                                                                                                          \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                                                        16. lower--.f6479.8

                                                                                                          \[\leadsto t - \frac{t - x}{z} \cdot \color{blue}{\left(y - a\right)} \]
                                                                                                      5. Applied rewrites79.8%

                                                                                                        \[\leadsto \color{blue}{t - \frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                      6. Taylor expanded in y around 0

                                                                                                        \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                      7. Step-by-step derivation
                                                                                                        1. Applied rewrites60.1%

                                                                                                          \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                                                                        2. Taylor expanded in x around inf

                                                                                                          \[\leadsto \mathsf{fma}\left(a, \frac{-1 \cdot x}{z}, t\right) \]
                                                                                                        3. Step-by-step derivation
                                                                                                          1. Applied rewrites60.2%

                                                                                                            \[\leadsto \mathsf{fma}\left(a, \frac{-x}{z}, t\right) \]

                                                                                                          if -1.34999999999999989e124 < z < 5.2000000000000001e67

                                                                                                          1. Initial program 92.7%

                                                                                                            \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                          2. Add Preprocessing
                                                                                                          3. Taylor expanded in z around 0

                                                                                                            \[\leadsto \color{blue}{x + \frac{y \cdot \left(t - x\right)}{a}} \]
                                                                                                          4. Step-by-step derivation
                                                                                                            1. +-commutativeN/A

                                                                                                              \[\leadsto \color{blue}{\frac{y \cdot \left(t - x\right)}{a} + x} \]
                                                                                                            2. associate-/l*N/A

                                                                                                              \[\leadsto \color{blue}{y \cdot \frac{t - x}{a}} + x \]
                                                                                                            3. *-commutativeN/A

                                                                                                              \[\leadsto \color{blue}{\frac{t - x}{a} \cdot y} + x \]
                                                                                                            4. lower-fma.f64N/A

                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)} \]
                                                                                                            5. lower-/.f64N/A

                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a}}, y, x\right) \]
                                                                                                            6. lower--.f6468.4

                                                                                                              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{t - x}}{a}, y, x\right) \]
                                                                                                          5. Applied rewrites68.4%

                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)} \]

                                                                                                          if 5.2000000000000001e67 < z

                                                                                                          1. Initial program 59.7%

                                                                                                            \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                          2. Add Preprocessing
                                                                                                          3. Taylor expanded in z around inf

                                                                                                            \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - -1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                          4. Step-by-step derivation
                                                                                                            1. metadata-evalN/A

                                                                                                              \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                            2. cancel-sign-sub-invN/A

                                                                                                              \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + 1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                            3. *-lft-identityN/A

                                                                                                              \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + \color{blue}{\frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                            4. mul-1-negN/A

                                                                                                              \[\leadsto \left(t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right)}{z}\right)\right)}\right) + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                            5. unsub-negN/A

                                                                                                              \[\leadsto \color{blue}{\left(t - \frac{y \cdot \left(t - x\right)}{z}\right)} + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                            6. associate-+l-N/A

                                                                                                              \[\leadsto \color{blue}{t - \left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                            7. div-subN/A

                                                                                                              \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                            8. lower--.f64N/A

                                                                                                              \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                            9. div-subN/A

                                                                                                              \[\leadsto t - \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                            10. associate-/l*N/A

                                                                                                              \[\leadsto t - \left(\color{blue}{y \cdot \frac{t - x}{z}} - \frac{a \cdot \left(t - x\right)}{z}\right) \]
                                                                                                            11. associate-/l*N/A

                                                                                                              \[\leadsto t - \left(y \cdot \frac{t - x}{z} - \color{blue}{a \cdot \frac{t - x}{z}}\right) \]
                                                                                                            12. distribute-rgt-out--N/A

                                                                                                              \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                            13. lower-*.f64N/A

                                                                                                              \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                            14. lower-/.f64N/A

                                                                                                              \[\leadsto t - \color{blue}{\frac{t - x}{z}} \cdot \left(y - a\right) \]
                                                                                                            15. lower--.f64N/A

                                                                                                              \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                                                            16. lower--.f6489.4

                                                                                                              \[\leadsto t - \frac{t - x}{z} \cdot \color{blue}{\left(y - a\right)} \]
                                                                                                          5. Applied rewrites89.4%

                                                                                                            \[\leadsto \color{blue}{t - \frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                          6. Taylor expanded in y around 0

                                                                                                            \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                          7. Step-by-step derivation
                                                                                                            1. Applied rewrites67.6%

                                                                                                              \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                                                                          8. Recombined 3 regimes into one program.
                                                                                                          9. Add Preprocessing

                                                                                                          Alternative 20: 39.5% accurate, 0.9× speedup?

                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(x - t\right) \cdot y}{z}\\ \mathbf{if}\;y \leq -1.78 \cdot 10^{+50}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{+32}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{-x}{z}, t\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                          (FPCore (x y z t a)
                                                                                                           :precision binary64
                                                                                                           (let* ((t_1 (/ (* (- x t) y) z)))
                                                                                                             (if (<= y -1.78e+50) t_1 (if (<= y 4.7e+32) (fma a (/ (- x) z) t) t_1))))
                                                                                                          double code(double x, double y, double z, double t, double a) {
                                                                                                          	double t_1 = ((x - t) * y) / z;
                                                                                                          	double tmp;
                                                                                                          	if (y <= -1.78e+50) {
                                                                                                          		tmp = t_1;
                                                                                                          	} else if (y <= 4.7e+32) {
                                                                                                          		tmp = fma(a, (-x / z), t);
                                                                                                          	} else {
                                                                                                          		tmp = t_1;
                                                                                                          	}
                                                                                                          	return tmp;
                                                                                                          }
                                                                                                          
                                                                                                          function code(x, y, z, t, a)
                                                                                                          	t_1 = Float64(Float64(Float64(x - t) * y) / z)
                                                                                                          	tmp = 0.0
                                                                                                          	if (y <= -1.78e+50)
                                                                                                          		tmp = t_1;
                                                                                                          	elseif (y <= 4.7e+32)
                                                                                                          		tmp = fma(a, Float64(Float64(-x) / z), t);
                                                                                                          	else
                                                                                                          		tmp = t_1;
                                                                                                          	end
                                                                                                          	return tmp
                                                                                                          end
                                                                                                          
                                                                                                          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - t), $MachinePrecision] * y), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[y, -1.78e+50], t$95$1, If[LessEqual[y, 4.7e+32], N[(a * N[((-x) / z), $MachinePrecision] + t), $MachinePrecision], t$95$1]]]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          
                                                                                                          \\
                                                                                                          \begin{array}{l}
                                                                                                          t_1 := \frac{\left(x - t\right) \cdot y}{z}\\
                                                                                                          \mathbf{if}\;y \leq -1.78 \cdot 10^{+50}:\\
                                                                                                          \;\;\;\;t\_1\\
                                                                                                          
                                                                                                          \mathbf{elif}\;y \leq 4.7 \cdot 10^{+32}:\\
                                                                                                          \;\;\;\;\mathsf{fma}\left(a, \frac{-x}{z}, t\right)\\
                                                                                                          
                                                                                                          \mathbf{else}:\\
                                                                                                          \;\;\;\;t\_1\\
                                                                                                          
                                                                                                          
                                                                                                          \end{array}
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Split input into 2 regimes
                                                                                                          2. if y < -1.78e50 or 4.70000000000000023e32 < y

                                                                                                            1. Initial program 94.9%

                                                                                                              \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                            2. Add Preprocessing
                                                                                                            3. Taylor expanded in z around inf

                                                                                                              \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - -1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                            4. Step-by-step derivation
                                                                                                              1. metadata-evalN/A

                                                                                                                \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                              2. cancel-sign-sub-invN/A

                                                                                                                \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + 1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                              3. *-lft-identityN/A

                                                                                                                \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + \color{blue}{\frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                              4. mul-1-negN/A

                                                                                                                \[\leadsto \left(t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right)}{z}\right)\right)}\right) + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                              5. unsub-negN/A

                                                                                                                \[\leadsto \color{blue}{\left(t - \frac{y \cdot \left(t - x\right)}{z}\right)} + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                              6. associate-+l-N/A

                                                                                                                \[\leadsto \color{blue}{t - \left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                              7. div-subN/A

                                                                                                                \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                              8. lower--.f64N/A

                                                                                                                \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                              9. div-subN/A

                                                                                                                \[\leadsto t - \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                              10. associate-/l*N/A

                                                                                                                \[\leadsto t - \left(\color{blue}{y \cdot \frac{t - x}{z}} - \frac{a \cdot \left(t - x\right)}{z}\right) \]
                                                                                                              11. associate-/l*N/A

                                                                                                                \[\leadsto t - \left(y \cdot \frac{t - x}{z} - \color{blue}{a \cdot \frac{t - x}{z}}\right) \]
                                                                                                              12. distribute-rgt-out--N/A

                                                                                                                \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                              13. lower-*.f64N/A

                                                                                                                \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                              14. lower-/.f64N/A

                                                                                                                \[\leadsto t - \color{blue}{\frac{t - x}{z}} \cdot \left(y - a\right) \]
                                                                                                              15. lower--.f64N/A

                                                                                                                \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                                                              16. lower--.f6454.4

                                                                                                                \[\leadsto t - \frac{t - x}{z} \cdot \color{blue}{\left(y - a\right)} \]
                                                                                                            5. Applied rewrites54.4%

                                                                                                              \[\leadsto \color{blue}{t - \frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                            6. Taylor expanded in y around inf

                                                                                                              \[\leadsto y \cdot \color{blue}{\left(\frac{x}{z} - \frac{t}{z}\right)} \]
                                                                                                            7. Step-by-step derivation
                                                                                                              1. Applied rewrites45.8%

                                                                                                                \[\leadsto \frac{\left(x - t\right) \cdot y}{\color{blue}{z}} \]

                                                                                                              if -1.78e50 < y < 4.70000000000000023e32

                                                                                                              1. Initial program 70.0%

                                                                                                                \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                              2. Add Preprocessing
                                                                                                              3. Taylor expanded in z around inf

                                                                                                                \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - -1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                              4. Step-by-step derivation
                                                                                                                1. metadata-evalN/A

                                                                                                                  \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                                2. cancel-sign-sub-invN/A

                                                                                                                  \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + 1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                                3. *-lft-identityN/A

                                                                                                                  \[\leadsto \left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) + \color{blue}{\frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                                4. mul-1-negN/A

                                                                                                                  \[\leadsto \left(t + \color{blue}{\left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right)}{z}\right)\right)}\right) + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                                5. unsub-negN/A

                                                                                                                  \[\leadsto \color{blue}{\left(t - \frac{y \cdot \left(t - x\right)}{z}\right)} + \frac{a \cdot \left(t - x\right)}{z} \]
                                                                                                                6. associate-+l-N/A

                                                                                                                  \[\leadsto \color{blue}{t - \left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                                7. div-subN/A

                                                                                                                  \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                                8. lower--.f64N/A

                                                                                                                  \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                                                                                9. div-subN/A

                                                                                                                  \[\leadsto t - \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z} - \frac{a \cdot \left(t - x\right)}{z}\right)} \]
                                                                                                                10. associate-/l*N/A

                                                                                                                  \[\leadsto t - \left(\color{blue}{y \cdot \frac{t - x}{z}} - \frac{a \cdot \left(t - x\right)}{z}\right) \]
                                                                                                                11. associate-/l*N/A

                                                                                                                  \[\leadsto t - \left(y \cdot \frac{t - x}{z} - \color{blue}{a \cdot \frac{t - x}{z}}\right) \]
                                                                                                                12. distribute-rgt-out--N/A

                                                                                                                  \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                                13. lower-*.f64N/A

                                                                                                                  \[\leadsto t - \color{blue}{\frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                                14. lower-/.f64N/A

                                                                                                                  \[\leadsto t - \color{blue}{\frac{t - x}{z}} \cdot \left(y - a\right) \]
                                                                                                                15. lower--.f64N/A

                                                                                                                  \[\leadsto t - \frac{\color{blue}{t - x}}{z} \cdot \left(y - a\right) \]
                                                                                                                16. lower--.f6456.7

                                                                                                                  \[\leadsto t - \frac{t - x}{z} \cdot \color{blue}{\left(y - a\right)} \]
                                                                                                              5. Applied rewrites56.7%

                                                                                                                \[\leadsto \color{blue}{t - \frac{t - x}{z} \cdot \left(y - a\right)} \]
                                                                                                              6. Taylor expanded in y around 0

                                                                                                                \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                                                                                              7. Step-by-step derivation
                                                                                                                1. Applied rewrites48.3%

                                                                                                                  \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                                                                                                2. Taylor expanded in x around inf

                                                                                                                  \[\leadsto \mathsf{fma}\left(a, \frac{-1 \cdot x}{z}, t\right) \]
                                                                                                                3. Step-by-step derivation
                                                                                                                  1. Applied rewrites50.5%

                                                                                                                    \[\leadsto \mathsf{fma}\left(a, \frac{-x}{z}, t\right) \]
                                                                                                                4. Recombined 2 regimes into one program.
                                                                                                                5. Add Preprocessing

                                                                                                                Alternative 21: 29.5% accurate, 1.0× speedup?

                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) + x\\ \mathbf{if}\;z \leq -1.25 \cdot 10^{-126}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.05 \cdot 10^{+58}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                (FPCore (x y z t a)
                                                                                                                 :precision binary64
                                                                                                                 (let* ((t_1 (+ (- t x) x)))
                                                                                                                   (if (<= z -1.25e-126) t_1 (if (<= z 1.05e+58) (* (/ y a) t) t_1))))
                                                                                                                double code(double x, double y, double z, double t, double a) {
                                                                                                                	double t_1 = (t - x) + x;
                                                                                                                	double tmp;
                                                                                                                	if (z <= -1.25e-126) {
                                                                                                                		tmp = t_1;
                                                                                                                	} else if (z <= 1.05e+58) {
                                                                                                                		tmp = (y / a) * t;
                                                                                                                	} else {
                                                                                                                		tmp = t_1;
                                                                                                                	}
                                                                                                                	return tmp;
                                                                                                                }
                                                                                                                
                                                                                                                real(8) function code(x, y, z, t, a)
                                                                                                                    real(8), intent (in) :: x
                                                                                                                    real(8), intent (in) :: y
                                                                                                                    real(8), intent (in) :: z
                                                                                                                    real(8), intent (in) :: t
                                                                                                                    real(8), intent (in) :: a
                                                                                                                    real(8) :: t_1
                                                                                                                    real(8) :: tmp
                                                                                                                    t_1 = (t - x) + x
                                                                                                                    if (z <= (-1.25d-126)) then
                                                                                                                        tmp = t_1
                                                                                                                    else if (z <= 1.05d+58) then
                                                                                                                        tmp = (y / a) * t
                                                                                                                    else
                                                                                                                        tmp = t_1
                                                                                                                    end if
                                                                                                                    code = tmp
                                                                                                                end function
                                                                                                                
                                                                                                                public static double code(double x, double y, double z, double t, double a) {
                                                                                                                	double t_1 = (t - x) + x;
                                                                                                                	double tmp;
                                                                                                                	if (z <= -1.25e-126) {
                                                                                                                		tmp = t_1;
                                                                                                                	} else if (z <= 1.05e+58) {
                                                                                                                		tmp = (y / a) * t;
                                                                                                                	} else {
                                                                                                                		tmp = t_1;
                                                                                                                	}
                                                                                                                	return tmp;
                                                                                                                }
                                                                                                                
                                                                                                                def code(x, y, z, t, a):
                                                                                                                	t_1 = (t - x) + x
                                                                                                                	tmp = 0
                                                                                                                	if z <= -1.25e-126:
                                                                                                                		tmp = t_1
                                                                                                                	elif z <= 1.05e+58:
                                                                                                                		tmp = (y / a) * t
                                                                                                                	else:
                                                                                                                		tmp = t_1
                                                                                                                	return tmp
                                                                                                                
                                                                                                                function code(x, y, z, t, a)
                                                                                                                	t_1 = Float64(Float64(t - x) + x)
                                                                                                                	tmp = 0.0
                                                                                                                	if (z <= -1.25e-126)
                                                                                                                		tmp = t_1;
                                                                                                                	elseif (z <= 1.05e+58)
                                                                                                                		tmp = Float64(Float64(y / a) * t);
                                                                                                                	else
                                                                                                                		tmp = t_1;
                                                                                                                	end
                                                                                                                	return tmp
                                                                                                                end
                                                                                                                
                                                                                                                function tmp_2 = code(x, y, z, t, a)
                                                                                                                	t_1 = (t - x) + x;
                                                                                                                	tmp = 0.0;
                                                                                                                	if (z <= -1.25e-126)
                                                                                                                		tmp = t_1;
                                                                                                                	elseif (z <= 1.05e+58)
                                                                                                                		tmp = (y / a) * t;
                                                                                                                	else
                                                                                                                		tmp = t_1;
                                                                                                                	end
                                                                                                                	tmp_2 = tmp;
                                                                                                                end
                                                                                                                
                                                                                                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -1.25e-126], t$95$1, If[LessEqual[z, 1.05e+58], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]
                                                                                                                
                                                                                                                \begin{array}{l}
                                                                                                                
                                                                                                                \\
                                                                                                                \begin{array}{l}
                                                                                                                t_1 := \left(t - x\right) + x\\
                                                                                                                \mathbf{if}\;z \leq -1.25 \cdot 10^{-126}:\\
                                                                                                                \;\;\;\;t\_1\\
                                                                                                                
                                                                                                                \mathbf{elif}\;z \leq 1.05 \cdot 10^{+58}:\\
                                                                                                                \;\;\;\;\frac{y}{a} \cdot t\\
                                                                                                                
                                                                                                                \mathbf{else}:\\
                                                                                                                \;\;\;\;t\_1\\
                                                                                                                
                                                                                                                
                                                                                                                \end{array}
                                                                                                                \end{array}
                                                                                                                
                                                                                                                Derivation
                                                                                                                1. Split input into 2 regimes
                                                                                                                2. if z < -1.25000000000000001e-126 or 1.05000000000000006e58 < z

                                                                                                                  1. Initial program 72.5%

                                                                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                                  2. Add Preprocessing
                                                                                                                  3. Taylor expanded in z around inf

                                                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                  4. Step-by-step derivation
                                                                                                                    1. lower--.f6431.1

                                                                                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                  5. Applied rewrites31.1%

                                                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                                                                                                  if -1.25000000000000001e-126 < z < 1.05000000000000006e58

                                                                                                                  1. Initial program 93.3%

                                                                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                                  2. Add Preprocessing
                                                                                                                  3. Taylor expanded in x around 0

                                                                                                                    \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
                                                                                                                  4. Step-by-step derivation
                                                                                                                    1. *-commutativeN/A

                                                                                                                      \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot t}}{a - z} \]
                                                                                                                    2. associate-/l*N/A

                                                                                                                      \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                                                                                                                    3. lower-*.f64N/A

                                                                                                                      \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                                                                                                                    4. lower--.f64N/A

                                                                                                                      \[\leadsto \color{blue}{\left(y - z\right)} \cdot \frac{t}{a - z} \]
                                                                                                                    5. lower-/.f64N/A

                                                                                                                      \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                                                                                                    6. lower--.f6441.3

                                                                                                                      \[\leadsto \left(y - z\right) \cdot \frac{t}{\color{blue}{a - z}} \]
                                                                                                                  5. Applied rewrites41.3%

                                                                                                                    \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                                                                                                                  6. Taylor expanded in z around 0

                                                                                                                    \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                                                                                  7. Step-by-step derivation
                                                                                                                    1. Applied rewrites31.7%

                                                                                                                      \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
                                                                                                                  8. Recombined 2 regimes into one program.
                                                                                                                  9. Final simplification31.4%

                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{-126}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq 1.05 \cdot 10^{+58}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
                                                                                                                  10. Add Preprocessing

                                                                                                                  Alternative 22: 19.6% accurate, 4.1× speedup?

                                                                                                                  \[\begin{array}{l} \\ \left(t - x\right) + x \end{array} \]
                                                                                                                  (FPCore (x y z t a) :precision binary64 (+ (- t x) x))
                                                                                                                  double code(double x, double y, double z, double t, double a) {
                                                                                                                  	return (t - x) + x;
                                                                                                                  }
                                                                                                                  
                                                                                                                  real(8) function code(x, y, z, t, a)
                                                                                                                      real(8), intent (in) :: x
                                                                                                                      real(8), intent (in) :: y
                                                                                                                      real(8), intent (in) :: z
                                                                                                                      real(8), intent (in) :: t
                                                                                                                      real(8), intent (in) :: a
                                                                                                                      code = (t - x) + x
                                                                                                                  end function
                                                                                                                  
                                                                                                                  public static double code(double x, double y, double z, double t, double a) {
                                                                                                                  	return (t - x) + x;
                                                                                                                  }
                                                                                                                  
                                                                                                                  def code(x, y, z, t, a):
                                                                                                                  	return (t - x) + x
                                                                                                                  
                                                                                                                  function code(x, y, z, t, a)
                                                                                                                  	return Float64(Float64(t - x) + x)
                                                                                                                  end
                                                                                                                  
                                                                                                                  function tmp = code(x, y, z, t, a)
                                                                                                                  	tmp = (t - x) + x;
                                                                                                                  end
                                                                                                                  
                                                                                                                  code[x_, y_, z_, t_, a_] := N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision]
                                                                                                                  
                                                                                                                  \begin{array}{l}
                                                                                                                  
                                                                                                                  \\
                                                                                                                  \left(t - x\right) + x
                                                                                                                  \end{array}
                                                                                                                  
                                                                                                                  Derivation
                                                                                                                  1. Initial program 81.6%

                                                                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                                  2. Add Preprocessing
                                                                                                                  3. Taylor expanded in z around inf

                                                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                  4. Step-by-step derivation
                                                                                                                    1. lower--.f6420.0

                                                                                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                  5. Applied rewrites20.0%

                                                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                  6. Final simplification20.0%

                                                                                                                    \[\leadsto \left(t - x\right) + x \]
                                                                                                                  7. Add Preprocessing

                                                                                                                  Alternative 23: 2.8% accurate, 4.8× speedup?

                                                                                                                  \[\begin{array}{l} \\ \left(-x\right) + x \end{array} \]
                                                                                                                  (FPCore (x y z t a) :precision binary64 (+ (- x) x))
                                                                                                                  double code(double x, double y, double z, double t, double a) {
                                                                                                                  	return -x + x;
                                                                                                                  }
                                                                                                                  
                                                                                                                  real(8) function code(x, y, z, t, a)
                                                                                                                      real(8), intent (in) :: x
                                                                                                                      real(8), intent (in) :: y
                                                                                                                      real(8), intent (in) :: z
                                                                                                                      real(8), intent (in) :: t
                                                                                                                      real(8), intent (in) :: a
                                                                                                                      code = -x + x
                                                                                                                  end function
                                                                                                                  
                                                                                                                  public static double code(double x, double y, double z, double t, double a) {
                                                                                                                  	return -x + x;
                                                                                                                  }
                                                                                                                  
                                                                                                                  def code(x, y, z, t, a):
                                                                                                                  	return -x + x
                                                                                                                  
                                                                                                                  function code(x, y, z, t, a)
                                                                                                                  	return Float64(Float64(-x) + x)
                                                                                                                  end
                                                                                                                  
                                                                                                                  function tmp = code(x, y, z, t, a)
                                                                                                                  	tmp = -x + x;
                                                                                                                  end
                                                                                                                  
                                                                                                                  code[x_, y_, z_, t_, a_] := N[((-x) + x), $MachinePrecision]
                                                                                                                  
                                                                                                                  \begin{array}{l}
                                                                                                                  
                                                                                                                  \\
                                                                                                                  \left(-x\right) + x
                                                                                                                  \end{array}
                                                                                                                  
                                                                                                                  Derivation
                                                                                                                  1. Initial program 81.6%

                                                                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
                                                                                                                  2. Add Preprocessing
                                                                                                                  3. Taylor expanded in z around inf

                                                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                  4. Step-by-step derivation
                                                                                                                    1. lower--.f6420.0

                                                                                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                  5. Applied rewrites20.0%

                                                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                  6. Taylor expanded in x around inf

                                                                                                                    \[\leadsto x + -1 \cdot \color{blue}{x} \]
                                                                                                                  7. Step-by-step derivation
                                                                                                                    1. Applied rewrites2.9%

                                                                                                                      \[\leadsto x + \left(-x\right) \]
                                                                                                                    2. Final simplification2.9%

                                                                                                                      \[\leadsto \left(-x\right) + x \]
                                                                                                                    3. Add Preprocessing

                                                                                                                    Reproduce

                                                                                                                    ?
                                                                                                                    herbie shell --seed 2024298 
                                                                                                                    (FPCore (x y z t a)
                                                                                                                      :name "Numeric.Signal:interpolate   from hsignal-0.2.7.1"
                                                                                                                      :precision binary64
                                                                                                                      (+ x (* (- y z) (/ (- t x) (- a z)))))