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

Percentage Accurate: 98.3% → 98.9%
Time: 9.2s
Alternatives: 13
Speedup: 0.5×

Specification

?
\[\begin{array}{l} \\ x + y \cdot \frac{z - t}{z - a} \end{array} \]
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
	return x + (y * ((z - t) / (z - a)));
}
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) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a):
	return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a)
	return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a))))
end
function tmp = code(x, y, z, t, a)
	tmp = x + (y * ((z - t) / (z - a)));
end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + y \cdot \frac{z - t}{z - a}
\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 13 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: 98.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + y \cdot \frac{z - t}{z - a} \end{array} \]
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
double code(double x, double y, double z, double t, double a) {
	return x + (y * ((z - t) / (z - a)));
}
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) / (z - a)))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x + (y * ((z - t) / (z - a)));
}
def code(x, y, z, t, a):
	return x + (y * ((z - t) / (z - a)))
function code(x, y, z, t, a)
	return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a))))
end
function tmp = code(x, y, z, t, a)
	tmp = x + (y * ((z - t) / (z - a)));
end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + y \cdot \frac{z - t}{z - a}
\end{array}

Alternative 1: 98.9% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \cdot \frac{z - t}{z - a} \leq -\infty:\\ \;\;\;\;\frac{y \cdot \left(z - t\right)}{z - a}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{z - a}{z - t}}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= (* y (/ (- z t) (- z a))) (- INFINITY))
   (/ (* y (- z t)) (- z a))
   (+ x (/ y (/ (- z a) (- z t))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((y * ((z - t) / (z - a))) <= -((double) INFINITY)) {
		tmp = (y * (z - t)) / (z - a);
	} 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 tmp;
	if ((y * ((z - t) / (z - a))) <= -Double.POSITIVE_INFINITY) {
		tmp = (y * (z - t)) / (z - a);
	} else {
		tmp = x + (y / ((z - a) / (z - t)));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if (y * ((z - t) / (z - a))) <= -math.inf:
		tmp = (y * (z - t)) / (z - a)
	else:
		tmp = x + (y / ((z - a) / (z - t)))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (Float64(y * Float64(Float64(z - t) / Float64(z - a))) <= Float64(-Inf))
		tmp = Float64(Float64(y * Float64(z - t)) / Float64(z - a));
	else
		tmp = Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if ((y * ((z - t) / (z - a))) <= -Inf)
		tmp = (y * (z - t)) / (z - a);
	else
		tmp = x + (y / ((z - a) / (z - t)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(y * N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], (-Infinity)], N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

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

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


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

    1. Initial program 66.7%

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

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

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

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

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

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

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

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

    1. Initial program 99.1%

      \[x + y \cdot \frac{z - t}{z - a} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. clear-numN/A

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

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

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

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

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

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

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

Alternative 2: 98.9% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 66.7%

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

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

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

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

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

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

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

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

    1. Initial program 99.1%

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

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

Alternative 3: 62.3% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{+18}:\\
\;\;\;\;y + x\\

\mathbf{elif}\;z \leq -6 \cdot 10^{-281}:\\
\;\;\;\;x\\

\mathbf{elif}\;z \leq 4.55 \cdot 10^{-234}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -6e18 or 4.54999999999999995e-234 < z

    1. Initial program 98.1%

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

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto y + \color{blue}{x} \]
      2. +-lowering-+.f6469.9%

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

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

    if -6e18 < z < -5.9999999999999995e-281

    1. Initial program 97.3%

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

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

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

      if -5.9999999999999995e-281 < z < 4.54999999999999995e-234

      1. Initial program 93.8%

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, t\right), a\right) \]
      8. Simplified55.6%

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

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

          \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
        3. clear-numN/A

          \[\leadsto t \cdot \frac{1}{\color{blue}{\frac{a}{y}}} \]
        4. un-div-invN/A

          \[\leadsto \frac{t}{\color{blue}{\frac{a}{y}}} \]
        5. /-lowering-/.f64N/A

          \[\leadsto \mathsf{/.f64}\left(t, \color{blue}{\left(\frac{a}{y}\right)}\right) \]
        6. /-lowering-/.f6459.2%

          \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(a, \color{blue}{y}\right)\right) \]
      10. Applied egg-rr59.2%

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

    Alternative 4: 62.3% accurate, 0.5× speedup?

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

      1. Initial program 98.1%

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

        \[\leadsto \color{blue}{x + y} \]
      4. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto y + \color{blue}{x} \]
        2. +-lowering-+.f6469.9%

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

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

      if -6.5e18 < z < -7.00000000000000013e-282

      1. Initial program 97.3%

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

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

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

        if -7.00000000000000013e-282 < z < 3.9000000000000001e-234

        1. Initial program 93.8%

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, t\right), a\right) \]
        8. Simplified55.6%

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

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

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

            \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(y, a\right), t\right) \]
        10. Applied egg-rr58.8%

          \[\leadsto \color{blue}{\frac{y}{a} \cdot t} \]
      5. Recombined 3 regimes into one program.
      6. Final simplification65.5%

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

      Alternative 5: 79.3% accurate, 0.6× speedup?

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

        1. Initial program 97.0%

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

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

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

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

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

        if -1.0200000000000001e-24 < a < 2.90000000000000015e-54

        1. Initial program 96.1%

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

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

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

          if 2.90000000000000015e-54 < a

          1. Initial program 99.9%

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

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

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

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

        Alternative 6: 76.7% accurate, 0.6× speedup?

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

          1. Initial program 100.0%

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

            \[\leadsto \color{blue}{x + y} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto y + \color{blue}{x} \]
            2. +-lowering-+.f6479.2%

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

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

          if -3.8000000000000002e-14 < z < 5.5e19

          1. Initial program 95.5%

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

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

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

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

        Alternative 7: 76.7% accurate, 0.6× speedup?

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

          1. Initial program 100.0%

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

            \[\leadsto \color{blue}{x + y} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto y + \color{blue}{x} \]
            2. +-lowering-+.f6478.9%

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

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

          if -7.2e18 < z < 1.3e22

          1. Initial program 95.7%

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

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

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

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

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

        Alternative 8: 59.9% accurate, 0.7× speedup?

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

          1. Initial program 80.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -7.00000000000000005e238 < t < 7.00000000000000017e143

            1. Initial program 98.6%

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

              \[\leadsto \color{blue}{x + y} \]
            4. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto y + \color{blue}{x} \]
              2. +-lowering-+.f6466.0%

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

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

            if 7.00000000000000017e143 < t

            1. Initial program 97.3%

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, t\right), a\right) \]
            8. Simplified47.3%

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

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

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

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

                \[\leadsto \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(a, \color{blue}{t}\right)\right) \]
            10. Applied egg-rr55.1%

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

          Alternative 9: 56.0% accurate, 0.7× speedup?

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

            1. Initial program 97.1%

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

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

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

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

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

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

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

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

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

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

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

              if -7.19999999999999948e145 < y < 4.69999999999999991e226

              1. Initial program 97.6%

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

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

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

                if 4.69999999999999991e226 < y

                1. Initial program 95.1%

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{/.f64}\left(\left(y \cdot t\right), a\right) \]
                  3. *-lowering-*.f6465.8%

                    \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, t\right), a\right) \]
                8. Simplified65.8%

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

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

                    \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
                  3. clear-numN/A

                    \[\leadsto t \cdot \frac{1}{\color{blue}{\frac{a}{y}}} \]
                  4. un-div-invN/A

                    \[\leadsto \frac{t}{\color{blue}{\frac{a}{y}}} \]
                  5. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{/.f64}\left(t, \color{blue}{\left(\frac{a}{y}\right)}\right) \]
                  6. /-lowering-/.f6466.1%

                    \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(a, \color{blue}{y}\right)\right) \]
                10. Applied egg-rr66.1%

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

              Alternative 10: 62.8% accurate, 0.8× speedup?

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

                1. Initial program 98.0%

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

                  \[\leadsto \color{blue}{x + y} \]
                4. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto y + \color{blue}{x} \]
                  2. +-lowering-+.f6470.5%

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

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

                if -6e18 < z < 1.70000000000000008e-217

                1. Initial program 96.3%

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

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

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

                Alternative 11: 60.2% accurate, 1.1× speedup?

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

                  1. Initial program 97.6%

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

                    \[\leadsto \color{blue}{x + y} \]
                  4. Step-by-step derivation
                    1. +-commutativeN/A

                      \[\leadsto y + \color{blue}{x} \]
                    2. +-lowering-+.f6461.1%

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

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

                  if 4.1999999999999999e243 < y

                  1. Initial program 93.5%

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{/.f64}\left(\left(y \cdot t\right), a\right) \]
                    3. *-lowering-*.f6480.5%

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

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

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

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

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

                      \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(t, a\right), y\right) \]
                  10. Applied egg-rr74.2%

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq 4.2 \cdot 10^{+243}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{t}{a}\\ \end{array} \]
                5. Add Preprocessing

                Alternative 12: 52.0% accurate, 1.8× speedup?

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

                  1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

                    if -2.50000000000000002e154 < y

                    1. Initial program 97.0%

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

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

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

                    Alternative 13: 50.9% accurate, 11.0× speedup?

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

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

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

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

                      Developer Target 1: 98.4% accurate, 1.0× speedup?

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

                      Reproduce

                      ?
                      herbie shell --seed 2024161 
                      (FPCore (x y z t a)
                        :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
                        :precision binary64
                      
                        :alt
                        (! :herbie-platform default (+ x (/ y (/ (- z a) (- z t)))))
                      
                        (+ x (* y (/ (- z t) (- z a)))))