Data.Metrics.Snapshot:quantile from metrics-0.3.0.2

Percentage Accurate: 100.0% → 100.0%
Time: 3.1s
Alternatives: 12
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \left(t - x\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
	return x + ((y - z) * (t - x));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = x + ((y - z) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
	return x + ((y - z) * (t - x));
}
def code(x, y, z, t):
	return x + ((y - z) * (t - x))
function code(x, y, z, t)
	return Float64(x + Float64(Float64(y - z) * Float64(t - x)))
end
function tmp = code(x, y, z, t)
	tmp = x + ((y - z) * (t - x));
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 12 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: 100.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \left(t - x\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
	return x + ((y - z) * (t - x));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = x + ((y - z) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
	return x + ((y - z) * (t - x));
}
def code(x, y, z, t):
	return x + ((y - z) * (t - x))
function code(x, y, z, t)
	return Float64(x + Float64(Float64(y - z) * Float64(t - x)))
end
function tmp = code(x, y, z, t)
	tmp = x + ((y - z) * (t - x));
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 100.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \left(t - x\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (+ x (* (- y z) (- t x))))
double code(double x, double y, double z, double t) {
	return x + ((y - z) * (t - x));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = x + ((y - z) * (t - x))
end function
public static double code(double x, double y, double z, double t) {
	return x + ((y - z) * (t - x));
}
def code(x, y, z, t):
	return x + ((y - z) * (t - x))
function code(x, y, z, t)
	return Float64(x + Float64(Float64(y - z) * Float64(t - x)))
end
function tmp = code(x, y, z, t)
	tmp = x + ((y - z) * (t - x));
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \left(y - z\right) \cdot \left(t - x\right)
\end{array}
Derivation
  1. Initial program 100.0%

    \[x + \left(y - z\right) \cdot \left(t - x\right) \]
  2. Add Preprocessing

Alternative 2: 37.2% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y - z \leq -2 \cdot 10^{+241}:\\ \;\;\;\;z \cdot x\\ \mathbf{elif}\;y - z \leq -4 \cdot 10^{+27}:\\ \;\;\;\;t \cdot y\\ \mathbf{elif}\;y - z \leq 1:\\ \;\;\;\;x\\ \mathbf{elif}\;y - z \leq 2 \cdot 10^{+125}:\\ \;\;\;\;t \cdot y\\ \mathbf{elif}\;y - z \leq 5 \cdot 10^{+237}:\\ \;\;\;\;z \cdot x\\ \mathbf{else}:\\ \;\;\;\;t \cdot y\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= (- y z) -2e+241)
   (* z x)
   (if (<= (- y z) -4e+27)
     (* t y)
     (if (<= (- y z) 1.0)
       x
       (if (<= (- y z) 2e+125)
         (* t y)
         (if (<= (- y z) 5e+237) (* z x) (* t y)))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((y - z) <= -2e+241) {
		tmp = z * x;
	} else if ((y - z) <= -4e+27) {
		tmp = t * y;
	} else if ((y - z) <= 1.0) {
		tmp = x;
	} else if ((y - z) <= 2e+125) {
		tmp = t * y;
	} else if ((y - z) <= 5e+237) {
		tmp = z * x;
	} else {
		tmp = t * y;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t)
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) :: tmp
    if ((y - z) <= (-2d+241)) then
        tmp = z * x
    else if ((y - z) <= (-4d+27)) then
        tmp = t * y
    else if ((y - z) <= 1.0d0) then
        tmp = x
    else if ((y - z) <= 2d+125) then
        tmp = t * y
    else if ((y - z) <= 5d+237) then
        tmp = z * x
    else
        tmp = t * y
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((y - z) <= -2e+241) {
		tmp = z * x;
	} else if ((y - z) <= -4e+27) {
		tmp = t * y;
	} else if ((y - z) <= 1.0) {
		tmp = x;
	} else if ((y - z) <= 2e+125) {
		tmp = t * y;
	} else if ((y - z) <= 5e+237) {
		tmp = z * x;
	} else {
		tmp = t * y;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (y - z) <= -2e+241:
		tmp = z * x
	elif (y - z) <= -4e+27:
		tmp = t * y
	elif (y - z) <= 1.0:
		tmp = x
	elif (y - z) <= 2e+125:
		tmp = t * y
	elif (y - z) <= 5e+237:
		tmp = z * x
	else:
		tmp = t * y
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (Float64(y - z) <= -2e+241)
		tmp = Float64(z * x);
	elseif (Float64(y - z) <= -4e+27)
		tmp = Float64(t * y);
	elseif (Float64(y - z) <= 1.0)
		tmp = x;
	elseif (Float64(y - z) <= 2e+125)
		tmp = Float64(t * y);
	elseif (Float64(y - z) <= 5e+237)
		tmp = Float64(z * x);
	else
		tmp = Float64(t * y);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((y - z) <= -2e+241)
		tmp = z * x;
	elseif ((y - z) <= -4e+27)
		tmp = t * y;
	elseif ((y - z) <= 1.0)
		tmp = x;
	elseif ((y - z) <= 2e+125)
		tmp = t * y;
	elseif ((y - z) <= 5e+237)
		tmp = z * x;
	else
		tmp = t * y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[N[(y - z), $MachinePrecision], -2e+241], N[(z * x), $MachinePrecision], If[LessEqual[N[(y - z), $MachinePrecision], -4e+27], N[(t * y), $MachinePrecision], If[LessEqual[N[(y - z), $MachinePrecision], 1.0], x, If[LessEqual[N[(y - z), $MachinePrecision], 2e+125], N[(t * y), $MachinePrecision], If[LessEqual[N[(y - z), $MachinePrecision], 5e+237], N[(z * x), $MachinePrecision], N[(t * y), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y - z \leq -2 \cdot 10^{+241}:\\
\;\;\;\;z \cdot x\\

\mathbf{elif}\;y - z \leq -4 \cdot 10^{+27}:\\
\;\;\;\;t \cdot y\\

\mathbf{elif}\;y - z \leq 1:\\
\;\;\;\;x\\

\mathbf{elif}\;y - z \leq 2 \cdot 10^{+125}:\\
\;\;\;\;t \cdot y\\

\mathbf{elif}\;y - z \leq 5 \cdot 10^{+237}:\\
\;\;\;\;z \cdot x\\

\mathbf{else}:\\
\;\;\;\;t \cdot y\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (-.f64 y z) < -2.0000000000000001e241 or 1.9999999999999998e125 < (-.f64 y z) < 5.0000000000000002e237

    1. Initial program 100.0%

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

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

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

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

        \[\leadsto \left(1 - \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(y - z\right)\right) \cdot x \]
      4. metadata-evalN/A

        \[\leadsto \left(1 - 1 \cdot \left(y - z\right)\right) \cdot x \]
      5. *-lft-identityN/A

        \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
      6. lower--.f64N/A

        \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
      7. lift--.f6453.5

        \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
    4. Applied rewrites53.5%

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

      \[\leadsto z \cdot x \]
    6. Step-by-step derivation
      1. Applied rewrites28.8%

        \[\leadsto z \cdot x \]

      if -2.0000000000000001e241 < (-.f64 y z) < -4.0000000000000001e27 or 1 < (-.f64 y z) < 1.9999999999999998e125 or 5.0000000000000002e237 < (-.f64 y z)

      1. Initial program 100.0%

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

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

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

          \[\leadsto \left(t - x\right) \cdot y + x \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{y}, x\right) \]
        4. lift--.f6453.6

          \[\leadsto \mathsf{fma}\left(t - x, y, x\right) \]
      4. Applied rewrites53.6%

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

        \[\leadsto t \cdot \color{blue}{y} \]
      6. Step-by-step derivation
        1. lower-*.f6428.1

          \[\leadsto t \cdot y \]
      7. Applied rewrites28.1%

        \[\leadsto t \cdot \color{blue}{y} \]

      if -4.0000000000000001e27 < (-.f64 y z) < 1

      1. Initial program 100.0%

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

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

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

          \[\leadsto \left(t - x\right) \cdot y + x \]
        3. lower-fma.f64N/A

          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{y}, x\right) \]
        4. lift--.f6479.3

          \[\leadsto \mathsf{fma}\left(t - x, y, x\right) \]
      4. Applied rewrites79.3%

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

        \[\leadsto x \]
      6. Step-by-step derivation
        1. Applied rewrites60.0%

          \[\leadsto x \]
      7. Recombined 3 regimes into one program.
      8. Add Preprocessing

      Alternative 3: 83.4% accurate, 0.5× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-z\right) \cdot \left(t - x\right)\\ \mathbf{if}\;z \leq -3.3 \cdot 10^{+108}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.45 \cdot 10^{-89}:\\ \;\;\;\;\mathsf{fma}\left(y - z, t, x\right)\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+43}:\\ \;\;\;\;\mathsf{fma}\left(t - x, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (let* ((t_1 (* (- z) (- t x))))
         (if (<= z -3.3e+108)
           t_1
           (if (<= z -2.45e-89)
             (fma (- y z) t x)
             (if (<= z 9.5e+43) (fma (- t x) y x) t_1)))))
      double code(double x, double y, double z, double t) {
      	double t_1 = -z * (t - x);
      	double tmp;
      	if (z <= -3.3e+108) {
      		tmp = t_1;
      	} else if (z <= -2.45e-89) {
      		tmp = fma((y - z), t, x);
      	} else if (z <= 9.5e+43) {
      		tmp = fma((t - x), y, x);
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t)
      	t_1 = Float64(Float64(-z) * Float64(t - x))
      	tmp = 0.0
      	if (z <= -3.3e+108)
      		tmp = t_1;
      	elseif (z <= -2.45e-89)
      		tmp = fma(Float64(y - z), t, x);
      	elseif (z <= 9.5e+43)
      		tmp = fma(Float64(t - x), y, x);
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-z) * N[(t - x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e+108], t$95$1, If[LessEqual[z, -2.45e-89], N[(N[(y - z), $MachinePrecision] * t + x), $MachinePrecision], If[LessEqual[z, 9.5e+43], N[(N[(t - x), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \left(-z\right) \cdot \left(t - x\right)\\
      \mathbf{if}\;z \leq -3.3 \cdot 10^{+108}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq -2.45 \cdot 10^{-89}:\\
      \;\;\;\;\mathsf{fma}\left(y - z, t, x\right)\\
      
      \mathbf{elif}\;z \leq 9.5 \cdot 10^{+43}:\\
      \;\;\;\;\mathsf{fma}\left(t - x, y, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -3.30000000000000019e108 or 9.5000000000000004e43 < z

        1. Initial program 100.0%

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

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

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

            \[\leadsto \left(-1 \cdot z\right) \cdot \color{blue}{\left(t - x\right)} \]
          3. mul-1-negN/A

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

            \[\leadsto \left(-z\right) \cdot \left(\color{blue}{t} - x\right) \]
          5. lift--.f6484.7

            \[\leadsto \left(-z\right) \cdot \left(t - \color{blue}{x}\right) \]
        4. Applied rewrites84.7%

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

        if -3.30000000000000019e108 < z < -2.45e-89

        1. Initial program 100.0%

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, t, x\right)} \]
            6. lift--.f6462.1

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

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

          if -2.45e-89 < z < 9.5000000000000004e43

          1. Initial program 100.0%

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

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

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

              \[\leadsto \left(t - x\right) \cdot y + x \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{y}, x\right) \]
            4. lift--.f6489.6

              \[\leadsto \mathsf{fma}\left(t - x, y, x\right) \]
          4. Applied rewrites89.6%

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

        Alternative 4: 64.0% accurate, 0.6× speedup?

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

          1. Initial program 100.0%

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

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

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

              \[\leadsto \left(y - z\right) \cdot \color{blue}{t} \]
            3. lift--.f6474.8

              \[\leadsto \left(y - z\right) \cdot t \]
          4. Applied rewrites74.8%

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

          if -0.00449999999999999966 < t < -1.65e-177

          1. Initial program 100.0%

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

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

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

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

              \[\leadsto \left(1 - \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(y - z\right)\right) \cdot x \]
            4. metadata-evalN/A

              \[\leadsto \left(1 - 1 \cdot \left(y - z\right)\right) \cdot x \]
            5. *-lft-identityN/A

              \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
            6. lower--.f64N/A

              \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
            7. lift--.f6468.9

              \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
          4. Applied rewrites68.9%

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

            \[\leadsto \left(1 + z\right) \cdot x \]
          6. Step-by-step derivation
            1. lower-+.f6446.2

              \[\leadsto \left(1 + z\right) \cdot x \]
          7. Applied rewrites46.2%

            \[\leadsto \left(1 + z\right) \cdot x \]

          if -1.65e-177 < t < 18

          1. Initial program 100.0%

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

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

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

              \[\leadsto \left(t - x\right) \cdot y + x \]
            3. lower-fma.f64N/A

              \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{y}, x\right) \]
            4. lift--.f6464.3

              \[\leadsto \mathsf{fma}\left(t - x, y, x\right) \]
          4. Applied rewrites64.3%

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

            \[\leadsto \mathsf{fma}\left(-1 \cdot x, y, x\right) \]
          6. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(x\right), y, x\right) \]
            2. lift-neg.f6456.4

              \[\leadsto \mathsf{fma}\left(-x, y, x\right) \]
          7. Applied rewrites56.4%

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

        Alternative 5: 66.4% accurate, 0.6× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) \cdot y\\ \mathbf{if}\;y \leq -1.7 \cdot 10^{+25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 3.8 \cdot 10^{-105}:\\ \;\;\;\;\left(1 + z\right) \cdot x\\ \mathbf{elif}\;y \leq 9.5 \cdot 10^{+21}:\\ \;\;\;\;\left(-z\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (let* ((t_1 (* (- t x) y)))
           (if (<= y -1.7e+25)
             t_1
             (if (<= y 3.8e-105)
               (* (+ 1.0 z) x)
               (if (<= y 9.5e+21) (* (- z) t) t_1)))))
        double code(double x, double y, double z, double t) {
        	double t_1 = (t - x) * y;
        	double tmp;
        	if (y <= -1.7e+25) {
        		tmp = t_1;
        	} else if (y <= 3.8e-105) {
        		tmp = (1.0 + z) * x;
        	} else if (y <= 9.5e+21) {
        		tmp = -z * t;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        module fmin_fmax_functions
            implicit none
            private
            public fmax
            public fmin
        
            interface fmax
                module procedure fmax88
                module procedure fmax44
                module procedure fmax84
                module procedure fmax48
            end interface
            interface fmin
                module procedure fmin88
                module procedure fmin44
                module procedure fmin84
                module procedure fmin48
            end interface
        contains
            real(8) function fmax88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(4) function fmax44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(8) function fmax84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmax48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
            end function
            real(8) function fmin88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(4) function fmin44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(8) function fmin84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmin48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
            end function
        end module
        
        real(8) function code(x, y, z, t)
        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) :: t_1
            real(8) :: tmp
            t_1 = (t - x) * y
            if (y <= (-1.7d+25)) then
                tmp = t_1
            else if (y <= 3.8d-105) then
                tmp = (1.0d0 + z) * x
            else if (y <= 9.5d+21) then
                tmp = -z * t
            else
                tmp = t_1
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t) {
        	double t_1 = (t - x) * y;
        	double tmp;
        	if (y <= -1.7e+25) {
        		tmp = t_1;
        	} else if (y <= 3.8e-105) {
        		tmp = (1.0 + z) * x;
        	} else if (y <= 9.5e+21) {
        		tmp = -z * t;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t):
        	t_1 = (t - x) * y
        	tmp = 0
        	if y <= -1.7e+25:
        		tmp = t_1
        	elif y <= 3.8e-105:
        		tmp = (1.0 + z) * x
        	elif y <= 9.5e+21:
        		tmp = -z * t
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t)
        	t_1 = Float64(Float64(t - x) * y)
        	tmp = 0.0
        	if (y <= -1.7e+25)
        		tmp = t_1;
        	elseif (y <= 3.8e-105)
        		tmp = Float64(Float64(1.0 + z) * x);
        	elseif (y <= 9.5e+21)
        		tmp = Float64(Float64(-z) * t);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t)
        	t_1 = (t - x) * y;
        	tmp = 0.0;
        	if (y <= -1.7e+25)
        		tmp = t_1;
        	elseif (y <= 3.8e-105)
        		tmp = (1.0 + z) * x;
        	elseif (y <= 9.5e+21)
        		tmp = -z * t;
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -1.7e+25], t$95$1, If[LessEqual[y, 3.8e-105], N[(N[(1.0 + z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 9.5e+21], N[((-z) * t), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \left(t - x\right) \cdot y\\
        \mathbf{if}\;y \leq -1.7 \cdot 10^{+25}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq 3.8 \cdot 10^{-105}:\\
        \;\;\;\;\left(1 + z\right) \cdot x\\
        
        \mathbf{elif}\;y \leq 9.5 \cdot 10^{+21}:\\
        \;\;\;\;\left(-z\right) \cdot t\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if y < -1.69999999999999992e25 or 9.500000000000001e21 < y

          1. Initial program 100.0%

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

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

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

              \[\leadsto \left(t - x\right) \cdot \color{blue}{y} \]
            3. lift--.f6481.5

              \[\leadsto \left(t - x\right) \cdot y \]
          4. Applied rewrites81.5%

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

          if -1.69999999999999992e25 < y < 3.7999999999999998e-105

          1. Initial program 100.0%

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

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

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

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

              \[\leadsto \left(1 - \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(y - z\right)\right) \cdot x \]
            4. metadata-evalN/A

              \[\leadsto \left(1 - 1 \cdot \left(y - z\right)\right) \cdot x \]
            5. *-lft-identityN/A

              \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
            6. lower--.f64N/A

              \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
            7. lift--.f6460.0

              \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
          4. Applied rewrites60.0%

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

            \[\leadsto \left(1 + z\right) \cdot x \]
          6. Step-by-step derivation
            1. lower-+.f6458.8

              \[\leadsto \left(1 + z\right) \cdot x \]
          7. Applied rewrites58.8%

            \[\leadsto \left(1 + z\right) \cdot x \]

          if 3.7999999999999998e-105 < y < 9.500000000000001e21

          1. Initial program 100.0%

            \[x + \left(y - z\right) \cdot \left(t - x\right) \]
          2. Step-by-step derivation
            1. lift-+.f64N/A

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

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

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

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

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

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

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

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

              \[\leadsto \left(y - z\right) \cdot \color{blue}{\left(-1 \cdot x + t\right)} + x \]
            10. distribute-rgt-outN/A

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

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

              \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(y - z\right)\right) + \left(t \cdot \left(y - z\right) + x\right)} \]
            13. mul-1-negN/A

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

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - z\right) \cdot x}\right)\right) + \left(t \cdot \left(y - z\right) + x\right) \]
            15. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(y - z\right) \cdot \color{blue}{t} \]
            3. lift--.f6446.8

              \[\leadsto \left(y - z\right) \cdot t \]
          6. Applied rewrites46.8%

            \[\leadsto \color{blue}{\left(y - z\right) \cdot t} \]
          7. Taylor expanded in y around 0

            \[\leadsto \left(-1 \cdot z\right) \cdot t \]
          8. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \left(\mathsf{neg}\left(z\right)\right) \cdot t \]
            2. lower-neg.f6430.2

              \[\leadsto \left(-z\right) \cdot t \]
          9. Applied rewrites30.2%

            \[\leadsto \left(-z\right) \cdot t \]
        3. Recombined 3 regimes into one program.
        4. Add Preprocessing

        Alternative 6: 76.7% accurate, 0.7× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) \cdot y\\ \mathbf{if}\;y \leq -7 \cdot 10^{+106}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 9.5 \cdot 10^{+23}:\\ \;\;\;\;\mathsf{fma}\left(y - z, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (let* ((t_1 (* (- t x) y)))
           (if (<= y -7e+106) t_1 (if (<= y 9.5e+23) (fma (- y z) t x) t_1))))
        double code(double x, double y, double z, double t) {
        	double t_1 = (t - x) * y;
        	double tmp;
        	if (y <= -7e+106) {
        		tmp = t_1;
        	} else if (y <= 9.5e+23) {
        		tmp = fma((y - z), t, x);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t)
        	t_1 = Float64(Float64(t - x) * y)
        	tmp = 0.0
        	if (y <= -7e+106)
        		tmp = t_1;
        	elseif (y <= 9.5e+23)
        		tmp = fma(Float64(y - z), t, x);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -7e+106], t$95$1, If[LessEqual[y, 9.5e+23], N[(N[(y - z), $MachinePrecision] * t + x), $MachinePrecision], t$95$1]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \left(t - x\right) \cdot y\\
        \mathbf{if}\;y \leq -7 \cdot 10^{+106}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;y \leq 9.5 \cdot 10^{+23}:\\
        \;\;\;\;\mathsf{fma}\left(y - z, t, x\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if y < -6.99999999999999962e106 or 9.50000000000000038e23 < y

          1. Initial program 100.0%

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

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

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

              \[\leadsto \left(t - x\right) \cdot \color{blue}{y} \]
            3. lift--.f6484.1

              \[\leadsto \left(t - x\right) \cdot y \]
          4. Applied rewrites84.1%

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

          if -6.99999999999999962e106 < y < 9.50000000000000038e23

          1. Initial program 100.0%

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{y - z}, t, x\right) \]
            3. Applied rewrites71.8%

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

          Alternative 7: 71.9% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t - x\right) \cdot y\\ \mathbf{if}\;y \leq -1.1 \cdot 10^{+40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 9.5 \cdot 10^{+21}:\\ \;\;\;\;\mathsf{fma}\left(-z, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t)
           :precision binary64
           (let* ((t_1 (* (- t x) y)))
             (if (<= y -1.1e+40) t_1 (if (<= y 9.5e+21) (fma (- z) t x) t_1))))
          double code(double x, double y, double z, double t) {
          	double t_1 = (t - x) * y;
          	double tmp;
          	if (y <= -1.1e+40) {
          		tmp = t_1;
          	} else if (y <= 9.5e+21) {
          		tmp = fma(-z, t, x);
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t)
          	t_1 = Float64(Float64(t - x) * y)
          	tmp = 0.0
          	if (y <= -1.1e+40)
          		tmp = t_1;
          	elseif (y <= 9.5e+21)
          		tmp = fma(Float64(-z), t, x);
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -1.1e+40], t$95$1, If[LessEqual[y, 9.5e+21], N[((-z) * t + x), $MachinePrecision], t$95$1]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(t - x\right) \cdot y\\
          \mathbf{if}\;y \leq -1.1 \cdot 10^{+40}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;y \leq 9.5 \cdot 10^{+21}:\\
          \;\;\;\;\mathsf{fma}\left(-z, t, x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if y < -1.0999999999999999e40 or 9.500000000000001e21 < y

            1. Initial program 100.0%

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

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

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

                \[\leadsto \left(t - x\right) \cdot \color{blue}{y} \]
              3. lift--.f6482.0

                \[\leadsto \left(t - x\right) \cdot y \]
            4. Applied rewrites82.0%

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

            if -1.0999999999999999e40 < y < 9.500000000000001e21

            1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot z}, t, x\right) \]
              5. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(z\right), t, x\right) \]
                2. lower-neg.f6463.7

                  \[\leadsto \mathsf{fma}\left(-z, t, x\right) \]
              6. Applied rewrites63.7%

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

            Alternative 8: 63.0% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y - z\right) \cdot t\\ \mathbf{if}\;t \leq -0.0045:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{-62}:\\ \;\;\;\;\left(1 + z\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t)
             :precision binary64
             (let* ((t_1 (* (- y z) t)))
               (if (<= t -0.0045) t_1 (if (<= t 3.6e-62) (* (+ 1.0 z) x) t_1))))
            double code(double x, double y, double z, double t) {
            	double t_1 = (y - z) * t;
            	double tmp;
            	if (t <= -0.0045) {
            		tmp = t_1;
            	} else if (t <= 3.6e-62) {
            		tmp = (1.0 + z) * x;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            module fmin_fmax_functions
                implicit none
                private
                public fmax
                public fmin
            
                interface fmax
                    module procedure fmax88
                    module procedure fmax44
                    module procedure fmax84
                    module procedure fmax48
                end interface
                interface fmin
                    module procedure fmin88
                    module procedure fmin44
                    module procedure fmin84
                    module procedure fmin48
                end interface
            contains
                real(8) function fmax88(x, y) result (res)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                end function
                real(4) function fmax44(x, y) result (res)
                    real(4), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                end function
                real(8) function fmax84(x, y) result(res)
                    real(8), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                end function
                real(8) function fmax48(x, y) result(res)
                    real(4), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                end function
                real(8) function fmin88(x, y) result (res)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                end function
                real(4) function fmin44(x, y) result (res)
                    real(4), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                end function
                real(8) function fmin84(x, y) result(res)
                    real(8), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                end function
                real(8) function fmin48(x, y) result(res)
                    real(4), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                end function
            end module
            
            real(8) function code(x, y, z, t)
            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) :: t_1
                real(8) :: tmp
                t_1 = (y - z) * t
                if (t <= (-0.0045d0)) then
                    tmp = t_1
                else if (t <= 3.6d-62) then
                    tmp = (1.0d0 + z) * x
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t) {
            	double t_1 = (y - z) * t;
            	double tmp;
            	if (t <= -0.0045) {
            		tmp = t_1;
            	} else if (t <= 3.6e-62) {
            		tmp = (1.0 + z) * x;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t):
            	t_1 = (y - z) * t
            	tmp = 0
            	if t <= -0.0045:
            		tmp = t_1
            	elif t <= 3.6e-62:
            		tmp = (1.0 + z) * x
            	else:
            		tmp = t_1
            	return tmp
            
            function code(x, y, z, t)
            	t_1 = Float64(Float64(y - z) * t)
            	tmp = 0.0
            	if (t <= -0.0045)
            		tmp = t_1;
            	elseif (t <= 3.6e-62)
            		tmp = Float64(Float64(1.0 + z) * x);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t)
            	t_1 = (y - z) * t;
            	tmp = 0.0;
            	if (t <= -0.0045)
            		tmp = t_1;
            	elseif (t <= 3.6e-62)
            		tmp = (1.0 + z) * x;
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -0.0045], t$95$1, If[LessEqual[t, 3.6e-62], N[(N[(1.0 + z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(y - z\right) \cdot t\\
            \mathbf{if}\;t \leq -0.0045:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;t \leq 3.6 \cdot 10^{-62}:\\
            \;\;\;\;\left(1 + z\right) \cdot x\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if t < -0.00449999999999999966 or 3.6e-62 < t

              1. Initial program 100.0%

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

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

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

                  \[\leadsto \left(y - z\right) \cdot \color{blue}{t} \]
                3. lift--.f6471.1

                  \[\leadsto \left(y - z\right) \cdot t \]
              4. Applied rewrites71.1%

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

              if -0.00449999999999999966 < t < 3.6e-62

              1. Initial program 100.0%

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

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

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

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

                  \[\leadsto \left(1 - \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(y - z\right)\right) \cdot x \]
                4. metadata-evalN/A

                  \[\leadsto \left(1 - 1 \cdot \left(y - z\right)\right) \cdot x \]
                5. *-lft-identityN/A

                  \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
                6. lower--.f64N/A

                  \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
                7. lift--.f6481.6

                  \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
              4. Applied rewrites81.6%

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

                \[\leadsto \left(1 + z\right) \cdot x \]
              6. Step-by-step derivation
                1. lower-+.f6453.5

                  \[\leadsto \left(1 + z\right) \cdot x \]
              7. Applied rewrites53.5%

                \[\leadsto \left(1 + z\right) \cdot x \]
            3. Recombined 2 regimes into one program.
            4. Add Preprocessing

            Alternative 9: 53.2% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-z\right) \cdot t\\ \mathbf{if}\;z \leq -3.3 \cdot 10^{+108}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.8 \cdot 10^{+42}:\\ \;\;\;\;\mathsf{fma}\left(y, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t)
             :precision binary64
             (let* ((t_1 (* (- z) t)))
               (if (<= z -3.3e+108) t_1 (if (<= z 4.8e+42) (fma y t x) t_1))))
            double code(double x, double y, double z, double t) {
            	double t_1 = -z * t;
            	double tmp;
            	if (z <= -3.3e+108) {
            		tmp = t_1;
            	} else if (z <= 4.8e+42) {
            		tmp = fma(y, t, x);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t)
            	t_1 = Float64(Float64(-z) * t)
            	tmp = 0.0
            	if (z <= -3.3e+108)
            		tmp = t_1;
            	elseif (z <= 4.8e+42)
            		tmp = fma(y, t, x);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_] := Block[{t$95$1 = N[((-z) * t), $MachinePrecision]}, If[LessEqual[z, -3.3e+108], t$95$1, If[LessEqual[z, 4.8e+42], N[(y * t + x), $MachinePrecision], t$95$1]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(-z\right) \cdot t\\
            \mathbf{if}\;z \leq -3.3 \cdot 10^{+108}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq 4.8 \cdot 10^{+42}:\\
            \;\;\;\;\mathsf{fma}\left(y, t, x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if z < -3.30000000000000019e108 or 4.7999999999999997e42 < z

              1. Initial program 100.0%

                \[x + \left(y - z\right) \cdot \left(t - x\right) \]
              2. Step-by-step derivation
                1. lift-+.f64N/A

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

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

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

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

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

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

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

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

                  \[\leadsto \left(y - z\right) \cdot \color{blue}{\left(-1 \cdot x + t\right)} + x \]
                10. distribute-rgt-outN/A

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

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

                  \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(y - z\right)\right) + \left(t \cdot \left(y - z\right) + x\right)} \]
                13. mul-1-negN/A

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

                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(y - z\right) \cdot x}\right)\right) + \left(t \cdot \left(y - z\right) + x\right) \]
                15. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(y - z, -x, \color{blue}{\mathsf{fma}\left(y - z, t, x\right)}\right) \]
              3. Applied rewrites97.0%

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

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

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

                  \[\leadsto \left(y - z\right) \cdot \color{blue}{t} \]
                3. lift--.f6453.1

                  \[\leadsto \left(y - z\right) \cdot t \]
              6. Applied rewrites53.1%

                \[\leadsto \color{blue}{\left(y - z\right) \cdot t} \]
              7. Taylor expanded in y around 0

                \[\leadsto \left(-1 \cdot z\right) \cdot t \]
              8. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \left(\mathsf{neg}\left(z\right)\right) \cdot t \]
                2. lower-neg.f6445.1

                  \[\leadsto \left(-z\right) \cdot t \]
              9. Applied rewrites45.1%

                \[\leadsto \left(-z\right) \cdot t \]

              if -3.30000000000000019e108 < z < 4.7999999999999997e42

              1. Initial program 100.0%

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

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

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

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

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

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

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, t, x\right)} \]
                  6. lift--.f6470.4

                    \[\leadsto \mathsf{fma}\left(\color{blue}{y - z}, t, x\right) \]
                3. Applied rewrites70.4%

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

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

                    \[\leadsto \mathsf{fma}\left(\color{blue}{y}, t, x\right) \]
                6. Recombined 2 regimes into one program.
                7. Add Preprocessing

                Alternative 10: 53.1% accurate, 0.8× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.2 \cdot 10^{+130}:\\ \;\;\;\;z \cdot x\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+73}:\\ \;\;\;\;\mathsf{fma}\left(y, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot x\\ \end{array} \end{array} \]
                (FPCore (x y z t)
                 :precision binary64
                 (if (<= z -3.2e+130) (* z x) (if (<= z 2.2e+73) (fma y t x) (* z x))))
                double code(double x, double y, double z, double t) {
                	double tmp;
                	if (z <= -3.2e+130) {
                		tmp = z * x;
                	} else if (z <= 2.2e+73) {
                		tmp = fma(y, t, x);
                	} else {
                		tmp = z * x;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t)
                	tmp = 0.0
                	if (z <= -3.2e+130)
                		tmp = Float64(z * x);
                	elseif (z <= 2.2e+73)
                		tmp = fma(y, t, x);
                	else
                		tmp = Float64(z * x);
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_] := If[LessEqual[z, -3.2e+130], N[(z * x), $MachinePrecision], If[LessEqual[z, 2.2e+73], N[(y * t + x), $MachinePrecision], N[(z * x), $MachinePrecision]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;z \leq -3.2 \cdot 10^{+130}:\\
                \;\;\;\;z \cdot x\\
                
                \mathbf{elif}\;z \leq 2.2 \cdot 10^{+73}:\\
                \;\;\;\;\mathsf{fma}\left(y, t, x\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;z \cdot x\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if z < -3.2e130 or 2.2e73 < z

                  1. Initial program 100.0%

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

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

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

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

                      \[\leadsto \left(1 - \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(y - z\right)\right) \cdot x \]
                    4. metadata-evalN/A

                      \[\leadsto \left(1 - 1 \cdot \left(y - z\right)\right) \cdot x \]
                    5. *-lft-identityN/A

                      \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
                    6. lower--.f64N/A

                      \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
                    7. lift--.f6454.3

                      \[\leadsto \left(1 - \left(y - z\right)\right) \cdot x \]
                  4. Applied rewrites54.3%

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

                    \[\leadsto z \cdot x \]
                  6. Step-by-step derivation
                    1. Applied rewrites47.9%

                      \[\leadsto z \cdot x \]

                    if -3.2e130 < z < 2.2e73

                    1. Initial program 100.0%

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

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, t, x\right)} \]
                        6. lift--.f6469.1

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

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

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

                          \[\leadsto \mathsf{fma}\left(\color{blue}{y}, t, x\right) \]
                      6. Recombined 2 regimes into one program.
                      7. Add Preprocessing

                      Alternative 11: 37.5% accurate, 0.8× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.32 \cdot 10^{-8}:\\ \;\;\;\;t \cdot y\\ \mathbf{elif}\;y \leq 1.2 \cdot 10^{-57}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t \cdot y\\ \end{array} \end{array} \]
                      (FPCore (x y z t)
                       :precision binary64
                       (if (<= y -1.32e-8) (* t y) (if (<= y 1.2e-57) x (* t y))))
                      double code(double x, double y, double z, double t) {
                      	double tmp;
                      	if (y <= -1.32e-8) {
                      		tmp = t * y;
                      	} else if (y <= 1.2e-57) {
                      		tmp = x;
                      	} else {
                      		tmp = t * y;
                      	}
                      	return tmp;
                      }
                      
                      module fmin_fmax_functions
                          implicit none
                          private
                          public fmax
                          public fmin
                      
                          interface fmax
                              module procedure fmax88
                              module procedure fmax44
                              module procedure fmax84
                              module procedure fmax48
                          end interface
                          interface fmin
                              module procedure fmin88
                              module procedure fmin44
                              module procedure fmin84
                              module procedure fmin48
                          end interface
                      contains
                          real(8) function fmax88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmax44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmax84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmax48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                          end function
                          real(8) function fmin88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmin44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmin84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmin48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                          end function
                      end module
                      
                      real(8) function code(x, y, z, t)
                      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) :: tmp
                          if (y <= (-1.32d-8)) then
                              tmp = t * y
                          else if (y <= 1.2d-57) then
                              tmp = x
                          else
                              tmp = t * y
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t) {
                      	double tmp;
                      	if (y <= -1.32e-8) {
                      		tmp = t * y;
                      	} else if (y <= 1.2e-57) {
                      		tmp = x;
                      	} else {
                      		tmp = t * y;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t):
                      	tmp = 0
                      	if y <= -1.32e-8:
                      		tmp = t * y
                      	elif y <= 1.2e-57:
                      		tmp = x
                      	else:
                      		tmp = t * y
                      	return tmp
                      
                      function code(x, y, z, t)
                      	tmp = 0.0
                      	if (y <= -1.32e-8)
                      		tmp = Float64(t * y);
                      	elseif (y <= 1.2e-57)
                      		tmp = x;
                      	else
                      		tmp = Float64(t * y);
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t)
                      	tmp = 0.0;
                      	if (y <= -1.32e-8)
                      		tmp = t * y;
                      	elseif (y <= 1.2e-57)
                      		tmp = x;
                      	else
                      		tmp = t * y;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_] := If[LessEqual[y, -1.32e-8], N[(t * y), $MachinePrecision], If[LessEqual[y, 1.2e-57], x, N[(t * y), $MachinePrecision]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;y \leq -1.32 \cdot 10^{-8}:\\
                      \;\;\;\;t \cdot y\\
                      
                      \mathbf{elif}\;y \leq 1.2 \cdot 10^{-57}:\\
                      \;\;\;\;x\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t \cdot y\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if y < -1.32000000000000007e-8 or 1.20000000000000003e-57 < y

                        1. Initial program 100.0%

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

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

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

                            \[\leadsto \left(t - x\right) \cdot y + x \]
                          3. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{y}, x\right) \]
                          4. lift--.f6476.4

                            \[\leadsto \mathsf{fma}\left(t - x, y, x\right) \]
                        4. Applied rewrites76.4%

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

                          \[\leadsto t \cdot \color{blue}{y} \]
                        6. Step-by-step derivation
                          1. lower-*.f6439.3

                            \[\leadsto t \cdot y \]
                        7. Applied rewrites39.3%

                          \[\leadsto t \cdot \color{blue}{y} \]

                        if -1.32000000000000007e-8 < y < 1.20000000000000003e-57

                        1. Initial program 100.0%

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

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

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

                            \[\leadsto \left(t - x\right) \cdot y + x \]
                          3. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{y}, x\right) \]
                          4. lift--.f6442.5

                            \[\leadsto \mathsf{fma}\left(t - x, y, x\right) \]
                        4. Applied rewrites42.5%

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

                          \[\leadsto x \]
                        6. Step-by-step derivation
                          1. Applied rewrites35.3%

                            \[\leadsto x \]
                        7. Recombined 2 regimes into one program.
                        8. Add Preprocessing

                        Alternative 12: 18.8% accurate, 15.0× speedup?

                        \[\begin{array}{l} \\ x \end{array} \]
                        (FPCore (x y z t) :precision binary64 x)
                        double code(double x, double y, double z, double t) {
                        	return x;
                        }
                        
                        module fmin_fmax_functions
                            implicit none
                            private
                            public fmax
                            public fmin
                        
                            interface fmax
                                module procedure fmax88
                                module procedure fmax44
                                module procedure fmax84
                                module procedure fmax48
                            end interface
                            interface fmin
                                module procedure fmin88
                                module procedure fmin44
                                module procedure fmin84
                                module procedure fmin48
                            end interface
                        contains
                            real(8) function fmax88(x, y) result (res)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                            end function
                            real(4) function fmax44(x, y) result (res)
                                real(4), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                            end function
                            real(8) function fmax84(x, y) result(res)
                                real(8), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                            end function
                            real(8) function fmax48(x, y) result(res)
                                real(4), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                            end function
                            real(8) function fmin88(x, y) result (res)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                            end function
                            real(4) function fmin44(x, y) result (res)
                                real(4), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                            end function
                            real(8) function fmin84(x, y) result(res)
                                real(8), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                            end function
                            real(8) function fmin48(x, y) result(res)
                                real(4), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                            end function
                        end module
                        
                        real(8) function code(x, y, z, t)
                        use fmin_fmax_functions
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8), intent (in) :: z
                            real(8), intent (in) :: t
                            code = x
                        end function
                        
                        public static double code(double x, double y, double z, double t) {
                        	return x;
                        }
                        
                        def code(x, y, z, t):
                        	return x
                        
                        function code(x, y, z, t)
                        	return x
                        end
                        
                        function tmp = code(x, y, z, t)
                        	tmp = x;
                        end
                        
                        code[x_, y_, z_, t_] := x
                        
                        \begin{array}{l}
                        
                        \\
                        x
                        \end{array}
                        
                        Derivation
                        1. Initial program 100.0%

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

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

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

                            \[\leadsto \left(t - x\right) \cdot y + x \]
                          3. lower-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{y}, x\right) \]
                          4. lift--.f6460.9

                            \[\leadsto \mathsf{fma}\left(t - x, y, x\right) \]
                        4. Applied rewrites60.9%

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

                          \[\leadsto x \]
                        6. Step-by-step derivation
                          1. Applied rewrites18.8%

                            \[\leadsto x \]
                          2. Add Preprocessing

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

                          \[\begin{array}{l} \\ x + \left(t \cdot \left(y - z\right) + \left(-x\right) \cdot \left(y - z\right)\right) \end{array} \]
                          (FPCore (x y z t)
                           :precision binary64
                           (+ x (+ (* t (- y z)) (* (- x) (- y z)))))
                          double code(double x, double y, double z, double t) {
                          	return x + ((t * (y - z)) + (-x * (y - z)));
                          }
                          
                          module fmin_fmax_functions
                              implicit none
                              private
                              public fmax
                              public fmin
                          
                              interface fmax
                                  module procedure fmax88
                                  module procedure fmax44
                                  module procedure fmax84
                                  module procedure fmax48
                              end interface
                              interface fmin
                                  module procedure fmin88
                                  module procedure fmin44
                                  module procedure fmin84
                                  module procedure fmin48
                              end interface
                          contains
                              real(8) function fmax88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmax44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmax84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmax48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                              end function
                              real(8) function fmin88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmin44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmin84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmin48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                              end function
                          end module
                          
                          real(8) function code(x, y, z, t)
                          use fmin_fmax_functions
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              code = x + ((t * (y - z)) + (-x * (y - z)))
                          end function
                          
                          public static double code(double x, double y, double z, double t) {
                          	return x + ((t * (y - z)) + (-x * (y - z)));
                          }
                          
                          def code(x, y, z, t):
                          	return x + ((t * (y - z)) + (-x * (y - z)))
                          
                          function code(x, y, z, t)
                          	return Float64(x + Float64(Float64(t * Float64(y - z)) + Float64(Float64(-x) * Float64(y - z))))
                          end
                          
                          function tmp = code(x, y, z, t)
                          	tmp = x + ((t * (y - z)) + (-x * (y - z)));
                          end
                          
                          code[x_, y_, z_, t_] := N[(x + N[(N[(t * N[(y - z), $MachinePrecision]), $MachinePrecision] + N[((-x) * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                          
                          \begin{array}{l}
                          
                          \\
                          x + \left(t \cdot \left(y - z\right) + \left(-x\right) \cdot \left(y - z\right)\right)
                          \end{array}
                          

                          Reproduce

                          ?
                          herbie shell --seed 2025093 
                          (FPCore (x y z t)
                            :name "Data.Metrics.Snapshot:quantile from metrics-0.3.0.2"
                            :precision binary64
                          
                            :alt
                            (! :herbie-platform default (+ x (+ (* t (- y z)) (* (- x) (- y z)))))
                          
                            (+ x (* (- y z) (- t x))))