Optimisation.CirclePacking:place from circle-packing-0.1.0.4, F

Percentage Accurate: 93.4% → 98.7%
Time: 4.7s
Alternatives: 9
Speedup: 0.7×

Specification

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

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

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

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

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

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

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

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

Alternative 1: 98.7% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -5 \cdot 10^{+100} \lor \neg \left(a \leq 5 \cdot 10^{-68}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{t - z}{a}, y, x\right)\\

\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot \left(z - t\right)}{a}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -4.9999999999999999e100 or 4.99999999999999971e-68 < a

    1. Initial program 85.9%

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

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

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

      if -4.9999999999999999e100 < a < 4.99999999999999971e-68

      1. Initial program 99.8%

        \[x - \frac{y \cdot \left(z - t\right)}{a} \]
      2. Add Preprocessing
    5. Recombined 2 regimes into one program.
    6. Final simplification99.9%

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

    Alternative 2: 81.6% accurate, 0.3× speedup?

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

      1. Initial program 88.6%

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

        \[\leadsto \color{blue}{y \cdot \left(\frac{t}{a} - \frac{z}{a}\right)} \]
      4. Step-by-step derivation
        1. Applied rewrites84.6%

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

        if -5.00000000000000012e143 < (/.f64 (*.f64 y (-.f64 z t)) a) < 1e104

        1. Initial program 99.8%

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{t}{a}, y, x\right) \]
          3. Step-by-step derivation
            1. Applied rewrites85.4%

              \[\leadsto \mathsf{fma}\left(\frac{t}{a}, y, x\right) \]
          4. Recombined 2 regimes into one program.
          5. Final simplification85.0%

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

          Alternative 3: 60.2% accurate, 0.3× speedup?

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

            1. Initial program 88.6%

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

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

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

                \[\leadsto \color{blue}{\frac{t \cdot y}{a}} \]
              3. Step-by-step derivation
                1. Applied rewrites47.0%

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

                if -4.0000000000000002e142 < (/.f64 (*.f64 y (-.f64 z t)) a) < 1e104

                1. Initial program 99.9%

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

                  \[\leadsto \color{blue}{x} \]
                4. Step-by-step derivation
                  1. Applied rewrites72.7%

                    \[\leadsto \color{blue}{x} \]
                5. Recombined 2 regimes into one program.
                6. Final simplification59.2%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{y \cdot \left(z - t\right)}{a} \leq -4 \cdot 10^{+142} \lor \neg \left(\frac{y \cdot \left(z - t\right)}{a} \leq 10^{+104}\right):\\ \;\;\;\;t \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
                7. Add Preprocessing

                Alternative 4: 92.7% accurate, 0.5× speedup?

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

                  1. Initial program 92.8%

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

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

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

                    if -2.00000000000000004e64 < (*.f64 y (-.f64 z t)) < -1.99999999999999987e-88

                    1. Initial program 99.9%

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

                      \[\leadsto x - \frac{y \cdot \color{blue}{z}}{a} \]
                    4. Step-by-step derivation
                      1. Applied rewrites99.9%

                        \[\leadsto x - \frac{y \cdot \color{blue}{z}}{a} \]
                    5. Recombined 2 regimes into one program.
                    6. Final simplification94.7%

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

                    Alternative 5: 85.0% accurate, 0.7× speedup?

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

                      1. Initial program 92.2%

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

                        \[\leadsto \color{blue}{x - -1 \cdot \frac{t \cdot y}{a}} \]
                      4. Step-by-step derivation
                        1. Applied rewrites86.9%

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

                        if -2.00000000000000016e91 < t < 1.3e16

                        1. Initial program 95.1%

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

                          \[\leadsto x - \frac{y \cdot \color{blue}{z}}{a} \]
                        4. Step-by-step derivation
                          1. Applied rewrites87.0%

                            \[\leadsto x - \frac{y \cdot \color{blue}{z}}{a} \]
                        5. Recombined 2 regimes into one program.
                        6. Final simplification87.0%

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

                        Alternative 6: 75.2% accurate, 0.7× speedup?

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

                          1. Initial program 91.1%

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

                            \[\leadsto \color{blue}{-1 \cdot \frac{y \cdot z}{a}} \]
                          4. Step-by-step derivation
                            1. Applied rewrites66.0%

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

                            if -6.2e12 < z < 2.3999999999999999e117

                            1. Initial program 96.0%

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

                              \[\leadsto \color{blue}{x - -1 \cdot \frac{t \cdot y}{a}} \]
                            4. Step-by-step derivation
                              1. Applied rewrites85.7%

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

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

                            Alternative 7: 75.7% accurate, 0.7× speedup?

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

                              1. Initial program 90.7%

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

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

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

                                  \[\leadsto \color{blue}{-1 \cdot \frac{y \cdot z}{a}} \]
                                3. Step-by-step derivation
                                  1. Applied rewrites63.8%

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

                                  if -9.4000000000000004e216 < z < 3.75e117

                                  1. Initial program 95.2%

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{a}, t, x\right)} \]
                                  5. Recombined 2 regimes into one program.
                                  6. Final simplification74.1%

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

                                  Alternative 8: 71.5% accurate, 1.3× speedup?

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

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

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

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

                                    Alternative 9: 39.0% accurate, 23.0× speedup?

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

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

                                      \[\leadsto \color{blue}{x} \]
                                    4. Step-by-step derivation
                                      1. Applied rewrites38.7%

                                        \[\leadsto \color{blue}{x} \]
                                      2. Add Preprocessing

                                      Developer Target 1: 99.3% accurate, 0.5× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{a}{z - t}\\ \mathbf{if}\;y < -1.0761266216389975 \cdot 10^{-10}:\\ \;\;\;\;x - \frac{1}{\frac{t\_1}{y}}\\ \mathbf{elif}\;y < 2.894426862792089 \cdot 10^{-49}:\\ \;\;\;\;x - \frac{y \cdot \left(z - t\right)}{a}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{t\_1}\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (let* ((t_1 (/ a (- z t))))
                                         (if (< y -1.0761266216389975e-10)
                                           (- x (/ 1.0 (/ t_1 y)))
                                           (if (< y 2.894426862792089e-49)
                                             (- x (/ (* y (- z t)) a))
                                             (- x (/ y t_1))))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double t_1 = a / (z - t);
                                      	double tmp;
                                      	if (y < -1.0761266216389975e-10) {
                                      		tmp = x - (1.0 / (t_1 / y));
                                      	} else if (y < 2.894426862792089e-49) {
                                      		tmp = x - ((y * (z - t)) / a);
                                      	} else {
                                      		tmp = x - (y / t_1);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      module fmin_fmax_functions
                                          implicit none
                                          private
                                          public fmax
                                          public fmin
                                      
                                          interface fmax
                                              module procedure fmax88
                                              module procedure fmax44
                                              module procedure fmax84
                                              module procedure fmax48
                                          end interface
                                          interface fmin
                                              module procedure fmin88
                                              module procedure fmin44
                                              module procedure fmin84
                                              module procedure fmin48
                                          end interface
                                      contains
                                          real(8) function fmax88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmax44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmax84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmax48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmin44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmin48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                          end function
                                      end module
                                      
                                      real(8) function code(x, y, z, t, a)
                                      use fmin_fmax_functions
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8) :: t_1
                                          real(8) :: tmp
                                          t_1 = a / (z - t)
                                          if (y < (-1.0761266216389975d-10)) then
                                              tmp = x - (1.0d0 / (t_1 / y))
                                          else if (y < 2.894426862792089d-49) then
                                              tmp = x - ((y * (z - t)) / a)
                                          else
                                              tmp = x - (y / t_1)
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a) {
                                      	double t_1 = a / (z - t);
                                      	double tmp;
                                      	if (y < -1.0761266216389975e-10) {
                                      		tmp = x - (1.0 / (t_1 / y));
                                      	} else if (y < 2.894426862792089e-49) {
                                      		tmp = x - ((y * (z - t)) / a);
                                      	} else {
                                      		tmp = x - (y / t_1);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a):
                                      	t_1 = a / (z - t)
                                      	tmp = 0
                                      	if y < -1.0761266216389975e-10:
                                      		tmp = x - (1.0 / (t_1 / y))
                                      	elif y < 2.894426862792089e-49:
                                      		tmp = x - ((y * (z - t)) / a)
                                      	else:
                                      		tmp = x - (y / t_1)
                                      	return tmp
                                      
                                      function code(x, y, z, t, a)
                                      	t_1 = Float64(a / Float64(z - t))
                                      	tmp = 0.0
                                      	if (y < -1.0761266216389975e-10)
                                      		tmp = Float64(x - Float64(1.0 / Float64(t_1 / y)));
                                      	elseif (y < 2.894426862792089e-49)
                                      		tmp = Float64(x - Float64(Float64(y * Float64(z - t)) / a));
                                      	else
                                      		tmp = Float64(x - Float64(y / t_1));
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a)
                                      	t_1 = a / (z - t);
                                      	tmp = 0.0;
                                      	if (y < -1.0761266216389975e-10)
                                      		tmp = x - (1.0 / (t_1 / y));
                                      	elseif (y < 2.894426862792089e-49)
                                      		tmp = x - ((y * (z - t)) / a);
                                      	else
                                      		tmp = x - (y / t_1);
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[Less[y, -1.0761266216389975e-10], N[(x - N[(1.0 / N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y, 2.894426862792089e-49], N[(x - N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / t$95$1), $MachinePrecision]), $MachinePrecision]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{a}{z - t}\\
                                      \mathbf{if}\;y < -1.0761266216389975 \cdot 10^{-10}:\\
                                      \;\;\;\;x - \frac{1}{\frac{t\_1}{y}}\\
                                      
                                      \mathbf{elif}\;y < 2.894426862792089 \cdot 10^{-49}:\\
                                      \;\;\;\;x - \frac{y \cdot \left(z - t\right)}{a}\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;x - \frac{y}{t\_1}\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      

                                      Reproduce

                                      ?
                                      herbie shell --seed 2025026 
                                      (FPCore (x y z t a)
                                        :name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, F"
                                        :precision binary64
                                      
                                        :alt
                                        (! :herbie-platform default (if (< y -430450648655599/4000000000000000000000000) (- x (/ 1 (/ (/ a (- z t)) y))) (if (< y 2894426862792089/10000000000000000000000000000000000000000000000000000000000000000) (- x (/ (* y (- z t)) a)) (- x (/ y (/ a (- z t)))))))
                                      
                                        (- x (/ (* y (- z t)) a)))