Data.Colour.RGB:hslsv from colour-2.3.3, B

Percentage Accurate: 99.3% → 99.8%
Time: 9.4s
Alternatives: 21
Speedup: 1.1×

Specification

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

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

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

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

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

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

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

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

Alternative 1: 99.8% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(a, 120, \frac{60}{z - t} \cdot \left(x - y\right)\right) \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (fma a 120.0 (* (/ 60.0 (- z t)) (- x y))))
double code(double x, double y, double z, double t, double a) {
	return fma(a, 120.0, ((60.0 / (z - t)) * (x - y)));
}
function code(x, y, z, t, a)
	return fma(a, 120.0, Float64(Float64(60.0 / Float64(z - t)) * Float64(x - y)))
end
code[x_, y_, z_, t_, a_] := N[(a * 120.0 + N[(N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\mathsf{fma}\left(a, 120, \frac{60}{z - t} \cdot \left(x - y\right)\right)
\end{array}
Derivation
  1. Initial program 99.4%

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

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

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

      \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
    4. fp-cancel-sub-sign-invN/A

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

      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
    6. remove-double-negN/A

      \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
    7. lower-fma.f6499.4

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
    14. lower-/.f6499.8

      \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t}} \cdot \left(x - y\right)\right) \]
  4. Applied rewrites99.8%

    \[\leadsto \color{blue}{\mathsf{fma}\left(a, 120, \frac{60}{z - t} \cdot \left(x - y\right)\right)} \]
  5. Add Preprocessing

Alternative 2: 59.3% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+204}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z}\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{+90}:\\ \;\;\;\;\frac{x}{z - t} \cdot 60\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+165}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z - t} \cdot -60\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
   (if (<= t_1 -1e+204)
     (* (- x y) (/ 60.0 z))
     (if (<= t_1 -5e+90)
       (* (/ x (- z t)) 60.0)
       (if (<= t_1 2e+165) (* 120.0 a) (* (/ y (- z t)) -60.0))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (60.0 * (x - y)) / (z - t);
	double tmp;
	if (t_1 <= -1e+204) {
		tmp = (x - y) * (60.0 / z);
	} else if (t_1 <= -5e+90) {
		tmp = (x / (z - t)) * 60.0;
	} else if (t_1 <= 2e+165) {
		tmp = 120.0 * a;
	} else {
		tmp = (y / (z - t)) * -60.0;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (60.0d0 * (x - y)) / (z - t)
    if (t_1 <= (-1d+204)) then
        tmp = (x - y) * (60.0d0 / z)
    else if (t_1 <= (-5d+90)) then
        tmp = (x / (z - t)) * 60.0d0
    else if (t_1 <= 2d+165) then
        tmp = 120.0d0 * a
    else
        tmp = (y / (z - t)) * (-60.0d0)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (60.0 * (x - y)) / (z - t);
	double tmp;
	if (t_1 <= -1e+204) {
		tmp = (x - y) * (60.0 / z);
	} else if (t_1 <= -5e+90) {
		tmp = (x / (z - t)) * 60.0;
	} else if (t_1 <= 2e+165) {
		tmp = 120.0 * a;
	} else {
		tmp = (y / (z - t)) * -60.0;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = (60.0 * (x - y)) / (z - t)
	tmp = 0
	if t_1 <= -1e+204:
		tmp = (x - y) * (60.0 / z)
	elif t_1 <= -5e+90:
		tmp = (x / (z - t)) * 60.0
	elif t_1 <= 2e+165:
		tmp = 120.0 * a
	else:
		tmp = (y / (z - t)) * -60.0
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t))
	tmp = 0.0
	if (t_1 <= -1e+204)
		tmp = Float64(Float64(x - y) * Float64(60.0 / z));
	elseif (t_1 <= -5e+90)
		tmp = Float64(Float64(x / Float64(z - t)) * 60.0);
	elseif (t_1 <= 2e+165)
		tmp = Float64(120.0 * a);
	else
		tmp = Float64(Float64(y / Float64(z - t)) * -60.0);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (60.0 * (x - y)) / (z - t);
	tmp = 0.0;
	if (t_1 <= -1e+204)
		tmp = (x - y) * (60.0 / z);
	elseif (t_1 <= -5e+90)
		tmp = (x / (z - t)) * 60.0;
	elseif (t_1 <= 2e+165)
		tmp = 120.0 * a;
	else
		tmp = (y / (z - t)) * -60.0;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+204], N[(N[(x - y), $MachinePrecision] * N[(60.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e+90], N[(N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision] * 60.0), $MachinePrecision], If[LessEqual[t$95$1, 2e+165], N[(120.0 * a), $MachinePrecision], N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+204}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{60}{z}\\

\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{+90}:\\
\;\;\;\;\frac{x}{z - t} \cdot 60\\

\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+165}:\\
\;\;\;\;120 \cdot a\\

\mathbf{else}:\\
\;\;\;\;\frac{y}{z - t} \cdot -60\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -9.99999999999999989e203

    1. Initial program 95.1%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
      11. lower--.f6480.8

        \[\leadsto \left(x - y\right) \cdot \frac{60}{\color{blue}{z - t}} \]
    5. Applied rewrites80.8%

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

      \[\leadsto \left(x - y\right) \cdot \frac{60}{\color{blue}{z}} \]
    7. Step-by-step derivation
      1. Applied rewrites63.9%

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

      if -9.99999999999999989e203 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5.0000000000000004e90

      1. Initial program 99.7%

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

        \[\leadsto \color{blue}{60 \cdot \frac{x}{z - t}} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

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

          \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]
        3. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{x}{z - t}} \cdot 60 \]
        4. lower--.f6462.2

          \[\leadsto \frac{x}{\color{blue}{z - t}} \cdot 60 \]
      5. Applied rewrites62.2%

        \[\leadsto \color{blue}{\frac{x}{z - t} \cdot 60} \]

      if -5.0000000000000004e90 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.9999999999999998e165

      1. Initial program 99.8%

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

        \[\leadsto \color{blue}{120 \cdot a} \]
      4. Step-by-step derivation
        1. lower-*.f6464.7

          \[\leadsto \color{blue}{120 \cdot a} \]
      5. Applied rewrites64.7%

        \[\leadsto \color{blue}{120 \cdot a} \]

      if 1.9999999999999998e165 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

      1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
        11. lower--.f6495.3

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

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

        \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
      7. Step-by-step derivation
        1. Applied rewrites67.2%

          \[\leadsto \frac{y}{z - t} \cdot \color{blue}{-60} \]
      8. Recombined 4 regimes into one program.
      9. Final simplification64.6%

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

      Alternative 3: 59.3% accurate, 0.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\ \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+204}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z}\\ \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{+90}:\\ \;\;\;\;\frac{60}{z - t} \cdot x\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+165}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z - t} \cdot -60\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
         (if (<= t_1 -1e+204)
           (* (- x y) (/ 60.0 z))
           (if (<= t_1 -5e+90)
             (* (/ 60.0 (- z t)) x)
             (if (<= t_1 2e+165) (* 120.0 a) (* (/ y (- z t)) -60.0))))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = (60.0 * (x - y)) / (z - t);
      	double tmp;
      	if (t_1 <= -1e+204) {
      		tmp = (x - y) * (60.0 / z);
      	} else if (t_1 <= -5e+90) {
      		tmp = (60.0 / (z - t)) * x;
      	} else if (t_1 <= 2e+165) {
      		tmp = 120.0 * a;
      	} else {
      		tmp = (y / (z - t)) * -60.0;
      	}
      	return tmp;
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t, a)
      use fmin_fmax_functions
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8), intent (in) :: a
          real(8) :: t_1
          real(8) :: tmp
          t_1 = (60.0d0 * (x - y)) / (z - t)
          if (t_1 <= (-1d+204)) then
              tmp = (x - y) * (60.0d0 / z)
          else if (t_1 <= (-5d+90)) then
              tmp = (60.0d0 / (z - t)) * x
          else if (t_1 <= 2d+165) then
              tmp = 120.0d0 * a
          else
              tmp = (y / (z - t)) * (-60.0d0)
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t, double a) {
      	double t_1 = (60.0 * (x - y)) / (z - t);
      	double tmp;
      	if (t_1 <= -1e+204) {
      		tmp = (x - y) * (60.0 / z);
      	} else if (t_1 <= -5e+90) {
      		tmp = (60.0 / (z - t)) * x;
      	} else if (t_1 <= 2e+165) {
      		tmp = 120.0 * a;
      	} else {
      		tmp = (y / (z - t)) * -60.0;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a):
      	t_1 = (60.0 * (x - y)) / (z - t)
      	tmp = 0
      	if t_1 <= -1e+204:
      		tmp = (x - y) * (60.0 / z)
      	elif t_1 <= -5e+90:
      		tmp = (60.0 / (z - t)) * x
      	elif t_1 <= 2e+165:
      		tmp = 120.0 * a
      	else:
      		tmp = (y / (z - t)) * -60.0
      	return tmp
      
      function code(x, y, z, t, a)
      	t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t))
      	tmp = 0.0
      	if (t_1 <= -1e+204)
      		tmp = Float64(Float64(x - y) * Float64(60.0 / z));
      	elseif (t_1 <= -5e+90)
      		tmp = Float64(Float64(60.0 / Float64(z - t)) * x);
      	elseif (t_1 <= 2e+165)
      		tmp = Float64(120.0 * a);
      	else
      		tmp = Float64(Float64(y / Float64(z - t)) * -60.0);
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a)
      	t_1 = (60.0 * (x - y)) / (z - t);
      	tmp = 0.0;
      	if (t_1 <= -1e+204)
      		tmp = (x - y) * (60.0 / z);
      	elseif (t_1 <= -5e+90)
      		tmp = (60.0 / (z - t)) * x;
      	elseif (t_1 <= 2e+165)
      		tmp = 120.0 * a;
      	else
      		tmp = (y / (z - t)) * -60.0;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+204], N[(N[(x - y), $MachinePrecision] * N[(60.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e+90], N[(N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t$95$1, 2e+165], N[(120.0 * a), $MachinePrecision], N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
      \mathbf{if}\;t\_1 \leq -1 \cdot 10^{+204}:\\
      \;\;\;\;\left(x - y\right) \cdot \frac{60}{z}\\
      
      \mathbf{elif}\;t\_1 \leq -5 \cdot 10^{+90}:\\
      \;\;\;\;\frac{60}{z - t} \cdot x\\
      
      \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+165}:\\
      \;\;\;\;120 \cdot a\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{y}{z - t} \cdot -60\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -9.99999999999999989e203

        1. Initial program 95.1%

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
          11. lower--.f6480.8

            \[\leadsto \left(x - y\right) \cdot \frac{60}{\color{blue}{z - t}} \]
        5. Applied rewrites80.8%

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

          \[\leadsto \left(x - y\right) \cdot \frac{60}{\color{blue}{z}} \]
        7. Step-by-step derivation
          1. Applied rewrites63.9%

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

          if -9.99999999999999989e203 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5.0000000000000004e90

          1. Initial program 99.7%

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

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

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

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

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

            \[\leadsto \frac{60}{z - t} \cdot x \]
          7. Step-by-step derivation
            1. Applied rewrites62.2%

              \[\leadsto \frac{60}{z - t} \cdot x \]

            if -5.0000000000000004e90 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.9999999999999998e165

            1. Initial program 99.8%

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

              \[\leadsto \color{blue}{120 \cdot a} \]
            4. Step-by-step derivation
              1. lower-*.f6464.7

                \[\leadsto \color{blue}{120 \cdot a} \]
            5. Applied rewrites64.7%

              \[\leadsto \color{blue}{120 \cdot a} \]

            if 1.9999999999999998e165 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

            1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
              11. lower--.f6495.3

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

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

              \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
            7. Step-by-step derivation
              1. Applied rewrites67.2%

                \[\leadsto \frac{y}{z - t} \cdot \color{blue}{-60} \]
            8. Recombined 4 regimes into one program.
            9. Final simplification64.6%

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

            Alternative 4: 53.7% accurate, 0.4× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+90}:\\ \;\;\;\;\frac{60}{z} \cdot x\\ \mathbf{elif}\;t\_1 \leq 10^{+166}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{t} \cdot 60\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
               (if (<= t_1 -5e+90)
                 (* (/ 60.0 z) x)
                 (if (<= t_1 1e+166) (* 120.0 a) (* (/ y t) 60.0)))))
            double code(double x, double y, double z, double t, double a) {
            	double t_1 = (60.0 * (x - y)) / (z - t);
            	double tmp;
            	if (t_1 <= -5e+90) {
            		tmp = (60.0 / z) * x;
            	} else if (t_1 <= 1e+166) {
            		tmp = 120.0 * a;
            	} else {
            		tmp = (y / t) * 60.0;
            	}
            	return tmp;
            }
            
            module fmin_fmax_functions
                implicit none
                private
                public fmax
                public fmin
            
                interface fmax
                    module procedure fmax88
                    module procedure fmax44
                    module procedure fmax84
                    module procedure fmax48
                end interface
                interface fmin
                    module procedure fmin88
                    module procedure fmin44
                    module procedure fmin84
                    module procedure fmin48
                end interface
            contains
                real(8) function fmax88(x, y) result (res)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                end function
                real(4) function fmax44(x, y) result (res)
                    real(4), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                end function
                real(8) function fmax84(x, y) result(res)
                    real(8), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                end function
                real(8) function fmax48(x, y) result(res)
                    real(4), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                end function
                real(8) function fmin88(x, y) result (res)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                end function
                real(4) function fmin44(x, y) result (res)
                    real(4), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                end function
                real(8) function fmin84(x, y) result(res)
                    real(8), intent (in) :: x
                    real(4), intent (in) :: y
                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                end function
                real(8) function fmin48(x, y) result(res)
                    real(4), intent (in) :: x
                    real(8), intent (in) :: y
                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                end function
            end module
            
            real(8) function code(x, y, z, t, a)
            use fmin_fmax_functions
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                real(8), intent (in) :: z
                real(8), intent (in) :: t
                real(8), intent (in) :: a
                real(8) :: t_1
                real(8) :: tmp
                t_1 = (60.0d0 * (x - y)) / (z - t)
                if (t_1 <= (-5d+90)) then
                    tmp = (60.0d0 / z) * x
                else if (t_1 <= 1d+166) then
                    tmp = 120.0d0 * a
                else
                    tmp = (y / t) * 60.0d0
                end if
                code = tmp
            end function
            
            public static double code(double x, double y, double z, double t, double a) {
            	double t_1 = (60.0 * (x - y)) / (z - t);
            	double tmp;
            	if (t_1 <= -5e+90) {
            		tmp = (60.0 / z) * x;
            	} else if (t_1 <= 1e+166) {
            		tmp = 120.0 * a;
            	} else {
            		tmp = (y / t) * 60.0;
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a):
            	t_1 = (60.0 * (x - y)) / (z - t)
            	tmp = 0
            	if t_1 <= -5e+90:
            		tmp = (60.0 / z) * x
            	elif t_1 <= 1e+166:
            		tmp = 120.0 * a
            	else:
            		tmp = (y / t) * 60.0
            	return tmp
            
            function code(x, y, z, t, a)
            	t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t))
            	tmp = 0.0
            	if (t_1 <= -5e+90)
            		tmp = Float64(Float64(60.0 / z) * x);
            	elseif (t_1 <= 1e+166)
            		tmp = Float64(120.0 * a);
            	else
            		tmp = Float64(Float64(y / t) * 60.0);
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a)
            	t_1 = (60.0 * (x - y)) / (z - t);
            	tmp = 0.0;
            	if (t_1 <= -5e+90)
            		tmp = (60.0 / z) * x;
            	elseif (t_1 <= 1e+166)
            		tmp = 120.0 * a;
            	else
            		tmp = (y / t) * 60.0;
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+90], N[(N[(60.0 / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t$95$1, 1e+166], N[(120.0 * a), $MachinePrecision], N[(N[(y / t), $MachinePrecision] * 60.0), $MachinePrecision]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
            \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+90}:\\
            \;\;\;\;\frac{60}{z} \cdot x\\
            
            \mathbf{elif}\;t\_1 \leq 10^{+166}:\\
            \;\;\;\;120 \cdot a\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{y}{t} \cdot 60\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5.0000000000000004e90

              1. Initial program 97.6%

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

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

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

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

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

                \[\leadsto \frac{60}{z - t} \cdot x \]
              7. Step-by-step derivation
                1. Applied rewrites50.0%

                  \[\leadsto \frac{60}{z - t} \cdot x \]
                2. Taylor expanded in z around inf

                  \[\leadsto \frac{60}{z} \cdot x \]
                3. Step-by-step derivation
                  1. Applied rewrites30.0%

                    \[\leadsto \frac{60}{z} \cdot x \]

                  if -5.0000000000000004e90 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 9.9999999999999994e165

                  1. Initial program 99.8%

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

                    \[\leadsto \color{blue}{120 \cdot a} \]
                  4. Step-by-step derivation
                    1. lower-*.f6464.4

                      \[\leadsto \color{blue}{120 \cdot a} \]
                  5. Applied rewrites64.4%

                    \[\leadsto \color{blue}{120 \cdot a} \]

                  if 9.9999999999999994e165 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                  1. Initial program 99.7%

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

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

                      \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                    2. lower-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                    3. lower-/.f64N/A

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

                      \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                    5. lower-*.f6465.8

                      \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                  5. Applied rewrites65.8%

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

                    \[\leadsto 60 \cdot \color{blue}{\frac{y}{t}} \]
                  7. Step-by-step derivation
                    1. Applied rewrites46.0%

                      \[\leadsto \frac{y}{t} \cdot \color{blue}{60} \]
                  8. Recombined 3 regimes into one program.
                  9. Add Preprocessing

                  Alternative 5: 52.2% accurate, 0.7× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\frac{60 \cdot \left(x - y\right)}{z - t} \leq 10^{+166}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{t} \cdot 60\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (if (<= (/ (* 60.0 (- x y)) (- z t)) 1e+166) (* 120.0 a) (* (/ y t) 60.0)))
                  double code(double x, double y, double z, double t, double a) {
                  	double tmp;
                  	if (((60.0 * (x - y)) / (z - t)) <= 1e+166) {
                  		tmp = 120.0 * a;
                  	} else {
                  		tmp = (y / t) * 60.0;
                  	}
                  	return tmp;
                  }
                  
                  module fmin_fmax_functions
                      implicit none
                      private
                      public fmax
                      public fmin
                  
                      interface fmax
                          module procedure fmax88
                          module procedure fmax44
                          module procedure fmax84
                          module procedure fmax48
                      end interface
                      interface fmin
                          module procedure fmin88
                          module procedure fmin44
                          module procedure fmin84
                          module procedure fmin48
                      end interface
                  contains
                      real(8) function fmax88(x, y) result (res)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                      end function
                      real(4) function fmax44(x, y) result (res)
                          real(4), intent (in) :: x
                          real(4), intent (in) :: y
                          res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                      end function
                      real(8) function fmax84(x, y) result(res)
                          real(8), intent (in) :: x
                          real(4), intent (in) :: y
                          res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                      end function
                      real(8) function fmax48(x, y) result(res)
                          real(4), intent (in) :: x
                          real(8), intent (in) :: y
                          res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                      end function
                      real(8) function fmin88(x, y) result (res)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                      end function
                      real(4) function fmin44(x, y) result (res)
                          real(4), intent (in) :: x
                          real(4), intent (in) :: y
                          res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                      end function
                      real(8) function fmin84(x, y) result(res)
                          real(8), intent (in) :: x
                          real(4), intent (in) :: y
                          res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                      end function
                      real(8) function fmin48(x, y) result(res)
                          real(4), intent (in) :: x
                          real(8), intent (in) :: y
                          res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                      end function
                  end module
                  
                  real(8) function code(x, y, z, t, a)
                  use fmin_fmax_functions
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8), intent (in) :: a
                      real(8) :: tmp
                      if (((60.0d0 * (x - y)) / (z - t)) <= 1d+166) then
                          tmp = 120.0d0 * a
                      else
                          tmp = (y / t) * 60.0d0
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a) {
                  	double tmp;
                  	if (((60.0 * (x - y)) / (z - t)) <= 1e+166) {
                  		tmp = 120.0 * a;
                  	} else {
                  		tmp = (y / t) * 60.0;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a):
                  	tmp = 0
                  	if ((60.0 * (x - y)) / (z - t)) <= 1e+166:
                  		tmp = 120.0 * a
                  	else:
                  		tmp = (y / t) * 60.0
                  	return tmp
                  
                  function code(x, y, z, t, a)
                  	tmp = 0.0
                  	if (Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) <= 1e+166)
                  		tmp = Float64(120.0 * a);
                  	else
                  		tmp = Float64(Float64(y / t) * 60.0);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a)
                  	tmp = 0.0;
                  	if (((60.0 * (x - y)) / (z - t)) <= 1e+166)
                  		tmp = 120.0 * a;
                  	else
                  		tmp = (y / t) * 60.0;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_] := If[LessEqual[N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], 1e+166], N[(120.0 * a), $MachinePrecision], N[(N[(y / t), $MachinePrecision] * 60.0), $MachinePrecision]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;\frac{60 \cdot \left(x - y\right)}{z - t} \leq 10^{+166}:\\
                  \;\;\;\;120 \cdot a\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\frac{y}{t} \cdot 60\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 9.9999999999999994e165

                    1. Initial program 99.4%

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

                      \[\leadsto \color{blue}{120 \cdot a} \]
                    4. Step-by-step derivation
                      1. lower-*.f6455.4

                        \[\leadsto \color{blue}{120 \cdot a} \]
                    5. Applied rewrites55.4%

                      \[\leadsto \color{blue}{120 \cdot a} \]

                    if 9.9999999999999994e165 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t))

                    1. Initial program 99.7%

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

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

                        \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                      2. lower-fma.f64N/A

                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                      3. lower-/.f64N/A

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

                        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                      5. lower-*.f6465.8

                        \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                    5. Applied rewrites65.8%

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

                      \[\leadsto 60 \cdot \color{blue}{\frac{y}{t}} \]
                    7. Step-by-step derivation
                      1. Applied rewrites46.0%

                        \[\leadsto \frac{y}{t} \cdot \color{blue}{60} \]
                    8. Recombined 2 regimes into one program.
                    9. Add Preprocessing

                    Alternative 6: 74.0% accurate, 0.7× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.85 \cdot 10^{+87}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;a \leq -7.2 \cdot 10^{-80}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right)\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\ \;\;\;\;\frac{\mathsf{fma}\left(60, x, -60 \cdot y\right)}{z - t}\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (if (<= a -3.85e+87)
                       (* 120.0 a)
                       (if (<= a -7.2e-80)
                         (fma a 120.0 (* (/ x z) 60.0))
                         (if (<= a 2.4e+27) (/ (fma 60.0 x (* -60.0 y)) (- z t)) (* 120.0 a)))))
                    double code(double x, double y, double z, double t, double a) {
                    	double tmp;
                    	if (a <= -3.85e+87) {
                    		tmp = 120.0 * a;
                    	} else if (a <= -7.2e-80) {
                    		tmp = fma(a, 120.0, ((x / z) * 60.0));
                    	} else if (a <= 2.4e+27) {
                    		tmp = fma(60.0, x, (-60.0 * y)) / (z - t);
                    	} else {
                    		tmp = 120.0 * a;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a)
                    	tmp = 0.0
                    	if (a <= -3.85e+87)
                    		tmp = Float64(120.0 * a);
                    	elseif (a <= -7.2e-80)
                    		tmp = fma(a, 120.0, Float64(Float64(x / z) * 60.0));
                    	elseif (a <= 2.4e+27)
                    		tmp = Float64(fma(60.0, x, Float64(-60.0 * y)) / Float64(z - t));
                    	else
                    		tmp = Float64(120.0 * a);
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.85e+87], N[(120.0 * a), $MachinePrecision], If[LessEqual[a, -7.2e-80], N[(a * 120.0 + N[(N[(x / z), $MachinePrecision] * 60.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e+27], N[(N[(60.0 * x + N[(-60.0 * y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], N[(120.0 * a), $MachinePrecision]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;a \leq -3.85 \cdot 10^{+87}:\\
                    \;\;\;\;120 \cdot a\\
                    
                    \mathbf{elif}\;a \leq -7.2 \cdot 10^{-80}:\\
                    \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right)\\
                    
                    \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\
                    \;\;\;\;\frac{\mathsf{fma}\left(60, x, -60 \cdot y\right)}{z - t}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;120 \cdot a\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if a < -3.85000000000000015e87 or 2.39999999999999998e27 < a

                      1. Initial program 99.0%

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

                        \[\leadsto \color{blue}{120 \cdot a} \]
                      4. Step-by-step derivation
                        1. lower-*.f6480.1

                          \[\leadsto \color{blue}{120 \cdot a} \]
                      5. Applied rewrites80.1%

                        \[\leadsto \color{blue}{120 \cdot a} \]

                      if -3.85000000000000015e87 < a < -7.2e-80

                      1. Initial program 99.8%

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

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

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

                          \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                        4. fp-cancel-sub-sign-invN/A

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

                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                        6. remove-double-negN/A

                          \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                        7. lower-fma.f6499.9

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                        14. lower-/.f6499.9

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{z} \cdot 60}\right) \]
                        3. lower-/.f64N/A

                          \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{z}} \cdot 60\right) \]
                        4. lower--.f6479.6

                          \[\leadsto \mathsf{fma}\left(a, 120, \frac{\color{blue}{x - y}}{z} \cdot 60\right) \]
                      7. Applied rewrites79.6%

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

                        \[\leadsto \mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right) \]
                      9. Step-by-step derivation
                        1. Applied rewrites74.1%

                          \[\leadsto \mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right) \]

                        if -7.2e-80 < a < 2.39999999999999998e27

                        1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
                          11. lower--.f6479.8

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

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

                          \[\leadsto -60 \cdot \frac{y}{z - t} + \color{blue}{60 \cdot \frac{x}{z - t}} \]
                        7. Step-by-step derivation
                          1. Applied rewrites79.8%

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.85 \cdot 10^{+87}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;a \leq -7.2 \cdot 10^{-80}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right)\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\ \;\;\;\;\frac{\mathsf{fma}\left(60, x, -60 \cdot y\right)}{z - t}\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 7: 74.2% accurate, 0.8× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.85 \cdot 10^{+87}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;a \leq -7.2 \cdot 10^{-80}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right)\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (if (<= a -3.85e+87)
                           (* 120.0 a)
                           (if (<= a -7.2e-80)
                             (fma a 120.0 (* (/ x z) 60.0))
                             (if (<= a 2.4e+27) (* (- x y) (/ 60.0 (- z t))) (* 120.0 a)))))
                        double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (a <= -3.85e+87) {
                        		tmp = 120.0 * a;
                        	} else if (a <= -7.2e-80) {
                        		tmp = fma(a, 120.0, ((x / z) * 60.0));
                        	} else if (a <= 2.4e+27) {
                        		tmp = (x - y) * (60.0 / (z - t));
                        	} else {
                        		tmp = 120.0 * a;
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z, t, a)
                        	tmp = 0.0
                        	if (a <= -3.85e+87)
                        		tmp = Float64(120.0 * a);
                        	elseif (a <= -7.2e-80)
                        		tmp = fma(a, 120.0, Float64(Float64(x / z) * 60.0));
                        	elseif (a <= 2.4e+27)
                        		tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t)));
                        	else
                        		tmp = Float64(120.0 * a);
                        	end
                        	return tmp
                        end
                        
                        code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.85e+87], N[(120.0 * a), $MachinePrecision], If[LessEqual[a, -7.2e-80], N[(a * 120.0 + N[(N[(x / z), $MachinePrecision] * 60.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e+27], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(120.0 * a), $MachinePrecision]]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;a \leq -3.85 \cdot 10^{+87}:\\
                        \;\;\;\;120 \cdot a\\
                        
                        \mathbf{elif}\;a \leq -7.2 \cdot 10^{-80}:\\
                        \;\;\;\;\mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right)\\
                        
                        \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\
                        \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;120 \cdot a\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if a < -3.85000000000000015e87 or 2.39999999999999998e27 < a

                          1. Initial program 99.0%

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

                            \[\leadsto \color{blue}{120 \cdot a} \]
                          4. Step-by-step derivation
                            1. lower-*.f6480.1

                              \[\leadsto \color{blue}{120 \cdot a} \]
                          5. Applied rewrites80.1%

                            \[\leadsto \color{blue}{120 \cdot a} \]

                          if -3.85000000000000015e87 < a < -7.2e-80

                          1. Initial program 99.8%

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

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

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

                              \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                            4. fp-cancel-sub-sign-invN/A

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

                              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                            6. remove-double-negN/A

                              \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                            7. lower-fma.f6499.9

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                            14. lower-/.f6499.9

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{z} \cdot 60}\right) \]
                            3. lower-/.f64N/A

                              \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{z}} \cdot 60\right) \]
                            4. lower--.f6479.6

                              \[\leadsto \mathsf{fma}\left(a, 120, \frac{\color{blue}{x - y}}{z} \cdot 60\right) \]
                          7. Applied rewrites79.6%

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

                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right) \]
                          9. Step-by-step derivation
                            1. Applied rewrites74.1%

                              \[\leadsto \mathsf{fma}\left(a, 120, \frac{x}{z} \cdot 60\right) \]

                            if -7.2e-80 < a < 2.39999999999999998e27

                            1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
                              11. lower--.f6479.8

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

                              \[\leadsto \color{blue}{\left(x - y\right) \cdot \frac{60}{z - t}} \]
                          10. Recombined 3 regimes into one program.
                          11. Add Preprocessing

                          Alternative 8: 73.2% accurate, 0.8× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.25 \cdot 10^{+262}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\ \mathbf{elif}\;a \leq -5.8 \cdot 10^{-84}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{y}{z} \cdot -60\right)\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \end{array} \]
                          (FPCore (x y z t a)
                           :precision binary64
                           (if (<= a -2.25e+262)
                             (fma (/ y t) 60.0 (* 120.0 a))
                             (if (<= a -5.8e-84)
                               (fma a 120.0 (* (/ y z) -60.0))
                               (if (<= a 2.4e+27) (* (- x y) (/ 60.0 (- z t))) (* 120.0 a)))))
                          double code(double x, double y, double z, double t, double a) {
                          	double tmp;
                          	if (a <= -2.25e+262) {
                          		tmp = fma((y / t), 60.0, (120.0 * a));
                          	} else if (a <= -5.8e-84) {
                          		tmp = fma(a, 120.0, ((y / z) * -60.0));
                          	} else if (a <= 2.4e+27) {
                          		tmp = (x - y) * (60.0 / (z - t));
                          	} else {
                          		tmp = 120.0 * a;
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a)
                          	tmp = 0.0
                          	if (a <= -2.25e+262)
                          		tmp = fma(Float64(y / t), 60.0, Float64(120.0 * a));
                          	elseif (a <= -5.8e-84)
                          		tmp = fma(a, 120.0, Float64(Float64(y / z) * -60.0));
                          	elseif (a <= 2.4e+27)
                          		tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t)));
                          	else
                          		tmp = Float64(120.0 * a);
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.25e+262], N[(N[(y / t), $MachinePrecision] * 60.0 + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5.8e-84], N[(a * 120.0 + N[(N[(y / z), $MachinePrecision] * -60.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e+27], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(120.0 * a), $MachinePrecision]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;a \leq -2.25 \cdot 10^{+262}:\\
                          \;\;\;\;\mathsf{fma}\left(\frac{y}{t}, 60, 120 \cdot a\right)\\
                          
                          \mathbf{elif}\;a \leq -5.8 \cdot 10^{-84}:\\
                          \;\;\;\;\mathsf{fma}\left(a, 120, \frac{y}{z} \cdot -60\right)\\
                          
                          \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\
                          \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;120 \cdot a\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 4 regimes
                          2. if a < -2.24999999999999986e262

                            1. Initial program 94.1%

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

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

                                \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                              2. lower-fma.f64N/A

                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                              3. lower-/.f64N/A

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

                                \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                              5. lower-*.f6494.4

                                \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                            5. Applied rewrites94.4%

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

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

                                \[\leadsto \mathsf{fma}\left(\frac{y}{t}, \color{blue}{60}, 120 \cdot a\right) \]

                              if -2.24999999999999986e262 < a < -5.80000000000000038e-84

                              1. Initial program 99.8%

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

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

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

                                  \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                4. fp-cancel-sub-sign-invN/A

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

                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                                6. remove-double-negN/A

                                  \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                                7. lower-fma.f6499.9

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                                14. lower-/.f6499.9

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{z} \cdot 60}\right) \]
                                3. lower-/.f64N/A

                                  \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{z}} \cdot 60\right) \]
                                4. lower--.f6473.5

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

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

                                \[\leadsto \mathsf{fma}\left(a, 120, -60 \cdot \color{blue}{\frac{y}{z}}\right) \]
                              9. Step-by-step derivation
                                1. Applied rewrites74.4%

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

                                if -5.80000000000000038e-84 < a < 2.39999999999999998e27

                                1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
                                  11. lower--.f6480.3

                                    \[\leadsto \left(x - y\right) \cdot \frac{60}{\color{blue}{z - t}} \]
                                5. Applied rewrites80.3%

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

                                if 2.39999999999999998e27 < a

                                1. Initial program 100.0%

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

                                  \[\leadsto \color{blue}{120 \cdot a} \]
                                4. Step-by-step derivation
                                  1. lower-*.f6476.6

                                    \[\leadsto \color{blue}{120 \cdot a} \]
                                5. Applied rewrites76.6%

                                  \[\leadsto \color{blue}{120 \cdot a} \]
                              10. Recombined 4 regimes into one program.
                              11. Add Preprocessing

                              Alternative 9: 88.1% accurate, 0.8× speedup?

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

                                1. Initial program 99.0%

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

                                  \[\leadsto \frac{\color{blue}{60 \cdot x}}{z - t} + a \cdot 120 \]
                                4. Step-by-step derivation
                                  1. lower-*.f6487.7

                                    \[\leadsto \frac{\color{blue}{60 \cdot x}}{z - t} + a \cdot 120 \]
                                5. Applied rewrites87.7%

                                  \[\leadsto \frac{\color{blue}{60 \cdot x}}{z - t} + a \cdot 120 \]

                                if -1.08e-45 < x < 7.0000000000000004e27

                                1. Initial program 99.8%

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

                                  \[\leadsto \color{blue}{-60 \cdot \frac{y}{z - t} + 120 \cdot a} \]
                                4. Step-by-step derivation
                                  1. +-commutativeN/A

                                    \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
                                  2. lower-fma.f64N/A

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

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

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

                                    \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
                                  6. lower--.f6496.0

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

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

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

                              Alternative 10: 84.2% accurate, 0.8× speedup?

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

                                1. Initial program 99.1%

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

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

                                    \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                                  2. lower-fma.f64N/A

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                                  3. lower-/.f64N/A

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

                                    \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                                  5. lower-*.f6493.5

                                    \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                                5. Applied rewrites93.5%

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

                                if -4.0000000000000002e-27 < t < 1.6499999999999999e24

                                1. Initial program 99.8%

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

                                  \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z} + 120 \cdot a} \]
                                4. Step-by-step derivation
                                  1. *-commutativeN/A

                                    \[\leadsto \color{blue}{\frac{x - y}{z} \cdot 60} + 120 \cdot a \]
                                  2. lower-fma.f64N/A

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{z}, 60, 120 \cdot a\right)} \]
                                  3. lower-/.f64N/A

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

                                    \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{z}, 60, 120 \cdot a\right) \]
                                  5. lower-*.f6484.4

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

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

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

                              Alternative 11: 81.0% accurate, 0.8× speedup?

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

                                1. Initial program 99.3%

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

                                  \[\leadsto \color{blue}{-60 \cdot \frac{y}{z - t} + 120 \cdot a} \]
                                4. Step-by-step derivation
                                  1. +-commutativeN/A

                                    \[\leadsto \color{blue}{120 \cdot a + -60 \cdot \frac{y}{z - t}} \]
                                  2. lower-fma.f64N/A

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

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

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

                                    \[\leadsto \mathsf{fma}\left(120, a, \color{blue}{\frac{y}{z - t}} \cdot -60\right) \]
                                  6. lower--.f6486.4

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

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

                                if -1.90000000000000002e-162 < a < 1.1500000000000001e22

                                1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
                                  11. lower--.f6483.6

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

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

                                  \[\leadsto -60 \cdot \frac{y}{z - t} + \color{blue}{60 \cdot \frac{x}{z - t}} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites83.7%

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

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

                                Alternative 12: 57.1% accurate, 0.8× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.35 \cdot 10^{-86}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-245}:\\ \;\;\;\;\frac{y}{z - t} \cdot -60\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\ \;\;\;\;-60 \cdot \frac{x - y}{t}\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (if (<= a -1.35e-86)
                                   (* 120.0 a)
                                   (if (<= a 6.5e-245)
                                     (* (/ y (- z t)) -60.0)
                                     (if (<= a 2.4e+27) (* -60.0 (/ (- x y) t)) (* 120.0 a)))))
                                double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (a <= -1.35e-86) {
                                		tmp = 120.0 * a;
                                	} else if (a <= 6.5e-245) {
                                		tmp = (y / (z - t)) * -60.0;
                                	} else if (a <= 2.4e+27) {
                                		tmp = -60.0 * ((x - y) / t);
                                	} else {
                                		tmp = 120.0 * a;
                                	}
                                	return tmp;
                                }
                                
                                module fmin_fmax_functions
                                    implicit none
                                    private
                                    public fmax
                                    public fmin
                                
                                    interface fmax
                                        module procedure fmax88
                                        module procedure fmax44
                                        module procedure fmax84
                                        module procedure fmax48
                                    end interface
                                    interface fmin
                                        module procedure fmin88
                                        module procedure fmin44
                                        module procedure fmin84
                                        module procedure fmin48
                                    end interface
                                contains
                                    real(8) function fmax88(x, y) result (res)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                    end function
                                    real(4) function fmax44(x, y) result (res)
                                        real(4), intent (in) :: x
                                        real(4), intent (in) :: y
                                        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                    end function
                                    real(8) function fmax84(x, y) result(res)
                                        real(8), intent (in) :: x
                                        real(4), intent (in) :: y
                                        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                    end function
                                    real(8) function fmax48(x, y) result(res)
                                        real(4), intent (in) :: x
                                        real(8), intent (in) :: y
                                        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                    end function
                                    real(8) function fmin88(x, y) result (res)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                    end function
                                    real(4) function fmin44(x, y) result (res)
                                        real(4), intent (in) :: x
                                        real(4), intent (in) :: y
                                        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                    end function
                                    real(8) function fmin84(x, y) result(res)
                                        real(8), intent (in) :: x
                                        real(4), intent (in) :: y
                                        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                    end function
                                    real(8) function fmin48(x, y) result(res)
                                        real(4), intent (in) :: x
                                        real(8), intent (in) :: y
                                        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                    end function
                                end module
                                
                                real(8) function code(x, y, z, t, a)
                                use fmin_fmax_functions
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    real(8), intent (in) :: a
                                    real(8) :: tmp
                                    if (a <= (-1.35d-86)) then
                                        tmp = 120.0d0 * a
                                    else if (a <= 6.5d-245) then
                                        tmp = (y / (z - t)) * (-60.0d0)
                                    else if (a <= 2.4d+27) then
                                        tmp = (-60.0d0) * ((x - y) / t)
                                    else
                                        tmp = 120.0d0 * a
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if (a <= -1.35e-86) {
                                		tmp = 120.0 * a;
                                	} else if (a <= 6.5e-245) {
                                		tmp = (y / (z - t)) * -60.0;
                                	} else if (a <= 2.4e+27) {
                                		tmp = -60.0 * ((x - y) / t);
                                	} else {
                                		tmp = 120.0 * a;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a):
                                	tmp = 0
                                	if a <= -1.35e-86:
                                		tmp = 120.0 * a
                                	elif a <= 6.5e-245:
                                		tmp = (y / (z - t)) * -60.0
                                	elif a <= 2.4e+27:
                                		tmp = -60.0 * ((x - y) / t)
                                	else:
                                		tmp = 120.0 * a
                                	return tmp
                                
                                function code(x, y, z, t, a)
                                	tmp = 0.0
                                	if (a <= -1.35e-86)
                                		tmp = Float64(120.0 * a);
                                	elseif (a <= 6.5e-245)
                                		tmp = Float64(Float64(y / Float64(z - t)) * -60.0);
                                	elseif (a <= 2.4e+27)
                                		tmp = Float64(-60.0 * Float64(Float64(x - y) / t));
                                	else
                                		tmp = Float64(120.0 * a);
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a)
                                	tmp = 0.0;
                                	if (a <= -1.35e-86)
                                		tmp = 120.0 * a;
                                	elseif (a <= 6.5e-245)
                                		tmp = (y / (z - t)) * -60.0;
                                	elseif (a <= 2.4e+27)
                                		tmp = -60.0 * ((x - y) / t);
                                	else
                                		tmp = 120.0 * a;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.35e-86], N[(120.0 * a), $MachinePrecision], If[LessEqual[a, 6.5e-245], N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision], If[LessEqual[a, 2.4e+27], N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(120.0 * a), $MachinePrecision]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;a \leq -1.35 \cdot 10^{-86}:\\
                                \;\;\;\;120 \cdot a\\
                                
                                \mathbf{elif}\;a \leq 6.5 \cdot 10^{-245}:\\
                                \;\;\;\;\frac{y}{z - t} \cdot -60\\
                                
                                \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\
                                \;\;\;\;-60 \cdot \frac{x - y}{t}\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;120 \cdot a\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if a < -1.34999999999999996e-86 or 2.39999999999999998e27 < a

                                  1. Initial program 99.2%

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

                                    \[\leadsto \color{blue}{120 \cdot a} \]
                                  4. Step-by-step derivation
                                    1. lower-*.f6475.2

                                      \[\leadsto \color{blue}{120 \cdot a} \]
                                  5. Applied rewrites75.2%

                                    \[\leadsto \color{blue}{120 \cdot a} \]

                                  if -1.34999999999999996e-86 < a < 6.5000000000000004e-245

                                  1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites52.1%

                                      \[\leadsto \frac{y}{z - t} \cdot \color{blue}{-60} \]

                                    if 6.5000000000000004e-245 < a < 2.39999999999999998e27

                                    1. Initial program 99.7%

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

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

                                        \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                                      2. lower-fma.f64N/A

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                                      3. lower-/.f64N/A

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

                                        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                                      5. lower-*.f6460.8

                                        \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                                    5. Applied rewrites60.8%

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

                                      \[\leadsto -60 \cdot \frac{x}{t} + \color{blue}{\left(60 \cdot \frac{y}{t} + 120 \cdot a\right)} \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites60.8%

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

                                        \[\leadsto \frac{-60 \cdot x + 60 \cdot y}{t} \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites48.2%

                                          \[\leadsto -60 \cdot \frac{x - y}{\color{blue}{t}} \]
                                      4. Recombined 3 regimes into one program.
                                      5. Final simplification64.2%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.35 \cdot 10^{-86}:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-245}:\\ \;\;\;\;\frac{y}{z - t} \cdot -60\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{+27}:\\ \;\;\;\;-60 \cdot \frac{x - y}{t}\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \]
                                      6. Add Preprocessing

                                      Alternative 13: 84.2% accurate, 0.8× speedup?

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

                                        1. Initial program 99.7%

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

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

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

                                            \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                          4. fp-cancel-sub-sign-invN/A

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

                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                                          6. remove-double-negN/A

                                            \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                                          7. lower-fma.f6499.8

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                                          14. lower-/.f6499.8

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t}} \cdot \left(x - y\right)\right) \]
                                        4. Applied rewrites99.8%

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

                                          \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{-60 \cdot \frac{x - y}{t}}\right) \]
                                        6. Step-by-step derivation
                                          1. *-commutativeN/A

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{t} \cdot -60}\right) \]
                                          3. lower-/.f64N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{t}} \cdot -60\right) \]
                                          4. lower--.f6493.5

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{\color{blue}{x - y}}{t} \cdot -60\right) \]
                                        7. Applied rewrites93.5%

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

                                        if -4.0000000000000002e-27 < t < 1.6499999999999999e24

                                        1. Initial program 99.8%

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

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

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

                                            \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                          4. fp-cancel-sub-sign-invN/A

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

                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                                          6. remove-double-negN/A

                                            \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                                          7. lower-fma.f6499.8

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                                          14. lower-/.f6499.8

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t}} \cdot \left(x - y\right)\right) \]
                                        4. Applied rewrites99.8%

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

                                          \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z}} \cdot \left(x - y\right)\right) \]
                                        6. Step-by-step derivation
                                          1. lower-/.f6484.4

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z}} \cdot \left(x - y\right)\right) \]
                                        7. Applied rewrites84.4%

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

                                        if 1.6499999999999999e24 < t

                                        1. Initial program 98.3%

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

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

                                            \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                                          2. lower-fma.f64N/A

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                                          3. lower-/.f64N/A

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

                                            \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                                          5. lower-*.f6493.5

                                            \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                                        5. Applied rewrites93.5%

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

                                      Alternative 14: 84.2% accurate, 0.8× speedup?

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

                                        1. Initial program 99.7%

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

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

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

                                            \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                          4. fp-cancel-sub-sign-invN/A

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

                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                                          6. remove-double-negN/A

                                            \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                                          7. lower-fma.f6499.8

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                                          14. lower-/.f6499.8

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t}} \cdot \left(x - y\right)\right) \]
                                        4. Applied rewrites99.8%

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

                                          \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{-60 \cdot \frac{x - y}{t}}\right) \]
                                        6. Step-by-step derivation
                                          1. *-commutativeN/A

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{t} \cdot -60}\right) \]
                                          3. lower-/.f64N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{t}} \cdot -60\right) \]
                                          4. lower--.f6493.5

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{\color{blue}{x - y}}{t} \cdot -60\right) \]
                                        7. Applied rewrites93.5%

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

                                        if -4.0000000000000002e-27 < t < 1.6499999999999999e24

                                        1. Initial program 99.8%

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

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

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

                                            \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                          4. fp-cancel-sub-sign-invN/A

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

                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                                          6. remove-double-negN/A

                                            \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                                          7. lower-fma.f6499.8

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                                          14. lower-/.f6499.8

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t}} \cdot \left(x - y\right)\right) \]
                                        4. Applied rewrites99.8%

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

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

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{z} \cdot 60}\right) \]
                                          3. lower-/.f64N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{z}} \cdot 60\right) \]
                                          4. lower--.f6484.4

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{\color{blue}{x - y}}{z} \cdot 60\right) \]
                                        7. Applied rewrites84.4%

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

                                        if 1.6499999999999999e24 < t

                                        1. Initial program 98.3%

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

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

                                            \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                                          2. lower-fma.f64N/A

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                                          3. lower-/.f64N/A

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

                                            \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                                          5. lower-*.f6493.5

                                            \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                                        5. Applied rewrites93.5%

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

                                      Alternative 15: 84.2% accurate, 0.8× speedup?

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

                                        1. Initial program 99.7%

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

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

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

                                            \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                          4. fp-cancel-sub-sign-invN/A

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

                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                                          6. remove-double-negN/A

                                            \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                                          7. lower-fma.f6499.8

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                                          14. lower-/.f6499.8

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t}} \cdot \left(x - y\right)\right) \]
                                        4. Applied rewrites99.8%

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

                                          \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{-60 \cdot \frac{x - y}{t}}\right) \]
                                        6. Step-by-step derivation
                                          1. *-commutativeN/A

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{t} \cdot -60}\right) \]
                                          3. lower-/.f64N/A

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{x - y}{t}} \cdot -60\right) \]
                                          4. lower--.f6493.5

                                            \[\leadsto \mathsf{fma}\left(a, 120, \frac{\color{blue}{x - y}}{t} \cdot -60\right) \]
                                        7. Applied rewrites93.5%

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

                                        if -4.0000000000000002e-27 < t < 1.6499999999999999e24

                                        1. Initial program 99.8%

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

                                          \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z} + 120 \cdot a} \]
                                        4. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \color{blue}{\frac{x - y}{z} \cdot 60} + 120 \cdot a \]
                                          2. lower-fma.f64N/A

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{z}, 60, 120 \cdot a\right)} \]
                                          3. lower-/.f64N/A

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

                                            \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{z}, 60, 120 \cdot a\right) \]
                                          5. lower-*.f6484.4

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

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

                                        if 1.6499999999999999e24 < t

                                        1. Initial program 98.3%

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

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

                                            \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                                          2. lower-fma.f64N/A

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                                          3. lower-/.f64N/A

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

                                            \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                                          5. lower-*.f6493.5

                                            \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                                        5. Applied rewrites93.5%

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

                                      Alternative 16: 73.9% accurate, 0.9× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{-84} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (if (or (<= a -6.5e-84) (not (<= a 2.4e+27)))
                                         (* 120.0 a)
                                         (* (- x y) (/ 60.0 (- z t)))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if ((a <= -6.5e-84) || !(a <= 2.4e+27)) {
                                      		tmp = 120.0 * a;
                                      	} else {
                                      		tmp = (x - y) * (60.0 / (z - t));
                                      	}
                                      	return tmp;
                                      }
                                      
                                      module fmin_fmax_functions
                                          implicit none
                                          private
                                          public fmax
                                          public fmin
                                      
                                          interface fmax
                                              module procedure fmax88
                                              module procedure fmax44
                                              module procedure fmax84
                                              module procedure fmax48
                                          end interface
                                          interface fmin
                                              module procedure fmin88
                                              module procedure fmin44
                                              module procedure fmin84
                                              module procedure fmin48
                                          end interface
                                      contains
                                          real(8) function fmax88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmax44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmax84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmax48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmin44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmin48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                          end function
                                      end module
                                      
                                      real(8) function code(x, y, z, t, a)
                                      use fmin_fmax_functions
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8) :: tmp
                                          if ((a <= (-6.5d-84)) .or. (.not. (a <= 2.4d+27))) then
                                              tmp = 120.0d0 * a
                                          else
                                              tmp = (x - y) * (60.0d0 / (z - t))
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if ((a <= -6.5e-84) || !(a <= 2.4e+27)) {
                                      		tmp = 120.0 * a;
                                      	} else {
                                      		tmp = (x - y) * (60.0 / (z - t));
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a):
                                      	tmp = 0
                                      	if (a <= -6.5e-84) or not (a <= 2.4e+27):
                                      		tmp = 120.0 * a
                                      	else:
                                      		tmp = (x - y) * (60.0 / (z - t))
                                      	return tmp
                                      
                                      function code(x, y, z, t, a)
                                      	tmp = 0.0
                                      	if ((a <= -6.5e-84) || !(a <= 2.4e+27))
                                      		tmp = Float64(120.0 * a);
                                      	else
                                      		tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t)));
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a)
                                      	tmp = 0.0;
                                      	if ((a <= -6.5e-84) || ~((a <= 2.4e+27)))
                                      		tmp = 120.0 * a;
                                      	else
                                      		tmp = (x - y) * (60.0 / (z - t));
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6.5e-84], N[Not[LessEqual[a, 2.4e+27]], $MachinePrecision]], N[(120.0 * a), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;a \leq -6.5 \cdot 10^{-84} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\
                                      \;\;\;\;120 \cdot a\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if a < -6.50000000000000022e-84 or 2.39999999999999998e27 < a

                                        1. Initial program 99.2%

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

                                          \[\leadsto \color{blue}{120 \cdot a} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f6475.2

                                            \[\leadsto \color{blue}{120 \cdot a} \]
                                        5. Applied rewrites75.2%

                                          \[\leadsto \color{blue}{120 \cdot a} \]

                                        if -6.50000000000000022e-84 < a < 2.39999999999999998e27

                                        1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
                                          11. lower--.f6480.3

                                            \[\leadsto \left(x - y\right) \cdot \frac{60}{\color{blue}{z - t}} \]
                                        5. Applied rewrites80.3%

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

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{-84} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\ \end{array} \]
                                      5. Add Preprocessing

                                      Alternative 17: 73.7% accurate, 0.9× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{-84} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot 60}{z - t}\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (if (or (<= a -6.5e-84) (not (<= a 2.4e+27)))
                                         (* 120.0 a)
                                         (/ (* (- x y) 60.0) (- z t))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if ((a <= -6.5e-84) || !(a <= 2.4e+27)) {
                                      		tmp = 120.0 * a;
                                      	} else {
                                      		tmp = ((x - y) * 60.0) / (z - t);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      module fmin_fmax_functions
                                          implicit none
                                          private
                                          public fmax
                                          public fmin
                                      
                                          interface fmax
                                              module procedure fmax88
                                              module procedure fmax44
                                              module procedure fmax84
                                              module procedure fmax48
                                          end interface
                                          interface fmin
                                              module procedure fmin88
                                              module procedure fmin44
                                              module procedure fmin84
                                              module procedure fmin48
                                          end interface
                                      contains
                                          real(8) function fmax88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmax44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmax84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmax48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmin44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmin48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                          end function
                                      end module
                                      
                                      real(8) function code(x, y, z, t, a)
                                      use fmin_fmax_functions
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8) :: tmp
                                          if ((a <= (-6.5d-84)) .or. (.not. (a <= 2.4d+27))) then
                                              tmp = 120.0d0 * a
                                          else
                                              tmp = ((x - y) * 60.0d0) / (z - t)
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if ((a <= -6.5e-84) || !(a <= 2.4e+27)) {
                                      		tmp = 120.0 * a;
                                      	} else {
                                      		tmp = ((x - y) * 60.0) / (z - t);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a):
                                      	tmp = 0
                                      	if (a <= -6.5e-84) or not (a <= 2.4e+27):
                                      		tmp = 120.0 * a
                                      	else:
                                      		tmp = ((x - y) * 60.0) / (z - t)
                                      	return tmp
                                      
                                      function code(x, y, z, t, a)
                                      	tmp = 0.0
                                      	if ((a <= -6.5e-84) || !(a <= 2.4e+27))
                                      		tmp = Float64(120.0 * a);
                                      	else
                                      		tmp = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t));
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a)
                                      	tmp = 0.0;
                                      	if ((a <= -6.5e-84) || ~((a <= 2.4e+27)))
                                      		tmp = 120.0 * a;
                                      	else
                                      		tmp = ((x - y) * 60.0) / (z - t);
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6.5e-84], N[Not[LessEqual[a, 2.4e+27]], $MachinePrecision]], N[(120.0 * a), $MachinePrecision], N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;a \leq -6.5 \cdot 10^{-84} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\
                                      \;\;\;\;120 \cdot a\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\frac{\left(x - y\right) \cdot 60}{z - t}\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if a < -6.50000000000000022e-84 or 2.39999999999999998e27 < a

                                        1. Initial program 99.2%

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

                                          \[\leadsto \color{blue}{120 \cdot a} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f6475.2

                                            \[\leadsto \color{blue}{120 \cdot a} \]
                                        5. Applied rewrites75.2%

                                          \[\leadsto \color{blue}{120 \cdot a} \]

                                        if -6.50000000000000022e-84 < a < 2.39999999999999998e27

                                        1. Initial program 99.6%

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

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

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

                                            \[\leadsto \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t} - \left(\mathsf{neg}\left(a\right)\right) \cdot 120} \]
                                          4. fp-cancel-sub-sign-invN/A

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

                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a\right)\right)\right)\right) \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t}} \]
                                          6. remove-double-negN/A

                                            \[\leadsto \color{blue}{a} \cdot 120 + \frac{60 \cdot \left(x - y\right)}{z - t} \]
                                          7. lower-fma.f6499.6

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{z - t} \cdot \left(x - y\right)}\right) \]
                                          14. lower-/.f6499.7

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

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

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

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

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

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

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

                                            \[\leadsto \frac{\color{blue}{\left(x - y\right)} \cdot 60}{z - t} \]
                                          6. lower--.f6480.2

                                            \[\leadsto \frac{\left(x - y\right) \cdot 60}{\color{blue}{z - t}} \]
                                        7. Applied rewrites80.2%

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

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{-84} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot 60}{z - t}\\ \end{array} \]
                                      5. Add Preprocessing

                                      Alternative 18: 56.8% accurate, 1.0× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.35 \cdot 10^{-86} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z - t} \cdot -60\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (if (or (<= a -1.35e-86) (not (<= a 2.4e+27)))
                                         (* 120.0 a)
                                         (* (/ y (- z t)) -60.0)))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if ((a <= -1.35e-86) || !(a <= 2.4e+27)) {
                                      		tmp = 120.0 * a;
                                      	} else {
                                      		tmp = (y / (z - t)) * -60.0;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      module fmin_fmax_functions
                                          implicit none
                                          private
                                          public fmax
                                          public fmin
                                      
                                          interface fmax
                                              module procedure fmax88
                                              module procedure fmax44
                                              module procedure fmax84
                                              module procedure fmax48
                                          end interface
                                          interface fmin
                                              module procedure fmin88
                                              module procedure fmin44
                                              module procedure fmin84
                                              module procedure fmin48
                                          end interface
                                      contains
                                          real(8) function fmax88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmax44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmax84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmax48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmin44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmin48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                          end function
                                      end module
                                      
                                      real(8) function code(x, y, z, t, a)
                                      use fmin_fmax_functions
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8) :: tmp
                                          if ((a <= (-1.35d-86)) .or. (.not. (a <= 2.4d+27))) then
                                              tmp = 120.0d0 * a
                                          else
                                              tmp = (y / (z - t)) * (-60.0d0)
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if ((a <= -1.35e-86) || !(a <= 2.4e+27)) {
                                      		tmp = 120.0 * a;
                                      	} else {
                                      		tmp = (y / (z - t)) * -60.0;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a):
                                      	tmp = 0
                                      	if (a <= -1.35e-86) or not (a <= 2.4e+27):
                                      		tmp = 120.0 * a
                                      	else:
                                      		tmp = (y / (z - t)) * -60.0
                                      	return tmp
                                      
                                      function code(x, y, z, t, a)
                                      	tmp = 0.0
                                      	if ((a <= -1.35e-86) || !(a <= 2.4e+27))
                                      		tmp = Float64(120.0 * a);
                                      	else
                                      		tmp = Float64(Float64(y / Float64(z - t)) * -60.0);
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a)
                                      	tmp = 0.0;
                                      	if ((a <= -1.35e-86) || ~((a <= 2.4e+27)))
                                      		tmp = 120.0 * a;
                                      	else
                                      		tmp = (y / (z - t)) * -60.0;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.35e-86], N[Not[LessEqual[a, 2.4e+27]], $MachinePrecision]], N[(120.0 * a), $MachinePrecision], N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;a \leq -1.35 \cdot 10^{-86} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\
                                      \;\;\;\;120 \cdot a\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\frac{y}{z - t} \cdot -60\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if a < -1.34999999999999996e-86 or 2.39999999999999998e27 < a

                                        1. Initial program 99.2%

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

                                          \[\leadsto \color{blue}{120 \cdot a} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f6475.2

                                            \[\leadsto \color{blue}{120 \cdot a} \]
                                        5. Applied rewrites75.2%

                                          \[\leadsto \color{blue}{120 \cdot a} \]

                                        if -1.34999999999999996e-86 < a < 2.39999999999999998e27

                                        1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \left(x - y\right) \cdot \color{blue}{\frac{60}{z - t}} \]
                                          11. lower--.f6480.3

                                            \[\leadsto \left(x - y\right) \cdot \frac{60}{\color{blue}{z - t}} \]
                                        5. Applied rewrites80.3%

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

                                          \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites46.1%

                                            \[\leadsto \frac{y}{z - t} \cdot \color{blue}{-60} \]
                                        8. Recombined 2 regimes into one program.
                                        9. Final simplification62.5%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.35 \cdot 10^{-86} \lor \neg \left(a \leq 2.4 \cdot 10^{+27}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z - t} \cdot -60\\ \end{array} \]
                                        10. Add Preprocessing

                                        Alternative 19: 52.0% accurate, 1.1× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -9 \cdot 10^{-163} \lor \neg \left(a \leq 2.2 \cdot 10^{-172}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{t} \cdot -60\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (if (or (<= a -9e-163) (not (<= a 2.2e-172))) (* 120.0 a) (* (/ x t) -60.0)))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double tmp;
                                        	if ((a <= -9e-163) || !(a <= 2.2e-172)) {
                                        		tmp = 120.0 * a;
                                        	} else {
                                        		tmp = (x / t) * -60.0;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        module fmin_fmax_functions
                                            implicit none
                                            private
                                            public fmax
                                            public fmin
                                        
                                            interface fmax
                                                module procedure fmax88
                                                module procedure fmax44
                                                module procedure fmax84
                                                module procedure fmax48
                                            end interface
                                            interface fmin
                                                module procedure fmin88
                                                module procedure fmin44
                                                module procedure fmin84
                                                module procedure fmin48
                                            end interface
                                        contains
                                            real(8) function fmax88(x, y) result (res)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                            end function
                                            real(4) function fmax44(x, y) result (res)
                                                real(4), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                            end function
                                            real(8) function fmax84(x, y) result(res)
                                                real(8), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                            end function
                                            real(8) function fmax48(x, y) result(res)
                                                real(4), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                            end function
                                            real(8) function fmin88(x, y) result (res)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                            end function
                                            real(4) function fmin44(x, y) result (res)
                                                real(4), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                            end function
                                            real(8) function fmin84(x, y) result(res)
                                                real(8), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                            end function
                                            real(8) function fmin48(x, y) result(res)
                                                real(4), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                            end function
                                        end module
                                        
                                        real(8) function code(x, y, z, t, a)
                                        use fmin_fmax_functions
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            real(8), intent (in) :: z
                                            real(8), intent (in) :: t
                                            real(8), intent (in) :: a
                                            real(8) :: tmp
                                            if ((a <= (-9d-163)) .or. (.not. (a <= 2.2d-172))) then
                                                tmp = 120.0d0 * a
                                            else
                                                tmp = (x / t) * (-60.0d0)
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a) {
                                        	double tmp;
                                        	if ((a <= -9e-163) || !(a <= 2.2e-172)) {
                                        		tmp = 120.0 * a;
                                        	} else {
                                        		tmp = (x / t) * -60.0;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a):
                                        	tmp = 0
                                        	if (a <= -9e-163) or not (a <= 2.2e-172):
                                        		tmp = 120.0 * a
                                        	else:
                                        		tmp = (x / t) * -60.0
                                        	return tmp
                                        
                                        function code(x, y, z, t, a)
                                        	tmp = 0.0
                                        	if ((a <= -9e-163) || !(a <= 2.2e-172))
                                        		tmp = Float64(120.0 * a);
                                        	else
                                        		tmp = Float64(Float64(x / t) * -60.0);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a)
                                        	tmp = 0.0;
                                        	if ((a <= -9e-163) || ~((a <= 2.2e-172)))
                                        		tmp = 120.0 * a;
                                        	else
                                        		tmp = (x / t) * -60.0;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9e-163], N[Not[LessEqual[a, 2.2e-172]], $MachinePrecision]], N[(120.0 * a), $MachinePrecision], N[(N[(x / t), $MachinePrecision] * -60.0), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;a \leq -9 \cdot 10^{-163} \lor \neg \left(a \leq 2.2 \cdot 10^{-172}\right):\\
                                        \;\;\;\;120 \cdot a\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\frac{x}{t} \cdot -60\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if a < -8.9999999999999995e-163 or 2.20000000000000009e-172 < a

                                          1. Initial program 99.4%

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

                                            \[\leadsto \color{blue}{120 \cdot a} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f6463.8

                                              \[\leadsto \color{blue}{120 \cdot a} \]
                                          5. Applied rewrites63.8%

                                            \[\leadsto \color{blue}{120 \cdot a} \]

                                          if -8.9999999999999995e-163 < a < 2.20000000000000009e-172

                                          1. Initial program 99.6%

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

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

                                              \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                                            2. lower-fma.f64N/A

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                                            3. lower-/.f64N/A

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

                                              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                                            5. lower-*.f6453.9

                                              \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                                          5. Applied rewrites53.9%

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

                                            \[\leadsto -60 \cdot \color{blue}{\frac{x}{t}} \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites25.2%

                                              \[\leadsto \frac{x}{t} \cdot \color{blue}{-60} \]
                                          8. Recombined 2 regimes into one program.
                                          9. Final simplification55.3%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -9 \cdot 10^{-163} \lor \neg \left(a \leq 2.2 \cdot 10^{-172}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{t} \cdot -60\\ \end{array} \]
                                          10. Add Preprocessing

                                          Alternative 20: 52.0% accurate, 1.1× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -9 \cdot 10^{-163} \lor \neg \left(a \leq 2.2 \cdot 10^{-172}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{-60}{t}\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a)
                                           :precision binary64
                                           (if (or (<= a -9e-163) (not (<= a 2.2e-172))) (* 120.0 a) (* x (/ -60.0 t))))
                                          double code(double x, double y, double z, double t, double a) {
                                          	double tmp;
                                          	if ((a <= -9e-163) || !(a <= 2.2e-172)) {
                                          		tmp = 120.0 * a;
                                          	} else {
                                          		tmp = x * (-60.0 / t);
                                          	}
                                          	return tmp;
                                          }
                                          
                                          module fmin_fmax_functions
                                              implicit none
                                              private
                                              public fmax
                                              public fmin
                                          
                                              interface fmax
                                                  module procedure fmax88
                                                  module procedure fmax44
                                                  module procedure fmax84
                                                  module procedure fmax48
                                              end interface
                                              interface fmin
                                                  module procedure fmin88
                                                  module procedure fmin44
                                                  module procedure fmin84
                                                  module procedure fmin48
                                              end interface
                                          contains
                                              real(8) function fmax88(x, y) result (res)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                              end function
                                              real(4) function fmax44(x, y) result (res)
                                                  real(4), intent (in) :: x
                                                  real(4), intent (in) :: y
                                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                              end function
                                              real(8) function fmax84(x, y) result(res)
                                                  real(8), intent (in) :: x
                                                  real(4), intent (in) :: y
                                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                              end function
                                              real(8) function fmax48(x, y) result(res)
                                                  real(4), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                              end function
                                              real(8) function fmin88(x, y) result (res)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                              end function
                                              real(4) function fmin44(x, y) result (res)
                                                  real(4), intent (in) :: x
                                                  real(4), intent (in) :: y
                                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                              end function
                                              real(8) function fmin84(x, y) result(res)
                                                  real(8), intent (in) :: x
                                                  real(4), intent (in) :: y
                                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                              end function
                                              real(8) function fmin48(x, y) result(res)
                                                  real(4), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                              end function
                                          end module
                                          
                                          real(8) function code(x, y, z, t, a)
                                          use fmin_fmax_functions
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              real(8), intent (in) :: z
                                              real(8), intent (in) :: t
                                              real(8), intent (in) :: a
                                              real(8) :: tmp
                                              if ((a <= (-9d-163)) .or. (.not. (a <= 2.2d-172))) then
                                                  tmp = 120.0d0 * a
                                              else
                                                  tmp = x * ((-60.0d0) / t)
                                              end if
                                              code = tmp
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t, double a) {
                                          	double tmp;
                                          	if ((a <= -9e-163) || !(a <= 2.2e-172)) {
                                          		tmp = 120.0 * a;
                                          	} else {
                                          		tmp = x * (-60.0 / t);
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y, z, t, a):
                                          	tmp = 0
                                          	if (a <= -9e-163) or not (a <= 2.2e-172):
                                          		tmp = 120.0 * a
                                          	else:
                                          		tmp = x * (-60.0 / t)
                                          	return tmp
                                          
                                          function code(x, y, z, t, a)
                                          	tmp = 0.0
                                          	if ((a <= -9e-163) || !(a <= 2.2e-172))
                                          		tmp = Float64(120.0 * a);
                                          	else
                                          		tmp = Float64(x * Float64(-60.0 / t));
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y, z, t, a)
                                          	tmp = 0.0;
                                          	if ((a <= -9e-163) || ~((a <= 2.2e-172)))
                                          		tmp = 120.0 * a;
                                          	else
                                          		tmp = x * (-60.0 / t);
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9e-163], N[Not[LessEqual[a, 2.2e-172]], $MachinePrecision]], N[(120.0 * a), $MachinePrecision], N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;a \leq -9 \cdot 10^{-163} \lor \neg \left(a \leq 2.2 \cdot 10^{-172}\right):\\
                                          \;\;\;\;120 \cdot a\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;x \cdot \frac{-60}{t}\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if a < -8.9999999999999995e-163 or 2.20000000000000009e-172 < a

                                            1. Initial program 99.4%

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

                                              \[\leadsto \color{blue}{120 \cdot a} \]
                                            4. Step-by-step derivation
                                              1. lower-*.f6463.8

                                                \[\leadsto \color{blue}{120 \cdot a} \]
                                            5. Applied rewrites63.8%

                                              \[\leadsto \color{blue}{120 \cdot a} \]

                                            if -8.9999999999999995e-163 < a < 2.20000000000000009e-172

                                            1. Initial program 99.6%

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

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

                                                \[\leadsto \color{blue}{\frac{x - y}{t} \cdot -60} + 120 \cdot a \]
                                              2. lower-fma.f64N/A

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{x - y}{t}, -60, 120 \cdot a\right)} \]
                                              3. lower-/.f64N/A

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

                                                \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{x - y}}{t}, -60, 120 \cdot a\right) \]
                                              5. lower-*.f6453.9

                                                \[\leadsto \mathsf{fma}\left(\frac{x - y}{t}, -60, \color{blue}{120 \cdot a}\right) \]
                                            5. Applied rewrites53.9%

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

                                              \[\leadsto -60 \cdot \color{blue}{\frac{x}{t}} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites25.2%

                                                \[\leadsto \frac{x}{t} \cdot \color{blue}{-60} \]
                                              2. Step-by-step derivation
                                                1. Applied rewrites25.2%

                                                  \[\leadsto x \cdot \frac{-60}{\color{blue}{t}} \]
                                              3. Recombined 2 regimes into one program.
                                              4. Final simplification55.3%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -9 \cdot 10^{-163} \lor \neg \left(a \leq 2.2 \cdot 10^{-172}\right):\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{-60}{t}\\ \end{array} \]
                                              5. Add Preprocessing

                                              Alternative 21: 50.0% accurate, 5.2× speedup?

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

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

                                                \[\leadsto \color{blue}{120 \cdot a} \]
                                              4. Step-by-step derivation
                                                1. lower-*.f6451.7

                                                  \[\leadsto \color{blue}{120 \cdot a} \]
                                              5. Applied rewrites51.7%

                                                \[\leadsto \color{blue}{120 \cdot a} \]
                                              6. Add Preprocessing

                                              Developer Target 1: 99.8% accurate, 0.8× speedup?

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

                                              Reproduce

                                              ?
                                              herbie shell --seed 2024352 
                                              (FPCore (x y z t a)
                                                :name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
                                                :precision binary64
                                              
                                                :alt
                                                (! :herbie-platform default (+ (/ 60 (/ (- z t) (- x y))) (* a 120)))
                                              
                                                (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))