Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B

Percentage Accurate: 85.4% → 98.0%
Time: 5.4s
Alternatives: 10
Speedup: 1.1×

Specification

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

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

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

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

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

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

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

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

Alternative 1: 98.0% accurate, 1.1× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 77.2% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.4 \cdot 10^{+196}:\\
\;\;\;\;y + x\\

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

\mathbf{elif}\;t \leq 200000000000:\\
\;\;\;\;\mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(a, \frac{y}{t}, x + y\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -6.39999999999999985e196

    1. Initial program 73.3%

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

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{y + x} \]
      2. lower-+.f6491.3

        \[\leadsto \color{blue}{y + x} \]
    5. Applied rewrites91.3%

      \[\leadsto \color{blue}{y + x} \]

    if -6.39999999999999985e196 < t < -2.50000000000000019e-44

    1. Initial program 91.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -2.50000000000000019e-44 < t < 2e11

        1. Initial program 95.7%

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

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

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

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

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

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

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

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

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

        if 2e11 < t

        1. Initial program 70.6%

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

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

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

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

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

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

            \[\leadsto x - \frac{\color{blue}{y \cdot t}}{a - t} \]
          6. associate-/l*N/A

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

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

            \[\leadsto x - y \cdot \color{blue}{\frac{t}{a - t}} \]
          9. lower--.f6483.4

            \[\leadsto x - y \cdot \frac{t}{\color{blue}{a - t}} \]
        5. Applied rewrites83.4%

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

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

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

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

        Alternative 3: 75.5% accurate, 0.7× speedup?

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

          1. Initial program 73.3%

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

            \[\leadsto \color{blue}{x + y} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \color{blue}{y + x} \]
            2. lower-+.f6491.3

              \[\leadsto \color{blue}{y + x} \]
          5. Applied rewrites91.3%

            \[\leadsto \color{blue}{y + x} \]

          if -6.39999999999999985e196 < t < -2.50000000000000019e-44

          1. Initial program 91.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -2.50000000000000019e-44 < t < 1.18e11

              1. Initial program 95.7%

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

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

                  \[\leadsto \color{blue}{\frac{y \cdot z}{a} + x} \]
                2. associate-/l*N/A

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{a}, y, x\right)} \]
                5. lower-/.f6481.2

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

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

              if 1.18e11 < t

              1. Initial program 70.6%

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

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

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

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

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

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

                  \[\leadsto x - \frac{\color{blue}{y \cdot t}}{a - t} \]
                6. associate-/l*N/A

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

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

                  \[\leadsto x - y \cdot \color{blue}{\frac{t}{a - t}} \]
                9. lower--.f6483.4

                  \[\leadsto x - y \cdot \frac{t}{\color{blue}{a - t}} \]
              5. Applied rewrites83.4%

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

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

                  \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{y}{t}}, x + y\right) \]
              8. Recombined 4 regimes into one program.
              9. Final simplification79.3%

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

              Alternative 4: 76.1% accurate, 0.7× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -6.4 \cdot 10^{+196}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;t \leq -2.5 \cdot 10^{-44}:\\ \;\;\;\;\mathsf{fma}\left(\frac{-z}{t}, y, x\right)\\ \mathbf{elif}\;t \leq 118000000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (if (<= t -6.4e+196)
                 (+ y x)
                 (if (<= t -2.5e-44)
                   (fma (/ (- z) t) y x)
                   (if (<= t 118000000000.0) (fma (/ z a) y x) (+ y x)))))
              double code(double x, double y, double z, double t, double a) {
              	double tmp;
              	if (t <= -6.4e+196) {
              		tmp = y + x;
              	} else if (t <= -2.5e-44) {
              		tmp = fma((-z / t), y, x);
              	} else if (t <= 118000000000.0) {
              		tmp = fma((z / a), y, x);
              	} else {
              		tmp = y + x;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a)
              	tmp = 0.0
              	if (t <= -6.4e+196)
              		tmp = Float64(y + x);
              	elseif (t <= -2.5e-44)
              		tmp = fma(Float64(Float64(-z) / t), y, x);
              	elseif (t <= 118000000000.0)
              		tmp = fma(Float64(z / a), y, x);
              	else
              		tmp = Float64(y + x);
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.4e+196], N[(y + x), $MachinePrecision], If[LessEqual[t, -2.5e-44], N[(N[((-z) / t), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[t, 118000000000.0], N[(N[(z / a), $MachinePrecision] * y + x), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;t \leq -6.4 \cdot 10^{+196}:\\
              \;\;\;\;y + x\\
              
              \mathbf{elif}\;t \leq -2.5 \cdot 10^{-44}:\\
              \;\;\;\;\mathsf{fma}\left(\frac{-z}{t}, y, x\right)\\
              
              \mathbf{elif}\;t \leq 118000000000:\\
              \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y, x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;y + x\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if t < -6.39999999999999985e196 or 1.18e11 < t

                1. Initial program 71.5%

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

                  \[\leadsto \color{blue}{x + y} \]
                4. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \color{blue}{y + x} \]
                  2. lower-+.f6481.1

                    \[\leadsto \color{blue}{y + x} \]
                5. Applied rewrites81.1%

                  \[\leadsto \color{blue}{y + x} \]

                if -6.39999999999999985e196 < t < -2.50000000000000019e-44

                1. Initial program 91.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -2.50000000000000019e-44 < t < 1.18e11

                    1. Initial program 95.7%

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

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

                        \[\leadsto \color{blue}{\frac{y \cdot z}{a} + x} \]
                      2. associate-/l*N/A

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

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{a}, y, x\right)} \]
                      5. lower-/.f6481.2

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.4 \cdot 10^{+196}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;t \leq -2.5 \cdot 10^{-44}:\\ \;\;\;\;\mathsf{fma}\left(\frac{-z}{t}, y, x\right)\\ \mathbf{elif}\;t \leq 118000000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \]
                  6. Add Preprocessing

                  Alternative 5: 81.9% accurate, 0.8× speedup?

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

                    1. Initial program 84.5%

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

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

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

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

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

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

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

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

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

                    if -1.55000000000000007e-5 < a < 1.9e35

                    1. Initial program 86.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 6: 76.7% accurate, 0.9× speedup?

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

                      1. Initial program 75.3%

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

                        \[\leadsto \color{blue}{x + y} \]
                      4. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \color{blue}{y + x} \]
                        2. lower-+.f6476.5

                          \[\leadsto \color{blue}{y + x} \]
                      5. Applied rewrites76.5%

                        \[\leadsto \color{blue}{y + x} \]

                      if -5.5000000000000001e60 < t < 1.18e11

                      1. Initial program 95.7%

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

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

                          \[\leadsto \color{blue}{\frac{y \cdot z}{a} + x} \]
                        2. associate-/l*N/A

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

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{a}, y, x\right)} \]
                        5. lower-/.f6475.6

                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a}}, y, x\right) \]
                      5. Applied rewrites75.6%

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

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

                    Alternative 7: 96.2% accurate, 0.9× speedup?

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

                      1. Initial program 75.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -3.1999999999999997e182 < t

                        1. Initial program 87.2%

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 8: 58.6% accurate, 1.1× speedup?

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

                        1. Initial program 84.7%

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

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

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

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

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

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

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

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

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

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

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

                          if -2.30000000000000021e130 < z

                          1. Initial program 85.8%

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

                            \[\leadsto \color{blue}{x + y} \]
                          4. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \color{blue}{y + x} \]
                            2. lower-+.f6465.6

                              \[\leadsto \color{blue}{y + x} \]
                          5. Applied rewrites65.6%

                            \[\leadsto \color{blue}{y + x} \]
                        8. Recombined 2 regimes into one program.
                        9. Final simplification63.7%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.3 \cdot 10^{+130}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \]
                        10. Add Preprocessing

                        Alternative 9: 61.6% accurate, 1.9× speedup?

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

                          1. Initial program 85.4%

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

                            \[\leadsto \color{blue}{x + y} \]
                          4. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \color{blue}{y + x} \]
                            2. lower-+.f6461.4

                              \[\leadsto \color{blue}{y + x} \]
                          5. Applied rewrites61.4%

                            \[\leadsto \color{blue}{y + x} \]

                          if 1.4999999999999999e102 < a

                          1. Initial program 86.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(-x\right) \cdot -1 \]
                          7. Step-by-step derivation
                            1. Applied rewrites65.4%

                              \[\leadsto \left(-x\right) \cdot -1 \]
                          8. Recombined 2 regimes into one program.
                          9. Final simplification62.2%

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

                          Alternative 10: 60.2% accurate, 6.5× speedup?

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

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

                            \[\leadsto \color{blue}{x + y} \]
                          4. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \color{blue}{y + x} \]
                            2. lower-+.f6460.3

                              \[\leadsto \color{blue}{y + x} \]
                          5. Applied rewrites60.3%

                            \[\leadsto \color{blue}{y + x} \]
                          6. Final simplification60.3%

                            \[\leadsto y + x \]
                          7. Add Preprocessing

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

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

                          Reproduce

                          ?
                          herbie shell --seed 2025016 
                          (FPCore (x y z t a)
                            :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B"
                            :precision binary64
                          
                            :alt
                            (! :herbie-platform default (+ x (/ y (/ (- a t) (- z t)))))
                          
                            (+ x (/ (* y (- z t)) (- a t))))