Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A

Percentage Accurate: 98.3% → 98.4%
Time: 3.9s
Alternatives: 16
Speedup: 1.0×

Specification

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

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

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

\\
x + y \cdot \frac{z - t}{z - a}
\end{array}

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 98.3% accurate, 1.0× speedup?

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

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

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

\\
x + y \cdot \frac{z - t}{z - a}
\end{array}

Alternative 1: 98.4% accurate, 1.0× speedup?

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

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

real(8) function code(x, y, z, t, 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 - z) / (t - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x + (y / ((a - z) / (t - z)));
}
def code(x, y, z, t, a):
	return x + (y / ((a - z) / (t - z)))
function code(x, y, z, t, a)
	return Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - z))))
end
function tmp = code(x, y, z, t, a)
	tmp = x + (y / ((a - z) / (t - z)));
end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{y}{\frac{a - z}{t - z}}
\end{array}
Derivation
  1. Initial program 98.3%

    \[x + y \cdot \frac{z - t}{z - a} \]
  2. Step-by-step derivation
    1. lift-*.f64N/A

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

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

      \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
    4. mult-flip-revN/A

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

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

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

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

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

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

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

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

      \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
    13. lower--.f6498.4

      \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
  3. Applied rewrites98.4%

    \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
  4. Add Preprocessing

Alternative 2: 98.3% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z - t}{z - a}\\ t_2 := x + \frac{y}{\frac{a - z}{t}}\\ \mathbf{if}\;t\_1 \leq -0.5:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_1 \leq 10^{-21}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - z}{a}, y, x\right)\\ \mathbf{elif}\;t\_1 \leq 1:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{z - a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (- z t) (- z a))) (t_2 (+ x (/ y (/ (- a z) t)))))
   (if (<= t_1 -0.5)
     t_2
     (if (<= t_1 1e-21)
       (fma (/ (- t z) a) y x)
       (if (<= t_1 1.0) (fma (/ z (- z a)) y x) t_2)))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (z - t) / (z - a);
	double t_2 = x + (y / ((a - z) / t));
	double tmp;
	if (t_1 <= -0.5) {
		tmp = t_2;
	} else if (t_1 <= 1e-21) {
		tmp = fma(((t - z) / a), y, x);
	} else if (t_1 <= 1.0) {
		tmp = fma((z / (z - a)), y, x);
	} else {
		tmp = t_2;
	}
	return tmp;
}
function code(x, y, z, t, a)
	t_1 = Float64(Float64(z - t) / Float64(z - a))
	t_2 = Float64(x + Float64(y / Float64(Float64(a - z) / t)))
	tmp = 0.0
	if (t_1 <= -0.5)
		tmp = t_2;
	elseif (t_1 <= 1e-21)
		tmp = fma(Float64(Float64(t - z) / a), y, x);
	elseif (t_1 <= 1.0)
		tmp = fma(Float64(z / Float64(z - a)), y, x);
	else
		tmp = t_2;
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -0.5], t$95$2, If[LessEqual[t$95$1, 1e-21], N[(N[(N[(t - z), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[t$95$1, 1.0], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{z - t}{z - a}\\
t_2 := x + \frac{y}{\frac{a - z}{t}}\\
\mathbf{if}\;t\_1 \leq -0.5:\\
\;\;\;\;t\_2\\

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

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

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (-.f64 z t) (-.f64 z a)) < -0.5 or 1 < (/.f64 (-.f64 z t) (-.f64 z a))

    1. Initial program 98.3%

      \[x + y \cdot \frac{z - t}{z - a} \]
    2. Step-by-step derivation
      1. lift-*.f64N/A

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

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

        \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
      4. mult-flip-revN/A

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

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

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

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

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

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

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

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

        \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
      13. lower--.f6498.4

        \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
    3. Applied rewrites98.4%

      \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
    4. Taylor expanded in z around 0

      \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t}}} \]
    5. Step-by-step derivation
      1. Applied rewrites76.3%

        \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t}}} \]

      if -0.5 < (/.f64 (-.f64 z t) (-.f64 z a)) < 9.99999999999999908e-22

      1. Initial program 98.3%

        \[x + y \cdot \frac{z - t}{z - a} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

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

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

          \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
        4. mult-flip-revN/A

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

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

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

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

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

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

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

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

          \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
        13. lower--.f6498.4

          \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
      3. Applied rewrites98.4%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
      4. Taylor expanded in z around 0

        \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
      5. Step-by-step derivation
        1. Applied rewrites60.0%

          \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
        2. Step-by-step derivation
          1. lift-+.f64N/A

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

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

            \[\leadsto \color{blue}{\frac{y}{\frac{a}{t - z}}} + x \]
          4. div-flipN/A

            \[\leadsto \color{blue}{\frac{1}{\frac{\frac{a}{t - z}}{y}}} + x \]
          5. associate-/r/N/A

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

            \[\leadsto \frac{1}{\color{blue}{\frac{a}{t - z}}} \cdot y + x \]
          7. div-flip-revN/A

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

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

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

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

        if 9.99999999999999908e-22 < (/.f64 (-.f64 z t) (-.f64 z a)) < 1

        1. Initial program 98.3%

          \[x + y \cdot \frac{z - t}{z - a} \]
        2. Taylor expanded in t around 0

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

            \[\leadsto x + y \cdot \frac{z}{\color{blue}{z - a}} \]
          2. lower--.f6471.0

            \[\leadsto x + y \cdot \frac{z}{z - \color{blue}{a}} \]
        4. Applied rewrites71.0%

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

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

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

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

            \[\leadsto \color{blue}{\frac{z}{z - a} \cdot y} + x \]
          5. lower-fma.f6471.0

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

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

      Alternative 3: 98.3% accurate, 1.0× speedup?

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

        \[x + y \cdot \frac{z - t}{z - a} \]
      2. Add Preprocessing

      Alternative 4: 96.9% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{z - t}{z - a} \cdot y} + x \]
      3. Applied rewrites98.3%

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

      Alternative 5: 96.7% accurate, 0.4× speedup?

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

        1. Initial program 98.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 2.00000000000000014e-17 < (/.f64 (-.f64 z t) (-.f64 z a)) < 1

        1. Initial program 98.3%

          \[x + y \cdot \frac{z - t}{z - a} \]
        2. Taylor expanded in t around 0

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

            \[\leadsto x + y \cdot \frac{z}{\color{blue}{z - a}} \]
          2. lower--.f6471.0

            \[\leadsto x + y \cdot \frac{z}{z - \color{blue}{a}} \]
        4. Applied rewrites71.0%

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

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

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

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

            \[\leadsto \color{blue}{\frac{z}{z - a} \cdot y} + x \]
          5. lower-fma.f6471.0

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

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

        if 1 < (/.f64 (-.f64 z t) (-.f64 z a))

        1. Initial program 98.3%

          \[x + y \cdot \frac{z - t}{z - a} \]
        2. Step-by-step derivation
          1. lift-*.f64N/A

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

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

            \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
          4. mult-flip-revN/A

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

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

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

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

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

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

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

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

            \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
          13. lower--.f6498.4

            \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
        3. Applied rewrites98.4%

          \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
        4. Taylor expanded in z around 0

          \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t}}} \]
        5. Step-by-step derivation
          1. Applied rewrites76.3%

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

        Alternative 6: 86.1% accurate, 0.4× speedup?

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

          1. Initial program 98.3%

            \[x + y \cdot \frac{z - t}{z - a} \]
          2. Step-by-step derivation
            1. lift-*.f64N/A

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

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

              \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
            4. mult-flip-revN/A

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

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

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

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

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

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

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

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

              \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
            13. lower--.f6498.4

              \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
          3. Applied rewrites98.4%

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

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

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

              \[\leadsto \color{blue}{\frac{y}{\frac{a - z}{t - z}}} + x \]
            4. mult-flipN/A

              \[\leadsto \color{blue}{y \cdot \frac{1}{\frac{a - z}{t - z}}} + x \]
            5. lift-/.f64N/A

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

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

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

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

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

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

              \[\leadsto y \cdot \frac{1}{\frac{z - a}{\color{blue}{z - t}}} + x \]
            12. lift--.f64N/A

              \[\leadsto y \cdot \frac{1}{\frac{z - a}{\color{blue}{z - t}}} + x \]
            13. div-flipN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.0000000000000001e50 < (/.f64 (-.f64 z t) (-.f64 z a)) < 0.20000000000000001

          1. Initial program 98.3%

            \[x + y \cdot \frac{z - t}{z - a} \]
          2. Step-by-step derivation
            1. lift-*.f64N/A

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

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

              \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
            4. mult-flip-revN/A

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

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

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

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

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

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

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

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

              \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
            13. lower--.f6498.4

              \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
          3. Applied rewrites98.4%

            \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
          4. Taylor expanded in z around 0

            \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
          5. Step-by-step derivation
            1. Applied rewrites60.0%

              \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
          6. Recombined 2 regimes into one program.
          7. Add Preprocessing

          Alternative 7: 86.0% accurate, 0.4× speedup?

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

            1. Initial program 98.3%

              \[x + y \cdot \frac{z - t}{z - a} \]
            2. Step-by-step derivation
              1. lift-*.f64N/A

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

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

                \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
              4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
              13. lower--.f6498.4

                \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
            3. Applied rewrites98.4%

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

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

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

                \[\leadsto \color{blue}{\frac{y}{\frac{a - z}{t - z}}} + x \]
              4. mult-flipN/A

                \[\leadsto \color{blue}{y \cdot \frac{1}{\frac{a - z}{t - z}}} + x \]
              5. lift-/.f64N/A

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

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

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

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

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

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

                \[\leadsto y \cdot \frac{1}{\frac{z - a}{\color{blue}{z - t}}} + x \]
              12. lift--.f64N/A

                \[\leadsto y \cdot \frac{1}{\frac{z - a}{\color{blue}{z - t}}} + x \]
              13. div-flipN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -1.0000000000000001e50 < (/.f64 (-.f64 z t) (-.f64 z a)) < 0.20000000000000001

            1. Initial program 98.3%

              \[x + y \cdot \frac{z - t}{z - a} \]
            2. Step-by-step derivation
              1. lift-*.f64N/A

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

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

                \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
              4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
              13. lower--.f6498.4

                \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
            3. Applied rewrites98.4%

              \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
            4. Taylor expanded in z around 0

              \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
            5. Step-by-step derivation
              1. Applied rewrites60.0%

                \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
              2. Step-by-step derivation
                1. lift-+.f64N/A

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

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

                  \[\leadsto \color{blue}{\frac{y}{\frac{a}{t - z}}} + x \]
                4. div-flipN/A

                  \[\leadsto \color{blue}{\frac{1}{\frac{\frac{a}{t - z}}{y}}} + x \]
                5. associate-/r/N/A

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

                  \[\leadsto \frac{1}{\color{blue}{\frac{a}{t - z}}} \cdot y + x \]
                7. div-flip-revN/A

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

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

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

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

            Alternative 8: 85.4% accurate, 0.4× speedup?

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

              1. Initial program 98.3%

                \[x + y \cdot \frac{z - t}{z - a} \]
              2. Step-by-step derivation
                1. lift-*.f64N/A

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

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

                  \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
                4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                  \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                13. lower--.f6498.4

                  \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
              3. Applied rewrites98.4%

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

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

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

                  \[\leadsto \color{blue}{\frac{y}{\frac{a - z}{t - z}}} + x \]
                4. mult-flipN/A

                  \[\leadsto \color{blue}{y \cdot \frac{1}{\frac{a - z}{t - z}}} + x \]
                5. lift-/.f64N/A

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

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

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

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

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

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

                  \[\leadsto y \cdot \frac{1}{\frac{z - a}{\color{blue}{z - t}}} + x \]
                12. lift--.f64N/A

                  \[\leadsto y \cdot \frac{1}{\frac{z - a}{\color{blue}{z - t}}} + x \]
                13. div-flipN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.0000000000000001e50 < (/.f64 (-.f64 z t) (-.f64 z a)) < 0.20000000000000001

              1. Initial program 98.3%

                \[x + y \cdot \frac{z - t}{z - a} \]
              2. Step-by-step derivation
                1. lift-*.f64N/A

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

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

                  \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
                4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                  \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                13. lower--.f6498.4

                  \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
              3. Applied rewrites98.4%

                \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
              4. Taylor expanded in z around 0

                \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
              5. Step-by-step derivation
                1. Applied rewrites60.0%

                  \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                2. Step-by-step derivation
                  1. lift-+.f64N/A

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

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

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

                    \[\leadsto \frac{y}{\color{blue}{\frac{a}{t - z}}} + x \]
                  5. associate-/r/N/A

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

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

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

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

              Alternative 9: 82.8% accurate, 0.8× speedup?

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

                1. Initial program 98.3%

                  \[x + y \cdot \frac{z - t}{z - a} \]
                2. Step-by-step derivation
                  1. lift-*.f64N/A

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

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

                    \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
                  4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                    \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                  13. lower--.f6498.4

                    \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                3. Applied rewrites98.4%

                  \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
                4. Taylor expanded in z around 0

                  \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                5. Step-by-step derivation
                  1. Applied rewrites60.0%

                    \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                  2. Taylor expanded in z around 0

                    \[\leadsto x + \frac{y}{\frac{a}{\color{blue}{t}}} \]
                  3. Step-by-step derivation
                    1. Applied rewrites61.4%

                      \[\leadsto x + \frac{y}{\frac{a}{\color{blue}{t}}} \]
                    2. Step-by-step derivation
                      1. lift-+.f64N/A

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

                        \[\leadsto \color{blue}{\frac{y}{\frac{a}{t}} + x} \]
                      3. lift-/.f64N/A

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

                        \[\leadsto \frac{y}{\color{blue}{\frac{a}{t}}} + x \]
                      5. associate-/r/N/A

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

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

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

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

                    if -6.7999999999999997e-87 < a < 5.1999999999999999e-49

                    1. Initial program 98.3%

                      \[x + y \cdot \frac{z - t}{z - a} \]
                    2. Step-by-step derivation
                      1. lift-*.f64N/A

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

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

                        \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
                      4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                        \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                      13. lower--.f6498.4

                        \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                    3. Applied rewrites98.4%

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

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

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

                        \[\leadsto \color{blue}{\frac{y}{\frac{a - z}{t - z}}} + x \]
                      4. mult-flipN/A

                        \[\leadsto \color{blue}{y \cdot \frac{1}{\frac{a - z}{t - z}}} + x \]
                      5. lift-/.f64N/A

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

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

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

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

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

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

                        \[\leadsto y \cdot \frac{1}{\frac{z - a}{\color{blue}{z - t}}} + x \]
                      12. lift--.f64N/A

                        \[\leadsto y \cdot \frac{1}{\frac{z - a}{\color{blue}{z - t}}} + x \]
                      13. div-flipN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 5.1999999999999999e-49 < a

                    1. Initial program 98.3%

                      \[x + y \cdot \frac{z - t}{z - a} \]
                    2. Taylor expanded in t around 0

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

                        \[\leadsto x + y \cdot \frac{z}{\color{blue}{z - a}} \]
                      2. lower--.f6471.0

                        \[\leadsto x + y \cdot \frac{z}{z - \color{blue}{a}} \]
                    4. Applied rewrites71.0%

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

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

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

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

                        \[\leadsto \color{blue}{\frac{z}{z - a} \cdot y} + x \]
                      5. lower-fma.f6471.0

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

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

                  Alternative 10: 81.3% accurate, 0.8× speedup?

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

                    1. Initial program 98.3%

                      \[x + y \cdot \frac{z - t}{z - a} \]
                    2. Taylor expanded in t around 0

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

                        \[\leadsto x + y \cdot \frac{z}{\color{blue}{z - a}} \]
                      2. lower--.f6471.0

                        \[\leadsto x + y \cdot \frac{z}{z - \color{blue}{a}} \]
                    4. Applied rewrites71.0%

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

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

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

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

                        \[\leadsto \color{blue}{\frac{z}{z - a} \cdot y} + x \]
                      5. lower-fma.f6471.0

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

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

                    if -5.4999999999999999e-24 < z < 4.3999999999999999e-36

                    1. Initial program 98.3%

                      \[x + y \cdot \frac{z - t}{z - a} \]
                    2. Step-by-step derivation
                      1. lift-*.f64N/A

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

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

                        \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
                      4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                        \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                      13. lower--.f6498.4

                        \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                    3. Applied rewrites98.4%

                      \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
                    4. Taylor expanded in z around 0

                      \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                    5. Step-by-step derivation
                      1. Applied rewrites60.0%

                        \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                      2. Taylor expanded in z around 0

                        \[\leadsto x + \frac{y}{\frac{a}{\color{blue}{t}}} \]
                      3. Step-by-step derivation
                        1. Applied rewrites61.4%

                          \[\leadsto x + \frac{y}{\frac{a}{\color{blue}{t}}} \]
                        2. Step-by-step derivation
                          1. lift-+.f64N/A

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

                            \[\leadsto \color{blue}{\frac{y}{\frac{a}{t}} + x} \]
                          3. lift-/.f64N/A

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

                            \[\leadsto \frac{y}{\color{blue}{\frac{a}{t}}} + x \]
                          5. associate-/r/N/A

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

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

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

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

                      Alternative 11: 80.3% accurate, 0.3× speedup?

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

                        1. Initial program 98.3%

                          \[x + y \cdot \frac{z - t}{z - a} \]
                        2. Step-by-step derivation
                          1. lift-*.f64N/A

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

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

                            \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
                          4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                            \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                          13. lower--.f6498.4

                            \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                        3. Applied rewrites98.4%

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

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

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

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

                            \[\leadsto \frac{t \cdot y}{a - \color{blue}{z}} \]
                        6. Applied rewrites26.7%

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

                        if -4.9999999999999999e155 < (/.f64 (-.f64 z t) (-.f64 z a)) < 9.99999999999999908e-22

                        1. Initial program 98.3%

                          \[x + y \cdot \frac{z - t}{z - a} \]
                        2. Step-by-step derivation
                          1. lift-*.f64N/A

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

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

                            \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
                          4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                            \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                          13. lower--.f6498.4

                            \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                        3. Applied rewrites98.4%

                          \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
                        4. Taylor expanded in z around 0

                          \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                        5. Step-by-step derivation
                          1. Applied rewrites60.0%

                            \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                          2. Taylor expanded in z around 0

                            \[\leadsto x + \frac{y}{\frac{a}{\color{blue}{t}}} \]
                          3. Step-by-step derivation
                            1. Applied rewrites61.4%

                              \[\leadsto x + \frac{y}{\frac{a}{\color{blue}{t}}} \]
                            2. Step-by-step derivation
                              1. lift-+.f64N/A

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

                                \[\leadsto \color{blue}{\frac{y}{\frac{a}{t}} + x} \]
                              3. lift-/.f64N/A

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

                                \[\leadsto \frac{y}{\color{blue}{\frac{a}{t}}} + x \]
                              5. associate-/r/N/A

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

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

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

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

                            if 9.99999999999999908e-22 < (/.f64 (-.f64 z t) (-.f64 z a)) < 1.00000000000000002e64

                            1. Initial program 98.3%

                              \[x + y \cdot \frac{z - t}{z - a} \]
                            2. Taylor expanded in z around inf

                              \[\leadsto \color{blue}{x + y} \]
                            3. Step-by-step derivation
                              1. lower-+.f6460.2

                                \[\leadsto x + \color{blue}{y} \]
                            4. Applied rewrites60.2%

                              \[\leadsto \color{blue}{x + y} \]
                          4. Recombined 3 regimes into one program.
                          5. Add Preprocessing

                          Alternative 12: 80.1% accurate, 0.4× speedup?

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

                            1. Initial program 98.3%

                              \[x + y \cdot \frac{z - t}{z - a} \]
                            2. Step-by-step derivation
                              1. lift-*.f64N/A

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

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

                                \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z - t}}} \]
                              4. mult-flip-revN/A

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

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

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

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

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

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

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

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

                                \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                              13. lower--.f6498.4

                                \[\leadsto x + \frac{y}{\frac{a - z}{\color{blue}{t - z}}} \]
                            3. Applied rewrites98.4%

                              \[\leadsto x + \color{blue}{\frac{y}{\frac{a - z}{t - z}}} \]
                            4. Taylor expanded in z around 0

                              \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                            5. Step-by-step derivation
                              1. Applied rewrites60.0%

                                \[\leadsto x + \frac{y}{\frac{\color{blue}{a}}{t - z}} \]
                              2. Taylor expanded in z around 0

                                \[\leadsto x + \frac{y}{\frac{a}{\color{blue}{t}}} \]
                              3. Step-by-step derivation
                                1. Applied rewrites61.4%

                                  \[\leadsto x + \frac{y}{\frac{a}{\color{blue}{t}}} \]
                                2. Step-by-step derivation
                                  1. lift-+.f64N/A

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

                                    \[\leadsto \color{blue}{\frac{y}{\frac{a}{t}} + x} \]
                                  3. lift-/.f64N/A

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

                                    \[\leadsto \frac{y}{\color{blue}{\frac{a}{t}}} + x \]
                                  5. associate-/r/N/A

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

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

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

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

                                if 9.99999999999999908e-22 < (/.f64 (-.f64 z t) (-.f64 z a)) < 1.99999999999999995e38

                                1. Initial program 98.3%

                                  \[x + y \cdot \frac{z - t}{z - a} \]
                                2. Taylor expanded in z around inf

                                  \[\leadsto \color{blue}{x + y} \]
                                3. Step-by-step derivation
                                  1. lower-+.f6460.2

                                    \[\leadsto x + \color{blue}{y} \]
                                4. Applied rewrites60.2%

                                  \[\leadsto \color{blue}{x + y} \]
                              4. Recombined 2 regimes into one program.
                              5. Add Preprocessing

                              Alternative 13: 78.6% accurate, 0.4× speedup?

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

                                1. Initial program 98.3%

                                  \[x + y \cdot \frac{z - t}{z - a} \]
                                2. Taylor expanded in z around 0

                                  \[\leadsto x + y \cdot \color{blue}{\frac{t}{a}} \]
                                3. Step-by-step derivation
                                  1. lower-/.f6461.2

                                    \[\leadsto x + y \cdot \frac{t}{\color{blue}{a}} \]
                                4. Applied rewrites61.2%

                                  \[\leadsto x + y \cdot \color{blue}{\frac{t}{a}} \]
                                5. Step-by-step derivation
                                  1. lift-+.f64N/A

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

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

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

                                    \[\leadsto \color{blue}{\frac{t}{a} \cdot y} + x \]
                                  5. lower-fma.f6461.2

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

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

                                if 9.99999999999999908e-22 < (/.f64 (-.f64 z t) (-.f64 z a)) < 1.99999999999999995e38

                                1. Initial program 98.3%

                                  \[x + y \cdot \frac{z - t}{z - a} \]
                                2. Taylor expanded in z around inf

                                  \[\leadsto \color{blue}{x + y} \]
                                3. Step-by-step derivation
                                  1. lower-+.f6460.2

                                    \[\leadsto x + \color{blue}{y} \]
                                4. Applied rewrites60.2%

                                  \[\leadsto \color{blue}{x + y} \]
                              3. Recombined 2 regimes into one program.
                              4. Add Preprocessing

                              Alternative 14: 66.3% accurate, 0.9× speedup?

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

                                1. Initial program 98.3%

                                  \[x + y \cdot \frac{z - t}{z - a} \]
                                2. Taylor expanded in z around inf

                                  \[\leadsto \color{blue}{x + y} \]
                                3. Step-by-step derivation
                                  1. lower-+.f6460.2

                                    \[\leadsto x + \color{blue}{y} \]
                                4. Applied rewrites60.2%

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

                                    \[\leadsto x + \color{blue}{y} \]
                                  2. sum-to-multN/A

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

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

                                    \[\leadsto \left(\frac{y}{x} + 1\right) \cdot x \]
                                  5. lower-+.f64N/A

                                    \[\leadsto \left(\frac{y}{x} + 1\right) \cdot x \]
                                  6. lower-/.f6457.5

                                    \[\leadsto \left(\frac{y}{x} + 1\right) \cdot x \]
                                6. Applied rewrites57.5%

                                  \[\leadsto \left(\frac{y}{x} + 1\right) \cdot \color{blue}{x} \]
                                7. Taylor expanded in x around inf

                                  \[\leadsto 1 \cdot x \]
                                8. Step-by-step derivation
                                  1. Applied rewrites49.5%

                                    \[\leadsto 1 \cdot x \]

                                  if 1.24999999999999993e-21 < (/.f64 (-.f64 z t) (-.f64 z a))

                                  1. Initial program 98.3%

                                    \[x + y \cdot \frac{z - t}{z - a} \]
                                  2. Taylor expanded in z around inf

                                    \[\leadsto \color{blue}{x + y} \]
                                  3. Step-by-step derivation
                                    1. lower-+.f6460.2

                                      \[\leadsto x + \color{blue}{y} \]
                                  4. Applied rewrites60.2%

                                    \[\leadsto \color{blue}{x + y} \]
                                9. Recombined 2 regimes into one program.
                                10. Add Preprocessing

                                Alternative 15: 60.2% accurate, 4.1× speedup?

                                \[\begin{array}{l} \\ x + y \end{array} \]
                                (FPCore (x y z t a) :precision binary64 (+ x y))
                                double code(double x, double y, double z, double t, double a) {
                                	return x + y;
                                }
                                
                                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
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a) {
                                	return x + y;
                                }
                                
                                def code(x, y, z, t, a):
                                	return x + y
                                
                                function code(x, y, z, t, a)
                                	return Float64(x + y)
                                end
                                
                                function tmp = code(x, y, z, t, a)
                                	tmp = x + y;
                                end
                                
                                code[x_, y_, z_, t_, a_] := N[(x + y), $MachinePrecision]
                                
                                \begin{array}{l}
                                
                                \\
                                x + y
                                \end{array}
                                
                                Derivation
                                1. Initial program 98.3%

                                  \[x + y \cdot \frac{z - t}{z - a} \]
                                2. Taylor expanded in z around inf

                                  \[\leadsto \color{blue}{x + y} \]
                                3. Step-by-step derivation
                                  1. lower-+.f6460.2

                                    \[\leadsto x + \color{blue}{y} \]
                                4. Applied rewrites60.2%

                                  \[\leadsto \color{blue}{x + y} \]
                                5. Add Preprocessing

                                Alternative 16: 19.2% accurate, 15.3× speedup?

                                \[\begin{array}{l} \\ y \end{array} \]
                                (FPCore (x y z t a) :precision binary64 y)
                                double code(double x, double y, double z, double t, double a) {
                                	return y;
                                }
                                
                                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
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a) {
                                	return y;
                                }
                                
                                def code(x, y, z, t, a):
                                	return y
                                
                                function code(x, y, z, t, a)
                                	return y
                                end
                                
                                function tmp = code(x, y, z, t, a)
                                	tmp = y;
                                end
                                
                                code[x_, y_, z_, t_, a_] := y
                                
                                \begin{array}{l}
                                
                                \\
                                y
                                \end{array}
                                
                                Derivation
                                1. Initial program 98.3%

                                  \[x + y \cdot \frac{z - t}{z - a} \]
                                2. Taylor expanded in z around inf

                                  \[\leadsto \color{blue}{x + y} \]
                                3. Step-by-step derivation
                                  1. lower-+.f6460.2

                                    \[\leadsto x + \color{blue}{y} \]
                                4. Applied rewrites60.2%

                                  \[\leadsto \color{blue}{x + y} \]
                                5. Taylor expanded in x around 0

                                  \[\leadsto y \]
                                6. Step-by-step derivation
                                  1. Applied rewrites19.2%

                                    \[\leadsto y \]
                                  2. Add Preprocessing

                                  Reproduce

                                  ?
                                  herbie shell --seed 2025148 
                                  (FPCore (x y z t a)
                                    :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
                                    :precision binary64
                                    (+ x (* y (/ (- z t) (- z a)))))