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

Percentage Accurate: 96.9% → 99.7%
Time: 10.6s
Alternatives: 16
Speedup: 0.8×

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 16 alternatives:

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

Initial Program: 96.9% 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: 99.7% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - z\right) - -1\\ \mathbf{if}\;a \leq -1 \cdot 10^{+35} \lor \neg \left(a \leq 1.5 \cdot 10^{+21}\right):\\ \;\;\;\;x - \frac{y - z}{\frac{t\_1}{a}}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\left(y - z\right) \cdot a}{t\_1}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (- (- t z) -1.0)))
   (if (or (<= a -1e+35) (not (<= a 1.5e+21)))
     (- x (/ (- y z) (/ t_1 a)))
     (- x (/ (* (- y z) a) t_1)))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (t - z) - -1.0;
	double tmp;
	if ((a <= -1e+35) || !(a <= 1.5e+21)) {
		tmp = x - ((y - z) / (t_1 / a));
	} else {
		tmp = x - (((y - z) * a) / t_1);
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a)
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) :: t_1
    real(8) :: tmp
    t_1 = (t - z) - (-1.0d0)
    if ((a <= (-1d+35)) .or. (.not. (a <= 1.5d+21))) then
        tmp = x - ((y - z) / (t_1 / a))
    else
        tmp = x - (((y - z) * a) / t_1)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (t - z) - -1.0;
	double tmp;
	if ((a <= -1e+35) || !(a <= 1.5e+21)) {
		tmp = x - ((y - z) / (t_1 / a));
	} else {
		tmp = x - (((y - z) * a) / t_1);
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = (t - z) - -1.0
	tmp = 0
	if (a <= -1e+35) or not (a <= 1.5e+21):
		tmp = x - ((y - z) / (t_1 / a))
	else:
		tmp = x - (((y - z) * a) / t_1)
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(t - z) - -1.0)
	tmp = 0.0
	if ((a <= -1e+35) || !(a <= 1.5e+21))
		tmp = Float64(x - Float64(Float64(y - z) / Float64(t_1 / a)));
	else
		tmp = Float64(x - Float64(Float64(Float64(y - z) * a) / t_1));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (t - z) - -1.0;
	tmp = 0.0;
	if ((a <= -1e+35) || ~((a <= 1.5e+21)))
		tmp = x - ((y - z) / (t_1 / a));
	else
		tmp = x - (((y - z) * a) / t_1);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - z), $MachinePrecision] - -1.0), $MachinePrecision]}, If[Or[LessEqual[a, -1e+35], N[Not[LessEqual[a, 1.5e+21]], $MachinePrecision]], N[(x - N[(N[(y - z), $MachinePrecision] / N[(t$95$1 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(N[(y - z), $MachinePrecision] * a), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(t - z\right) - -1\\
\mathbf{if}\;a \leq -1 \cdot 10^{+35} \lor \neg \left(a \leq 1.5 \cdot 10^{+21}\right):\\
\;\;\;\;x - \frac{y - z}{\frac{t\_1}{a}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -9.9999999999999997e34 or 1.5e21 < a

    1. Initial program 99.9%

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

    if -9.9999999999999997e34 < a < 1.5e21

    1. Initial program 89.1%

      \[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. lower-/.f64N/A

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

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

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

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

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

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

        \[\leadsto x - \frac{\left(y - z\right) \cdot a}{\left(t - z\right) - \color{blue}{-1}} \]
      12. lower--.f6499.9

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

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

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

Alternative 2: 63.2% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y - z}{\frac{\left(t - z\right) - -1}{a}}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+276} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+245}\right):\\ \;\;\;\;\left(-y\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (- y z) (/ (- (- t z) -1.0) a))))
   (if (or (<= t_1 -2e+276) (not (<= t_1 2e+245))) (* (- y) a) (- x a))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (y - z) / (((t - z) - -1.0) / a);
	double tmp;
	if ((t_1 <= -2e+276) || !(t_1 <= 2e+245)) {
		tmp = -y * a;
	} else {
		tmp = x - 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) :: t_1
    real(8) :: tmp
    t_1 = (y - z) / (((t - z) - (-1.0d0)) / a)
    if ((t_1 <= (-2d+276)) .or. (.not. (t_1 <= 2d+245))) then
        tmp = -y * a
    else
        tmp = x - a
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (y - z) / (((t - z) - -1.0) / a);
	double tmp;
	if ((t_1 <= -2e+276) || !(t_1 <= 2e+245)) {
		tmp = -y * a;
	} else {
		tmp = x - a;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = (y - z) / (((t - z) - -1.0) / a)
	tmp = 0
	if (t_1 <= -2e+276) or not (t_1 <= 2e+245):
		tmp = -y * a
	else:
		tmp = x - a
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(y - z) / Float64(Float64(Float64(t - z) - -1.0) / a))
	tmp = 0.0
	if ((t_1 <= -2e+276) || !(t_1 <= 2e+245))
		tmp = Float64(Float64(-y) * a);
	else
		tmp = Float64(x - a);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (y - z) / (((t - z) - -1.0) / a);
	tmp = 0.0;
	if ((t_1 <= -2e+276) || ~((t_1 <= 2e+245)))
		tmp = -y * a;
	else
		tmp = x - a;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] - -1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e+276], N[Not[LessEqual[t$95$1, 2e+245]], $MachinePrecision]], N[((-y) * a), $MachinePrecision], N[(x - a), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y - z}{\frac{\left(t - z\right) - -1}{a}}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+276} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+245}\right):\\
\;\;\;\;\left(-y\right) \cdot a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (-.f64 y z) (/.f64 (+.f64 (-.f64 t z) #s(literal 1 binary64)) a)) < -2.0000000000000001e276 or 2.00000000000000009e245 < (/.f64 (-.f64 y z) (/.f64 (+.f64 (-.f64 t z) #s(literal 1 binary64)) a))

    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}{-1 \cdot \frac{a \cdot \left(y - z\right)}{\left(1 + t\right) - z}} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto -1 \cdot \color{blue}{\frac{a \cdot y}{1 + t}} \]
    7. Step-by-step derivation
      1. Applied rewrites69.4%

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

        \[\leadsto -1 \cdot \frac{a \cdot y}{\color{blue}{t}} \]
      3. Step-by-step derivation
        1. Applied rewrites53.5%

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

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

            \[\leadsto \left(-y\right) \cdot a \]

          if -2.0000000000000001e276 < (/.f64 (-.f64 y z) (/.f64 (+.f64 (-.f64 t z) #s(literal 1 binary64)) a)) < 2.00000000000000009e245

          1. Initial program 93.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--.f6470.3

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

            \[\leadsto \color{blue}{x - a} \]
        4. Recombined 2 regimes into one program.
        5. Final simplification68.7%

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

        Alternative 3: 92.4% accurate, 0.8× speedup?

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

          1. Initial program 85.6%

            \[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 -5.00000000000000011e63 < z < 8.19999999999999967e26

          1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 8.19999999999999967e26 < z

          1. Initial program 90.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 4: 73.5% accurate, 0.8× speedup?

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

            1. Initial program 87.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--.f6482.8

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

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

            if -3.59999999999999988e74 < z < -3.00000000000000012e-135 or 1.80000000000000008e-92 < z < 4.09999999999999967e54

            1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -3.00000000000000012e-135 < z < 1.80000000000000008e-92

              1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(-1 \cdot y, a, x\right) \]
                3. Step-by-step derivation
                  1. Applied rewrites82.1%

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

                Alternative 5: 72.4% accurate, 0.8× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \frac{a \cdot y}{t}\\ \mathbf{if}\;z \leq -3.6 \cdot 10^{+74}:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-135}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{-92}:\\ \;\;\;\;\mathsf{fma}\left(-y, a, x\right)\\ \mathbf{elif}\;z \leq 1.35 \cdot 10^{+55}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (let* ((t_1 (- x (/ (* a y) t))))
                   (if (<= z -3.6e+74)
                     (- x a)
                     (if (<= z -3e-135)
                       t_1
                       (if (<= z 1.7e-92) (fma (- y) a x) (if (<= z 1.35e+55) t_1 (- x a)))))))
                double code(double x, double y, double z, double t, double a) {
                	double t_1 = x - ((a * y) / t);
                	double tmp;
                	if (z <= -3.6e+74) {
                		tmp = x - a;
                	} else if (z <= -3e-135) {
                		tmp = t_1;
                	} else if (z <= 1.7e-92) {
                		tmp = fma(-y, a, x);
                	} else if (z <= 1.35e+55) {
                		tmp = t_1;
                	} else {
                		tmp = x - a;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a)
                	t_1 = Float64(x - Float64(Float64(a * y) / t))
                	tmp = 0.0
                	if (z <= -3.6e+74)
                		tmp = Float64(x - a);
                	elseif (z <= -3e-135)
                		tmp = t_1;
                	elseif (z <= 1.7e-92)
                		tmp = fma(Float64(-y), a, x);
                	elseif (z <= 1.35e+55)
                		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[(a * y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.6e+74], N[(x - a), $MachinePrecision], If[LessEqual[z, -3e-135], t$95$1, If[LessEqual[z, 1.7e-92], N[((-y) * a + x), $MachinePrecision], If[LessEqual[z, 1.35e+55], t$95$1, N[(x - a), $MachinePrecision]]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := x - \frac{a \cdot y}{t}\\
                \mathbf{if}\;z \leq -3.6 \cdot 10^{+74}:\\
                \;\;\;\;x - a\\
                
                \mathbf{elif}\;z \leq -3 \cdot 10^{-135}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;z \leq 1.7 \cdot 10^{-92}:\\
                \;\;\;\;\mathsf{fma}\left(-y, a, x\right)\\
                
                \mathbf{elif}\;z \leq 1.35 \cdot 10^{+55}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{else}:\\
                \;\;\;\;x - a\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -3.59999999999999988e74 or 1.34999999999999988e55 < z

                  1. Initial program 87.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--.f6482.8

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

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

                  if -3.59999999999999988e74 < z < -3.00000000000000012e-135 or 1.7000000000000001e-92 < z < 1.34999999999999988e55

                  1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

                    if -3.00000000000000012e-135 < z < 1.7000000000000001e-92

                    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(-1 \cdot y, a, x\right) \]
                      3. Step-by-step derivation
                        1. Applied rewrites82.1%

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

                      Alternative 6: 99.7% accurate, 0.8× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 7: 83.5% accurate, 0.9× speedup?

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

                        1. Initial program 84.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.7

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

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

                        if -3.59999999999999988e74 < z < 0.0389999999999999999

                        1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if 0.0389999999999999999 < z < 9.2999999999999998e210

                        1. Initial program 95.4%

                          \[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--.f6485.7

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

                          \[\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 rewrites81.3%

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

                        Alternative 8: 92.5% accurate, 0.9× speedup?

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

                          1. Initial program 85.6%

                            \[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 -1.44999999999999997e64 < z < 9.79999999999999947e26

                          1. Initial program 98.6%

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

                              \[\leadsto 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. lower-/.f64N/A

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

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

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

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

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

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

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

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

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

                          if 9.79999999999999947e26 < z

                          1. Initial program 90.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 9: 88.9% accurate, 0.9× speedup?

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

                            1. Initial program 87.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-+.f6493.9

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

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

                            if -1.15e26 < z < 4.4000000000000002e154

                            1. Initial program 98.0%

                              \[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-+.f6495.4

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

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

                            if 4.4000000000000002e154 < z

                            1. Initial program 88.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            Alternative 10: 88.5% accurate, 1.0× speedup?

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

                              1. Initial program 87.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -5.80000000000000023e68 < z < 6.8999999999999998e25

                                1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 11: 89.1% accurate, 1.0× speedup?

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

                                1. Initial program 87.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-+.f6493.9

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

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

                                if -1.10000000000000004e26 < z < 6.8999999999999998e25

                                1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if 6.8999999999999998e25 < z

                                1. Initial program 90.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 12: 84.7% accurate, 1.0× speedup?

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

                                  1. Initial program 86.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--.f6483.3

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

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

                                  if -3.59999999999999988e74 < z < 4.30000000000000013e73

                                  1. Initial program 98.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(-a, \frac{y}{\color{blue}{1 + t}}, x\right) \]
                                  8. Applied rewrites91.2%

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

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

                                Alternative 13: 74.8% accurate, 1.2× speedup?

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

                                  1. Initial program 88.5%

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

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

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

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

                                  if -9.5000000000000005e25 < z < 2.2000000000000001e-7

                                  1. Initial program 99.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(-1 \cdot y + z \cdot \left(1 - y\right), a, x\right) \]
                                    3. Step-by-step derivation
                                      1. Applied rewrites76.2%

                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(1 - y, z, -y\right), a, x\right) \]
                                    4. Recombined 2 regimes into one program.
                                    5. Final simplification76.3%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -9.5 \cdot 10^{+25} \lor \neg \left(z \leq 2.2 \cdot 10^{-7}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(1 - y, z, -y\right), a, x\right)\\ \end{array} \]
                                    6. Add Preprocessing

                                    Alternative 14: 73.1% accurate, 1.7× speedup?

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

                                      1. Initial program 88.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--.f6478.0

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

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

                                      if -3.8999999999999997e41 < z < 4.5999999999999996e25

                                      1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(-y, a, x\right) \]
                                        4. Recombined 2 regimes into one program.
                                        5. Final simplification76.2%

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

                                        Alternative 15: 60.5% 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 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--.f6463.4

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

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

                                        Alternative 16: 16.3% 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 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--.f6463.4

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

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

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

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

                                          Developer Target 1: 99.7% 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 2025016 
                                          (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))))