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

Percentage Accurate: 68.2% → 88.0%
Time: 16.9s
Alternatives: 16
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 16 alternatives:

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

Initial Program: 68.2% 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: 88.0% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{+85}:\\
\;\;\;\;y + \frac{1}{\frac{\frac{t}{y - x}}{a - z}}\\

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

\mathbf{else}:\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -3e85

    1. Initial program 23.7%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{z - t}{a - t} \cdot \color{blue}{\left(y - x\right)}\right)\right) \]
      2. 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) \]
      3. 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) \]
      4. 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) \]
      5. /-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) \]
      6. /-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) \]
      7. --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) \]
      8. --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) \]
      9. 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) \]
      10. 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) \]
      11. /-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) \]
      12. --lowering--.f6451.9%

        \[\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) \]
    6. Applied egg-rr51.9%

      \[\leadsto x + \color{blue}{\frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}} \]
    7. 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}} \]
    8. 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. associate-*r/N/A

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

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

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

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

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

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

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

        \[\leadsto y - \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
      11. --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) \]
      12. /-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) \]
    9. Simplified57.0%

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

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

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

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

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

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

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

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

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

    if -3e85 < t < 6.2e126

    1. Initial program 85.6%

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

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

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

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

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

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

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

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

    if 6.2e126 < t

    1. Initial program 22.9%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{z - t}{a - t} \cdot \color{blue}{\left(y - x\right)}\right)\right) \]
      2. 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) \]
      3. 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) \]
      4. 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) \]
      5. /-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) \]
      6. /-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) \]
      7. --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) \]
      8. --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) \]
      9. 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) \]
      10. 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) \]
      11. /-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) \]
      12. --lowering--.f6463.9%

        \[\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) \]
    6. Applied egg-rr63.9%

      \[\leadsto x + \color{blue}{\frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}} \]
    7. 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}} \]
    8. 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. associate-*r/N/A

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

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

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

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

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

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

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

        \[\leadsto y - \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
      11. --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) \]
      12. /-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) \]
    9. Simplified61.5%

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

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

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

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

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

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

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

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

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

Alternative 2: 66.2% accurate, 0.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.12 \cdot 10^{+48}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\

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

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

\mathbf{elif}\;a \leq 4.1 \cdot 10^{+17}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\

\mathbf{else}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if a < -1.11999999999999995e48

    1. Initial program 65.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -1.11999999999999995e48 < a < -4.20000000000000016e-139

      1. Initial program 72.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -4.20000000000000016e-139 < a < 7.2e-214

      1. Initial program 66.0%

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{z - t}{a - t} \cdot \color{blue}{\left(y - x\right)}\right)\right) \]
        2. 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) \]
        3. 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) \]
        4. 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) \]
        5. /-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) \]
        6. /-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) \]
        7. --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) \]
        8. --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) \]
        9. 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) \]
        10. 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) \]
        11. /-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) \]
        12. --lowering--.f6477.4%

          \[\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) \]
      6. Applied egg-rr77.4%

        \[\leadsto x + \color{blue}{\frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}} \]
      7. 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}} \]
      8. 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. associate-*r/N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 7.2e-214 < a < 4.1e17

      1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 4.1e17 < a

      1. Initial program 64.6%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.12 \cdot 10^{+48}:\\ \;\;\;\;x + y \cdot \frac{z - t}{a}\\ \mathbf{elif}\;a \leq -4.2 \cdot 10^{-139}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{-214}:\\ \;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\ \mathbf{elif}\;a \leq 4.1 \cdot 10^{+17}:\\ \;\;\;\;z \cdot \frac{y - x}{a - t}\\ \mathbf{else}:\\ \;\;\;\;x + \left(y - x\right) \cdot \frac{z}{a}\\ \end{array} \]
    11. Add Preprocessing

    Alternative 3: 46.9% accurate, 0.5× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{+83}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 8.4 \cdot 10^{-249}:\\ \;\;\;\;x + \frac{y \cdot z}{a}\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{-58}:\\ \;\;\;\;z \cdot \frac{y - x}{a}\\ \mathbf{elif}\;t \leq 3.8 \cdot 10^{+126}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (if (<= t -2.5e+83)
       y
       (if (<= t 8.4e-249)
         (+ x (/ (* y z) a))
         (if (<= t 1.75e-58)
           (* z (/ (- y x) a))
           (if (<= t 3.8e+126) (* y (/ z (- a t))) y)))))
    double code(double x, double y, double z, double t, double a) {
    	double tmp;
    	if (t <= -2.5e+83) {
    		tmp = y;
    	} else if (t <= 8.4e-249) {
    		tmp = x + ((y * z) / a);
    	} else if (t <= 1.75e-58) {
    		tmp = z * ((y - x) / a);
    	} else if (t <= 3.8e+126) {
    		tmp = y * (z / (a - t));
    	} 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.5d+83)) then
            tmp = y
        else if (t <= 8.4d-249) then
            tmp = x + ((y * z) / a)
        else if (t <= 1.75d-58) then
            tmp = z * ((y - x) / a)
        else if (t <= 3.8d+126) then
            tmp = y * (z / (a - t))
        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.5e+83) {
    		tmp = y;
    	} else if (t <= 8.4e-249) {
    		tmp = x + ((y * z) / a);
    	} else if (t <= 1.75e-58) {
    		tmp = z * ((y - x) / a);
    	} else if (t <= 3.8e+126) {
    		tmp = y * (z / (a - t));
    	} else {
    		tmp = y;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a):
    	tmp = 0
    	if t <= -2.5e+83:
    		tmp = y
    	elif t <= 8.4e-249:
    		tmp = x + ((y * z) / a)
    	elif t <= 1.75e-58:
    		tmp = z * ((y - x) / a)
    	elif t <= 3.8e+126:
    		tmp = y * (z / (a - t))
    	else:
    		tmp = y
    	return tmp
    
    function code(x, y, z, t, a)
    	tmp = 0.0
    	if (t <= -2.5e+83)
    		tmp = y;
    	elseif (t <= 8.4e-249)
    		tmp = Float64(x + Float64(Float64(y * z) / a));
    	elseif (t <= 1.75e-58)
    		tmp = Float64(z * Float64(Float64(y - x) / a));
    	elseif (t <= 3.8e+126)
    		tmp = Float64(y * Float64(z / Float64(a - t)));
    	else
    		tmp = y;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a)
    	tmp = 0.0;
    	if (t <= -2.5e+83)
    		tmp = y;
    	elseif (t <= 8.4e-249)
    		tmp = x + ((y * z) / a);
    	elseif (t <= 1.75e-58)
    		tmp = z * ((y - x) / a);
    	elseif (t <= 3.8e+126)
    		tmp = y * (z / (a - t));
    	else
    		tmp = y;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.5e+83], y, If[LessEqual[t, 8.4e-249], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e-58], N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e+126], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;t \leq -2.5 \cdot 10^{+83}:\\
    \;\;\;\;y\\
    
    \mathbf{elif}\;t \leq 8.4 \cdot 10^{-249}:\\
    \;\;\;\;x + \frac{y \cdot z}{a}\\
    
    \mathbf{elif}\;t \leq 1.75 \cdot 10^{-58}:\\
    \;\;\;\;z \cdot \frac{y - x}{a}\\
    
    \mathbf{elif}\;t \leq 3.8 \cdot 10^{+126}:\\
    \;\;\;\;y \cdot \frac{z}{a - t}\\
    
    \mathbf{else}:\\
    \;\;\;\;y\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if t < -2.50000000000000014e83 or 3.80000000000000017e126 < t

      1. Initial program 25.4%

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

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

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

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

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

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

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

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

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

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

        if -2.50000000000000014e83 < t < 8.39999999999999971e-249

        1. Initial program 93.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, z\right), a\right)\right) \]
          4. Simplified55.8%

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

          if 8.39999999999999971e-249 < t < 1.75e-58

          1. Initial program 88.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 1.75e-58 < t < 3.80000000000000017e126

          1. Initial program 60.5%

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \color{blue}{\frac{y \cdot z}{a - t}} \]
          9. 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--.f6447.4%

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{+83}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 8.4 \cdot 10^{-249}:\\ \;\;\;\;x + \frac{y \cdot z}{a}\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{-58}:\\ \;\;\;\;z \cdot \frac{y - x}{a}\\ \mathbf{elif}\;t \leq 3.8 \cdot 10^{+126}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
        11. Add Preprocessing

        Alternative 4: 76.8% accurate, 0.5× speedup?

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

          1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

            if -7.0000000000000004e24 < a < -8.00000000000000047e-122

            1. Initial program 74.7%

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

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

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

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

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

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

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

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

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

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

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

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

            if -8.00000000000000047e-122 < a < 1.5e28

            1. Initial program 68.3%

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{z - t}{a - t} \cdot \color{blue}{\left(y - x\right)}\right)\right) \]
              2. 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) \]
              3. 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) \]
              4. 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) \]
              5. /-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) \]
              6. /-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) \]
              7. --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) \]
              8. --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) \]
              9. 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) \]
              10. 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) \]
              11. /-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) \]
              12. --lowering--.f6477.9%

                \[\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) \]
            6. Applied egg-rr77.9%

              \[\leadsto x + \color{blue}{\frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}} \]
            7. 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}} \]
            8. 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. associate-*r/N/A

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

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

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

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

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

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

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

                \[\leadsto y - \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
              11. --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) \]
              12. /-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) \]
            9. Simplified76.1%

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

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

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -7 \cdot 10^{+24}:\\ \;\;\;\;x + y \cdot \frac{z - t}{a - t}\\ \mathbf{elif}\;a \leq -8 \cdot 10^{-122}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{+28}:\\ \;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{z - t}{a - t}\\ \end{array} \]
          9. Add Preprocessing

          Alternative 5: 53.6% accurate, 0.5× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y \cdot z}{a}\\ \mathbf{if}\;a \leq -1.16 \cdot 10^{+39}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -1.2 \cdot 10^{-121}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\ \mathbf{elif}\;a \leq 10^{-21}:\\ \;\;\;\;y \cdot \left(1 + \frac{a - z}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (let* ((t_1 (+ x (/ (* y z) a))))
             (if (<= a -1.16e+39)
               t_1
               (if (<= a -1.2e-121)
                 (/ (* (- y x) z) a)
                 (if (<= a 1e-21) (* y (+ 1.0 (/ (- a z) t))) t_1)))))
          double code(double x, double y, double z, double t, double a) {
          	double t_1 = x + ((y * z) / a);
          	double tmp;
          	if (a <= -1.16e+39) {
          		tmp = t_1;
          	} else if (a <= -1.2e-121) {
          		tmp = ((y - x) * z) / a;
          	} else if (a <= 1e-21) {
          		tmp = y * (1.0 + ((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) :: tmp
              t_1 = x + ((y * z) / a)
              if (a <= (-1.16d+39)) then
                  tmp = t_1
              else if (a <= (-1.2d-121)) then
                  tmp = ((y - x) * z) / a
              else if (a <= 1d-21) then
                  tmp = y * (1.0d0 + ((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 * z) / a);
          	double tmp;
          	if (a <= -1.16e+39) {
          		tmp = t_1;
          	} else if (a <= -1.2e-121) {
          		tmp = ((y - x) * z) / a;
          	} else if (a <= 1e-21) {
          		tmp = y * (1.0 + ((a - z) / t));
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a):
          	t_1 = x + ((y * z) / a)
          	tmp = 0
          	if a <= -1.16e+39:
          		tmp = t_1
          	elif a <= -1.2e-121:
          		tmp = ((y - x) * z) / a
          	elif a <= 1e-21:
          		tmp = y * (1.0 + ((a - z) / t))
          	else:
          		tmp = t_1
          	return tmp
          
          function code(x, y, z, t, a)
          	t_1 = Float64(x + Float64(Float64(y * z) / a))
          	tmp = 0.0
          	if (a <= -1.16e+39)
          		tmp = t_1;
          	elseif (a <= -1.2e-121)
          		tmp = Float64(Float64(Float64(y - x) * z) / a);
          	elseif (a <= 1e-21)
          		tmp = Float64(y * Float64(1.0 + Float64(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 * z) / a);
          	tmp = 0.0;
          	if (a <= -1.16e+39)
          		tmp = t_1;
          	elseif (a <= -1.2e-121)
          		tmp = ((y - x) * z) / a;
          	elseif (a <= 1e-21)
          		tmp = y * (1.0 + ((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 * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.16e+39], t$95$1, If[LessEqual[a, -1.2e-121], N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[a, 1e-21], N[(y * N[(1.0 + N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := x + \frac{y \cdot z}{a}\\
          \mathbf{if}\;a \leq -1.16 \cdot 10^{+39}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;a \leq -1.2 \cdot 10^{-121}:\\
          \;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\
          
          \mathbf{elif}\;a \leq 10^{-21}:\\
          \;\;\;\;y \cdot \left(1 + \frac{a - z}{t}\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if a < -1.16000000000000003e39 or 9.99999999999999908e-22 < a

            1. Initial program 66.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.16000000000000003e39 < a < -1.20000000000000002e-121

              1. Initial program 74.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.20000000000000002e-121 < a < 9.99999999999999908e-22

              1. Initial program 68.4%

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{z - t}{a - t} \cdot \color{blue}{\left(y - x\right)}\right)\right) \]
                2. 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) \]
                3. 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) \]
                4. 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) \]
                5. /-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) \]
                6. /-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) \]
                7. --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) \]
                8. --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) \]
                9. 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) \]
                10. 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) \]
                11. /-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) \]
                12. --lowering--.f6477.9%

                  \[\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) \]
              6. Applied egg-rr77.9%

                \[\leadsto x + \color{blue}{\frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}} \]
              7. 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}} \]
              8. 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. associate-*r/N/A

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

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

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

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

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

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

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

                  \[\leadsto y - \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
                11. --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) \]
                12. /-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) \]
              9. Simplified77.6%

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(z, a\right), t\right)\right)\right) \]
              12. Simplified54.0%

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

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

            Alternative 6: 88.2% accurate, 0.6× speedup?

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

              1. Initial program 23.3%

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{z - t}{a - t} \cdot \color{blue}{\left(y - x\right)}\right)\right) \]
                2. 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) \]
                3. 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) \]
                4. 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) \]
                5. /-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) \]
                6. /-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) \]
                7. --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) \]
                8. --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) \]
                9. 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) \]
                10. 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) \]
                11. /-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) \]
                12. --lowering--.f6457.2%

                  \[\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) \]
              6. Applied egg-rr57.2%

                \[\leadsto x + \color{blue}{\frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}} \]
              7. 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}} \]
              8. 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. associate-*r/N/A

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

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

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

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

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

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

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

                  \[\leadsto y - \color{blue}{\frac{z \cdot \left(y - x\right) - a \cdot \left(y - x\right)}{t}} \]
                11. --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) \]
                12. /-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) \]
              9. Simplified59.0%

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

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

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

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

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

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

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

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

              if -6.0000000000000001e85 < t < 3.1000000000000002e127

              1. Initial program 85.6%

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

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

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

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

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

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

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

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

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

            Alternative 7: 71.6% accurate, 0.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y - x\right) \cdot \frac{z}{a - t}\\ \mathbf{if}\;z \leq -390000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.4 \cdot 10^{+34}:\\ \;\;\;\;x + 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 (* (- y x) (/ z (- a t)))))
               (if (<= z -390000.0)
                 t_1
                 (if (<= z 4.4e+34) (+ x (* y (/ (- z t) (- a t)))) t_1))))
            double code(double x, double y, double z, double t, double a) {
            	double t_1 = (y - x) * (z / (a - t));
            	double tmp;
            	if (z <= -390000.0) {
            		tmp = t_1;
            	} else if (z <= 4.4e+34) {
            		tmp = x + (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 = (y - x) * (z / (a - t))
                if (z <= (-390000.0d0)) then
                    tmp = t_1
                else if (z <= 4.4d+34) then
                    tmp = x + (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 = (y - x) * (z / (a - t));
            	double tmp;
            	if (z <= -390000.0) {
            		tmp = t_1;
            	} else if (z <= 4.4e+34) {
            		tmp = x + (y * ((z - t) / (a - t)));
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a):
            	t_1 = (y - x) * (z / (a - t))
            	tmp = 0
            	if z <= -390000.0:
            		tmp = t_1
            	elif z <= 4.4e+34:
            		tmp = x + (y * ((z - t) / (a - t)))
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t, a)
            	t_1 = Float64(Float64(y - x) * Float64(z / Float64(a - t)))
            	tmp = 0.0
            	if (z <= -390000.0)
            		tmp = t_1;
            	elseif (z <= 4.4e+34)
            		tmp = Float64(x + 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 = (y - x) * (z / (a - t));
            	tmp = 0.0;
            	if (z <= -390000.0)
            		tmp = t_1;
            	elseif (z <= 4.4e+34)
            		tmp = x + (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[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -390000.0], t$95$1, If[LessEqual[z, 4.4e+34], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(y - x\right) \cdot \frac{z}{a - t}\\
            \mathbf{if}\;z \leq -390000:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 4.4 \cdot 10^{+34}:\\
            \;\;\;\;x + y \cdot \frac{z - t}{a - t}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -3.9e5 or 4.4000000000000005e34 < z

              1. Initial program 69.1%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{\frac{z \cdot \left(y - x\right)}{a - t}} \]
              8. 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--.f6483.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) \]
              9. Applied egg-rr83.2%

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

              if -3.9e5 < z < 4.4000000000000005e34

              1. Initial program 67.0%

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

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

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

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

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

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

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

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

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

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

              Alternative 8: 45.5% accurate, 0.6× speedup?

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

                1. Initial program 26.4%

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{y} \]
                6. Step-by-step derivation
                  1. Simplified43.9%

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

                  if -1.65e81 < t < 8.3999999999999998e-57

                  1. Initial program 91.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{\_.f64}\left(x, \left(\mathsf{neg}\left(\frac{y - x}{\frac{a - t}{z - t}}\right)\right)\right) \]
                    10. distribute-neg-frac2N/A

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

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

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, x\right), \left(\mathsf{neg}\left(\color{blue}{\frac{a - t}{z - t}}\right)\right)\right)\right) \]
                    13. distribute-neg-frac2N/A

                      \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, x\right), \left(\frac{a - t}{\color{blue}{\mathsf{neg}\left(\left(z - t\right)\right)}}\right)\right)\right) \]
                    14. /-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(\mathsf{neg}\left(\left(z - t\right)\right)\right)}\right)\right)\right) \]
                    15. --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(\mathsf{neg}\left(\color{blue}{\left(z - t\right)}\right)\right)\right)\right)\right) \]
                    16. neg-sub0N/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(0 - \color{blue}{\left(z - t\right)}\right)\right)\right)\right) \]
                    17. sub-negN/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(0 - \left(z + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)}\right)\right)\right)\right)\right) \]
                    18. +-commutativeN/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(0 - \left(\left(\mathsf{neg}\left(t\right)\right) + \color{blue}{z}\right)\right)\right)\right)\right) \]
                    19. associate--r+N/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(\left(0 - \left(\mathsf{neg}\left(t\right)\right)\right) - \color{blue}{z}\right)\right)\right)\right) \]
                    20. neg-sub0N/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(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - z\right)\right)\right)\right) \]
                    21. remove-double-negN/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(t - z\right)\right)\right)\right) \]
                    22. --lowering--.f6494.4%

                      \[\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(t, \color{blue}{z}\right)\right)\right)\right) \]
                  6. Applied egg-rr94.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 8.3999999999999998e-57 < t < 5.5000000000000004e126

                  1. Initial program 59.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 9: 60.8% accurate, 0.7× speedup?

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

                    1. Initial program 65.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -4.1e46 < a < 2.25e18

                      1. Initial program 70.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 2.25e18 < a

                      1. Initial program 64.6%

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 10: 60.5% accurate, 0.7× speedup?

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

                      1. Initial program 65.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -3.49999999999999975e49 < a < 1.7e17

                        1. Initial program 70.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if 1.7e17 < a

                        1. Initial program 64.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 11: 60.8% accurate, 0.7× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + y \cdot \frac{z - t}{a}\\ \mathbf{if}\;a \leq -3.05 \cdot 10^{+47}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.25 \cdot 10^{+31}:\\ \;\;\;\;\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 (* y (/ (- z t) a)))))
                         (if (<= a -3.05e+47)
                           t_1
                           (if (<= a 1.25e+31) (* (- y x) (/ z (- a t))) t_1))))
                      double code(double x, double y, double z, double t, double a) {
                      	double t_1 = x + (y * ((z - t) / a));
                      	double tmp;
                      	if (a <= -3.05e+47) {
                      		tmp = t_1;
                      	} else if (a <= 1.25e+31) {
                      		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 + (y * ((z - t) / a))
                          if (a <= (-3.05d+47)) then
                              tmp = t_1
                          else if (a <= 1.25d+31) 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 + (y * ((z - t) / a));
                      	double tmp;
                      	if (a <= -3.05e+47) {
                      		tmp = t_1;
                      	} else if (a <= 1.25e+31) {
                      		tmp = (y - x) * (z / (a - t));
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a):
                      	t_1 = x + (y * ((z - t) / a))
                      	tmp = 0
                      	if a <= -3.05e+47:
                      		tmp = t_1
                      	elif a <= 1.25e+31:
                      		tmp = (y - x) * (z / (a - t))
                      	else:
                      		tmp = t_1
                      	return tmp
                      
                      function code(x, y, z, t, a)
                      	t_1 = Float64(x + Float64(y * Float64(Float64(z - t) / a)))
                      	tmp = 0.0
                      	if (a <= -3.05e+47)
                      		tmp = t_1;
                      	elseif (a <= 1.25e+31)
                      		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 + (y * ((z - t) / a));
                      	tmp = 0.0;
                      	if (a <= -3.05e+47)
                      		tmp = t_1;
                      	elseif (a <= 1.25e+31)
                      		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[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.05e+47], t$95$1, If[LessEqual[a, 1.25e+31], 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 + y \cdot \frac{z - t}{a}\\
                      \mathbf{if}\;a \leq -3.05 \cdot 10^{+47}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;a \leq 1.25 \cdot 10^{+31}:\\
                      \;\;\;\;\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 < -3.05000000000000009e47 or 1.25000000000000007e31 < a

                        1. Initial program 65.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -3.05000000000000009e47 < a < 1.25000000000000007e31

                          1. Initial program 69.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 12: 54.2% accurate, 0.7× speedup?

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

                          1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\frac{z \cdot \left(y - x\right)}{a - t}} \]
                          8. 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--.f6479.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) \]
                          9. Applied egg-rr79.6%

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

                          if -3.9e5 < z < 4.5999999999999999e-104

                          1. Initial program 64.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\left(y \cdot z\right), \color{blue}{a}\right)\right) \]
                              3. *-lowering-*.f6444.6%

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

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

                          Alternative 13: 41.0% accurate, 0.8× speedup?

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

                            1. Initial program 64.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -1.56000000000000008e88 < y < 1.3e-25

                            1. Initial program 70.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{\_.f64}\left(x, \left(\mathsf{neg}\left(\frac{y - x}{\frac{a - t}{z - t}}\right)\right)\right) \]
                              10. distribute-neg-frac2N/A

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

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

                                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, x\right), \left(\mathsf{neg}\left(\color{blue}{\frac{a - t}{z - t}}\right)\right)\right)\right) \]
                              13. distribute-neg-frac2N/A

                                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, x\right), \left(\frac{a - t}{\color{blue}{\mathsf{neg}\left(\left(z - t\right)\right)}}\right)\right)\right) \]
                              14. /-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(\mathsf{neg}\left(\left(z - t\right)\right)\right)}\right)\right)\right) \]
                              15. --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(\mathsf{neg}\left(\color{blue}{\left(z - t\right)}\right)\right)\right)\right)\right) \]
                              16. neg-sub0N/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(0 - \color{blue}{\left(z - t\right)}\right)\right)\right)\right) \]
                              17. sub-negN/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(0 - \left(z + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)}\right)\right)\right)\right)\right) \]
                              18. +-commutativeN/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(0 - \left(\left(\mathsf{neg}\left(t\right)\right) + \color{blue}{z}\right)\right)\right)\right)\right) \]
                              19. associate--r+N/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(\left(0 - \left(\mathsf{neg}\left(t\right)\right)\right) - \color{blue}{z}\right)\right)\right)\right) \]
                              20. neg-sub0N/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(\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(t\right)\right)\right)\right) - z\right)\right)\right)\right) \]
                              21. remove-double-negN/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(t - z\right)\right)\right)\right) \]
                              22. --lowering--.f6477.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(t, \color{blue}{z}\right)\right)\right)\right) \]
                            6. Applied egg-rr77.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 14: 33.9% accurate, 0.9× speedup?

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

                            1. Initial program 27.4%

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

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

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

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

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

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

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

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

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

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

                              if -1.40000000000000001e71 < t < 4.1999999999999998e126

                              1. Initial program 85.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 15: 39.1% accurate, 1.2× speedup?

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

                                1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

                                  if -1.30000000000000007e79 < a < 4.99999999999999973e-21

                                  1. Initial program 70.2%

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

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

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{y} \]
                                  6. Step-by-step derivation
                                    1. Simplified24.0%

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

                                  Alternative 16: 25.8% 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 68.1%

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

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

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

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

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

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

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

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

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

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

                                    Developer Target 1: 86.5% 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 2024191 
                                    (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))))