Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 80.1% → 94.6%
Time: 14.0s
Alternatives: 18
Speedup: 0.6×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 18 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 80.1% accurate, 1.0× speedup?

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

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

Alternative 1: 94.6% accurate, 0.1× speedup?

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

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

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\


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

    1. Initial program 88.9%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - z\right), \color{blue}{\left(a - z\right)}\right), x\right) \]
      9. --lowering--.f64N/A

        \[\leadsto \mathsf{fma.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{a} - z\right)\right), x\right) \]
      10. --lowering--.f6495.5%

        \[\leadsto \mathsf{fma.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right), x\right) \]
    4. Applied egg-rr95.5%

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

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

    1. Initial program 3.1%

      \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
    2. Add Preprocessing
    3. 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 t + \color{blue}{\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 + -1 \cdot \color{blue}{\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 \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{\color{blue}{z}} \]
      4. mul-1-negN/A

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
      10. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
      11. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
      12. --lowering--.f6499.4%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
    5. Simplified99.4%

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

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\left(t - x\right) \cdot \frac{y - a}{z}\right)}\right) \]
      2. clear-numN/A

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \frac{1}{\color{blue}{\frac{z}{y - a}}}\right)\right) \]
      3. un-div-invN/A

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \color{blue}{\left(y - a\right)}\right)\right)\right) \]
      7. --lowering--.f6499.8%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(y, \color{blue}{a}\right)\right)\right)\right) \]
    7. Applied egg-rr99.8%

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

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

    1. Initial program 94.9%

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(\left(y - z\right) \cdot \left(t - x\right)\right)}\right)\right)\right) \]
      5. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{\left(y - z\right)} \cdot \left(t - x\right)\right)\right)\right)\right) \]
      6. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\left(y - z\right), \color{blue}{\left(t - x\right)}\right)\right)\right)\right) \]
      7. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{t} - x\right)\right)\right)\right)\right) \]
      8. --lowering--.f6477.4%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right)\right)\right) \]
    4. Applied egg-rr77.4%

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{a - z}{y - z}\right)}\right)\right) \]
      7. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{a - z}}{y - z}\right)\right)\right) \]
      8. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right)\right) \]
      9. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right)\right) \]
      10. --lowering--.f6498.0%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right)\right) \]
    6. Applied egg-rr98.0%

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

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

Alternative 2: 92.0% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\ \mathbf{elif}\;t\_1 \leq -4 \cdot 10^{-281}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 10^{-284}:\\ \;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
   (if (<= t_1 (- INFINITY))
     (+ x (/ (* (- y z) (- t x)) (- a z)))
     (if (<= t_1 -4e-281)
       t_1
       (if (<= t_1 1e-284) (+ t (/ (- t x) (/ z (- a y)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = x + (((y - z) * (t - x)) / (a - z));
	} else if (t_1 <= -4e-281) {
		tmp = t_1;
	} else if (t_1 <= 1e-284) {
		tmp = t + ((t - x) / (z / (a - y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = x + ((y - z) * ((t - x) / (a - z)));
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = x + (((y - z) * (t - x)) / (a - z));
	} else if (t_1 <= -4e-281) {
		tmp = t_1;
	} else if (t_1 <= 1e-284) {
		tmp = t + ((t - x) / (z / (a - y)));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + ((y - z) * ((t - x) / (a - z)))
	tmp = 0
	if t_1 <= -math.inf:
		tmp = x + (((y - z) * (t - x)) / (a - z))
	elif t_1 <= -4e-281:
		tmp = t_1
	elif t_1 <= 1e-284:
		tmp = t + ((t - x) / (z / (a - y)))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z))))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z)));
	elseif (t_1 <= -4e-281)
		tmp = t_1;
	elseif (t_1 <= 1e-284)
		tmp = Float64(t + Float64(Float64(t - x) / Float64(z / Float64(a - y))));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + ((y - z) * ((t - x) / (a - z)));
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = x + (((y - z) * (t - x)) / (a - z));
	elseif (t_1 <= -4e-281)
		tmp = t_1;
	elseif (t_1 <= 1e-284)
		tmp = t + ((t - x) / (z / (a - y)));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -4e-281], t$95$1, If[LessEqual[t$95$1, 1e-284], N[(t + N[(N[(t - x), $MachinePrecision] / N[(z / N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -4 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq 10^{-284}:\\
\;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0

    1. Initial program 80.1%

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(y - z\right), \left(t - x\right)\right), \left(\color{blue}{a} - z\right)\right)\right) \]
      5. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(t - x\right)\right), \left(a - z\right)\right)\right) \]
      6. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, x\right)\right), \left(a - z\right)\right)\right) \]
      7. --lowering--.f64100.0%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, x\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right) \]
    3. Simplified100.0%

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

    if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.0000000000000001e-281 or 1.00000000000000004e-284 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z))))

    1. Initial program 94.0%

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

    if -4.0000000000000001e-281 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.00000000000000004e-284

    1. Initial program 6.3%

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

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

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

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
      10. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
      11. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
      12. --lowering--.f6496.2%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
    5. Simplified96.2%

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

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\left(t - x\right) \cdot \frac{y - a}{z}\right)}\right) \]
      2. clear-numN/A

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \frac{1}{\color{blue}{\frac{z}{y - a}}}\right)\right) \]
      3. un-div-invN/A

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \color{blue}{\left(y - a\right)}\right)\right)\right) \]
      7. --lowering--.f6496.7%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(y, \color{blue}{a}\right)\right)\right)\right) \]
    7. Applied egg-rr96.7%

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

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

Alternative 3: 94.6% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\

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


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

    1. Initial program 92.3%

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(\left(y - z\right) \cdot \left(t - x\right)\right)}\right)\right)\right) \]
      5. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{\left(y - z\right)} \cdot \left(t - x\right)\right)\right)\right)\right) \]
      6. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\left(y - z\right), \color{blue}{\left(t - x\right)}\right)\right)\right)\right) \]
      7. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{t} - x\right)\right)\right)\right)\right) \]
      8. --lowering--.f6480.3%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right)\right)\right) \]
    4. Applied egg-rr80.3%

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{a - z}{y - z}\right)}\right)\right) \]
      7. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{a - z}}{y - z}\right)\right)\right) \]
      8. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right)\right) \]
      9. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right)\right) \]
      10. --lowering--.f6496.9%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right)\right) \]
    6. Applied egg-rr96.9%

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

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

    1. Initial program 3.1%

      \[x + \left(y - z\right) \cdot \frac{t - x}{a - z} \]
    2. Add Preprocessing
    3. 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 t + \color{blue}{\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 + -1 \cdot \color{blue}{\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 \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{\color{blue}{z}} \]
      4. mul-1-negN/A

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
      10. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
      11. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
      12. --lowering--.f6499.4%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
    5. Simplified99.4%

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

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\left(t - x\right) \cdot \frac{y - a}{z}\right)}\right) \]
      2. clear-numN/A

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \frac{1}{\color{blue}{\frac{z}{y - a}}}\right)\right) \]
      3. un-div-invN/A

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \color{blue}{\left(y - a\right)}\right)\right)\right) \]
      7. --lowering--.f6499.8%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(y, \color{blue}{a}\right)\right)\right)\right) \]
    7. Applied egg-rr99.8%

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

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

Alternative 4: 91.0% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_1 \leq 10^{-284}:\\
\;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\

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


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

    1. Initial program 92.6%

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

    if -4.0000000000000001e-281 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.00000000000000004e-284

    1. Initial program 6.3%

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

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

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

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
      10. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
      11. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
      12. --lowering--.f6496.2%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
    5. Simplified96.2%

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

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\left(t - x\right) \cdot \frac{y - a}{z}\right)}\right) \]
      2. clear-numN/A

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \frac{1}{\color{blue}{\frac{z}{y - a}}}\right)\right) \]
      3. un-div-invN/A

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

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

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

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \color{blue}{\left(y - a\right)}\right)\right)\right) \]
      7. --lowering--.f6496.7%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(y, \color{blue}{a}\right)\right)\right)\right) \]
    7. Applied egg-rr96.7%

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

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

Alternative 5: 49.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + y \cdot \frac{t}{a}\\ \mathbf{if}\;a \leq -1.22 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -5.2 \cdot 10^{-136}:\\ \;\;\;\;t\\ \mathbf{elif}\;a \leq 1.85 \cdot 10^{-142}:\\ \;\;\;\;y \cdot \left(\frac{x}{z} - \frac{t}{z}\right)\\ \mathbf{elif}\;a \leq 2.9 \cdot 10^{-27}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* y (/ t a)))))
   (if (<= a -1.22e-53)
     t_1
     (if (<= a -5.2e-136)
       t
       (if (<= a 1.85e-142)
         (* y (- (/ x z) (/ t z)))
         (if (<= a 2.9e-27) t t_1))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (y * (t / a));
	double tmp;
	if (a <= -1.22e-53) {
		tmp = t_1;
	} else if (a <= -5.2e-136) {
		tmp = t;
	} else if (a <= 1.85e-142) {
		tmp = y * ((x / z) - (t / z));
	} else if (a <= 2.9e-27) {
		tmp = t;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x + (y * (t / a))
    if (a <= (-1.22d-53)) then
        tmp = t_1
    else if (a <= (-5.2d-136)) then
        tmp = t
    else if (a <= 1.85d-142) then
        tmp = y * ((x / z) - (t / z))
    else if (a <= 2.9d-27) then
        tmp = t
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (y * (t / a));
	double tmp;
	if (a <= -1.22e-53) {
		tmp = t_1;
	} else if (a <= -5.2e-136) {
		tmp = t;
	} else if (a <= 1.85e-142) {
		tmp = y * ((x / z) - (t / z));
	} else if (a <= 2.9e-27) {
		tmp = t;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + (y * (t / a))
	tmp = 0
	if a <= -1.22e-53:
		tmp = t_1
	elif a <= -5.2e-136:
		tmp = t
	elif a <= 1.85e-142:
		tmp = y * ((x / z) - (t / z))
	elif a <= 2.9e-27:
		tmp = t
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(y * Float64(t / a)))
	tmp = 0.0
	if (a <= -1.22e-53)
		tmp = t_1;
	elseif (a <= -5.2e-136)
		tmp = t;
	elseif (a <= 1.85e-142)
		tmp = Float64(y * Float64(Float64(x / z) - Float64(t / z)));
	elseif (a <= 2.9e-27)
		tmp = t;
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + (y * (t / a));
	tmp = 0.0;
	if (a <= -1.22e-53)
		tmp = t_1;
	elseif (a <= -5.2e-136)
		tmp = t;
	elseif (a <= 1.85e-142)
		tmp = y * ((x / z) - (t / z));
	elseif (a <= 2.9e-27)
		tmp = t;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.22e-53], t$95$1, If[LessEqual[a, -5.2e-136], t, If[LessEqual[a, 1.85e-142], N[(y * N[(N[(x / z), $MachinePrecision] - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e-27], t, t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + y \cdot \frac{t}{a}\\
\mathbf{if}\;a \leq -1.22 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -5.2 \cdot 10^{-136}:\\
\;\;\;\;t\\

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

\mathbf{elif}\;a \leq 2.9 \cdot 10^{-27}:\\
\;\;\;\;t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.22000000000000003e-53 or 2.90000000000000004e-27 < a

    1. Initial program 87.6%

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t - x}}{a}\right)\right)\right) \]
      6. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{a}\right)\right)\right) \]
      7. --lowering--.f6476.4%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
    5. Simplified76.4%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
    7. Step-by-step derivation
      1. Simplified68.5%

        \[\leadsto x + \color{blue}{y} \cdot \frac{t - x}{a} \]
      2. Taylor expanded in t around inf

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(\color{blue}{t}, a\right)\right)\right) \]
      3. Step-by-step derivation
        1. Simplified58.1%

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

        if -1.22000000000000003e-53 < a < -5.19999999999999993e-136 or 1.84999999999999993e-142 < a < 2.90000000000000004e-27

        1. Initial program 72.1%

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

          \[\leadsto \color{blue}{t} \]
        4. Step-by-step derivation
          1. Simplified53.5%

            \[\leadsto \color{blue}{t} \]

          if -5.19999999999999993e-136 < a < 1.84999999999999993e-142

          1. Initial program 79.0%

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

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

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

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

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

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

              \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
            9. *-lowering-*.f64N/A

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
            10. --lowering--.f64N/A

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
            11. /-lowering-/.f64N/A

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
            12. --lowering--.f6484.0%

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
          5. Simplified84.0%

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

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

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

              \[\leadsto \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(\left(\frac{x}{z}\right), \color{blue}{\left(\frac{t}{z}\right)}\right)\right) \]
            3. /-lowering-/.f64N/A

              \[\leadsto \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\frac{\color{blue}{t}}{z}\right)\right)\right) \]
            4. /-lowering-/.f6456.2%

              \[\leadsto \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{/.f64}\left(t, \color{blue}{z}\right)\right)\right) \]
          8. Simplified56.2%

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

        Alternative 6: 50.8% accurate, 0.6× speedup?

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

          1. Initial program 61.2%

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

            \[\leadsto \color{blue}{t} \]
          4. Step-by-step derivation
            1. Simplified47.2%

              \[\leadsto \color{blue}{t} \]

            if -1.45e65 < z < -1.2e-111

            1. Initial program 93.9%

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

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

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

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

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

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

                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t - x}}{a}\right)\right)\right) \]
              6. /-lowering-/.f64N/A

                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{a}\right)\right)\right) \]
              7. --lowering--.f6458.3%

                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
            5. Simplified58.3%

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

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
            7. Step-by-step derivation
              1. Simplified53.1%

                \[\leadsto x + \color{blue}{y} \cdot \frac{t - x}{a} \]
              2. Taylor expanded in x around inf

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

                  \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(1 + -1 \cdot \frac{y}{a}\right)}\right) \]
                2. mul-1-negN/A

                  \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{a}\right)\right)\right)\right) \]
                3. unsub-negN/A

                  \[\leadsto \mathsf{*.f64}\left(x, \left(1 - \color{blue}{\frac{y}{a}}\right)\right) \]
                4. --lowering--.f64N/A

                  \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{a}\right)}\right)\right) \]
                5. /-lowering-/.f6446.4%

                  \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right) \]
              4. Simplified46.4%

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

              if -1.2e-111 < z < 9.9999999999999998e23

              1. Initial program 93.8%

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

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

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

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

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

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

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t - x}}{a}\right)\right)\right) \]
                6. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{a}\right)\right)\right) \]
                7. --lowering--.f6481.5%

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
              5. Simplified81.5%

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

                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
              7. Step-by-step derivation
                1. Simplified76.3%

                  \[\leadsto x + \color{blue}{y} \cdot \frac{t - x}{a} \]
                2. Taylor expanded in t around inf

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(\color{blue}{t}, a\right)\right)\right) \]
                3. Step-by-step derivation
                  1. Simplified59.4%

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

                Alternative 7: 36.4% accurate, 0.6× speedup?

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

                  1. Initial program 91.3%

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

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

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

                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
                    3. --lowering--.f64N/A

                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
                    4. --lowering--.f6435.7%

                      \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
                  5. Simplified35.7%

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

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

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

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

                      \[\leadsto \mathsf{*.f64}\left(t, \mathsf{/.f64}\left(y, \color{blue}{\left(a - z\right)}\right)\right) \]
                    4. --lowering--.f6440.2%

                      \[\leadsto \mathsf{*.f64}\left(t, \mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right) \]
                  8. Simplified40.2%

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

                  if -4.1000000000000004e56 < y < -7.20000000000000064e-151

                  1. Initial program 81.8%

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

                    \[\leadsto \color{blue}{x} \]
                  4. Step-by-step derivation
                    1. Simplified42.5%

                      \[\leadsto \color{blue}{x} \]

                    if -7.20000000000000064e-151 < y < 8.6000000000000001e-60

                    1. Initial program 71.2%

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

                      \[\leadsto \color{blue}{t} \]
                    4. Step-by-step derivation
                      1. Simplified45.4%

                        \[\leadsto \color{blue}{t} \]
                    5. Recombined 3 regimes into one program.
                    6. Add Preprocessing

                    Alternative 8: 80.9% accurate, 0.6× speedup?

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

                      1. Initial program 65.2%

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

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

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

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

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

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

                          \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
                        9. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
                        10. --lowering--.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
                        11. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
                        12. --lowering--.f6482.5%

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
                      5. Simplified82.5%

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

                          \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\left(t - x\right) \cdot \frac{y - a}{z}\right)}\right) \]
                        2. clear-numN/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \frac{1}{\color{blue}{\frac{z}{y - a}}}\right)\right) \]
                        3. un-div-invN/A

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

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

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

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \color{blue}{\left(y - a\right)}\right)\right)\right) \]
                        7. --lowering--.f6482.6%

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(y, \color{blue}{a}\right)\right)\right)\right) \]
                      7. Applied egg-rr82.6%

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

                      if -6e12 < z < 5.0999999999999997e26

                      1. Initial program 93.6%

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(\left(y - z\right) \cdot \left(t - x\right)\right)}\right)\right)\right) \]
                        5. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{\left(y - z\right)} \cdot \left(t - x\right)\right)\right)\right)\right) \]
                        6. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\left(y - z\right), \color{blue}{\left(t - x\right)}\right)\right)\right)\right) \]
                        7. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{t} - x\right)\right)\right)\right)\right) \]
                        8. --lowering--.f6491.0%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right)\right)\right) \]
                      4. Applied egg-rr91.0%

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

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

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{a - z}{y - z}\right)}\right)\right) \]
                        7. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{a - z}}{y - z}\right)\right)\right) \]
                        8. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right)\right) \]
                        9. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right)\right) \]
                        10. --lowering--.f6497.1%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right)\right) \]
                      6. Applied egg-rr97.1%

                        \[\leadsto x + \color{blue}{\frac{t - x}{\frac{a - z}{y - z}}} \]
                      7. Taylor expanded in y around inf

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{a - z}{y}\right)}\right)\right) \]
                      8. Step-by-step derivation
                        1. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{y}\right)\right)\right) \]
                        2. --lowering--.f6485.8%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), y\right)\right)\right) \]
                      9. Simplified85.8%

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6000000000000:\\ \;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\ \mathbf{elif}\;z \leq 5.1 \cdot 10^{+26}:\\ \;\;\;\;x + \frac{t - x}{\frac{a - z}{y}}\\ \mathbf{else}:\\ \;\;\;\;t + \frac{t - x}{\frac{z}{a - y}}\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 9: 81.1% accurate, 0.6× speedup?

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

                      1. Initial program 64.9%

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

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

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

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

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

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

                          \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
                        9. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
                        10. --lowering--.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
                        11. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
                        12. --lowering--.f6482.3%

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
                      5. Simplified82.3%

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

                      if -1.25e18 < z < 3.5000000000000001e33

                      1. Initial program 93.6%

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(\left(y - z\right) \cdot \left(t - x\right)\right)}\right)\right)\right) \]
                        5. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{\left(y - z\right)} \cdot \left(t - x\right)\right)\right)\right)\right) \]
                        6. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\left(y - z\right), \color{blue}{\left(t - x\right)}\right)\right)\right)\right) \]
                        7. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{t} - x\right)\right)\right)\right)\right) \]
                        8. --lowering--.f6491.1%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right)\right)\right) \]
                      4. Applied egg-rr91.1%

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

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

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{a - z}{y - z}\right)}\right)\right) \]
                        7. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{a - z}}{y - z}\right)\right)\right) \]
                        8. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right)\right) \]
                        9. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right)\right) \]
                        10. --lowering--.f6497.1%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right)\right) \]
                      6. Applied egg-rr97.1%

                        \[\leadsto x + \color{blue}{\frac{t - x}{\frac{a - z}{y - z}}} \]
                      7. Taylor expanded in y around inf

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{a - z}{y}\right)}\right)\right) \]
                      8. Step-by-step derivation
                        1. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{y}\right)\right)\right) \]
                        2. --lowering--.f6485.9%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), y\right)\right)\right) \]
                      9. Simplified85.9%

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

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

                    Alternative 10: 77.0% accurate, 0.6× speedup?

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

                      1. Initial program 64.9%

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

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

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

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

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

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

                          \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
                        9. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
                        10. --lowering--.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
                        11. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
                        12. --lowering--.f6482.3%

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
                      5. Simplified82.3%

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

                        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
                      7. Step-by-step derivation
                        1. /-lowering-/.f6471.7%

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
                      8. Simplified71.7%

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

                      if -7.5e14 < z < 1.22000000000000002e32

                      1. Initial program 93.6%

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(\left(y - z\right) \cdot \left(t - x\right)\right)}\right)\right)\right) \]
                        5. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{\left(y - z\right)} \cdot \left(t - x\right)\right)\right)\right)\right) \]
                        6. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\left(y - z\right), \color{blue}{\left(t - x\right)}\right)\right)\right)\right) \]
                        7. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{t} - x\right)\right)\right)\right)\right) \]
                        8. --lowering--.f6491.1%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right)\right)\right) \]
                      4. Applied egg-rr91.1%

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

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

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{a - z}{y - z}\right)}\right)\right) \]
                        7. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{a - z}}{y - z}\right)\right)\right) \]
                        8. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right)\right) \]
                        9. --lowering--.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right)\right) \]
                        10. --lowering--.f6497.1%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right)\right) \]
                      6. Applied egg-rr97.1%

                        \[\leadsto x + \color{blue}{\frac{t - x}{\frac{a - z}{y - z}}} \]
                      7. Taylor expanded in y around inf

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{a - z}{y}\right)}\right)\right) \]
                      8. Step-by-step derivation
                        1. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{y}\right)\right)\right) \]
                        2. --lowering--.f6485.9%

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), y\right)\right)\right) \]
                      9. Simplified85.9%

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

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

                    Alternative 11: 76.0% accurate, 0.6× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := t + \frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{if}\;z \leq -4.2 \cdot 10^{+17}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.3 \cdot 10^{+37}:\\ \;\;\;\;x + y \cdot \frac{t - x}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (let* ((t_1 (+ t (* (/ y z) (- x t)))))
                       (if (<= z -4.2e+17)
                         t_1
                         (if (<= z 2.3e+37) (+ x (* y (/ (- t x) (- a z)))) t_1))))
                    double code(double x, double y, double z, double t, double a) {
                    	double t_1 = t + ((y / z) * (x - t));
                    	double tmp;
                    	if (z <= -4.2e+17) {
                    		tmp = t_1;
                    	} else if (z <= 2.3e+37) {
                    		tmp = x + (y * ((t - x) / (a - z)));
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y, z, t, a)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8), intent (in) :: a
                        real(8) :: t_1
                        real(8) :: tmp
                        t_1 = t + ((y / z) * (x - t))
                        if (z <= (-4.2d+17)) then
                            tmp = t_1
                        else if (z <= 2.3d+37) then
                            tmp = x + (y * ((t - x) / (a - z)))
                        else
                            tmp = t_1
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a) {
                    	double t_1 = t + ((y / z) * (x - t));
                    	double tmp;
                    	if (z <= -4.2e+17) {
                    		tmp = t_1;
                    	} else if (z <= 2.3e+37) {
                    		tmp = x + (y * ((t - x) / (a - z)));
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a):
                    	t_1 = t + ((y / z) * (x - t))
                    	tmp = 0
                    	if z <= -4.2e+17:
                    		tmp = t_1
                    	elif z <= 2.3e+37:
                    		tmp = x + (y * ((t - x) / (a - z)))
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    function code(x, y, z, t, a)
                    	t_1 = Float64(t + Float64(Float64(y / z) * Float64(x - t)))
                    	tmp = 0.0
                    	if (z <= -4.2e+17)
                    		tmp = t_1;
                    	elseif (z <= 2.3e+37)
                    		tmp = Float64(x + Float64(y * Float64(Float64(t - x) / Float64(a - z))));
                    	else
                    		tmp = t_1;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a)
                    	t_1 = t + ((y / z) * (x - t));
                    	tmp = 0.0;
                    	if (z <= -4.2e+17)
                    		tmp = t_1;
                    	elseif (z <= 2.3e+37)
                    		tmp = x + (y * ((t - x) / (a - z)));
                    	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[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e+17], t$95$1, If[LessEqual[z, 2.3e+37], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := t + \frac{y}{z} \cdot \left(x - t\right)\\
                    \mathbf{if}\;z \leq -4.2 \cdot 10^{+17}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;z \leq 2.3 \cdot 10^{+37}:\\
                    \;\;\;\;x + y \cdot \frac{t - x}{a - z}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if z < -4.2e17 or 2.30000000000000002e37 < z

                      1. Initial program 64.9%

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

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

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

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

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

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

                          \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
                        9. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
                        10. --lowering--.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
                        11. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
                        12. --lowering--.f6482.3%

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
                      5. Simplified82.3%

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

                        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
                      7. Step-by-step derivation
                        1. /-lowering-/.f6471.7%

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
                      8. Simplified71.7%

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

                      if -4.2e17 < z < 2.30000000000000002e37

                      1. Initial program 93.6%

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

                        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(a, z\right)\right)\right)\right) \]
                      4. Step-by-step derivation
                        1. Simplified84.2%

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

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

                      Alternative 12: 69.4% accurate, 0.7× speedup?

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

                        1. Initial program 88.3%

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

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

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

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

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(\left(y - z\right) \cdot \left(t - x\right)\right)}\right)\right)\right) \]
                          5. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{\left(y - z\right)} \cdot \left(t - x\right)\right)\right)\right)\right) \]
                          6. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\left(y - z\right), \color{blue}{\left(t - x\right)}\right)\right)\right)\right) \]
                          7. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{t} - x\right)\right)\right)\right)\right) \]
                          8. --lowering--.f6473.3%

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right)\right)\right) \]
                        4. Applied egg-rr73.3%

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

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

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

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

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

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

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{a - z}{y - z}\right)}\right)\right) \]
                          7. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{a - z}}{y - z}\right)\right)\right) \]
                          8. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right)\right) \]
                          9. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right)\right) \]
                          10. --lowering--.f6491.2%

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right)\right) \]
                        6. Applied egg-rr91.2%

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{a}{y}\right)}\right)\right) \]
                        8. Step-by-step derivation
                          1. /-lowering-/.f6474.8%

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(a, \color{blue}{y}\right)\right)\right) \]
                        9. Simplified74.8%

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

                        if -2.99999999999999987e-46 < a < 3.2000000000000001e-26

                        1. Initial program 76.4%

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

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

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

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

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

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

                            \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
                          9. *-lowering-*.f64N/A

                            \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - a}{z}\right)}\right)\right) \]
                          10. --lowering--.f64N/A

                            \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - a}}{z}\right)\right)\right) \]
                          11. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - a\right), \color{blue}{z}\right)\right)\right) \]
                          12. --lowering--.f6482.9%

                            \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right)\right)\right) \]
                        5. Simplified82.9%

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

                          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
                        7. Step-by-step derivation
                          1. /-lowering-/.f6480.0%

                            \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
                        8. Simplified80.0%

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

                        if 3.2000000000000001e-26 < a

                        1. Initial program 87.9%

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

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

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

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

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

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

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t - x}}{a}\right)\right)\right) \]
                          6. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{a}\right)\right)\right) \]
                          7. --lowering--.f6477.3%

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
                        5. Simplified77.3%

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\color{blue}{t}, a\right)\right)\right) \]
                        7. Step-by-step derivation
                          1. Simplified67.0%

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

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

                        Alternative 13: 60.1% accurate, 0.7× speedup?

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

                          1. Initial program 85.5%

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

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

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

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
                            3. --lowering--.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
                            4. --lowering--.f6453.9%

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
                          5. Simplified53.9%

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

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

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

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

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t}}{a - z}\right)\right) \]
                            5. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(t, \color{blue}{\left(a - z\right)}\right)\right) \]
                            6. --lowering--.f6475.6%

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(t, \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right) \]
                          7. Applied egg-rr75.6%

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

                          if -2.49999999999999992e89 < t < 7.39999999999999997e-12

                          1. Initial program 80.0%

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

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

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

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

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(\left(y - z\right) \cdot \left(t - x\right)\right)}\right)\right)\right) \]
                            5. --lowering--.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{\left(y - z\right)} \cdot \left(t - x\right)\right)\right)\right)\right) \]
                            6. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\left(y - z\right), \color{blue}{\left(t - x\right)}\right)\right)\right)\right) \]
                            7. --lowering--.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{t} - x\right)\right)\right)\right)\right) \]
                            8. --lowering--.f6477.4%

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right)\right)\right) \]
                          4. Applied egg-rr77.4%

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

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

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

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

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

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

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{a - z}{y - z}\right)}\right)\right) \]
                            7. --lowering--.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{a - z}}{y - z}\right)\right)\right) \]
                            8. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right)\right) \]
                            9. --lowering--.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right)\right) \]
                            10. --lowering--.f6484.2%

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right)\right) \]
                          6. Applied egg-rr84.2%

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

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{a}{y}\right)}\right)\right) \]
                          8. Step-by-step derivation
                            1. /-lowering-/.f6459.2%

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(a, \color{blue}{y}\right)\right)\right) \]
                          9. Simplified59.2%

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

                        Alternative 14: 59.5% accurate, 0.7× speedup?

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

                          1. Initial program 85.5%

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

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

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

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
                            3. --lowering--.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
                            4. --lowering--.f6453.9%

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
                          5. Simplified53.9%

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

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

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

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

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t}}{a - z}\right)\right) \]
                            5. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(t, \color{blue}{\left(a - z\right)}\right)\right) \]
                            6. --lowering--.f6475.6%

                              \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(t, \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right) \]
                          7. Applied egg-rr75.6%

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

                          if -9.5000000000000003e89 < t < 1.55000000000000014e-11

                          1. Initial program 80.0%

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

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

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

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

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

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

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t - x}}{a}\right)\right)\right) \]
                            6. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{a}\right)\right)\right) \]
                            7. --lowering--.f6459.2%

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
                          5. Simplified59.2%

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

                            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
                          7. Step-by-step derivation
                            1. Simplified58.6%

                              \[\leadsto x + \color{blue}{y} \cdot \frac{t - x}{a} \]
                          8. Recombined 2 regimes into one program.
                          9. Add Preprocessing

                          Alternative 15: 56.8% accurate, 0.7× speedup?

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

                            1. Initial program 85.5%

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

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

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

                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
                              3. --lowering--.f64N/A

                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
                              4. --lowering--.f6453.9%

                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
                            5. Simplified53.9%

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

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

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

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

                                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t}}{a - z}\right)\right) \]
                              5. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(t, \color{blue}{\left(a - z\right)}\right)\right) \]
                              6. --lowering--.f6475.6%

                                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(t, \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right) \]
                            7. Applied egg-rr75.6%

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

                            if -1.55e89 < t < 5.09999999999999983e-18

                            1. Initial program 80.0%

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

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

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

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

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

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

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t - x}}{a}\right)\right)\right) \]
                              6. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{a}\right)\right)\right) \]
                              7. --lowering--.f6459.2%

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
                            5. Simplified59.2%

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

                              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
                            7. Step-by-step derivation
                              1. Simplified58.6%

                                \[\leadsto x + \color{blue}{y} \cdot \frac{t - x}{a} \]
                              2. Taylor expanded in x around inf

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

                                  \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(1 + -1 \cdot \frac{y}{a}\right)}\right) \]
                                2. mul-1-negN/A

                                  \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{a}\right)\right)\right)\right) \]
                                3. unsub-negN/A

                                  \[\leadsto \mathsf{*.f64}\left(x, \left(1 - \color{blue}{\frac{y}{a}}\right)\right) \]
                                4. --lowering--.f64N/A

                                  \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{a}\right)}\right)\right) \]
                                5. /-lowering-/.f6453.5%

                                  \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right) \]
                              4. Simplified53.5%

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

                            Alternative 16: 49.0% accurate, 0.8× speedup?

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

                              1. Initial program 60.3%

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

                                \[\leadsto \color{blue}{t} \]
                              4. Step-by-step derivation
                                1. Simplified48.2%

                                  \[\leadsto \color{blue}{t} \]

                                if -1.45e65 < z < 1.6999999999999999e39

                                1. Initial program 93.9%

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

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

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

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

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

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

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t - x}}{a}\right)\right)\right) \]
                                  6. /-lowering-/.f64N/A

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{a}\right)\right)\right) \]
                                  7. --lowering--.f6475.4%

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
                                5. Simplified75.4%

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

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
                                7. Step-by-step derivation
                                  1. Simplified70.2%

                                    \[\leadsto x + \color{blue}{y} \cdot \frac{t - x}{a} \]
                                  2. Taylor expanded in x around inf

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

                                      \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(1 + -1 \cdot \frac{y}{a}\right)}\right) \]
                                    2. mul-1-negN/A

                                      \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{a}\right)\right)\right)\right) \]
                                    3. unsub-negN/A

                                      \[\leadsto \mathsf{*.f64}\left(x, \left(1 - \color{blue}{\frac{y}{a}}\right)\right) \]
                                    4. --lowering--.f64N/A

                                      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{a}\right)}\right)\right) \]
                                    5. /-lowering-/.f6451.1%

                                      \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right) \]
                                  4. Simplified51.1%

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

                                Alternative 17: 38.1% accurate, 1.2× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -4.4 \cdot 10^{-40}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 2.65 \cdot 10^{+20}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (if (<= a -4.4e-40) x (if (<= a 2.65e+20) t x)))
                                double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (a <= -4.4e-40) {
                                		tmp = x;
                                	} else if (a <= 2.65e+20) {
                                		tmp = t;
                                	} else {
                                		tmp = 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 <= (-4.4d-40)) then
                                        tmp = x
                                    else if (a <= 2.65d+20) then
                                        tmp = t
                                    else
                                        tmp = 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 <= -4.4e-40) {
                                		tmp = x;
                                	} else if (a <= 2.65e+20) {
                                		tmp = t;
                                	} else {
                                		tmp = x;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	tmp = 0
                                	if a <= -4.4e-40:
                                		tmp = x
                                	elif a <= 2.65e+20:
                                		tmp = t
                                	else:
                                		tmp = x
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	tmp = 0.0
                                	if (a <= -4.4e-40)
                                		tmp = x;
                                	elseif (a <= 2.65e+20)
                                		tmp = t;
                                	else
                                		tmp = x;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a)
                                	tmp = 0.0;
                                	if (a <= -4.4e-40)
                                		tmp = x;
                                	elseif (a <= 2.65e+20)
                                		tmp = t;
                                	else
                                		tmp = x;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.4e-40], x, If[LessEqual[a, 2.65e+20], t, x]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;a \leq -4.4 \cdot 10^{-40}:\\
                                \;\;\;\;x\\
                                
                                \mathbf{elif}\;a \leq 2.65 \cdot 10^{+20}:\\
                                \;\;\;\;t\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;x\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if a < -4.40000000000000018e-40 or 2.65e20 < a

                                  1. Initial program 88.9%

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

                                    \[\leadsto \color{blue}{x} \]
                                  4. Step-by-step derivation
                                    1. Simplified42.1%

                                      \[\leadsto \color{blue}{x} \]

                                    if -4.40000000000000018e-40 < a < 2.65e20

                                    1. Initial program 76.3%

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

                                      \[\leadsto \color{blue}{t} \]
                                    4. Step-by-step derivation
                                      1. Simplified36.2%

                                        \[\leadsto \color{blue}{t} \]
                                    5. Recombined 2 regimes into one program.
                                    6. Add Preprocessing

                                    Alternative 18: 25.4% accurate, 13.0× speedup?

                                    \[\begin{array}{l} \\ t \end{array} \]
                                    (FPCore (x y z t a) :precision binary64 t)
                                    double code(double x, double y, double z, double t, double a) {
                                    	return t;
                                    }
                                    
                                    real(8) function code(x, y, z, t, a)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        real(8), intent (in) :: z
                                        real(8), intent (in) :: t
                                        real(8), intent (in) :: a
                                        code = t
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t, double a) {
                                    	return t;
                                    }
                                    
                                    def code(x, y, z, t, a):
                                    	return t
                                    
                                    function code(x, y, z, t, a)
                                    	return t
                                    end
                                    
                                    function tmp = code(x, y, z, t, a)
                                    	tmp = t;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := t
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    t
                                    \end{array}
                                    
                                    Derivation
                                    1. Initial program 82.5%

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

                                      \[\leadsto \color{blue}{t} \]
                                    4. Step-by-step derivation
                                      1. Simplified23.9%

                                        \[\leadsto \color{blue}{t} \]
                                      2. Add Preprocessing

                                      Reproduce

                                      ?
                                      herbie shell --seed 2024161 
                                      (FPCore (x y z t a)
                                        :name "Numeric.Signal:interpolate   from hsignal-0.2.7.1"
                                        :precision binary64
                                        (+ x (* (- y z) (/ (- t x) (- a z)))))