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

Percentage Accurate: 85.8% → 99.7%
Time: 10.7s
Alternatives: 13
Speedup: 1.1×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 13 alternatives:

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

Initial Program: 85.8% accurate, 1.0× speedup?

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

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

Alternative 1: 99.7% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_2 \leq 10^{+307}:\\
\;\;\;\;t\_2 + x\\

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


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

    1. Initial program 41.7%

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\frac{y}{\color{blue}{z - a}}, z - t, x\right) \]
      8. --lowering--.f6499.9

        \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{z - t}, x\right) \]
    4. Applied egg-rr99.9%

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

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

    1. Initial program 99.9%

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

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

Alternative 2: 54.0% accurate, 0.5× speedup?

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

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

\mathbf{elif}\;t\_1 \leq 10^{-5}:\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < -4e177 or 1.00000000000000008e-5 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a))

    1. Initial program 69.1%

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

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

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

        \[\leadsto \color{blue}{y + x} \]
    5. Simplified44.0%

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

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

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

      if -4e177 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < 1.00000000000000008e-5

      1. Initial program 99.9%

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

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

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

      Alternative 3: 75.7% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -6.9 \cdot 10^{+28}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;z \leq -1.35 \cdot 10^{-151}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -t, x\right)\\ \mathbf{elif}\;z \leq 1.35 \cdot 10^{-15}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (<= z -6.9e+28)
         (+ y x)
         (if (<= z -1.35e-151)
           (fma (/ y z) (- t) x)
           (if (<= z 1.35e-15) (fma t (/ y a) x) (+ y x)))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if (z <= -6.9e+28) {
      		tmp = y + x;
      	} else if (z <= -1.35e-151) {
      		tmp = fma((y / z), -t, x);
      	} else if (z <= 1.35e-15) {
      		tmp = fma(t, (y / a), x);
      	} else {
      		tmp = y + x;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if (z <= -6.9e+28)
      		tmp = Float64(y + x);
      	elseif (z <= -1.35e-151)
      		tmp = fma(Float64(y / z), Float64(-t), x);
      	elseif (z <= 1.35e-15)
      		tmp = fma(t, Float64(y / a), x);
      	else
      		tmp = Float64(y + x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.9e+28], N[(y + x), $MachinePrecision], If[LessEqual[z, -1.35e-151], N[(N[(y / z), $MachinePrecision] * (-t) + x), $MachinePrecision], If[LessEqual[z, 1.35e-15], N[(t * N[(y / a), $MachinePrecision] + x), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -6.9 \cdot 10^{+28}:\\
      \;\;\;\;y + x\\
      
      \mathbf{elif}\;z \leq -1.35 \cdot 10^{-151}:\\
      \;\;\;\;\mathsf{fma}\left(\frac{y}{z}, -t, x\right)\\
      
      \mathbf{elif}\;z \leq 1.35 \cdot 10^{-15}:\\
      \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;y + x\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -6.9e28 or 1.35000000000000005e-15 < z

        1. Initial program 78.9%

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

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

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

            \[\leadsto \color{blue}{y + x} \]
        5. Simplified81.8%

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

        if -6.9e28 < z < -1.35000000000000004e-151

        1. Initial program 99.8%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{y}{\color{blue}{z - a}}, z - t, x\right) \]
          8. --lowering--.f6491.1

            \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{z - t}, x\right) \]
        4. Applied egg-rr91.1%

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

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

            \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{\mathsf{neg}\left(t\right)}, x\right) \]
          2. neg-lowering-neg.f6475.9

            \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{-t}, x\right) \]
        7. Simplified75.9%

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{z}}, \mathsf{neg}\left(t\right), x\right) \]
        9. Step-by-step derivation
          1. /-lowering-/.f6464.3

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{z}}, -t, x\right) \]
        10. Simplified64.3%

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

        if -1.35000000000000004e-151 < z < 1.35000000000000005e-15

        1. Initial program 94.9%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{1}{z - a}, \color{blue}{y \cdot \left(z - t\right)}, x\right) \]
          8. --lowering--.f6494.8

            \[\leadsto \mathsf{fma}\left(\frac{1}{z - a}, y \cdot \color{blue}{\left(z - t\right)}, x\right) \]
        4. Applied egg-rr94.8%

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y}{a}, x\right)} \]
          4. /-lowering-/.f6482.5

            \[\leadsto \mathsf{fma}\left(t, \color{blue}{\frac{y}{a}}, x\right) \]
        7. Simplified82.5%

          \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y}{a}, x\right)} \]
      3. Recombined 3 regimes into one program.
      4. Add Preprocessing

      Alternative 4: 76.5% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.45 \cdot 10^{+30}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;z \leq -1.42 \cdot 10^{-83}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{-z}, x\right)\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{-15}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (<= z -4.45e+30)
         (+ y x)
         (if (<= z -1.42e-83)
           (fma y (/ t (- z)) x)
           (if (<= z 1.4e-15) (fma t (/ y a) x) (+ y x)))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if (z <= -4.45e+30) {
      		tmp = y + x;
      	} else if (z <= -1.42e-83) {
      		tmp = fma(y, (t / -z), x);
      	} else if (z <= 1.4e-15) {
      		tmp = fma(t, (y / a), x);
      	} else {
      		tmp = y + x;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if (z <= -4.45e+30)
      		tmp = Float64(y + x);
      	elseif (z <= -1.42e-83)
      		tmp = fma(y, Float64(t / Float64(-z)), x);
      	elseif (z <= 1.4e-15)
      		tmp = fma(t, Float64(y / a), x);
      	else
      		tmp = Float64(y + x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.45e+30], N[(y + x), $MachinePrecision], If[LessEqual[z, -1.42e-83], N[(y * N[(t / (-z)), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.4e-15], N[(t * N[(y / a), $MachinePrecision] + x), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -4.45 \cdot 10^{+30}:\\
      \;\;\;\;y + x\\
      
      \mathbf{elif}\;z \leq -1.42 \cdot 10^{-83}:\\
      \;\;\;\;\mathsf{fma}\left(y, \frac{t}{-z}, x\right)\\
      
      \mathbf{elif}\;z \leq 1.4 \cdot 10^{-15}:\\
      \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;y + x\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -4.45000000000000024e30 or 1.40000000000000007e-15 < z

        1. Initial program 78.9%

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

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

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

            \[\leadsto \color{blue}{y + x} \]
        5. Simplified81.8%

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

        if -4.45000000000000024e30 < z < -1.4199999999999999e-83

        1. Initial program 99.8%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{t}{z}}, x\right) \]
          7. /-lowering-/.f6476.7

            \[\leadsto \mathsf{fma}\left(y, 1 - \color{blue}{\frac{t}{z}}, x\right) \]
        5. Simplified76.7%

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

          \[\leadsto \mathsf{fma}\left(y, \color{blue}{-1 \cdot \frac{t}{z}}, x\right) \]
        7. Step-by-step derivation
          1. associate-*r/N/A

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

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

            \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{\mathsf{neg}\left(t\right)}}{z}, x\right) \]
          4. neg-lowering-neg.f6463.8

            \[\leadsto \mathsf{fma}\left(y, \frac{\color{blue}{-t}}{z}, x\right) \]
        8. Simplified63.8%

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

        if -1.4199999999999999e-83 < z < 1.40000000000000007e-15

        1. Initial program 95.4%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{1}{z - a}, \color{blue}{y \cdot \left(z - t\right)}, x\right) \]
          8. --lowering--.f6495.3

            \[\leadsto \mathsf{fma}\left(\frac{1}{z - a}, y \cdot \color{blue}{\left(z - t\right)}, x\right) \]
        4. Applied egg-rr95.3%

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y}{a}, x\right)} \]
          4. /-lowering-/.f6480.6

            \[\leadsto \mathsf{fma}\left(t, \color{blue}{\frac{y}{a}}, x\right) \]
        7. Simplified80.6%

          \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y}{a}, x\right)} \]
      3. Recombined 3 regimes into one program.
      4. Final simplification79.8%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.45 \cdot 10^{+30}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;z \leq -1.42 \cdot 10^{-83}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{-z}, x\right)\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{-15}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \]
      5. Add Preprocessing

      Alternative 5: 88.0% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{y}{z - a}, -t, x\right)\\ \mathbf{if}\;t \leq -1.75 \cdot 10^{+91}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.25 \cdot 10^{+32}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{z}{z - a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (fma (/ y (- z a)) (- t) x)))
         (if (<= t -1.75e+91) t_1 (if (<= t 1.25e+32) (fma y (/ z (- z a)) x) t_1))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = fma((y / (z - a)), -t, x);
      	double tmp;
      	if (t <= -1.75e+91) {
      		tmp = t_1;
      	} else if (t <= 1.25e+32) {
      		tmp = fma(y, (z / (z - a)), x);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	t_1 = fma(Float64(y / Float64(z - a)), Float64(-t), x)
      	tmp = 0.0
      	if (t <= -1.75e+91)
      		tmp = t_1;
      	elseif (t <= 1.25e+32)
      		tmp = fma(y, Float64(z / Float64(z - a)), x);
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * (-t) + x), $MachinePrecision]}, If[LessEqual[t, -1.75e+91], t$95$1, If[LessEqual[t, 1.25e+32], N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(\frac{y}{z - a}, -t, x\right)\\
      \mathbf{if}\;t \leq -1.75 \cdot 10^{+91}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t \leq 1.25 \cdot 10^{+32}:\\
      \;\;\;\;\mathsf{fma}\left(y, \frac{z}{z - a}, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -1.75e91 or 1.2499999999999999e32 < t

        1. Initial program 86.2%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{y}{\color{blue}{z - a}}, z - t, x\right) \]
          8. --lowering--.f6495.8

            \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{z - t}, x\right) \]
        4. Applied egg-rr95.8%

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

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

            \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{\mathsf{neg}\left(t\right)}, x\right) \]
          2. neg-lowering-neg.f6489.2

            \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{-t}, x\right) \]
        7. Simplified89.2%

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

        if -1.75e91 < t < 1.2499999999999999e32

        1. Initial program 88.1%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{y}{\color{blue}{z - a}}, z - t, x\right) \]
          8. --lowering--.f6492.9

            \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{z - t}, x\right) \]
        4. Applied egg-rr92.9%

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{z}{z - a}}, x\right) \]
          5. --lowering--.f6488.2

            \[\leadsto \mathsf{fma}\left(y, \frac{z}{\color{blue}{z - a}}, x\right) \]
        7. Simplified88.2%

          \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{z}{z - a}, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 6: 81.9% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, 1 - \frac{t}{z}, x\right)\\ \mathbf{if}\;z \leq -2.3 \cdot 10^{-151}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{-55}:\\ \;\;\;\;\mathsf{fma}\left(t - z, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (fma y (- 1.0 (/ t z)) x)))
         (if (<= z -2.3e-151) t_1 (if (<= z 9.6e-55) (fma (- t z) (/ y a) x) t_1))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = fma(y, (1.0 - (t / z)), x);
      	double tmp;
      	if (z <= -2.3e-151) {
      		tmp = t_1;
      	} else if (z <= 9.6e-55) {
      		tmp = fma((t - z), (y / a), x);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	t_1 = fma(y, Float64(1.0 - Float64(t / z)), x)
      	tmp = 0.0
      	if (z <= -2.3e-151)
      		tmp = t_1;
      	elseif (z <= 9.6e-55)
      		tmp = fma(Float64(t - z), Float64(y / a), x);
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -2.3e-151], t$95$1, If[LessEqual[z, 9.6e-55], N[(N[(t - z), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(y, 1 - \frac{t}{z}, x\right)\\
      \mathbf{if}\;z \leq -2.3 \cdot 10^{-151}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 9.6 \cdot 10^{-55}:\\
      \;\;\;\;\mathsf{fma}\left(t - z, \frac{y}{a}, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -2.29999999999999996e-151 or 9.59999999999999966e-55 < z

        1. Initial program 83.8%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{t}{z}}, x\right) \]
          7. /-lowering-/.f6483.1

            \[\leadsto \mathsf{fma}\left(y, 1 - \color{blue}{\frac{t}{z}}, x\right) \]
        5. Simplified83.1%

          \[\leadsto \color{blue}{\mathsf{fma}\left(y, 1 - \frac{t}{z}, x\right)} \]

        if -2.29999999999999996e-151 < z < 9.59999999999999966e-55

        1. Initial program 94.4%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{y}{\color{blue}{z - a}}, z - t, x\right) \]
          8. --lowering--.f6496.6

            \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{z - t}, x\right) \]
        4. Applied egg-rr96.6%

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

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

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

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

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

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(z - t\right) \cdot \frac{y}{a}}\right)\right) + x \]
          5. distribute-lft-neg-inN/A

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(z - t\right), \frac{y}{a}, x\right)} \]
          8. sub-negN/A

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

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

            \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(-1 \cdot t + z\right)}, \frac{y}{a}, x\right) \]
          11. distribute-lft-inN/A

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

            \[\leadsto \mathsf{fma}\left(-1 \cdot \left(-1 \cdot t\right) + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}, \frac{y}{a}, x\right) \]
          13. unsub-negN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot \left(-1 \cdot t\right) - z}, \frac{y}{a}, x\right) \]
          14. neg-mul-1N/A

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

            \[\leadsto \mathsf{fma}\left(\left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(t\right)\right)}\right)\right) - z, \frac{y}{a}, x\right) \]
          16. remove-double-negN/A

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{t - z}, \frac{y}{a}, x\right) \]
          18. /-lowering-/.f6487.5

            \[\leadsto \mathsf{fma}\left(t - z, \color{blue}{\frac{y}{a}}, x\right) \]
        7. Simplified87.5%

          \[\leadsto \color{blue}{\mathsf{fma}\left(t - z, \frac{y}{a}, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 7: 81.3% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, 1 - \frac{t}{z}, x\right)\\ \mathbf{if}\;z \leq -1.6 \cdot 10^{-151}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 7.4 \cdot 10^{-29}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (fma y (- 1.0 (/ t z)) x)))
         (if (<= z -1.6e-151) t_1 (if (<= z 7.4e-29) (fma t (/ y a) x) t_1))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = fma(y, (1.0 - (t / z)), x);
      	double tmp;
      	if (z <= -1.6e-151) {
      		tmp = t_1;
      	} else if (z <= 7.4e-29) {
      		tmp = fma(t, (y / a), x);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	t_1 = fma(y, Float64(1.0 - Float64(t / z)), x)
      	tmp = 0.0
      	if (z <= -1.6e-151)
      		tmp = t_1;
      	elseif (z <= 7.4e-29)
      		tmp = fma(t, Float64(y / a), x);
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -1.6e-151], t$95$1, If[LessEqual[z, 7.4e-29], N[(t * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(y, 1 - \frac{t}{z}, x\right)\\
      \mathbf{if}\;z \leq -1.6 \cdot 10^{-151}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 7.4 \cdot 10^{-29}:\\
      \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -1.60000000000000011e-151 or 7.3999999999999995e-29 < z

        1. Initial program 83.5%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{t}{z}}, x\right) \]
          7. /-lowering-/.f6483.3

            \[\leadsto \mathsf{fma}\left(y, 1 - \color{blue}{\frac{t}{z}}, x\right) \]
        5. Simplified83.3%

          \[\leadsto \color{blue}{\mathsf{fma}\left(y, 1 - \frac{t}{z}, x\right)} \]

        if -1.60000000000000011e-151 < z < 7.3999999999999995e-29

        1. Initial program 94.6%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{1}{z - a}, \color{blue}{y \cdot \left(z - t\right)}, x\right) \]
          8. --lowering--.f6494.6

            \[\leadsto \mathsf{fma}\left(\frac{1}{z - a}, y \cdot \color{blue}{\left(z - t\right)}, x\right) \]
        4. Applied egg-rr94.6%

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y}{a}, x\right)} \]
          4. /-lowering-/.f6485.6

            \[\leadsto \mathsf{fma}\left(t, \color{blue}{\frac{y}{a}}, x\right) \]
        7. Simplified85.6%

          \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y}{a}, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 8: 76.8% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.95 \cdot 10^{-14}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{-15}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (<= z -1.95e-14) (+ y x) (if (<= z 1.15e-15) (fma t (/ y a) x) (+ y x))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if (z <= -1.95e-14) {
      		tmp = y + x;
      	} else if (z <= 1.15e-15) {
      		tmp = fma(t, (y / a), x);
      	} else {
      		tmp = y + x;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if (z <= -1.95e-14)
      		tmp = Float64(y + x);
      	elseif (z <= 1.15e-15)
      		tmp = fma(t, Float64(y / a), x);
      	else
      		tmp = Float64(y + x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.95e-14], N[(y + x), $MachinePrecision], If[LessEqual[z, 1.15e-15], N[(t * N[(y / a), $MachinePrecision] + x), $MachinePrecision], N[(y + x), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -1.95 \cdot 10^{-14}:\\
      \;\;\;\;y + x\\
      
      \mathbf{elif}\;z \leq 1.15 \cdot 10^{-15}:\\
      \;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;y + x\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -1.9499999999999999e-14 or 1.14999999999999995e-15 < z

        1. Initial program 79.8%

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

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

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

            \[\leadsto \color{blue}{y + x} \]
        5. Simplified80.2%

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

        if -1.9499999999999999e-14 < z < 1.14999999999999995e-15

        1. Initial program 95.9%

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{1}{z - a}, \color{blue}{y \cdot \left(z - t\right)}, x\right) \]
          8. --lowering--.f6495.9

            \[\leadsto \mathsf{fma}\left(\frac{1}{z - a}, y \cdot \color{blue}{\left(z - t\right)}, x\right) \]
        4. Applied egg-rr95.9%

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y}{a}, x\right)} \]
          4. /-lowering-/.f6474.9

            \[\leadsto \mathsf{fma}\left(t, \color{blue}{\frac{y}{a}}, x\right) \]
        7. Simplified74.9%

          \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y}{a}, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 9: 95.5% accurate, 1.1× speedup?

      \[\begin{array}{l} \\ \mathsf{fma}\left(\frac{y}{z - a}, z - t, x\right) \end{array} \]
      (FPCore (x y z t a) :precision binary64 (fma (/ y (- z a)) (- z t) x))
      double code(double x, double y, double z, double t, double a) {
      	return fma((y / (z - a)), (z - t), x);
      }
      
      function code(x, y, z, t, a)
      	return fma(Float64(y / Float64(z - a)), Float64(z - t), x)
      end
      
      code[x_, y_, z_, t_, a_] := N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision] + x), $MachinePrecision]
      
      \begin{array}{l}
      
      \\
      \mathsf{fma}\left(\frac{y}{z - a}, z - t, x\right)
      \end{array}
      
      Derivation
      1. Initial program 87.4%

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{y}{\color{blue}{z - a}}, z - t, x\right) \]
        8. --lowering--.f6494.0

          \[\leadsto \mathsf{fma}\left(\frac{y}{z - a}, \color{blue}{z - t}, x\right) \]
      4. Applied egg-rr94.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{z - a}, z - t, x\right)} \]
      5. Add Preprocessing

      Alternative 10: 60.8% accurate, 1.1× speedup?

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

        1. Initial program 95.4%

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

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

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

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{t}{a}, x\right)} \]
          5. /-lowering-/.f6461.3

            \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{t}{a}}, x\right) \]
        5. Simplified61.3%

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

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

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

            \[\leadsto \frac{\color{blue}{y \cdot t}}{a} \]
          3. *-lowering-*.f6465.4

            \[\leadsto \frac{\color{blue}{y \cdot t}}{a} \]
        8. Simplified65.4%

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

        if -1.48e205 < t

        1. Initial program 86.6%

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

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

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

            \[\leadsto \color{blue}{y + x} \]
        5. Simplified66.2%

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

      Alternative 11: 61.2% accurate, 1.1× speedup?

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

        1. Initial program 95.4%

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

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

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

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

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

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

            \[\leadsto \color{blue}{y \cdot \left(\mathsf{neg}\left(\frac{t}{z - a}\right)\right)} \]
          6. distribute-neg-frac2N/A

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

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

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

            \[\leadsto y \cdot \frac{t}{\mathsf{neg}\left(\left(z + \color{blue}{-1 \cdot a}\right)\right)} \]
          10. +-commutativeN/A

            \[\leadsto y \cdot \frac{t}{\mathsf{neg}\left(\color{blue}{\left(-1 \cdot a + z\right)}\right)} \]
          11. distribute-neg-inN/A

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

            \[\leadsto y \cdot \frac{t}{\left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)}\right)\right) + \left(\mathsf{neg}\left(z\right)\right)} \]
          13. remove-double-negN/A

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

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

            \[\leadsto y \cdot \frac{t}{\color{blue}{a + -1 \cdot z}} \]
          16. mul-1-negN/A

            \[\leadsto y \cdot \frac{t}{a + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}} \]
          17. neg-lowering-neg.f6474.7

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

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

          \[\leadsto y \cdot \frac{t}{\color{blue}{a}} \]
        7. Step-by-step derivation
          1. Simplified57.1%

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

          if -7.00000000000000062e203 < t

          1. Initial program 86.6%

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

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

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

              \[\leadsto \color{blue}{y + x} \]
          5. Simplified66.2%

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

        Alternative 12: 60.7% accurate, 6.5× speedup?

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

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

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

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

            \[\leadsto \color{blue}{y + x} \]
        5. Simplified61.7%

          \[\leadsto \color{blue}{y + x} \]
        6. Add Preprocessing

        Alternative 13: 50.8% accurate, 26.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 87.4%

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

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

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

          Developer Target 1: 98.2% accurate, 0.8× speedup?

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

          Reproduce

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