Diagrams.ThreeD.Shapes:frustum from diagrams-lib-1.3.0.3, A

Percentage Accurate: 89.6% → 96.3%
Time: 9.9s
Alternatives: 16
Speedup: 0.5×

Specification

?
\[\begin{array}{l} \\ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
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, c, i)
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), intent (in) :: c
    real(8), intent (in) :: i
    code = 2.0d0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
def code(x, y, z, t, a, b, c, i):
	return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))
function code(x, y, z, t, a, b, c, i)
	return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(Float64(a + Float64(b * c)) * c) * i)))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)
\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 16 alternatives:

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

Initial Program: 89.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
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, c, i)
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), intent (in) :: c
    real(8), intent (in) :: i
    code = 2.0d0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
def code(x, y, z, t, a, b, c, i):
	return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))
function code(x, y, z, t, a, b, c, i)
	return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(Float64(a + Float64(b * c)) * c) * i)))
end
function tmp = code(x, y, z, t, a, b, c, i)
	tmp = 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)
\end{array}

Alternative 1: 96.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \leq \infty:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \left(-i\right) \cdot c, \mathsf{fma}\left(t, z, y \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(z, t, \mathsf{fma}\left(x, y, \left(\left(-i\right) \cdot a\right) \cdot c\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (if (<= (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))) INFINITY)
   (* 2.0 (fma (fma c b a) (* (- i) c) (fma t z (* y x))))
   (* 2.0 (fma z t (fma x y (* (* (- i) a) c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double tmp;
	if ((2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))) <= ((double) INFINITY)) {
		tmp = 2.0 * fma(fma(c, b, a), (-i * c), fma(t, z, (y * x)));
	} else {
		tmp = 2.0 * fma(z, t, fma(x, y, ((-i * a) * c)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	tmp = 0.0
	if (Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(Float64(a + Float64(b * c)) * c) * i))) <= Inf)
		tmp = Float64(2.0 * fma(fma(c, b, a), Float64(Float64(-i) * c), fma(t, z, Float64(y * x))));
	else
		tmp = Float64(2.0 * fma(z, t, fma(x, y, Float64(Float64(Float64(-i) * a) * c))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(2.0 * N[(N[(c * b + a), $MachinePrecision] * N[((-i) * c), $MachinePrecision] + N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(z * t + N[(x * y + N[(N[((-i) * a), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \leq \infty:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \left(-i\right) \cdot c, \mathsf{fma}\left(t, z, y \cdot x\right)\right)\\

\mathbf{else}:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(z, t, \mathsf{fma}\left(x, y, \left(\left(-i\right) \cdot a\right) \cdot c\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 #s(literal 2 binary64) (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i))) < +inf.0

    1. Initial program 94.1%

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

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

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

        \[\leadsto 2 \cdot \color{blue}{\left(\left(x \cdot y + z \cdot t\right) + \left(\mathsf{neg}\left(\left(a + b \cdot c\right) \cdot c\right)\right) \cdot i\right)} \]
      4. +-commutativeN/A

        \[\leadsto 2 \cdot \color{blue}{\left(\left(\mathsf{neg}\left(\left(a + b \cdot c\right) \cdot c\right)\right) \cdot i + \left(x \cdot y + z \cdot t\right)\right)} \]
      5. distribute-lft-neg-outN/A

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

        \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(\left(a + b \cdot c\right) \cdot c\right)} \cdot i\right)\right) + \left(x \cdot y + z \cdot t\right)\right) \]
      7. associate-*l*N/A

        \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(a + b \cdot c\right) \cdot \left(c \cdot i\right)}\right)\right) + \left(x \cdot y + z \cdot t\right)\right) \]
      8. distribute-rgt-neg-inN/A

        \[\leadsto 2 \cdot \left(\color{blue}{\left(a + b \cdot c\right) \cdot \left(\mathsf{neg}\left(c \cdot i\right)\right)} + \left(x \cdot y + z \cdot t\right)\right) \]
      9. lower-fma.f64N/A

        \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(a + b \cdot c, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right)} \]
      10. lift-+.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{a + b \cdot c}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
      11. +-commutativeN/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{b \cdot c + a}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
      12. lift-*.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{b \cdot c} + a, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
      13. *-commutativeN/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{c \cdot b} + a, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
      14. lower-fma.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(c, b, a\right)}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
      15. lower-neg.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \color{blue}{-c \cdot i}, x \cdot y + z \cdot t\right) \]
      16. *-commutativeN/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -\color{blue}{i \cdot c}, x \cdot y + z \cdot t\right) \]
      17. lower-*.f6498.0

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -\color{blue}{i \cdot c}, x \cdot y + z \cdot t\right) \]
      18. lift-+.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{x \cdot y + z \cdot t}\right) \]
      19. +-commutativeN/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t + x \cdot y}\right) \]
      20. lift-*.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t} + x \cdot y\right) \]
      21. *-commutativeN/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{t \cdot z} + x \cdot y\right) \]
      22. lower-fma.f6498.0

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)}\right) \]
      23. lift-*.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{x \cdot y}\right)\right) \]
      24. *-commutativeN/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
      25. lower-*.f6498.0

        \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
    4. Applied rewrites98.0%

      \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, y \cdot x\right)\right)} \]

    if +inf.0 < (*.f64 #s(literal 2 binary64) (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)))

    1. Initial program 0.0%

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

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

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

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

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

        \[\leadsto 2 \cdot \color{blue}{\left(-1 \cdot \left(a \cdot \left(c \cdot i\right)\right) + \left(t \cdot z + x \cdot y\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto 2 \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot \left(c \cdot i\right)\right)\right)} + \left(t \cdot z + x \cdot y\right)\right) \]
      6. associate-*r*N/A

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

        \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot a\right)} \cdot i\right)\right) + \left(t \cdot z + x \cdot y\right)\right) \]
      8. associate-*r*N/A

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

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

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

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

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

        \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), a \cdot c, t \cdot z + x \cdot y\right)} \]
      14. lower-neg.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{-i}, a \cdot c, t \cdot z + x \cdot y\right) \]
      15. *-commutativeN/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(-i, \color{blue}{c \cdot a}, t \cdot z + x \cdot y\right) \]
      16. lower-*.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(-i, \color{blue}{c \cdot a}, t \cdot z + x \cdot y\right) \]
      17. lower-fma.f64N/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)}\right) \]
      18. *-commutativeN/A

        \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
      19. lower-*.f6428.6

        \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
    5. Applied rewrites28.6%

      \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, y \cdot x\right)\right)} \]
    6. Step-by-step derivation
      1. Applied rewrites78.6%

        \[\leadsto 2 \cdot \mathsf{fma}\left(z, \color{blue}{t}, \mathsf{fma}\left(x, y, \left(\left(-i\right) \cdot a\right) \cdot c\right)\right) \]
    7. Recombined 2 regimes into one program.
    8. Final simplification96.9%

      \[\leadsto \begin{array}{l} \mathbf{if}\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \leq \infty:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \left(-i\right) \cdot c, \mathsf{fma}\left(t, z, y \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(z, t, \mathsf{fma}\left(x, y, \left(\left(-i\right) \cdot a\right) \cdot c\right)\right)\\ \end{array} \]
    9. Add Preprocessing

    Alternative 2: 73.6% accurate, 0.4× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-2 \cdot \left(\left(i \cdot c\right) \cdot b\right)\right) \cdot c\\ t_2 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+214}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+120}:\\ \;\;\;\;\left(\left(a \cdot c\right) \cdot i\right) \cdot -2\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+256}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i)
     :precision binary64
     (let* ((t_1 (* (* -2.0 (* (* i c) b)) c)) (t_2 (* (* (+ a (* b c)) c) i)))
       (if (<= t_2 -2e+214)
         t_1
         (if (<= t_2 -5e+120)
           (* (* (* a c) i) -2.0)
           (if (<= t_2 5e+256) (* 2.0 (fma t z (* y x))) t_1)))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
    	double t_1 = (-2.0 * ((i * c) * b)) * c;
    	double t_2 = ((a + (b * c)) * c) * i;
    	double tmp;
    	if (t_2 <= -2e+214) {
    		tmp = t_1;
    	} else if (t_2 <= -5e+120) {
    		tmp = ((a * c) * i) * -2.0;
    	} else if (t_2 <= 5e+256) {
    		tmp = 2.0 * fma(t, z, (y * x));
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i)
    	t_1 = Float64(Float64(-2.0 * Float64(Float64(i * c) * b)) * c)
    	t_2 = Float64(Float64(Float64(a + Float64(b * c)) * c) * i)
    	tmp = 0.0
    	if (t_2 <= -2e+214)
    		tmp = t_1;
    	elseif (t_2 <= -5e+120)
    		tmp = Float64(Float64(Float64(a * c) * i) * -2.0);
    	elseif (t_2 <= 5e+256)
    		tmp = Float64(2.0 * fma(t, z, Float64(y * x)));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(-2.0 * N[(N[(i * c), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+214], t$95$1, If[LessEqual[t$95$2, -5e+120], N[(N[(N[(a * c), $MachinePrecision] * i), $MachinePrecision] * -2.0), $MachinePrecision], If[LessEqual[t$95$2, 5e+256], N[(2.0 * N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \left(-2 \cdot \left(\left(i \cdot c\right) \cdot b\right)\right) \cdot c\\
    t_2 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\
    \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+214}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+120}:\\
    \;\;\;\;\left(\left(a \cdot c\right) \cdot i\right) \cdot -2\\
    
    \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+256}:\\
    \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -1.9999999999999999e214 or 5.00000000000000015e256 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

      1. Initial program 77.3%

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

        \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
        2. associate-*r*N/A

          \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
        3. distribute-rgt-inN/A

          \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
        4. associate-*r*N/A

          \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
        5. distribute-lft-outN/A

          \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
        6. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
        7. distribute-lft-outN/A

          \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
        8. associate-*r*N/A

          \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
        9. distribute-rgt-inN/A

          \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
        10. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
        11. *-commutativeN/A

          \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
        12. lower-*.f64N/A

          \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
        13. +-commutativeN/A

          \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
        14. *-commutativeN/A

          \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
        15. lower-fma.f6485.4

          \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
      5. Applied rewrites85.4%

        \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
      6. Taylor expanded in a around 0

        \[\leadsto \left(-2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c \]
      7. Step-by-step derivation
        1. Applied rewrites68.3%

          \[\leadsto \left(-2 \cdot \left(\left(i \cdot c\right) \cdot b\right)\right) \cdot c \]

        if -1.9999999999999999e214 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -5.00000000000000019e120

        1. Initial program 99.7%

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

          \[\leadsto \color{blue}{-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)} \]
        4. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
          2. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
          3. *-commutativeN/A

            \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
          4. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
          5. *-commutativeN/A

            \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
          6. lower-*.f6467.6

            \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
        5. Applied rewrites67.6%

          \[\leadsto \color{blue}{\left(\left(i \cdot c\right) \cdot a\right) \cdot -2} \]
        6. Step-by-step derivation
          1. Applied rewrites67.8%

            \[\leadsto \left(\left(a \cdot c\right) \cdot i\right) \cdot -2 \]

          if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 5.00000000000000015e256

          1. Initial program 97.7%

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

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

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

              \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
            3. *-commutativeN/A

              \[\leadsto 2 \cdot \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
            4. lower-*.f6481.5

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

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

        Alternative 3: 73.6% accurate, 0.4× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(-2 \cdot \left(c \cdot b\right)\right) \cdot \left(i \cdot c\right)\\ t_2 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\ \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+306}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+120}:\\ \;\;\;\;\left(\left(i \cdot c\right) \cdot a\right) \cdot -2\\ \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+256}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b c i)
         :precision binary64
         (let* ((t_1 (* (* -2.0 (* c b)) (* i c))) (t_2 (* (* (+ a (* b c)) c) i)))
           (if (<= t_2 -5e+306)
             t_1
             (if (<= t_2 -5e+120)
               (* (* (* i c) a) -2.0)
               (if (<= t_2 5e+256) (* 2.0 (fma t z (* y x))) t_1)))))
        double code(double x, double y, double z, double t, double a, double b, double c, double i) {
        	double t_1 = (-2.0 * (c * b)) * (i * c);
        	double t_2 = ((a + (b * c)) * c) * i;
        	double tmp;
        	if (t_2 <= -5e+306) {
        		tmp = t_1;
        	} else if (t_2 <= -5e+120) {
        		tmp = ((i * c) * a) * -2.0;
        	} else if (t_2 <= 5e+256) {
        		tmp = 2.0 * fma(t, z, (y * x));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i)
        	t_1 = Float64(Float64(-2.0 * Float64(c * b)) * Float64(i * c))
        	t_2 = Float64(Float64(Float64(a + Float64(b * c)) * c) * i)
        	tmp = 0.0
        	if (t_2 <= -5e+306)
        		tmp = t_1;
        	elseif (t_2 <= -5e+120)
        		tmp = Float64(Float64(Float64(i * c) * a) * -2.0);
        	elseif (t_2 <= 5e+256)
        		tmp = Float64(2.0 * fma(t, z, Float64(y * x)));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(-2.0 * N[(c * b), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+306], t$95$1, If[LessEqual[t$95$2, -5e+120], N[(N[(N[(i * c), $MachinePrecision] * a), $MachinePrecision] * -2.0), $MachinePrecision], If[LessEqual[t$95$2, 5e+256], N[(2.0 * N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \left(-2 \cdot \left(c \cdot b\right)\right) \cdot \left(i \cdot c\right)\\
        t_2 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\
        \mathbf{if}\;t\_2 \leq -5 \cdot 10^{+306}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t\_2 \leq -5 \cdot 10^{+120}:\\
        \;\;\;\;\left(\left(i \cdot c\right) \cdot a\right) \cdot -2\\
        
        \mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+256}:\\
        \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -4.99999999999999993e306 or 5.00000000000000015e256 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

          1. Initial program 75.3%

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

            \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
            2. associate-*r*N/A

              \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
            3. distribute-rgt-inN/A

              \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
            4. associate-*r*N/A

              \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
            5. distribute-lft-outN/A

              \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
            7. distribute-lft-outN/A

              \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
            8. associate-*r*N/A

              \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
            9. distribute-rgt-inN/A

              \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
            10. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
            11. *-commutativeN/A

              \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
            12. lower-*.f64N/A

              \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
            13. +-commutativeN/A

              \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
            14. *-commutativeN/A

              \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
            15. lower-fma.f6486.8

              \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
          5. Applied rewrites86.8%

            \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
          6. Step-by-step derivation
            1. Applied rewrites89.4%

              \[\leadsto \left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \color{blue}{\left(i \cdot c\right)} \]
            2. Taylor expanded in a around 0

              \[\leadsto \left(-2 \cdot \left(b \cdot c\right)\right) \cdot \left(\color{blue}{i} \cdot c\right) \]
            3. Step-by-step derivation
              1. Applied rewrites69.2%

                \[\leadsto \left(-2 \cdot \left(c \cdot b\right)\right) \cdot \left(\color{blue}{i} \cdot c\right) \]

              if -4.99999999999999993e306 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -5.00000000000000019e120

              1. Initial program 99.6%

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

                \[\leadsto \color{blue}{-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)} \]
              4. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                2. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                3. *-commutativeN/A

                  \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                4. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                5. *-commutativeN/A

                  \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                6. lower-*.f6453.9

                  \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
              5. Applied rewrites53.9%

                \[\leadsto \color{blue}{\left(\left(i \cdot c\right) \cdot a\right) \cdot -2} \]

              if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 5.00000000000000015e256

              1. Initial program 97.7%

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

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

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

                  \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
                3. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
                4. lower-*.f6481.5

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

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

            Alternative 4: 94.8% accurate, 0.5× speedup?

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

              1. Initial program 73.7%

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

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

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

                  \[\leadsto 2 \cdot \color{blue}{\left(\left(x \cdot y + z \cdot t\right) + \left(\mathsf{neg}\left(\left(a + b \cdot c\right) \cdot c\right)\right) \cdot i\right)} \]
                4. +-commutativeN/A

                  \[\leadsto 2 \cdot \color{blue}{\left(\left(\mathsf{neg}\left(\left(a + b \cdot c\right) \cdot c\right)\right) \cdot i + \left(x \cdot y + z \cdot t\right)\right)} \]
                5. distribute-lft-neg-outN/A

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

                  \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(\left(a + b \cdot c\right) \cdot c\right)} \cdot i\right)\right) + \left(x \cdot y + z \cdot t\right)\right) \]
                7. associate-*l*N/A

                  \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(a + b \cdot c\right) \cdot \left(c \cdot i\right)}\right)\right) + \left(x \cdot y + z \cdot t\right)\right) \]
                8. distribute-rgt-neg-inN/A

                  \[\leadsto 2 \cdot \left(\color{blue}{\left(a + b \cdot c\right) \cdot \left(\mathsf{neg}\left(c \cdot i\right)\right)} + \left(x \cdot y + z \cdot t\right)\right) \]
                9. lower-fma.f64N/A

                  \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(a + b \cdot c, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right)} \]
                10. lift-+.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{a + b \cdot c}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                11. +-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{b \cdot c + a}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                12. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{b \cdot c} + a, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                13. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{c \cdot b} + a, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                14. lower-fma.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(c, b, a\right)}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                15. lower-neg.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \color{blue}{-c \cdot i}, x \cdot y + z \cdot t\right) \]
                16. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -\color{blue}{i \cdot c}, x \cdot y + z \cdot t\right) \]
                17. lower-*.f6491.8

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -\color{blue}{i \cdot c}, x \cdot y + z \cdot t\right) \]
                18. lift-+.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{x \cdot y + z \cdot t}\right) \]
                19. +-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t + x \cdot y}\right) \]
                20. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t} + x \cdot y\right) \]
                21. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{t \cdot z} + x \cdot y\right) \]
                22. lower-fma.f6491.8

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)}\right) \]
                23. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{x \cdot y}\right)\right) \]
                24. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
                25. lower-*.f6491.8

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
              4. Applied rewrites91.8%

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

                \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{t \cdot z}\right) \]
              6. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t}\right) \]
                2. lower-*.f6491.8

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t}\right) \]
              7. Applied rewrites91.8%

                \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t}\right) \]

              if -9.9999999999999994e303 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 5.0000000000000003e275

              1. Initial program 98.0%

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

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

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

                  \[\leadsto 2 \cdot \left(\color{blue}{\left(z \cdot t + x \cdot y\right)} - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
                4. associate--l+N/A

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

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

                  \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(z, t, x \cdot y - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)} \]
                7. lower--.f6498.6

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, \color{blue}{x \cdot y - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i}\right) \]
                8. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, \color{blue}{x \cdot y} - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
                9. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, \color{blue}{y \cdot x} - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
                10. lower-*.f6498.6

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, \color{blue}{y \cdot x} - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
                11. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, y \cdot x - \color{blue}{\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i}\right) \]
                12. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, y \cdot x - \color{blue}{i \cdot \left(\left(a + b \cdot c\right) \cdot c\right)}\right) \]
                13. lower-*.f6498.6

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, y \cdot x - \color{blue}{i \cdot \left(\left(a + b \cdot c\right) \cdot c\right)}\right) \]
                14. lift-+.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, y \cdot x - i \cdot \left(\color{blue}{\left(a + b \cdot c\right)} \cdot c\right)\right) \]
                15. +-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, y \cdot x - i \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot c\right)\right) \]
                16. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, y \cdot x - i \cdot \left(\left(\color{blue}{b \cdot c} + a\right) \cdot c\right)\right) \]
                17. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, y \cdot x - i \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot c\right)\right) \]
                18. lower-fma.f6498.6

                  \[\leadsto 2 \cdot \mathsf{fma}\left(z, t, y \cdot x - i \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot c\right)\right) \]
              4. Applied rewrites98.6%

                \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(z, t, y \cdot x - i \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot c\right)\right)} \]

              if 5.0000000000000003e275 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

              1. Initial program 76.4%

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

                \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
              4. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                2. associate-*r*N/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                3. distribute-rgt-inN/A

                  \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                4. associate-*r*N/A

                  \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                5. distribute-lft-outN/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                6. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                7. distribute-lft-outN/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                8. associate-*r*N/A

                  \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                9. distribute-rgt-inN/A

                  \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                10. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                11. *-commutativeN/A

                  \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                12. lower-*.f64N/A

                  \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                13. +-commutativeN/A

                  \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                14. *-commutativeN/A

                  \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                15. lower-fma.f6488.9

                  \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
              5. Applied rewrites88.9%

                \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
            3. Recombined 3 regimes into one program.
            4. Final simplification95.3%

              \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq -1 \cdot 10^{+304}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \left(-i\right) \cdot c, z \cdot t\right)\\ \mathbf{elif}\;\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq 5 \cdot 10^{+275}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(z, t, y \cdot x - i \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot c\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c\\ \end{array} \]
            5. Add Preprocessing

            Alternative 5: 90.5% accurate, 0.5× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+120} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \left(-i\right) \cdot c, z \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, y \cdot x\right)\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i)
             :precision binary64
             (let* ((t_1 (* (* (+ a (* b c)) c) i)))
               (if (or (<= t_1 -5e+120) (not (<= t_1 2e+243)))
                 (* 2.0 (fma (fma c b a) (* (- i) c) (* z t)))
                 (* 2.0 (fma (- i) (* c a) (fma t z (* y x)))))))
            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
            	double t_1 = ((a + (b * c)) * c) * i;
            	double tmp;
            	if ((t_1 <= -5e+120) || !(t_1 <= 2e+243)) {
            		tmp = 2.0 * fma(fma(c, b, a), (-i * c), (z * t));
            	} else {
            		tmp = 2.0 * fma(-i, (c * a), fma(t, z, (y * x)));
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i)
            	t_1 = Float64(Float64(Float64(a + Float64(b * c)) * c) * i)
            	tmp = 0.0
            	if ((t_1 <= -5e+120) || !(t_1 <= 2e+243))
            		tmp = Float64(2.0 * fma(fma(c, b, a), Float64(Float64(-i) * c), Float64(z * t)));
            	else
            		tmp = Float64(2.0 * fma(Float64(-i), Float64(c * a), fma(t, z, Float64(y * x))));
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e+120], N[Not[LessEqual[t$95$1, 2e+243]], $MachinePrecision]], N[(2.0 * N[(N[(c * b + a), $MachinePrecision] * N[((-i) * c), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[((-i) * N[(c * a), $MachinePrecision] + N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\
            \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+120} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+243}\right):\\
            \;\;\;\;2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \left(-i\right) \cdot c, z \cdot t\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, y \cdot x\right)\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -5.00000000000000019e120 or 2.0000000000000001e243 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

              1. Initial program 79.8%

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

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

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

                  \[\leadsto 2 \cdot \color{blue}{\left(\left(x \cdot y + z \cdot t\right) + \left(\mathsf{neg}\left(\left(a + b \cdot c\right) \cdot c\right)\right) \cdot i\right)} \]
                4. +-commutativeN/A

                  \[\leadsto 2 \cdot \color{blue}{\left(\left(\mathsf{neg}\left(\left(a + b \cdot c\right) \cdot c\right)\right) \cdot i + \left(x \cdot y + z \cdot t\right)\right)} \]
                5. distribute-lft-neg-outN/A

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

                  \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(\left(a + b \cdot c\right) \cdot c\right)} \cdot i\right)\right) + \left(x \cdot y + z \cdot t\right)\right) \]
                7. associate-*l*N/A

                  \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(a + b \cdot c\right) \cdot \left(c \cdot i\right)}\right)\right) + \left(x \cdot y + z \cdot t\right)\right) \]
                8. distribute-rgt-neg-inN/A

                  \[\leadsto 2 \cdot \left(\color{blue}{\left(a + b \cdot c\right) \cdot \left(\mathsf{neg}\left(c \cdot i\right)\right)} + \left(x \cdot y + z \cdot t\right)\right) \]
                9. lower-fma.f64N/A

                  \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(a + b \cdot c, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right)} \]
                10. lift-+.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{a + b \cdot c}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                11. +-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{b \cdot c + a}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                12. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{b \cdot c} + a, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                13. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{c \cdot b} + a, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                14. lower-fma.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(c, b, a\right)}, \mathsf{neg}\left(c \cdot i\right), x \cdot y + z \cdot t\right) \]
                15. lower-neg.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \color{blue}{-c \cdot i}, x \cdot y + z \cdot t\right) \]
                16. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -\color{blue}{i \cdot c}, x \cdot y + z \cdot t\right) \]
                17. lower-*.f6492.9

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -\color{blue}{i \cdot c}, x \cdot y + z \cdot t\right) \]
                18. lift-+.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{x \cdot y + z \cdot t}\right) \]
                19. +-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t + x \cdot y}\right) \]
                20. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t} + x \cdot y\right) \]
                21. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{t \cdot z} + x \cdot y\right) \]
                22. lower-fma.f6492.9

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)}\right) \]
                23. lift-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{x \cdot y}\right)\right) \]
                24. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
                25. lower-*.f6492.9

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
              4. Applied rewrites92.9%

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

                \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{t \cdot z}\right) \]
              6. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t}\right) \]
                2. lower-*.f6489.0

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t}\right) \]
              7. Applied rewrites89.0%

                \[\leadsto 2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), -i \cdot c, \color{blue}{z \cdot t}\right) \]

              if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 2.0000000000000001e243

              1. Initial program 97.7%

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

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

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

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

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

                  \[\leadsto 2 \cdot \color{blue}{\left(-1 \cdot \left(a \cdot \left(c \cdot i\right)\right) + \left(t \cdot z + x \cdot y\right)\right)} \]
                5. mul-1-negN/A

                  \[\leadsto 2 \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot \left(c \cdot i\right)\right)\right)} + \left(t \cdot z + x \cdot y\right)\right) \]
                6. associate-*r*N/A

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

                  \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot a\right)} \cdot i\right)\right) + \left(t \cdot z + x \cdot y\right)\right) \]
                8. associate-*r*N/A

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

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

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

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

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

                  \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), a \cdot c, t \cdot z + x \cdot y\right)} \]
                14. lower-neg.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{-i}, a \cdot c, t \cdot z + x \cdot y\right) \]
                15. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(-i, \color{blue}{c \cdot a}, t \cdot z + x \cdot y\right) \]
                16. lower-*.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(-i, \color{blue}{c \cdot a}, t \cdot z + x \cdot y\right) \]
                17. lower-fma.f64N/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)}\right) \]
                18. *-commutativeN/A

                  \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
                19. lower-*.f6492.6

                  \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
              5. Applied rewrites92.6%

                \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, y \cdot x\right)\right)} \]
            3. Recombined 2 regimes into one program.
            4. Final simplification90.9%

              \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq -5 \cdot 10^{+120} \lor \neg \left(\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;2 \cdot \mathsf{fma}\left(\mathsf{fma}\left(c, b, a\right), \left(-i\right) \cdot c, z \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, y \cdot x\right)\right)\\ \end{array} \]
            5. Add Preprocessing

            Alternative 6: 88.8% accurate, 0.5× speedup?

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

              1. Initial program 81.3%

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

                \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
              4. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                2. associate-*r*N/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                3. distribute-rgt-inN/A

                  \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                4. associate-*r*N/A

                  \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                5. distribute-lft-outN/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                6. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                7. distribute-lft-outN/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                8. associate-*r*N/A

                  \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                9. distribute-rgt-inN/A

                  \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                10. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                11. *-commutativeN/A

                  \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                12. lower-*.f64N/A

                  \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                13. +-commutativeN/A

                  \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                14. *-commutativeN/A

                  \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                15. lower-fma.f6483.2

                  \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
              5. Applied rewrites83.2%

                \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
              6. Step-by-step derivation
                1. Applied rewrites87.1%

                  \[\leadsto \left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \color{blue}{\left(i \cdot c\right)} \]
                2. Step-by-step derivation
                  1. Applied rewrites87.1%

                    \[\leadsto \mathsf{fma}\left(c \cdot b, -2, -2 \cdot a\right) \cdot \left(\color{blue}{i} \cdot c\right) \]

                  if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 5.00000000000000015e256

                  1. Initial program 97.7%

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

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

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

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

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

                      \[\leadsto 2 \cdot \color{blue}{\left(-1 \cdot \left(a \cdot \left(c \cdot i\right)\right) + \left(t \cdot z + x \cdot y\right)\right)} \]
                    5. mul-1-negN/A

                      \[\leadsto 2 \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot \left(c \cdot i\right)\right)\right)} + \left(t \cdot z + x \cdot y\right)\right) \]
                    6. associate-*r*N/A

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

                      \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot a\right)} \cdot i\right)\right) + \left(t \cdot z + x \cdot y\right)\right) \]
                    8. associate-*r*N/A

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

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

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

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

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

                      \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), a \cdot c, t \cdot z + x \cdot y\right)} \]
                    14. lower-neg.f64N/A

                      \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{-i}, a \cdot c, t \cdot z + x \cdot y\right) \]
                    15. *-commutativeN/A

                      \[\leadsto 2 \cdot \mathsf{fma}\left(-i, \color{blue}{c \cdot a}, t \cdot z + x \cdot y\right) \]
                    16. lower-*.f64N/A

                      \[\leadsto 2 \cdot \mathsf{fma}\left(-i, \color{blue}{c \cdot a}, t \cdot z + x \cdot y\right) \]
                    17. lower-fma.f64N/A

                      \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)}\right) \]
                    18. *-commutativeN/A

                      \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
                    19. lower-*.f6492.5

                      \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
                  5. Applied rewrites92.5%

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

                  if 5.00000000000000015e256 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

                  1. Initial program 77.2%

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

                    \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
                  4. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                    2. associate-*r*N/A

                      \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                    3. distribute-rgt-inN/A

                      \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                    4. associate-*r*N/A

                      \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                    5. distribute-lft-outN/A

                      \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                    6. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                    7. distribute-lft-outN/A

                      \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                    8. associate-*r*N/A

                      \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                    9. distribute-rgt-inN/A

                      \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                    10. lower-*.f64N/A

                      \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                    11. *-commutativeN/A

                      \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                    12. lower-*.f64N/A

                      \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                    13. +-commutativeN/A

                      \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                    14. *-commutativeN/A

                      \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                    15. lower-fma.f6486.0

                      \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
                  5. Applied rewrites86.0%

                    \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
                  6. Step-by-step derivation
                    1. Applied rewrites89.3%

                      \[\leadsto \left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \color{blue}{\left(i \cdot c\right)} \]
                  7. Recombined 3 regimes into one program.
                  8. Add Preprocessing

                  Alternative 7: 86.8% accurate, 0.5× speedup?

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

                    1. Initial program 81.6%

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

                      \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
                    4. Step-by-step derivation
                      1. *-commutativeN/A

                        \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                      2. associate-*r*N/A

                        \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                      3. distribute-rgt-inN/A

                        \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                      4. associate-*r*N/A

                        \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                      5. distribute-lft-outN/A

                        \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                      6. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                      7. distribute-lft-outN/A

                        \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                      8. associate-*r*N/A

                        \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                      9. distribute-rgt-inN/A

                        \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                      10. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                      11. *-commutativeN/A

                        \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                      12. lower-*.f64N/A

                        \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                      13. +-commutativeN/A

                        \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                      14. *-commutativeN/A

                        \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                      15. lower-fma.f6482.0

                        \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
                    5. Applied rewrites82.0%

                      \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
                    6. Step-by-step derivation
                      1. Applied rewrites85.8%

                        \[\leadsto \left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \color{blue}{\left(i \cdot c\right)} \]
                      2. Step-by-step derivation
                        1. Applied rewrites85.9%

                          \[\leadsto \mathsf{fma}\left(c \cdot b, -2, -2 \cdot a\right) \cdot \left(\color{blue}{i} \cdot c\right) \]

                        if -1.99999999999999993e118 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 5.00000000000000015e256

                        1. Initial program 97.7%

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

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

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

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

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

                            \[\leadsto 2 \cdot \color{blue}{\left(-1 \cdot \left(a \cdot \left(c \cdot i\right)\right) + \left(t \cdot z + x \cdot y\right)\right)} \]
                          5. mul-1-negN/A

                            \[\leadsto 2 \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot \left(c \cdot i\right)\right)\right)} + \left(t \cdot z + x \cdot y\right)\right) \]
                          6. associate-*r*N/A

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

                            \[\leadsto 2 \cdot \left(\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot a\right)} \cdot i\right)\right) + \left(t \cdot z + x \cdot y\right)\right) \]
                          8. associate-*r*N/A

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

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

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

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

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

                            \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), a \cdot c, t \cdot z + x \cdot y\right)} \]
                          14. lower-neg.f64N/A

                            \[\leadsto 2 \cdot \mathsf{fma}\left(\color{blue}{-i}, a \cdot c, t \cdot z + x \cdot y\right) \]
                          15. *-commutativeN/A

                            \[\leadsto 2 \cdot \mathsf{fma}\left(-i, \color{blue}{c \cdot a}, t \cdot z + x \cdot y\right) \]
                          16. lower-*.f64N/A

                            \[\leadsto 2 \cdot \mathsf{fma}\left(-i, \color{blue}{c \cdot a}, t \cdot z + x \cdot y\right) \]
                          17. lower-fma.f64N/A

                            \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)}\right) \]
                          18. *-commutativeN/A

                            \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
                          19. lower-*.f6492.4

                            \[\leadsto 2 \cdot \mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right)\right) \]
                        5. Applied rewrites92.4%

                          \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(-i, c \cdot a, \mathsf{fma}\left(t, z, y \cdot x\right)\right)} \]
                        6. Step-by-step derivation
                          1. Applied rewrites86.5%

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

                          if 5.00000000000000015e256 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

                          1. Initial program 77.2%

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

                            \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
                          4. Step-by-step derivation
                            1. *-commutativeN/A

                              \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                            2. associate-*r*N/A

                              \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                            3. distribute-rgt-inN/A

                              \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                            4. associate-*r*N/A

                              \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                            5. distribute-lft-outN/A

                              \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                            6. lower-*.f64N/A

                              \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                            7. distribute-lft-outN/A

                              \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                            8. associate-*r*N/A

                              \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                            9. distribute-rgt-inN/A

                              \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                            10. lower-*.f64N/A

                              \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                            11. *-commutativeN/A

                              \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                            12. lower-*.f64N/A

                              \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                            13. +-commutativeN/A

                              \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                            14. *-commutativeN/A

                              \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                            15. lower-fma.f6486.0

                              \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
                          5. Applied rewrites86.0%

                            \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
                          6. Step-by-step derivation
                            1. Applied rewrites89.3%

                              \[\leadsto \left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \color{blue}{\left(i \cdot c\right)} \]
                          7. Recombined 3 regimes into one program.
                          8. Add Preprocessing

                          Alternative 8: 82.8% accurate, 0.6× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+120} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;\left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \left(i \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b c i)
                           :precision binary64
                           (let* ((t_1 (* (* (+ a (* b c)) c) i)))
                             (if (or (<= t_1 -5e+120) (not (<= t_1 2e+243)))
                               (* (* -2.0 (fma b c a)) (* i c))
                               (* 2.0 (fma t z (* y x))))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                          	double t_1 = ((a + (b * c)) * c) * i;
                          	double tmp;
                          	if ((t_1 <= -5e+120) || !(t_1 <= 2e+243)) {
                          		tmp = (-2.0 * fma(b, c, a)) * (i * c);
                          	} else {
                          		tmp = 2.0 * fma(t, z, (y * x));
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a, b, c, i)
                          	t_1 = Float64(Float64(Float64(a + Float64(b * c)) * c) * i)
                          	tmp = 0.0
                          	if ((t_1 <= -5e+120) || !(t_1 <= 2e+243))
                          		tmp = Float64(Float64(-2.0 * fma(b, c, a)) * Float64(i * c));
                          	else
                          		tmp = Float64(2.0 * fma(t, z, Float64(y * x)));
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e+120], N[Not[LessEqual[t$95$1, 2e+243]], $MachinePrecision]], N[(N[(-2.0 * N[(b * c + a), $MachinePrecision]), $MachinePrecision] * N[(i * c), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\
                          \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+120} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+243}\right):\\
                          \;\;\;\;\left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \left(i \cdot c\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -5.00000000000000019e120 or 2.0000000000000001e243 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

                            1. Initial program 79.8%

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

                              \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
                            4. Step-by-step derivation
                              1. *-commutativeN/A

                                \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                              2. associate-*r*N/A

                                \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                              3. distribute-rgt-inN/A

                                \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                              4. associate-*r*N/A

                                \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                              5. distribute-lft-outN/A

                                \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                              6. lower-*.f64N/A

                                \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                              7. distribute-lft-outN/A

                                \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                              8. associate-*r*N/A

                                \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                              9. distribute-rgt-inN/A

                                \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                              10. lower-*.f64N/A

                                \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                              11. *-commutativeN/A

                                \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                              12. lower-*.f64N/A

                                \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                              13. +-commutativeN/A

                                \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                              14. *-commutativeN/A

                                \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                              15. lower-fma.f6484.0

                                \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
                            5. Applied rewrites84.0%

                              \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
                            6. Step-by-step derivation
                              1. Applied rewrites87.5%

                                \[\leadsto \left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \color{blue}{\left(i \cdot c\right)} \]

                              if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 2.0000000000000001e243

                              1. Initial program 97.7%

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

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

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

                                  \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
                                3. *-commutativeN/A

                                  \[\leadsto 2 \cdot \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
                                4. lower-*.f6482.2

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

                                \[\leadsto \color{blue}{2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)} \]
                            7. Recombined 2 regimes into one program.
                            8. Final simplification84.8%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq -5 \cdot 10^{+120} \lor \neg \left(\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;\left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \left(i \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\ \end{array} \]
                            9. Add Preprocessing

                            Alternative 9: 81.4% accurate, 0.6× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+121} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i)
                             :precision binary64
                             (let* ((t_1 (* (* (+ a (* b c)) c) i)))
                               (if (or (<= t_1 -5e+121) (not (<= t_1 2e+243)))
                                 (* (* -2.0 (* (fma c b a) i)) c)
                                 (* 2.0 (fma t z (* y x))))))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                            	double t_1 = ((a + (b * c)) * c) * i;
                            	double tmp;
                            	if ((t_1 <= -5e+121) || !(t_1 <= 2e+243)) {
                            		tmp = (-2.0 * (fma(c, b, a) * i)) * c;
                            	} else {
                            		tmp = 2.0 * fma(t, z, (y * x));
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b, c, i)
                            	t_1 = Float64(Float64(Float64(a + Float64(b * c)) * c) * i)
                            	tmp = 0.0
                            	if ((t_1 <= -5e+121) || !(t_1 <= 2e+243))
                            		tmp = Float64(Float64(-2.0 * Float64(fma(c, b, a) * i)) * c);
                            	else
                            		tmp = Float64(2.0 * fma(t, z, Float64(y * x)));
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e+121], N[Not[LessEqual[t$95$1, 2e+243]], $MachinePrecision]], N[(N[(-2.0 * N[(N[(c * b + a), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], N[(2.0 * N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\
                            \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+121} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+243}\right):\\
                            \;\;\;\;\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -5.00000000000000007e121 or 2.0000000000000001e243 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

                              1. Initial program 79.6%

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

                                \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
                              4. Step-by-step derivation
                                1. *-commutativeN/A

                                  \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                                2. associate-*r*N/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                                3. distribute-rgt-inN/A

                                  \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                4. associate-*r*N/A

                                  \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                                5. distribute-lft-outN/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                                6. lower-*.f64N/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                                7. distribute-lft-outN/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                                8. associate-*r*N/A

                                  \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                                9. distribute-rgt-inN/A

                                  \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                                10. lower-*.f64N/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                                11. *-commutativeN/A

                                  \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                12. lower-*.f64N/A

                                  \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                13. +-commutativeN/A

                                  \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                                14. *-commutativeN/A

                                  \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                                15. lower-fma.f6484.6

                                  \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
                              5. Applied rewrites84.6%

                                \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]

                              if -5.00000000000000007e121 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 2.0000000000000001e243

                              1. Initial program 97.7%

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

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

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

                                  \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
                                3. *-commutativeN/A

                                  \[\leadsto 2 \cdot \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
                                4. lower-*.f6481.6

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

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

                              \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq -5 \cdot 10^{+121} \lor \neg \left(\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\ \end{array} \]
                            5. Add Preprocessing

                            Alternative 10: 82.8% accurate, 0.6× speedup?

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

                              1. Initial program 81.3%

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

                                \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
                              4. Step-by-step derivation
                                1. *-commutativeN/A

                                  \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                                2. associate-*r*N/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                                3. distribute-rgt-inN/A

                                  \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                4. associate-*r*N/A

                                  \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                                5. distribute-lft-outN/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                                6. lower-*.f64N/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                                7. distribute-lft-outN/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                                8. associate-*r*N/A

                                  \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                                9. distribute-rgt-inN/A

                                  \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                                10. lower-*.f64N/A

                                  \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                                11. *-commutativeN/A

                                  \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                12. lower-*.f64N/A

                                  \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                13. +-commutativeN/A

                                  \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                                14. *-commutativeN/A

                                  \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                                15. lower-fma.f6483.2

                                  \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
                              5. Applied rewrites83.2%

                                \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
                              6. Step-by-step derivation
                                1. Applied rewrites87.1%

                                  \[\leadsto \left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \color{blue}{\left(i \cdot c\right)} \]
                                2. Step-by-step derivation
                                  1. Applied rewrites87.1%

                                    \[\leadsto \mathsf{fma}\left(c \cdot b, -2, -2 \cdot a\right) \cdot \left(\color{blue}{i} \cdot c\right) \]

                                  if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 2.0000000000000001e243

                                  1. Initial program 97.7%

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

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

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

                                      \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
                                    3. *-commutativeN/A

                                      \[\leadsto 2 \cdot \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
                                    4. lower-*.f6482.2

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

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

                                  if 2.0000000000000001e243 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

                                  1. Initial program 78.0%

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

                                    \[\leadsto \color{blue}{-2 \cdot \left(c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \]
                                  4. Step-by-step derivation
                                    1. *-commutativeN/A

                                      \[\leadsto -2 \cdot \color{blue}{\left(\left(i \cdot \left(a + b \cdot c\right)\right) \cdot c\right)} \]
                                    2. associate-*r*N/A

                                      \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right) \cdot c} \]
                                    3. distribute-rgt-inN/A

                                      \[\leadsto \left(-2 \cdot \color{blue}{\left(a \cdot i + \left(b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                    4. associate-*r*N/A

                                      \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{b \cdot \left(c \cdot i\right)}\right)\right) \cdot c \]
                                    5. distribute-lft-outN/A

                                      \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                                    6. lower-*.f64N/A

                                      \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i\right) + -2 \cdot \left(b \cdot \left(c \cdot i\right)\right)\right) \cdot c} \]
                                    7. distribute-lft-outN/A

                                      \[\leadsto \color{blue}{\left(-2 \cdot \left(a \cdot i + b \cdot \left(c \cdot i\right)\right)\right)} \cdot c \]
                                    8. associate-*r*N/A

                                      \[\leadsto \left(-2 \cdot \left(a \cdot i + \color{blue}{\left(b \cdot c\right) \cdot i}\right)\right) \cdot c \]
                                    9. distribute-rgt-inN/A

                                      \[\leadsto \left(-2 \cdot \color{blue}{\left(i \cdot \left(a + b \cdot c\right)\right)}\right) \cdot c \]
                                    10. lower-*.f64N/A

                                      \[\leadsto \color{blue}{\left(-2 \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)} \cdot c \]
                                    11. *-commutativeN/A

                                      \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                    12. lower-*.f64N/A

                                      \[\leadsto \left(-2 \cdot \color{blue}{\left(\left(a + b \cdot c\right) \cdot i\right)}\right) \cdot c \]
                                    13. +-commutativeN/A

                                      \[\leadsto \left(-2 \cdot \left(\color{blue}{\left(b \cdot c + a\right)} \cdot i\right)\right) \cdot c \]
                                    14. *-commutativeN/A

                                      \[\leadsto \left(-2 \cdot \left(\left(\color{blue}{c \cdot b} + a\right) \cdot i\right)\right) \cdot c \]
                                    15. lower-fma.f6484.9

                                      \[\leadsto \left(-2 \cdot \left(\color{blue}{\mathsf{fma}\left(c, b, a\right)} \cdot i\right)\right) \cdot c \]
                                  5. Applied rewrites84.9%

                                    \[\leadsto \color{blue}{\left(-2 \cdot \left(\mathsf{fma}\left(c, b, a\right) \cdot i\right)\right) \cdot c} \]
                                  6. Step-by-step derivation
                                    1. Applied rewrites88.1%

                                      \[\leadsto \left(-2 \cdot \mathsf{fma}\left(b, c, a\right)\right) \cdot \color{blue}{\left(i \cdot c\right)} \]
                                  7. Recombined 3 regimes into one program.
                                  8. Add Preprocessing

                                  Alternative 11: 62.8% accurate, 0.6× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+120} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;\left(\left(i \cdot c\right) \cdot a\right) \cdot -2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a b c i)
                                   :precision binary64
                                   (let* ((t_1 (* (* (+ a (* b c)) c) i)))
                                     (if (or (<= t_1 -5e+120) (not (<= t_1 2e+243)))
                                       (* (* (* i c) a) -2.0)
                                       (* 2.0 (fma t z (* y x))))))
                                  double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                  	double t_1 = ((a + (b * c)) * c) * i;
                                  	double tmp;
                                  	if ((t_1 <= -5e+120) || !(t_1 <= 2e+243)) {
                                  		tmp = ((i * c) * a) * -2.0;
                                  	} else {
                                  		tmp = 2.0 * fma(t, z, (y * x));
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a, b, c, i)
                                  	t_1 = Float64(Float64(Float64(a + Float64(b * c)) * c) * i)
                                  	tmp = 0.0
                                  	if ((t_1 <= -5e+120) || !(t_1 <= 2e+243))
                                  		tmp = Float64(Float64(Float64(i * c) * a) * -2.0);
                                  	else
                                  		tmp = Float64(2.0 * fma(t, z, Float64(y * x)));
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e+120], N[Not[LessEqual[t$95$1, 2e+243]], $MachinePrecision]], N[(N[(N[(i * c), $MachinePrecision] * a), $MachinePrecision] * -2.0), $MachinePrecision], N[(2.0 * N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\\
                                  \mathbf{if}\;t\_1 \leq -5 \cdot 10^{+120} \lor \neg \left(t\_1 \leq 2 \cdot 10^{+243}\right):\\
                                  \;\;\;\;\left(\left(i \cdot c\right) \cdot a\right) \cdot -2\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -5.00000000000000019e120 or 2.0000000000000001e243 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

                                    1. Initial program 79.8%

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

                                      \[\leadsto \color{blue}{-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)} \]
                                    4. Step-by-step derivation
                                      1. *-commutativeN/A

                                        \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                      2. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                      3. *-commutativeN/A

                                        \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                      4. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                      5. *-commutativeN/A

                                        \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                      6. lower-*.f6443.3

                                        \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                    5. Applied rewrites43.3%

                                      \[\leadsto \color{blue}{\left(\left(i \cdot c\right) \cdot a\right) \cdot -2} \]

                                    if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 2.0000000000000001e243

                                    1. Initial program 97.7%

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

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

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

                                        \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(t, z, x \cdot y\right)} \]
                                      3. *-commutativeN/A

                                        \[\leadsto 2 \cdot \mathsf{fma}\left(t, z, \color{blue}{y \cdot x}\right) \]
                                      4. lower-*.f6482.2

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

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

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq -5 \cdot 10^{+120} \lor \neg \left(\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;\left(\left(i \cdot c\right) \cdot a\right) \cdot -2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(t, z, y \cdot x\right)\\ \end{array} \]
                                  5. Add Preprocessing

                                  Alternative 12: 42.3% accurate, 0.6× speedup?

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

                                    1. Initial program 79.8%

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

                                      \[\leadsto \color{blue}{-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)} \]
                                    4. Step-by-step derivation
                                      1. *-commutativeN/A

                                        \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                      2. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                      3. *-commutativeN/A

                                        \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                      4. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                      5. *-commutativeN/A

                                        \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                      6. lower-*.f6443.3

                                        \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                    5. Applied rewrites43.3%

                                      \[\leadsto \color{blue}{\left(\left(i \cdot c\right) \cdot a\right) \cdot -2} \]

                                    if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 2.0000000000000001e243

                                    1. Initial program 97.7%

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

                                      \[\leadsto \color{blue}{2 \cdot \left(x \cdot y\right)} \]
                                    4. Step-by-step derivation
                                      1. lower-*.f64N/A

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

                                        \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x\right)} \]
                                      3. lower-*.f6450.9

                                        \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x\right)} \]
                                    5. Applied rewrites50.9%

                                      \[\leadsto \color{blue}{2 \cdot \left(y \cdot x\right)} \]
                                  3. Recombined 2 regimes into one program.
                                  4. Final simplification47.1%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq -5 \cdot 10^{+120} \lor \neg \left(\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;\left(\left(i \cdot c\right) \cdot a\right) \cdot -2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(y \cdot x\right)\\ \end{array} \]
                                  5. Add Preprocessing

                                  Alternative 13: 39.2% accurate, 0.6× speedup?

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

                                    1. Initial program 79.6%

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

                                      \[\leadsto \color{blue}{-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)} \]
                                    4. Step-by-step derivation
                                      1. *-commutativeN/A

                                        \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                      2. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                      3. *-commutativeN/A

                                        \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                      4. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                      5. *-commutativeN/A

                                        \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                      6. lower-*.f6442.8

                                        \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                    5. Applied rewrites42.8%

                                      \[\leadsto \color{blue}{\left(\left(i \cdot c\right) \cdot a\right) \cdot -2} \]
                                    6. Step-by-step derivation
                                      1. Applied rewrites39.1%

                                        \[\leadsto c \cdot \color{blue}{\left(i \cdot \left(-2 \cdot a\right)\right)} \]

                                      if -5.00000000000000007e121 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 2.0000000000000001e243

                                      1. Initial program 97.7%

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

                                        \[\leadsto \color{blue}{2 \cdot \left(x \cdot y\right)} \]
                                      4. Step-by-step derivation
                                        1. lower-*.f64N/A

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

                                          \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x\right)} \]
                                        3. lower-*.f6450.5

                                          \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x\right)} \]
                                      5. Applied rewrites50.5%

                                        \[\leadsto \color{blue}{2 \cdot \left(y \cdot x\right)} \]
                                    7. Recombined 2 regimes into one program.
                                    8. Final simplification45.0%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq -5 \cdot 10^{+121} \lor \neg \left(\left(\left(a + b \cdot c\right) \cdot c\right) \cdot i \leq 2 \cdot 10^{+243}\right):\\ \;\;\;\;c \cdot \left(i \cdot \left(-2 \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(y \cdot x\right)\\ \end{array} \]
                                    9. Add Preprocessing

                                    Alternative 14: 39.9% accurate, 0.6× speedup?

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

                                      1. Initial program 81.3%

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

                                        \[\leadsto \color{blue}{-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)} \]
                                      4. Step-by-step derivation
                                        1. *-commutativeN/A

                                          \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                        2. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                        3. *-commutativeN/A

                                          \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                        4. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                        5. *-commutativeN/A

                                          \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                        6. lower-*.f6445.8

                                          \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                      5. Applied rewrites45.8%

                                        \[\leadsto \color{blue}{\left(\left(i \cdot c\right) \cdot a\right) \cdot -2} \]
                                      6. Step-by-step derivation
                                        1. Applied rewrites45.3%

                                          \[\leadsto \left(\left(a \cdot c\right) \cdot i\right) \cdot -2 \]

                                        if -5.00000000000000019e120 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 2.0000000000000001e243

                                        1. Initial program 97.7%

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

                                          \[\leadsto \color{blue}{2 \cdot \left(x \cdot y\right)} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f64N/A

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

                                            \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x\right)} \]
                                          3. lower-*.f6450.9

                                            \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x\right)} \]
                                        5. Applied rewrites50.9%

                                          \[\leadsto \color{blue}{2 \cdot \left(y \cdot x\right)} \]

                                        if 2.0000000000000001e243 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)

                                        1. Initial program 78.0%

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

                                          \[\leadsto \color{blue}{-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)} \]
                                        4. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                          2. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\left(a \cdot \left(c \cdot i\right)\right) \cdot -2} \]
                                          3. *-commutativeN/A

                                            \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                          4. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\left(\left(c \cdot i\right) \cdot a\right)} \cdot -2 \]
                                          5. *-commutativeN/A

                                            \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                          6. lower-*.f6440.2

                                            \[\leadsto \left(\color{blue}{\left(i \cdot c\right)} \cdot a\right) \cdot -2 \]
                                        5. Applied rewrites40.2%

                                          \[\leadsto \color{blue}{\left(\left(i \cdot c\right) \cdot a\right) \cdot -2} \]
                                        6. Step-by-step derivation
                                          1. Applied rewrites35.3%

                                            \[\leadsto c \cdot \color{blue}{\left(i \cdot \left(-2 \cdot a\right)\right)} \]
                                        7. Recombined 3 regimes into one program.
                                        8. Add Preprocessing

                                        Alternative 15: 43.2% accurate, 1.2× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \cdot t \leq -2 \cdot 10^{+225} \lor \neg \left(z \cdot t \leq 4 \cdot 10^{+97}\right):\\ \;\;\;\;t \cdot \left(z + z\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(y \cdot x\right)\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i)
                                         :precision binary64
                                         (if (or (<= (* z t) -2e+225) (not (<= (* z t) 4e+97)))
                                           (* t (+ z z))
                                           (* 2.0 (* y x))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                        	double tmp;
                                        	if (((z * t) <= -2e+225) || !((z * t) <= 4e+97)) {
                                        		tmp = t * (z + z);
                                        	} else {
                                        		tmp = 2.0 * (y * x);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        module fmin_fmax_functions
                                            implicit none
                                            private
                                            public fmax
                                            public fmin
                                        
                                            interface fmax
                                                module procedure fmax88
                                                module procedure fmax44
                                                module procedure fmax84
                                                module procedure fmax48
                                            end interface
                                            interface fmin
                                                module procedure fmin88
                                                module procedure fmin44
                                                module procedure fmin84
                                                module procedure fmin48
                                            end interface
                                        contains
                                            real(8) function fmax88(x, y) result (res)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                            end function
                                            real(4) function fmax44(x, y) result (res)
                                                real(4), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                            end function
                                            real(8) function fmax84(x, y) result(res)
                                                real(8), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                            end function
                                            real(8) function fmax48(x, y) result(res)
                                                real(4), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                            end function
                                            real(8) function fmin88(x, y) result (res)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                            end function
                                            real(4) function fmin44(x, y) result (res)
                                                real(4), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                            end function
                                            real(8) function fmin84(x, y) result(res)
                                                real(8), intent (in) :: x
                                                real(4), intent (in) :: y
                                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                            end function
                                            real(8) function fmin48(x, y) result(res)
                                                real(4), intent (in) :: x
                                                real(8), intent (in) :: y
                                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                            end function
                                        end module
                                        
                                        real(8) function code(x, y, z, t, a, b, c, i)
                                        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), intent (in) :: c
                                            real(8), intent (in) :: i
                                            real(8) :: tmp
                                            if (((z * t) <= (-2d+225)) .or. (.not. ((z * t) <= 4d+97))) then
                                                tmp = t * (z + z)
                                            else
                                                tmp = 2.0d0 * (y * x)
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                        	double tmp;
                                        	if (((z * t) <= -2e+225) || !((z * t) <= 4e+97)) {
                                        		tmp = t * (z + z);
                                        	} else {
                                        		tmp = 2.0 * (y * x);
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b, c, i):
                                        	tmp = 0
                                        	if ((z * t) <= -2e+225) or not ((z * t) <= 4e+97):
                                        		tmp = t * (z + z)
                                        	else:
                                        		tmp = 2.0 * (y * x)
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b, c, i)
                                        	tmp = 0.0
                                        	if ((Float64(z * t) <= -2e+225) || !(Float64(z * t) <= 4e+97))
                                        		tmp = Float64(t * Float64(z + z));
                                        	else
                                        		tmp = Float64(2.0 * Float64(y * x));
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b, c, i)
                                        	tmp = 0.0;
                                        	if (((z * t) <= -2e+225) || ~(((z * t) <= 4e+97)))
                                        		tmp = t * (z + z);
                                        	else
                                        		tmp = 2.0 * (y * x);
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(z * t), $MachinePrecision], -2e+225], N[Not[LessEqual[N[(z * t), $MachinePrecision], 4e+97]], $MachinePrecision]], N[(t * N[(z + z), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(y * x), $MachinePrecision]), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;z \cdot t \leq -2 \cdot 10^{+225} \lor \neg \left(z \cdot t \leq 4 \cdot 10^{+97}\right):\\
                                        \;\;\;\;t \cdot \left(z + z\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;2 \cdot \left(y \cdot x\right)\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if (*.f64 z t) < -1.99999999999999986e225 or 4.0000000000000003e97 < (*.f64 z t)

                                          1. Initial program 83.9%

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

                                            \[\leadsto \color{blue}{2 \cdot \left(t \cdot z\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{2 \cdot \left(t \cdot z\right)} \]
                                            2. lower-*.f6463.2

                                              \[\leadsto 2 \cdot \color{blue}{\left(t \cdot z\right)} \]
                                          5. Applied rewrites63.2%

                                            \[\leadsto \color{blue}{2 \cdot \left(t \cdot z\right)} \]
                                          6. Step-by-step derivation
                                            1. Applied rewrites63.2%

                                              \[\leadsto t \cdot \color{blue}{\left(z + z\right)} \]

                                            if -1.99999999999999986e225 < (*.f64 z t) < 4.0000000000000003e97

                                            1. Initial program 90.8%

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

                                              \[\leadsto \color{blue}{2 \cdot \left(x \cdot y\right)} \]
                                            4. Step-by-step derivation
                                              1. lower-*.f64N/A

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

                                                \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x\right)} \]
                                              3. lower-*.f6437.2

                                                \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x\right)} \]
                                            5. Applied rewrites37.2%

                                              \[\leadsto \color{blue}{2 \cdot \left(y \cdot x\right)} \]
                                          7. Recombined 2 regimes into one program.
                                          8. Final simplification44.1%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \cdot t \leq -2 \cdot 10^{+225} \lor \neg \left(z \cdot t \leq 4 \cdot 10^{+97}\right):\\ \;\;\;\;t \cdot \left(z + z\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(y \cdot x\right)\\ \end{array} \]
                                          9. Add Preprocessing

                                          Alternative 16: 28.9% accurate, 4.4× speedup?

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

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

                                            \[\leadsto \color{blue}{2 \cdot \left(t \cdot z\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{2 \cdot \left(t \cdot z\right)} \]
                                            2. lower-*.f6422.2

                                              \[\leadsto 2 \cdot \color{blue}{\left(t \cdot z\right)} \]
                                          5. Applied rewrites22.2%

                                            \[\leadsto \color{blue}{2 \cdot \left(t \cdot z\right)} \]
                                          6. Step-by-step derivation
                                            1. Applied rewrites22.2%

                                              \[\leadsto t \cdot \color{blue}{\left(z + z\right)} \]
                                            2. Add Preprocessing

                                            Developer Target 1: 94.1% accurate, 1.0× speedup?

                                            \[\begin{array}{l} \\ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(a + b \cdot c\right) \cdot \left(c \cdot i\right)\right) \end{array} \]
                                            (FPCore (x y z t a b c i)
                                             :precision binary64
                                             (* 2.0 (- (+ (* x y) (* z t)) (* (+ a (* b c)) (* c i)))))
                                            double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                            	return 2.0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)));
                                            }
                                            
                                            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, c, i)
                                            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), intent (in) :: c
                                                real(8), intent (in) :: i
                                                code = 2.0d0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)))
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                                            	return 2.0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)));
                                            }
                                            
                                            def code(x, y, z, t, a, b, c, i):
                                            	return 2.0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)))
                                            
                                            function code(x, y, z, t, a, b, c, i)
                                            	return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(a + Float64(b * c)) * Float64(c * i))))
                                            end
                                            
                                            function tmp = code(x, y, z, t, a, b, c, i)
                                            	tmp = 2.0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)));
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(a + b \cdot c\right) \cdot \left(c \cdot i\right)\right)
                                            \end{array}
                                            

                                            Reproduce

                                            ?
                                            herbie shell --seed 2024359 
                                            (FPCore (x y z t a b c i)
                                              :name "Diagrams.ThreeD.Shapes:frustum from diagrams-lib-1.3.0.3, A"
                                              :precision binary64
                                            
                                              :alt
                                              (! :herbie-platform default (* 2 (- (+ (* x y) (* z t)) (* (+ a (* b c)) (* c i)))))
                                            
                                              (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))