Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3

Percentage Accurate: 68.1% → 89.7%
Time: 10.3s
Alternatives: 21
Speedup: 0.8×

Specification

?
\[\begin{array}{l} \\ x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{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(Float64(y - z) * 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

\[\begin{array}{l} \\ x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{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(Float64(y - z) * 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 89.7% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 73.9%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 4.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 36.5% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.8 \cdot 10^{+56}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq -1.75 \cdot 10^{-171}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;a \leq -7 \cdot 10^{-228}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.75 \cdot 10^{+111}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -3.8e+56)
   (* 1.0 x)
   (if (<= a -1.75e-171)
     (/ (* (- t x) y) a)
     (if (<= a -7e-228)
       (* (/ t x) x)
       (if (<= a 1.75e+111) (* (/ y (- a z)) t) (* 1.0 x))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -3.8e+56) {
		tmp = 1.0 * x;
	} else if (a <= -1.75e-171) {
		tmp = ((t - x) * y) / a;
	} else if (a <= -7e-228) {
		tmp = (t / x) * x;
	} else if (a <= 1.75e+111) {
		tmp = (y / (a - z)) * t;
	} else {
		tmp = 1.0 * x;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: tmp
    if (a <= (-3.8d+56)) then
        tmp = 1.0d0 * x
    else if (a <= (-1.75d-171)) then
        tmp = ((t - x) * y) / a
    else if (a <= (-7d-228)) then
        tmp = (t / x) * x
    else if (a <= 1.75d+111) then
        tmp = (y / (a - z)) * t
    else
        tmp = 1.0d0 * x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -3.8e+56) {
		tmp = 1.0 * x;
	} else if (a <= -1.75e-171) {
		tmp = ((t - x) * y) / a;
	} else if (a <= -7e-228) {
		tmp = (t / x) * x;
	} else if (a <= 1.75e+111) {
		tmp = (y / (a - z)) * t;
	} else {
		tmp = 1.0 * x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -3.8e+56:
		tmp = 1.0 * x
	elif a <= -1.75e-171:
		tmp = ((t - x) * y) / a
	elif a <= -7e-228:
		tmp = (t / x) * x
	elif a <= 1.75e+111:
		tmp = (y / (a - z)) * t
	else:
		tmp = 1.0 * x
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -3.8e+56)
		tmp = Float64(1.0 * x);
	elseif (a <= -1.75e-171)
		tmp = Float64(Float64(Float64(t - x) * y) / a);
	elseif (a <= -7e-228)
		tmp = Float64(Float64(t / x) * x);
	elseif (a <= 1.75e+111)
		tmp = Float64(Float64(y / Float64(a - z)) * t);
	else
		tmp = Float64(1.0 * x);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (a <= -3.8e+56)
		tmp = 1.0 * x;
	elseif (a <= -1.75e-171)
		tmp = ((t - x) * y) / a;
	elseif (a <= -7e-228)
		tmp = (t / x) * x;
	elseif (a <= 1.75e+111)
		tmp = (y / (a - z)) * t;
	else
		tmp = 1.0 * x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.8e+56], N[(1.0 * x), $MachinePrecision], If[LessEqual[a, -1.75e-171], N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[a, -7e-228], N[(N[(t / x), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.75e+111], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.8 \cdot 10^{+56}:\\
\;\;\;\;1 \cdot x\\

\mathbf{elif}\;a \leq -1.75 \cdot 10^{-171}:\\
\;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\

\mathbf{elif}\;a \leq -7 \cdot 10^{-228}:\\
\;\;\;\;\frac{t}{x} \cdot x\\

\mathbf{elif}\;a \leq 1.75 \cdot 10^{+111}:\\
\;\;\;\;\frac{y}{a - z} \cdot t\\

\mathbf{else}:\\
\;\;\;\;1 \cdot x\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -3.79999999999999996e56 or 1.7500000000000001e111 < a

    1. Initial program 65.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 1 \cdot x \]

      if -3.79999999999999996e56 < a < -1.74999999999999997e-171

      1. Initial program 75.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -1.74999999999999997e-171 < a < -6.9999999999999995e-228

        1. Initial program 59.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{t}{x} \cdot x \]

          if -6.9999999999999995e-228 < a < 1.7500000000000001e111

          1. Initial program 70.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.8 \cdot 10^{+56}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq -1.75 \cdot 10^{-171}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;a \leq -7 \cdot 10^{-228}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.75 \cdot 10^{+111}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
          12. Add Preprocessing

          Alternative 3: 34.5% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq -1.48 \cdot 10^{-294}:\\ \;\;\;\;\frac{t}{a - z} \cdot y\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-115}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.4 \cdot 10^{+124}:\\ \;\;\;\;\frac{y - z}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (if (<= a -1.82e+155)
             (* 1.0 x)
             (if (<= a -1.48e-294)
               (* (/ t (- a z)) y)
               (if (<= a 6.5e-115)
                 (* (/ t x) x)
                 (if (<= a 1.4e+124) (* (/ (- y z) a) t) (* 1.0 x))))))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if (a <= -1.82e+155) {
          		tmp = 1.0 * x;
          	} else if (a <= -1.48e-294) {
          		tmp = (t / (a - z)) * y;
          	} else if (a <= 6.5e-115) {
          		tmp = (t / x) * x;
          	} else if (a <= 1.4e+124) {
          		tmp = ((y - z) / a) * t;
          	} else {
          		tmp = 1.0 * x;
          	}
          	return tmp;
          }
          
          real(8) function code(x, y, z, t, a)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8), intent (in) :: z
              real(8), intent (in) :: t
              real(8), intent (in) :: a
              real(8) :: tmp
              if (a <= (-1.82d+155)) then
                  tmp = 1.0d0 * x
              else if (a <= (-1.48d-294)) then
                  tmp = (t / (a - z)) * y
              else if (a <= 6.5d-115) then
                  tmp = (t / x) * x
              else if (a <= 1.4d+124) then
                  tmp = ((y - z) / a) * t
              else
                  tmp = 1.0d0 * x
              end if
              code = tmp
          end function
          
          public static double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if (a <= -1.82e+155) {
          		tmp = 1.0 * x;
          	} else if (a <= -1.48e-294) {
          		tmp = (t / (a - z)) * y;
          	} else if (a <= 6.5e-115) {
          		tmp = (t / x) * x;
          	} else if (a <= 1.4e+124) {
          		tmp = ((y - z) / a) * t;
          	} else {
          		tmp = 1.0 * x;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a):
          	tmp = 0
          	if a <= -1.82e+155:
          		tmp = 1.0 * x
          	elif a <= -1.48e-294:
          		tmp = (t / (a - z)) * y
          	elif a <= 6.5e-115:
          		tmp = (t / x) * x
          	elif a <= 1.4e+124:
          		tmp = ((y - z) / a) * t
          	else:
          		tmp = 1.0 * x
          	return tmp
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if (a <= -1.82e+155)
          		tmp = Float64(1.0 * x);
          	elseif (a <= -1.48e-294)
          		tmp = Float64(Float64(t / Float64(a - z)) * y);
          	elseif (a <= 6.5e-115)
          		tmp = Float64(Float64(t / x) * x);
          	elseif (a <= 1.4e+124)
          		tmp = Float64(Float64(Float64(y - z) / a) * t);
          	else
          		tmp = Float64(1.0 * x);
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a)
          	tmp = 0.0;
          	if (a <= -1.82e+155)
          		tmp = 1.0 * x;
          	elseif (a <= -1.48e-294)
          		tmp = (t / (a - z)) * y;
          	elseif (a <= 6.5e-115)
          		tmp = (t / x) * x;
          	elseif (a <= 1.4e+124)
          		tmp = ((y - z) / a) * t;
          	else
          		tmp = 1.0 * x;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.82e+155], N[(1.0 * x), $MachinePrecision], If[LessEqual[a, -1.48e-294], N[(N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 6.5e-115], N[(N[(t / x), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.4e+124], N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * t), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\
          \;\;\;\;1 \cdot x\\
          
          \mathbf{elif}\;a \leq -1.48 \cdot 10^{-294}:\\
          \;\;\;\;\frac{t}{a - z} \cdot y\\
          
          \mathbf{elif}\;a \leq 6.5 \cdot 10^{-115}:\\
          \;\;\;\;\frac{t}{x} \cdot x\\
          
          \mathbf{elif}\;a \leq 1.4 \cdot 10^{+124}:\\
          \;\;\;\;\frac{y - z}{a} \cdot t\\
          
          \mathbf{else}:\\
          \;\;\;\;1 \cdot x\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if a < -1.81999999999999989e155 or 1.4e124 < a

            1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto 1 \cdot x \]

              if -1.81999999999999989e155 < a < -1.48e-294

              1. Initial program 71.7%

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

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

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

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

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

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

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

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

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

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

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

                if -1.48e-294 < a < 6.50000000000000033e-115

                1. Initial program 69.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{t}{x} \cdot x \]
                7. Step-by-step derivation
                  1. Applied rewrites39.2%

                    \[\leadsto \frac{t}{x} \cdot x \]

                  if 6.50000000000000033e-115 < a < 1.4e124

                  1. Initial program 69.9%

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq -1.48 \cdot 10^{-294}:\\ \;\;\;\;\frac{t}{a - z} \cdot y\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-115}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.4 \cdot 10^{+124}:\\ \;\;\;\;\frac{y - z}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                  10. Add Preprocessing

                  Alternative 4: 35.2% accurate, 0.7× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y - z}{a} \cdot t\\ \mathbf{if}\;a \leq -1.85 \cdot 10^{+157}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq -2.5 \cdot 10^{-133}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-115}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.4 \cdot 10^{+124}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (let* ((t_1 (* (/ (- y z) a) t)))
                     (if (<= a -1.85e+157)
                       (* 1.0 x)
                       (if (<= a -2.5e-133)
                         t_1
                         (if (<= a 6.5e-115)
                           (* (/ t x) x)
                           (if (<= a 1.4e+124) t_1 (* 1.0 x)))))))
                  double code(double x, double y, double z, double t, double a) {
                  	double t_1 = ((y - z) / a) * t;
                  	double tmp;
                  	if (a <= -1.85e+157) {
                  		tmp = 1.0 * x;
                  	} else if (a <= -2.5e-133) {
                  		tmp = t_1;
                  	} else if (a <= 6.5e-115) {
                  		tmp = (t / x) * x;
                  	} else if (a <= 1.4e+124) {
                  		tmp = t_1;
                  	} else {
                  		tmp = 1.0 * x;
                  	}
                  	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 = ((y - z) / a) * t
                      if (a <= (-1.85d+157)) then
                          tmp = 1.0d0 * x
                      else if (a <= (-2.5d-133)) then
                          tmp = t_1
                      else if (a <= 6.5d-115) then
                          tmp = (t / x) * x
                      else if (a <= 1.4d+124) then
                          tmp = t_1
                      else
                          tmp = 1.0d0 * x
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a) {
                  	double t_1 = ((y - z) / a) * t;
                  	double tmp;
                  	if (a <= -1.85e+157) {
                  		tmp = 1.0 * x;
                  	} else if (a <= -2.5e-133) {
                  		tmp = t_1;
                  	} else if (a <= 6.5e-115) {
                  		tmp = (t / x) * x;
                  	} else if (a <= 1.4e+124) {
                  		tmp = t_1;
                  	} else {
                  		tmp = 1.0 * x;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a):
                  	t_1 = ((y - z) / a) * t
                  	tmp = 0
                  	if a <= -1.85e+157:
                  		tmp = 1.0 * x
                  	elif a <= -2.5e-133:
                  		tmp = t_1
                  	elif a <= 6.5e-115:
                  		tmp = (t / x) * x
                  	elif a <= 1.4e+124:
                  		tmp = t_1
                  	else:
                  		tmp = 1.0 * x
                  	return tmp
                  
                  function code(x, y, z, t, a)
                  	t_1 = Float64(Float64(Float64(y - z) / a) * t)
                  	tmp = 0.0
                  	if (a <= -1.85e+157)
                  		tmp = Float64(1.0 * x);
                  	elseif (a <= -2.5e-133)
                  		tmp = t_1;
                  	elseif (a <= 6.5e-115)
                  		tmp = Float64(Float64(t / x) * x);
                  	elseif (a <= 1.4e+124)
                  		tmp = t_1;
                  	else
                  		tmp = Float64(1.0 * x);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a)
                  	t_1 = ((y - z) / a) * t;
                  	tmp = 0.0;
                  	if (a <= -1.85e+157)
                  		tmp = 1.0 * x;
                  	elseif (a <= -2.5e-133)
                  		tmp = t_1;
                  	elseif (a <= 6.5e-115)
                  		tmp = (t / x) * x;
                  	elseif (a <= 1.4e+124)
                  		tmp = t_1;
                  	else
                  		tmp = 1.0 * x;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[a, -1.85e+157], N[(1.0 * x), $MachinePrecision], If[LessEqual[a, -2.5e-133], t$95$1, If[LessEqual[a, 6.5e-115], N[(N[(t / x), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.4e+124], t$95$1, N[(1.0 * x), $MachinePrecision]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \frac{y - z}{a} \cdot t\\
                  \mathbf{if}\;a \leq -1.85 \cdot 10^{+157}:\\
                  \;\;\;\;1 \cdot x\\
                  
                  \mathbf{elif}\;a \leq -2.5 \cdot 10^{-133}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;a \leq 6.5 \cdot 10^{-115}:\\
                  \;\;\;\;\frac{t}{x} \cdot x\\
                  
                  \mathbf{elif}\;a \leq 1.4 \cdot 10^{+124}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;1 \cdot x\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 3 regimes
                  2. if a < -1.8499999999999999e157 or 1.4e124 < a

                    1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto 1 \cdot x \]

                      if -1.8499999999999999e157 < a < -2.5e-133 or 6.50000000000000033e-115 < a < 1.4e124

                      1. Initial program 71.6%

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

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

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

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

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

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

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

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

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

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

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

                        if -2.5e-133 < a < 6.50000000000000033e-115

                        1. Initial program 69.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{t}{x} \cdot x \]
                        8. Recombined 3 regimes into one program.
                        9. Final simplification46.1%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.85 \cdot 10^{+157}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq -2.5 \cdot 10^{-133}:\\ \;\;\;\;\frac{y - z}{a} \cdot t\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-115}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.4 \cdot 10^{+124}:\\ \;\;\;\;\frac{y - z}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 5: 65.7% accurate, 0.7× speedup?

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

                          1. Initial program 65.2%

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

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

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

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

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

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

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

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

                          if -8.00000000000000005e41 < a < -1.79999999999999992e-165

                          1. Initial program 79.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\frac{y \cdot \left(t - x\right)}{a - z}} \]
                            4. 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--.f6471.2

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

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

                          if -1.79999999999999992e-165 < a < 9e13

                          1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, 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. *-commutativeN/A

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

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

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

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

                              \[\leadsto \frac{\color{blue}{y - z}}{a - z} \cdot t \]
                            6. lower--.f6472.1

                              \[\leadsto \frac{y - z}{\color{blue}{a - z}} \cdot t \]
                          7. Applied rewrites72.1%

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

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

                        Alternative 6: 34.2% accurate, 0.7× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y}{a} \cdot t\\ \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq -2.4 \cdot 10^{-114}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.12 \cdot 10^{-111}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.8 \cdot 10^{+67}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (let* ((t_1 (* (/ y a) t)))
                           (if (<= a -1.82e+155)
                             (* 1.0 x)
                             (if (<= a -2.4e-114)
                               t_1
                               (if (<= a 1.12e-111)
                                 (* (/ t x) x)
                                 (if (<= a 1.8e+67) t_1 (* 1.0 x)))))))
                        double code(double x, double y, double z, double t, double a) {
                        	double t_1 = (y / a) * t;
                        	double tmp;
                        	if (a <= -1.82e+155) {
                        		tmp = 1.0 * x;
                        	} else if (a <= -2.4e-114) {
                        		tmp = t_1;
                        	} else if (a <= 1.12e-111) {
                        		tmp = (t / x) * x;
                        	} else if (a <= 1.8e+67) {
                        		tmp = t_1;
                        	} else {
                        		tmp = 1.0 * x;
                        	}
                        	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 = (y / a) * t
                            if (a <= (-1.82d+155)) then
                                tmp = 1.0d0 * x
                            else if (a <= (-2.4d-114)) then
                                tmp = t_1
                            else if (a <= 1.12d-111) then
                                tmp = (t / x) * x
                            else if (a <= 1.8d+67) then
                                tmp = t_1
                            else
                                tmp = 1.0d0 * x
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a) {
                        	double t_1 = (y / a) * t;
                        	double tmp;
                        	if (a <= -1.82e+155) {
                        		tmp = 1.0 * x;
                        	} else if (a <= -2.4e-114) {
                        		tmp = t_1;
                        	} else if (a <= 1.12e-111) {
                        		tmp = (t / x) * x;
                        	} else if (a <= 1.8e+67) {
                        		tmp = t_1;
                        	} else {
                        		tmp = 1.0 * x;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a):
                        	t_1 = (y / a) * t
                        	tmp = 0
                        	if a <= -1.82e+155:
                        		tmp = 1.0 * x
                        	elif a <= -2.4e-114:
                        		tmp = t_1
                        	elif a <= 1.12e-111:
                        		tmp = (t / x) * x
                        	elif a <= 1.8e+67:
                        		tmp = t_1
                        	else:
                        		tmp = 1.0 * x
                        	return tmp
                        
                        function code(x, y, z, t, a)
                        	t_1 = Float64(Float64(y / a) * t)
                        	tmp = 0.0
                        	if (a <= -1.82e+155)
                        		tmp = Float64(1.0 * x);
                        	elseif (a <= -2.4e-114)
                        		tmp = t_1;
                        	elseif (a <= 1.12e-111)
                        		tmp = Float64(Float64(t / x) * x);
                        	elseif (a <= 1.8e+67)
                        		tmp = t_1;
                        	else
                        		tmp = Float64(1.0 * x);
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a)
                        	t_1 = (y / a) * t;
                        	tmp = 0.0;
                        	if (a <= -1.82e+155)
                        		tmp = 1.0 * x;
                        	elseif (a <= -2.4e-114)
                        		tmp = t_1;
                        	elseif (a <= 1.12e-111)
                        		tmp = (t / x) * x;
                        	elseif (a <= 1.8e+67)
                        		tmp = t_1;
                        	else
                        		tmp = 1.0 * x;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[a, -1.82e+155], N[(1.0 * x), $MachinePrecision], If[LessEqual[a, -2.4e-114], t$95$1, If[LessEqual[a, 1.12e-111], N[(N[(t / x), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.8e+67], t$95$1, N[(1.0 * x), $MachinePrecision]]]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        t_1 := \frac{y}{a} \cdot t\\
                        \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\
                        \;\;\;\;1 \cdot x\\
                        
                        \mathbf{elif}\;a \leq -2.4 \cdot 10^{-114}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{elif}\;a \leq 1.12 \cdot 10^{-111}:\\
                        \;\;\;\;\frac{t}{x} \cdot x\\
                        
                        \mathbf{elif}\;a \leq 1.8 \cdot 10^{+67}:\\
                        \;\;\;\;t\_1\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;1 \cdot x\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if a < -1.81999999999999989e155 or 1.7999999999999999e67 < a

                          1. Initial program 65.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto 1 \cdot x \]

                            if -1.81999999999999989e155 < a < -2.4000000000000001e-114 or 1.12000000000000009e-111 < a < 1.7999999999999999e67

                            1. Initial program 73.2%

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

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

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

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

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

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

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

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

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

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

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

                              if -2.4000000000000001e-114 < a < 1.12000000000000009e-111

                              1. Initial program 69.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \frac{t}{x} \cdot x \]
                              7. Step-by-step derivation
                                1. Applied rewrites34.9%

                                  \[\leadsto \frac{t}{x} \cdot x \]
                              8. Recombined 3 regimes into one program.
                              9. Final simplification45.5%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq -2.4 \cdot 10^{-114}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{elif}\;a \leq 1.12 \cdot 10^{-111}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.8 \cdot 10^{+67}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                              10. Add Preprocessing

                              Alternative 7: 61.4% accurate, 0.7× speedup?

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

                                1. Initial program 30.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -4.5999999999999999e226 < z < -4.60000000000000002e76

                                  1. Initial program 49.4%

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

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

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

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

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

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

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

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

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

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

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

                                  if -4.60000000000000002e76 < z < 6.5000000000000001e69

                                  1. Initial program 87.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if 6.5000000000000001e69 < z

                                  1. Initial program 42.7%

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

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

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

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

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

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

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

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

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

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

                                Alternative 8: 62.1% accurate, 0.7× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \mathbf{if}\;z \leq -4.6 \cdot 10^{+226}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -4.6 \cdot 10^{+76}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;\mathsf{fma}\left(t - 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 (fma a (/ (- t x) z) t)))
                                   (if (<= z -4.6e+226)
                                     t_1
                                     (if (<= z -4.6e+76)
                                       (* (/ y (- z a)) (- x t))
                                       (if (<= z 3.8e+109) (fma (- t x) (/ y a) x) t_1)))))
                                double code(double x, double y, double z, double t, double a) {
                                	double t_1 = fma(a, ((t - x) / z), t);
                                	double tmp;
                                	if (z <= -4.6e+226) {
                                		tmp = t_1;
                                	} else if (z <= -4.6e+76) {
                                		tmp = (y / (z - a)) * (x - t);
                                	} else if (z <= 3.8e+109) {
                                		tmp = fma((t - x), (y / a), x);
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a)
                                	t_1 = fma(a, Float64(Float64(t - x) / z), t)
                                	tmp = 0.0
                                	if (z <= -4.6e+226)
                                		tmp = t_1;
                                	elseif (z <= -4.6e+76)
                                		tmp = Float64(Float64(y / Float64(z - a)) * Float64(x - t));
                                	elseif (z <= 3.8e+109)
                                		tmp = fma(Float64(t - x), Float64(y / a), x);
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -4.6e+226], t$95$1, If[LessEqual[z, -4.6e+76], N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+109], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                \mathbf{if}\;z \leq -4.6 \cdot 10^{+226}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;z \leq -4.6 \cdot 10^{+76}:\\
                                \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\
                                
                                \mathbf{elif}\;z \leq 3.8 \cdot 10^{+109}:\\
                                \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if z < -4.5999999999999999e226 or 3.80000000000000039e109 < z

                                  1. Initial program 36.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -4.5999999999999999e226 < z < -4.60000000000000002e76

                                    1. Initial program 49.4%

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

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

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

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

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

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

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

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

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

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

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

                                    if -4.60000000000000002e76 < z < 3.80000000000000039e109

                                    1. Initial program 85.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 9: 78.6% accurate, 0.7× speedup?

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

                                    1. Initial program 36.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -1.0999999999999999e146 < z < 3.05000000000000004e109

                                    1. Initial program 81.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if 3.05000000000000004e109 < z

                                    1. Initial program 38.6%

                                      \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 10: 78.6% accurate, 0.8× speedup?

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

                                    1. Initial program 37.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -1.0999999999999999e146 < z < 3.05000000000000004e109

                                    1. Initial program 81.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 11: 75.4% accurate, 0.8× speedup?

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

                                    1. Initial program 36.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -2.50000000000000008e138 < z < 1.1200000000000001e110

                                      1. Initial program 82.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 1.1200000000000001e110 < z

                                      1. Initial program 38.6%

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, 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. *-commutativeN/A

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

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

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

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

                                          \[\leadsto \frac{\color{blue}{y - z}}{a - z} \cdot t \]
                                        6. lower--.f6475.9

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

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

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

                                    Alternative 12: 71.1% accurate, 0.8× speedup?

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

                                      1. Initial program 43.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -9.6e246 < z < 1.1200000000000001e110

                                        1. Initial program 76.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if 1.1200000000000001e110 < z

                                        1. Initial program 38.6%

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, 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. *-commutativeN/A

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

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

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

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

                                            \[\leadsto \frac{\color{blue}{y - z}}{a - z} \cdot t \]
                                          6. lower--.f6475.9

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

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

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

                                      Alternative 13: 65.9% accurate, 0.8× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z - y}{z - a} \cdot t\\ \mathbf{if}\;z \leq -7 \cdot 10^{+91}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{+69}:\\ \;\;\;\;\mathsf{fma}\left(t - 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 (* (/ (- z y) (- z a)) t)))
                                         (if (<= z -7e+91) t_1 (if (<= z 6.5e+69) (fma (- t x) (/ y a) x) t_1))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double t_1 = ((z - y) / (z - a)) * t;
                                      	double tmp;
                                      	if (z <= -7e+91) {
                                      		tmp = t_1;
                                      	} else if (z <= 6.5e+69) {
                                      		tmp = fma((t - x), (y / a), x);
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a)
                                      	t_1 = Float64(Float64(Float64(z - y) / Float64(z - a)) * t)
                                      	tmp = 0.0
                                      	if (z <= -7e+91)
                                      		tmp = t_1;
                                      	elseif (z <= 6.5e+69)
                                      		tmp = fma(Float64(t - x), Float64(y / a), x);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[z, -7e+91], t$95$1, If[LessEqual[z, 6.5e+69], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{z - y}{z - a} \cdot t\\
                                      \mathbf{if}\;z \leq -7 \cdot 10^{+91}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;z \leq 6.5 \cdot 10^{+69}:\\
                                      \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if z < -7.00000000000000001e91 or 6.5000000000000001e69 < z

                                        1. Initial program 40.3%

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, 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. *-commutativeN/A

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

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

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

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

                                            \[\leadsto \frac{\color{blue}{y - z}}{a - z} \cdot t \]
                                          6. lower--.f6462.5

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

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

                                        if -7.00000000000000001e91 < z < 6.5000000000000001e69

                                        1. Initial program 86.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 14: 63.0% accurate, 0.9× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \mathbf{if}\;z \leq -7.2 \cdot 10^{+145}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;\mathsf{fma}\left(t - 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 (fma a (/ (- t x) z) t)))
                                         (if (<= z -7.2e+145) t_1 (if (<= z 3.8e+109) (fma (- t x) (/ y a) x) t_1))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double t_1 = fma(a, ((t - x) / z), t);
                                      	double tmp;
                                      	if (z <= -7.2e+145) {
                                      		tmp = t_1;
                                      	} else if (z <= 3.8e+109) {
                                      		tmp = fma((t - x), (y / a), x);
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a)
                                      	t_1 = fma(a, Float64(Float64(t - x) / z), t)
                                      	tmp = 0.0
                                      	if (z <= -7.2e+145)
                                      		tmp = t_1;
                                      	elseif (z <= 3.8e+109)
                                      		tmp = fma(Float64(t - x), Float64(y / a), x);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -7.2e+145], t$95$1, If[LessEqual[z, 3.8e+109], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                      \mathbf{if}\;z \leq -7.2 \cdot 10^{+145}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;z \leq 3.8 \cdot 10^{+109}:\\
                                      \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if z < -7.19999999999999948e145 or 3.80000000000000039e109 < z

                                        1. Initial program 37.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -7.19999999999999948e145 < z < 3.80000000000000039e109

                                          1. Initial program 81.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        Alternative 15: 61.9% accurate, 0.9× speedup?

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

                                          1. Initial program 37.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if -7.19999999999999948e145 < z < 3.80000000000000039e109

                                            1. Initial program 81.9%

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

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

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

                                                \[\leadsto \color{blue}{y \cdot \frac{t - x}{a}} + x \]
                                              3. *-commutativeN/A

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

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

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

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

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

                                          Alternative 16: 54.7% accurate, 0.9× speedup?

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

                                            1. Initial program 39.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \frac{t}{x} \cdot x \]

                                              if -9.6e246 < z < 1.05000000000000007e110

                                              1. Initial program 76.8%

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

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

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

                                                  \[\leadsto \color{blue}{y \cdot \frac{t - x}{a}} + x \]
                                                3. *-commutativeN/A

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

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

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

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

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

                                            Alternative 17: 45.5% accurate, 0.9× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t}{x} \cdot x\\ \mathbf{if}\;z \leq -9.6 \cdot 10^{+246}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{+112}:\\ \;\;\;\;\frac{t \cdot y}{a} + x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (let* ((t_1 (* (/ t x) x)))
                                               (if (<= z -9.6e+246) t_1 (if (<= z 7.2e+112) (+ (/ (* t y) a) x) t_1))))
                                            double code(double x, double y, double z, double t, double a) {
                                            	double t_1 = (t / x) * x;
                                            	double tmp;
                                            	if (z <= -9.6e+246) {
                                            		tmp = t_1;
                                            	} else if (z <= 7.2e+112) {
                                            		tmp = ((t * y) / a) + x;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            real(8) function code(x, y, z, t, a)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                real(8) :: t_1
                                                real(8) :: tmp
                                                t_1 = (t / x) * x
                                                if (z <= (-9.6d+246)) then
                                                    tmp = t_1
                                                else if (z <= 7.2d+112) then
                                                    tmp = ((t * y) / a) + x
                                                else
                                                    tmp = t_1
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a) {
                                            	double t_1 = (t / x) * x;
                                            	double tmp;
                                            	if (z <= -9.6e+246) {
                                            		tmp = t_1;
                                            	} else if (z <= 7.2e+112) {
                                            		tmp = ((t * y) / a) + x;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a):
                                            	t_1 = (t / x) * x
                                            	tmp = 0
                                            	if z <= -9.6e+246:
                                            		tmp = t_1
                                            	elif z <= 7.2e+112:
                                            		tmp = ((t * y) / a) + x
                                            	else:
                                            		tmp = t_1
                                            	return tmp
                                            
                                            function code(x, y, z, t, a)
                                            	t_1 = Float64(Float64(t / x) * x)
                                            	tmp = 0.0
                                            	if (z <= -9.6e+246)
                                            		tmp = t_1;
                                            	elseif (z <= 7.2e+112)
                                            		tmp = Float64(Float64(Float64(t * y) / a) + x);
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a)
                                            	t_1 = (t / x) * x;
                                            	tmp = 0.0;
                                            	if (z <= -9.6e+246)
                                            		tmp = t_1;
                                            	elseif (z <= 7.2e+112)
                                            		tmp = ((t * y) / a) + x;
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t / x), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -9.6e+246], t$95$1, If[LessEqual[z, 7.2e+112], N[(N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := \frac{t}{x} \cdot x\\
                                            \mathbf{if}\;z \leq -9.6 \cdot 10^{+246}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;z \leq 7.2 \cdot 10^{+112}:\\
                                            \;\;\;\;\frac{t \cdot y}{a} + x\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if z < -9.6e246 or 7.20000000000000001e112 < z

                                              1. Initial program 39.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \frac{t}{x} \cdot x \]

                                                if -9.6e246 < z < 7.20000000000000001e112

                                                1. Initial program 76.8%

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

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

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

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

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

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

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

                                                    \[\leadsto x + \frac{y \cdot t}{a} \]
                                                8. Recombined 2 regimes into one program.
                                                9. Final simplification54.4%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9.6 \cdot 10^{+246}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{+112}:\\ \;\;\;\;\frac{t \cdot y}{a} + x\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 18: 34.4% accurate, 0.9× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq 1.75 \cdot 10^{+111}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a)
                                                 :precision binary64
                                                 (if (<= a -1.82e+155)
                                                   (* 1.0 x)
                                                   (if (<= a 1.75e+111) (* (/ y (- a z)) t) (* 1.0 x))))
                                                double code(double x, double y, double z, double t, double a) {
                                                	double tmp;
                                                	if (a <= -1.82e+155) {
                                                		tmp = 1.0 * x;
                                                	} else if (a <= 1.75e+111) {
                                                		tmp = (y / (a - z)) * t;
                                                	} else {
                                                		tmp = 1.0 * x;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                real(8) function code(x, y, z, t, a)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    real(8), intent (in) :: z
                                                    real(8), intent (in) :: t
                                                    real(8), intent (in) :: a
                                                    real(8) :: tmp
                                                    if (a <= (-1.82d+155)) then
                                                        tmp = 1.0d0 * x
                                                    else if (a <= 1.75d+111) then
                                                        tmp = (y / (a - z)) * t
                                                    else
                                                        tmp = 1.0d0 * x
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static double code(double x, double y, double z, double t, double a) {
                                                	double tmp;
                                                	if (a <= -1.82e+155) {
                                                		tmp = 1.0 * x;
                                                	} else if (a <= 1.75e+111) {
                                                		tmp = (y / (a - z)) * t;
                                                	} else {
                                                		tmp = 1.0 * x;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a):
                                                	tmp = 0
                                                	if a <= -1.82e+155:
                                                		tmp = 1.0 * x
                                                	elif a <= 1.75e+111:
                                                		tmp = (y / (a - z)) * t
                                                	else:
                                                		tmp = 1.0 * x
                                                	return tmp
                                                
                                                function code(x, y, z, t, a)
                                                	tmp = 0.0
                                                	if (a <= -1.82e+155)
                                                		tmp = Float64(1.0 * x);
                                                	elseif (a <= 1.75e+111)
                                                		tmp = Float64(Float64(y / Float64(a - z)) * t);
                                                	else
                                                		tmp = Float64(1.0 * x);
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a)
                                                	tmp = 0.0;
                                                	if (a <= -1.82e+155)
                                                		tmp = 1.0 * x;
                                                	elseif (a <= 1.75e+111)
                                                		tmp = (y / (a - z)) * t;
                                                	else
                                                		tmp = 1.0 * x;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.82e+155], N[(1.0 * x), $MachinePrecision], If[LessEqual[a, 1.75e+111], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\
                                                \;\;\;\;1 \cdot x\\
                                                
                                                \mathbf{elif}\;a \leq 1.75 \cdot 10^{+111}:\\
                                                \;\;\;\;\frac{y}{a - z} \cdot t\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;1 \cdot x\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if a < -1.81999999999999989e155 or 1.7500000000000001e111 < a

                                                  1. Initial program 64.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto 1 \cdot x \]

                                                    if -1.81999999999999989e155 < a < 1.7500000000000001e111

                                                    1. Initial program 71.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq 1.75 \cdot 10^{+111}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                                                    12. Add Preprocessing

                                                    Alternative 19: 29.4% accurate, 1.0× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq 1.8 \cdot 10^{+67}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a)
                                                     :precision binary64
                                                     (if (<= a -1.82e+155) (* 1.0 x) (if (<= a 1.8e+67) (* (/ y a) t) (* 1.0 x))))
                                                    double code(double x, double y, double z, double t, double a) {
                                                    	double tmp;
                                                    	if (a <= -1.82e+155) {
                                                    		tmp = 1.0 * x;
                                                    	} else if (a <= 1.8e+67) {
                                                    		tmp = (y / a) * t;
                                                    	} else {
                                                    		tmp = 1.0 * x;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    real(8) function code(x, y, z, t, a)
                                                        real(8), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        real(8), intent (in) :: z
                                                        real(8), intent (in) :: t
                                                        real(8), intent (in) :: a
                                                        real(8) :: tmp
                                                        if (a <= (-1.82d+155)) then
                                                            tmp = 1.0d0 * x
                                                        else if (a <= 1.8d+67) then
                                                            tmp = (y / a) * t
                                                        else
                                                            tmp = 1.0d0 * x
                                                        end if
                                                        code = tmp
                                                    end function
                                                    
                                                    public static double code(double x, double y, double z, double t, double a) {
                                                    	double tmp;
                                                    	if (a <= -1.82e+155) {
                                                    		tmp = 1.0 * x;
                                                    	} else if (a <= 1.8e+67) {
                                                    		tmp = (y / a) * t;
                                                    	} else {
                                                    		tmp = 1.0 * x;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a):
                                                    	tmp = 0
                                                    	if a <= -1.82e+155:
                                                    		tmp = 1.0 * x
                                                    	elif a <= 1.8e+67:
                                                    		tmp = (y / a) * t
                                                    	else:
                                                    		tmp = 1.0 * x
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t, a)
                                                    	tmp = 0.0
                                                    	if (a <= -1.82e+155)
                                                    		tmp = Float64(1.0 * x);
                                                    	elseif (a <= 1.8e+67)
                                                    		tmp = Float64(Float64(y / a) * t);
                                                    	else
                                                    		tmp = Float64(1.0 * x);
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t, a)
                                                    	tmp = 0.0;
                                                    	if (a <= -1.82e+155)
                                                    		tmp = 1.0 * x;
                                                    	elseif (a <= 1.8e+67)
                                                    		tmp = (y / a) * t;
                                                    	else
                                                    		tmp = 1.0 * x;
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.82e+155], N[(1.0 * x), $MachinePrecision], If[LessEqual[a, 1.8e+67], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\
                                                    \;\;\;\;1 \cdot x\\
                                                    
                                                    \mathbf{elif}\;a \leq 1.8 \cdot 10^{+67}:\\
                                                    \;\;\;\;\frac{y}{a} \cdot t\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;1 \cdot x\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 2 regimes
                                                    2. if a < -1.81999999999999989e155 or 1.7999999999999999e67 < a

                                                      1. Initial program 65.5%

                                                        \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in x around inf

                                                        \[\leadsto \color{blue}{x \cdot \left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right)} \]
                                                      4. Step-by-step derivation
                                                        1. *-commutativeN/A

                                                          \[\leadsto \color{blue}{\left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right) \cdot x} \]
                                                        2. lower-*.f64N/A

                                                          \[\leadsto \color{blue}{\left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right) \cdot x} \]
                                                        3. +-commutativeN/A

                                                          \[\leadsto \color{blue}{\left(\left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right) + 1\right)} \cdot x \]
                                                        4. +-commutativeN/A

                                                          \[\leadsto \left(\color{blue}{\left(\frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)} + -1 \cdot \frac{y - z}{a - z}\right)} + 1\right) \cdot x \]
                                                        5. times-fracN/A

                                                          \[\leadsto \left(\left(\color{blue}{\frac{t}{x} \cdot \frac{y - z}{a - z}} + -1 \cdot \frac{y - z}{a - z}\right) + 1\right) \cdot x \]
                                                        6. distribute-rgt-outN/A

                                                          \[\leadsto \left(\color{blue}{\frac{y - z}{a - z} \cdot \left(\frac{t}{x} + -1\right)} + 1\right) \cdot x \]
                                                        7. lower-fma.f64N/A

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, \frac{t}{x} + -1, 1\right)} \cdot x \]
                                                        8. lower-/.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                        9. lower--.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - z}}{a - z}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                        10. lower--.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\frac{y - z}{\color{blue}{a - z}}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                        11. lower-+.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, \color{blue}{\frac{t}{x} + -1}, 1\right) \cdot x \]
                                                        12. lower-/.f6483.5

                                                          \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, \color{blue}{\frac{t}{x}} + -1, 1\right) \cdot x \]
                                                      5. Applied rewrites83.5%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, \frac{t}{x} + -1, 1\right) \cdot x} \]
                                                      6. Taylor expanded in a around inf

                                                        \[\leadsto 1 \cdot x \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites61.3%

                                                          \[\leadsto 1 \cdot x \]

                                                        if -1.81999999999999989e155 < a < 1.7999999999999999e67

                                                        1. Initial program 71.4%

                                                          \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in t around inf

                                                          \[\leadsto \color{blue}{t \cdot \left(\frac{y}{a - z} - \frac{z}{a - z}\right)} \]
                                                        4. 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. *-commutativeN/A

                                                            \[\leadsto \frac{\color{blue}{\left(y - z\right) \cdot t}}{a - z} \]
                                                          4. associate-/l*N/A

                                                            \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                                                          5. lower-*.f64N/A

                                                            \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                                                          6. lower--.f64N/A

                                                            \[\leadsto \color{blue}{\left(y - z\right)} \cdot \frac{t}{a - z} \]
                                                          7. lower-/.f64N/A

                                                            \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                                          8. lower--.f6454.1

                                                            \[\leadsto \left(y - z\right) \cdot \frac{t}{\color{blue}{a - z}} \]
                                                        5. Applied rewrites54.1%

                                                          \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                                                        6. Taylor expanded in z around 0

                                                          \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                        7. Step-by-step derivation
                                                          1. Applied rewrites29.4%

                                                            \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
                                                        8. Recombined 2 regimes into one program.
                                                        9. Final simplification40.9%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.82 \cdot 10^{+155}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq 1.8 \cdot 10^{+67}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                                                        10. Add Preprocessing

                                                        Alternative 20: 32.9% accurate, 1.5× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.3 \cdot 10^{+100}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq 32000000000000:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
                                                        (FPCore (x y z t a)
                                                         :precision binary64
                                                         (if (<= a -3.3e+100)
                                                           (* 1.0 x)
                                                           (if (<= a 32000000000000.0) (+ (- t x) x) (* 1.0 x))))
                                                        double code(double x, double y, double z, double t, double a) {
                                                        	double tmp;
                                                        	if (a <= -3.3e+100) {
                                                        		tmp = 1.0 * x;
                                                        	} else if (a <= 32000000000000.0) {
                                                        		tmp = (t - x) + x;
                                                        	} else {
                                                        		tmp = 1.0 * x;
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        real(8) function code(x, y, z, t, a)
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            real(8), intent (in) :: z
                                                            real(8), intent (in) :: t
                                                            real(8), intent (in) :: a
                                                            real(8) :: tmp
                                                            if (a <= (-3.3d+100)) then
                                                                tmp = 1.0d0 * x
                                                            else if (a <= 32000000000000.0d0) then
                                                                tmp = (t - x) + x
                                                            else
                                                                tmp = 1.0d0 * x
                                                            end if
                                                            code = tmp
                                                        end function
                                                        
                                                        public static double code(double x, double y, double z, double t, double a) {
                                                        	double tmp;
                                                        	if (a <= -3.3e+100) {
                                                        		tmp = 1.0 * x;
                                                        	} else if (a <= 32000000000000.0) {
                                                        		tmp = (t - x) + x;
                                                        	} else {
                                                        		tmp = 1.0 * x;
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        def code(x, y, z, t, a):
                                                        	tmp = 0
                                                        	if a <= -3.3e+100:
                                                        		tmp = 1.0 * x
                                                        	elif a <= 32000000000000.0:
                                                        		tmp = (t - x) + x
                                                        	else:
                                                        		tmp = 1.0 * x
                                                        	return tmp
                                                        
                                                        function code(x, y, z, t, a)
                                                        	tmp = 0.0
                                                        	if (a <= -3.3e+100)
                                                        		tmp = Float64(1.0 * x);
                                                        	elseif (a <= 32000000000000.0)
                                                        		tmp = Float64(Float64(t - x) + x);
                                                        	else
                                                        		tmp = Float64(1.0 * x);
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        function tmp_2 = code(x, y, z, t, a)
                                                        	tmp = 0.0;
                                                        	if (a <= -3.3e+100)
                                                        		tmp = 1.0 * x;
                                                        	elseif (a <= 32000000000000.0)
                                                        		tmp = (t - x) + x;
                                                        	else
                                                        		tmp = 1.0 * x;
                                                        	end
                                                        	tmp_2 = tmp;
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.3e+100], N[(1.0 * x), $MachinePrecision], If[LessEqual[a, 32000000000000.0], N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        \mathbf{if}\;a \leq -3.3 \cdot 10^{+100}:\\
                                                        \;\;\;\;1 \cdot x\\
                                                        
                                                        \mathbf{elif}\;a \leq 32000000000000:\\
                                                        \;\;\;\;\left(t - x\right) + x\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;1 \cdot x\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 2 regimes
                                                        2. if a < -3.3000000000000001e100 or 3.2e13 < a

                                                          1. Initial program 66.7%

                                                            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in x around inf

                                                            \[\leadsto \color{blue}{x \cdot \left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right)} \]
                                                          4. Step-by-step derivation
                                                            1. *-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right) \cdot x} \]
                                                            2. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{\left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right) \cdot x} \]
                                                            3. +-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(\left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right) + 1\right)} \cdot x \]
                                                            4. +-commutativeN/A

                                                              \[\leadsto \left(\color{blue}{\left(\frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)} + -1 \cdot \frac{y - z}{a - z}\right)} + 1\right) \cdot x \]
                                                            5. times-fracN/A

                                                              \[\leadsto \left(\left(\color{blue}{\frac{t}{x} \cdot \frac{y - z}{a - z}} + -1 \cdot \frac{y - z}{a - z}\right) + 1\right) \cdot x \]
                                                            6. distribute-rgt-outN/A

                                                              \[\leadsto \left(\color{blue}{\frac{y - z}{a - z} \cdot \left(\frac{t}{x} + -1\right)} + 1\right) \cdot x \]
                                                            7. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, \frac{t}{x} + -1, 1\right)} \cdot x \]
                                                            8. lower-/.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                            9. lower--.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - z}}{a - z}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                            10. lower--.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\frac{y - z}{\color{blue}{a - z}}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                            11. lower-+.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, \color{blue}{\frac{t}{x} + -1}, 1\right) \cdot x \]
                                                            12. lower-/.f6482.2

                                                              \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, \color{blue}{\frac{t}{x}} + -1, 1\right) \cdot x \]
                                                          5. Applied rewrites82.2%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, \frac{t}{x} + -1, 1\right) \cdot x} \]
                                                          6. Taylor expanded in a around inf

                                                            \[\leadsto 1 \cdot x \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites55.1%

                                                              \[\leadsto 1 \cdot x \]

                                                            if -3.3000000000000001e100 < a < 3.2e13

                                                            1. Initial program 71.1%

                                                              \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in z around inf

                                                              \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                            4. Step-by-step derivation
                                                              1. lower--.f6421.6

                                                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                            5. Applied rewrites21.6%

                                                              \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                          8. Recombined 2 regimes into one program.
                                                          9. Final simplification35.7%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.3 \cdot 10^{+100}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq 32000000000000:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                                                          10. Add Preprocessing

                                                          Alternative 21: 25.5% accurate, 4.8× speedup?

                                                          \[\begin{array}{l} \\ 1 \cdot x \end{array} \]
                                                          (FPCore (x y z t a) :precision binary64 (* 1.0 x))
                                                          double code(double x, double y, double z, double t, double a) {
                                                          	return 1.0 * 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 = 1.0d0 * x
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z, double t, double a) {
                                                          	return 1.0 * x;
                                                          }
                                                          
                                                          def code(x, y, z, t, a):
                                                          	return 1.0 * x
                                                          
                                                          function code(x, y, z, t, a)
                                                          	return Float64(1.0 * x)
                                                          end
                                                          
                                                          function tmp = code(x, y, z, t, a)
                                                          	tmp = 1.0 * x;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_] := N[(1.0 * x), $MachinePrecision]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          1 \cdot x
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Initial program 69.2%

                                                            \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in x around inf

                                                            \[\leadsto \color{blue}{x \cdot \left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right)} \]
                                                          4. Step-by-step derivation
                                                            1. *-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right) \cdot x} \]
                                                            2. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{\left(1 + \left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right)\right) \cdot x} \]
                                                            3. +-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(\left(-1 \cdot \frac{y - z}{a - z} + \frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)}\right) + 1\right)} \cdot x \]
                                                            4. +-commutativeN/A

                                                              \[\leadsto \left(\color{blue}{\left(\frac{t \cdot \left(y - z\right)}{x \cdot \left(a - z\right)} + -1 \cdot \frac{y - z}{a - z}\right)} + 1\right) \cdot x \]
                                                            5. times-fracN/A

                                                              \[\leadsto \left(\left(\color{blue}{\frac{t}{x} \cdot \frac{y - z}{a - z}} + -1 \cdot \frac{y - z}{a - z}\right) + 1\right) \cdot x \]
                                                            6. distribute-rgt-outN/A

                                                              \[\leadsto \left(\color{blue}{\frac{y - z}{a - z} \cdot \left(\frac{t}{x} + -1\right)} + 1\right) \cdot x \]
                                                            7. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, \frac{t}{x} + -1, 1\right)} \cdot x \]
                                                            8. lower-/.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y - z}{a - z}}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                            9. lower--.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{y - z}}{a - z}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                            10. lower--.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\frac{y - z}{\color{blue}{a - z}}, \frac{t}{x} + -1, 1\right) \cdot x \]
                                                            11. lower-+.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, \color{blue}{\frac{t}{x} + -1}, 1\right) \cdot x \]
                                                            12. lower-/.f6475.3

                                                              \[\leadsto \mathsf{fma}\left(\frac{y - z}{a - z}, \color{blue}{\frac{t}{x}} + -1, 1\right) \cdot x \]
                                                          5. Applied rewrites75.3%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a - z}, \frac{t}{x} + -1, 1\right) \cdot x} \]
                                                          6. Taylor expanded in a around inf

                                                            \[\leadsto 1 \cdot x \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites28.8%

                                                              \[\leadsto 1 \cdot x \]
                                                            2. Add Preprocessing

                                                            Developer Target 1: 84.0% accurate, 0.6× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\ \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                            (FPCore (x y z t a)
                                                             :precision binary64
                                                             (let* ((t_1 (- t (* (/ y z) (- t x)))))
                                                               (if (< z -1.2536131056095036e+188)
                                                                 t_1
                                                                 (if (< z 4.446702369113811e+64)
                                                                   (+ x (/ (- y z) (/ (- a z) (- t x))))
                                                                   t_1))))
                                                            double code(double x, double y, double z, double t, double a) {
                                                            	double t_1 = t - ((y / z) * (t - x));
                                                            	double tmp;
                                                            	if (z < -1.2536131056095036e+188) {
                                                            		tmp = t_1;
                                                            	} else if (z < 4.446702369113811e+64) {
                                                            		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                            	} else {
                                                            		tmp = t_1;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            real(8) function code(x, y, z, t, a)
                                                                real(8), intent (in) :: x
                                                                real(8), intent (in) :: y
                                                                real(8), intent (in) :: z
                                                                real(8), intent (in) :: t
                                                                real(8), intent (in) :: a
                                                                real(8) :: t_1
                                                                real(8) :: tmp
                                                                t_1 = t - ((y / z) * (t - x))
                                                                if (z < (-1.2536131056095036d+188)) then
                                                                    tmp = t_1
                                                                else if (z < 4.446702369113811d+64) then
                                                                    tmp = x + ((y - z) / ((a - z) / (t - x)))
                                                                else
                                                                    tmp = t_1
                                                                end if
                                                                code = tmp
                                                            end function
                                                            
                                                            public static double code(double x, double y, double z, double t, double a) {
                                                            	double t_1 = t - ((y / z) * (t - x));
                                                            	double tmp;
                                                            	if (z < -1.2536131056095036e+188) {
                                                            		tmp = t_1;
                                                            	} else if (z < 4.446702369113811e+64) {
                                                            		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                            	} else {
                                                            		tmp = t_1;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            def code(x, y, z, t, a):
                                                            	t_1 = t - ((y / z) * (t - x))
                                                            	tmp = 0
                                                            	if z < -1.2536131056095036e+188:
                                                            		tmp = t_1
                                                            	elif z < 4.446702369113811e+64:
                                                            		tmp = x + ((y - z) / ((a - z) / (t - x)))
                                                            	else:
                                                            		tmp = t_1
                                                            	return tmp
                                                            
                                                            function code(x, y, z, t, a)
                                                            	t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x)))
                                                            	tmp = 0.0
                                                            	if (z < -1.2536131056095036e+188)
                                                            		tmp = t_1;
                                                            	elseif (z < 4.446702369113811e+64)
                                                            		tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x))));
                                                            	else
                                                            		tmp = t_1;
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            function tmp_2 = code(x, y, z, t, a)
                                                            	t_1 = t - ((y / z) * (t - x));
                                                            	tmp = 0.0;
                                                            	if (z < -1.2536131056095036e+188)
                                                            		tmp = t_1;
                                                            	elseif (z < 4.446702369113811e+64)
                                                            		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                            	else
                                                            		tmp = t_1;
                                                            	end
                                                            	tmp_2 = tmp;
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
                                                            \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
                                                            \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            

                                                            Reproduce

                                                            ?
                                                            herbie shell --seed 2024255 
                                                            (FPCore (x y z t a)
                                                              :name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
                                                              :precision binary64
                                                            
                                                              :alt
                                                              (! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
                                                            
                                                              (+ x (/ (* (- y z) (- t x)) (- a z))))