Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 79.5% → 91.5%
Time: 15.1s
Alternatives: 25
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 25 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: 79.5% 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: 91.5% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{-272}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-180}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
   (if (<= t_1 -5e-272)
     t_1
     (if (<= t_1 5e-180)
       (fma (/ (- t x) z) (- a y) t)
       (fma (/ (- y z) (- a z)) (- t x) x)))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
	double tmp;
	if (t_1 <= -5e-272) {
		tmp = t_1;
	} else if (t_1 <= 5e-180) {
		tmp = fma(((t - x) / z), (a - y), t);
	} else {
		tmp = fma(((y - z) / (a - z)), (t - x), x);
	}
	return tmp;
}
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
	tmp = 0.0
	if (t_1 <= -5e-272)
		tmp = t_1;
	elseif (t_1 <= 5e-180)
		tmp = fma(Float64(Float64(t - x) / z), Float64(a - y), t);
	else
		tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x);
	end
	return 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]}, If[LessEqual[t$95$1, -5e-272], t$95$1, If[LessEqual[t$95$1, 5e-180], N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision] + t), $MachinePrecision], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{-180}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\


\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)))) < -4.99999999999999982e-272

    1. Initial program 97.0%

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

    if -4.99999999999999982e-272 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.0000000000000001e-180

    1. Initial program 6.3%

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

      \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - -1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
    4. Step-by-step derivation
      1. +-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 rewrites97.4%

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

    if 5.0000000000000001e-180 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

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

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

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

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

Alternative 2: 72.6% accurate, 0.1× speedup?

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

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

\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-272}:\\
\;\;\;\;t\_3\\

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

\mathbf{elif}\;t\_2 \leq 10^{-177}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t\_3\\

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


\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)))) < -3.9999999999999999e267 or 1.9999999999999999e304 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    1. Initial program 90.8%

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

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

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

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

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

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

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

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

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

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

      if -3.9999999999999999e267 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999982e-272 or 9.99999999999999952e-178 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.9999999999999999e304

      1. Initial program 96.3%

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

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

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

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

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

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

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

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

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

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

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

      1. Initial program 3.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          1. Initial program 30.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 3: 79.2% accurate, 0.2× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\ t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ t_3 := \mathsf{fma}\left(y - z, \frac{t}{a - z}, x\right)\\ \mathbf{if}\;t\_2 \leq -4 \cdot 10^{+267}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-272}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-180}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+304}:\\ \;\;\;\;t\_3\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (let* ((t_1 (* (- t x) (/ y (- a z))))
                  (t_2 (+ x (* (- y z) (/ (- t x) (- a z)))))
                  (t_3 (fma (- y z) (/ t (- a z)) x)))
             (if (<= t_2 -4e+267)
               t_1
               (if (<= t_2 -5e-272)
                 t_3
                 (if (<= t_2 5e-180)
                   (fma (/ (- t x) z) (- a y) t)
                   (if (<= t_2 2e+304) t_3 t_1))))))
          double code(double x, double y, double z, double t, double a) {
          	double t_1 = (t - x) * (y / (a - z));
          	double t_2 = x + ((y - z) * ((t - x) / (a - z)));
          	double t_3 = fma((y - z), (t / (a - z)), x);
          	double tmp;
          	if (t_2 <= -4e+267) {
          		tmp = t_1;
          	} else if (t_2 <= -5e-272) {
          		tmp = t_3;
          	} else if (t_2 <= 5e-180) {
          		tmp = fma(((t - x) / z), (a - y), t);
          	} else if (t_2 <= 2e+304) {
          		tmp = t_3;
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	t_1 = Float64(Float64(t - x) * Float64(y / Float64(a - z)))
          	t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
          	t_3 = fma(Float64(y - z), Float64(t / Float64(a - z)), x)
          	tmp = 0.0
          	if (t_2 <= -4e+267)
          		tmp = t_1;
          	elseif (t_2 <= -5e-272)
          		tmp = t_3;
          	elseif (t_2 <= 5e-180)
          		tmp = fma(Float64(Float64(t - x) / z), Float64(a - y), t);
          	elseif (t_2 <= 2e+304)
          		tmp = t_3;
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $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[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t$95$2, -4e+267], t$95$1, If[LessEqual[t$95$2, -5e-272], t$95$3, If[LessEqual[t$95$2, 5e-180], N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision] + t), $MachinePrecision], If[LessEqual[t$95$2, 2e+304], t$95$3, t$95$1]]]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(t - x\right) \cdot \frac{y}{a - z}\\
          t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
          t_3 := \mathsf{fma}\left(y - z, \frac{t}{a - z}, x\right)\\
          \mathbf{if}\;t\_2 \leq -4 \cdot 10^{+267}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-272}:\\
          \;\;\;\;t\_3\\
          
          \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-180}:\\
          \;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\
          
          \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+304}:\\
          \;\;\;\;t\_3\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \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)))) < -3.9999999999999999e267 or 1.9999999999999999e304 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

            1. Initial program 90.8%

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

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

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

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

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

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

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

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

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

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

              if -3.9999999999999999e267 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999982e-272 or 5.0000000000000001e-180 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.9999999999999999e304

              1. Initial program 96.2%

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

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

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

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

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

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

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

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

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

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

              if -4.99999999999999982e-272 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.0000000000000001e-180

              1. Initial program 6.3%

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

                \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - -1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
              4. Step-by-step derivation
                1. +-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 rewrites97.4%

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

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

            Alternative 4: 93.1% 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^{-272}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-180}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\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-272)
                 t_1
                 (if (<= t_2 5e-180) (fma (/ (- t x) z) (- a y) t) 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-272) {
            		tmp = t_1;
            	} else if (t_2 <= 5e-180) {
            		tmp = fma(((t - x) / z), (a - y), t);
            	} 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-272)
            		tmp = t_1;
            	elseif (t_2 <= 5e-180)
            		tmp = fma(Float64(Float64(t - x) / z), Float64(a - y), t);
            	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-272], t$95$1, If[LessEqual[t$95$2, 5e-180], N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision] + t), $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^{-272}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-180}:\\
            \;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\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.99999999999999982e-272 or 5.0000000000000001e-180 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

              1. Initial program 94.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-/.f6495.4

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

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

              if -4.99999999999999982e-272 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.0000000000000001e-180

              1. Initial program 6.3%

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

                \[\leadsto \color{blue}{\left(t + -1 \cdot \frac{y \cdot \left(t - x\right)}{z}\right) - -1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
              4. Step-by-step derivation
                1. +-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 rewrites97.4%

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;x + \left(y - z\right) \cdot \frac{t - x}{a - z} \leq -5 \cdot 10^{-272}:\\ \;\;\;\;\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 5 \cdot 10^{-180}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\ \end{array} \]
            5. Add Preprocessing

            Alternative 5: 68.3% accurate, 0.7× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -50 < z < 4.55e18

                1. Initial program 92.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-/.f6493.7

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

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

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

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

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

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

                if 4.55e18 < z < 4.2e95

                1. Initial program 54.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(-1 \cdot z, \mathsf{neg}\left(\color{blue}{\frac{x}{a - z}}\right), x\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites10.0%

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

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -50:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{elif}\;z \leq 4.55 \cdot 10^{+18}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{+95}:\\ \;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \end{array} \]
                  6. Add Preprocessing

                  Alternative 6: 67.5% accurate, 0.7× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -50 < z < 5.2e18

                      1. Initial program 92.4%

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

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

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

                      if 5.2e18 < z < 4.2e95

                      1. Initial program 54.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(-1 \cdot z, \mathsf{neg}\left(\color{blue}{\frac{x}{a - z}}\right), x\right) \]
                      7. Step-by-step derivation
                        1. Applied rewrites10.0%

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

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

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -50:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+18}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{+95}:\\ \;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \end{array} \]
                        6. Add Preprocessing

                        Alternative 7: 66.3% accurate, 0.7× speedup?

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

                          1. Initial program 69.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-/.f6472.5

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

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

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

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

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

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

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

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

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

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

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

                            if -6.2e-4 < z < 3.25e13

                            1. Initial program 92.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if 3.25e13 < z < 4.2e95

                            1. Initial program 57.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(-1 \cdot z, \mathsf{neg}\left(\color{blue}{\frac{x}{a - z}}\right), x\right) \]
                            7. Step-by-step derivation
                              1. Applied rewrites9.5%

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

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

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

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

                              Alternative 8: 62.0% accurate, 0.7× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y - z\right) \cdot \frac{t}{a - z}\\ \mathbf{if}\;z \leq -0.00062:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 32500000000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \mathbf{elif}\;z \leq 1.35 \cdot 10^{+96}:\\ \;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (let* ((t_1 (* (- y z) (/ t (- a z)))))
                                 (if (<= z -0.00062)
                                   t_1
                                   (if (<= z 32500000000000.0)
                                     (fma (/ y a) (- t x) x)
                                     (if (<= z 1.35e+96) (/ (* x (- y a)) z) t_1)))))
                              double code(double x, double y, double z, double t, double a) {
                              	double t_1 = (y - z) * (t / (a - z));
                              	double tmp;
                              	if (z <= -0.00062) {
                              		tmp = t_1;
                              	} else if (z <= 32500000000000.0) {
                              		tmp = fma((y / a), (t - x), x);
                              	} else if (z <= 1.35e+96) {
                              		tmp = (x * (y - a)) / z;
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a)
                              	t_1 = Float64(Float64(y - z) * Float64(t / Float64(a - z)))
                              	tmp = 0.0
                              	if (z <= -0.00062)
                              		tmp = t_1;
                              	elseif (z <= 32500000000000.0)
                              		tmp = fma(Float64(y / a), Float64(t - x), x);
                              	elseif (z <= 1.35e+96)
                              		tmp = Float64(Float64(x * Float64(y - a)) / 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[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.00062], t$95$1, If[LessEqual[z, 32500000000000.0], N[(N[(y / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.35e+96], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \left(y - z\right) \cdot \frac{t}{a - z}\\
                              \mathbf{if}\;z \leq -0.00062:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;z \leq 32500000000000:\\
                              \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\
                              
                              \mathbf{elif}\;z \leq 1.35 \cdot 10^{+96}:\\
                              \;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if z < -6.2e-4 or 1.35000000000000011e96 < z

                                1. Initial program 69.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-/.f6472.5

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

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

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

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

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

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

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

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

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

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

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

                                  if -6.2e-4 < z < 3.25e13

                                  1. Initial program 92.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if 3.25e13 < z < 1.35000000000000011e96

                                  1. Initial program 57.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(-1 \cdot z, \mathsf{neg}\left(\color{blue}{\frac{x}{a - z}}\right), x\right) \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites9.5%

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

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

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

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

                                    Alternative 9: 57.5% accurate, 0.7× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \mathbf{if}\;a \leq -4.3 \cdot 10^{+76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -9.4 \cdot 10^{-82}:\\ \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\ \mathbf{elif}\;a \leq 1.4 \cdot 10^{-86}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (let* ((t_1 (fma (- y z) (/ t a) x)))
                                       (if (<= a -4.3e+76)
                                         t_1
                                         (if (<= a -9.4e-82)
                                           (* (- t x) (/ y (- a z)))
                                           (if (<= a 1.4e-86) (/ (* (- y z) t) (- a z)) t_1)))))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double t_1 = fma((y - z), (t / a), x);
                                    	double tmp;
                                    	if (a <= -4.3e+76) {
                                    		tmp = t_1;
                                    	} else if (a <= -9.4e-82) {
                                    		tmp = (t - x) * (y / (a - z));
                                    	} else if (a <= 1.4e-86) {
                                    		tmp = ((y - z) * t) / (a - z);
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a)
                                    	t_1 = fma(Float64(y - z), Float64(t / a), x)
                                    	tmp = 0.0
                                    	if (a <= -4.3e+76)
                                    		tmp = t_1;
                                    	elseif (a <= -9.4e-82)
                                    		tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z)));
                                    	elseif (a <= 1.4e-86)
                                    		tmp = Float64(Float64(Float64(y - z) * t) / Float64(a - 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[(t / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -4.3e+76], t$95$1, If[LessEqual[a, -9.4e-82], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e-86], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
                                    \mathbf{if}\;a \leq -4.3 \cdot 10^{+76}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;a \leq -9.4 \cdot 10^{-82}:\\
                                    \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
                                    
                                    \mathbf{elif}\;a \leq 1.4 \cdot 10^{-86}:\\
                                    \;\;\;\;\frac{\left(y - z\right) \cdot t}{a - z}\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if a < -4.29999999999999978e76 or 1.40000000000000005e-86 < a

                                      1. Initial program 89.4%

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(y - z, \frac{t}{\color{blue}{a}}, x\right) \]
                                      9. Step-by-step derivation
                                        1. Applied rewrites74.3%

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

                                        if -4.29999999999999978e76 < a < -9.4000000000000001e-82

                                        1. Initial program 82.8%

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

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

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

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

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

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

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

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

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

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

                                          if -9.4000000000000001e-82 < a < 1.40000000000000005e-86

                                          1. Initial program 69.7%

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

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

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

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

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

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

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

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.3 \cdot 10^{+76}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \mathbf{elif}\;a \leq -9.4 \cdot 10^{-82}:\\ \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\ \mathbf{elif}\;a \leq 1.4 \cdot 10^{-86}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \]
                                        9. Add Preprocessing

                                        Alternative 10: 55.7% accurate, 0.7× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \mathbf{if}\;a \leq -4.3 \cdot 10^{+76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -2.25 \cdot 10^{-108}:\\ \;\;\;\;y \cdot \frac{t - x}{a - z}\\ \mathbf{elif}\;a \leq 1.1 \cdot 10^{-87}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot t}{-z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (let* ((t_1 (fma (- y z) (/ t a) x)))
                                           (if (<= a -4.3e+76)
                                             t_1
                                             (if (<= a -2.25e-108)
                                               (* y (/ (- t x) (- a z)))
                                               (if (<= a 1.1e-87) (/ (* (- y z) t) (- z)) t_1)))))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double t_1 = fma((y - z), (t / a), x);
                                        	double tmp;
                                        	if (a <= -4.3e+76) {
                                        		tmp = t_1;
                                        	} else if (a <= -2.25e-108) {
                                        		tmp = y * ((t - x) / (a - z));
                                        	} else if (a <= 1.1e-87) {
                                        		tmp = ((y - z) * t) / -z;
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a)
                                        	t_1 = fma(Float64(y - z), Float64(t / a), x)
                                        	tmp = 0.0
                                        	if (a <= -4.3e+76)
                                        		tmp = t_1;
                                        	elseif (a <= -2.25e-108)
                                        		tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z)));
                                        	elseif (a <= 1.1e-87)
                                        		tmp = Float64(Float64(Float64(y - z) * t) / Float64(-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[(t / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -4.3e+76], t$95$1, If[LessEqual[a, -2.25e-108], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e-87], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / (-z)), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
                                        \mathbf{if}\;a \leq -4.3 \cdot 10^{+76}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;a \leq -2.25 \cdot 10^{-108}:\\
                                        \;\;\;\;y \cdot \frac{t - x}{a - z}\\
                                        
                                        \mathbf{elif}\;a \leq 1.1 \cdot 10^{-87}:\\
                                        \;\;\;\;\frac{\left(y - z\right) \cdot t}{-z}\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if a < -4.29999999999999978e76 or 1.09999999999999994e-87 < a

                                          1. Initial program 89.4%

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(y - z, \frac{t}{\color{blue}{a}}, x\right) \]
                                          9. Step-by-step derivation
                                            1. Applied rewrites74.3%

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

                                            if -4.29999999999999978e76 < a < -2.24999999999999985e-108

                                            1. Initial program 77.6%

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

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

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

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

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

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

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

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

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

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

                                              if -2.24999999999999985e-108 < a < 1.09999999999999994e-87

                                              1. Initial program 70.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-/.f6472.4

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \frac{t \cdot \left(y - z\right)}{-z} \]
                                              10. Recombined 3 regimes into one program.
                                              11. Final simplification67.8%

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

                                              Alternative 11: 55.8% accurate, 0.7× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \mathbf{if}\;a \leq -4.3 \cdot 10^{+76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -2.25 \cdot 10^{-108}:\\ \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\ \mathbf{elif}\;a \leq 1.1 \cdot 10^{-87}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot t}{-z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a)
                                               :precision binary64
                                               (let* ((t_1 (fma (- y z) (/ t a) x)))
                                                 (if (<= a -4.3e+76)
                                                   t_1
                                                   (if (<= a -2.25e-108)
                                                     (* (- t x) (/ y (- a z)))
                                                     (if (<= a 1.1e-87) (/ (* (- y z) t) (- z)) t_1)))))
                                              double code(double x, double y, double z, double t, double a) {
                                              	double t_1 = fma((y - z), (t / a), x);
                                              	double tmp;
                                              	if (a <= -4.3e+76) {
                                              		tmp = t_1;
                                              	} else if (a <= -2.25e-108) {
                                              		tmp = (t - x) * (y / (a - z));
                                              	} else if (a <= 1.1e-87) {
                                              		tmp = ((y - z) * t) / -z;
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              function code(x, y, z, t, a)
                                              	t_1 = fma(Float64(y - z), Float64(t / a), x)
                                              	tmp = 0.0
                                              	if (a <= -4.3e+76)
                                              		tmp = t_1;
                                              	elseif (a <= -2.25e-108)
                                              		tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z)));
                                              	elseif (a <= 1.1e-87)
                                              		tmp = Float64(Float64(Float64(y - z) * t) / Float64(-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[(t / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -4.3e+76], t$95$1, If[LessEqual[a, -2.25e-108], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e-87], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / (-z)), $MachinePrecision], t$95$1]]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
                                              \mathbf{if}\;a \leq -4.3 \cdot 10^{+76}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              \mathbf{elif}\;a \leq -2.25 \cdot 10^{-108}:\\
                                              \;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
                                              
                                              \mathbf{elif}\;a \leq 1.1 \cdot 10^{-87}:\\
                                              \;\;\;\;\frac{\left(y - z\right) \cdot t}{-z}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 3 regimes
                                              2. if a < -4.29999999999999978e76 or 1.09999999999999994e-87 < a

                                                1. Initial program 89.4%

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \mathsf{fma}\left(y - z, \frac{t}{\color{blue}{a}}, x\right) \]
                                                9. Step-by-step derivation
                                                  1. Applied rewrites74.3%

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

                                                  if -4.29999999999999978e76 < a < -2.24999999999999985e-108

                                                  1. Initial program 77.6%

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

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

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

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

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

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

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

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

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

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

                                                    if -2.24999999999999985e-108 < a < 1.09999999999999994e-87

                                                    1. Initial program 70.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-/.f6472.4

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \frac{t \cdot \left(y - z\right)}{-z} \]
                                                    10. Recombined 3 regimes into one program.
                                                    11. Final simplification67.8%

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

                                                    Alternative 12: 54.5% accurate, 0.7× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \mathbf{if}\;a \leq -3.1 \cdot 10^{-43}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -1.2 \cdot 10^{-104}:\\ \;\;\;\;\frac{y \cdot \left(-x\right)}{a - z}\\ \mathbf{elif}\;a \leq 1.1 \cdot 10^{-87}:\\ \;\;\;\;\frac{\left(y - z\right) \cdot t}{-z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a)
                                                     :precision binary64
                                                     (let* ((t_1 (fma (- y z) (/ t a) x)))
                                                       (if (<= a -3.1e-43)
                                                         t_1
                                                         (if (<= a -1.2e-104)
                                                           (/ (* y (- x)) (- a z))
                                                           (if (<= a 1.1e-87) (/ (* (- y z) t) (- z)) t_1)))))
                                                    double code(double x, double y, double z, double t, double a) {
                                                    	double t_1 = fma((y - z), (t / a), x);
                                                    	double tmp;
                                                    	if (a <= -3.1e-43) {
                                                    		tmp = t_1;
                                                    	} else if (a <= -1.2e-104) {
                                                    		tmp = (y * -x) / (a - z);
                                                    	} else if (a <= 1.1e-87) {
                                                    		tmp = ((y - z) * t) / -z;
                                                    	} else {
                                                    		tmp = t_1;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    function code(x, y, z, t, a)
                                                    	t_1 = fma(Float64(y - z), Float64(t / a), x)
                                                    	tmp = 0.0
                                                    	if (a <= -3.1e-43)
                                                    		tmp = t_1;
                                                    	elseif (a <= -1.2e-104)
                                                    		tmp = Float64(Float64(y * Float64(-x)) / Float64(a - z));
                                                    	elseif (a <= 1.1e-87)
                                                    		tmp = Float64(Float64(Float64(y - z) * t) / Float64(-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[(t / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -3.1e-43], t$95$1, If[LessEqual[a, -1.2e-104], N[(N[(y * (-x)), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e-87], N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / (-z)), $MachinePrecision], t$95$1]]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
                                                    \mathbf{if}\;a \leq -3.1 \cdot 10^{-43}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{elif}\;a \leq -1.2 \cdot 10^{-104}:\\
                                                    \;\;\;\;\frac{y \cdot \left(-x\right)}{a - z}\\
                                                    
                                                    \mathbf{elif}\;a \leq 1.1 \cdot 10^{-87}:\\
                                                    \;\;\;\;\frac{\left(y - z\right) \cdot t}{-z}\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if a < -3.0999999999999999e-43 or 1.09999999999999994e-87 < a

                                                      1. Initial program 88.6%

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \mathsf{fma}\left(y - z, \frac{t}{\color{blue}{a}}, x\right) \]
                                                      9. Step-by-step derivation
                                                        1. Applied rewrites70.9%

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

                                                        if -3.0999999999999999e-43 < a < -1.2e-104

                                                        1. Initial program 74.1%

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

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

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

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

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

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

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

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

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

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

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

                                                          if -1.2e-104 < a < 1.09999999999999994e-87

                                                          1. Initial program 70.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-/.f6472.4

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

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \frac{t \cdot \left(y - z\right)}{-z} \]
                                                          10. Recombined 3 regimes into one program.
                                                          11. Final simplification66.8%

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

                                                          Alternative 13: 55.3% accurate, 0.7× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \mathbf{if}\;a \leq -3.1 \cdot 10^{-43}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -2.35 \cdot 10^{-104}:\\ \;\;\;\;\frac{y \cdot \left(-x\right)}{a - z}\\ \mathbf{elif}\;a \leq 1.25 \cdot 10^{-87}:\\ \;\;\;\;\left(y - z\right) \cdot \frac{t}{-z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a)
                                                           :precision binary64
                                                           (let* ((t_1 (fma (- y z) (/ t a) x)))
                                                             (if (<= a -3.1e-43)
                                                               t_1
                                                               (if (<= a -2.35e-104)
                                                                 (/ (* y (- x)) (- a z))
                                                                 (if (<= a 1.25e-87) (* (- y z) (/ t (- z))) t_1)))))
                                                          double code(double x, double y, double z, double t, double a) {
                                                          	double t_1 = fma((y - z), (t / a), x);
                                                          	double tmp;
                                                          	if (a <= -3.1e-43) {
                                                          		tmp = t_1;
                                                          	} else if (a <= -2.35e-104) {
                                                          		tmp = (y * -x) / (a - z);
                                                          	} else if (a <= 1.25e-87) {
                                                          		tmp = (y - z) * (t / -z);
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          function code(x, y, z, t, a)
                                                          	t_1 = fma(Float64(y - z), Float64(t / a), x)
                                                          	tmp = 0.0
                                                          	if (a <= -3.1e-43)
                                                          		tmp = t_1;
                                                          	elseif (a <= -2.35e-104)
                                                          		tmp = Float64(Float64(y * Float64(-x)) / Float64(a - z));
                                                          	elseif (a <= 1.25e-87)
                                                          		tmp = Float64(Float64(y - z) * Float64(t / Float64(-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[(t / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -3.1e-43], t$95$1, If[LessEqual[a, -2.35e-104], N[(N[(y * (-x)), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-87], N[(N[(y - z), $MachinePrecision] * N[(t / (-z)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
                                                          \mathbf{if}\;a \leq -3.1 \cdot 10^{-43}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;a \leq -2.35 \cdot 10^{-104}:\\
                                                          \;\;\;\;\frac{y \cdot \left(-x\right)}{a - z}\\
                                                          
                                                          \mathbf{elif}\;a \leq 1.25 \cdot 10^{-87}:\\
                                                          \;\;\;\;\left(y - z\right) \cdot \frac{t}{-z}\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 3 regimes
                                                          2. if a < -3.0999999999999999e-43 or 1.25000000000000011e-87 < a

                                                            1. Initial program 88.6%

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \mathsf{fma}\left(y - z, \frac{t}{\color{blue}{a}}, x\right) \]
                                                            9. Step-by-step derivation
                                                              1. Applied rewrites70.9%

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

                                                              if -3.0999999999999999e-43 < a < -2.35e-104

                                                              1. Initial program 74.1%

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

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

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

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

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

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

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

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

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

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

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

                                                                if -2.35e-104 < a < 1.25000000000000011e-87

                                                                1. Initial program 70.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-/.f6472.4

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto \frac{t \cdot \left(y - z\right)}{-z} \]
                                                                  2. Step-by-step derivation
                                                                    1. Applied rewrites56.0%

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

                                                                  Alternative 14: 52.0% accurate, 0.7× speedup?

                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \mathbf{if}\;a \leq -2.1 \cdot 10^{-19}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 3.1 \cdot 10^{-236}:\\ \;\;\;\;\frac{y \cdot \left(t - x\right)}{-z}\\ \mathbf{elif}\;a \leq 1.25 \cdot 10^{-98}:\\ \;\;\;\;\frac{y \cdot \left(-x\right)}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                  (FPCore (x y z t a)
                                                                   :precision binary64
                                                                   (let* ((t_1 (fma (- y z) (/ t a) x)))
                                                                     (if (<= a -2.1e-19)
                                                                       t_1
                                                                       (if (<= a 3.1e-236)
                                                                         (/ (* y (- t x)) (- z))
                                                                         (if (<= a 1.25e-98) (/ (* y (- x)) (- a z)) t_1)))))
                                                                  double code(double x, double y, double z, double t, double a) {
                                                                  	double t_1 = fma((y - z), (t / a), x);
                                                                  	double tmp;
                                                                  	if (a <= -2.1e-19) {
                                                                  		tmp = t_1;
                                                                  	} else if (a <= 3.1e-236) {
                                                                  		tmp = (y * (t - x)) / -z;
                                                                  	} else if (a <= 1.25e-98) {
                                                                  		tmp = (y * -x) / (a - z);
                                                                  	} else {
                                                                  		tmp = t_1;
                                                                  	}
                                                                  	return tmp;
                                                                  }
                                                                  
                                                                  function code(x, y, z, t, a)
                                                                  	t_1 = fma(Float64(y - z), Float64(t / a), x)
                                                                  	tmp = 0.0
                                                                  	if (a <= -2.1e-19)
                                                                  		tmp = t_1;
                                                                  	elseif (a <= 3.1e-236)
                                                                  		tmp = Float64(Float64(y * Float64(t - x)) / Float64(-z));
                                                                  	elseif (a <= 1.25e-98)
                                                                  		tmp = Float64(Float64(y * Float64(-x)) / Float64(a - 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[(t / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -2.1e-19], t$95$1, If[LessEqual[a, 3.1e-236], N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / (-z)), $MachinePrecision], If[LessEqual[a, 1.25e-98], N[(N[(y * (-x)), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  \begin{array}{l}
                                                                  t_1 := \mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
                                                                  \mathbf{if}\;a \leq -2.1 \cdot 10^{-19}:\\
                                                                  \;\;\;\;t\_1\\
                                                                  
                                                                  \mathbf{elif}\;a \leq 3.1 \cdot 10^{-236}:\\
                                                                  \;\;\;\;\frac{y \cdot \left(t - x\right)}{-z}\\
                                                                  
                                                                  \mathbf{elif}\;a \leq 1.25 \cdot 10^{-98}:\\
                                                                  \;\;\;\;\frac{y \cdot \left(-x\right)}{a - z}\\
                                                                  
                                                                  \mathbf{else}:\\
                                                                  \;\;\;\;t\_1\\
                                                                  
                                                                  
                                                                  \end{array}
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Split input into 3 regimes
                                                                  2. if a < -2.0999999999999999e-19 or 1.25000000000000005e-98 < a

                                                                    1. Initial program 88.6%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if -2.0999999999999999e-19 < a < 3.0999999999999998e-236

                                                                      1. Initial program 72.1%

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

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

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

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

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

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

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

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

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

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

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

                                                                        if 3.0999999999999998e-236 < a < 1.25000000000000005e-98

                                                                        1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

                                                                            \[\leadsto \frac{y \cdot \left(-x\right)}{a - z} \]
                                                                        8. Recombined 3 regimes into one program.
                                                                        9. Add Preprocessing

                                                                        Alternative 15: 54.8% accurate, 0.7× speedup?

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

                                                                          1. Initial program 69.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-/.f6470.9

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              \[\leadsto \frac{t \cdot \left(-1 \cdot z\right)}{\mathsf{neg}\left(z\right)} \]
                                                                            3. Step-by-step derivation
                                                                              1. Applied rewrites48.1%

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

                                                                              if -5.2e29 < z < 7e8

                                                                              1. Initial program 92.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-/.f6493.8

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

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

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

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

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

                                                                              if 7e8 < z < 1e167

                                                                              1. Initial program 70.1%

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

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \mathsf{fma}\left(y - z, \frac{t}{\color{blue}{a}}, x\right) \]
                                                                              9. Step-by-step derivation
                                                                                1. Applied rewrites33.9%

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

                                                                                if 1e167 < z

                                                                                1. Initial program 53.5%

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

                                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. lower--.f6438.5

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

                                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                              10. Recombined 4 regimes into one program.
                                                                              11. Add Preprocessing

                                                                              Alternative 16: 40.5% accurate, 0.8× speedup?

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

                                                                                1. Initial program 67.5%

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

                                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. lower--.f6437.0

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

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

                                                                                if -3.0000000000000001e28 < z < 1050

                                                                                1. Initial program 93.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                    if 1050 < z < 1.35e98

                                                                                    1. Initial program 59.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        \[\leadsto 0 + \color{blue}{\frac{x \cdot y}{z}} \]
                                                                                    8. Recombined 3 regimes into one program.
                                                                                    9. Final simplification47.5%

                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+28}:\\ \;\;\;\;x + \left(t - x\right)\\ \mathbf{elif}\;z \leq 1050:\\ \;\;\;\;x - \frac{x \cdot y}{a}\\ \mathbf{elif}\;z \leq 1.35 \cdot 10^{+98}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{else}:\\ \;\;\;\;x + \left(t - x\right)\\ \end{array} \]
                                                                                    10. Add Preprocessing

                                                                                    Alternative 17: 30.2% accurate, 0.8× speedup?

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

                                                                                      1. Initial program 70.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--.f6435.6

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

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

                                                                                      if -1.00000000000000007e-17 < z < 34000

                                                                                      1. Initial program 92.8%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                                                        2. Step-by-step derivation
                                                                                          1. Applied rewrites31.4%

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

                                                                                          if 34000 < z < 1.35e98

                                                                                          1. Initial program 58.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                              \[\leadsto 0 + \color{blue}{\frac{x \cdot y}{z}} \]
                                                                                          8. Recombined 3 regimes into one program.
                                                                                          9. Final simplification33.3%

                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1 \cdot 10^{-17}:\\ \;\;\;\;x + \left(t - x\right)\\ \mathbf{elif}\;z \leq 34000:\\ \;\;\;\;t \cdot \frac{y}{a}\\ \mathbf{elif}\;z \leq 1.35 \cdot 10^{+98}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{else}:\\ \;\;\;\;x + \left(t - x\right)\\ \end{array} \]
                                                                                          10. Add Preprocessing

                                                                                          Alternative 18: 54.3% accurate, 0.9× speedup?

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

                                                                                            1. Initial program 69.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-/.f6470.9

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                \[\leadsto \frac{t \cdot \left(-1 \cdot z\right)}{\mathsf{neg}\left(z\right)} \]
                                                                                              3. Step-by-step derivation
                                                                                                1. Applied rewrites48.1%

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

                                                                                                if -5.2e29 < z < 3.89999999999999974e179

                                                                                                1. Initial program 87.7%

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

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

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

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

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

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

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

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

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

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

                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, t - x, x\right) \]
                                                                                                4. Applied rewrites89.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-/.f6466.3

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

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

                                                                                                if 3.89999999999999974e179 < z

                                                                                                1. Initial program 53.5%

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

                                                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                4. Step-by-step derivation
                                                                                                  1. lower--.f6437.0

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

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

                                                                                              Alternative 19: 53.5% accurate, 0.9× speedup?

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

                                                                                                1. Initial program 69.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-/.f6470.9

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                    \[\leadsto \frac{t \cdot \left(-1 \cdot z\right)}{\mathsf{neg}\left(z\right)} \]
                                                                                                  3. Step-by-step derivation
                                                                                                    1. Applied rewrites48.1%

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

                                                                                                    if -5.2e29 < z < 3.89999999999999974e179

                                                                                                    1. Initial program 87.7%

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

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

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

                                                                                                        \[\leadsto \color{blue}{y \cdot \frac{t - x}{a}} + x \]
                                                                                                      3. 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--.f6464.8

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

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

                                                                                                    if 3.89999999999999974e179 < z

                                                                                                    1. Initial program 53.5%

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

                                                                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                    4. Step-by-step derivation
                                                                                                      1. lower--.f6437.0

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

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

                                                                                                  Alternative 20: 54.6% accurate, 0.9× speedup?

                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(t - x\right)\\ \mathbf{if}\;z \leq -3.8 \cdot 10^{+128}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3.9 \cdot 10^{+179}:\\ \;\;\;\;\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 (+ x (- t x))))
                                                                                                     (if (<= z -3.8e+128) t_1 (if (<= z 3.9e+179) (fma y (/ (- t x) a) x) t_1))))
                                                                                                  double code(double x, double y, double z, double t, double a) {
                                                                                                  	double t_1 = x + (t - x);
                                                                                                  	double tmp;
                                                                                                  	if (z <= -3.8e+128) {
                                                                                                  		tmp = t_1;
                                                                                                  	} else if (z <= 3.9e+179) {
                                                                                                  		tmp = fma(y, ((t - x) / a), x);
                                                                                                  	} else {
                                                                                                  		tmp = t_1;
                                                                                                  	}
                                                                                                  	return tmp;
                                                                                                  }
                                                                                                  
                                                                                                  function code(x, y, z, t, a)
                                                                                                  	t_1 = Float64(x + Float64(t - x))
                                                                                                  	tmp = 0.0
                                                                                                  	if (z <= -3.8e+128)
                                                                                                  		tmp = t_1;
                                                                                                  	elseif (z <= 3.9e+179)
                                                                                                  		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[(x + N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+128], t$95$1, If[LessEqual[z, 3.9e+179], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                                                                                                  
                                                                                                  \begin{array}{l}
                                                                                                  
                                                                                                  \\
                                                                                                  \begin{array}{l}
                                                                                                  t_1 := x + \left(t - x\right)\\
                                                                                                  \mathbf{if}\;z \leq -3.8 \cdot 10^{+128}:\\
                                                                                                  \;\;\;\;t\_1\\
                                                                                                  
                                                                                                  \mathbf{elif}\;z \leq 3.9 \cdot 10^{+179}:\\
                                                                                                  \;\;\;\;\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 < -3.7999999999999999e128 or 3.89999999999999974e179 < z

                                                                                                    1. Initial program 55.9%

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

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

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

                                                                                                    if -3.7999999999999999e128 < z < 3.89999999999999974e179

                                                                                                    1. Initial program 86.8%

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

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

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

                                                                                                  Alternative 21: 43.3% accurate, 0.9× speedup?

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

                                                                                                    1. Initial program 65.9%

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

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

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

                                                                                                    if -3.0000000000000001e28 < z < 6.79999999999999977e40

                                                                                                    1. Initial program 91.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                    Alternative 22: 30.2% accurate, 1.0× speedup?

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

                                                                                                      1. Initial program 68.1%

                                                                                                        \[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--.f6433.1

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

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

                                                                                                      if -1.00000000000000007e-17 < z < 3.5000000000000002e27

                                                                                                      1. Initial program 91.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                            \[\leadsto \frac{y}{a} \cdot t \]
                                                                                                        3. Recombined 2 regimes into one program.
                                                                                                        4. Final simplification31.6%

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

                                                                                                        Alternative 23: 29.5% accurate, 1.0× speedup?

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

                                                                                                          1. Initial program 70.1%

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

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

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

                                                                                                          if -9.99999999999999929e-40 < z < 2.7999999999999999e27

                                                                                                          1. Initial program 91.8%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                              \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                                                                            2. Step-by-step derivation
                                                                                                              1. Applied rewrites30.4%

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

                                                                                                            Alternative 24: 19.0% 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 81.0%

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

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

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

                                                                                                            Alternative 25: 2.8% accurate, 29.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                \[\leadsto 0 \]
                                                                                                              2. Add Preprocessing

                                                                                                              Reproduce

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