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

Percentage Accurate: 98.0% → 98.2%
Time: 11.0s
Alternatives: 16
Speedup: 0.7×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 98.0% accurate, 1.0× speedup?

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

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

Alternative 1: 98.2% accurate, 0.7× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < 2e86

    1. Initial program 98.6%

      \[x + y \cdot \frac{z - t}{a - t} \]
    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{a - t}{z - t}}}\right)\right) \]
      2. un-div-invN/A

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

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

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

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

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

    if 2e86 < z

    1. Initial program 84.9%

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

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

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

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

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

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

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

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

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

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

Alternative 2: 63.0% accurate, 0.4× speedup?

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

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

\mathbf{elif}\;z \leq -5.5 \cdot 10^{+129}:\\
\;\;\;\;y + x\\

\mathbf{elif}\;z \leq -4.2 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 1.55 \cdot 10^{+148}:\\
\;\;\;\;y + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.89999999999999988e235 or -5.49999999999999984e129 < z < -4.19999999999999972e92 or 1.54999999999999988e148 < z

    1. Initial program 86.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.89999999999999988e235 < z < -5.49999999999999984e129 or -4.19999999999999972e92 < z < 1.54999999999999988e148

    1. Initial program 99.4%

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

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

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

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

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

Alternative 3: 62.8% accurate, 0.4× speedup?

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

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

\mathbf{elif}\;z \leq -1 \cdot 10^{+130}:\\
\;\;\;\;y + x\\

\mathbf{elif}\;z \leq -5.4 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 1.92 \cdot 10^{+149}:\\
\;\;\;\;y + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.64999999999999999e234 or -1.0000000000000001e130 < z < -5.4e90 or 1.91999999999999996e149 < z

    1. Initial program 86.7%

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

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

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

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

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

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

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

    if -2.64999999999999999e234 < z < -1.0000000000000001e130 or -5.4e90 < z < 1.91999999999999996e149

    1. Initial program 99.4%

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

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

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

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

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

Alternative 4: 87.8% accurate, 0.6× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -5.4999999999999997e94 or 1.40000000000000001e71 < t

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.4999999999999997e94 < t < 1.40000000000000001e71

    1. Initial program 94.6%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-lowering-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 5: 84.8% accurate, 0.6× speedup?

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

      1. Initial program 99.9%

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

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

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

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

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

      if -2.4e95 < t < 1.50000000000000001e72

      1. Initial program 94.6%

        \[x + y \cdot \frac{z - t}{a - t} \]
      2. Step-by-step derivation
        1. +-lowering-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 6: 78.3% accurate, 0.6× speedup?

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

        1. Initial program 99.9%

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

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

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

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

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

        if -5.4999999999999997e94 < t < 3.39999999999999992e80

        1. Initial program 94.6%

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

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

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

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

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

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

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

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

      Alternative 7: 76.6% accurate, 0.6× speedup?

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

        1. Initial program 99.9%

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

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

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

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

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

        if -6.19999999999999983e94 < t < 8.4000000000000005e67

        1. Initial program 94.6%

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

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

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

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

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

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

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

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

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

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

      Alternative 8: 76.5% accurate, 0.6× speedup?

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

        1. Initial program 99.9%

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

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

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

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

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

        if -5.0000000000000001e94 < t < 1.0000000000000001e69

        1. Initial program 94.6%

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

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

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

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

      Alternative 9: 60.3% accurate, 0.6× speedup?

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

        1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -9.8000000000000002e135 < y < 2.35e132

          1. Initial program 95.4%

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

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

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

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

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

          if 2.35e132 < y

          1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 10: 97.6% accurate, 0.7× speedup?

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

          1. Initial program 98.7%

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

          if 5.3000000000000001e160 < z

          1. Initial program 76.1%

            \[x + y \cdot \frac{z - t}{a - t} \]
          2. Step-by-step derivation
            1. +-lowering-+.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 11: 52.7% accurate, 1.0× speedup?

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

            1. Initial program 99.8%

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

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

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

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

              \[\leadsto \color{blue}{y + x} \]
            6. Taylor expanded in y around inf

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

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

              if -1.22000000000000009e128 < y < 5.60000000000000017e103

              1. Initial program 95.2%

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

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

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

              Alternative 12: 95.9% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 13: 95.9% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

              Alternative 14: 59.9% accurate, 1.1× speedup?

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

                1. Initial program 89.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -2.40000000000000011e234 < z

                  1. Initial program 97.1%

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

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

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

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

                    \[\leadsto \color{blue}{y + x} \]
                12. Recombined 2 regimes into one program.
                13. Final simplification64.2%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.4 \cdot 10^{+234}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \]
                14. Add Preprocessing

                Alternative 15: 61.1% accurate, 1.4× speedup?

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

                  1. Initial program 96.1%

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

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

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

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

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

                  if 1.5200000000000001e134 < a

                  1. Initial program 99.9%

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

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

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

                  Alternative 16: 51.4% 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 96.6%

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

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

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

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

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

                    Reproduce

                    ?
                    herbie shell --seed 2024139 
                    (FPCore (x y z t a)
                      :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, B"
                      :precision binary64
                    
                      :alt
                      (! :herbie-platform default (if (< y -8508084860551241/100000000000000000000000000000000) (+ x (* y (/ (- z t) (- a t)))) (if (< y 2894426862792089/10000000000000000000000000000000000000000000000000000000000000000) (+ x (* (* y (- z t)) (/ 1 (- a t)))) (+ x (* y (/ (- z t) (- a t)))))))
                    
                      (+ x (* y (/ (- z t) (- a t)))))