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

Percentage Accurate: 99.3% → 99.8%
Time: 4.0s
Alternatives: 14
Speedup: 1.0×

Specification

?
\[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
(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]
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120

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 14 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?

\[\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120 \]
(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]
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120

Alternative 1: 99.8% accurate, 1.0× speedup?

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

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

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

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

      \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
    4. mult-flipN/A

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

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

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

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

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

      \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
    10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 89.3% accurate, 0.8× speedup?

\[\begin{array}{l} \mathbf{if}\;y \leq -1.4 \cdot 10^{+121}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{y \cdot 60}{t - z}\right)\\ \mathbf{elif}\;y \leq 1.1 \cdot 10^{-18}:\\ \;\;\;\;\mathsf{fma}\left(60, \frac{x}{z - t}, 120 \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, 120, \frac{-60}{z - t} \cdot y\right)\\ \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= y -1.4e+121)
   (fma a 120.0 (/ (* y 60.0) (- t z)))
   (if (<= y 1.1e-18)
     (fma 60.0 (/ x (- z t)) (* 120.0 a))
     (fma a 120.0 (* (/ -60.0 (- z t)) y)))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (y <= -1.4e+121) {
		tmp = fma(a, 120.0, ((y * 60.0) / (t - z)));
	} else if (y <= 1.1e-18) {
		tmp = fma(60.0, (x / (z - t)), (120.0 * a));
	} else {
		tmp = fma(a, 120.0, ((-60.0 / (z - t)) * y));
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if (y <= -1.4e+121)
		tmp = fma(a, 120.0, Float64(Float64(y * 60.0) / Float64(t - z)));
	elseif (y <= 1.1e-18)
		tmp = fma(60.0, Float64(x / Float64(z - t)), Float64(120.0 * a));
	else
		tmp = fma(a, 120.0, Float64(Float64(-60.0 / Float64(z - t)) * y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.4e+121], N[(a * 120.0 + N[(N[(y * 60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-18], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(120.0 * a), $MachinePrecision]), $MachinePrecision], N[(a * 120.0 + N[(N[(-60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \cdot 10^{+121}:\\
\;\;\;\;\mathsf{fma}\left(a, 120, \frac{y \cdot 60}{t - z}\right)\\

\mathbf{elif}\;y \leq 1.1 \cdot 10^{-18}:\\
\;\;\;\;\mathsf{fma}\left(60, \frac{x}{z - t}, 120 \cdot a\right)\\

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


\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -1.40000000000000003e121

    1. Initial program 99.3%

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

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

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

        \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
      4. mult-flipN/A

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

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

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

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

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

        \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
      10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(a, 120, \frac{\mathsf{neg}\left(\color{blue}{y \cdot -60}\right)}{\mathsf{neg}\left(\left(z - t\right)\right)}\right) \]
        7. distribute-rgt-neg-outN/A

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

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

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

          \[\leadsto \mathsf{fma}\left(a, 120, \frac{y \cdot 60}{\mathsf{neg}\left(\color{blue}{\left(z - t\right)}\right)}\right) \]
        11. sub-negate-revN/A

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

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

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

      if -1.40000000000000003e121 < y < 1.0999999999999999e-18

      1. Initial program 99.3%

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

        \[\leadsto \color{blue}{60 \cdot \frac{x}{z - t} + 120 \cdot a} \]
      3. Step-by-step derivation
        1. lower-fma.f64N/A

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

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

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

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

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

      if 1.0999999999999999e-18 < y

      1. Initial program 99.3%

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

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

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

          \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
        4. mult-flipN/A

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

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

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

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

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

          \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
        10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 3: 89.3% accurate, 0.8× speedup?

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

        1. Initial program 99.3%

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

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

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

            \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
          4. mult-flipN/A

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

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

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

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

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

            \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
          10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.40000000000000003e121 < y < 1.0999999999999999e-18

          1. Initial program 99.3%

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

            \[\leadsto \color{blue}{60 \cdot \frac{x}{z - t} + 120 \cdot a} \]
          3. Step-by-step derivation
            1. lower-fma.f64N/A

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

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

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

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

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

        Alternative 4: 89.1% accurate, 0.8× speedup?

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

          1. Initial program 99.3%

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

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

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

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

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

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

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

          if -1.40000000000000003e121 < y < 1.0999999999999999e-18

          1. Initial program 99.3%

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

            \[\leadsto \color{blue}{60 \cdot \frac{x}{z - t} + 120 \cdot a} \]
          3. Step-by-step derivation
            1. lower-fma.f64N/A

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

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

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

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

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

        Alternative 5: 82.7% accurate, 0.8× speedup?

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

          1. Initial program 99.3%

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

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

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

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

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

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

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

          if -2.8000000000000001e-37 < a < 1.2499999999999999e-76

          1. Initial program 99.3%

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

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

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

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

              \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z} - t} \]
            4. lower--.f6449.6

              \[\leadsto 60 \cdot \frac{x - y}{z - \color{blue}{t}} \]
          4. Applied rewrites49.6%

            \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
        3. Recombined 2 regimes into one program.
        4. Add Preprocessing

        Alternative 6: 73.7% accurate, 0.9× speedup?

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

          1. Initial program 99.3%

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

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

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

              \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
            4. mult-flipN/A

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

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

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

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

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

              \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
            10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{t}} \cdot y\right) \]
            3. Step-by-step derivation
              1. lower-/.f6454.9

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

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

            if -9.5e16 < a < 6.2e9

            1. Initial program 99.3%

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

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

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

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

                \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z} - t} \]
              4. lower--.f6449.6

                \[\leadsto 60 \cdot \frac{x - y}{z - \color{blue}{t}} \]
            4. Applied rewrites49.6%

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

            if 6.2e9 < a

            1. Initial program 99.3%

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

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

                \[\leadsto 120 \cdot \color{blue}{a} \]
            4. Applied rewrites51.6%

              \[\leadsto \color{blue}{120 \cdot a} \]
          6. Recombined 3 regimes into one program.
          7. Add Preprocessing

          Alternative 7: 63.4% accurate, 0.8× speedup?

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

            1. Initial program 99.3%

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

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

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

                \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
              4. mult-flipN/A

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

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

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

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

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

                \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
              10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{t}} \cdot y\right) \]
              3. Step-by-step derivation
                1. lower-/.f6454.9

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

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

              if -5.7999999999999999e88 < t < -2.39999999999999994e-144

              1. Initial program 99.3%

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

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

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

                  \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
                4. mult-flipN/A

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

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

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

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

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

                  \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
                10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -2.39999999999999994e-144 < t < 2.49999999999999999e-71

                1. Initial program 99.3%

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

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

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

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

                    \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z} - t} \]
                  4. lower--.f6449.6

                    \[\leadsto 60 \cdot \frac{x - y}{z - \color{blue}{t}} \]
                4. Applied rewrites49.6%

                  \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                5. Taylor expanded in z around inf

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

                    \[\leadsto 60 \cdot \frac{x - y}{z} \]
                  2. lower--.f6428.3

                    \[\leadsto 60 \cdot \frac{x - y}{z} \]
                7. Applied rewrites28.3%

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

                if 2.49999999999999999e-71 < t

                1. Initial program 99.3%

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

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

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

                    \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
                  4. mult-flipN/A

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

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

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

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

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

                    \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
                  10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(a, 120, \frac{\mathsf{neg}\left(\color{blue}{y \cdot -60}\right)}{\mathsf{neg}\left(\left(z - t\right)\right)}\right) \]
                    7. distribute-rgt-neg-outN/A

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

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

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

                      \[\leadsto \mathsf{fma}\left(a, 120, \frac{y \cdot 60}{\mathsf{neg}\left(\color{blue}{\left(z - t\right)}\right)}\right) \]
                    11. sub-negate-revN/A

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

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

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

                    \[\leadsto \mathsf{fma}\left(a, 120, \frac{y \cdot 60}{\color{blue}{t}}\right) \]
                  5. Step-by-step derivation
                    1. Applied rewrites54.8%

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

                  Alternative 8: 63.3% accurate, 0.8× speedup?

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

                    1. Initial program 99.3%

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

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

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

                        \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
                      4. mult-flipN/A

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

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

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

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

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

                        \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
                      10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{60}{t}} \cdot y\right) \]
                      3. Step-by-step derivation
                        1. lower-/.f6454.9

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

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

                      if -5.7999999999999999e88 < t < -2.39999999999999994e-144

                      1. Initial program 99.3%

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

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

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

                          \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
                        4. mult-flipN/A

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

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

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

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

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

                          \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
                        10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -2.39999999999999994e-144 < t < 2.49999999999999999e-71

                        1. Initial program 99.3%

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

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

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

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

                            \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z} - t} \]
                          4. lower--.f6449.6

                            \[\leadsto 60 \cdot \frac{x - y}{z - \color{blue}{t}} \]
                        4. Applied rewrites49.6%

                          \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                        5. Taylor expanded in z around inf

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

                            \[\leadsto 60 \cdot \frac{x - y}{z} \]
                          2. lower--.f6428.3

                            \[\leadsto 60 \cdot \frac{x - y}{z} \]
                        7. Applied rewrites28.3%

                          \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z}} \]
                      6. Recombined 3 regimes into one program.
                      7. Add Preprocessing

                      Alternative 9: 61.3% accurate, 0.9× speedup?

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

                        1. Initial program 99.3%

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

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

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

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

                            \[\leadsto 60 \cdot \frac{x}{z - \color{blue}{t}} \]
                        4. Applied rewrites26.4%

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

                        if -2.79999999999999987e151 < x < 3.04999999999999988e57

                        1. Initial program 99.3%

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

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

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

                            \[\leadsto a \cdot 120 + \color{blue}{\frac{60 \cdot \left(x - y\right)}{z - t}} \]
                          4. mult-flipN/A

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

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

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

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

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

                            \[\leadsto a \cdot 120 - \color{blue}{\left(\mathsf{neg}\left(\left(x - y\right) \cdot \left(60 \cdot \frac{1}{z - t}\right)\right)\right)} \]
                          10. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(a, 120, \color{blue}{\frac{-60}{z}} \cdot y\right) \]
                        6. Recombined 2 regimes into one program.
                        7. Add Preprocessing

                        Alternative 10: 58.9% accurate, 1.0× speedup?

                        \[\begin{array}{l} \mathbf{if}\;a \leq -5900000000000:\\ \;\;\;\;120 \cdot a\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{-59}:\\ \;\;\;\;60 \cdot \frac{x - y}{z}\\ \mathbf{else}:\\ \;\;\;\;120 \cdot a\\ \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (if (<= a -5900000000000.0)
                           (* 120.0 a)
                           (if (<= a 7.8e-59) (* 60.0 (/ (- x y) z)) (* 120.0 a))))
                        double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (a <= -5900000000000.0) {
                        		tmp = 120.0 * a;
                        	} else if (a <= 7.8e-59) {
                        		tmp = 60.0 * ((x - y) / z);
                        	} 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 <= (-5900000000000.0d0)) then
                                tmp = 120.0d0 * a
                            else if (a <= 7.8d-59) then
                                tmp = 60.0d0 * ((x - y) / z)
                            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 <= -5900000000000.0) {
                        		tmp = 120.0 * a;
                        	} else if (a <= 7.8e-59) {
                        		tmp = 60.0 * ((x - y) / z);
                        	} else {
                        		tmp = 120.0 * a;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a):
                        	tmp = 0
                        	if a <= -5900000000000.0:
                        		tmp = 120.0 * a
                        	elif a <= 7.8e-59:
                        		tmp = 60.0 * ((x - y) / z)
                        	else:
                        		tmp = 120.0 * a
                        	return tmp
                        
                        function code(x, y, z, t, a)
                        	tmp = 0.0
                        	if (a <= -5900000000000.0)
                        		tmp = Float64(120.0 * a);
                        	elseif (a <= 7.8e-59)
                        		tmp = Float64(60.0 * Float64(Float64(x - y) / z));
                        	else
                        		tmp = Float64(120.0 * a);
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a)
                        	tmp = 0.0;
                        	if (a <= -5900000000000.0)
                        		tmp = 120.0 * a;
                        	elseif (a <= 7.8e-59)
                        		tmp = 60.0 * ((x - y) / z);
                        	else
                        		tmp = 120.0 * a;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5900000000000.0], N[(120.0 * a), $MachinePrecision], If[LessEqual[a, 7.8e-59], N[(60.0 * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(120.0 * a), $MachinePrecision]]]
                        
                        \begin{array}{l}
                        \mathbf{if}\;a \leq -5900000000000:\\
                        \;\;\;\;120 \cdot a\\
                        
                        \mathbf{elif}\;a \leq 7.8 \cdot 10^{-59}:\\
                        \;\;\;\;60 \cdot \frac{x - y}{z}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;120 \cdot a\\
                        
                        
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if a < -5.9e12 or 7.80000000000000038e-59 < a

                          1. Initial program 99.3%

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

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

                              \[\leadsto 120 \cdot \color{blue}{a} \]
                          4. Applied rewrites51.6%

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

                          if -5.9e12 < a < 7.80000000000000038e-59

                          1. Initial program 99.3%

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

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

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

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

                              \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z} - t} \]
                            4. lower--.f6449.6

                              \[\leadsto 60 \cdot \frac{x - y}{z - \color{blue}{t}} \]
                          4. Applied rewrites49.6%

                            \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                          5. Taylor expanded in z around inf

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

                              \[\leadsto 60 \cdot \frac{x - y}{z} \]
                            2. lower--.f6428.3

                              \[\leadsto 60 \cdot \frac{x - y}{z} \]
                          7. Applied rewrites28.3%

                            \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z}} \]
                        3. Recombined 2 regimes into one program.
                        4. Add Preprocessing

                        Alternative 11: 58.6% accurate, 1.0× speedup?

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

                          1. Initial program 99.3%

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

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

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

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

                              \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z} - t} \]
                            4. lower--.f6449.6

                              \[\leadsto 60 \cdot \frac{x - y}{z - \color{blue}{t}} \]
                          4. Applied rewrites49.6%

                            \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                          5. Taylor expanded in z around 0

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

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

                              \[\leadsto -60 \cdot \frac{x - y}{t} \]
                            3. lower--.f6427.5

                              \[\leadsto -60 \cdot \frac{x - y}{t} \]
                          7. Applied rewrites27.5%

                            \[\leadsto -60 \cdot \color{blue}{\frac{x - y}{t}} \]
                          8. Taylor expanded in x around 0

                            \[\leadsto 60 \cdot \frac{y}{\color{blue}{t}} \]
                          9. Step-by-step derivation
                            1. lower-*.f64N/A

                              \[\leadsto 60 \cdot \frac{y}{t} \]
                            2. lower-/.f6415.5

                              \[\leadsto 60 \cdot \frac{y}{t} \]
                          10. Applied rewrites15.5%

                            \[\leadsto 60 \cdot \frac{y}{\color{blue}{t}} \]
                          11. Taylor expanded in x around 0

                            \[\leadsto -60 \cdot \color{blue}{\frac{y}{z - t}} \]
                          12. Step-by-step derivation
                            1. lower-*.f64N/A

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

                              \[\leadsto -60 \cdot \frac{y}{z - \color{blue}{t}} \]
                            3. lower--.f6426.0

                              \[\leadsto -60 \cdot \frac{y}{z - t} \]
                          13. Applied rewrites26.0%

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

                          if -2.35e107 < y < 8.9999999999999997e133

                          1. Initial program 99.3%

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

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

                              \[\leadsto 120 \cdot \color{blue}{a} \]
                          4. Applied rewrites51.6%

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

                        Alternative 12: 55.7% accurate, 0.5× speedup?

                        \[\begin{array}{l} t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+202}:\\ \;\;\;\;60 \cdot \frac{x}{z}\\ \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+185}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;-60 \cdot \frac{x}{t}\\ \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
                           (if (<= t_1 -5e+202)
                             (* 60.0 (/ x z))
                             (if (<= t_1 2e+185) (* 120.0 a) (* -60.0 (/ x t))))))
                        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+202) {
                        		tmp = 60.0 * (x / z);
                        	} else if (t_1 <= 2e+185) {
                        		tmp = 120.0 * a;
                        	} else {
                        		tmp = -60.0 * (x / 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) :: t_1
                            real(8) :: tmp
                            t_1 = (60.0d0 * (x - y)) / (z - t)
                            if (t_1 <= (-5d+202)) then
                                tmp = 60.0d0 * (x / z)
                            else if (t_1 <= 2d+185) then
                                tmp = 120.0d0 * a
                            else
                                tmp = (-60.0d0) * (x / t)
                            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+202) {
                        		tmp = 60.0 * (x / z);
                        	} else if (t_1 <= 2e+185) {
                        		tmp = 120.0 * a;
                        	} else {
                        		tmp = -60.0 * (x / t);
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a):
                        	t_1 = (60.0 * (x - y)) / (z - t)
                        	tmp = 0
                        	if t_1 <= -5e+202:
                        		tmp = 60.0 * (x / z)
                        	elif t_1 <= 2e+185:
                        		tmp = 120.0 * a
                        	else:
                        		tmp = -60.0 * (x / t)
                        	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+202)
                        		tmp = Float64(60.0 * Float64(x / z));
                        	elseif (t_1 <= 2e+185)
                        		tmp = Float64(120.0 * a);
                        	else
                        		tmp = Float64(-60.0 * Float64(x / t));
                        	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+202)
                        		tmp = 60.0 * (x / z);
                        	elseif (t_1 <= 2e+185)
                        		tmp = 120.0 * a;
                        	else
                        		tmp = -60.0 * (x / t);
                        	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+202], N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+185], N[(120.0 * a), $MachinePrecision], N[(-60.0 * N[(x / t), $MachinePrecision]), $MachinePrecision]]]]
                        
                        \begin{array}{l}
                        t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
                        \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+202}:\\
                        \;\;\;\;60 \cdot \frac{x}{z}\\
                        
                        \mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+185}:\\
                        \;\;\;\;120 \cdot a\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;-60 \cdot \frac{x}{t}\\
                        
                        
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -4.9999999999999999e202

                          1. Initial program 99.3%

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

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

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

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

                              \[\leadsto 60 \cdot \frac{x}{z - \color{blue}{t}} \]
                          4. Applied rewrites26.4%

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

                            \[\leadsto 60 \cdot \frac{x}{\color{blue}{z}} \]
                          6. Step-by-step derivation
                            1. lower-/.f6416.2

                              \[\leadsto 60 \cdot \frac{x}{z} \]
                          7. Applied rewrites16.2%

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

                          if -4.9999999999999999e202 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 2e185

                          1. Initial program 99.3%

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

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

                              \[\leadsto 120 \cdot \color{blue}{a} \]
                          4. Applied rewrites51.6%

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

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

                          1. Initial program 99.3%

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

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

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

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

                              \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z} - t} \]
                            4. lower--.f6449.6

                              \[\leadsto 60 \cdot \frac{x - y}{z - \color{blue}{t}} \]
                          4. Applied rewrites49.6%

                            \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                          5. Taylor expanded in z around 0

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

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

                              \[\leadsto -60 \cdot \frac{x - y}{t} \]
                            3. lower--.f6427.5

                              \[\leadsto -60 \cdot \frac{x - y}{t} \]
                          7. Applied rewrites27.5%

                            \[\leadsto -60 \cdot \color{blue}{\frac{x - y}{t}} \]
                          8. Taylor expanded in x around inf

                            \[\leadsto -60 \cdot \frac{x}{t} \]
                          9. Step-by-step derivation
                            1. lower-/.f6415.5

                              \[\leadsto -60 \cdot \frac{x}{t} \]
                          10. Applied rewrites15.5%

                            \[\leadsto -60 \cdot \frac{x}{t} \]
                        3. Recombined 3 regimes into one program.
                        4. Add Preprocessing

                        Alternative 13: 51.6% accurate, 1.6× speedup?

                        \[\begin{array}{l} \mathbf{if}\;y \leq 9 \cdot 10^{+133}:\\ \;\;\;\;120 \cdot a\\ \mathbf{else}:\\ \;\;\;\;60 \cdot \frac{y}{t}\\ \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (if (<= y 9e+133) (* 120.0 a) (* 60.0 (/ y t))))
                        double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (y <= 9e+133) {
                        		tmp = 120.0 * a;
                        	} else {
                        		tmp = 60.0 * (y / 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 (y <= 9d+133) then
                                tmp = 120.0d0 * a
                            else
                                tmp = 60.0d0 * (y / t)
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (y <= 9e+133) {
                        		tmp = 120.0 * a;
                        	} else {
                        		tmp = 60.0 * (y / t);
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a):
                        	tmp = 0
                        	if y <= 9e+133:
                        		tmp = 120.0 * a
                        	else:
                        		tmp = 60.0 * (y / t)
                        	return tmp
                        
                        function code(x, y, z, t, a)
                        	tmp = 0.0
                        	if (y <= 9e+133)
                        		tmp = Float64(120.0 * a);
                        	else
                        		tmp = Float64(60.0 * Float64(y / t));
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a)
                        	tmp = 0.0;
                        	if (y <= 9e+133)
                        		tmp = 120.0 * a;
                        	else
                        		tmp = 60.0 * (y / t);
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_] := If[LessEqual[y, 9e+133], N[(120.0 * a), $MachinePrecision], N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]]
                        
                        \begin{array}{l}
                        \mathbf{if}\;y \leq 9 \cdot 10^{+133}:\\
                        \;\;\;\;120 \cdot a\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;60 \cdot \frac{y}{t}\\
                        
                        
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if y < 8.9999999999999997e133

                          1. Initial program 99.3%

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

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

                              \[\leadsto 120 \cdot \color{blue}{a} \]
                          4. Applied rewrites51.6%

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

                          if 8.9999999999999997e133 < y

                          1. Initial program 99.3%

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

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

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

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

                              \[\leadsto 60 \cdot \frac{x - y}{\color{blue}{z} - t} \]
                            4. lower--.f6449.6

                              \[\leadsto 60 \cdot \frac{x - y}{z - \color{blue}{t}} \]
                          4. Applied rewrites49.6%

                            \[\leadsto \color{blue}{60 \cdot \frac{x - y}{z - t}} \]
                          5. Taylor expanded in z around 0

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

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

                              \[\leadsto -60 \cdot \frac{x - y}{t} \]
                            3. lower--.f6427.5

                              \[\leadsto -60 \cdot \frac{x - y}{t} \]
                          7. Applied rewrites27.5%

                            \[\leadsto -60 \cdot \color{blue}{\frac{x - y}{t}} \]
                          8. Taylor expanded in x around 0

                            \[\leadsto 60 \cdot \frac{y}{\color{blue}{t}} \]
                          9. Step-by-step derivation
                            1. lower-*.f64N/A

                              \[\leadsto 60 \cdot \frac{y}{t} \]
                            2. lower-/.f6415.5

                              \[\leadsto 60 \cdot \frac{y}{t} \]
                          10. Applied rewrites15.5%

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

                        Alternative 14: 51.2% accurate, 4.6× speedup?

                        \[120 \cdot a \]
                        (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]
                        
                        120 \cdot a
                        
                        Derivation
                        1. Initial program 99.3%

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

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

                            \[\leadsto 120 \cdot \color{blue}{a} \]
                        4. Applied rewrites51.6%

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

                        Reproduce

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