Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 80.0% → 94.9%
Time: 13.8s
Alternatives: 19
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 19 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.0% 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: 94.9% accurate, 0.3× speedup?

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

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

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

\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)))) < -4.99999999999999996e-300 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    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. flip--N/A

        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
      11. clear-numN/A

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

        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
      13. flip--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)} \]

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

    1. Initial program 3.1%

      \[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. flip--N/A

        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
      11. clear-numN/A

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

        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
      13. flip--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-/.f643.1

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
    8. 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}} \]
    9. Step-by-step derivation
      1. associate--l+N/A

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

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

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

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

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

        \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
      7. 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)} \]
      8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

        \[\leadsto t - \frac{-x}{z} \cdot \left(y - a\right) \]
    13. Recombined 2 regimes into one program.
    14. Final simplification94.5%

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

    Alternative 2: 48.2% accurate, 0.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ t_2 := x + \left(-\left(-t\right)\right)\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+292}:\\ \;\;\;\;y \cdot \frac{t - x}{a}\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-300}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;x \cdot \frac{y - a}{z}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+293}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y}{a - z}\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))) (t_2 (+ x (- (- t)))))
       (if (<= t_1 -1e+292)
         (* y (/ (- t x) a))
         (if (<= t_1 -5e-300)
           t_2
           (if (<= t_1 0.0)
             (* x (/ (- y a) z))
             (if (<= t_1 5e+293) t_2 (* t (/ y (- a z)))))))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
    	double t_2 = x + -(-t);
    	double tmp;
    	if (t_1 <= -1e+292) {
    		tmp = y * ((t - x) / a);
    	} else if (t_1 <= -5e-300) {
    		tmp = t_2;
    	} else if (t_1 <= 0.0) {
    		tmp = x * ((y - a) / z);
    	} else if (t_1 <= 5e+293) {
    		tmp = t_2;
    	} else {
    		tmp = t * (y / (a - z));
    	}
    	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) :: t_2
        real(8) :: tmp
        t_1 = x + ((y - z) * ((t - x) / (a - z)))
        t_2 = x + -(-t)
        if (t_1 <= (-1d+292)) then
            tmp = y * ((t - x) / a)
        else if (t_1 <= (-5d-300)) then
            tmp = t_2
        else if (t_1 <= 0.0d0) then
            tmp = x * ((y - a) / z)
        else if (t_1 <= 5d+293) then
            tmp = t_2
        else
            tmp = t * (y / (a - z))
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z, double t, double a) {
    	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
    	double t_2 = x + -(-t);
    	double tmp;
    	if (t_1 <= -1e+292) {
    		tmp = y * ((t - x) / a);
    	} else if (t_1 <= -5e-300) {
    		tmp = t_2;
    	} else if (t_1 <= 0.0) {
    		tmp = x * ((y - a) / z);
    	} else if (t_1 <= 5e+293) {
    		tmp = t_2;
    	} else {
    		tmp = t * (y / (a - z));
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a):
    	t_1 = x + ((y - z) * ((t - x) / (a - z)))
    	t_2 = x + -(-t)
    	tmp = 0
    	if t_1 <= -1e+292:
    		tmp = y * ((t - x) / a)
    	elif t_1 <= -5e-300:
    		tmp = t_2
    	elif t_1 <= 0.0:
    		tmp = x * ((y - a) / z)
    	elif t_1 <= 5e+293:
    		tmp = t_2
    	else:
    		tmp = t * (y / (a - z))
    	return tmp
    
    function code(x, y, z, t, a)
    	t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
    	t_2 = Float64(x + Float64(-Float64(-t)))
    	tmp = 0.0
    	if (t_1 <= -1e+292)
    		tmp = Float64(y * Float64(Float64(t - x) / a));
    	elseif (t_1 <= -5e-300)
    		tmp = t_2;
    	elseif (t_1 <= 0.0)
    		tmp = Float64(x * Float64(Float64(y - a) / z));
    	elseif (t_1 <= 5e+293)
    		tmp = t_2;
    	else
    		tmp = Float64(t * Float64(y / Float64(a - z)));
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a)
    	t_1 = x + ((y - z) * ((t - x) / (a - z)));
    	t_2 = x + -(-t);
    	tmp = 0.0;
    	if (t_1 <= -1e+292)
    		tmp = y * ((t - x) / a);
    	elseif (t_1 <= -5e-300)
    		tmp = t_2;
    	elseif (t_1 <= 0.0)
    		tmp = x * ((y - a) / z);
    	elseif (t_1 <= 5e+293)
    		tmp = t_2;
    	else
    		tmp = t * (y / (a - z));
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + (-(-t))), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+292], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-300], t$95$2, If[LessEqual[t$95$1, 0.0], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+293], t$95$2, N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
    t_2 := x + \left(-\left(-t\right)\right)\\
    \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+292}:\\
    \;\;\;\;y \cdot \frac{t - x}{a}\\
    
    \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-300}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_1 \leq 0:\\
    \;\;\;\;x \cdot \frac{y - a}{z}\\
    
    \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+293}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{else}:\\
    \;\;\;\;t \cdot \frac{y}{a - z}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1e292

      1. Initial program 85.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. flip--N/A

          \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
        11. clear-numN/A

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

          \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
        13. flip--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-/.f6490.1

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

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

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

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

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

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

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

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

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

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

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

        if -1e292 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999996e-300 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.00000000000000033e293

        1. Initial program 91.3%

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

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

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

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

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

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

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

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

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

            \[\leadsto x + \left(\mathsf{neg}\left(-1 \cdot t\right)\right) \]
          3. Step-by-step derivation
            1. Applied rewrites46.7%

              \[\leadsto x + \left(-\left(-t\right)\right) \]

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

            1. Initial program 3.1%

              \[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. flip--N/A

                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
              11. clear-numN/A

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

                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
              13. flip--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-/.f643.1

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
            8. 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}} \]
            9. Step-by-step derivation
              1. associate--l+N/A

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

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

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

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

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

                \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
              7. 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)} \]
              8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

              if 5.00000000000000033e293 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

              1. Initial program 75.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. flip--N/A

                  \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                11. clear-numN/A

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

                  \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                13. flip--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-/.f6499.9

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto t \cdot \color{blue}{\frac{y}{a - z}} \]
              10. Recombined 4 regimes into one program.
              11. Add Preprocessing

              Alternative 3: 47.4% accurate, 0.2× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{y - a}{z}\\ t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ t_3 := x + \left(-\left(-t\right)\right)\\ \mathbf{if}\;t\_2 \leq -\infty:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-300}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_2 \leq 0:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+293}:\\ \;\;\;\;t\_3\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y}{a - z}\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (let* ((t_1 (* x (/ (- y a) z)))
                      (t_2 (+ x (* (- y z) (/ (- t x) (- a z)))))
                      (t_3 (+ x (- (- t)))))
                 (if (<= t_2 (- INFINITY))
                   t_1
                   (if (<= t_2 -5e-300)
                     t_3
                     (if (<= t_2 0.0) t_1 (if (<= t_2 5e+293) t_3 (* t (/ y (- a z)))))))))
              double code(double x, double y, double z, double t, double a) {
              	double t_1 = x * ((y - a) / z);
              	double t_2 = x + ((y - z) * ((t - x) / (a - z)));
              	double t_3 = x + -(-t);
              	double tmp;
              	if (t_2 <= -((double) INFINITY)) {
              		tmp = t_1;
              	} else if (t_2 <= -5e-300) {
              		tmp = t_3;
              	} else if (t_2 <= 0.0) {
              		tmp = t_1;
              	} else if (t_2 <= 5e+293) {
              		tmp = t_3;
              	} else {
              		tmp = t * (y / (a - z));
              	}
              	return tmp;
              }
              
              public static double code(double x, double y, double z, double t, double a) {
              	double t_1 = x * ((y - a) / z);
              	double t_2 = x + ((y - z) * ((t - x) / (a - z)));
              	double t_3 = x + -(-t);
              	double tmp;
              	if (t_2 <= -Double.POSITIVE_INFINITY) {
              		tmp = t_1;
              	} else if (t_2 <= -5e-300) {
              		tmp = t_3;
              	} else if (t_2 <= 0.0) {
              		tmp = t_1;
              	} else if (t_2 <= 5e+293) {
              		tmp = t_3;
              	} else {
              		tmp = t * (y / (a - z));
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a):
              	t_1 = x * ((y - a) / z)
              	t_2 = x + ((y - z) * ((t - x) / (a - z)))
              	t_3 = x + -(-t)
              	tmp = 0
              	if t_2 <= -math.inf:
              		tmp = t_1
              	elif t_2 <= -5e-300:
              		tmp = t_3
              	elif t_2 <= 0.0:
              		tmp = t_1
              	elif t_2 <= 5e+293:
              		tmp = t_3
              	else:
              		tmp = t * (y / (a - z))
              	return tmp
              
              function code(x, y, z, t, a)
              	t_1 = Float64(x * Float64(Float64(y - a) / z))
              	t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
              	t_3 = Float64(x + Float64(-Float64(-t)))
              	tmp = 0.0
              	if (t_2 <= Float64(-Inf))
              		tmp = t_1;
              	elseif (t_2 <= -5e-300)
              		tmp = t_3;
              	elseif (t_2 <= 0.0)
              		tmp = t_1;
              	elseif (t_2 <= 5e+293)
              		tmp = t_3;
              	else
              		tmp = Float64(t * Float64(y / Float64(a - z)));
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t, a)
              	t_1 = x * ((y - a) / z);
              	t_2 = x + ((y - z) * ((t - x) / (a - z)));
              	t_3 = x + -(-t);
              	tmp = 0.0;
              	if (t_2 <= -Inf)
              		tmp = t_1;
              	elseif (t_2 <= -5e-300)
              		tmp = t_3;
              	elseif (t_2 <= 0.0)
              		tmp = t_1;
              	elseif (t_2 <= 5e+293)
              		tmp = t_3;
              	else
              		tmp = t * (y / (a - z));
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + (-(-t))), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-300], t$95$3, If[LessEqual[t$95$2, 0.0], t$95$1, If[LessEqual[t$95$2, 5e+293], t$95$3, N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := x \cdot \frac{y - a}{z}\\
              t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
              t_3 := x + \left(-\left(-t\right)\right)\\
              \mathbf{if}\;t\_2 \leq -\infty:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-300}:\\
              \;\;\;\;t\_3\\
              
              \mathbf{elif}\;t\_2 \leq 0:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+293}:\\
              \;\;\;\;t\_3\\
              
              \mathbf{else}:\\
              \;\;\;\;t \cdot \frac{y}{a - z}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0 or -4.99999999999999996e-300 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0

                1. Initial program 29.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. flip--N/A

                    \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                  11. clear-numN/A

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

                    \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                  13. flip--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-/.f6431.7

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                8. 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}} \]
                9. Step-by-step derivation
                  1. associate--l+N/A

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

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

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

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

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

                    \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                  7. 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)} \]
                  8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                  if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999996e-300 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.00000000000000033e293

                  1. Initial program 91.5%

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

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

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

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

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

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

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

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

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

                      \[\leadsto x + \left(\mathsf{neg}\left(-1 \cdot t\right)\right) \]
                    3. Step-by-step derivation
                      1. Applied rewrites46.5%

                        \[\leadsto x + \left(-\left(-t\right)\right) \]

                      if 5.00000000000000033e293 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

                      1. Initial program 75.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. flip--N/A

                          \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                        11. clear-numN/A

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

                          \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                        13. flip--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-/.f6499.9

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto t \cdot \color{blue}{\frac{y}{a - z}} \]
                      10. Recombined 3 regimes into one program.
                      11. Add Preprocessing

                      Alternative 4: 78.9% accurate, 0.7× speedup?

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

                        1. Initial program 62.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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -1.1000000000000001e172 < z < 3.4000000000000002e-47

                        1. Initial program 88.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. flip--N/A

                            \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                          11. clear-numN/A

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

                            \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                          13. flip--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.0

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

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

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

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

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

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

                        if 3.4000000000000002e-47 < z < 8.5000000000000004e110

                        1. Initial program 88.0%

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

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

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

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.1 \cdot 10^{+172}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\ \mathbf{elif}\;z \leq 3.4 \cdot 10^{-47}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a - z}, t - x, x\right)\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{+110}:\\ \;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\ \end{array} \]
                      5. Add Preprocessing

                      Alternative 5: 67.9% accurate, 0.7× speedup?

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

                        1. Initial program 95.6%

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

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

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

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

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

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

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

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

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

                          if -1.1000000000000001e74 < a < 3.89999999999999985e-8

                          1. Initial program 69.1%

                            \[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. flip--N/A

                              \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                            11. clear-numN/A

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

                              \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                            13. flip--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-/.f6476.4

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                          8. 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}} \]
                          9. Step-by-step derivation
                            1. associate--l+N/A

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

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

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

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

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

                              \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                            7. 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)} \]
                            8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                            if 3.89999999999999985e-8 < a < 8.3999999999999997e242

                            1. Initial program 88.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. flip--N/A

                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                              11. clear-numN/A

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

                                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                              13. flip--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.0

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

                              \[\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-/.f6467.0

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

                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
                          13. Recombined 3 regimes into one program.
                          14. Add Preprocessing

                          Alternative 6: 47.9% accurate, 0.8× speedup?

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

                            1. Initial program 60.2%

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

                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                            5. Applied rewrites42.4%

                              \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                            if -1.15e172 < z < -7.2e-129

                            1. Initial program 88.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. flip--N/A

                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                              11. clear-numN/A

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

                                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                              13. flip--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-/.f6491.5

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\frac{y}{a}, \color{blue}{-1 \cdot x}, x\right) \]
                            9. Step-by-step derivation
                              1. mul-1-negN/A

                                \[\leadsto \mathsf{fma}\left(\frac{y}{a}, \color{blue}{\mathsf{neg}\left(x\right)}, x\right) \]
                              2. lower-neg.f6452.8

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

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

                            if -7.2e-129 < z < 2.15000000000000004e27

                            1. Initial program 87.8%

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

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

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

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

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

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

                              \[\leadsto x + \frac{t \cdot y}{a} \]
                            7. Step-by-step derivation
                              1. Applied rewrites57.0%

                                \[\leadsto x + \frac{t \cdot y}{a} \]

                              if 2.15000000000000004e27 < z

                              1. Initial program 68.8%

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

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

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

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

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

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

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

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

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

                                  \[\leadsto x + \left(\mathsf{neg}\left(-1 \cdot t\right)\right) \]
                                3. Step-by-step derivation
                                  1. Applied rewrites52.4%

                                    \[\leadsto x + \left(-\left(-t\right)\right) \]
                                4. Recombined 4 regimes into one program.
                                5. Final simplification52.8%

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

                                Alternative 7: 76.7% accurate, 0.8× speedup?

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

                                  1. Initial program 62.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. flip--N/A

                                      \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                    11. clear-numN/A

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

                                      \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                    13. flip--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-/.f6468.8

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

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

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                                  8. 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}} \]
                                  9. Step-by-step derivation
                                    1. associate--l+N/A

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

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

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

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

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

                                      \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                    7. 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)} \]
                                    8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                                    if -1.1000000000000001e172 < z < 8.5000000000000004e110

                                    1. Initial program 88.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. flip--N/A

                                        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                      11. clear-numN/A

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

                                        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                      13. flip--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-/.f6491.2

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a - z}}, t - x, x\right) \]
                                  13. Recombined 2 regimes into one program.
                                  14. Final simplification79.5%

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

                                  Alternative 8: 78.2% accurate, 0.8× speedup?

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

                                    1. Initial program 62.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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -1.1000000000000001e172 < z < 1.20000000000000006e110

                                    1. Initial program 88.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. flip--N/A

                                        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                      11. clear-numN/A

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

                                        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                      13. flip--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-/.f6491.2

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

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

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

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

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

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

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

                                  Alternative 9: 72.4% accurate, 0.8× speedup?

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

                                    1. Initial program 62.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. flip--N/A

                                        \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                      11. clear-numN/A

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

                                        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                      13. flip--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-/.f6468.8

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

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

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                                    8. 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}} \]
                                    9. Step-by-step derivation
                                      1. associate--l+N/A

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

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

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

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

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

                                        \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                      7. 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)} \]
                                      8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                                      if -1.15e172 < z < 4.5000000000000003e110

                                      1. Initial program 88.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. flip--N/A

                                          \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                        11. clear-numN/A

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

                                          \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                        13. flip--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-/.f6491.2

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a - z}}, t - x, x\right) \]
                                    13. Recombined 2 regimes into one program.
                                    14. Add Preprocessing

                                    Alternative 10: 70.3% accurate, 0.8× speedup?

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

                                      1. Initial program 91.8%

                                        \[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--.f6474.3

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

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

                                      if -1.1000000000000001e74 < a < 3.89999999999999985e-8

                                      1. Initial program 69.1%

                                        \[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. flip--N/A

                                          \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                        11. clear-numN/A

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

                                          \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                        13. flip--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-/.f6476.4

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

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

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                                      8. 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}} \]
                                      9. Step-by-step derivation
                                        1. associate--l+N/A

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

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

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

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

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

                                          \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                        7. 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)} \]
                                        8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                                      Alternative 11: 65.2% accurate, 0.8× speedup?

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

                                        1. Initial program 92.2%

                                          \[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. lower-fma.f64N/A

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

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

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

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

                                        if -9.5000000000000009e130 < a < 3.89999999999999985e-8

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

                                            \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                          11. clear-numN/A

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

                                            \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                          13. flip--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-/.f6476.9

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

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

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

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

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

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

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

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

                                          \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                                        8. 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}} \]
                                        9. Step-by-step derivation
                                          1. associate--l+N/A

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

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

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

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

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

                                            \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                          7. 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)} \]
                                          8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                                        Alternative 12: 63.4% accurate, 0.9× speedup?

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

                                          1. Initial program 62.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. flip--N/A

                                              \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                            11. clear-numN/A

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

                                              \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                            13. flip--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-/.f6468.8

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

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

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

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

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

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

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

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

                                            \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                                          8. 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}} \]
                                          9. Step-by-step derivation
                                            1. associate--l+N/A

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

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

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

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

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

                                              \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                            7. 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)} \]
                                            8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                                            if -1.1000000000000001e172 < z < 8.9999999999999998e112

                                            1. Initial program 88.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. flip--N/A

                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                              11. clear-numN/A

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

                                                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                              13. flip--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-/.f6491.2

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

                                              \[\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-/.f6464.7

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

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t - x, x\right) \]
                                          13. Recombined 2 regimes into one program.
                                          14. Add Preprocessing

                                          Alternative 13: 62.0% accurate, 0.9× speedup?

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

                                            1. Initial program 62.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. flip--N/A

                                                \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                              11. clear-numN/A

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

                                                \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                              13. flip--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-/.f6468.8

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

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

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

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

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

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

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

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

                                              \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                                            8. 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}} \]
                                            9. Step-by-step derivation
                                              1. associate--l+N/A

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

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

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

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

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

                                                \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                              7. 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)} \]
                                              8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                                              if -1.1000000000000001e172 < z < 8.9999999999999998e112

                                              1. Initial program 88.0%

                                                \[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. lower-fma.f64N/A

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

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

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

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{t - x}{a}, x\right)} \]
                                            13. Recombined 2 regimes into one program.
                                            14. Add Preprocessing

                                            Alternative 14: 56.4% accurate, 0.9× speedup?

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

                                              1. Initial program 60.2%

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

                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                              5. Applied rewrites42.4%

                                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                              if -1.15e172 < z < 8.9999999999999998e27

                                              1. Initial program 88.1%

                                                \[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. lower-fma.f64N/A

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

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

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

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

                                              if 8.9999999999999998e27 < z

                                              1. Initial program 68.8%

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto x + \left(\mathsf{neg}\left(-1 \cdot t\right)\right) \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites52.4%

                                                    \[\leadsto x + \left(-\left(-t\right)\right) \]
                                                4. Recombined 3 regimes into one program.
                                                5. Add Preprocessing

                                                Alternative 15: 47.8% accurate, 0.9× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.1 \cdot 10^{+158}:\\ \;\;\;\;x + \left(t - x\right)\\ \mathbf{elif}\;z \leq 2.15 \cdot 10^{+27}:\\ \;\;\;\;x + \frac{y \cdot t}{a}\\ \mathbf{else}:\\ \;\;\;\;x + \left(-\left(-t\right)\right)\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a)
                                                 :precision binary64
                                                 (if (<= z -2.1e+158)
                                                   (+ x (- t x))
                                                   (if (<= z 2.15e+27) (+ x (/ (* y t) a)) (+ x (- (- t))))))
                                                double code(double x, double y, double z, double t, double a) {
                                                	double tmp;
                                                	if (z <= -2.1e+158) {
                                                		tmp = x + (t - x);
                                                	} else if (z <= 2.15e+27) {
                                                		tmp = x + ((y * t) / a);
                                                	} else {
                                                		tmp = x + -(-t);
                                                	}
                                                	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) :: tmp
                                                    if (z <= (-2.1d+158)) then
                                                        tmp = x + (t - x)
                                                    else if (z <= 2.15d+27) then
                                                        tmp = x + ((y * t) / a)
                                                    else
                                                        tmp = x + -(-t)
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static double code(double x, double y, double z, double t, double a) {
                                                	double tmp;
                                                	if (z <= -2.1e+158) {
                                                		tmp = x + (t - x);
                                                	} else if (z <= 2.15e+27) {
                                                		tmp = x + ((y * t) / a);
                                                	} else {
                                                		tmp = x + -(-t);
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a):
                                                	tmp = 0
                                                	if z <= -2.1e+158:
                                                		tmp = x + (t - x)
                                                	elif z <= 2.15e+27:
                                                		tmp = x + ((y * t) / a)
                                                	else:
                                                		tmp = x + -(-t)
                                                	return tmp
                                                
                                                function code(x, y, z, t, a)
                                                	tmp = 0.0
                                                	if (z <= -2.1e+158)
                                                		tmp = Float64(x + Float64(t - x));
                                                	elseif (z <= 2.15e+27)
                                                		tmp = Float64(x + Float64(Float64(y * t) / a));
                                                	else
                                                		tmp = Float64(x + Float64(-Float64(-t)));
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a)
                                                	tmp = 0.0;
                                                	if (z <= -2.1e+158)
                                                		tmp = x + (t - x);
                                                	elseif (z <= 2.15e+27)
                                                		tmp = x + ((y * t) / a);
                                                	else
                                                		tmp = x + -(-t);
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.1e+158], N[(x + N[(t - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.15e+27], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + (-(-t))), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;z \leq -2.1 \cdot 10^{+158}:\\
                                                \;\;\;\;x + \left(t - x\right)\\
                                                
                                                \mathbf{elif}\;z \leq 2.15 \cdot 10^{+27}:\\
                                                \;\;\;\;x + \frac{y \cdot t}{a}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;x + \left(-\left(-t\right)\right)\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if z < -2.0999999999999999e158

                                                  1. Initial program 63.4%

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

                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                  5. Applied rewrites41.7%

                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                                  if -2.0999999999999999e158 < z < 2.15000000000000004e27

                                                  1. Initial program 87.8%

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

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

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

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

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

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

                                                    \[\leadsto x + \frac{t \cdot y}{a} \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites53.1%

                                                      \[\leadsto x + \frac{t \cdot y}{a} \]

                                                    if 2.15000000000000004e27 < z

                                                    1. Initial program 68.8%

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto x + \left(\mathsf{neg}\left(-1 \cdot t\right)\right) \]
                                                      3. Step-by-step derivation
                                                        1. Applied rewrites52.4%

                                                          \[\leadsto x + \left(-\left(-t\right)\right) \]
                                                      4. Recombined 3 regimes into one program.
                                                      5. Final simplification51.2%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.1 \cdot 10^{+158}:\\ \;\;\;\;x + \left(t - x\right)\\ \mathbf{elif}\;z \leq 2.15 \cdot 10^{+27}:\\ \;\;\;\;x + \frac{y \cdot t}{a}\\ \mathbf{else}:\\ \;\;\;\;x + \left(-\left(-t\right)\right)\\ \end{array} \]
                                                      6. Add Preprocessing

                                                      Alternative 16: 39.9% accurate, 0.9× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \frac{y - a}{z}\\ \mathbf{if}\;y \leq -1.52 \cdot 10^{+145}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 4 \cdot 10^{+190}:\\ \;\;\;\;x + \left(-\left(-t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a)
                                                       :precision binary64
                                                       (let* ((t_1 (* x (/ (- y a) z))))
                                                         (if (<= y -1.52e+145) t_1 (if (<= y 4e+190) (+ x (- (- t))) t_1))))
                                                      double code(double x, double y, double z, double t, double a) {
                                                      	double t_1 = x * ((y - a) / z);
                                                      	double tmp;
                                                      	if (y <= -1.52e+145) {
                                                      		tmp = t_1;
                                                      	} else if (y <= 4e+190) {
                                                      		tmp = x + -(-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 = x * ((y - a) / z)
                                                          if (y <= (-1.52d+145)) then
                                                              tmp = t_1
                                                          else if (y <= 4d+190) then
                                                              tmp = x + -(-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 = x * ((y - a) / z);
                                                      	double tmp;
                                                      	if (y <= -1.52e+145) {
                                                      		tmp = t_1;
                                                      	} else if (y <= 4e+190) {
                                                      		tmp = x + -(-t);
                                                      	} else {
                                                      		tmp = t_1;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      def code(x, y, z, t, a):
                                                      	t_1 = x * ((y - a) / z)
                                                      	tmp = 0
                                                      	if y <= -1.52e+145:
                                                      		tmp = t_1
                                                      	elif y <= 4e+190:
                                                      		tmp = x + -(-t)
                                                      	else:
                                                      		tmp = t_1
                                                      	return tmp
                                                      
                                                      function code(x, y, z, t, a)
                                                      	t_1 = Float64(x * Float64(Float64(y - a) / z))
                                                      	tmp = 0.0
                                                      	if (y <= -1.52e+145)
                                                      		tmp = t_1;
                                                      	elseif (y <= 4e+190)
                                                      		tmp = Float64(x + Float64(-Float64(-t)));
                                                      	else
                                                      		tmp = t_1;
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      function tmp_2 = code(x, y, z, t, a)
                                                      	t_1 = x * ((y - a) / z);
                                                      	tmp = 0.0;
                                                      	if (y <= -1.52e+145)
                                                      		tmp = t_1;
                                                      	elseif (y <= 4e+190)
                                                      		tmp = x + -(-t);
                                                      	else
                                                      		tmp = t_1;
                                                      	end
                                                      	tmp_2 = tmp;
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.52e+145], t$95$1, If[LessEqual[y, 4e+190], N[(x + (-(-t))), $MachinePrecision], t$95$1]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      t_1 := x \cdot \frac{y - a}{z}\\
                                                      \mathbf{if}\;y \leq -1.52 \cdot 10^{+145}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{elif}\;y \leq 4 \cdot 10^{+190}:\\
                                                      \;\;\;\;x + \left(-\left(-t\right)\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if y < -1.52000000000000011e145 or 4.0000000000000003e190 < y

                                                        1. Initial program 89.1%

                                                          \[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. flip--N/A

                                                            \[\leadsto \frac{y - z}{a - z} \cdot \frac{1}{\frac{1}{\color{blue}{\frac{t \cdot t - x \cdot x}{t + x}}}} + x \]
                                                          11. clear-numN/A

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

                                                            \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{\frac{t \cdot t - x \cdot x}{t + x}} + x \]
                                                          13. flip--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.9

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

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

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

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

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

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

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

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

                                                          \[\leadsto \color{blue}{\frac{\left(t - x\right) \cdot y}{a - z}} \]
                                                        8. 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}} \]
                                                        9. Step-by-step derivation
                                                          1. associate--l+N/A

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

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

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

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

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

                                                            \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                                          7. 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)} \]
                                                          8. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

                                                          if -1.52000000000000011e145 < y < 4.0000000000000003e190

                                                          1. Initial program 76.5%

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto x + \left(\mathsf{neg}\left(-1 \cdot t\right)\right) \]
                                                            3. Step-by-step derivation
                                                              1. Applied rewrites43.7%

                                                                \[\leadsto x + \left(-\left(-t\right)\right) \]
                                                            4. Recombined 2 regimes into one program.
                                                            5. Add Preprocessing

                                                            Alternative 17: 34.7% accurate, 3.6× speedup?

                                                            \[\begin{array}{l} \\ x + \left(-\left(-t\right)\right) \end{array} \]
                                                            (FPCore (x y z t a) :precision binary64 (+ x (- (- t))))
                                                            double code(double x, double y, double z, double t, double a) {
                                                            	return x + -(-t);
                                                            }
                                                            
                                                            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 + -(-t)
                                                            end function
                                                            
                                                            public static double code(double x, double y, double z, double t, double a) {
                                                            	return x + -(-t);
                                                            }
                                                            
                                                            def code(x, y, z, t, a):
                                                            	return x + -(-t)
                                                            
                                                            function code(x, y, z, t, a)
                                                            	return Float64(x + Float64(-Float64(-t)))
                                                            end
                                                            
                                                            function tmp = code(x, y, z, t, a)
                                                            	tmp = x + -(-t);
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_] := N[(x + (-(-t))), $MachinePrecision]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            x + \left(-\left(-t\right)\right)
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Initial program 79.2%

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto x + \left(\mathsf{neg}\left(-1 \cdot t\right)\right) \]
                                                              3. Step-by-step derivation
                                                                1. Applied rewrites35.6%

                                                                  \[\leadsto x + \left(-\left(-t\right)\right) \]
                                                                2. Add Preprocessing

                                                                Alternative 18: 19.4% accurate, 4.1× speedup?

                                                                \[\begin{array}{l} \\ x + \left(t - x\right) \end{array} \]
                                                                (FPCore (x y z t a) :precision binary64 (+ x (- t x)))
                                                                double code(double x, double y, double z, double t, double a) {
                                                                	return x + (t - 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 + (t - x)
                                                                end function
                                                                
                                                                public static double code(double x, double y, double z, double t, double a) {
                                                                	return x + (t - x);
                                                                }
                                                                
                                                                def code(x, y, z, t, a):
                                                                	return x + (t - x)
                                                                
                                                                function code(x, y, z, t, a)
                                                                	return Float64(x + Float64(t - x))
                                                                end
                                                                
                                                                function tmp = code(x, y, z, t, a)
                                                                	tmp = x + (t - x);
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_] := N[(x + N[(t - x), $MachinePrecision]), $MachinePrecision]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                x + \left(t - x\right)
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Initial program 79.2%

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

                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                5. Applied rewrites21.7%

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                6. Add Preprocessing

                                                                Alternative 19: 2.8% accurate, 4.8× speedup?

                                                                \[\begin{array}{l} \\ x + \left(-x\right) \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(x + Float64(-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}
                                                                
                                                                \\
                                                                x + \left(-x\right)
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Initial program 79.2%

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

                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                5. Applied rewrites21.7%

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                6. Taylor expanded in t around 0

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

                                                                    \[\leadsto x + \left(-x\right) \]
                                                                  2. Add Preprocessing

                                                                  Reproduce

                                                                  ?
                                                                  herbie shell --seed 2024222 
                                                                  (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)))))