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

Percentage Accurate: 77.2% → 90.4%
Time: 8.5s
Alternatives: 13
Speedup: 0.9×

Specification

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

\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{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 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: 77.2% accurate, 1.0× speedup?

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

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

Alternative 1: 90.4% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -8 \cdot 10^{+128}:\\ \;\;\;\;x - \left(\left(a - z\right) \cdot \frac{y}{t}\right) \cdot \left(\frac{a}{t} - -1\right)\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{+77}:\\ \;\;\;\;\left(y + x\right) - \frac{z - t}{\frac{a - t}{y}}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{a - z}{t}, x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= t -8e+128)
   (- x (* (* (- a z) (/ y t)) (- (/ a t) -1.0)))
   (if (<= t 3.1e+77)
     (- (+ y x) (/ (- z t) (/ (- a t) y)))
     (fma (- y) (/ (- a z) t) x))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (t <= -8e+128) {
		tmp = x - (((a - z) * (y / t)) * ((a / t) - -1.0));
	} else if (t <= 3.1e+77) {
		tmp = (y + x) - ((z - t) / ((a - t) / y));
	} else {
		tmp = fma(-y, ((a - z) / t), x);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if (t <= -8e+128)
		tmp = Float64(x - Float64(Float64(Float64(a - z) * Float64(y / t)) * Float64(Float64(a / t) - -1.0)));
	elseif (t <= 3.1e+77)
		tmp = Float64(Float64(y + x) - Float64(Float64(z - t) / Float64(Float64(a - t) / y)));
	else
		tmp = fma(Float64(-y), Float64(Float64(a - z) / t), x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -8e+128], N[(x - N[(N[(N[(a - z), $MachinePrecision] * N[(y / t), $MachinePrecision]), $MachinePrecision] * N[(N[(a / t), $MachinePrecision] - -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e+77], N[(N[(y + x), $MachinePrecision] - N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-y) * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{+128}:\\
\;\;\;\;x - \left(\left(a - z\right) \cdot \frac{y}{t}\right) \cdot \left(\frac{a}{t} - -1\right)\\

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

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-y, \frac{a - z}{t}, x\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -8.0000000000000006e128

    1. Initial program 59.2%

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

      \[\leadsto \color{blue}{\left(x + \left(-1 \cdot \frac{a \cdot y}{t} + -1 \cdot \frac{a \cdot \left(-1 \cdot \left(y \cdot z\right) - -1 \cdot \left(a \cdot y\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Applied rewrites99.8%

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

    if -8.0000000000000006e128 < t < 3.09999999999999999e77

    1. Initial program 91.7%

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

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

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

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

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

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

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

        \[\leadsto \left(x + y\right) - \frac{1}{\color{blue}{\frac{\frac{a - t}{y}}{z - t}}} \]
      8. lower-/.f6493.7

        \[\leadsto \left(x + y\right) - \frac{1}{\frac{\color{blue}{\frac{a - t}{y}}}{z - t}} \]
    4. Applied rewrites93.7%

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

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

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

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{\frac{a - t}{y}}} \]
      4. lower-/.f6493.8

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{\frac{a - t}{y}}} \]
    6. Applied rewrites93.8%

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

    if 3.09999999999999999e77 < t

    1. Initial program 44.3%

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

      \[\leadsto \color{blue}{\left(x + \left(-1 \cdot \frac{a \cdot y}{t} + -1 \cdot \frac{a \cdot \left(-1 \cdot \left(y \cdot z\right) - -1 \cdot \left(a \cdot y\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Applied rewrites92.4%

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

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

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

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

    Alternative 2: 90.5% accurate, 0.6× speedup?

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

      1. Initial program 59.2%

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(\color{blue}{z \cdot \frac{y}{t}} - a \cdot \frac{y}{t}\right) + x \]
        12. distribute-rgt-out--N/A

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

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

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

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

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

      if -8.0000000000000006e128 < t < 3.09999999999999999e77

      1. Initial program 91.7%

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

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

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

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

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

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

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

          \[\leadsto \left(x + y\right) - \frac{1}{\color{blue}{\frac{\frac{a - t}{y}}{z - t}}} \]
        8. lower-/.f6493.7

          \[\leadsto \left(x + y\right) - \frac{1}{\frac{\color{blue}{\frac{a - t}{y}}}{z - t}} \]
      4. Applied rewrites93.7%

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

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

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

          \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{\frac{a - t}{y}}} \]
        4. lower-/.f6493.8

          \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{\frac{a - t}{y}}} \]
      6. Applied rewrites93.8%

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

      if 3.09999999999999999e77 < t

      1. Initial program 44.3%

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

        \[\leadsto \color{blue}{\left(x + \left(-1 \cdot \frac{a \cdot y}{t} + -1 \cdot \frac{a \cdot \left(-1 \cdot \left(y \cdot z\right) - -1 \cdot \left(a \cdot y\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{y \cdot z}{t}} \]
      4. Applied rewrites92.4%

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

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

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

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

      Alternative 3: 88.7% accurate, 0.7× speedup?

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

        1. Initial program 59.0%

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\color{blue}{z \cdot \frac{y}{t}} - a \cdot \frac{y}{t}\right) + x \]
          12. distribute-rgt-out--N/A

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

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

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

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

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

        if -4.90000000000000021e113 < t < 7.79999999999999979e76

        1. Initial program 92.2%

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

        if 7.79999999999999979e76 < t

        1. Initial program 44.3%

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

          \[\leadsto \color{blue}{\left(x + \left(-1 \cdot \frac{a \cdot y}{t} + -1 \cdot \frac{a \cdot \left(-1 \cdot \left(y \cdot z\right) - -1 \cdot \left(a \cdot y\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{y \cdot z}{t}} \]
        4. Applied rewrites92.4%

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

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

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

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

        Alternative 4: 89.7% accurate, 0.8× speedup?

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

          1. Initial program 59.2%

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(\color{blue}{z \cdot \frac{y}{t}} - a \cdot \frac{y}{t}\right) + x \]
            12. distribute-rgt-out--N/A

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

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

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

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

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

          if -8.0000000000000006e128 < t < 7.79999999999999979e76

          1. Initial program 91.7%

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

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

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

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

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

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

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

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

          if 7.79999999999999979e76 < t

          1. Initial program 44.3%

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

            \[\leadsto \color{blue}{\left(x + \left(-1 \cdot \frac{a \cdot y}{t} + -1 \cdot \frac{a \cdot \left(-1 \cdot \left(y \cdot z\right) - -1 \cdot \left(a \cdot y\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{y \cdot z}{t}} \]
          4. Applied rewrites92.4%

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

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

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

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

          Alternative 5: 81.4% accurate, 0.8× speedup?

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

            1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \left(\color{blue}{z \cdot \frac{y}{t}} - a \cdot \frac{y}{t}\right) + x \]
              12. distribute-rgt-out--N/A

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

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

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

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

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

            if -1.15000000000000003e-76 < t < 7.4000000000000002e74

            1. Initial program 92.6%

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

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

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

                \[\leadsto \left(x + y\right) - \frac{\color{blue}{z \cdot y}}{a} \]
              3. lower-*.f6481.2

                \[\leadsto \left(x + y\right) - \frac{\color{blue}{z \cdot y}}{a} \]
            5. Applied rewrites81.2%

              \[\leadsto \left(x + y\right) - \color{blue}{\frac{z \cdot y}{a}} \]
            6. Step-by-step derivation
              1. Applied rewrites82.6%

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

              if 7.4000000000000002e74 < t

              1. Initial program 44.3%

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

                \[\leadsto \color{blue}{\left(x + \left(-1 \cdot \frac{a \cdot y}{t} + -1 \cdot \frac{a \cdot \left(-1 \cdot \left(y \cdot z\right) - -1 \cdot \left(a \cdot y\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{y \cdot z}{t}} \]
              4. Applied rewrites92.4%

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

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

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

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

              Alternative 6: 81.7% accurate, 0.8× speedup?

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

                1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \left(\color{blue}{z \cdot \frac{y}{t}} - a \cdot \frac{y}{t}\right) + x \]
                  12. distribute-rgt-out--N/A

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

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

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

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

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

                if -1.2499999999999999e-76 < t < 3.69999999999999973e73

                1. Initial program 92.6%

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

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

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

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

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

                    \[\leadsto \left(y \cdot 1 - \color{blue}{y \cdot \frac{z}{a}}\right) + x \]
                  5. distribute-lft-out--N/A

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

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

                    \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{z}{a}}, x\right) \]
                  8. lower-/.f6482.4

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

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

                if 3.69999999999999973e73 < t

                1. Initial program 44.3%

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

                  \[\leadsto \color{blue}{\left(x + \left(-1 \cdot \frac{a \cdot y}{t} + -1 \cdot \frac{a \cdot \left(-1 \cdot \left(y \cdot z\right) - -1 \cdot \left(a \cdot y\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{y \cdot z}{t}} \]
                4. Applied rewrites92.4%

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

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

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

                Alternative 7: 81.4% accurate, 0.9× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\frac{y}{t}, z - a, x\right)\\ \mathbf{if}\;t \leq -1.25 \cdot 10^{-76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.9 \cdot 10^{+79}:\\ \;\;\;\;\mathsf{fma}\left(y, 1 - \frac{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 t) (- z a) x)))
                   (if (<= t -1.25e-76)
                     t_1
                     (if (<= t 1.9e+79) (fma y (- 1.0 (/ z a)) x) t_1))))
                double code(double x, double y, double z, double t, double a) {
                	double t_1 = fma((y / t), (z - a), x);
                	double tmp;
                	if (t <= -1.25e-76) {
                		tmp = t_1;
                	} else if (t <= 1.9e+79) {
                		tmp = fma(y, (1.0 - (z / a)), x);
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a)
                	t_1 = fma(Float64(y / t), Float64(z - a), x)
                	tmp = 0.0
                	if (t <= -1.25e-76)
                		tmp = t_1;
                	elseif (t <= 1.9e+79)
                		tmp = fma(y, Float64(1.0 - 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 / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.25e-76], t$95$1, If[LessEqual[t, 1.9e+79], N[(y * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(\frac{y}{t}, z - a, x\right)\\
                \mathbf{if}\;t \leq -1.25 \cdot 10^{-76}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \leq 1.9 \cdot 10^{+79}:\\
                \;\;\;\;\mathsf{fma}\left(y, 1 - \frac{z}{a}, x\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t < -1.2499999999999999e-76 or 1.9000000000000001e79 < t

                  1. Initial program 63.8%

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \left(\color{blue}{z \cdot \frac{y}{t}} - a \cdot \frac{y}{t}\right) + x \]
                    12. distribute-rgt-out--N/A

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

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

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

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

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

                  if -1.2499999999999999e-76 < t < 1.9000000000000001e79

                  1. Initial program 92.7%

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

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

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

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

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

                      \[\leadsto \left(y \cdot 1 - \color{blue}{y \cdot \frac{z}{a}}\right) + x \]
                    5. distribute-lft-out--N/A

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

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

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

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

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

                Alternative 8: 82.8% accurate, 0.9× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y, 1 - \frac{z}{a}, x\right)\\ \mathbf{if}\;a \leq -4.7 \cdot 10^{-67}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.95 \cdot 10^{-72}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, 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 (/ z a)) x)))
                   (if (<= a -4.7e-67) t_1 (if (<= a 1.95e-72) (fma (/ z t) y x) t_1))))
                double code(double x, double y, double z, double t, double a) {
                	double t_1 = fma(y, (1.0 - (z / a)), x);
                	double tmp;
                	if (a <= -4.7e-67) {
                		tmp = t_1;
                	} else if (a <= 1.95e-72) {
                		tmp = fma((z / t), y, x);
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a)
                	t_1 = fma(y, Float64(1.0 - Float64(z / a)), x)
                	tmp = 0.0
                	if (a <= -4.7e-67)
                		tmp = t_1;
                	elseif (a <= 1.95e-72)
                		tmp = fma(Float64(z / t), y, 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[(z / a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -4.7e-67], t$95$1, If[LessEqual[a, 1.95e-72], N[(N[(z / t), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(y, 1 - \frac{z}{a}, x\right)\\
                \mathbf{if}\;a \leq -4.7 \cdot 10^{-67}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;a \leq 1.95 \cdot 10^{-72}:\\
                \;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, x\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if a < -4.70000000000000004e-67 or 1.95e-72 < a

                  1. Initial program 78.3%

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

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

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

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

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

                      \[\leadsto \left(y \cdot 1 - \color{blue}{y \cdot \frac{z}{a}}\right) + x \]
                    5. distribute-lft-out--N/A

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

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

                      \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{z}{a}}, x\right) \]
                    8. lower-/.f6481.6

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

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

                  if -4.70000000000000004e-67 < a < 1.95e-72

                  1. Initial program 77.8%

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

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

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

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

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

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

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

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

                      \[\leadsto \left(y + \color{blue}{\frac{z - t}{t} \cdot y}\right) + x \]
                    8. distribute-rgt1-inN/A

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

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

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

                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{t}} + 1, y, x\right) \]
                    12. lower--.f6479.3

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

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

                    \[\leadsto \mathsf{fma}\left(\frac{z}{t}, y, x\right) \]
                  7. Step-by-step derivation
                    1. Applied rewrites88.0%

                      \[\leadsto \mathsf{fma}\left(\frac{z}{t}, y, x\right) \]
                  8. Recombined 2 regimes into one program.
                  9. Add Preprocessing

                  Alternative 9: 76.5% accurate, 1.0× speedup?

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

                    1. Initial program 80.6%

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

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

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

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

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

                        \[\leadsto \left(y \cdot 1 - \color{blue}{y \cdot \frac{z}{a}}\right) + x \]
                      5. distribute-lft-out--N/A

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

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

                        \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{z}{a}}, x\right) \]
                      8. lower-/.f6486.9

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

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

                      \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                    7. Step-by-step derivation
                      1. Applied rewrites78.4%

                        \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                      2. Taylor expanded in z around 0

                        \[\leadsto x + \color{blue}{y} \]
                      3. Step-by-step derivation
                        1. Applied rewrites78.4%

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

                        if -1.2599999999999999e113 < a < 2.1e-69

                        1. Initial program 76.3%

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

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

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

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

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

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

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

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

                            \[\leadsto \left(y + \color{blue}{\frac{z - t}{t} \cdot y}\right) + x \]
                          8. distribute-rgt1-inN/A

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

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

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{t}} + 1, y, x\right) \]
                          12. lower--.f6471.3

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

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

                          \[\leadsto \mathsf{fma}\left(\frac{z}{t}, y, x\right) \]
                        7. Step-by-step derivation
                          1. Applied rewrites79.6%

                            \[\leadsto \mathsf{fma}\left(\frac{z}{t}, y, x\right) \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification79.1%

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

                        Alternative 10: 76.6% accurate, 1.0× speedup?

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

                          1. Initial program 79.6%

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

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

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

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

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

                              \[\leadsto \left(y \cdot 1 - \color{blue}{y \cdot \frac{z}{a}}\right) + x \]
                            5. distribute-lft-out--N/A

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

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

                              \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{z}{a}}, x\right) \]
                            8. lower-/.f6488.0

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

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

                            \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                          7. Step-by-step derivation
                            1. Applied rewrites82.0%

                              \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                            2. Taylor expanded in z around 0

                              \[\leadsto x + \color{blue}{y} \]
                            3. Step-by-step derivation
                              1. Applied rewrites82.0%

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

                              if -1.2599999999999999e113 < a < 8.2000000000000004e-13

                              1. Initial program 77.2%

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

                                \[\leadsto \color{blue}{\left(x + \left(-1 \cdot \frac{a \cdot y}{t} + -1 \cdot \frac{a \cdot \left(-1 \cdot \left(y \cdot z\right) - -1 \cdot \left(a \cdot y\right)\right)}{{t}^{2}}\right)\right) - -1 \cdot \frac{y \cdot z}{t}} \]
                              4. Applied rewrites77.6%

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

                                \[\leadsto x - \color{blue}{-1 \cdot \frac{y \cdot z}{t}} \]
                              6. Step-by-step derivation
                                1. Applied rewrites77.0%

                                  \[\leadsto \mathsf{fma}\left(\frac{y}{t}, \color{blue}{z}, x\right) \]
                              7. Recombined 2 regimes into one program.
                              8. Final simplification78.9%

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

                              Alternative 11: 60.9% accurate, 1.3× speedup?

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

                                1. Initial program 77.5%

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

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

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

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

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

                                    \[\leadsto \left(y \cdot 1 - \color{blue}{y \cdot \frac{z}{a}}\right) + x \]
                                  5. distribute-lft-out--N/A

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

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

                                    \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{z}{a}}, x\right) \]
                                  8. lower-/.f6465.6

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

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

                                  \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                                7. Step-by-step derivation
                                  1. Applied rewrites67.1%

                                    \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                                  2. Taylor expanded in z around 0

                                    \[\leadsto x + \color{blue}{y} \]
                                  3. Step-by-step derivation
                                    1. Applied rewrites67.1%

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

                                    if 8.5e200 < z

                                    1. Initial program 83.4%

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

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

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

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

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

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

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

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

                                        \[\leadsto \left(y + \color{blue}{\frac{z - t}{t} \cdot y}\right) + x \]
                                      8. distribute-rgt1-inN/A

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z - t}{t}} + 1, y, x\right) \]
                                      12. lower--.f6473.3

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

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

                                      \[\leadsto \frac{y \cdot z}{\color{blue}{t}} \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites57.3%

                                        \[\leadsto \frac{z \cdot y}{\color{blue}{t}} \]
                                    8. Recombined 2 regimes into one program.
                                    9. Final simplification66.0%

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

                                    Alternative 12: 63.5% accurate, 1.4× speedup?

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

                                      1. Initial program 51.3%

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

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

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

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

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

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

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

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

                                          \[\leadsto \left(y + \color{blue}{\frac{z - t}{t} \cdot y}\right) + x \]
                                        8. distribute-rgt1-inN/A

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

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

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

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

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

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

                                        \[\leadsto -1 \cdot \color{blue}{\left(x \cdot \left(-1 \cdot \frac{y \cdot z}{t \cdot x} - 1\right)\right)} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites73.7%

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

                                          \[\leadsto \left(-x\right) \cdot -1 \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites65.7%

                                            \[\leadsto \left(-x\right) \cdot -1 \]

                                          if -9.6e119 < t < 3.39999999999999997e77

                                          1. Initial program 92.2%

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

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

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

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

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

                                              \[\leadsto \left(y \cdot 1 - \color{blue}{y \cdot \frac{z}{a}}\right) + x \]
                                            5. distribute-lft-out--N/A

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

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

                                              \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{z}{a}}, x\right) \]
                                            8. lower-/.f6474.7

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

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

                                            \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites67.1%

                                              \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                                            2. Taylor expanded in z around 0

                                              \[\leadsto x + \color{blue}{y} \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites67.1%

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9.6 \cdot 10^{+119}:\\ \;\;\;\;-1 \cdot \left(-x\right)\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{+77}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;-1 \cdot \left(-x\right)\\ \end{array} \]
                                            6. Add Preprocessing

                                            Alternative 13: 60.8% accurate, 7.3× 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 78.1%

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

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

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

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

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

                                                \[\leadsto \left(y \cdot 1 - \color{blue}{y \cdot \frac{z}{a}}\right) + x \]
                                              5. distribute-lft-out--N/A

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

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

                                                \[\leadsto \mathsf{fma}\left(y, \color{blue}{1 - \frac{z}{a}}, x\right) \]
                                              8. lower-/.f6463.0

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

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

                                              \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites61.6%

                                                \[\leadsto \mathsf{fma}\left(y, 1, x\right) \]
                                              2. Taylor expanded in z around 0

                                                \[\leadsto x + \color{blue}{y} \]
                                              3. Step-by-step derivation
                                                1. Applied rewrites61.6%

                                                  \[\leadsto x + \color{blue}{y} \]
                                                2. Final simplification61.6%

                                                  \[\leadsto y + x \]
                                                3. Add Preprocessing

                                                Developer Target 1: 87.9% accurate, 0.3× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\ t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\ \;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a)
                                                 :precision binary64
                                                 (let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
                                                        (t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
                                                   (if (< t_2 -1.3664970889390727e-7)
                                                     t_1
                                                     (if (< t_2 1.4754293444577233e-239)
                                                       (/ (- (* y (- a z)) (* x t)) (- a t))
                                                       t_1))))
                                                double code(double x, double y, double z, double t, double a) {
                                                	double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
                                                	double t_2 = (x + y) - (((z - t) * y) / (a - t));
                                                	double tmp;
                                                	if (t_2 < -1.3664970889390727e-7) {
                                                		tmp = t_1;
                                                	} else if (t_2 < 1.4754293444577233e-239) {
                                                		tmp = ((y * (a - z)) - (x * t)) / (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) :: t_2
                                                    real(8) :: tmp
                                                    t_1 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
                                                    t_2 = (x + y) - (((z - t) * y) / (a - t))
                                                    if (t_2 < (-1.3664970889390727d-7)) then
                                                        tmp = t_1
                                                    else if (t_2 < 1.4754293444577233d-239) then
                                                        tmp = ((y * (a - z)) - (x * t)) / (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 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
                                                	double t_2 = (x + y) - (((z - t) * y) / (a - t));
                                                	double tmp;
                                                	if (t_2 < -1.3664970889390727e-7) {
                                                		tmp = t_1;
                                                	} else if (t_2 < 1.4754293444577233e-239) {
                                                		tmp = ((y * (a - z)) - (x * t)) / (a - t);
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a):
                                                	t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y)
                                                	t_2 = (x + y) - (((z - t) * y) / (a - t))
                                                	tmp = 0
                                                	if t_2 < -1.3664970889390727e-7:
                                                		tmp = t_1
                                                	elif t_2 < 1.4754293444577233e-239:
                                                		tmp = ((y * (a - z)) - (x * t)) / (a - t)
                                                	else:
                                                		tmp = t_1
                                                	return tmp
                                                
                                                function code(x, y, z, t, a)
                                                	t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y))
                                                	t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t)))
                                                	tmp = 0.0
                                                	if (t_2 < -1.3664970889390727e-7)
                                                		tmp = t_1;
                                                	elseif (t_2 < 1.4754293444577233e-239)
                                                		tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t));
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a)
                                                	t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
                                                	t_2 = (x + y) - (((z - t) * y) / (a - t));
                                                	tmp = 0.0;
                                                	if (t_2 < -1.3664970889390727e-7)
                                                		tmp = t_1;
                                                	elseif (t_2 < 1.4754293444577233e-239)
                                                		tmp = ((y * (a - z)) - (x * t)) / (a - t);
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
                                                t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
                                                \mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\
                                                \;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                

                                                Reproduce

                                                ?
                                                herbie shell --seed 2024294 
                                                (FPCore (x y z t a)
                                                  :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
                                                  :precision binary64
                                                
                                                  :alt
                                                  (! :herbie-platform default (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -13664970889390727/100000000000000000000000) (- (+ y x) (* (* (- z t) (/ 1 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 14754293444577233/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1 (- a t))) y)))))
                                                
                                                  (- (+ x y) (/ (* (- z t) y) (- a t))))