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

Percentage Accurate: 98.1% → 98.3%
Time: 10.5s
Alternatives: 14
Speedup: 1.0×

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 14 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.1% 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.3% accurate, 1.0× speedup?

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

\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
Derivation
  1. Initial program 98.2%

    \[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.2%

      \[\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.2%

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

Alternative 2: 78.8% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+95}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;t \leq -1.65 \cdot 10^{-7}:\\
\;\;\;\;x - y \cdot \frac{z}{t}\\

\mathbf{elif}\;t \leq 31000:\\
\;\;\;\;x + \frac{y}{\frac{a}{z - t}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.3999999999999999e95 or 31000 < 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-+.f6476.6%

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

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

    if -1.3999999999999999e95 < t < -1.6500000000000001e-7

    1. Initial program 99.9%

      \[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--.f6495.0%

        \[\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. Simplified95.0%

      \[\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. Simplified85.5%

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

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

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

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

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

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

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

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

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

      if -1.6500000000000001e-7 < t < 31000

      1. Initial program 96.5%

        \[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--.f6496.5%

          \[\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-rr96.5%

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

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

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

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

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

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

    Alternative 3: 75.8% accurate, 0.5× speedup?

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

      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-+.f6478.8%

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

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

      if -4.7999999999999999e30 < t < 1.07999999999999998e-125

      1. Initial program 96.7%

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

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

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

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

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

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

      if 1.07999999999999998e-125 < t < 4.8999999999999999e95

      1. Initial program 98.0%

        \[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--.f6494.6%

          \[\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. Simplified94.6%

        \[\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. Simplified73.4%

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

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

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

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

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

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

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

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{+30}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;t \leq 1.08 \cdot 10^{-125}:\\ \;\;\;\;x + \frac{y \cdot z}{a}\\ \mathbf{elif}\;t \leq 4.9 \cdot 10^{+95}:\\ \;\;\;\;x - y \cdot \frac{z}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
      9. Add Preprocessing

      Alternative 4: 86.4% accurate, 0.6× speedup?

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

        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-/.f6490.0%

            \[\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. Simplified90.0%

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

        if -7.5999999999999996e39 < t < 1.69999999999999996

        1. Initial program 96.8%

          \[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--.f6494.9%

            \[\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. Simplified94.9%

          \[\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. Simplified89.1%

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

          if 1.69999999999999996 < t

          1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{\_.f64}\left(x, \mathsf{/.f64}\left(y, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, t\right), t\right)\right)\right) \]
          7. Applied egg-rr85.3%

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

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

        Alternative 5: 85.5% accurate, 0.6× speedup?

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

          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-/.f6490.0%

              \[\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. Simplified90.0%

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

          if -2.25000000000000016e40 < t < 1.69999999999999996

          1. Initial program 96.8%

            \[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--.f6494.9%

              \[\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. Simplified94.9%

            \[\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. Simplified89.1%

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

            if 1.69999999999999996 < t

            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. 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--.f6499.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-rr99.9%

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

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

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

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

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

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

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

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

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

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

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

          Alternative 6: 84.1% accurate, 0.6× speedup?

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

            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. 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--.f6499.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-rr99.9%

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

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

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

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

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

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

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

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

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

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

            if -8.5000000000000001e87 < t < 1.6000000000000001

            1. Initial program 97.0%

              \[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--.f6494.6%

                \[\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. Simplified94.6%

              \[\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. Simplified87.7%

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

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

            Alternative 7: 82.7% accurate, 0.6× speedup?

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

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

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

              if -7.2e92 < t < 5.9999999999999999e124

              1. Initial program 97.5%

                \[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--.f6494.5%

                  \[\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. Simplified94.5%

                \[\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. Simplified83.9%

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.2 \cdot 10^{+92}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+124}:\\ \;\;\;\;x + \frac{y \cdot z}{a - t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
              9. Add Preprocessing

              Alternative 8: 76.1% accurate, 0.6× speedup?

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

                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-+.f6472.8%

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

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

                if -5.19999999999999977e30 < t < 2.4e-10

                1. Initial program 96.6%

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

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

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

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

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

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

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

              Alternative 9: 63.8% accurate, 0.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \frac{y}{a - t}\\ \mathbf{if}\;z \leq -3.8 \cdot 10^{+37}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{+203}:\\ \;\;\;\;x + y\\ \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 -3.8e+37) t_1 (if (<= z 9.2e+203) (+ x y) 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 <= -3.8e+37) {
              		tmp = t_1;
              	} else if (z <= 9.2e+203) {
              		tmp = x + y;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t, a)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8), intent (in) :: a
                  real(8) :: t_1
                  real(8) :: tmp
                  t_1 = z * (y / (a - t))
                  if (z <= (-3.8d+37)) then
                      tmp = t_1
                  else if (z <= 9.2d+203) then
                      tmp = x + y
                  else
                      tmp = t_1
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t, double a) {
              	double t_1 = z * (y / (a - t));
              	double tmp;
              	if (z <= -3.8e+37) {
              		tmp = t_1;
              	} else if (z <= 9.2e+203) {
              		tmp = x + y;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a):
              	t_1 = z * (y / (a - t))
              	tmp = 0
              	if z <= -3.8e+37:
              		tmp = t_1
              	elif z <= 9.2e+203:
              		tmp = x + y
              	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 <= -3.8e+37)
              		tmp = t_1;
              	elseif (z <= 9.2e+203)
              		tmp = Float64(x + y);
              	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 <= -3.8e+37)
              		tmp = t_1;
              	elseif (z <= 9.2e+203)
              		tmp = x + y;
              	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, -3.8e+37], t$95$1, If[LessEqual[z, 9.2e+203], N[(x + y), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := z \cdot \frac{y}{a - t}\\
              \mathbf{if}\;z \leq -3.8 \cdot 10^{+37}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;z \leq 9.2 \cdot 10^{+203}:\\
              \;\;\;\;x + y\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -3.7999999999999999e37 or 9.1999999999999996e203 < z

                1. Initial program 95.3%

                  \[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--.f6458.0%

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

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

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

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

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

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

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

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

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

                if -3.7999999999999999e37 < z < 9.1999999999999996e203

                1. Initial program 99.7%

                  \[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-+.f6469.4%

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

                  \[\leadsto \color{blue}{y + x} \]
              3. Recombined 2 regimes into one program.
              4. Final simplification66.1%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{+37}:\\ \;\;\;\;z \cdot \frac{y}{a - t}\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{+203}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;z \cdot \frac{y}{a - t}\\ \end{array} \]
              5. Add Preprocessing

              Alternative 10: 63.6% accurate, 0.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \frac{z}{a - t}\\ \mathbf{if}\;z \leq -6.2 \cdot 10^{+37}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.65 \cdot 10^{+204}:\\ \;\;\;\;x + y\\ \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 -6.2e+37) t_1 (if (<= z 1.65e+204) (+ x y) 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 <= -6.2e+37) {
              		tmp = t_1;
              	} else if (z <= 1.65e+204) {
              		tmp = x + y;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              real(8) function code(x, y, z, t, a)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  real(8), intent (in) :: a
                  real(8) :: t_1
                  real(8) :: tmp
                  t_1 = y * (z / (a - t))
                  if (z <= (-6.2d+37)) then
                      tmp = t_1
                  else if (z <= 1.65d+204) then
                      tmp = x + y
                  else
                      tmp = t_1
                  end if
                  code = tmp
              end function
              
              public static double code(double x, double y, double z, double t, double a) {
              	double t_1 = y * (z / (a - t));
              	double tmp;
              	if (z <= -6.2e+37) {
              		tmp = t_1;
              	} else if (z <= 1.65e+204) {
              		tmp = x + y;
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a):
              	t_1 = y * (z / (a - t))
              	tmp = 0
              	if z <= -6.2e+37:
              		tmp = t_1
              	elif z <= 1.65e+204:
              		tmp = x + y
              	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 <= -6.2e+37)
              		tmp = t_1;
              	elseif (z <= 1.65e+204)
              		tmp = Float64(x + y);
              	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 <= -6.2e+37)
              		tmp = t_1;
              	elseif (z <= 1.65e+204)
              		tmp = x + y;
              	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, -6.2e+37], t$95$1, If[LessEqual[z, 1.65e+204], N[(x + y), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := y \cdot \frac{z}{a - t}\\
              \mathbf{if}\;z \leq -6.2 \cdot 10^{+37}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;z \leq 1.65 \cdot 10^{+204}:\\
              \;\;\;\;x + y\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -6.2000000000000004e37 or 1.6499999999999999e204 < z

                1. Initial program 95.3%

                  \[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--.f6458.0%

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

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

                if -6.2000000000000004e37 < z < 1.6499999999999999e204

                1. Initial program 99.7%

                  \[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-+.f6469.4%

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

                  \[\leadsto \color{blue}{y + x} \]
              3. Recombined 2 regimes into one program.
              4. Final simplification65.7%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.2 \cdot 10^{+37}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \mathbf{elif}\;z \leq 1.65 \cdot 10^{+204}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \end{array} \]
              5. Add Preprocessing

              Alternative 11: 98.1% 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}
              
              Derivation
              1. Initial program 98.2%

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

              Alternative 12: 62.1% accurate, 1.4× speedup?

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

                1. Initial program 97.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-+.f6460.6%

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

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

                if 3.20000000000000015e58 < a

                1. Initial program 99.3%

                  \[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. Simplified61.6%

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq 3.2 \cdot 10^{+58}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
                7. Add Preprocessing

                Alternative 13: 51.1% accurate, 1.8× speedup?

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

                  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-+.f6447.3%

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

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

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

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

                    if -8.9999999999999994e28 < y

                    1. Initial program 97.8%

                      \[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. Simplified57.8%

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

                    Alternative 14: 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 98.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. Simplified49.3%

                        \[\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 2024138 
                      (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)))))