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

Percentage Accurate: 67.8% → 90.8%
Time: 13.8s
Alternatives: 18
Speedup: 0.6×

Specification

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

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

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

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

Alternative 1: 90.8% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 4.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 78.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 82.6% accurate, 0.2× speedup?

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

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

\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-289}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+294}:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 29.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1e-289 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2.00000000000000013e294

    1. Initial program 96.7%

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

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

    1. Initial program 4.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 52.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 90.8% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 4.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 65.5% accurate, 0.5× speedup?

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

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

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

\mathbf{elif}\;a \leq 110000000000:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.05e-10 or 1.1e11 < a

    1. Initial program 70.7%

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

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

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

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

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

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

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

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

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

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

    if -1.05e-10 < a < 1.25e-220

    1. Initial program 68.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.25e-220 < a < 1.1e11

    1. Initial program 69.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 5: 61.9% accurate, 0.5× speedup?

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

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

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

\mathbf{elif}\;a \leq 82000000000:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2.6e-13 or 8.2e10 < a

    1. Initial program 70.3%

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

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

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

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

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

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

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

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

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

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

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

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

      if -2.6e-13 < a < 1.8000000000000001e-220

      1. Initial program 69.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 1.8000000000000001e-220 < a < 8.2e10

      1. Initial program 69.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.6 \cdot 10^{-13}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \mathbf{elif}\;a \leq 1.8 \cdot 10^{-220}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\ \mathbf{elif}\;a \leq 82000000000:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \end{array} \]
    10. Add Preprocessing

    Alternative 6: 61.8% accurate, 0.5× speedup?

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

      1. Initial program 67.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -3.3999999999999998e46 < y < -4.65000000000000011e-231

      1. Initial program 79.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -4.65000000000000011e-231 < y < 5.8000000000000003e-12

      1. Initial program 66.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(a, \color{blue}{t}\right)\right)\right)\right) \]
      10. Simplified59.3%

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

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

    Alternative 7: 52.9% accurate, 0.5× speedup?

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

      1. Initial program 28.1%

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

        \[\leadsto \color{blue}{y} \]
      4. Step-by-step derivation
        1. Simplified51.3%

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

        if -7.79999999999999941e157 < t < 4.5000000000000002e-244

        1. Initial program 79.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right) \]
          4. Simplified58.6%

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

          if 4.5000000000000002e-244 < t < 6.2000000000000003e165

          1. Initial program 85.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(z, \mathsf{\_.f64}\left(a, \color{blue}{t}\right)\right)\right)\right) \]
          10. Simplified50.8%

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.8 \cdot 10^{+157}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{-244}:\\ \;\;\;\;x + z \cdot \frac{y}{a}\\ \mathbf{elif}\;t \leq 6.2 \cdot 10^{+165}:\\ \;\;\;\;x \cdot \left(\frac{z}{t - a} + 1\right)\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
        10. Add Preprocessing

        Alternative 8: 49.2% accurate, 0.6× speedup?

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

          1. Initial program 27.8%

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

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

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

            if -8.4999999999999998e157 < t < 3e13

            1. Initial program 84.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right) \]
              4. Simplified56.9%

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

              if 3e13 < t < 2.05e214

              1. Initial program 58.4%

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

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot z}{a - t}} \]
              7. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \mathsf{neg}\left(\frac{x \cdot z}{a - t}\right) \]
                2. distribute-neg-frac2N/A

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

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

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

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

                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(z, x\right), \mathsf{neg.f64}\left(\left(a - t\right)\right)\right) \]
                7. --lowering--.f6438.3%

                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(z, x\right), \mathsf{neg.f64}\left(\mathsf{\_.f64}\left(a, t\right)\right)\right) \]
              8. Simplified38.3%

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

              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.5 \cdot 10^{+157}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 30000000000000:\\ \;\;\;\;x + z \cdot \frac{y}{a}\\ \mathbf{elif}\;t \leq 2.05 \cdot 10^{+214}:\\ \;\;\;\;\frac{x \cdot z}{t - a}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
            10. Add Preprocessing

            Alternative 9: 36.8% accurate, 0.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.65 \cdot 10^{+42}:\\ \;\;\;\;z \cdot \frac{y - x}{a}\\ \mathbf{elif}\;z \leq -1.65 \cdot 10^{-279}:\\ \;\;\;\;y\\ \mathbf{elif}\;z \leq 2.6 \cdot 10^{-142}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (if (<= z -2.65e+42)
               (* z (/ (- y x) a))
               (if (<= z -1.65e-279) y (if (<= z 2.6e-142) x (* y (/ z (- a t)))))))
            double code(double x, double y, double z, double t, double a) {
            	double tmp;
            	if (z <= -2.65e+42) {
            		tmp = z * ((y - x) / a);
            	} else if (z <= -1.65e-279) {
            		tmp = y;
            	} else if (z <= 2.6e-142) {
            		tmp = x;
            	} else {
            		tmp = y * (z / (a - t));
            	}
            	return tmp;
            }
            
            real(8) function code(x, y, z, t, a)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8) :: tmp
                if (z <= (-2.65d+42)) then
                    tmp = z * ((y - x) / a)
                else if (z <= (-1.65d-279)) then
                    tmp = y
                else if (z <= 2.6d-142) then
                    tmp = x
                else
                    tmp = y * (z / (a - t))
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a) {
            	double tmp;
            	if (z <= -2.65e+42) {
            		tmp = z * ((y - x) / a);
            	} else if (z <= -1.65e-279) {
            		tmp = y;
            	} else if (z <= 2.6e-142) {
            		tmp = x;
            	} else {
            		tmp = y * (z / (a - t));
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a):
            	tmp = 0
            	if z <= -2.65e+42:
            		tmp = z * ((y - x) / a)
            	elif z <= -1.65e-279:
            		tmp = y
            	elif z <= 2.6e-142:
            		tmp = x
            	else:
            		tmp = y * (z / (a - t))
            	return tmp
            
            function code(x, y, z, t, a)
            	tmp = 0.0
            	if (z <= -2.65e+42)
            		tmp = Float64(z * Float64(Float64(y - x) / a));
            	elseif (z <= -1.65e-279)
            		tmp = y;
            	elseif (z <= 2.6e-142)
            		tmp = x;
            	else
            		tmp = Float64(y * Float64(z / Float64(a - t)));
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a)
            	tmp = 0.0;
            	if (z <= -2.65e+42)
            		tmp = z * ((y - x) / a);
            	elseif (z <= -1.65e-279)
            		tmp = y;
            	elseif (z <= 2.6e-142)
            		tmp = x;
            	else
            		tmp = y * (z / (a - t));
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.65e+42], N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.65e-279], y, If[LessEqual[z, 2.6e-142], x, N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -2.65 \cdot 10^{+42}:\\
            \;\;\;\;z \cdot \frac{y - x}{a}\\
            
            \mathbf{elif}\;z \leq -1.65 \cdot 10^{-279}:\\
            \;\;\;\;y\\
            
            \mathbf{elif}\;z \leq 2.6 \cdot 10^{-142}:\\
            \;\;\;\;x\\
            
            \mathbf{else}:\\
            \;\;\;\;y \cdot \frac{z}{a - t}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if z < -2.65000000000000014e42

              1. Initial program 80.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -2.65000000000000014e42 < z < -1.65e-279

                1. Initial program 60.1%

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

                  \[\leadsto \color{blue}{y} \]
                4. Step-by-step derivation
                  1. Simplified40.3%

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

                  if -1.65e-279 < z < 2.6e-142

                  1. Initial program 76.4%

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

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

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

                    if 2.6e-142 < z

                    1. Initial program 67.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 10: 72.6% accurate, 0.6× speedup?

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

                    1. Initial program 27.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -4.7999999999999998e173 < t < 4.49999999999999981e-12

                    1. Initial program 84.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 4.49999999999999981e-12 < t

                    1. Initial program 50.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 11: 72.6% accurate, 0.6× speedup?

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

                    1. Initial program 28.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -4.7999999999999998e173 < t < 2.7499999999999999e165

                    1. Initial program 80.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 12: 32.9% accurate, 0.6× speedup?

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

                    1. Initial program 74.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{z}{a}\right)}\right) \]
                    10. Step-by-step derivation
                      1. /-lowering-/.f6435.9%

                        \[\leadsto \mathsf{*.f64}\left(y, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right) \]
                    11. Simplified35.9%

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

                    if -6.60000000000000045e48 < z < -1.24999999999999992e-279

                    1. Initial program 60.8%

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

                      \[\leadsto \color{blue}{y} \]
                    4. Step-by-step derivation
                      1. Simplified39.7%

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

                      if -1.24999999999999992e-279 < z < 1.55e-45

                      1. Initial program 69.3%

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

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

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

                      Alternative 13: 56.2% accurate, 0.7× speedup?

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

                        1. Initial program 72.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -1.32000000000000006e125 < a < 2.89999999999999978e37

                          1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 14: 51.9% accurate, 0.8× speedup?

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

                          1. Initial program 33.3%

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

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

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

                            if -7.79999999999999941e157 < t < 2.8000000000000002e136

                            1. Initial program 82.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(z, \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right) \]
                              4. Simplified52.9%

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

                            Alternative 15: 41.3% accurate, 0.8× speedup?

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

                              1. Initial program 58.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), a\right)\right)\right) \]
                              8. Simplified45.9%

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

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

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

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

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

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

                              if -1.1e12 < x < 1.3500000000000001e-21

                              1. Initial program 80.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

                            Alternative 16: 48.2% accurate, 0.8× speedup?

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

                              1. Initial program 29.4%

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

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

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

                                if -2.69999999999999985e135 < t < 8.20000000000000032e164

                                1. Initial program 83.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, t\right), a\right)\right)\right) \]
                                8. Simplified43.2%

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

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

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

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

                                    \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(z, \color{blue}{a}\right)\right)\right) \]
                                11. Simplified43.3%

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

                              Alternative 17: 38.5% accurate, 1.2× speedup?

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

                                1. Initial program 73.3%

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

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

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

                                  if -1.15e147 < a < 1.29999999999999989e-4

                                  1. Initial program 67.6%

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

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

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

                                  Alternative 18: 24.9% accurate, 13.0× speedup?

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

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

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

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

                                    Developer Target 1: 86.7% accurate, 0.5× speedup?

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

                                    Reproduce

                                    ?
                                    herbie shell --seed 2024158 
                                    (FPCore (x y z t a)
                                      :name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
                                      :precision binary64
                                    
                                      :alt
                                      (! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
                                    
                                      (+ x (/ (* (- y x) (- z t)) (- a t))))