Development.Shake.Progress:decay from shake-0.15.5

Percentage Accurate: 66.3% → 92.3%
Time: 57.2s
Alternatives: 14
Speedup: 0.9×

Specification

?
\[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
(FPCore (x y z t a b)
  :precision binary64
  (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
	return ((x * y) + (z * (t - a))) / (y + (z * (b - 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, b)
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), intent (in) :: b
    code = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
def code(x, y, z, t, a, b):
	return ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y))))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 14 alternatives:

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

Initial Program: 66.3% accurate, 1.0× speedup?

\[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
(FPCore (x y z t a b)
  :precision binary64
  (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
double code(double x, double y, double z, double t, double a, double b) {
	return ((x * y) + (z * (t - a))) / (y + (z * (b - 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, b)
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), intent (in) :: b
    code = ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
}
def code(x, y, z, t, a, b):
	return ((x * y) + (z * (t - a))) / (y + (z * (b - y)))
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(x * y) + Float64(z * Float64(t - a))) / Float64(y + Float64(z * Float64(b - y))))
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((x * y) + (z * (t - a))) / (y + (z * (b - y)));
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * y), $MachinePrecision] + N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}

Alternative 1: 92.3% accurate, 0.7× speedup?

\[\begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -400000000000000023713520496325948014825449955068181315459400297931998311313895922608093186032072498276607168949173531792918788654058329604096:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 12000000000000000424738068522656016135872315392:\\ \;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
(FPCore (x y z t a b)
  :precision binary64
  (let* ((t_1 (/ (- t a) (- b y))))
  (if (<=
       z
       -400000000000000023713520496325948014825449955068181315459400297931998311313895922608093186032072498276607168949173531792918788654058329604096)
    t_1
    (if (<= z 12000000000000000424738068522656016135872315392)
      (134-z0z1z2z3z4 (/ 1 (+ (* (- b y) z) y)) y x (- a t) z)
      t_1))))
\begin{array}{l}
t_1 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -400000000000000023713520496325948014825449955068181315459400297931998311313895922608093186032072498276607168949173531792918788654058329604096:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq 12000000000000000424738068522656016135872315392:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)\\

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


\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -4.0000000000000002e140 or 1.2e46 < z

    1. Initial program 66.3%

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

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

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

        \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
      3. lower--.f6452.4%

        \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
    4. Applied rewrites52.4%

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

    if -4.0000000000000002e140 < z < 1.2e46

    1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{1}{y + z \cdot \left(b - y\right)} \cdot \left(\color{blue}{y \cdot x} - \left(a - t\right) \cdot z\right) \]
      12. lower-134-z0z1z2z3z4N/A

        \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y + z \cdot \left(b - y\right)}\right), y, x, \left(a - t\right), z\right)} \]
    3. Applied rewrites80.5%

      \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 2: 85.1% accurate, 0.6× speedup?

\[\begin{array}{l} t_1 := \frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\ t_2 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -80000000000000007247757312:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq \frac{-2634444444371165}{16996415770136547158066822609678996074546979767265021542382212422412913915547271767653200072487337141404458543559888032491090538804886631661104639320530795262202600666732583009015300096}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq \frac{6540714869423179}{18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496}:\\ \;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{b \cdot z + y}\right), y, x, a, z\right)\\ \mathbf{elif}\;z \leq 16500000000000000:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \]
(FPCore (x y z t a b)
  :precision binary64
  (let* ((t_1 (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))
       (t_2 (/ (- t a) (- b y))))
  (if (<= z -80000000000000007247757312)
    t_2
    (if (<=
         z
         -2634444444371165/16996415770136547158066822609678996074546979767265021542382212422412913915547271767653200072487337141404458543559888032491090538804886631661104639320530795262202600666732583009015300096)
      t_1
      (if (<=
           z
           6540714869423179/18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496)
        (134-z0z1z2z3z4 (/ 1 (+ (* b z) y)) y x a z)
        (if (<= z 16500000000000000) t_1 t_2))))))
\begin{array}{l}
t_1 := \frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
t_2 := \frac{t - a}{b - y}\\
\mathbf{if}\;z \leq -80000000000000007247757312:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;z \leq \frac{-2634444444371165}{16996415770136547158066822609678996074546979767265021542382212422412913915547271767653200072487337141404458543559888032491090538804886631661104639320530795262202600666732583009015300096}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq \frac{6540714869423179}{18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496}:\\
\;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{b \cdot z + y}\right), y, x, a, z\right)\\

\mathbf{elif}\;z \leq 16500000000000000:\\
\;\;\;\;t\_1\\

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


\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -8.0000000000000007e25 or 1.65e16 < z

    1. Initial program 66.3%

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

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

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

        \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
      3. lower--.f6452.4%

        \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
    4. Applied rewrites52.4%

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

    if -8.0000000000000007e25 < z < -1.5500000000000001e-169 or 3.5e-181 < z < 1.65e16

    1. Initial program 66.3%

      \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]

    if -1.5500000000000001e-169 < z < 3.5e-181

    1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{1}{y + z \cdot \left(b - y\right)} \cdot \left(\color{blue}{y \cdot x} - \left(a - t\right) \cdot z\right) \]
      12. lower-134-z0z1z2z3z4N/A

        \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y + z \cdot \left(b - y\right)}\right), y, x, \left(a - t\right), z\right)} \]
    3. Applied rewrites80.5%

      \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)} \]
    4. Taylor expanded in t around 0

      \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
    5. Step-by-step derivation
      1. Applied rewrites57.8%

        \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
      2. Taylor expanded in y around 0

        \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\color{blue}{b} \cdot z + y}\right), y, x, a, z\right) \]
      3. Step-by-step derivation
        1. Applied rewrites49.6%

          \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\color{blue}{b} \cdot z + y}\right), y, x, a, z\right) \]
      4. Recombined 3 regimes into one program.
      5. Add Preprocessing

      Alternative 3: 84.3% accurate, 0.7× speedup?

      \[\begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq \frac{-4986819005910345}{151115727451828646838272}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq \frac{6540714869423179}{18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496}:\\ \;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, a, z\right)\\ \mathbf{elif}\;z \leq 16500000000000000:\\ \;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
      (FPCore (x y z t a b)
        :precision binary64
        (let* ((t_1 (/ (- t a) (- b y))))
        (if (<= z -4986819005910345/151115727451828646838272)
          t_1
          (if (<=
               z
               6540714869423179/18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496)
            (134-z0z1z2z3z4 (/ 1 (+ (* (- b y) z) y)) y x a z)
            (if (<= z 16500000000000000)
              (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y))))
              t_1)))))
      \begin{array}{l}
      t_1 := \frac{t - a}{b - y}\\
      \mathbf{if}\;z \leq \frac{-4986819005910345}{151115727451828646838272}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq \frac{6540714869423179}{18687756769780511615554238896948393266762663965690101475652372553315431084886742575128218875155953253493318900013442692344580934538753794040842900765582189315080170186179645235539452691442089066496}:\\
      \;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, a, z\right)\\
      
      \mathbf{elif}\;z \leq 16500000000000000:\\
      \;\;\;\;\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -3.2999999999999998e-8 or 1.65e16 < z

        1. Initial program 66.3%

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

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

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

            \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
          3. lower--.f6452.4%

            \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
        4. Applied rewrites52.4%

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

        if -3.2999999999999998e-8 < z < 3.5e-181

        1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{1}{y + z \cdot \left(b - y\right)} \cdot \left(\color{blue}{y \cdot x} - \left(a - t\right) \cdot z\right) \]
          12. lower-134-z0z1z2z3z4N/A

            \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y + z \cdot \left(b - y\right)}\right), y, x, \left(a - t\right), z\right)} \]
        3. Applied rewrites80.5%

          \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)} \]
        4. Taylor expanded in t around 0

          \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
        5. Step-by-step derivation
          1. Applied rewrites57.8%

            \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]

          if 3.5e-181 < z < 1.65e16

          1. Initial program 66.3%

            \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
        6. Recombined 3 regimes into one program.
        7. Add Preprocessing

        Alternative 4: 83.8% accurate, 0.8× speedup?

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

          1. Initial program 66.3%

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

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

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

              \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
            3. lower--.f6452.4%

              \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
          4. Applied rewrites52.4%

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

          if -8.0000000000000007e25 < z < 1.65e16

          1. Initial program 66.3%

            \[\frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)} \]
        3. Recombined 2 regimes into one program.
        4. Add Preprocessing

        Alternative 5: 81.8% accurate, 0.8× speedup?

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

          1. Initial program 66.3%

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

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

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

              \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
            3. lower--.f6452.4%

              \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
          4. Applied rewrites52.4%

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

          if -82000 < z < 1.2

          1. Initial program 66.3%

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

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

              \[\leadsto \frac{x \cdot y + z \cdot \left(t - a\right)}{y + z \cdot \color{blue}{b}} \]
          4. Recombined 2 regimes into one program.
          5. Add Preprocessing

          Alternative 6: 75.9% accurate, 0.7× speedup?

          \[\begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq \frac{-5902958103587057}{4722366482869645213696}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq \frac{-1802560036253105}{11629419588729710248789180926208072549658261770997088964503843186890228609814366773219056811420217048972200345700258846936553626057834496}:\\ \;\;\;\;\frac{x \cdot y - a \cdot z}{z \cdot b + y}\\ \mathbf{elif}\;z \leq \frac{5451911701461569}{2596148429267413814265248164610048}:\\ \;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y}\right), y, x, \left(a - t\right), z\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
          (FPCore (x y z t a b)
            :precision binary64
            (let* ((t_1 (/ (- t a) (- b y))))
            (if (<= z -5902958103587057/4722366482869645213696)
              t_1
              (if (<=
                   z
                   -1802560036253105/11629419588729710248789180926208072549658261770997088964503843186890228609814366773219056811420217048972200345700258846936553626057834496)
                (/ (- (* x y) (* a z)) (+ (* z b) y))
                (if (<= z 5451911701461569/2596148429267413814265248164610048)
                  (134-z0z1z2z3z4 (/ 1 y) y x (- a t) z)
                  t_1)))))
          \begin{array}{l}
          t_1 := \frac{t - a}{b - y}\\
          \mathbf{if}\;z \leq \frac{-5902958103587057}{4722366482869645213696}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;z \leq \frac{-1802560036253105}{11629419588729710248789180926208072549658261770997088964503843186890228609814366773219056811420217048972200345700258846936553626057834496}:\\
          \;\;\;\;\frac{x \cdot y - a \cdot z}{z \cdot b + y}\\
          
          \mathbf{elif}\;z \leq \frac{5451911701461569}{2596148429267413814265248164610048}:\\
          \;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y}\right), y, x, \left(a - t\right), z\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if z < -1.2500000000000001e-6 or 2.1e-18 < z

            1. Initial program 66.3%

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

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

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

                \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
              3. lower--.f6452.4%

                \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
            4. Applied rewrites52.4%

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

            if -1.2500000000000001e-6 < z < -1.5499999999999999e-121

            1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{1}{y + z \cdot \left(b - y\right)} \cdot \left(\color{blue}{y \cdot x} - \left(a - t\right) \cdot z\right) \]
              12. lower-134-z0z1z2z3z4N/A

                \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y + z \cdot \left(b - y\right)}\right), y, x, \left(a - t\right), z\right)} \]
            3. Applied rewrites80.5%

              \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)} \]
            4. Taylor expanded in t around 0

              \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
            5. Step-by-step derivation
              1. Applied rewrites57.8%

                \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
              2. Taylor expanded in y around 0

                \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\color{blue}{b} \cdot z + y}\right), y, x, a, z\right) \]
              3. Step-by-step derivation
                1. Applied rewrites49.6%

                  \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\color{blue}{b} \cdot z + y}\right), y, x, a, z\right) \]
                2. Step-by-step derivation
                  1. lift-134-z0z1z2z3z4N/A

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

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

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

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

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

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

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

                    \[\leadsto \frac{\color{blue}{x \cdot y} - a \cdot z}{b \cdot z + y} \]
                  9. lower-*.f6441.9%

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

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

                    \[\leadsto \frac{x \cdot y - a \cdot z}{\color{blue}{z \cdot b} + y} \]
                  12. lower-*.f6441.9%

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

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

                if -1.5499999999999999e-121 < z < 2.1e-18

                1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \frac{1}{y + z \cdot \left(b - y\right)} \cdot \left(\color{blue}{y \cdot x} - \left(a - t\right) \cdot z\right) \]
                  12. lower-134-z0z1z2z3z4N/A

                    \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y + z \cdot \left(b - y\right)}\right), y, x, \left(a - t\right), z\right)} \]
                3. Applied rewrites80.5%

                  \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)} \]
                4. Taylor expanded in z around 0

                  \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\color{blue}{\left(\frac{1}{y}\right)}, y, x, \left(a - t\right), z\right) \]
                5. Step-by-step derivation
                  1. lower-/.f6437.9%

                    \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\color{blue}{y}}\right), y, x, \left(a - t\right), z\right) \]
                6. Applied rewrites37.9%

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

              Alternative 7: 73.1% accurate, 0.8× speedup?

              \[\begin{array}{l} t_1 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq \frac{-3659834024223975}{1180591620717411303424}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq \frac{1094449103198247}{3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976}:\\ \;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y}\right), y, x, a, z\right)\\ \mathbf{elif}\;z \leq 16500000000000000:\\ \;\;\;\;\frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \]
              (FPCore (x y z t a b)
                :precision binary64
                (let* ((t_1 (/ (- t a) (- b y))))
                (if (<= z -3659834024223975/1180591620717411303424)
                  t_1
                  (if (<=
                       z
                       1094449103198247/3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976)
                    (134-z0z1z2z3z4 (/ 1 y) y x a z)
                    (if (<= z 16500000000000000)
                      (/ (* z (- t a)) (+ y (* z (- b y))))
                      t_1)))))
              \begin{array}{l}
              t_1 := \frac{t - a}{b - y}\\
              \mathbf{if}\;z \leq \frac{-3659834024223975}{1180591620717411303424}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;z \leq \frac{1094449103198247}{3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976}:\\
              \;\;\;\;\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y}\right), y, x, a, z\right)\\
              
              \mathbf{elif}\;z \leq 16500000000000000:\\
              \;\;\;\;\frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if z < -3.1e-6 or 1.65e16 < z

                1. Initial program 66.3%

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

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

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

                    \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
                  3. lower--.f6452.4%

                    \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
                4. Applied rewrites52.4%

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

                if -3.1e-6 < z < 2.9e-154

                1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \frac{1}{y + z \cdot \left(b - y\right)} \cdot \left(\color{blue}{y \cdot x} - \left(a - t\right) \cdot z\right) \]
                  12. lower-134-z0z1z2z3z4N/A

                    \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y + z \cdot \left(b - y\right)}\right), y, x, \left(a - t\right), z\right)} \]
                3. Applied rewrites80.5%

                  \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)} \]
                4. Taylor expanded in t around 0

                  \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
                5. Step-by-step derivation
                  1. Applied rewrites57.8%

                    \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
                  2. Taylor expanded in z around 0

                    \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\color{blue}{\left(\frac{1}{y}\right)}, y, x, a, z\right) \]
                  3. Step-by-step derivation
                    1. lower-/.f6431.9%

                      \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\color{blue}{y}}\right), y, x, a, z\right) \]
                  4. Applied rewrites31.9%

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

                  if 2.9e-154 < z < 1.65e16

                  1. Initial program 66.3%

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

                    \[\leadsto \frac{\color{blue}{z \cdot \left(t - a\right)}}{y + z \cdot \left(b - y\right)} \]
                  3. Step-by-step derivation
                    1. lower-*.f64N/A

                      \[\leadsto \frac{z \cdot \color{blue}{\left(t - a\right)}}{y + z \cdot \left(b - y\right)} \]
                    2. lower--.f6441.9%

                      \[\leadsto \frac{z \cdot \left(t - \color{blue}{a}\right)}{y + z \cdot \left(b - y\right)} \]
                  4. Applied rewrites41.9%

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

                Alternative 8: 70.6% accurate, 0.7× speedup?

                \[\begin{array}{l} t_1 := \frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\ t_2 := \frac{t - a}{b - y}\\ \mathbf{if}\;z \leq -80000000000000007247757312:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;z \leq \frac{-3630826122770869}{32418090381882757488378186435087196492284736189394038281216072888208225089163344893747711319899248392876545989150787415487462117776654494592866209641515341305165482839074293153792}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq \frac{1603934030549155}{943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744}:\\ \;\;\;\;\frac{y}{z \cdot b + y} \cdot x\\ \mathbf{elif}\;z \leq 950000000:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \]
                (FPCore (x y z t a b)
                  :precision binary64
                  (let* ((t_1 (/ (* z (- t a)) (+ y (* z (- b y)))))
                       (t_2 (/ (- t a) (- b y))))
                  (if (<= z -80000000000000007247757312)
                    t_2
                    (if (<=
                         z
                         -3630826122770869/32418090381882757488378186435087196492284736189394038281216072888208225089163344893747711319899248392876545989150787415487462117776654494592866209641515341305165482839074293153792)
                      t_1
                      (if (<=
                           z
                           1603934030549155/943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744)
                        (* (/ y (+ (* z b) y)) x)
                        (if (<= z 950000000) t_1 t_2))))))
                double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = (z * (t - a)) / (y + (z * (b - y)));
                	double t_2 = (t - a) / (b - y);
                	double tmp;
                	if (z <= -8e+25) {
                		tmp = t_2;
                	} else if (z <= -1.12e-163) {
                		tmp = t_1;
                	} else if (z <= 1.7e-153) {
                		tmp = (y / ((z * b) + y)) * x;
                	} else if (z <= 950000000.0) {
                		tmp = t_1;
                	} else {
                		tmp = t_2;
                	}
                	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, b)
                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), intent (in) :: b
                    real(8) :: t_1
                    real(8) :: t_2
                    real(8) :: tmp
                    t_1 = (z * (t - a)) / (y + (z * (b - y)))
                    t_2 = (t - a) / (b - y)
                    if (z <= (-8d+25)) then
                        tmp = t_2
                    else if (z <= (-1.12d-163)) then
                        tmp = t_1
                    else if (z <= 1.7d-153) then
                        tmp = (y / ((z * b) + y)) * x
                    else if (z <= 950000000.0d0) then
                        tmp = t_1
                    else
                        tmp = t_2
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b) {
                	double t_1 = (z * (t - a)) / (y + (z * (b - y)));
                	double t_2 = (t - a) / (b - y);
                	double tmp;
                	if (z <= -8e+25) {
                		tmp = t_2;
                	} else if (z <= -1.12e-163) {
                		tmp = t_1;
                	} else if (z <= 1.7e-153) {
                		tmp = (y / ((z * b) + y)) * x;
                	} else if (z <= 950000000.0) {
                		tmp = t_1;
                	} else {
                		tmp = t_2;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b):
                	t_1 = (z * (t - a)) / (y + (z * (b - y)))
                	t_2 = (t - a) / (b - y)
                	tmp = 0
                	if z <= -8e+25:
                		tmp = t_2
                	elif z <= -1.12e-163:
                		tmp = t_1
                	elif z <= 1.7e-153:
                		tmp = (y / ((z * b) + y)) * x
                	elif z <= 950000000.0:
                		tmp = t_1
                	else:
                		tmp = t_2
                	return tmp
                
                function code(x, y, z, t, a, b)
                	t_1 = Float64(Float64(z * Float64(t - a)) / Float64(y + Float64(z * Float64(b - y))))
                	t_2 = Float64(Float64(t - a) / Float64(b - y))
                	tmp = 0.0
                	if (z <= -8e+25)
                		tmp = t_2;
                	elseif (z <= -1.12e-163)
                		tmp = t_1;
                	elseif (z <= 1.7e-153)
                		tmp = Float64(Float64(y / Float64(Float64(z * b) + y)) * x);
                	elseif (z <= 950000000.0)
                		tmp = t_1;
                	else
                		tmp = t_2;
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b)
                	t_1 = (z * (t - a)) / (y + (z * (b - y)));
                	t_2 = (t - a) / (b - y);
                	tmp = 0.0;
                	if (z <= -8e+25)
                		tmp = t_2;
                	elseif (z <= -1.12e-163)
                		tmp = t_1;
                	elseif (z <= 1.7e-153)
                		tmp = (y / ((z * b) + y)) * x;
                	elseif (z <= 950000000.0)
                		tmp = t_1;
                	else
                		tmp = t_2;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(t - a), $MachinePrecision]), $MachinePrecision] / N[(y + N[(z * N[(b - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t - a), $MachinePrecision] / N[(b - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -80000000000000007247757312], t$95$2, If[LessEqual[z, -3630826122770869/32418090381882757488378186435087196492284736189394038281216072888208225089163344893747711319899248392876545989150787415487462117776654494592866209641515341305165482839074293153792], t$95$1, If[LessEqual[z, 1603934030549155/943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744], N[(N[(y / N[(N[(z * b), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 950000000], t$95$1, t$95$2]]]]]]
                
                \begin{array}{l}
                t_1 := \frac{z \cdot \left(t - a\right)}{y + z \cdot \left(b - y\right)}\\
                t_2 := \frac{t - a}{b - y}\\
                \mathbf{if}\;z \leq -80000000000000007247757312:\\
                \;\;\;\;t\_2\\
                
                \mathbf{elif}\;z \leq \frac{-3630826122770869}{32418090381882757488378186435087196492284736189394038281216072888208225089163344893747711319899248392876545989150787415487462117776654494592866209641515341305165482839074293153792}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;z \leq \frac{1603934030549155}{943490606205385338060388645247067222729230305104110107094051575061406040598037213021531681294414691885367093757690961224942646157481198158140358562858174010912348831744}:\\
                \;\;\;\;\frac{y}{z \cdot b + y} \cdot x\\
                
                \mathbf{elif}\;z \leq 950000000:\\
                \;\;\;\;t\_1\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_2\\
                
                
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -8.0000000000000007e25 or 9.5e8 < z

                  1. Initial program 66.3%

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

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

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

                      \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
                    3. lower--.f6452.4%

                      \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
                  4. Applied rewrites52.4%

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

                  if -8.0000000000000007e25 < z < -1.12e-163 or 1.6999999999999999e-153 < z < 9.5e8

                  1. Initial program 66.3%

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

                    \[\leadsto \frac{\color{blue}{z \cdot \left(t - a\right)}}{y + z \cdot \left(b - y\right)} \]
                  3. Step-by-step derivation
                    1. lower-*.f64N/A

                      \[\leadsto \frac{z \cdot \color{blue}{\left(t - a\right)}}{y + z \cdot \left(b - y\right)} \]
                    2. lower--.f6441.9%

                      \[\leadsto \frac{z \cdot \left(t - \color{blue}{a}\right)}{y + z \cdot \left(b - y\right)} \]
                  4. Applied rewrites41.9%

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

                  if -1.12e-163 < z < 1.6999999999999999e-153

                  1. Initial program 66.3%

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

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

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

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

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

                      \[\leadsto \frac{x \cdot y}{y + z \cdot \color{blue}{\left(b - y\right)}} \]
                    5. lower--.f6428.9%

                      \[\leadsto \frac{x \cdot y}{y + z \cdot \left(b - \color{blue}{y}\right)} \]
                  4. Applied rewrites28.9%

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

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

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

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

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

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

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

                      \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                    8. lift-*.f64N/A

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

                      \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                    10. +-commutativeN/A

                      \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                    11. lift-+.f64N/A

                      \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                    12. lower-/.f6435.6%

                      \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                    13. lift-*.f64N/A

                      \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                    14. *-commutativeN/A

                      \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                    15. lift-*.f6435.6%

                      \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                  6. Applied rewrites35.6%

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

                    \[\leadsto \frac{y}{z \cdot b + y} \cdot x \]
                  8. Step-by-step derivation
                    1. Applied rewrites32.2%

                      \[\leadsto \frac{y}{z \cdot b + y} \cdot x \]
                  9. Recombined 3 regimes into one program.
                  10. Add Preprocessing

                  Alternative 9: 70.4% accurate, 0.9× speedup?

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

                    1. Initial program 66.3%

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

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

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

                        \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
                      3. lower--.f6452.4%

                        \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
                    4. Applied rewrites52.4%

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

                    if -1.2500000000000001e-6 < z < 2.1e-18

                    1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{1}{y + z \cdot \left(b - y\right)} \cdot \left(\color{blue}{y \cdot x} - \left(a - t\right) \cdot z\right) \]
                      12. lower-134-z0z1z2z3z4N/A

                        \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{y + z \cdot \left(b - y\right)}\right), y, x, \left(a - t\right), z\right)} \]
                    3. Applied rewrites80.5%

                      \[\leadsto \color{blue}{\mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \left(a - t\right), z\right)} \]
                    4. Taylor expanded in t around 0

                      \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
                    5. Step-by-step derivation
                      1. Applied rewrites57.8%

                        \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\left(b - y\right) \cdot z + y}\right), y, x, \color{blue}{a}, z\right) \]
                      2. Taylor expanded in y around 0

                        \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\color{blue}{b} \cdot z + y}\right), y, x, a, z\right) \]
                      3. Step-by-step derivation
                        1. Applied rewrites49.6%

                          \[\leadsto \mathsf{134\_z0z1z2z3z4}\left(\left(\frac{1}{\color{blue}{b} \cdot z + y}\right), y, x, a, z\right) \]
                        2. Step-by-step derivation
                          1. lift-134-z0z1z2z3z4N/A

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

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

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

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

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

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

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

                            \[\leadsto \frac{\color{blue}{x \cdot y} - a \cdot z}{b \cdot z + y} \]
                          9. lower-*.f6441.9%

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

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

                            \[\leadsto \frac{x \cdot y - a \cdot z}{\color{blue}{z \cdot b} + y} \]
                          12. lower-*.f6441.9%

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

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

                      Alternative 10: 66.2% accurate, 1.1× speedup?

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

                        1. Initial program 66.3%

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

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

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

                            \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
                          3. lower--.f6452.4%

                            \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
                        4. Applied rewrites52.4%

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

                        if -3.3000000000000001e-94 < z < 2.2000000000000001e-154

                        1. Initial program 66.3%

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

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

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

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

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

                            \[\leadsto \frac{x \cdot y}{y + z \cdot \color{blue}{\left(b - y\right)}} \]
                          5. lower--.f6428.9%

                            \[\leadsto \frac{x \cdot y}{y + z \cdot \left(b - \color{blue}{y}\right)} \]
                        4. Applied rewrites28.9%

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

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

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

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

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

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

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

                            \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                          8. lift-*.f64N/A

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

                            \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                          10. +-commutativeN/A

                            \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                          11. lift-+.f64N/A

                            \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                          12. lower-/.f6435.6%

                            \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                          13. lift-*.f64N/A

                            \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                          14. *-commutativeN/A

                            \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                          15. lift-*.f6435.6%

                            \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                        6. Applied rewrites35.6%

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

                          \[\leadsto \frac{y}{z \cdot b + y} \cdot x \]
                        8. Step-by-step derivation
                          1. Applied rewrites32.2%

                            \[\leadsto \frac{y}{z \cdot b + y} \cdot x \]
                        9. Recombined 2 regimes into one program.
                        10. Add Preprocessing

                        Alternative 11: 63.8% accurate, 1.3× speedup?

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

                          1. Initial program 66.3%

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

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

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

                              \[\leadsto \frac{t - a}{\color{blue}{b} - y} \]
                            3. lower--.f6452.4%

                              \[\leadsto \frac{t - a}{b - \color{blue}{y}} \]
                          4. Applied rewrites52.4%

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

                          if -3.3000000000000001e-94 < z < 2.15e-154

                          1. Initial program 66.3%

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

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

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

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

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

                              \[\leadsto \frac{x \cdot y}{y + z \cdot \color{blue}{\left(b - y\right)}} \]
                            5. lower--.f6428.9%

                              \[\leadsto \frac{x \cdot y}{y + z \cdot \left(b - \color{blue}{y}\right)} \]
                          4. Applied rewrites28.9%

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

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

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

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

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

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

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

                              \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                            8. lift-*.f64N/A

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

                              \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                            10. +-commutativeN/A

                              \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                            11. lift-+.f64N/A

                              \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                            12. lower-/.f6435.6%

                              \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                            13. lift-*.f64N/A

                              \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                            14. *-commutativeN/A

                              \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                            15. lift-*.f6435.6%

                              \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                          6. Applied rewrites35.6%

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

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

                              \[\leadsto 1 \cdot x \]
                          9. Recombined 2 regimes into one program.
                          10. Add Preprocessing

                          Alternative 12: 47.5% accurate, 1.4× speedup?

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

                            1. Initial program 66.3%

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

                              \[\leadsto \color{blue}{\frac{t - a}{b}} \]
                            3. Step-by-step derivation
                              1. lower-/.f64N/A

                                \[\leadsto \frac{t - a}{\color{blue}{b}} \]
                              2. lower--.f6436.0%

                                \[\leadsto \frac{t - a}{b} \]
                            4. Applied rewrites36.0%

                              \[\leadsto \color{blue}{\frac{t - a}{b}} \]

                            if -4.1999999999999998e-90 < z < 1.6999999999999999e-153

                            1. Initial program 66.3%

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

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

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

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

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

                                \[\leadsto \frac{x \cdot y}{y + z \cdot \color{blue}{\left(b - y\right)}} \]
                              5. lower--.f6428.9%

                                \[\leadsto \frac{x \cdot y}{y + z \cdot \left(b - \color{blue}{y}\right)} \]
                            4. Applied rewrites28.9%

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

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

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

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

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

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

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

                                \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                              8. lift-*.f64N/A

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

                                \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                              10. +-commutativeN/A

                                \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                              11. lift-+.f64N/A

                                \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                              12. lower-/.f6435.6%

                                \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                              13. lift-*.f64N/A

                                \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                              14. *-commutativeN/A

                                \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                              15. lift-*.f6435.6%

                                \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                            6. Applied rewrites35.6%

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

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

                                \[\leadsto 1 \cdot x \]
                            9. Recombined 2 regimes into one program.
                            10. Add Preprocessing

                            Alternative 13: 37.2% accurate, 1.6× speedup?

                            \[\begin{array}{l} \mathbf{if}\;z \leq \frac{-5312662293228351}{147573952589676412928}:\\ \;\;\;\;\frac{t}{b}\\ \mathbf{elif}\;z \leq \frac{5996272065288561}{19342813113834066795298816}:\\ \;\;\;\;1 \cdot x\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{b}\\ \end{array} \]
                            (FPCore (x y z t a b)
                              :precision binary64
                              (if (<= z -5312662293228351/147573952589676412928)
                              (/ t b)
                              (if (<= z 5996272065288561/19342813113834066795298816)
                                (* 1 x)
                                (/ t b))))
                            double code(double x, double y, double z, double t, double a, double b) {
                            	double tmp;
                            	if (z <= -3.6e-5) {
                            		tmp = t / b;
                            	} else if (z <= 3.1e-10) {
                            		tmp = 1.0 * x;
                            	} else {
                            		tmp = t / b;
                            	}
                            	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, b)
                            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), intent (in) :: b
                                real(8) :: tmp
                                if (z <= (-3.6d-5)) then
                                    tmp = t / b
                                else if (z <= 3.1d-10) then
                                    tmp = 1.0d0 * x
                                else
                                    tmp = t / b
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b) {
                            	double tmp;
                            	if (z <= -3.6e-5) {
                            		tmp = t / b;
                            	} else if (z <= 3.1e-10) {
                            		tmp = 1.0 * x;
                            	} else {
                            		tmp = t / b;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b):
                            	tmp = 0
                            	if z <= -3.6e-5:
                            		tmp = t / b
                            	elif z <= 3.1e-10:
                            		tmp = 1.0 * x
                            	else:
                            		tmp = t / b
                            	return tmp
                            
                            function code(x, y, z, t, a, b)
                            	tmp = 0.0
                            	if (z <= -3.6e-5)
                            		tmp = Float64(t / b);
                            	elseif (z <= 3.1e-10)
                            		tmp = Float64(1.0 * x);
                            	else
                            		tmp = Float64(t / b);
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b)
                            	tmp = 0.0;
                            	if (z <= -3.6e-5)
                            		tmp = t / b;
                            	elseif (z <= 3.1e-10)
                            		tmp = 1.0 * x;
                            	else
                            		tmp = t / b;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5312662293228351/147573952589676412928], N[(t / b), $MachinePrecision], If[LessEqual[z, 5996272065288561/19342813113834066795298816], N[(1 * x), $MachinePrecision], N[(t / b), $MachinePrecision]]]
                            
                            \begin{array}{l}
                            \mathbf{if}\;z \leq \frac{-5312662293228351}{147573952589676412928}:\\
                            \;\;\;\;\frac{t}{b}\\
                            
                            \mathbf{elif}\;z \leq \frac{5996272065288561}{19342813113834066795298816}:\\
                            \;\;\;\;1 \cdot x\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\frac{t}{b}\\
                            
                            
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if z < -3.6000000000000001e-5 or 3.1000000000000002e-10 < z

                              1. Initial program 66.3%

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

                                \[\leadsto \color{blue}{\frac{t - a}{b}} \]
                              3. Step-by-step derivation
                                1. lower-/.f64N/A

                                  \[\leadsto \frac{t - a}{\color{blue}{b}} \]
                                2. lower--.f6436.0%

                                  \[\leadsto \frac{t - a}{b} \]
                              4. Applied rewrites36.0%

                                \[\leadsto \color{blue}{\frac{t - a}{b}} \]
                              5. Taylor expanded in t around inf

                                \[\leadsto \frac{t}{\color{blue}{b}} \]
                              6. Step-by-step derivation
                                1. lower-/.f6420.9%

                                  \[\leadsto \frac{t}{b} \]
                              7. Applied rewrites20.9%

                                \[\leadsto \frac{t}{\color{blue}{b}} \]

                              if -3.6000000000000001e-5 < z < 3.1000000000000002e-10

                              1. Initial program 66.3%

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

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

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

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

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

                                  \[\leadsto \frac{x \cdot y}{y + z \cdot \color{blue}{\left(b - y\right)}} \]
                                5. lower--.f6428.9%

                                  \[\leadsto \frac{x \cdot y}{y + z \cdot \left(b - \color{blue}{y}\right)} \]
                              4. Applied rewrites28.9%

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

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

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

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

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

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

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

                                  \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                                8. lift-*.f64N/A

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

                                  \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                                10. +-commutativeN/A

                                  \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                                11. lift-+.f64N/A

                                  \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                                12. lower-/.f6435.6%

                                  \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                                13. lift-*.f64N/A

                                  \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                                14. *-commutativeN/A

                                  \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                                15. lift-*.f6435.6%

                                  \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                              6. Applied rewrites35.6%

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

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

                                  \[\leadsto 1 \cdot x \]
                              9. Recombined 2 regimes into one program.
                              10. Add Preprocessing

                              Alternative 14: 24.9% accurate, 6.5× speedup?

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

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

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

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

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

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

                                  \[\leadsto \frac{x \cdot y}{y + z \cdot \color{blue}{\left(b - y\right)}} \]
                                5. lower--.f6428.9%

                                  \[\leadsto \frac{x \cdot y}{y + z \cdot \left(b - \color{blue}{y}\right)} \]
                              4. Applied rewrites28.9%

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

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

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

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

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

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

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

                                  \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                                8. lift-*.f64N/A

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

                                  \[\leadsto \frac{y}{y + \left(b - y\right) \cdot z} \cdot x \]
                                10. +-commutativeN/A

                                  \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                                11. lift-+.f64N/A

                                  \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                                12. lower-/.f6435.6%

                                  \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                                13. lift-*.f64N/A

                                  \[\leadsto \frac{y}{\left(b - y\right) \cdot z + y} \cdot x \]
                                14. *-commutativeN/A

                                  \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                                15. lift-*.f6435.6%

                                  \[\leadsto \frac{y}{z \cdot \left(b - y\right) + y} \cdot x \]
                              6. Applied rewrites35.6%

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

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

                                  \[\leadsto 1 \cdot x \]
                                2. Add Preprocessing

                                Reproduce

                                ?
                                herbie shell --seed 2025271 -o generate:evaluate
                                (FPCore (x y z t a b)
                                  :name "Development.Shake.Progress:decay from shake-0.15.5"
                                  :precision binary64
                                  (/ (+ (* x y) (* z (- t a))) (+ y (* z (- b y)))))