Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A

Percentage Accurate: 85.7% → 99.4%
Time: 10.1s
Alternatives: 15
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 15 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: 85.7% accurate, 1.0× speedup?

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

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

Alternative 1: 99.4% accurate, 0.3× speedup?

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

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

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

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


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

    1. Initial program 29.3%

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 1.9999999999999998e250

    1. Initial program 99.4%

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

    if 1.9999999999999998e250 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z))

    1. Initial program 42.2%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 99.4% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+250}:\\
\;\;\;\;t\_2 + x\\

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


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

    1. Initial program 36.6%

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 1.9999999999999998e250

    1. Initial program 99.4%

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

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

Alternative 3: 78.7% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{+37}:\\
\;\;\;\;t + x\\

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

\mathbf{elif}\;z \leq 54000000:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\

\mathbf{else}:\\
\;\;\;\;t + x\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -4.8e37 or 5.4e7 < z

    1. Initial program 76.1%

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

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

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

      if -4.8e37 < z < 7.00000000000000026e-77

      1. Initial program 95.5%

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

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

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

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

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

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

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

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

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

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

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

      if 7.00000000000000026e-77 < z < 5.4e7

      1. Initial program 95.5%

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right) \]
        9. metadata-evalN/A

          \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + -1\right)\right)\right) \]
        10. +-commutativeN/A

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

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

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

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

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

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

        \[\leadsto x - t \cdot \color{blue}{\frac{y}{z}} \]
    5. Recombined 3 regimes into one program.
    6. Final simplification80.5%

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

    Alternative 4: 75.7% accurate, 0.5× speedup?

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

      1. Initial program 74.1%

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

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

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

        if -8.4999999999999998e64 < z < 3.2000000000000001e-98

        1. Initial program 96.5%

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

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

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

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

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

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

        if 3.2000000000000001e-98 < z < 1.15e7

        1. Initial program 93.3%

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -8.5 \cdot 10^{+64}:\\ \;\;\;\;t + x\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{-98}:\\ \;\;\;\;x + \frac{y \cdot t}{a}\\ \mathbf{elif}\;z \leq 11500000:\\ \;\;\;\;x - y \cdot \frac{t}{z}\\ \mathbf{else}:\\ \;\;\;\;t + x\\ \end{array} \]
        7. Add Preprocessing

        Alternative 5: 75.8% accurate, 0.5× speedup?

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

          1. Initial program 74.1%

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

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

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

            if -1.9000000000000001e66 < z < 2.00000000000000004e-91

            1. Initial program 96.6%

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

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

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

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

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

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

            if 2.00000000000000004e-91 < z < 8e4

            1. Initial program 92.5%

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right) \]
              9. metadata-evalN/A

                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + -1\right)\right)\right) \]
              10. +-commutativeN/A

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

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+66}:\\ \;\;\;\;t + x\\ \mathbf{elif}\;z \leq 2 \cdot 10^{-91}:\\ \;\;\;\;x + \frac{y \cdot t}{a}\\ \mathbf{elif}\;z \leq 80000:\\ \;\;\;\;x - t \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;t + x\\ \end{array} \]
          7. Add Preprocessing

          Alternative 6: 75.1% accurate, 0.5× speedup?

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

            1. Initial program 74.1%

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

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

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

              if -6.60000000000000046e65 < z < 4.60000000000000004e-51

              1. Initial program 96.0%

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

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

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

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

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

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

              if 4.60000000000000004e-51 < z < 16000

              1. Initial program 94.2%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right) \]
                9. metadata-evalN/A

                  \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + -1\right)\right)\right) \]
                10. +-commutativeN/A

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

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

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

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

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

                  \[\leadsto \mathsf{neg}\left(t \cdot \left(\frac{y}{z} - 1\right)\right) \]
                2. distribute-rgt-neg-inN/A

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

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

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

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

                  \[\leadsto \mathsf{*.f64}\left(t, \left(\mathsf{neg}\left(\left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right)\right) \]
                7. metadata-evalN/A

                  \[\leadsto \mathsf{*.f64}\left(t, \left(\mathsf{neg}\left(\left(\frac{y}{z} + -1\right)\right)\right)\right) \]
                8. distribute-neg-inN/A

                  \[\leadsto \mathsf{*.f64}\left(t, \left(\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)}\right)\right) \]
                9. metadata-evalN/A

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

                  \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}\right)\right) \]
                11. sub-negN/A

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

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

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

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

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

            Alternative 7: 76.5% accurate, 0.5× speedup?

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

              1. Initial program 76.1%

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

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

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

                if -3.1999999999999999e36 < z < 8.99999999999999948e-51

                1. Initial program 95.7%

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

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

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

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

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

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

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

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

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

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

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

                if 8.99999999999999948e-51 < z < 235000

                1. Initial program 94.2%

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right) \]
                  9. metadata-evalN/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + -1\right)\right)\right) \]
                  10. +-commutativeN/A

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

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

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

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

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

                    \[\leadsto \mathsf{neg}\left(t \cdot \left(\frac{y}{z} - 1\right)\right) \]
                  2. distribute-rgt-neg-inN/A

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

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

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

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

                    \[\leadsto \mathsf{*.f64}\left(t, \left(\mathsf{neg}\left(\left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right)\right) \]
                  7. metadata-evalN/A

                    \[\leadsto \mathsf{*.f64}\left(t, \left(\mathsf{neg}\left(\left(\frac{y}{z} + -1\right)\right)\right)\right) \]
                  8. distribute-neg-inN/A

                    \[\leadsto \mathsf{*.f64}\left(t, \left(\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)}\right)\right) \]
                  9. metadata-evalN/A

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

                    \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}\right)\right) \]
                  11. sub-negN/A

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

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

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

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

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

              Alternative 8: 86.6% accurate, 0.6× speedup?

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

                1. Initial program 74.6%

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right) \]
                  9. metadata-evalN/A

                    \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + -1\right)\right)\right) \]
                  10. +-commutativeN/A

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

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

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

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

                if -1.9000000000000001e66 < z < 7.40000000000000017e-25

                1. Initial program 96.4%

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

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

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

                Alternative 9: 82.4% accurate, 0.6× speedup?

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

                  1. Initial program 73.2%

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

                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{t}\right) \]
                  4. Step-by-step derivation
                    1. Simplified80.6%

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

                    if -8.2000000000000005e105 < z < 1.08e9

                    1. Initial program 94.9%

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -8.2 \cdot 10^{+105}:\\ \;\;\;\;t + x\\ \mathbf{elif}\;z \leq 1080000000:\\ \;\;\;\;x + \frac{y \cdot t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t + x\\ \end{array} \]
                    7. Add Preprocessing

                    Alternative 10: 64.5% accurate, 0.6× speedup?

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

                      1. Initial program 89.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -4.0000000000000003e209 < y < 1.20000000000000005e164

                      1. Initial program 84.9%

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

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

                          \[\leadsto x + \color{blue}{t} \]
                      5. Recombined 2 regimes into one program.
                      6. Final simplification68.8%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4 \cdot 10^{+209}:\\ \;\;\;\;t \cdot \frac{y}{a - z}\\ \mathbf{elif}\;y \leq 1.2 \cdot 10^{+164}:\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y}{a - z}\\ \end{array} \]
                      7. Add Preprocessing

                      Alternative 11: 63.4% accurate, 0.8× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.45 \cdot 10^{+177}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 5 \cdot 10^{+139}:\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                      (FPCore (x y z t a)
                       :precision binary64
                       (if (<= a -3.45e+177) x (if (<= a 5e+139) (+ t x) x)))
                      double code(double x, double y, double z, double t, double a) {
                      	double tmp;
                      	if (a <= -3.45e+177) {
                      		tmp = x;
                      	} else if (a <= 5e+139) {
                      		tmp = t + x;
                      	} else {
                      		tmp = x;
                      	}
                      	return tmp;
                      }
                      
                      real(8) function code(x, y, z, t, a)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          real(8), intent (in) :: z
                          real(8), intent (in) :: t
                          real(8), intent (in) :: a
                          real(8) :: tmp
                          if (a <= (-3.45d+177)) then
                              tmp = x
                          else if (a <= 5d+139) then
                              tmp = t + x
                          else
                              tmp = x
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a) {
                      	double tmp;
                      	if (a <= -3.45e+177) {
                      		tmp = x;
                      	} else if (a <= 5e+139) {
                      		tmp = t + x;
                      	} else {
                      		tmp = x;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a):
                      	tmp = 0
                      	if a <= -3.45e+177:
                      		tmp = x
                      	elif a <= 5e+139:
                      		tmp = t + x
                      	else:
                      		tmp = x
                      	return tmp
                      
                      function code(x, y, z, t, a)
                      	tmp = 0.0
                      	if (a <= -3.45e+177)
                      		tmp = x;
                      	elseif (a <= 5e+139)
                      		tmp = Float64(t + x);
                      	else
                      		tmp = x;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a)
                      	tmp = 0.0;
                      	if (a <= -3.45e+177)
                      		tmp = x;
                      	elseif (a <= 5e+139)
                      		tmp = t + x;
                      	else
                      		tmp = x;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.45e+177], x, If[LessEqual[a, 5e+139], N[(t + x), $MachinePrecision], x]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;a \leq -3.45 \cdot 10^{+177}:\\
                      \;\;\;\;x\\
                      
                      \mathbf{elif}\;a \leq 5 \cdot 10^{+139}:\\
                      \;\;\;\;t + x\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;x\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if a < -3.44999999999999986e177 or 5.0000000000000003e139 < a

                        1. Initial program 82.5%

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

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

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

                          if -3.44999999999999986e177 < a < 5.0000000000000003e139

                          1. Initial program 86.9%

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

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

                              \[\leadsto x + \color{blue}{t} \]
                          5. Recombined 2 regimes into one program.
                          6. Final simplification65.5%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.45 \cdot 10^{+177}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 5 \cdot 10^{+139}:\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
                          7. Add Preprocessing

                          Alternative 12: 60.6% accurate, 0.9× speedup?

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

                            1. Initial program 92.9%

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right) \]
                              9. metadata-evalN/A

                                \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{*.f64}\left(t, \left(\frac{y}{z} + -1\right)\right)\right) \]
                              10. +-commutativeN/A

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

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

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

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

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

                                \[\leadsto \mathsf{neg}\left(t \cdot \left(\frac{y}{z} - 1\right)\right) \]
                              2. distribute-rgt-neg-inN/A

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

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

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

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

                                \[\leadsto \mathsf{*.f64}\left(t, \left(\mathsf{neg}\left(\left(\frac{y}{z} + \left(\mathsf{neg}\left(1\right)\right)\right)\right)\right)\right) \]
                              7. metadata-evalN/A

                                \[\leadsto \mathsf{*.f64}\left(t, \left(\mathsf{neg}\left(\left(\frac{y}{z} + -1\right)\right)\right)\right) \]
                              8. distribute-neg-inN/A

                                \[\leadsto \mathsf{*.f64}\left(t, \left(\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)}\right)\right) \]
                              9. metadata-evalN/A

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

                                \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}\right)\right) \]
                              11. sub-negN/A

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

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

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

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

                            if -9.59999999999999953e210 < y

                            1. Initial program 85.1%

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

                              \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{t}\right) \]
                            4. Step-by-step derivation
                              1. Simplified66.2%

                                \[\leadsto x + \color{blue}{t} \]
                            5. Recombined 2 regimes into one program.
                            6. Final simplification64.3%

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

                            Alternative 13: 54.5% accurate, 1.0× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4 \cdot 10^{-157}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 3.9 \cdot 10^{-140}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                            (FPCore (x y z t a)
                             :precision binary64
                             (if (<= x -4e-157) x (if (<= x 3.9e-140) t x)))
                            double code(double x, double y, double z, double t, double a) {
                            	double tmp;
                            	if (x <= -4e-157) {
                            		tmp = x;
                            	} else if (x <= 3.9e-140) {
                            		tmp = t;
                            	} else {
                            		tmp = x;
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(x, y, z, t, a)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                real(8), intent (in) :: z
                                real(8), intent (in) :: t
                                real(8), intent (in) :: a
                                real(8) :: tmp
                                if (x <= (-4d-157)) then
                                    tmp = x
                                else if (x <= 3.9d-140) then
                                    tmp = t
                                else
                                    tmp = x
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a) {
                            	double tmp;
                            	if (x <= -4e-157) {
                            		tmp = x;
                            	} else if (x <= 3.9e-140) {
                            		tmp = t;
                            	} else {
                            		tmp = x;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a):
                            	tmp = 0
                            	if x <= -4e-157:
                            		tmp = x
                            	elif x <= 3.9e-140:
                            		tmp = t
                            	else:
                            		tmp = x
                            	return tmp
                            
                            function code(x, y, z, t, a)
                            	tmp = 0.0
                            	if (x <= -4e-157)
                            		tmp = x;
                            	elseif (x <= 3.9e-140)
                            		tmp = t;
                            	else
                            		tmp = x;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a)
                            	tmp = 0.0;
                            	if (x <= -4e-157)
                            		tmp = x;
                            	elseif (x <= 3.9e-140)
                            		tmp = t;
                            	else
                            		tmp = x;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_] := If[LessEqual[x, -4e-157], x, If[LessEqual[x, 3.9e-140], t, x]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;x \leq -4 \cdot 10^{-157}:\\
                            \;\;\;\;x\\
                            
                            \mathbf{elif}\;x \leq 3.9 \cdot 10^{-140}:\\
                            \;\;\;\;t\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;x\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if x < -3.99999999999999977e-157 or 3.90000000000000019e-140 < x

                              1. Initial program 87.7%

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

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

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

                                if -3.99999999999999977e-157 < x < 3.90000000000000019e-140

                                1. Initial program 80.6%

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

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

                                    \[\leadsto x + \color{blue}{t} \]
                                  2. Taylor expanded in x around 0

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

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

                                  Alternative 14: 95.8% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

                                    \[\leadsto x + \color{blue}{\frac{t}{a - z} \cdot \left(y - z\right)} \]
                                  5. Final simplification95.1%

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

                                  Alternative 15: 18.5% accurate, 11.0× speedup?

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

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

                                    \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{t}\right) \]
                                  4. Step-by-step derivation
                                    1. Simplified61.5%

                                      \[\leadsto x + \color{blue}{t} \]
                                    2. Taylor expanded in x around 0

                                      \[\leadsto \color{blue}{t} \]
                                    3. Step-by-step derivation
                                      1. Simplified21.6%

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

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

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y - z}{a - z} \cdot t\\ \mathbf{if}\;t < -1.0682974490174067 \cdot 10^{-39}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t < 3.9110949887586375 \cdot 10^{-141}:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (let* ((t_1 (+ x (* (/ (- y z) (- a z)) t))))
                                         (if (< t -1.0682974490174067e-39)
                                           t_1
                                           (if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) t_1))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double t_1 = x + (((y - z) / (a - z)) * t);
                                      	double tmp;
                                      	if (t < -1.0682974490174067e-39) {
                                      		tmp = t_1;
                                      	} else if (t < 3.9110949887586375e-141) {
                                      		tmp = x + (((y - z) * t) / (a - z));
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      real(8) function code(x, y, z, t, a)
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8) :: t_1
                                          real(8) :: tmp
                                          t_1 = x + (((y - z) / (a - z)) * t)
                                          if (t < (-1.0682974490174067d-39)) then
                                              tmp = t_1
                                          else if (t < 3.9110949887586375d-141) then
                                              tmp = x + (((y - z) * t) / (a - z))
                                          else
                                              tmp = t_1
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a) {
                                      	double t_1 = x + (((y - z) / (a - z)) * t);
                                      	double tmp;
                                      	if (t < -1.0682974490174067e-39) {
                                      		tmp = t_1;
                                      	} else if (t < 3.9110949887586375e-141) {
                                      		tmp = x + (((y - z) * t) / (a - z));
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a):
                                      	t_1 = x + (((y - z) / (a - z)) * t)
                                      	tmp = 0
                                      	if t < -1.0682974490174067e-39:
                                      		tmp = t_1
                                      	elif t < 3.9110949887586375e-141:
                                      		tmp = x + (((y - z) * t) / (a - z))
                                      	else:
                                      		tmp = t_1
                                      	return tmp
                                      
                                      function code(x, y, z, t, a)
                                      	t_1 = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * t))
                                      	tmp = 0.0
                                      	if (t < -1.0682974490174067e-39)
                                      		tmp = t_1;
                                      	elseif (t < 3.9110949887586375e-141)
                                      		tmp = Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z)));
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a)
                                      	t_1 = x + (((y - z) / (a - z)) * t);
                                      	tmp = 0.0;
                                      	if (t < -1.0682974490174067e-39)
                                      		tmp = t_1;
                                      	elseif (t < 3.9110949887586375e-141)
                                      		tmp = x + (((y - z) * t) / (a - z));
                                      	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 - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.0682974490174067e-39], t$95$1, If[Less[t, 3.9110949887586375e-141], N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := x + \frac{y - z}{a - z} \cdot t\\
                                      \mathbf{if}\;t < -1.0682974490174067 \cdot 10^{-39}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;t < 3.9110949887586375 \cdot 10^{-141}:\\
                                      \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      

                                      Reproduce

                                      ?
                                      herbie shell --seed 2024158 
                                      (FPCore (x y z t a)
                                        :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A"
                                        :precision binary64
                                      
                                        :alt
                                        (! :herbie-platform default (if (< t -10682974490174067/10000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y z) (- a z)) t)) (if (< t 312887599100691/80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (/ (* (- y z) t) (- a z))) (+ x (* (/ (- y z) (- a z)) t)))))
                                      
                                        (+ x (/ (* (- y z) t) (- a z))))