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

Percentage Accurate: 97.1% → 97.1%
Time: 12.2s
Alternatives: 18
Speedup: N/A×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 18 alternatives:

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

Initial Program: 97.1% accurate, 1.0× speedup?

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

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

Alternative 1: 97.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.05 \cdot 10^{+192}:\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;x - \left(y - z\right) \cdot \frac{a}{1 + \left(t - z\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -1.05e+192) (- x a) (- x (* (- y z) (/ a (+ 1.0 (- t z)))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.05e+192) {
		tmp = x - a;
	} else {
		tmp = x - ((y - z) * (a / (1.0 + (t - z))));
	}
	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)
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) :: tmp
    if (z <= (-1.05d+192)) then
        tmp = x - a
    else
        tmp = x - ((y - z) * (a / (1.0d0 + (t - z))))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.05e+192) {
		tmp = x - a;
	} else {
		tmp = x - ((y - z) * (a / (1.0 + (t - z))));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if z <= -1.05e+192:
		tmp = x - a
	else:
		tmp = x - ((y - z) * (a / (1.0 + (t - z))))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -1.05e+192)
		tmp = Float64(x - a);
	else
		tmp = Float64(x - Float64(Float64(y - z) * Float64(a / Float64(1.0 + Float64(t - z)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (z <= -1.05e+192)
		tmp = x - a;
	else
		tmp = x - ((y - z) * (a / (1.0 + (t - z))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.05e+192], N[(x - a), $MachinePrecision], N[(x - N[(N[(y - z), $MachinePrecision] * N[(a / N[(1.0 + N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.05 \cdot 10^{+192}:\\
\;\;\;\;x - a\\

\mathbf{else}:\\
\;\;\;\;x - \left(y - z\right) \cdot \frac{a}{1 + \left(t - z\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.04999999999999997e192

    1. Initial program 77.6%

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

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

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

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

    if -1.04999999999999997e192 < z

    1. Initial program 98.3%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x - \left(y - z\right) \cdot \frac{a}{1 + \left(t - z\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.7%

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

Alternative 2: 73.3% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\
\;\;\;\;x - a\\

\mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\
\;\;\;\;x - \frac{y}{t} \cdot a\\

\mathbf{elif}\;z \leq 5.6 \cdot 10^{-42}:\\
\;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\

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

\mathbf{else}:\\
\;\;\;\;x - a\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -4.49999999999999984e54 or 6.5000000000000003e135 < z

    1. Initial program 88.9%

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

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

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

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

    if -4.49999999999999984e54 < z < -9.0000000000000005e-126

    1. Initial program 97.6%

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

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
      5. lower-+.f6486.9

        \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
    5. Applied rewrites86.9%

      \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
    6. Taylor expanded in t around inf

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

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

      if -9.0000000000000005e-126 < z < 5.59999999999999996e-42

      1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

        if 5.59999999999999996e-42 < z < 6.5000000000000003e135

        1. Initial program 99.8%

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(z + -1 \cdot y, \frac{\color{blue}{a}}{t}, x\right) \]
          3. Step-by-step derivation
            1. Applied rewrites72.5%

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\ \;\;\;\;x - \frac{y}{t} \cdot a\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{-42}:\\ \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{+135}:\\ \;\;\;\;\mathsf{fma}\left(z - y, \frac{a}{t}, x\right)\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \]
          6. Add Preprocessing

          Alternative 3: 73.3% accurate, 0.8× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\ \;\;\;\;x - \frac{y}{t} \cdot a\\ \mathbf{elif}\;z \leq 7 \cdot 10^{-42}:\\ \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{+135}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{z - y}{t}, x\right)\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (if (<= z -4.5e+54)
             (- x a)
             (if (<= z -9e-126)
               (- x (* (/ y t) a))
               (if (<= z 7e-42)
                 (- x (* (- y z) (fma a z a)))
                 (if (<= z 6.5e+135) (fma a (/ (- z y) t) x) (- x a))))))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if (z <= -4.5e+54) {
          		tmp = x - a;
          	} else if (z <= -9e-126) {
          		tmp = x - ((y / t) * a);
          	} else if (z <= 7e-42) {
          		tmp = x - ((y - z) * fma(a, z, a));
          	} else if (z <= 6.5e+135) {
          		tmp = fma(a, ((z - y) / t), x);
          	} else {
          		tmp = x - a;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if (z <= -4.5e+54)
          		tmp = Float64(x - a);
          	elseif (z <= -9e-126)
          		tmp = Float64(x - Float64(Float64(y / t) * a));
          	elseif (z <= 7e-42)
          		tmp = Float64(x - Float64(Float64(y - z) * fma(a, z, a)));
          	elseif (z <= 6.5e+135)
          		tmp = fma(a, Float64(Float64(z - y) / t), x);
          	else
          		tmp = Float64(x - a);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.5e+54], N[(x - a), $MachinePrecision], If[LessEqual[z, -9e-126], N[(x - N[(N[(y / t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e-42], N[(x - N[(N[(y - z), $MachinePrecision] * N[(a * z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e+135], N[(a * N[(N[(z - y), $MachinePrecision] / t), $MachinePrecision] + x), $MachinePrecision], N[(x - a), $MachinePrecision]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\
          \;\;\;\;x - a\\
          
          \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\
          \;\;\;\;x - \frac{y}{t} \cdot a\\
          
          \mathbf{elif}\;z \leq 7 \cdot 10^{-42}:\\
          \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\
          
          \mathbf{elif}\;z \leq 6.5 \cdot 10^{+135}:\\
          \;\;\;\;\mathsf{fma}\left(a, \frac{z - y}{t}, x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;x - a\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if z < -4.49999999999999984e54 or 6.5000000000000003e135 < z

            1. Initial program 88.9%

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

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

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

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

            if -4.49999999999999984e54 < z < -9.0000000000000005e-126

            1. Initial program 97.6%

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

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

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

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

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

                \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
              5. lower-+.f6486.9

                \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
            5. Applied rewrites86.9%

              \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
            6. Taylor expanded in t around inf

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

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

              if -9.0000000000000005e-126 < z < 7.0000000000000004e-42

              1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

                if 7.0000000000000004e-42 < z < 6.5000000000000003e135

                1. Initial program 99.8%

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

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

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

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

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\ \;\;\;\;x - \frac{y}{t} \cdot a\\ \mathbf{elif}\;z \leq 7 \cdot 10^{-42}:\\ \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{+135}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{z - y}{t}, x\right)\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \]
                9. Add Preprocessing

                Alternative 4: 74.0% accurate, 0.8× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \frac{y}{t} \cdot a\\ \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{-42}:\\ \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+96}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (let* ((t_1 (- x (* (/ y t) a))))
                   (if (<= z -4.5e+54)
                     (- x a)
                     (if (<= z -9e-126)
                       t_1
                       (if (<= z 7.2e-42)
                         (- x (* (- y z) (fma a z a)))
                         (if (<= z 9.5e+96) t_1 (- x a)))))))
                double code(double x, double y, double z, double t, double a) {
                	double t_1 = x - ((y / t) * a);
                	double tmp;
                	if (z <= -4.5e+54) {
                		tmp = x - a;
                	} else if (z <= -9e-126) {
                		tmp = t_1;
                	} else if (z <= 7.2e-42) {
                		tmp = x - ((y - z) * fma(a, z, a));
                	} else if (z <= 9.5e+96) {
                		tmp = t_1;
                	} else {
                		tmp = x - a;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a)
                	t_1 = Float64(x - Float64(Float64(y / t) * a))
                	tmp = 0.0
                	if (z <= -4.5e+54)
                		tmp = Float64(x - a);
                	elseif (z <= -9e-126)
                		tmp = t_1;
                	elseif (z <= 7.2e-42)
                		tmp = Float64(x - Float64(Float64(y - z) * fma(a, z, a)));
                	elseif (z <= 9.5e+96)
                		tmp = t_1;
                	else
                		tmp = Float64(x - a);
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(y / t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+54], N[(x - a), $MachinePrecision], If[LessEqual[z, -9e-126], t$95$1, If[LessEqual[z, 7.2e-42], N[(x - N[(N[(y - z), $MachinePrecision] * N[(a * z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+96], t$95$1, N[(x - a), $MachinePrecision]]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := x - \frac{y}{t} \cdot a\\
                \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\
                \;\;\;\;x - a\\
                
                \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;z \leq 7.2 \cdot 10^{-42}:\\
                \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\
                
                \mathbf{elif}\;z \leq 9.5 \cdot 10^{+96}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{else}:\\
                \;\;\;\;x - a\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -4.49999999999999984e54 or 9.50000000000000089e96 < z

                  1. Initial program 90.1%

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

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

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

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

                  if -4.49999999999999984e54 < z < -9.0000000000000005e-126 or 7.2000000000000004e-42 < z < 9.50000000000000089e96

                  1. Initial program 98.7%

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

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

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

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

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

                      \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                    5. lower-+.f6482.2

                      \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                  5. Applied rewrites82.2%

                    \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                  6. Taylor expanded in t around inf

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

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

                    if -9.0000000000000005e-126 < z < 7.2000000000000004e-42

                    1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\ \;\;\;\;x - \frac{y}{t} \cdot a\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{-42}:\\ \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+96}:\\ \;\;\;\;x - \frac{y}{t} \cdot a\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 5: 73.8% accurate, 0.8× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-y, \frac{a}{t}, x\right)\\ \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{-42}:\\ \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{+97}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (let* ((t_1 (fma (- y) (/ a t) x)))
                       (if (<= z -4.5e+54)
                         (- x a)
                         (if (<= z -9e-126)
                           t_1
                           (if (<= z 7.2e-42)
                             (- x (* (- y z) (fma a z a)))
                             (if (<= z 1.15e+97) t_1 (- x a)))))))
                    double code(double x, double y, double z, double t, double a) {
                    	double t_1 = fma(-y, (a / t), x);
                    	double tmp;
                    	if (z <= -4.5e+54) {
                    		tmp = x - a;
                    	} else if (z <= -9e-126) {
                    		tmp = t_1;
                    	} else if (z <= 7.2e-42) {
                    		tmp = x - ((y - z) * fma(a, z, a));
                    	} else if (z <= 1.15e+97) {
                    		tmp = t_1;
                    	} else {
                    		tmp = x - a;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a)
                    	t_1 = fma(Float64(-y), Float64(a / t), x)
                    	tmp = 0.0
                    	if (z <= -4.5e+54)
                    		tmp = Float64(x - a);
                    	elseif (z <= -9e-126)
                    		tmp = t_1;
                    	elseif (z <= 7.2e-42)
                    		tmp = Float64(x - Float64(Float64(y - z) * fma(a, z, a)));
                    	elseif (z <= 1.15e+97)
                    		tmp = t_1;
                    	else
                    		tmp = Float64(x - a);
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[((-y) * N[(a / t), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[z, -4.5e+54], N[(x - a), $MachinePrecision], If[LessEqual[z, -9e-126], t$95$1, If[LessEqual[z, 7.2e-42], N[(x - N[(N[(y - z), $MachinePrecision] * N[(a * z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e+97], t$95$1, N[(x - a), $MachinePrecision]]]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \mathsf{fma}\left(-y, \frac{a}{t}, x\right)\\
                    \mathbf{if}\;z \leq -4.5 \cdot 10^{+54}:\\
                    \;\;\;\;x - a\\
                    
                    \mathbf{elif}\;z \leq -9 \cdot 10^{-126}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;z \leq 7.2 \cdot 10^{-42}:\\
                    \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\
                    
                    \mathbf{elif}\;z \leq 1.15 \cdot 10^{+97}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;x - a\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if z < -4.49999999999999984e54 or 1.15000000000000003e97 < z

                      1. Initial program 90.1%

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

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

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

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

                      if -4.49999999999999984e54 < z < -9.0000000000000005e-126 or 7.2000000000000004e-42 < z < 1.15000000000000003e97

                      1. Initial program 98.7%

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(-1 \cdot y, \frac{\color{blue}{a}}{t}, x\right) \]
                        3. Step-by-step derivation
                          1. Applied rewrites74.0%

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

                          if -9.0000000000000005e-126 < z < 7.2000000000000004e-42

                          1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 6: 78.3% accurate, 0.9× speedup?

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

                            1. Initial program 96.8%

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

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

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

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

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

                              if -600 < t < 2.80000000000000023e-265

                              1. Initial program 92.7%

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

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

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

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

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

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

                                  \[\leadsto x - \left(y - z\right) \cdot \color{blue}{\frac{a}{1 - z}} \]
                                6. lower--.f6492.2

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

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

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

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

                                if 2.80000000000000023e-265 < t < 6.99999999999999987e80

                                1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\frac{z}{1 - z}, a, x\right) \]
                                8. Recombined 3 regimes into one program.
                                9. Final simplification82.6%

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

                                Alternative 7: 75.3% accurate, 0.9× speedup?

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

                                  1. Initial program 96.8%

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

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

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

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

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

                                    if -510 < t < 2.5e-265

                                    1. Initial program 92.7%

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

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

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

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

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

                                        \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                      5. lower-+.f6472.5

                                        \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                                    5. Applied rewrites72.5%

                                      \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                                    6. Step-by-step derivation
                                      1. Applied rewrites72.6%

                                        \[\leadsto x - y \cdot \color{blue}{\frac{a}{1 + t}} \]
                                      2. Taylor expanded in t around 0

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

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

                                        if 2.5e-265 < t < 6.99999999999999987e80

                                        1. Initial program 97.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(\frac{z}{1 - z}, a, x\right) \]
                                        8. Recombined 3 regimes into one program.
                                        9. Final simplification81.8%

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

                                        Alternative 8: 88.7% accurate, 0.9× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(1 + t\right) - z\\ \mathbf{if}\;z \leq -4.5 \cdot 10^{+54} \lor \neg \left(z \leq 2.6 \cdot 10^{+110}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{t\_1}, a, x\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{t\_1} \cdot a\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (let* ((t_1 (- (+ 1.0 t) z)))
                                           (if (or (<= z -4.5e+54) (not (<= z 2.6e+110)))
                                             (fma (/ z t_1) a x)
                                             (- x (* (/ y t_1) a)))))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double t_1 = (1.0 + t) - z;
                                        	double tmp;
                                        	if ((z <= -4.5e+54) || !(z <= 2.6e+110)) {
                                        		tmp = fma((z / t_1), a, x);
                                        	} else {
                                        		tmp = x - ((y / t_1) * a);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a)
                                        	t_1 = Float64(Float64(1.0 + t) - z)
                                        	tmp = 0.0
                                        	if ((z <= -4.5e+54) || !(z <= 2.6e+110))
                                        		tmp = fma(Float64(z / t_1), a, x);
                                        	else
                                        		tmp = Float64(x - Float64(Float64(y / t_1) * a));
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(1.0 + t), $MachinePrecision] - z), $MachinePrecision]}, If[Or[LessEqual[z, -4.5e+54], N[Not[LessEqual[z, 2.6e+110]], $MachinePrecision]], N[(N[(z / t$95$1), $MachinePrecision] * a + x), $MachinePrecision], N[(x - N[(N[(y / t$95$1), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(1 + t\right) - z\\
                                        \mathbf{if}\;z \leq -4.5 \cdot 10^{+54} \lor \neg \left(z \leq 2.6 \cdot 10^{+110}\right):\\
                                        \;\;\;\;\mathsf{fma}\left(\frac{z}{t\_1}, a, x\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;x - \frac{y}{t\_1} \cdot a\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if z < -4.49999999999999984e54 or 2.6e110 < z

                                          1. Initial program 89.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -4.49999999999999984e54 < z < 2.6e110

                                          1. Initial program 98.9%

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

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

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

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

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

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

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

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

                                            \[\leadsto x - \color{blue}{\frac{y}{\left(1 + t\right) - z} \cdot a} \]
                                        3. Recombined 2 regimes into one program.
                                        4. Final simplification93.0%

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

                                        Alternative 9: 90.7% accurate, 0.9× speedup?

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

                                          1. Initial program 96.8%

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

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

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

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

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

                                            if -1.3e9 < t < 7.1999999999999999e80

                                            1. Initial program 95.3%

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

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

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

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

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

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

                                                \[\leadsto x - \left(y - z\right) \cdot \color{blue}{\frac{a}{1 - z}} \]
                                              6. lower--.f6493.1

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

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

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

                                          Alternative 10: 88.5% accurate, 1.0× speedup?

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

                                            1. Initial program 92.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if -1.90000000000000008e24 < z < 2.3999999999999999e-6

                                            1. Initial program 98.7%

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

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

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

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

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

                                                \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                              5. lower-+.f6494.0

                                                \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                                            5. Applied rewrites94.0%

                                              \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                                          3. Recombined 2 regimes into one program.
                                          4. Final simplification90.9%

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

                                          Alternative 11: 86.4% accurate, 1.0× speedup?

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

                                            1. Initial program 86.4%

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

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

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

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

                                            if -4.49999999999999984e54 < z < 2.3999999999999999e-6

                                            1. Initial program 98.7%

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

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

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

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

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

                                                \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                              5. lower-+.f6492.9

                                                \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                                            5. Applied rewrites92.9%

                                              \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]

                                            if 2.3999999999999999e-6 < z

                                            1. Initial program 96.9%

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)} \]
                                            6. Step-by-step derivation
                                              1. Applied rewrites78.0%

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

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

                                            Alternative 12: 84.7% accurate, 1.0× speedup?

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

                                              1. Initial program 90.3%

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

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

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

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

                                              if -4.49999999999999984e54 < z < 2.0999999999999999e86

                                              1. Initial program 98.9%

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

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

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

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

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

                                                  \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                                5. lower-+.f6489.8

                                                  \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                                              5. Applied rewrites89.8%

                                                \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                                            3. Recombined 2 regimes into one program.
                                            4. Final simplification88.6%

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

                                            Alternative 13: 84.6% accurate, 1.0× speedup?

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

                                              1. Initial program 90.3%

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

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

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

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

                                              if -4.49999999999999984e54 < z < 2.0999999999999999e86

                                              1. Initial program 98.9%

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

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

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

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

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

                                                  \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                                5. lower-+.f6489.8

                                                  \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                                              5. Applied rewrites89.8%

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

                                                  \[\leadsto x - y \cdot \color{blue}{\frac{a}{1 + t}} \]
                                              7. Recombined 2 regimes into one program.
                                              8. Final simplification88.2%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+54} \lor \neg \left(z \leq 2.1 \cdot 10^{+86}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;x - y \cdot \frac{a}{1 + t}\\ \end{array} \]
                                              9. Add Preprocessing

                                              Alternative 14: 75.3% accurate, 1.2× speedup?

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

                                                1. Initial program 93.8%

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

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

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

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

                                                if -0.00679999999999999962 < z < 9.4000000000000006e-36

                                                1. Initial program 98.5%

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

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

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

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

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

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

                                                    \[\leadsto x - \left(y - z\right) \cdot \color{blue}{\frac{a}{1 - z}} \]
                                                  6. lower--.f6475.2

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

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

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

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

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -0.0068 \lor \neg \left(z \leq 9.4 \cdot 10^{-36}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;x - \left(y - z\right) \cdot \mathsf{fma}\left(a, z, a\right)\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 15: 73.9% accurate, 1.7× speedup?

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

                                                  1. Initial program 93.2%

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

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

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

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

                                                  if -1.3199999999999999e37 < z < 9.4000000000000006e-36

                                                  1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto x - a \cdot \color{blue}{y} \]
                                                  8. Recombined 2 regimes into one program.
                                                  9. Final simplification73.0%

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.32 \cdot 10^{+37} \lor \neg \left(z \leq 9.4 \cdot 10^{-36}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;x - a \cdot y\\ \end{array} \]
                                                  10. Add Preprocessing

                                                  Alternative 16: 67.4% accurate, 1.9× speedup?

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

                                                    1. Initial program 93.2%

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

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

                                                        \[\leadsto \color{blue}{x - a} \]
                                                    5. Applied rewrites77.7%

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

                                                    if -9.5 < z < 7.99999999999999964e-6

                                                    1. Initial program 98.6%

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

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

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

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

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

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

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

                                                          \[\leadsto 1 \cdot x \]
                                                      4. Recombined 2 regimes into one program.
                                                      5. Final simplification66.3%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9.5 \lor \neg \left(z \leq 8 \cdot 10^{-6}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                                                      6. Add Preprocessing

                                                      Alternative 17: 60.8% accurate, 8.8× speedup?

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

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

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

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

                                                        \[\leadsto \color{blue}{x - a} \]
                                                      6. Final simplification59.9%

                                                        \[\leadsto x - a \]
                                                      7. Add Preprocessing

                                                      Alternative 18: 17.0% accurate, 11.7× speedup?

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

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

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

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

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

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

                                                          \[\leadsto -a \]
                                                        2. Final simplification17.4%

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

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

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

                                                        Reproduce

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