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

Percentage Accurate: 68.2% → 91.0%
Time: 13.6s
Alternatives: 21
Speedup: 0.7×

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 21 alternatives:

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

Initial Program: 68.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: 91.0% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 76.0%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 4.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 91.0% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 76.0%

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

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

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

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

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(z - t\right), \left(a - t\right)\right), \left(\color{blue}{y} - x\right)\right)\right) \]
      5. --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(y - x\right)\right)\right) \]
      6. --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(y - x\right)\right)\right) \]
      7. --lowering--.f6487.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(y, \color{blue}{x}\right)\right)\right) \]
    4. Applied egg-rr87.9%

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

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

    1. Initial program 4.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 50.9% accurate, 0.4× speedup?

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

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

\mathbf{elif}\;t \leq 1.7 \cdot 10^{-185}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 2.2 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\

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

\mathbf{elif}\;t \leq 1.4 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;y\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -2.6e135 or 1.4e68 < t

    1. Initial program 37.4%

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

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

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

      if -2.6e135 < t < 1.6999999999999999e-185 or 1.58e7 < t < 1.4e68

      1. Initial program 88.1%

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
      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{a}{z}\right)}\right)\right) \]
      6. Step-by-step derivation
        1. /-lowering-/.f6471.6%

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

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

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

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

        if 1.6999999999999999e-185 < t < 2.20000000000000004e-56

        1. Initial program 82.0%

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

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

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

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

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

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

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

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

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

        if 2.20000000000000004e-56 < t < 1.58e7

        1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 4: 74.0% accurate, 0.5× speedup?

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

        1. Initial program 68.2%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{+.f64}\left(x, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, t\right), \left(\color{blue}{z} - t\right)\right)\right)\right) \]
          8. --lowering--.f6484.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(z, \color{blue}{t}\right)\right)\right)\right) \]
        4. Applied egg-rr84.4%

          \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
        5. Step-by-step derivation
          1. associate-/r/N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -8.1999999999999997e35 < a < -7.5000000000000005e-67

        1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

          \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
        5. Step-by-step derivation
          1. associate-/r/N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -7.5000000000000005e-67 < a < 4.6000000000000002e-24

          1. Initial program 69.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 4.6000000000000002e-24 < a

          1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -8.2 \cdot 10^{+35}:\\ \;\;\;\;x + \frac{z - t}{\frac{a}{y - x}}\\ \mathbf{elif}\;a \leq -7.5 \cdot 10^{-67}:\\ \;\;\;\;x + \frac{z}{\frac{a - t}{y - x}}\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-24}:\\ \;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\ \end{array} \]
          9. Add Preprocessing

          Alternative 5: 73.8% accurate, 0.5× speedup?

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

            1. Initial program 69.2%

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

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

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

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

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

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

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

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

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

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

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

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

              if -6.5000000000000005e178 < a < -2.35000000000000002e-67

              1. Initial program 71.2%

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

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

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

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

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

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

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

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

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

                \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
              5. Step-by-step derivation
                1. associate-/r/N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -2.35000000000000002e-67 < a < 7.4999999999999998e-23

                1. Initial program 69.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{+178}:\\ \;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{elif}\;a \leq -2.35 \cdot 10^{-67}:\\ \;\;\;\;x + \frac{z}{\frac{a - t}{y - x}}\\ \mathbf{elif}\;a \leq 7.5 \cdot 10^{-23}:\\ \;\;\;\;y + \frac{z \cdot \left(x - y\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\ \end{array} \]
              11. Add Preprocessing

              Alternative 6: 63.9% accurate, 0.5× speedup?

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

                1. Initial program 42.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -9.6000000000000007e128 < t < 6.4999999999999997e-56

                1. Initial program 87.3%

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(y - x\right), \color{blue}{\left(\frac{z}{a}\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}}{a}\right)\right)\right) \]
                  5. /-lowering-/.f6469.7%

                    \[\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. Applied egg-rr69.7%

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

                if 6.4999999999999997e-56 < t < 1.52e7

                1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 7: 58.3% accurate, 0.5× speedup?

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

                1. Initial program 70.1%

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

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

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

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

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

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

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

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

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

                  \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                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{a}{z}\right)}\right)\right) \]
                6. Step-by-step derivation
                  1. /-lowering-/.f6466.5%

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

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

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

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

                  if -1.4999999999999999e54 < a < 2.50000000000000007e-207

                  1. Initial program 68.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 2.50000000000000007e-207 < a < 1.99999999999999992e-23

                  1. Initial program 72.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.5 \cdot 10^{+54}:\\ \;\;\;\;x + \frac{y}{\frac{a}{z}}\\ \mathbf{elif}\;a \leq 2.5 \cdot 10^{-207}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\ \mathbf{elif}\;a \leq 2 \cdot 10^{-23}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{a}{z}}\\ \end{array} \]
                12. Add Preprocessing

                Alternative 8: 74.8% accurate, 0.6× speedup?

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

                  1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

                    \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                  5. Step-by-step derivation
                    1. associate-/r/N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -1.3499999999999999e-59 < a < 1.3999999999999999e-23

                  1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 1.3999999999999999e-23 < a

                  1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 9: 73.3% accurate, 0.6× speedup?

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

                    1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

                    if -1.55e-59 < a < 2.70000000000000007e-24

                    1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 2.70000000000000007e-24 < a

                    1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 10: 72.3% accurate, 0.6× speedup?

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

                      1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

                      if -8.50000000000000016e-61 < a < 3.55000000000000002e-29

                      1. Initial program 69.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 3.55000000000000002e-29 < a

                      1. Initial program 69.0%

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \left(\left(y - x\right) \cdot \color{blue}{\frac{z - t}{a}}\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}\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}\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}{a}\right)\right)\right) \]
                        6. --lowering--.f6474.3%

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

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

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

                    Alternative 11: 72.5% accurate, 0.6× speedup?

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

                      1. Initial program 69.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -6.80000000000000013e-60 < a < 7.49999999999999975e-31

                      1. Initial program 69.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 12: 68.3% accurate, 0.7× speedup?

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

                      1. Initial program 70.3%

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

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

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

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

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

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

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

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

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

                        \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                      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{a}{z}\right)}\right)\right) \]
                      6. Step-by-step derivation
                        1. /-lowering-/.f6461.9%

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

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

                      if -7.5e-69 < a < 2.70000000000000014e-31

                      1. Initial program 70.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 2.70000000000000014e-31 < a

                      1. Initial program 69.0%

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(y - x\right), \color{blue}{\left(\frac{z}{a}\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}}{a}\right)\right)\right) \]
                        5. /-lowering-/.f6467.3%

                          \[\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. Applied egg-rr67.3%

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

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

                    Alternative 13: 56.9% accurate, 0.7× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y}{\frac{a}{z}}\\ \mathbf{if}\;a \leq -7.8 \cdot 10^{+49}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{-22}:\\ \;\;\;\;\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 (/ a z)))))
                       (if (<= a -7.8e+49) t_1 (if (<= a 1.6e-22) (* (- y x) (/ z (- a t))) t_1))))
                    double code(double x, double y, double z, double t, double a) {
                    	double t_1 = x + (y / (a / z));
                    	double tmp;
                    	if (a <= -7.8e+49) {
                    		tmp = t_1;
                    	} else if (a <= 1.6e-22) {
                    		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 / (a / z))
                        if (a <= (-7.8d+49)) then
                            tmp = t_1
                        else if (a <= 1.6d-22) 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 / (a / z));
                    	double tmp;
                    	if (a <= -7.8e+49) {
                    		tmp = t_1;
                    	} else if (a <= 1.6e-22) {
                    		tmp = (y - x) * (z / (a - t));
                    	} else {
                    		tmp = t_1;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a):
                    	t_1 = x + (y / (a / z))
                    	tmp = 0
                    	if a <= -7.8e+49:
                    		tmp = t_1
                    	elif a <= 1.6e-22:
                    		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(a / z)))
                    	tmp = 0.0
                    	if (a <= -7.8e+49)
                    		tmp = t_1;
                    	elseif (a <= 1.6e-22)
                    		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 / (a / z));
                    	tmp = 0.0;
                    	if (a <= -7.8e+49)
                    		tmp = t_1;
                    	elseif (a <= 1.6e-22)
                    		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[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.8e+49], t$95$1, If[LessEqual[a, 1.6e-22], 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 + \frac{y}{\frac{a}{z}}\\
                    \mathbf{if}\;a \leq -7.8 \cdot 10^{+49}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;a \leq 1.6 \cdot 10^{-22}:\\
                    \;\;\;\;\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 < -7.8000000000000002e49 or 1.59999999999999994e-22 < a

                      1. Initial program 70.1%

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

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

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

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

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

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

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

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

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

                        \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                      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{a}{z}\right)}\right)\right) \]
                      6. Step-by-step derivation
                        1. /-lowering-/.f6466.5%

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

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

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

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

                        if -7.8000000000000002e49 < a < 1.59999999999999994e-22

                        1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 14: 50.0% accurate, 0.7× speedup?

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

                        1. Initial program 69.5%

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

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

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

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

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

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

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

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

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

                          \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                        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{a}{z}\right)}\right)\right) \]
                        6. Step-by-step derivation
                          1. /-lowering-/.f6463.5%

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

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

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

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

                          if -1.25e-59 < a < 2.09999999999999991e-60

                          1. Initial program 70.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 15: 81.2% accurate, 0.7× speedup?

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

                          1. Initial program 13.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -1.15e136 < t

                          1. Initial program 77.9%

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

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

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

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

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

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

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

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

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

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

                        Alternative 16: 52.4% accurate, 0.8× speedup?

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

                          1. Initial program 37.4%

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

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

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

                            if -3.10000000000000022e135 < t < 6.19999999999999992e67

                            1. Initial program 84.9%

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

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

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

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

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

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

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

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

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

                              \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
                            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{a}{z}\right)}\right)\right) \]
                            6. Step-by-step derivation
                              1. /-lowering-/.f6465.5%

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

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

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

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

                            Alternative 17: 48.6% accurate, 0.8× speedup?

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

                              1. Initial program 34.9%

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

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

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

                                if -1.41999999999999998e135 < t < 1.10000000000000006e75

                                1. Initial program 85.1%

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

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

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

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

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

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

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

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

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

                              Alternative 18: 39.4% accurate, 0.9× speedup?

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

                                1. Initial program 78.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{*.f64}\left(x, \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(a\right)\right) - -1 \cdot z\right), t\right)\right) \]
                                  10. cancel-sign-sub-invN/A

                                    \[\leadsto \mathsf{*.f64}\left(x, \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(a\right)\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot z\right), t\right)\right) \]
                                  11. metadata-evalN/A

                                    \[\leadsto \mathsf{*.f64}\left(x, \mathsf{/.f64}\left(\left(\left(\mathsf{neg}\left(a\right)\right) + 1 \cdot z\right), t\right)\right) \]
                                  12. *-lft-identityN/A

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

                                    \[\leadsto \mathsf{*.f64}\left(x, \mathsf{/.f64}\left(\mathsf{+.f64}\left(\left(\mathsf{neg}\left(a\right)\right), z\right), t\right)\right) \]
                                  14. neg-sub0N/A

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

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

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

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

                                    \[\leadsto \mathsf{*.f64}\left(x, \mathsf{/.f64}\left(z, \color{blue}{t}\right)\right) \]
                                11. Simplified41.7%

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

                                if -3.4999999999999999e44 < z < 2.10000000000000013e177

                                1. Initial program 66.2%

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

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

                                    \[\leadsto \mathsf{+.f64}\left(x, \mathsf{\_.f64}\left(y, \color{blue}{x}\right)\right) \]
                                5. Simplified20.3%

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

                                  \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{y}\right) \]
                                7. Step-by-step derivation
                                  1. Simplified37.0%

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

                                Alternative 19: 37.1% accurate, 1.0× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.42 \cdot 10^{+135}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 7.5 \cdot 10^{-191}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (if (<= t -1.42e+135) y (if (<= t 7.5e-191) x (+ x y))))
                                double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (t <= -1.42e+135) {
                                		tmp = y;
                                	} else if (t <= 7.5e-191) {
                                		tmp = x;
                                	} else {
                                		tmp = x + y;
                                	}
                                	return tmp;
                                }
                                
                                real(8) function code(x, y, z, t, a)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    real(8), intent (in) :: a
                                    real(8) :: tmp
                                    if (t <= (-1.42d+135)) then
                                        tmp = y
                                    else if (t <= 7.5d-191) then
                                        tmp = x
                                    else
                                        tmp = x + 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.42e+135) {
                                		tmp = y;
                                	} else if (t <= 7.5e-191) {
                                		tmp = x;
                                	} else {
                                		tmp = x + y;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	tmp = 0
                                	if t <= -1.42e+135:
                                		tmp = y
                                	elif t <= 7.5e-191:
                                		tmp = x
                                	else:
                                		tmp = x + y
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	tmp = 0.0
                                	if (t <= -1.42e+135)
                                		tmp = y;
                                	elseif (t <= 7.5e-191)
                                		tmp = x;
                                	else
                                		tmp = Float64(x + y);
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a)
                                	tmp = 0.0;
                                	if (t <= -1.42e+135)
                                		tmp = y;
                                	elseif (t <= 7.5e-191)
                                		tmp = x;
                                	else
                                		tmp = x + y;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.42e+135], y, If[LessEqual[t, 7.5e-191], x, N[(x + y), $MachinePrecision]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;t \leq -1.42 \cdot 10^{+135}:\\
                                \;\;\;\;y\\
                                
                                \mathbf{elif}\;t \leq 7.5 \cdot 10^{-191}:\\
                                \;\;\;\;x\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;x + y\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if t < -1.41999999999999998e135

                                  1. Initial program 13.4%

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

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

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

                                    if -1.41999999999999998e135 < t < 7.4999999999999995e-191

                                    1. Initial program 88.6%

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

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

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

                                      if 7.4999999999999995e-191 < t

                                      1. Initial program 66.4%

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

                                        \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(y - x\right)}\right) \]
                                      4. Step-by-step derivation
                                        1. --lowering--.f6423.7%

                                          \[\leadsto \mathsf{+.f64}\left(x, \mathsf{\_.f64}\left(y, \color{blue}{x}\right)\right) \]
                                      5. Simplified23.7%

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

                                        \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{y}\right) \]
                                      7. Step-by-step derivation
                                        1. Simplified34.8%

                                          \[\leadsto x + \color{blue}{y} \]
                                      8. Recombined 3 regimes into one program.
                                      9. Add Preprocessing

                                      Alternative 20: 38.0% accurate, 1.2× speedup?

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

                                        1. Initial program 37.4%

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

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

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

                                          if -1.59999999999999987e135 < t < 6.1000000000000002e58

                                          1. Initial program 84.9%

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

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

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

                                          Alternative 21: 25.4% accurate, 13.0× speedup?

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

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

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

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

                                            Developer Target 1: 86.9% 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 2024152 
                                            (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))))