Development.Shake.Progress:decay from shake-0.15.5

Percentage Accurate: 67.0% → 97.2%
Time: 10.2s
Alternatives: 16
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ \frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
	return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
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}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 67.0% 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: 97.2% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\mathsf{fma}\left(\frac{x}{z}, y, t - a\right)}{b - y} - \frac{y}{{\left(b - y\right)}^{2}} \cdot \frac{t - a}{z}\\ t_2 := \mathsf{fma}\left(b - y, z, y\right)\\ t_3 := z \cdot \left(t - a\right)\\ t_4 := \frac{\mathsf{fma}\left(x, y, t\_3\right)}{t\_2}\\ t_5 := \frac{x \cdot y + t\_3}{y + z \cdot \left(b - y\right)}\\ t_6 := \mathsf{fma}\left(t - a, \frac{z}{t\_2}, y \cdot \frac{x}{t\_2}\right)\\ \mathbf{if}\;t\_5 \leq -\infty:\\ \;\;\;\;t\_6\\ \mathbf{elif}\;t\_5 \leq -5 \cdot 10^{-207}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_5 \leq 10^{-302}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_5 \leq 2 \cdot 10^{+303}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_5 \leq \infty:\\ \;\;\;\;t\_6\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1
         (-
          (/ (fma (/ x z) y (- t a)) (- b y))
          (* (/ y (pow (- b y) 2.0)) (/ (- t a) z))))
        (t_2 (fma (- b y) z y))
        (t_3 (* z (- t a)))
        (t_4 (/ (fma x y t_3) t_2))
        (t_5 (/ (+ (* x y) t_3) (+ y (* z (- b y)))))
        (t_6 (fma (- t a) (/ z t_2) (* y (/ x t_2)))))
   (if (<= t_5 (- INFINITY))
     t_6
     (if (<= t_5 -5e-207)
       t_4
       (if (<= t_5 1e-302)
         t_1
         (if (<= t_5 2e+303) t_4 (if (<= t_5 INFINITY) t_6 t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = (fma((x / z), y, (t - a)) / (b - y)) - ((y / pow((b - y), 2.0)) * ((t - a) / z));
	double t_2 = fma((b - y), z, y);
	double t_3 = z * (t - a);
	double t_4 = fma(x, y, t_3) / t_2;
	double t_5 = ((x * y) + t_3) / (y + (z * (b - y)));
	double t_6 = fma((t - a), (z / t_2), (y * (x / t_2)));
	double tmp;
	if (t_5 <= -((double) INFINITY)) {
		tmp = t_6;
	} else if (t_5 <= -5e-207) {
		tmp = t_4;
	} else if (t_5 <= 1e-302) {
		tmp = t_1;
	} else if (t_5 <= 2e+303) {
		tmp = t_4;
	} else if (t_5 <= ((double) INFINITY)) {
		tmp = t_6;
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(fma(Float64(x / z), y, Float64(t - a)) / Float64(b - y)) - Float64(Float64(y / (Float64(b - y) ^ 2.0)) * Float64(Float64(t - a) / z)))
	t_2 = fma(Float64(b - y), z, y)
	t_3 = Float64(z * Float64(t - a))
	t_4 = Float64(fma(x, y, t_3) / t_2)
	t_5 = Float64(Float64(Float64(x * y) + t_3) / Float64(y + Float64(z * Float64(b - y))))
	t_6 = fma(Float64(t - a), Float64(z / t_2), Float64(y * Float64(x / t_2)))
	tmp = 0.0
	if (t_5 <= Float64(-Inf))
		tmp = t_6;
	elseif (t_5 <= -5e-207)
		tmp = t_4;
	elseif (t_5 <= 1e-302)
		tmp = t_1;
	elseif (t_5 <= 2e+303)
		tmp = t_4;
	elseif (t_5 <= Inf)
		tmp = t_6;
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(x / z), $MachinePrecision] * y + N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision] - N[(N[(y / N[Power[N[(b - y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(t - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y + t$95$3), $MachinePrecision] / t$95$2), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(x * y), $MachinePrecision] + t$95$3), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(t - a), $MachinePrecision] * N[(z / t$95$2), $MachinePrecision] + N[(y * N[(x / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$5, (-Infinity)], t$95$6, If[LessEqual[t$95$5, -5e-207], t$95$4, If[LessEqual[t$95$5, 1e-302], t$95$1, If[LessEqual[t$95$5, 2e+303], t$95$4, If[LessEqual[t$95$5, Infinity], t$95$6, t$95$1]]]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\mathsf{fma}\left(\frac{x}{z}, y, t - a\right)}{b - y} - \frac{y}{{\left(b - y\right)}^{2}} \cdot \frac{t - a}{z}\\
t_2 := \mathsf{fma}\left(b - y, z, y\right)\\
t_3 := z \cdot \left(t - a\right)\\
t_4 := \frac{\mathsf{fma}\left(x, y, t\_3\right)}{t\_2}\\
t_5 := \frac{x \cdot y + t\_3}{y + z \cdot \left(b - y\right)}\\
t_6 := \mathsf{fma}\left(t - a, \frac{z}{t\_2}, y \cdot \frac{x}{t\_2}\right)\\
\mathbf{if}\;t\_5 \leq -\infty:\\
\;\;\;\;t\_6\\

\mathbf{elif}\;t\_5 \leq -5 \cdot 10^{-207}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t\_5 \leq 10^{-302}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_5 \leq 2 \cdot 10^{+303}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t\_5 \leq \infty:\\
\;\;\;\;t\_6\\

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


\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)))) < -inf.0 or 2e303 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < +inf.0

    1. Initial program 22.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -5.00000000000000014e-207 or 9.9999999999999996e-303 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 2e303

    1. Initial program 99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.00000000000000014e-207 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 9.9999999999999996e-303 or +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 12.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 93.1% accurate, 0.1× 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 := z \cdot \left(t - a\right)\\ t_4 := \frac{\mathsf{fma}\left(x, y, t\_3\right)}{t\_2}\\ t_5 := \frac{x \cdot y + t\_3}{y + z \cdot \left(b - y\right)}\\ t_6 := \mathsf{fma}\left(t - a, \frac{z}{t\_2}, y \cdot \frac{x}{t\_2}\right)\\ \mathbf{if}\;t\_5 \leq -\infty:\\ \;\;\;\;t\_6\\ \mathbf{elif}\;t\_5 \leq -5 \cdot 10^{-207}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_5 \leq 10^{-302}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_5 \leq 2 \cdot 10^{+303}:\\ \;\;\;\;t\_4\\ \mathbf{elif}\;t\_5 \leq \infty:\\ \;\;\;\;t\_6\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \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 (* z (- t a)))
        (t_4 (/ (fma x y t_3) t_2))
        (t_5 (/ (+ (* x y) t_3) (+ y (* z (- b y)))))
        (t_6 (fma (- t a) (/ z t_2) (* y (/ x t_2)))))
   (if (<= t_5 (- INFINITY))
     t_6
     (if (<= t_5 -5e-207)
       t_4
       (if (<= t_5 1e-302)
         t_1
         (if (<= t_5 2e+303) t_4 (if (<= t_5 INFINITY) t_6 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 = z * (t - a);
	double t_4 = fma(x, y, t_3) / t_2;
	double t_5 = ((x * y) + t_3) / (y + (z * (b - y)));
	double t_6 = fma((t - a), (z / t_2), (y * (x / t_2)));
	double tmp;
	if (t_5 <= -((double) INFINITY)) {
		tmp = t_6;
	} else if (t_5 <= -5e-207) {
		tmp = t_4;
	} else if (t_5 <= 1e-302) {
		tmp = t_1;
	} else if (t_5 <= 2e+303) {
		tmp = t_4;
	} else if (t_5 <= ((double) INFINITY)) {
		tmp = t_6;
	} else {
		tmp = 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(z * Float64(t - a))
	t_4 = Float64(fma(x, y, t_3) / t_2)
	t_5 = Float64(Float64(Float64(x * y) + t_3) / Float64(y + Float64(z * Float64(b - y))))
	t_6 = fma(Float64(t - a), Float64(z / t_2), Float64(y * Float64(x / t_2)))
	tmp = 0.0
	if (t_5 <= Float64(-Inf))
		tmp = t_6;
	elseif (t_5 <= -5e-207)
		tmp = t_4;
	elseif (t_5 <= 1e-302)
		tmp = t_1;
	elseif (t_5 <= 2e+303)
		tmp = t_4;
	elseif (t_5 <= Inf)
		tmp = t_6;
	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]}, Block[{t$95$2 = N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y + t$95$3), $MachinePrecision] / t$95$2), $MachinePrecision]}, Block[{t$95$5 = N[(N[(N[(x * y), $MachinePrecision] + t$95$3), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(t - a), $MachinePrecision] * N[(z / t$95$2), $MachinePrecision] + N[(y * N[(x / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$5, (-Infinity)], t$95$6, If[LessEqual[t$95$5, -5e-207], t$95$4, If[LessEqual[t$95$5, 1e-302], t$95$1, If[LessEqual[t$95$5, 2e+303], t$95$4, If[LessEqual[t$95$5, Infinity], t$95$6, t$95$1]]]]]]]]]]]
\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 := z \cdot \left(t - a\right)\\
t_4 := \frac{\mathsf{fma}\left(x, y, t\_3\right)}{t\_2}\\
t_5 := \frac{x \cdot y + t\_3}{y + z \cdot \left(b - y\right)}\\
t_6 := \mathsf{fma}\left(t - a, \frac{z}{t\_2}, y \cdot \frac{x}{t\_2}\right)\\
\mathbf{if}\;t\_5 \leq -\infty:\\
\;\;\;\;t\_6\\

\mathbf{elif}\;t\_5 \leq -5 \cdot 10^{-207}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t\_5 \leq 10^{-302}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_5 \leq 2 \cdot 10^{+303}:\\
\;\;\;\;t\_4\\

\mathbf{elif}\;t\_5 \leq \infty:\\
\;\;\;\;t\_6\\

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


\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)))) < -inf.0 or 2e303 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < +inf.0

    1. Initial program 22.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < -5.00000000000000014e-207 or 9.9999999999999996e-303 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 2e303

    1. Initial program 99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.00000000000000014e-207 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y)))) < 9.9999999999999996e-303 or +inf.0 < (/.f64 (+.f64 (*.f64 x y) (*.f64 z (-.f64 t a))) (+.f64 y (*.f64 z (-.f64 b y))))

    1. Initial program 12.3%

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

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

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

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

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

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

Alternative 3: 85.1% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -6.6 \cdot 10^{+74} \lor \neg \left(z \leq 3.3 \cdot 10^{+65}\right):\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, y, z \cdot \left(t - a\right)\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= z -6.6e+74) (not (<= z 3.3e+65)))
   (/ (- t a) (- b y))
   (/ (fma x y (* z (- t a))) (fma (- b y) z y))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((z <= -6.6e+74) || !(z <= 3.3e+65)) {
		tmp = (t - a) / (b - y);
	} else {
		tmp = fma(x, y, (z * (t - a))) / fma((b - y), z, y);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((z <= -6.6e+74) || !(z <= 3.3e+65))
		tmp = Float64(Float64(t - a) / Float64(b - y));
	else
		tmp = Float64(fma(x, y, Float64(z * Float64(t - a))) / fma(Float64(b - y), z, y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.6e+74], N[Not[LessEqual[z, 3.3e+65]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(N[(x * y + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.6 \cdot 10^{+74} \lor \neg \left(z \leq 3.3 \cdot 10^{+65}\right):\\
\;\;\;\;\frac{t - a}{b - y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -6.6000000000000004e74 or 3.30000000000000023e65 < z

    1. Initial program 31.9%

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

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

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

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

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

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

    if -6.6000000000000004e74 < z < 3.30000000000000023e65

    1. Initial program 85.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.6 \cdot 10^{+74} \lor \neg \left(z \leq 3.3 \cdot 10^{+65}\right):\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, y, z \cdot \left(t - a\right)\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 68.8% accurate, 0.8× speedup?

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

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

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

\mathbf{elif}\;z \leq 3200000000:\\
\;\;\;\;\frac{z \cdot \left(t - a\right)}{t\_1}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.7e14 or 3.2e9 < z

    1. Initial program 37.6%

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

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

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

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

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

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

    if -2.7e14 < z < 1.7e-155

    1. Initial program 87.1%

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

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

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

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

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

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

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

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

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

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

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

    if 1.7e-155 < z < 3.2e9

    1. Initial program 92.2%

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\mathsf{Rewrite=>}\left(lower-*.f64, \left(z \cdot \left(t - a\right)\right)\right)}{y + \color{blue}{\left(b - y\right) \cdot z}} \]
      4. +-commutativeN/A

        \[\leadsto \frac{\mathsf{Rewrite=>}\left(lower-*.f64, \left(z \cdot \left(t - a\right)\right)\right)}{\color{blue}{\left(b - y\right) \cdot z + y}} \]
      5. lift-fma.f64N/A

        \[\leadsto \frac{\mathsf{Rewrite=>}\left(lower-*.f64, \left(z \cdot \left(t - a\right)\right)\right)}{\color{blue}{\mathsf{fma}\left(b - y, z, y\right)}} \]
    7. Applied rewrites65.3%

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

Alternative 5: 68.7% accurate, 0.8× speedup?

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

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

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

\mathbf{elif}\;z \leq 55000000000:\\
\;\;\;\;\left(t - a\right) \cdot \frac{z}{t\_1}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.7e14 or 5.5e10 < z

    1. Initial program 37.6%

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

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

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

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

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

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

    if -2.7e14 < z < 1.7e-155

    1. Initial program 87.1%

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

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

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

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

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

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

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

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

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

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

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

    if 1.7e-155 < z < 5.5e10

    1. Initial program 92.2%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 72.9% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.75 \cdot 10^{+14} \lor \neg \left(z \leq 450000000000\right):\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(t, z, y \cdot x\right)}{\mathsf{fma}\left(b - y, z, y\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (if (or (<= z -2.75e+14) (not (<= z 450000000000.0)))
   (/ (- t a) (- b y))
   (/ (fma t z (* y x)) (fma (- b y) z y))))
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if ((z <= -2.75e+14) || !(z <= 450000000000.0)) {
		tmp = (t - a) / (b - y);
	} else {
		tmp = fma(t, z, (y * x)) / fma((b - y), z, y);
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	tmp = 0.0
	if ((z <= -2.75e+14) || !(z <= 450000000000.0))
		tmp = Float64(Float64(t - a) / Float64(b - y));
	else
		tmp = Float64(fma(t, z, Float64(y * x)) / fma(Float64(b - y), z, y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.75e+14], N[Not[LessEqual[z, 450000000000.0]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision] / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.75 \cdot 10^{+14} \lor \neg \left(z \leq 450000000000\right):\\
\;\;\;\;\frac{t - a}{b - y}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.75e14 or 4.5e11 < z

    1. Initial program 37.6%

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

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

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

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

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

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

    if -2.75e14 < z < 4.5e11

    1. Initial program 88.1%

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

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

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

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

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

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

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

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

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

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

      \[\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. Final simplification77.0%

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

Alternative 7: 34.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{-a}{b}\\ \mathbf{if}\;z \leq -1.35 \cdot 10^{-42}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-141}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{+25}:\\ \;\;\;\;\frac{t}{b}\\ \mathbf{elif}\;z \leq 7.8 \cdot 10^{+189}:\\ \;\;\;\;\frac{x}{-z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (/ (- a) b)))
   (if (<= z -1.35e-42)
     t_1
     (if (<= z 2.8e-141)
       (* 1.0 x)
       (if (<= z 5.6e+25) (/ t b) (if (<= z 7.8e+189) (/ x (- z)) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = -a / b;
	double tmp;
	if (z <= -1.35e-42) {
		tmp = t_1;
	} else if (z <= 2.8e-141) {
		tmp = 1.0 * x;
	} else if (z <= 5.6e+25) {
		tmp = t / b;
	} else if (z <= 7.8e+189) {
		tmp = x / -z;
	} 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 = -a / b
    if (z <= (-1.35d-42)) then
        tmp = t_1
    else if (z <= 2.8d-141) then
        tmp = 1.0d0 * x
    else if (z <= 5.6d+25) then
        tmp = t / b
    else if (z <= 7.8d+189) then
        tmp = x / -z
    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 = -a / b;
	double tmp;
	if (z <= -1.35e-42) {
		tmp = t_1;
	} else if (z <= 2.8e-141) {
		tmp = 1.0 * x;
	} else if (z <= 5.6e+25) {
		tmp = t / b;
	} else if (z <= 7.8e+189) {
		tmp = x / -z;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	t_1 = -a / b
	tmp = 0
	if z <= -1.35e-42:
		tmp = t_1
	elif z <= 2.8e-141:
		tmp = 1.0 * x
	elif z <= 5.6e+25:
		tmp = t / b
	elif z <= 7.8e+189:
		tmp = x / -z
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b)
	t_1 = Float64(Float64(-a) / b)
	tmp = 0.0
	if (z <= -1.35e-42)
		tmp = t_1;
	elseif (z <= 2.8e-141)
		tmp = Float64(1.0 * x);
	elseif (z <= 5.6e+25)
		tmp = Float64(t / b);
	elseif (z <= 7.8e+189)
		tmp = Float64(x / Float64(-z));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = -a / b;
	tmp = 0.0;
	if (z <= -1.35e-42)
		tmp = t_1;
	elseif (z <= 2.8e-141)
		tmp = 1.0 * x;
	elseif (z <= 5.6e+25)
		tmp = t / b;
	elseif (z <= 7.8e+189)
		tmp = x / -z;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-a) / b), $MachinePrecision]}, If[LessEqual[z, -1.35e-42], t$95$1, If[LessEqual[z, 2.8e-141], N[(1.0 * x), $MachinePrecision], If[LessEqual[z, 5.6e+25], N[(t / b), $MachinePrecision], If[LessEqual[z, 7.8e+189], N[(x / (-z)), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq 2.8 \cdot 10^{-141}:\\
\;\;\;\;1 \cdot x\\

\mathbf{elif}\;z \leq 5.6 \cdot 10^{+25}:\\
\;\;\;\;\frac{t}{b}\\

\mathbf{elif}\;z \leq 7.8 \cdot 10^{+189}:\\
\;\;\;\;\frac{x}{-z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -1.35e-42 or 7.7999999999999999e189 < z

    1. Initial program 40.1%

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

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

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

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

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

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

        \[\leadsto \frac{-a}{b} \]

      if -1.35e-42 < z < 2.80000000000000012e-141

      1. Initial program 87.4%

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto 1 \cdot x \]

        if 2.80000000000000012e-141 < z < 5.6000000000000003e25

        1. Initial program 91.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 5.6000000000000003e25 < z < 7.7999999999999999e189

          1. Initial program 38.6%

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

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

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

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

              \[\leadsto \frac{x}{1 - \color{blue}{1} \cdot z} \]
            4. *-lft-identityN/A

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

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

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

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

              \[\leadsto \frac{x}{-z} \]
          8. Recombined 4 regimes into one program.
          9. Add Preprocessing

          Alternative 8: 33.9% accurate, 1.0× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.4 \cdot 10^{-42}:\\ \;\;\;\;\frac{t}{b}\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-141}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{+25}:\\ \;\;\;\;\frac{t}{b}\\ \mathbf{elif}\;z \leq 3 \cdot 10^{+175}:\\ \;\;\;\;\frac{x}{-z}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{-y}\\ \end{array} \end{array} \]
          (FPCore (x y z t a b)
           :precision binary64
           (if (<= z -4.4e-42)
             (/ t b)
             (if (<= z 2.8e-141)
               (* 1.0 x)
               (if (<= z 5.6e+25) (/ t b) (if (<= z 3e+175) (/ x (- z)) (/ t (- y)))))))
          double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if (z <= -4.4e-42) {
          		tmp = t / b;
          	} else if (z <= 2.8e-141) {
          		tmp = 1.0 * x;
          	} else if (z <= 5.6e+25) {
          		tmp = t / b;
          	} else if (z <= 3e+175) {
          		tmp = x / -z;
          	} else {
          		tmp = t / -y;
          	}
          	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) :: tmp
              if (z <= (-4.4d-42)) then
                  tmp = t / b
              else if (z <= 2.8d-141) then
                  tmp = 1.0d0 * x
              else if (z <= 5.6d+25) then
                  tmp = t / b
              else if (z <= 3d+175) then
                  tmp = x / -z
              else
                  tmp = t / -y
              end if
              code = tmp
          end function
          
          public static double code(double x, double y, double z, double t, double a, double b) {
          	double tmp;
          	if (z <= -4.4e-42) {
          		tmp = t / b;
          	} else if (z <= 2.8e-141) {
          		tmp = 1.0 * x;
          	} else if (z <= 5.6e+25) {
          		tmp = t / b;
          	} else if (z <= 3e+175) {
          		tmp = x / -z;
          	} else {
          		tmp = t / -y;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a, b):
          	tmp = 0
          	if z <= -4.4e-42:
          		tmp = t / b
          	elif z <= 2.8e-141:
          		tmp = 1.0 * x
          	elif z <= 5.6e+25:
          		tmp = t / b
          	elif z <= 3e+175:
          		tmp = x / -z
          	else:
          		tmp = t / -y
          	return tmp
          
          function code(x, y, z, t, a, b)
          	tmp = 0.0
          	if (z <= -4.4e-42)
          		tmp = Float64(t / b);
          	elseif (z <= 2.8e-141)
          		tmp = Float64(1.0 * x);
          	elseif (z <= 5.6e+25)
          		tmp = Float64(t / b);
          	elseif (z <= 3e+175)
          		tmp = Float64(x / Float64(-z));
          	else
          		tmp = Float64(t / Float64(-y));
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a, b)
          	tmp = 0.0;
          	if (z <= -4.4e-42)
          		tmp = t / b;
          	elseif (z <= 2.8e-141)
          		tmp = 1.0 * x;
          	elseif (z <= 5.6e+25)
          		tmp = t / b;
          	elseif (z <= 3e+175)
          		tmp = x / -z;
          	else
          		tmp = t / -y;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -4.4e-42], N[(t / b), $MachinePrecision], If[LessEqual[z, 2.8e-141], N[(1.0 * x), $MachinePrecision], If[LessEqual[z, 5.6e+25], N[(t / b), $MachinePrecision], If[LessEqual[z, 3e+175], N[(x / (-z)), $MachinePrecision], N[(t / (-y)), $MachinePrecision]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;z \leq -4.4 \cdot 10^{-42}:\\
          \;\;\;\;\frac{t}{b}\\
          
          \mathbf{elif}\;z \leq 2.8 \cdot 10^{-141}:\\
          \;\;\;\;1 \cdot x\\
          
          \mathbf{elif}\;z \leq 5.6 \cdot 10^{+25}:\\
          \;\;\;\;\frac{t}{b}\\
          
          \mathbf{elif}\;z \leq 3 \cdot 10^{+175}:\\
          \;\;\;\;\frac{x}{-z}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{t}{-y}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if z < -4.4000000000000001e-42 or 2.80000000000000012e-141 < z < 5.6000000000000003e25

            1. Initial program 58.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -4.4000000000000001e-42 < z < 2.80000000000000012e-141

              1. Initial program 87.4%

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto 1 \cdot x \]

                if 5.6000000000000003e25 < z < 3.0000000000000002e175

                1. Initial program 36.2%

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

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

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

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

                    \[\leadsto \frac{x}{1 - \color{blue}{1} \cdot z} \]
                  4. *-lft-identityN/A

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

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

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

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

                    \[\leadsto \frac{x}{-z} \]

                  if 3.0000000000000002e175 < z

                  1. Initial program 24.1%

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{t}{\color{blue}{b - y}} \]
                    2. Taylor expanded in y around inf

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

                        \[\leadsto \frac{t}{-y} \]
                    4. Recombined 4 regimes into one program.
                    5. Add Preprocessing

                    Alternative 9: 67.1% accurate, 1.0× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{+14} \lor \neg \left(z \leq 9 \cdot 10^{-102}\right):\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b)
                     :precision binary64
                     (if (or (<= z -2.7e+14) (not (<= z 9e-102)))
                       (/ (- t a) (- b y))
                       (* (/ y (fma (- b y) z y)) x)))
                    double code(double x, double y, double z, double t, double a, double b) {
                    	double tmp;
                    	if ((z <= -2.7e+14) || !(z <= 9e-102)) {
                    		tmp = (t - a) / (b - y);
                    	} else {
                    		tmp = (y / fma((b - y), z, y)) * x;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a, b)
                    	tmp = 0.0
                    	if ((z <= -2.7e+14) || !(z <= 9e-102))
                    		tmp = Float64(Float64(t - a) / Float64(b - y));
                    	else
                    		tmp = Float64(Float64(y / fma(Float64(b - y), z, y)) * x);
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.7e+14], N[Not[LessEqual[z, 9e-102]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(N[(y / N[(N[(b - y), $MachinePrecision] * z + y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;z \leq -2.7 \cdot 10^{+14} \lor \neg \left(z \leq 9 \cdot 10^{-102}\right):\\
                    \;\;\;\;\frac{t - a}{b - y}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if z < -2.7e14 or 8.99999999999999999e-102 < z

                      1. Initial program 43.8%

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

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

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

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

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

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

                      if -2.7e14 < z < 8.99999999999999999e-102

                      1. Initial program 87.3%

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{+14} \lor \neg \left(z \leq 9 \cdot 10^{-102}\right):\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{\mathsf{fma}\left(b - y, z, y\right)} \cdot x\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 10: 62.9% accurate, 1.3× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -8.5 \cdot 10^{-43} \lor \neg \left(z \leq 3.6 \cdot 10^{-160}\right):\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b)
                     :precision binary64
                     (if (or (<= z -8.5e-43) (not (<= z 3.6e-160))) (/ (- t a) (- b y)) (* 1.0 x)))
                    double code(double x, double y, double z, double t, double a, double b) {
                    	double tmp;
                    	if ((z <= -8.5e-43) || !(z <= 3.6e-160)) {
                    		tmp = (t - a) / (b - y);
                    	} else {
                    		tmp = 1.0 * x;
                    	}
                    	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) :: tmp
                        if ((z <= (-8.5d-43)) .or. (.not. (z <= 3.6d-160))) then
                            tmp = (t - a) / (b - y)
                        else
                            tmp = 1.0d0 * x
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y, double z, double t, double a, double b) {
                    	double tmp;
                    	if ((z <= -8.5e-43) || !(z <= 3.6e-160)) {
                    		tmp = (t - a) / (b - y);
                    	} else {
                    		tmp = 1.0 * x;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a, b):
                    	tmp = 0
                    	if (z <= -8.5e-43) or not (z <= 3.6e-160):
                    		tmp = (t - a) / (b - y)
                    	else:
                    		tmp = 1.0 * x
                    	return tmp
                    
                    function code(x, y, z, t, a, b)
                    	tmp = 0.0
                    	if ((z <= -8.5e-43) || !(z <= 3.6e-160))
                    		tmp = Float64(Float64(t - a) / Float64(b - y));
                    	else
                    		tmp = Float64(1.0 * x);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a, b)
                    	tmp = 0.0;
                    	if ((z <= -8.5e-43) || ~((z <= 3.6e-160)))
                    		tmp = (t - a) / (b - y);
                    	else
                    		tmp = 1.0 * x;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -8.5e-43], N[Not[LessEqual[z, 3.6e-160]], $MachinePrecision]], N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;z \leq -8.5 \cdot 10^{-43} \lor \neg \left(z \leq 3.6 \cdot 10^{-160}\right):\\
                    \;\;\;\;\frac{t - a}{b - y}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;1 \cdot x\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if z < -8.50000000000000056e-43 or 3.5999999999999997e-160 < z

                      1. Initial program 48.7%

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

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

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

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

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

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

                      if -8.50000000000000056e-43 < z < 3.5999999999999997e-160

                      1. Initial program 86.9%

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto 1 \cdot x \]
                      8. Recombined 2 regimes into one program.
                      9. Final simplification65.5%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -8.5 \cdot 10^{-43} \lor \neg \left(z \leq 3.6 \cdot 10^{-160}\right):\\ \;\;\;\;\frac{t - a}{b - y}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 11: 54.2% accurate, 1.4× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.05 \cdot 10^{-17} \lor \neg \left(y \leq 4.8 \cdot 10^{+52}\right):\\ \;\;\;\;\frac{x}{1 - z}\\ \mathbf{else}:\\ \;\;\;\;\frac{t - a}{b}\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (if (or (<= y -2.05e-17) (not (<= y 4.8e+52))) (/ x (- 1.0 z)) (/ (- t a) b)))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double tmp;
                      	if ((y <= -2.05e-17) || !(y <= 4.8e+52)) {
                      		tmp = x / (1.0 - z);
                      	} else {
                      		tmp = (t - a) / b;
                      	}
                      	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) :: tmp
                          if ((y <= (-2.05d-17)) .or. (.not. (y <= 4.8d+52))) then
                              tmp = x / (1.0d0 - z)
                          else
                              tmp = (t - a) / b
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a, double b) {
                      	double tmp;
                      	if ((y <= -2.05e-17) || !(y <= 4.8e+52)) {
                      		tmp = x / (1.0 - z);
                      	} else {
                      		tmp = (t - a) / b;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b):
                      	tmp = 0
                      	if (y <= -2.05e-17) or not (y <= 4.8e+52):
                      		tmp = x / (1.0 - z)
                      	else:
                      		tmp = (t - a) / b
                      	return tmp
                      
                      function code(x, y, z, t, a, b)
                      	tmp = 0.0
                      	if ((y <= -2.05e-17) || !(y <= 4.8e+52))
                      		tmp = Float64(x / Float64(1.0 - z));
                      	else
                      		tmp = Float64(Float64(t - a) / b);
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b)
                      	tmp = 0.0;
                      	if ((y <= -2.05e-17) || ~((y <= 4.8e+52)))
                      		tmp = x / (1.0 - z);
                      	else
                      		tmp = (t - a) / b;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.05e-17], N[Not[LessEqual[y, 4.8e+52]], $MachinePrecision]], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], N[(N[(t - a), $MachinePrecision] / b), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;y \leq -2.05 \cdot 10^{-17} \lor \neg \left(y \leq 4.8 \cdot 10^{+52}\right):\\
                      \;\;\;\;\frac{x}{1 - z}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{t - a}{b}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if y < -2.05e-17 or 4.8e52 < y

                        1. Initial program 51.7%

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

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

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

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

                            \[\leadsto \frac{x}{1 - \color{blue}{1} \cdot z} \]
                          4. *-lft-identityN/A

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

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

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

                        if -2.05e-17 < y < 4.8e52

                        1. Initial program 73.1%

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

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

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

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

                          \[\leadsto \color{blue}{\frac{t - a}{b}} \]
                      3. Recombined 2 regimes into one program.
                      4. Final simplification57.1%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.05 \cdot 10^{-17} \lor \neg \left(y \leq 4.8 \cdot 10^{+52}\right):\\ \;\;\;\;\frac{x}{1 - z}\\ \mathbf{else}:\\ \;\;\;\;\frac{t - a}{b}\\ \end{array} \]
                      5. Add Preprocessing

                      Alternative 12: 43.1% accurate, 1.4× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -5.8 \cdot 10^{-18} \lor \neg \left(y \leq 1.65 \cdot 10^{+49}\right):\\ \;\;\;\;\frac{x}{1 - z}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{b - y}\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b)
                       :precision binary64
                       (if (or (<= y -5.8e-18) (not (<= y 1.65e+49))) (/ x (- 1.0 z)) (/ t (- b y))))
                      double code(double x, double y, double z, double t, double a, double b) {
                      	double tmp;
                      	if ((y <= -5.8e-18) || !(y <= 1.65e+49)) {
                      		tmp = x / (1.0 - z);
                      	} else {
                      		tmp = t / (b - y);
                      	}
                      	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) :: tmp
                          if ((y <= (-5.8d-18)) .or. (.not. (y <= 1.65d+49))) then
                              tmp = x / (1.0d0 - z)
                          else
                              tmp = t / (b - y)
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a, double b) {
                      	double tmp;
                      	if ((y <= -5.8e-18) || !(y <= 1.65e+49)) {
                      		tmp = x / (1.0 - z);
                      	} else {
                      		tmp = t / (b - y);
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b):
                      	tmp = 0
                      	if (y <= -5.8e-18) or not (y <= 1.65e+49):
                      		tmp = x / (1.0 - z)
                      	else:
                      		tmp = t / (b - y)
                      	return tmp
                      
                      function code(x, y, z, t, a, b)
                      	tmp = 0.0
                      	if ((y <= -5.8e-18) || !(y <= 1.65e+49))
                      		tmp = Float64(x / Float64(1.0 - z));
                      	else
                      		tmp = Float64(t / Float64(b - y));
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b)
                      	tmp = 0.0;
                      	if ((y <= -5.8e-18) || ~((y <= 1.65e+49)))
                      		tmp = x / (1.0 - z);
                      	else
                      		tmp = t / (b - y);
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -5.8e-18], N[Not[LessEqual[y, 1.65e+49]], $MachinePrecision]], N[(x / N[(1.0 - z), $MachinePrecision]), $MachinePrecision], N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;y \leq -5.8 \cdot 10^{-18} \lor \neg \left(y \leq 1.65 \cdot 10^{+49}\right):\\
                      \;\;\;\;\frac{x}{1 - z}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{t}{b - y}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if y < -5.8e-18 or 1.6499999999999999e49 < y

                        1. Initial program 52.0%

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

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

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

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

                            \[\leadsto \frac{x}{1 - \color{blue}{1} \cdot z} \]
                          4. *-lft-identityN/A

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

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

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

                        if -5.8e-18 < y < 1.6499999999999999e49

                        1. Initial program 72.9%

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{t}{\color{blue}{b - y}} \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification45.8%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.8 \cdot 10^{-18} \lor \neg \left(y \leq 1.65 \cdot 10^{+49}\right):\\ \;\;\;\;\frac{x}{1 - z}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{b - y}\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 13: 42.3% accurate, 1.4× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.1 \cdot 10^{-42} \lor \neg \left(z \leq 2.8 \cdot 10^{-141}\right):\\ \;\;\;\;\frac{t}{b - y}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \end{array} \]
                        (FPCore (x y z t a b)
                         :precision binary64
                         (if (or (<= z -1.1e-42) (not (<= z 2.8e-141))) (/ t (- b y)) (* 1.0 x)))
                        double code(double x, double y, double z, double t, double a, double b) {
                        	double tmp;
                        	if ((z <= -1.1e-42) || !(z <= 2.8e-141)) {
                        		tmp = t / (b - y);
                        	} else {
                        		tmp = 1.0 * x;
                        	}
                        	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) :: tmp
                            if ((z <= (-1.1d-42)) .or. (.not. (z <= 2.8d-141))) then
                                tmp = t / (b - y)
                            else
                                tmp = 1.0d0 * x
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a, double b) {
                        	double tmp;
                        	if ((z <= -1.1e-42) || !(z <= 2.8e-141)) {
                        		tmp = t / (b - y);
                        	} else {
                        		tmp = 1.0 * x;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a, b):
                        	tmp = 0
                        	if (z <= -1.1e-42) or not (z <= 2.8e-141):
                        		tmp = t / (b - y)
                        	else:
                        		tmp = 1.0 * x
                        	return tmp
                        
                        function code(x, y, z, t, a, b)
                        	tmp = 0.0
                        	if ((z <= -1.1e-42) || !(z <= 2.8e-141))
                        		tmp = Float64(t / Float64(b - y));
                        	else
                        		tmp = Float64(1.0 * x);
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a, b)
                        	tmp = 0.0;
                        	if ((z <= -1.1e-42) || ~((z <= 2.8e-141)))
                        		tmp = t / (b - y);
                        	else
                        		tmp = 1.0 * x;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.1e-42], N[Not[LessEqual[z, 2.8e-141]], $MachinePrecision]], N[(t / N[(b - y), $MachinePrecision]), $MachinePrecision], N[(1.0 * x), $MachinePrecision]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;z \leq -1.1 \cdot 10^{-42} \lor \neg \left(z \leq 2.8 \cdot 10^{-141}\right):\\
                        \;\;\;\;\frac{t}{b - y}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;1 \cdot x\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if z < -1.10000000000000003e-42 or 2.80000000000000012e-141 < z

                          1. Initial program 47.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -1.10000000000000003e-42 < z < 2.80000000000000012e-141

                            1. Initial program 87.4%

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto 1 \cdot x \]
                            8. Recombined 2 regimes into one program.
                            9. Final simplification42.0%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.1 \cdot 10^{-42} \lor \neg \left(z \leq 2.8 \cdot 10^{-141}\right):\\ \;\;\;\;\frac{t}{b - y}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                            10. Add Preprocessing

                            Alternative 14: 33.9% accurate, 1.6× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.08 \cdot 10^{-17} \lor \neg \left(y \leq 1.65 \cdot 10^{+49}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{b}\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b)
                             :precision binary64
                             (if (or (<= y -1.08e-17) (not (<= y 1.65e+49))) (* 1.0 x) (/ t b)))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double tmp;
                            	if ((y <= -1.08e-17) || !(y <= 1.65e+49)) {
                            		tmp = 1.0 * x;
                            	} else {
                            		tmp = t / b;
                            	}
                            	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) :: tmp
                                if ((y <= (-1.08d-17)) .or. (.not. (y <= 1.65d+49))) then
                                    tmp = 1.0d0 * x
                                else
                                    tmp = t / b
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b) {
                            	double tmp;
                            	if ((y <= -1.08e-17) || !(y <= 1.65e+49)) {
                            		tmp = 1.0 * x;
                            	} else {
                            		tmp = t / b;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b):
                            	tmp = 0
                            	if (y <= -1.08e-17) or not (y <= 1.65e+49):
                            		tmp = 1.0 * x
                            	else:
                            		tmp = t / b
                            	return tmp
                            
                            function code(x, y, z, t, a, b)
                            	tmp = 0.0
                            	if ((y <= -1.08e-17) || !(y <= 1.65e+49))
                            		tmp = Float64(1.0 * x);
                            	else
                            		tmp = Float64(t / b);
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b)
                            	tmp = 0.0;
                            	if ((y <= -1.08e-17) || ~((y <= 1.65e+49)))
                            		tmp = 1.0 * x;
                            	else
                            		tmp = t / b;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.08e-17], N[Not[LessEqual[y, 1.65e+49]], $MachinePrecision]], N[(1.0 * x), $MachinePrecision], N[(t / b), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;y \leq -1.08 \cdot 10^{-17} \lor \neg \left(y \leq 1.65 \cdot 10^{+49}\right):\\
                            \;\;\;\;1 \cdot x\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\frac{t}{b}\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if y < -1.07999999999999995e-17 or 1.6499999999999999e49 < y

                              1. Initial program 52.0%

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto 1 \cdot x \]

                                if -1.07999999999999995e-17 < y < 1.6499999999999999e49

                                1. Initial program 72.9%

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \frac{t}{\color{blue}{b}} \]
                                8. Recombined 2 regimes into one program.
                                9. Final simplification34.7%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.08 \cdot 10^{-17} \lor \neg \left(y \leq 1.65 \cdot 10^{+49}\right):\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{b}\\ \end{array} \]
                                10. Add Preprocessing

                                Alternative 15: 25.0% accurate, 6.5× speedup?

                                \[\begin{array}{l} \\ 1 \cdot x \end{array} \]
                                (FPCore (x y z t a b) :precision binary64 (* 1.0 x))
                                double code(double x, double y, double z, double t, double a, double b) {
                                	return 1.0 * x;
                                }
                                
                                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 = 1.0d0 * x
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a, double b) {
                                	return 1.0 * x;
                                }
                                
                                def code(x, y, z, t, a, b):
                                	return 1.0 * x
                                
                                function code(x, y, z, t, a, b)
                                	return Float64(1.0 * x)
                                end
                                
                                function tmp = code(x, y, z, t, a, b)
                                	tmp = 1.0 * x;
                                end
                                
                                code[x_, y_, z_, t_, a_, b_] := N[(1.0 * x), $MachinePrecision]
                                
                                \begin{array}{l}
                                
                                \\
                                1 \cdot x
                                \end{array}
                                
                                Derivation
                                1. Initial program 62.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 16: 3.9% accurate, 6.5× speedup?

                                  \[\begin{array}{l} \\ z \cdot x \end{array} \]
                                  (FPCore (x y z t a b) :precision binary64 (* z x))
                                  double code(double x, double y, double z, double t, double a, double b) {
                                  	return z * x;
                                  }
                                  
                                  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 = z * x
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a, double b) {
                                  	return z * x;
                                  }
                                  
                                  def code(x, y, z, t, a, b):
                                  	return z * x
                                  
                                  function code(x, y, z, t, a, b)
                                  	return Float64(z * x)
                                  end
                                  
                                  function tmp = code(x, y, z, t, a, b)
                                  	tmp = z * x;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_] := N[(z * x), $MachinePrecision]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  z \cdot x
                                  \end{array}
                                  
                                  Derivation
                                  1. Initial program 62.3%

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

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

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

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

                                      \[\leadsto \frac{x}{1 - \color{blue}{1} \cdot z} \]
                                    4. *-lft-identityN/A

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

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

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

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

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

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

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

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

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

                                      Reproduce

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