Development.Shake.Progress:decay from shake-0.15.5

Percentage Accurate: 67.1% → 86.5%
Time: 12.1s
Alternatives: 16
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 67.1% accurate, 1.0× speedup?

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

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

Alternative 1: 86.5% accurate, 0.2× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -8.19999999999999959e99

    1. Initial program 28.1%

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

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      2. lower--.f64N/A

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. lower--.f6493.3

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Applied rewrites93.3%

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

    if -8.19999999999999959e99 < z < 2.00000000000000009e48

    1. Initial program 86.5%

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

    if 2.00000000000000009e48 < z

    1. Initial program 35.0%

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

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

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

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

Alternative 2: 72.0% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b - y, z, y\right)\\ t_2 := \frac{\mathsf{fma}\left(-a, z, y \cdot x\right)}{t\_1}\\ t_3 := \frac{t - a}{b - y}\\ t_4 := \frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{t\_1}\\ \mathbf{if}\;z \leq -5.6 \cdot 10^{+59}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;z \leq -2.45 \cdot 10^{-86}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq -2.5 \cdot 10^{-290}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{-202}:\\ \;\;\;\;\frac{y}{t\_1} \cdot x\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-142}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{+14}:\\ \;\;\;\;t\_4\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (fma (- b y) z y))
        (t_2 (/ (fma (- a) z (* y x)) t_1))
        (t_3 (/ (- t a) (- b y)))
        (t_4 (/ (fma t z (* y x)) t_1)))
   (if (<= z -5.6e+59)
     t_3
     (if (<= z -2.45e-86)
       t_2
       (if (<= z -2.5e-290)
         t_4
         (if (<= z 3.8e-202)
           (* (/ y t_1) x)
           (if (<= z 1.7e-142) t_2 (if (<= z 1.15e+14) t_4 t_3))))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma((b - y), z, y);
	double t_2 = fma(-a, z, (y * x)) / t_1;
	double t_3 = (t - a) / (b - y);
	double t_4 = fma(t, z, (y * x)) / t_1;
	double tmp;
	if (z <= -5.6e+59) {
		tmp = t_3;
	} else if (z <= -2.45e-86) {
		tmp = t_2;
	} else if (z <= -2.5e-290) {
		tmp = t_4;
	} else if (z <= 3.8e-202) {
		tmp = (y / t_1) * x;
	} else if (z <= 1.7e-142) {
		tmp = t_2;
	} else if (z <= 1.15e+14) {
		tmp = t_4;
	} else {
		tmp = t_3;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = fma(Float64(b - y), z, y)
	t_2 = Float64(fma(Float64(-a), z, Float64(y * x)) / t_1)
	t_3 = Float64(Float64(t - a) / Float64(b - y))
	t_4 = Float64(fma(t, z, Float64(y * x)) / t_1)
	tmp = 0.0
	if (z <= -5.6e+59)
		tmp = t_3;
	elseif (z <= -2.45e-86)
		tmp = t_2;
	elseif (z <= -2.5e-290)
		tmp = t_4;
	elseif (z <= 3.8e-202)
		tmp = Float64(Float64(y / t_1) * x);
	elseif (z <= 1.7e-142)
		tmp = t_2;
	elseif (z <= 1.15e+14)
		tmp = t_4;
	else
		tmp = t_3;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-a) * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[z, -5.6e+59], t$95$3, If[LessEqual[z, -2.45e-86], t$95$2, If[LessEqual[z, -2.5e-290], t$95$4, If[LessEqual[z, 3.8e-202], N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 1.7e-142], t$95$2, If[LessEqual[z, 1.15e+14], t$95$4, t$95$3]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b - y, z, y\right)\\
t_2 := \frac{\mathsf{fma}\left(-a, z, y \cdot x\right)}{t\_1}\\
t_3 := \frac{t - a}{b - y}\\
t_4 := \frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{t\_1}\\
\mathbf{if}\;z \leq -5.6 \cdot 10^{+59}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;z \leq -2.45 \cdot 10^{-86}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;z \leq -2.5 \cdot 10^{-290}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;z \leq 3.8 \cdot 10^{-202}:\\
\;\;\;\;\frac{y}{t\_1} \cdot x\\

\mathbf{elif}\;z \leq 1.7 \cdot 10^{-142}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;z \leq 1.15 \cdot 10^{+14}:\\
\;\;\;\;t\_4\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -5.5999999999999996e59 or 1.15e14 < z

    1. Initial program 42.3%

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

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      2. lower--.f64N/A

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. lower--.f6489.1

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Applied rewrites89.1%

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

    if -5.5999999999999996e59 < z < -2.44999999999999986e-86 or 3.80000000000000014e-202 < z < 1.70000000000000014e-142

    1. Initial program 90.6%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(\color{blue}{\frac{t - a}{x}}, z, y\right) \cdot x}{y + z \cdot \left(b - y\right)} \]
      8. lower--.f6474.5

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(\frac{t - a}{x}, z, y\right) \cdot x}{\color{blue}{\left(b - y\right) \cdot z + y}} \]
      5. lift-fma.f6474.5

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(-a, z, \color{blue}{y \cdot x}\right)}{\mathsf{fma}\left(b - y, z, y\right)} \]
    10. Applied rewrites77.1%

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

    if -2.44999999999999986e-86 < z < -2.5e-290 or 1.70000000000000014e-142 < z < 1.15e14

    1. Initial program 90.1%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \]
      8. lower--.f6473.6

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

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

    if -2.5e-290 < z < 3.80000000000000014e-202

    1. Initial program 69.7%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
      8. lower--.f6484.4

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

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

Alternative 3: 69.2% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b - y, z, y\right)\\ t_2 := \frac{\left(t - a\right) \cdot z}{t\_1}\\ t_3 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -1.35 \cdot 10^{-8}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;z \leq -3.5 \cdot 10^{-131}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq 1.1 \cdot 10^{-191}:\\ \;\;\;\;\frac{y}{t\_1} \cdot x\\ \mathbf{elif}\;z \leq 4 \cdot 10^{-28}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (fma (- b y) z y))
        (t_2 (/ (* (- t a) z) t_1))
        (t_3 (/ (- t a) (- b y))))
   (if (<= z -1.35e-8)
     t_3
     (if (<= z -3.5e-131)
       t_2
       (if (<= z 1.1e-191) (* (/ y t_1) x) (if (<= z 4e-28) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = fma((b - y), z, y);
	double t_2 = ((t - a) * z) / t_1;
	double t_3 = (t - a) / (b - y);
	double tmp;
	if (z <= -1.35e-8) {
		tmp = t_3;
	} else if (z <= -3.5e-131) {
		tmp = t_2;
	} else if (z <= 1.1e-191) {
		tmp = (y / t_1) * x;
	} else if (z <= 4e-28) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = fma(Float64(b - y), z, y)
	t_2 = Float64(Float64(Float64(t - a) * z) / t_1)
	t_3 = Float64(Float64(t - a) / Float64(b - y))
	tmp = 0.0
	if (z <= -1.35e-8)
		tmp = t_3;
	elseif (z <= -3.5e-131)
		tmp = t_2;
	elseif (z <= 1.1e-191)
		tmp = Float64(Float64(y / t_1) * x);
	elseif (z <= 4e-28)
		tmp = t_2;
	else
		tmp = t_3;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e-8], t$95$3, If[LessEqual[z, -3.5e-131], t$95$2, If[LessEqual[z, 1.1e-191], N[(N[(y / t$95$1), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 4e-28], t$95$2, t$95$3]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b - y, z, y\right)\\
t_2 := \frac{\left(t - a\right) \cdot z}{t\_1}\\
t_3 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{-8}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;z \leq -3.5 \cdot 10^{-131}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;z \leq 1.1 \cdot 10^{-191}:\\
\;\;\;\;\frac{y}{t\_1} \cdot x\\

\mathbf{elif}\;z \leq 4 \cdot 10^{-28}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.35000000000000001e-8 or 3.99999999999999988e-28 < z

    1. Initial program 49.2%

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

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      2. lower--.f64N/A

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. lower--.f6483.2

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Applied rewrites83.2%

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

    if -1.35000000000000001e-8 < z < -3.5000000000000002e-131 or 1.09999999999999999e-191 < z < 3.99999999999999988e-28

    1. Initial program 95.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(-\mathsf{fma}\left(t - a, z, y \cdot x\right)\right) \cdot \frac{-1}{\color{blue}{y + z \cdot \left(b - y\right)}} \]
      17. lower-/.f6495.0

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

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

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

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

        \[\leadsto \left(-\mathsf{fma}\left(t - a, z, y \cdot x\right)\right) \cdot \frac{-1}{\color{blue}{\left(b - y\right) \cdot z} + y} \]
      22. lower-fma.f6495.0

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\left(t - a\right) \cdot z}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \]
      8. lower--.f6465.4

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

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

    if -3.5000000000000002e-131 < z < 1.09999999999999999e-191

    1. Initial program 78.2%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
      8. lower--.f6472.8

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

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

Alternative 4: 84.6% accurate, 0.8× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -8.19999999999999959e99 or 1.2500000000000001e43 < z

    1. Initial program 32.6%

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

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      2. lower--.f64N/A

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. lower--.f6492.5

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Applied rewrites92.5%

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

    if -8.19999999999999959e99 < z < 1.2500000000000001e43

    1. Initial program 86.4%

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

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

Alternative 5: 72.6% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 1.15 \cdot 10^{+14}:\\
\;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -7.80000000000000059e-39 or 1.15e14 < z

    1. Initial program 48.4%

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

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      2. lower--.f64N/A

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. lower--.f6484.2

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Applied rewrites84.2%

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

    if -7.80000000000000059e-39 < z < 1.15e14

    1. Initial program 86.3%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \]
      8. lower--.f6467.3

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

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

Alternative 6: 62.2% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{-144}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 3.1 \cdot 10^{-196}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right)\\

\mathbf{elif}\;z \leq 1.28 \cdot 10^{-134}:\\
\;\;\;\;\frac{-1}{y} \cdot \left(a \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.69999999999999975e-144 or 1.28e-134 < z

    1. Initial program 62.0%

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

      \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
    4. Step-by-step derivation
      1. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      2. lower--.f64N/A

        \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
      3. lower--.f6469.5

        \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
    5. Applied rewrites69.5%

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

    if -2.69999999999999975e-144 < z < 3.09999999999999993e-196

    1. Initial program 77.2%

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

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

        \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
      2. mul-1-negN/A

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

        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
      4. lower--.f6464.4

        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
    5. Applied rewrites64.4%

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

      \[\leadsto x + \color{blue}{z \cdot \left(x \cdot z - -1 \cdot x\right)} \]
    7. Step-by-step derivation
      1. Applied rewrites64.4%

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

      if 3.09999999999999993e-196 < z < 1.28e-134

      1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(-\mathsf{fma}\left(t - a, z, y \cdot x\right)\right) \cdot \frac{-1}{\color{blue}{y + z \cdot \left(b - y\right)}} \]
        17. lower-/.f6499.8

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

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

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

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

          \[\leadsto \left(-\mathsf{fma}\left(t - a, z, y \cdot x\right)\right) \cdot \frac{-1}{\color{blue}{\left(b - y\right) \cdot z} + y} \]
        22. lower-fma.f6499.8

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

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

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

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

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

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

          \[\leadsto \color{blue}{\left(z \cdot a\right)} \cdot \frac{-1}{y} \]
        2. lower-*.f6443.9

          \[\leadsto \color{blue}{\left(z \cdot a\right)} \cdot \frac{-1}{y} \]
      10. Applied rewrites43.9%

        \[\leadsto \color{blue}{\left(z \cdot a\right)} \cdot \frac{-1}{y} \]
    8. Recombined 3 regimes into one program.
    9. Final simplification66.7%

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{-144}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq 3.1 \cdot 10^{-196}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(x, z, x\right), z, x\right)\\ \mathbf{elif}\;z \leq 1.28 \cdot 10^{-134}:\\ \;\;\;\;\frac{-1}{y} \cdot \left(a \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \end{array} \]
    10. Add Preprocessing

    Alternative 7: 69.1% accurate, 1.0× speedup?

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

      1. Initial program 53.9%

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

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      4. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
        2. lower--.f64N/A

          \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
        3. lower--.f6480.1

          \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
      5. Applied rewrites80.1%

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

      if -1.3000000000000001e-86 < z < 9.99999999999999971e-29

      1. Initial program 85.2%

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

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

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

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

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

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

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

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

          \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
        8. lower--.f6458.8

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

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

    Alternative 8: 62.2% accurate, 1.0× speedup?

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

      1. Initial program 60.0%

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

        \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
      4. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
        2. lower--.f64N/A

          \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
        3. lower--.f6472.4

          \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
      5. Applied rewrites72.4%

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

      if -4.84999999999999975e-91 < z < 1.4500000000000001e-156

      1. Initial program 82.5%

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

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

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

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

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

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

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

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

          \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
        8. lower--.f6464.8

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

        \[\leadsto \color{blue}{\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x} \]
      6. Step-by-step derivation
        1. Applied rewrites52.5%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.85 \cdot 10^{-91}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-156}:\\ \;\;\;\;\frac{x}{\mathsf{fma}\left(z, b - y, y\right)} \cdot y\\ \mathbf{else}:\\ \;\;\;\;\frac{t - a}{b - y}\\ \end{array} \]
      9. Add Preprocessing

      Alternative 9: 43.6% accurate, 1.2× speedup?

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

        1. Initial program 50.7%

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

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

            \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
          2. mul-1-negN/A

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

            \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
          4. lower--.f6460.5

            \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
        5. Applied rewrites60.5%

          \[\leadsto \color{blue}{\frac{x}{1 - z}} \]

        if -8.4999999999999994e85 < y < 3.00000000000000006e-179

        1. Initial program 82.0%

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

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

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

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

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

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

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

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

            \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot t \]
          8. lower--.f6439.2

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

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

          \[\leadsto \frac{t}{\color{blue}{b - y}} \]
        7. Step-by-step derivation
          1. Applied rewrites39.0%

            \[\leadsto \frac{t}{\color{blue}{b - y}} \]

          if 3.00000000000000006e-179 < y < 1.15000000000000006e-34

          1. Initial program 70.3%

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

            \[\leadsto \color{blue}{\frac{t - a}{b}} \]
          4. Step-by-step derivation
            1. lower-/.f64N/A

              \[\leadsto \color{blue}{\frac{t - a}{b}} \]
            2. lower--.f6462.0

              \[\leadsto \frac{\color{blue}{t - a}}{b} \]
          5. Applied rewrites62.0%

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

            \[\leadsto \frac{-1 \cdot a}{b} \]
          7. Step-by-step derivation
            1. Applied rewrites52.1%

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

          Alternative 10: 64.0% accurate, 1.3× speedup?

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

            1. Initial program 62.0%

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

              \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
            4. Step-by-step derivation
              1. lower-/.f64N/A

                \[\leadsto \color{blue}{\frac{t - a}{b - y}} \]
              2. lower--.f64N/A

                \[\leadsto \frac{\color{blue}{t - a}}{b - y} \]
              3. lower--.f6469.5

                \[\leadsto \frac{t - a}{\color{blue}{b - y}} \]
            5. Applied rewrites69.5%

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

            if -2.69999999999999975e-144 < z < 4.5000000000000005e-134

            1. Initial program 81.4%

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

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

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

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

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

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

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

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

                \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
              8. lower--.f6467.2

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

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

              \[\leadsto 1 \cdot x \]
            7. Step-by-step derivation
              1. Applied rewrites55.4%

                \[\leadsto 1 \cdot x \]
            8. Recombined 2 regimes into one program.
            9. Add Preprocessing

            Alternative 11: 54.5% accurate, 1.4× speedup?

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

              1. Initial program 52.5%

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

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

                  \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
                2. mul-1-negN/A

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

                  \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                4. lower--.f6458.1

                  \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
              5. Applied rewrites58.1%

                \[\leadsto \color{blue}{\frac{x}{1 - z}} \]

              if -7.1999999999999996e-23 < y < 1.06000000000000006e43

              1. Initial program 79.5%

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

                \[\leadsto \color{blue}{\frac{t - a}{b}} \]
              4. Step-by-step derivation
                1. lower-/.f64N/A

                  \[\leadsto \color{blue}{\frac{t - a}{b}} \]
                2. lower--.f6455.0

                  \[\leadsto \frac{\color{blue}{t - a}}{b} \]
              5. Applied rewrites55.0%

                \[\leadsto \color{blue}{\frac{t - a}{b}} \]
            3. Recombined 2 regimes into one program.
            4. Add Preprocessing

            Alternative 12: 46.1% accurate, 1.4× speedup?

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

              1. Initial program 51.1%

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot t \]
                8. lower--.f6430.9

                  \[\leadsto \frac{z}{\mathsf{fma}\left(\color{blue}{b - y}, z, y\right)} \cdot t \]
              5. Applied rewrites30.9%

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

                \[\leadsto \frac{t}{\color{blue}{b - y}} \]
              7. Step-by-step derivation
                1. Applied rewrites45.9%

                  \[\leadsto \frac{t}{\color{blue}{b - y}} \]

                if -1.15000000000000001e-56 < z < 6.60000000000000034e-6

                1. Initial program 85.6%

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

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

                    \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
                  2. mul-1-negN/A

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

                    \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                  4. lower--.f6445.2

                    \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                5. Applied rewrites45.2%

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

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

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

                Alternative 13: 37.8% accurate, 1.6× speedup?

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

                  1. Initial program 51.9%

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{z}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot t \]
                    8. lower--.f6431.2

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

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

                    \[\leadsto \frac{t}{\color{blue}{b}} \]
                  7. Step-by-step derivation
                    1. Applied rewrites31.8%

                      \[\leadsto \frac{t}{\color{blue}{b}} \]

                    if -1.15000000000000001e-56 < z < 2.6e-28

                    1. Initial program 85.4%

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto 1 \cdot x \]
                    7. Step-by-step derivation
                      1. Applied rewrites45.1%

                        \[\leadsto 1 \cdot x \]
                    8. Recombined 2 regimes into one program.
                    9. Add Preprocessing

                    Alternative 14: 26.8% accurate, 5.6× speedup?

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

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

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

                        \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
                      2. mul-1-negN/A

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

                        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                      4. lower--.f6432.7

                        \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                    5. Applied rewrites32.7%

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

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

                        \[\leadsto \mathsf{fma}\left(x, \color{blue}{z}, x\right) \]
                      2. Add Preprocessing

                      Alternative 15: 26.6% accurate, 6.5× speedup?

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{y}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \cdot x \]
                        8. lower--.f6437.8

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

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

                        \[\leadsto 1 \cdot x \]
                      7. Step-by-step derivation
                        1. Applied rewrites24.1%

                          \[\leadsto 1 \cdot x \]
                        2. Add Preprocessing

                        Alternative 16: 3.8% accurate, 6.5× speedup?

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

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

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

                            \[\leadsto \color{blue}{\frac{x}{1 + -1 \cdot z}} \]
                          2. mul-1-negN/A

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

                            \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                          4. lower--.f6432.7

                            \[\leadsto \frac{x}{\color{blue}{1 - z}} \]
                        5. Applied rewrites32.7%

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

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

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

                            \[\leadsto x \cdot z \]
                          3. Step-by-step derivation
                            1. Applied rewrites3.5%

                              \[\leadsto z \cdot x \]
                            2. Final simplification3.5%

                              \[\leadsto x \cdot z \]
                            3. Add Preprocessing

                            Developer Target 1: 74.9% accurate, 0.6× speedup?

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

                            Reproduce

                            ?
                            herbie shell --seed 2024296 
                            (FPCore (x y z t a b)
                              :name "Development.Shake.Progress:decay from shake-0.15.5"
                              :precision binary64
                            
                              :alt
                              (! :herbie-platform default (- (/ (+ (* z t) (* y x)) (+ y (* z (- b y)))) (/ a (+ (- b y) (/ y z)))))
                            
                              (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))