Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3

Percentage Accurate: 97.1% → 99.5%
Time: 9.6s
Alternatives: 13
Speedup: 1.3×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 13 alternatives:

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

Initial Program: 97.1% accurate, 1.0× speedup?

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

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

Alternative 1: 99.5% accurate, 1.0× speedup?

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

\\
x - \frac{a}{\frac{-1 - \left(t - z\right)}{z - y}}
\end{array}
Derivation
  1. Initial program 97.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 73.8% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
t_1 := x - \frac{y \cdot a}{t}\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+216}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, a, x\right)\\

\mathbf{elif}\;t \leq -3.8 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\

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

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


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

    1. Initial program 96.1%

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

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

        \[\leadsto x - \color{blue}{\left(\mathsf{neg}\left(1\right)\right)} \cdot \frac{a \cdot z}{\left(1 + t\right) - z} \]
      2. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

      if -6.50000000000000029e216 < t < -3.8000000000000001e41 or 58 < t

      1. Initial program 98.3%

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

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

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

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

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

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

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

        \[\leadsto x - \frac{a \cdot y}{t} \]
      7. Step-by-step derivation
        1. Applied rewrites80.8%

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

        if -3.8000000000000001e41 < t < 58

        1. Initial program 96.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(a, \frac{y}{\color{blue}{z - 1}}, x\right) \]
        9. Step-by-step derivation
          1. Applied rewrites75.1%

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

        Alternative 3: 91.8% accurate, 1.0× speedup?

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

          1. Initial program 96.6%

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

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

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

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

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

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

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

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

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

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

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

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

          if -4.9999999999999996e44 < t < 8.1999999999999997e76

          1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 8.1999999999999997e76 < t

          1. Initial program 98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 4: 86.8% accurate, 1.1× speedup?

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

          1. Initial program 94.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(y - z, \color{blue}{\frac{a}{z}}, x\right) \]
          6. Step-by-step derivation
            1. lower-/.f6485.2

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

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

          if -3.20000000000000018e85 < z < 128000

          1. Initial program 99.2%

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

            \[\leadsto \color{blue}{x - a} \]
          4. Step-by-step derivation
            1. lower--.f6445.3

              \[\leadsto \color{blue}{x - a} \]
          5. Applied rewrites45.3%

            \[\leadsto \color{blue}{x - a} \]
          6. Taylor expanded in x around 0

            \[\leadsto -1 \cdot \color{blue}{a} \]
          7. Step-by-step derivation
            1. Applied rewrites4.7%

              \[\leadsto -a \]
            2. Taylor expanded in z around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 5: 82.1% accurate, 1.1× speedup?

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

            1. Initial program 87.3%

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

              \[\leadsto \color{blue}{x - a} \]
            4. Step-by-step derivation
              1. lower--.f6482.3

                \[\leadsto \color{blue}{x - a} \]
            5. Applied rewrites82.3%

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

            if -1.39999999999999991e216 < z < 1.95e9

            1. Initial program 98.9%

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

              \[\leadsto \color{blue}{x - a} \]
            4. Step-by-step derivation
              1. lower--.f6447.9

                \[\leadsto \color{blue}{x - a} \]
            5. Applied rewrites47.9%

              \[\leadsto \color{blue}{x - a} \]
            6. Taylor expanded in x around 0

              \[\leadsto -1 \cdot \color{blue}{a} \]
            7. Step-by-step derivation
              1. Applied rewrites5.5%

                \[\leadsto -a \]
              2. Taylor expanded in z around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 1.95e9 < z

              1. Initial program 95.8%

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

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

                  \[\leadsto x - \color{blue}{a \cdot \frac{y - z}{1 - z}} \]
                2. cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

                \[\leadsto x + \color{blue}{\frac{a \cdot z}{1 - z}} \]
              7. Step-by-step derivation
                1. Applied rewrites81.9%

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

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

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

                Alternative 6: 71.8% accurate, 1.1× speedup?

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

                  1. Initial program 94.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(a, \frac{y}{\color{blue}{z - 1}}, x\right) \]
                  9. Step-by-step derivation
                    1. Applied rewrites65.1%

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

                    if -1.1999999999999999e98 < y < 2.89999999999999998e163

                    1. Initial program 97.9%

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

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

                        \[\leadsto x - \color{blue}{a \cdot \frac{y - z}{1 - z}} \]
                      2. cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

                      \[\leadsto x + \color{blue}{\frac{a \cdot z}{1 - z}} \]
                    7. Step-by-step derivation
                      1. Applied rewrites82.4%

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

                      if 2.89999999999999998e163 < y

                      1. Initial program 97.0%

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

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

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

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

                          \[\leadsto x - \frac{\color{blue}{\left(y - z\right) \cdot a}}{t} \]
                        4. lower--.f6468.0

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

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

                        \[\leadsto x - \frac{a \cdot y}{t} \]
                      7. Step-by-step derivation
                        1. Applied rewrites65.3%

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

                      Alternative 7: 75.1% accurate, 1.2× speedup?

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

                        1. Initial program 94.8%

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

                          \[\leadsto \color{blue}{x - a} \]
                        4. Step-by-step derivation
                          1. lower--.f6468.0

                            \[\leadsto \color{blue}{x - a} \]
                        5. Applied rewrites68.0%

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

                        if -3.8e14 < z < 15000

                        1. Initial program 99.1%

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

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

                            \[\leadsto x - \color{blue}{a \cdot \frac{y - z}{1 - z}} \]
                          2. cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

                          if 15000 < z

                          1. Initial program 95.8%

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

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

                              \[\leadsto x - \color{blue}{a \cdot \frac{y - z}{1 - z}} \]
                            2. cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

                            \[\leadsto x + \color{blue}{\frac{a \cdot z}{1 - z}} \]
                          7. Step-by-step derivation
                            1. Applied rewrites81.9%

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

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

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

                            Alternative 8: 73.6% accurate, 1.2× speedup?

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

                              1. Initial program 94.3%

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

                                \[\leadsto \color{blue}{x - a} \]
                              4. Step-by-step derivation
                                1. lower--.f6466.8

                                  \[\leadsto \color{blue}{x - a} \]
                              5. Applied rewrites66.8%

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

                              if -5.50000000000000002e31 < z < 4.8e5

                              1. Initial program 99.1%

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

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

                                  \[\leadsto x - \color{blue}{a \cdot \frac{y - z}{1 - z}} \]
                                2. cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

                                \[\leadsto x + \color{blue}{-1 \cdot \left(a \cdot y\right)} \]
                              7. Step-by-step derivation
                                1. Applied rewrites67.2%

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

                                if 4.8e5 < z

                                1. Initial program 95.8%

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

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

                                    \[\leadsto x - \color{blue}{a \cdot \frac{y - z}{1 - z}} \]
                                  2. cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

                                  \[\leadsto x + \color{blue}{\frac{a \cdot z}{1 - z}} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites81.9%

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

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

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

                                  Alternative 9: 97.4% accurate, 1.3× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 10: 73.5% accurate, 1.7× speedup?

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

                                    1. Initial program 95.1%

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

                                      \[\leadsto \color{blue}{x - a} \]
                                    4. Step-by-step derivation
                                      1. lower--.f6474.9

                                        \[\leadsto \color{blue}{x - a} \]
                                    5. Applied rewrites74.9%

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

                                    if -5.50000000000000002e31 < z < 4.8e5

                                    1. Initial program 99.1%

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

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

                                        \[\leadsto x - \color{blue}{a \cdot \frac{y - z}{1 - z}} \]
                                      2. cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

                                      \[\leadsto x + \color{blue}{-1 \cdot \left(a \cdot y\right)} \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites67.2%

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

                                    Alternative 11: 67.2% accurate, 1.8× speedup?

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

                                      1. Initial program 95.5%

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

                                        \[\leadsto \color{blue}{x - a} \]
                                      4. Step-by-step derivation
                                        1. lower--.f6475.2

                                          \[\leadsto \color{blue}{x - a} \]
                                      5. Applied rewrites75.2%

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

                                      if -7.0000000000000001e-15 < z < 2e9

                                      1. Initial program 99.1%

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

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

                                          \[\leadsto x - \color{blue}{a \cdot \frac{y - z}{1 - z}} \]
                                        2. cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

                                        \[\leadsto x + \color{blue}{\frac{a \cdot z}{1 - z}} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites61.6%

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

                                          \[\leadsto x + a \cdot \color{blue}{z} \]
                                        3. Step-by-step derivation
                                          1. Applied rewrites61.5%

                                            \[\leadsto \mathsf{fma}\left(a, z, x\right) \]
                                        4. Recombined 2 regimes into one program.
                                        5. Add Preprocessing

                                        Alternative 12: 60.3% accurate, 8.8× speedup?

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

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

                                          \[\leadsto \color{blue}{x - a} \]
                                        4. Step-by-step derivation
                                          1. lower--.f6459.4

                                            \[\leadsto \color{blue}{x - a} \]
                                        5. Applied rewrites59.4%

                                          \[\leadsto \color{blue}{x - a} \]
                                        6. Add Preprocessing

                                        Alternative 13: 16.6% accurate, 11.7× speedup?

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

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

                                          \[\leadsto \color{blue}{x - a} \]
                                        4. Step-by-step derivation
                                          1. lower--.f6459.4

                                            \[\leadsto \color{blue}{x - a} \]
                                        5. Applied rewrites59.4%

                                          \[\leadsto \color{blue}{x - a} \]
                                        6. Taylor expanded in x around 0

                                          \[\leadsto -1 \cdot \color{blue}{a} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites14.7%

                                            \[\leadsto -a \]
                                          2. Add Preprocessing

                                          Developer Target 1: 99.6% accurate, 1.2× speedup?

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

                                          Reproduce

                                          ?
                                          herbie shell --seed 2024298 
                                          (FPCore (x y z t a)
                                            :name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
                                            :precision binary64
                                          
                                            :alt
                                            (! :herbie-platform default (- x (* (/ (- y z) (+ (- t z) 1)) a)))
                                          
                                            (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))