Development.Shake.Progress:decay from shake-0.15.5

Percentage Accurate: 66.8% → 94.8%
Time: 4.8s
Alternatives: 13
Speedup: 1.1×

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)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    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}

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 13 alternatives:

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

Initial Program: 66.8% 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)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
    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: 94.8% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\ t_2 := \frac{t - a}{b - y}\\ t_3 := \mathsf{fma}\left(x, \frac{y}{\mathsf{fma}\left(b - y, z, y\right)}, t\_2\right)\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+269}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_1 \leq -4 \cdot 10^{-255}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+286}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \frac{-1}{z - 1}, t\_2\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
        (t_2 (/ (- t a) (- b y)))
        (t_3 (fma x (/ y (fma (- b y) z y)) t_2)))
   (if (<= t_1 -5e+269)
     t_3
     (if (<= t_1 -4e-255)
       t_1
       (if (<= t_1 0.0)
         t_3
         (if (<= t_1 2e+286) t_1 (fma x (/ -1.0 (- z 1.0)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
	double t_2 = (t - a) / (b - y);
	double t_3 = fma(x, (y / fma((b - y), z, y)), t_2);
	double tmp;
	if (t_1 <= -5e+269) {
		tmp = t_3;
	} else if (t_1 <= -4e-255) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = t_3;
	} else if (t_1 <= 2e+286) {
		tmp = t_1;
	} else {
		tmp = fma(x, (-1.0 / (z - 1.0)), t_2);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y))))
	t_2 = Float64(Float64(t - a) / Float64(b - y))
	t_3 = fma(x, Float64(y / fma(Float64(b - y), z, y)), t_2)
	tmp = 0.0
	if (t_1 <= -5e+269)
		tmp = t_3;
	elseif (t_1 <= -4e-255)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = t_3;
	elseif (t_1 <= 2e+286)
		tmp = t_1;
	else
		tmp = fma(x, Float64(-1.0 / Float64(z - 1.0)), t_2);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = 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]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(y / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+269], t$95$3, If[LessEqual[t$95$1, -4e-255], t$95$1, If[LessEqual[t$95$1, 0.0], t$95$3, If[LessEqual[t$95$1, 2e+286], t$95$1, N[(x * N[(-1.0 / N[(z - 1.0), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -4 \cdot 10^{-255}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+286}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -5.0000000000000002e269 or -4e-255 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -0.0

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.0000000000000002e269 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -4e-255 or -0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 2.00000000000000007e286

    1. Initial program 66.8%

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

    if 2.00000000000000007e286 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 94.3% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\ t_2 := \frac{t - a}{b - y}\\ t_3 := \mathsf{fma}\left(x, \frac{-1}{z - 1}, t\_2\right)\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+259}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-281}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_1 \leq 0:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+286}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
        (t_2 (/ (- t a) (- b y)))
        (t_3 (fma x (/ -1.0 (- z 1.0)) t_2)))
   (if (<= t_1 -2e+259)
     t_3
     (if (<= t_1 -2e-281)
       t_1
       (if (<= t_1 0.0) t_2 (if (<= t_1 2e+286) t_1 t_3))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
	double t_2 = (t - a) / (b - y);
	double t_3 = fma(x, (-1.0 / (z - 1.0)), t_2);
	double tmp;
	if (t_1 <= -2e+259) {
		tmp = t_3;
	} else if (t_1 <= -2e-281) {
		tmp = t_1;
	} else if (t_1 <= 0.0) {
		tmp = t_2;
	} else if (t_1 <= 2e+286) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y))))
	t_2 = Float64(Float64(t - a) / Float64(b - y))
	t_3 = fma(x, Float64(-1.0 / Float64(z - 1.0)), t_2)
	tmp = 0.0
	if (t_1 <= -2e+259)
		tmp = t_3;
	elseif (t_1 <= -2e-281)
		tmp = t_1;
	elseif (t_1 <= 0.0)
		tmp = t_2;
	elseif (t_1 <= 2e+286)
		tmp = t_1;
	else
		tmp = t_3;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = 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]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(-1.0 / N[(z - 1.0), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+259], t$95$3, If[LessEqual[t$95$1, -2e-281], t$95$1, If[LessEqual[t$95$1, 0.0], t$95$2, If[LessEqual[t$95$1, 2e+286], t$95$1, t$95$3]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+286}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -2e259 or 2.00000000000000007e286 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2e259 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -2e-281 or -0.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 2.00000000000000007e286

    1. Initial program 66.8%

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

    if -2e-281 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -0.0

    1. Initial program 66.8%

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

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

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

        \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
      3. lift--.f6450.7

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

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

Alternative 3: 92.9% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ t_2 := \mathsf{fma}\left(b - y, z, y\right)\\ t_3 := \frac{y}{t\_2}\\ \mathbf{if}\;z \leq -3.1 \cdot 10^{+22}:\\ \;\;\;\;\mathsf{fma}\left(x, t\_3, t\_1\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{+89}:\\ \;\;\;\;\mathsf{fma}\left(x, t\_3, \frac{\left(t - a\right) \cdot z}{t\_2}\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \frac{-1}{z}, t\_1\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (- t a) (- b y))) (t_2 (fma (- b y) z y)) (t_3 (/ y t_2)))
   (if (<= z -3.1e+22)
     (fma x t_3 t_1)
     (if (<= z 6.5e+89)
       (fma x t_3 (/ (* (- t a) z) t_2))
       (fma x (/ -1.0 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 t_2 = fma((b - y), z, y);
	double t_3 = y / t_2;
	double tmp;
	if (z <= -3.1e+22) {
		tmp = fma(x, t_3, t_1);
	} else if (z <= 6.5e+89) {
		tmp = fma(x, t_3, (((t - a) * z) / t_2));
	} else {
		tmp = fma(x, (-1.0 / z), t_1);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(t - a) / Float64(b - y))
	t_2 = fma(Float64(b - y), z, y)
	t_3 = Float64(y / t_2)
	tmp = 0.0
	if (z <= -3.1e+22)
		tmp = fma(x, t_3, t_1);
	elseif (z <= 6.5e+89)
		tmp = fma(x, t_3, Float64(Float64(Float64(t - a) * z) / t_2));
	else
		tmp = fma(x, Float64(-1.0 / z), 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]}, Block[{t$95$2 = N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]}, Block[{t$95$3 = N[(y / t$95$2), $MachinePrecision]}, If[LessEqual[z, -3.1e+22], N[(x * t$95$3 + t$95$1), $MachinePrecision], If[LessEqual[z, 6.5e+89], N[(x * t$95$3 + N[(N[(N[(t - a), $MachinePrecision] * z), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision], N[(x * N[(-1.0 / z), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq 6.5 \cdot 10^{+89}:\\
\;\;\;\;\mathsf{fma}\left(x, t\_3, \frac{\left(t - a\right) \cdot z}{t\_2}\right)\\

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


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

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.1000000000000002e22 < z < 6.4999999999999996e89

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 6.4999999999999996e89 < z

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(x, \frac{-1}{\color{blue}{z}}, \frac{t - a}{b - y}\right) \]
    11. Step-by-step derivation
      1. lower-/.f6447.7

        \[\leadsto \mathsf{fma}\left(x, \frac{-1}{z}, \frac{t - a}{b - y}\right) \]
    12. Applied rewrites47.7%

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

Alternative 4: 75.5% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -1.3 \cdot 10^{-35}:\\ \;\;\;\;\mathsf{fma}\left(x, \frac{-1}{z - 1}, t\_1\right)\\ \mathbf{elif}\;z \leq 19000:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \frac{-1}{z}, t\_1\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (- t a) (- b y))))
   (if (<= z -1.3e-35)
     (fma x (/ -1.0 (- z 1.0)) t_1)
     (if (<= z 19000.0)
       (/ (fma t z (* y x)) (fma (- b y) z y))
       (fma x (/ -1.0 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 <= -1.3e-35) {
		tmp = fma(x, (-1.0 / (z - 1.0)), t_1);
	} else if (z <= 19000.0) {
		tmp = fma(t, z, (y * x)) / fma((b - y), z, y);
	} else {
		tmp = fma(x, (-1.0 / z), 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-35)
		tmp = fma(x, Float64(-1.0 / Float64(z - 1.0)), t_1);
	elseif (z <= 19000.0)
		tmp = Float64(fma(t, z, Float64(y * x)) / fma(Float64(b - y), z, y));
	else
		tmp = fma(x, Float64(-1.0 / z), 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-35], N[(x * N[(-1.0 / N[(z - 1.0), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[z, 19000.0], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision], N[(x * N[(-1.0 / z), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -1.3 \cdot 10^{-35}:\\
\;\;\;\;\mathsf{fma}\left(x, \frac{-1}{z - 1}, t\_1\right)\\

\mathbf{elif}\;z \leq 19000:\\
\;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.30000000000000002e-35

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.30000000000000002e-35 < z < 19000

    1. Initial program 66.8%

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(t, z, 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)}{z \cdot \left(b - y\right) + \color{blue}{y}} \]
      6. *-commutativeN/A

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

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

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

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

    if 19000 < z

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(x, \frac{-1}{\color{blue}{z}}, \frac{t - a}{b - y}\right) \]
    11. Step-by-step derivation
      1. lower-/.f6447.7

        \[\leadsto \mathsf{fma}\left(x, \frac{-1}{z}, \frac{t - a}{b - y}\right) \]
    12. Applied rewrites47.7%

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

Alternative 5: 74.6% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(x, \frac{-1}{z}, \frac{t - a}{b - y}\right)\\ \mathbf{if}\;z \leq -1.3 \cdot 10^{-35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 19000:\\ \;\;\;\;\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 (fma x (/ -1.0 z) (/ (- t a) (- b y)))))
   (if (<= z -1.3e-35)
     t_1
     (if (<= z 19000.0) (/ (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 = fma(x, (-1.0 / z), ((t - a) / (b - y)));
	double tmp;
	if (z <= -1.3e-35) {
		tmp = t_1;
	} else if (z <= 19000.0) {
		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 = fma(x, Float64(-1.0 / z), Float64(Float64(t - a) / Float64(b - y)))
	tmp = 0.0
	if (z <= -1.3e-35)
		tmp = t_1;
	elseif (z <= 19000.0)
		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[(x * N[(-1.0 / z), $MachinePrecision] + N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.3e-35], t$95$1, If[LessEqual[z, 19000.0], 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 := \mathsf{fma}\left(x, \frac{-1}{z}, \frac{t - a}{b - y}\right)\\
\mathbf{if}\;z \leq -1.3 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 19000:\\
\;\;\;\;\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 < -1.30000000000000002e-35 or 19000 < z

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(x, \frac{-1}{\color{blue}{z}}, \frac{t - a}{b - y}\right) \]
    11. Step-by-step derivation
      1. lower-/.f6447.7

        \[\leadsto \mathsf{fma}\left(x, \frac{-1}{z}, \frac{t - a}{b - y}\right) \]
    12. Applied rewrites47.7%

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

    if -1.30000000000000002e-35 < z < 19000

    1. Initial program 66.8%

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(t, z, 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)}{z \cdot \left(b - y\right) + \color{blue}{y}} \]
      6. *-commutativeN/A

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

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

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

      \[\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: 74.4% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(x, \frac{-1}{z}, \frac{t - a}{b - y}\right)\\
\mathbf{if}\;z \leq -1.3 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 4800:\\
\;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b, z, y\right)}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.30000000000000002e-35 or 4800 < z

    1. Initial program 66.8%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
    2. 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. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(x, \frac{-1}{\color{blue}{z}}, \frac{t - a}{b - y}\right) \]
    11. Step-by-step derivation
      1. lower-/.f6447.7

        \[\leadsto \mathsf{fma}\left(x, \frac{-1}{z}, \frac{t - a}{b - y}\right) \]
    12. Applied rewrites47.7%

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

    if -1.30000000000000002e-35 < z < 4800

    1. Initial program 66.8%

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

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

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

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

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

        \[\leadsto \frac{\mathsf{fma}\left(t, z, 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)}{z \cdot \left(b - y\right) + \color{blue}{y}} \]
      6. *-commutativeN/A

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

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

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

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

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

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

    Alternative 7: 72.3% 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^{-40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4600:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b, 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 -1.3e-40)
         t_1
         (if (<= z 4600.0) (/ (fma t z (* y x)) (fma b 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 <= -1.3e-40) {
    		tmp = t_1;
    	} else if (z <= 4600.0) {
    		tmp = fma(t, z, (y * x)) / fma(b, 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 <= -1.3e-40)
    		tmp = t_1;
    	elseif (z <= 4600.0)
    		tmp = Float64(fma(t, z, Float64(y * x)) / fma(b, 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, -1.3e-40], t$95$1, If[LessEqual[z, 4600.0], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(b * z + y), $MachinePrecision]), $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^{-40}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;z \leq 4600:\\
    \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b, z, y\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -1.3000000000000001e-40 or 4600 < z

      1. Initial program 66.8%

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

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

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

          \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
        3. lift--.f6450.7

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

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

      if -1.3000000000000001e-40 < z < 4600

      1. Initial program 66.8%

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(t, z, 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)}{z \cdot \left(b - y\right) + \color{blue}{y}} \]
        6. *-commutativeN/A

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

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

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

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

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

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

      Alternative 8: 68.5% accurate, 1.1× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -4.45 \cdot 10^{-63}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{-36}:\\ \;\;\;\;x \cdot \frac{y}{\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 -4.45e-63)
           t_1
           (if (<= z 4.5e-36) (* x (/ y (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 <= -4.45e-63) {
      		tmp = t_1;
      	} else if (z <= 4.5e-36) {
      		tmp = x * (y / 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 <= -4.45e-63)
      		tmp = t_1;
      	elseif (z <= 4.5e-36)
      		tmp = Float64(x * Float64(y / 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, -4.45e-63], t$95$1, If[LessEqual[z, 4.5e-36], N[(x * N[(y / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{t - a}{b - y}\\
      \mathbf{if}\;z \leq -4.45 \cdot 10^{-63}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 4.5 \cdot 10^{-36}:\\
      \;\;\;\;x \cdot \frac{y}{\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 < -4.44999999999999994e-63 or 4.50000000000000024e-36 < z

        1. Initial program 66.8%

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

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

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

            \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
          3. lift--.f6450.7

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

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

        if -4.44999999999999994e-63 < z < 4.50000000000000024e-36

        1. Initial program 66.8%

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

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

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

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

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

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

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

            \[\leadsto x \cdot \frac{y}{\mathsf{fma}\left(b - y, \color{blue}{z}, y\right)} \]
          7. lift--.f6436.9

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

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

      Alternative 9: 64.7% accurate, 1.4× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -4.3 \cdot 10^{-64}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{-38}:\\ \;\;\;\;\frac{-x}{z - 1}\\ \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.3e-64) t_1 (if (<= z 3.2e-38) (/ (- x) (- z 1.0)) 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.3e-64) {
      		tmp = t_1;
      	} else if (z <= 3.2e-38) {
      		tmp = -x / (z - 1.0);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t, a, b)
      use fmin_fmax_functions
          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 <= (-4.3d-64)) then
              tmp = t_1
          else if (z <= 3.2d-38) then
              tmp = -x / (z - 1.0d0)
          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 <= -4.3e-64) {
      		tmp = t_1;
      	} else if (z <= 3.2e-38) {
      		tmp = -x / (z - 1.0);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = (t - a) / (b - y)
      	tmp = 0
      	if z <= -4.3e-64:
      		tmp = t_1
      	elif z <= 3.2e-38:
      		tmp = -x / (z - 1.0)
      	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.3e-64)
      		tmp = t_1;
      	elseif (z <= 3.2e-38)
      		tmp = Float64(Float64(-x) / Float64(z - 1.0));
      	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 <= -4.3e-64)
      		tmp = t_1;
      	elseif (z <= 3.2e-38)
      		tmp = -x / (z - 1.0);
      	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, -4.3e-64], t$95$1, If[LessEqual[z, 3.2e-38], N[((-x) / N[(z - 1.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{t - a}{b - y}\\
      \mathbf{if}\;z \leq -4.3 \cdot 10^{-64}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 3.2 \cdot 10^{-38}:\\
      \;\;\;\;\frac{-x}{z - 1}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -4.29999999999999973e-64 or 3.19999999999999977e-38 < z

        1. Initial program 66.8%

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

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

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

            \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
          3. lift--.f6450.7

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

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

        if -4.29999999999999973e-64 < z < 3.19999999999999977e-38

        1. Initial program 66.8%

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

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

            \[\leadsto \frac{-1 \cdot x}{\color{blue}{z - 1}} \]
          2. lower-/.f64N/A

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

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

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

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

          \[\leadsto \color{blue}{\frac{-x}{z - 1}} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 10: 55.2% accurate, 1.5× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{-x}{z - 1}\\ \mathbf{if}\;y \leq -12000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 0.00355:\\ \;\;\;\;\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) (- z 1.0))))
         (if (<= y -12000.0) t_1 (if (<= y 0.00355) (/ (- t a) b) t_1))))
      double code(double x, double y, double z, double t, double a, double b) {
      	double t_1 = -x / (z - 1.0);
      	double tmp;
      	if (y <= -12000.0) {
      		tmp = t_1;
      	} else if (y <= 0.00355) {
      		tmp = (t - a) / b;
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t, a, b)
      use fmin_fmax_functions
          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 / (z - 1.0d0)
          if (y <= (-12000.0d0)) then
              tmp = t_1
          else if (y <= 0.00355d0) 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 / (z - 1.0);
      	double tmp;
      	if (y <= -12000.0) {
      		tmp = t_1;
      	} else if (y <= 0.00355) {
      		tmp = (t - a) / b;
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = -x / (z - 1.0)
      	tmp = 0
      	if y <= -12000.0:
      		tmp = t_1
      	elif y <= 0.00355:
      		tmp = (t - a) / b
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t, a, b)
      	t_1 = Float64(Float64(-x) / Float64(z - 1.0))
      	tmp = 0.0
      	if (y <= -12000.0)
      		tmp = t_1;
      	elseif (y <= 0.00355)
      		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 / (z - 1.0);
      	tmp = 0.0;
      	if (y <= -12000.0)
      		tmp = t_1;
      	elseif (y <= 0.00355)
      		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[(z - 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -12000.0], t$95$1, If[LessEqual[y, 0.00355], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{-x}{z - 1}\\
      \mathbf{if}\;y \leq -12000:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;y \leq 0.00355:\\
      \;\;\;\;\frac{t - a}{b}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if y < -12000 or 0.0035500000000000002 < y

        1. Initial program 66.8%

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

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

            \[\leadsto \frac{-1 \cdot x}{\color{blue}{z - 1}} \]
          2. lower-/.f64N/A

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

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

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

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

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

        if -12000 < y < 0.0035500000000000002

        1. Initial program 66.8%

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

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

            \[\leadsto \frac{t - a}{\color{blue}{b}} \]
          2. lift--.f6434.9

            \[\leadsto \frac{t - a}{b} \]
        4. Applied rewrites34.9%

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

      Alternative 11: 37.9% accurate, 1.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t}{b - y}\\ \mathbf{if}\;t \leq -2.5 \cdot 10^{+68}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.1 \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 (/ t (- b y))))
         (if (<= t -2.5e+68) t_1 (if (<= t 2.1e+43) (/ (- t a) b) 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 (t <= -2.5e+68) {
      		tmp = t_1;
      	} else if (t <= 2.1e+43) {
      		tmp = (t - a) / b;
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t, a, b)
      use fmin_fmax_functions
          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 / (b - y)
          if (t <= (-2.5d+68)) then
              tmp = t_1
          else if (t <= 2.1d+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 = t / (b - y);
      	double tmp;
      	if (t <= -2.5e+68) {
      		tmp = t_1;
      	} else if (t <= 2.1e+43) {
      		tmp = (t - a) / b;
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b):
      	t_1 = t / (b - y)
      	tmp = 0
      	if t <= -2.5e+68:
      		tmp = t_1
      	elif t <= 2.1e+43:
      		tmp = (t - a) / b
      	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 (t <= -2.5e+68)
      		tmp = t_1;
      	elseif (t <= 2.1e+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 = t / (b - y);
      	tmp = 0.0;
      	if (t <= -2.5e+68)
      		tmp = t_1;
      	elseif (t <= 2.1e+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[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+68], t$95$1, If[LessEqual[t, 2.1e+43], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{t}{b - y}\\
      \mathbf{if}\;t \leq -2.5 \cdot 10^{+68}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t \leq 2.1 \cdot 10^{+43}:\\
      \;\;\;\;\frac{t - a}{b}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -2.5000000000000002e68 or 2.10000000000000002e43 < t

        1. Initial program 66.8%

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

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

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

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

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

            \[\leadsto \frac{\mathsf{fma}\left(t, z, 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)}{z \cdot \left(b - y\right) + \color{blue}{y}} \]
          6. *-commutativeN/A

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

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

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

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

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

            \[\leadsto \frac{t}{b - \color{blue}{y}} \]
          2. lift--.f6428.2

            \[\leadsto \frac{t}{b - y} \]
        7. Applied rewrites28.2%

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

        if -2.5000000000000002e68 < t < 2.10000000000000002e43

        1. Initial program 66.8%

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

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

            \[\leadsto \frac{t - a}{\color{blue}{b}} \]
          2. lift--.f6434.9

            \[\leadsto \frac{t - a}{b} \]
        4. Applied rewrites34.9%

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

      Alternative 12: 28.2% accurate, 3.4× speedup?

      \[\begin{array}{l} \\ \frac{t}{b - y} \end{array} \]
      (FPCore (x y z t a b) :precision binary64 (/ t (- b y)))
      double code(double x, double y, double z, double t, double a, double b) {
      	return t / (b - y);
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t, a, b)
      use fmin_fmax_functions
          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 = t / (b - y)
      end function
      
      public static double code(double x, double y, double z, double t, double a, double b) {
      	return t / (b - y);
      }
      
      def code(x, y, z, t, a, b):
      	return t / (b - y)
      
      function code(x, y, z, t, a, b)
      	return Float64(t / Float64(b - y))
      end
      
      function tmp = code(x, y, z, t, a, b)
      	tmp = t / (b - y);
      end
      
      code[x_, y_, z_, t_, a_, b_] := N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]
      
      \begin{array}{l}
      
      \\
      \frac{t}{b - y}
      \end{array}
      
      Derivation
      1. Initial program 66.8%

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(t, z, 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)}{z \cdot \left(b - y\right) + \color{blue}{y}} \]
        6. *-commutativeN/A

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

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

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

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

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

          \[\leadsto \frac{t}{b - \color{blue}{y}} \]
        2. lift--.f6428.2

          \[\leadsto \frac{t}{b - y} \]
      7. Applied rewrites28.2%

        \[\leadsto \frac{t}{\color{blue}{b - y}} \]
      8. Add Preprocessing

      Alternative 13: 20.3% accurate, 5.5× speedup?

      \[\begin{array}{l} \\ \frac{t}{b} \end{array} \]
      (FPCore (x y z t a b) :precision binary64 (/ t b))
      double code(double x, double y, double z, double t, double a, double b) {
      	return t / b;
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t, a, b)
      use fmin_fmax_functions
          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 = t / b
      end function
      
      public static double code(double x, double y, double z, double t, double a, double b) {
      	return t / b;
      }
      
      def code(x, y, z, t, a, b):
      	return t / b
      
      function code(x, y, z, t, a, b)
      	return Float64(t / b)
      end
      
      function tmp = code(x, y, z, t, a, b)
      	tmp = t / b;
      end
      
      code[x_, y_, z_, t_, a_, b_] := N[(t / b), $MachinePrecision]
      
      \begin{array}{l}
      
      \\
      \frac{t}{b}
      \end{array}
      
      Derivation
      1. Initial program 66.8%

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(t, z, 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)}{z \cdot \left(b - y\right) + \color{blue}{y}} \]
        6. *-commutativeN/A

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

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

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

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

        \[\leadsto \frac{t}{\color{blue}{b}} \]
      6. Step-by-step derivation
        1. lower-/.f6420.3

          \[\leadsto \frac{t}{b} \]
      7. Applied rewrites20.3%

        \[\leadsto \frac{t}{\color{blue}{b}} \]
      8. Add Preprocessing

      Reproduce

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