Linear.V4:$cdot from linear-1.19.1.3, C

Percentage Accurate: 96.2% → 98.0%
Time: 6.9s
Alternatives: 10
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 10 alternatives:

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

Initial Program: 96.2% accurate, 1.0× speedup?

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

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

Alternative 1: 98.0% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, c, t \cdot z\right)\\


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

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if +inf.0 < (+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 a b)) (*.f64 c i))

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

      \[\leadsto \mathsf{fma}\left(i, c, t \cdot z\right) \]
    7. Step-by-step derivation
      1. Applied rewrites85.7%

        \[\leadsto \mathsf{fma}\left(i, c, t \cdot z\right) \]
    8. Recombined 2 regimes into one program.
    9. Final simplification99.6%

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

    Alternative 2: 74.6% accurate, 0.6× speedup?

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

      1. Initial program 95.3%

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

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

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

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

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

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

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

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

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

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

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

          if -1.9999999999999999e33 < (+.f64 (*.f64 x y) (*.f64 z t)) < 1.0000000000000001e209

          1. Initial program 100.0%

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, \color{blue}{y \cdot x}\right)\right) \]
            6. lower-*.f6489.8

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

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

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

              \[\leadsto \mathsf{fma}\left(b, a, c \cdot i\right) \]
          8. Recombined 2 regimes into one program.
          9. Final simplification78.4%

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

          Alternative 3: 61.7% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \cdot c \leq -5 \cdot 10^{+282}:\\ \;\;\;\;i \cdot c\\ \mathbf{elif}\;i \cdot c \leq -4 \cdot 10^{-62}:\\ \;\;\;\;\mathsf{fma}\left(a, b, t \cdot z\right)\\ \mathbf{elif}\;i \cdot c \leq 4 \cdot 10^{+237}:\\ \;\;\;\;\mathsf{fma}\left(t, z, y \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot c\\ \end{array} \end{array} \]
          (FPCore (x y z t a b c i)
           :precision binary64
           (if (<= (* i c) -5e+282)
             (* i c)
             (if (<= (* i c) -4e-62)
               (fma a b (* t z))
               (if (<= (* i c) 4e+237) (fma t z (* y x)) (* i c)))))
          double code(double x, double y, double z, double t, double a, double b, double c, double i) {
          	double tmp;
          	if ((i * c) <= -5e+282) {
          		tmp = i * c;
          	} else if ((i * c) <= -4e-62) {
          		tmp = fma(a, b, (t * z));
          	} else if ((i * c) <= 4e+237) {
          		tmp = fma(t, z, (y * x));
          	} else {
          		tmp = i * c;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b, c, i)
          	tmp = 0.0
          	if (Float64(i * c) <= -5e+282)
          		tmp = Float64(i * c);
          	elseif (Float64(i * c) <= -4e-62)
          		tmp = fma(a, b, Float64(t * z));
          	elseif (Float64(i * c) <= 4e+237)
          		tmp = fma(t, z, Float64(y * x));
          	else
          		tmp = Float64(i * c);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(i * c), $MachinePrecision], -5e+282], N[(i * c), $MachinePrecision], If[LessEqual[N[(i * c), $MachinePrecision], -4e-62], N[(a * b + N[(t * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(i * c), $MachinePrecision], 4e+237], N[(t * z + N[(y * x), $MachinePrecision]), $MachinePrecision], N[(i * c), $MachinePrecision]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;i \cdot c \leq -5 \cdot 10^{+282}:\\
          \;\;\;\;i \cdot c\\
          
          \mathbf{elif}\;i \cdot c \leq -4 \cdot 10^{-62}:\\
          \;\;\;\;\mathsf{fma}\left(a, b, t \cdot z\right)\\
          
          \mathbf{elif}\;i \cdot c \leq 4 \cdot 10^{+237}:\\
          \;\;\;\;\mathsf{fma}\left(t, z, y \cdot x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;i \cdot c\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if (*.f64 c i) < -4.99999999999999978e282 or 3.99999999999999976e237 < (*.f64 c i)

            1. Initial program 91.1%

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

              \[\leadsto \color{blue}{c \cdot i} \]
            4. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \color{blue}{i \cdot c} \]
              2. lower-*.f6488.3

                \[\leadsto \color{blue}{i \cdot c} \]
            5. Applied rewrites88.3%

              \[\leadsto \color{blue}{i \cdot c} \]

            if -4.99999999999999978e282 < (*.f64 c i) < -4.0000000000000002e-62

            1. Initial program 98.2%

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

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

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

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

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

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

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

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

              \[\leadsto a \cdot b + \color{blue}{t \cdot z} \]
            7. Step-by-step derivation
              1. Applied rewrites77.6%

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

              if -4.0000000000000002e-62 < (*.f64 c i) < 3.99999999999999976e237

              1. Initial program 98.7%

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

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

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

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

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

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

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

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

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

                  \[\leadsto t \cdot z + \color{blue}{x \cdot y} \]
                3. Step-by-step derivation
                  1. Applied rewrites68.1%

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

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

                Alternative 4: 88.6% accurate, 0.7× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, t \cdot z\right)\right)\\ \mathbf{if}\;i \cdot c \leq -2 \cdot 10^{-50}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \cdot c \leq 10^{+18}:\\ \;\;\;\;\mathsf{fma}\left(z, t, \mathsf{fma}\left(a, b, y \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b c i)
                 :precision binary64
                 (let* ((t_1 (fma b a (fma i c (* t z)))))
                   (if (<= (* i c) -2e-50)
                     t_1
                     (if (<= (* i c) 1e+18) (fma z t (fma a b (* 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 = fma(b, a, fma(i, c, (t * z)));
                	double tmp;
                	if ((i * c) <= -2e-50) {
                		tmp = t_1;
                	} else if ((i * c) <= 1e+18) {
                		tmp = fma(z, t, fma(a, b, (y * x)));
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b, c, i)
                	t_1 = fma(b, a, fma(i, c, Float64(t * z)))
                	tmp = 0.0
                	if (Float64(i * c) <= -2e-50)
                		tmp = t_1;
                	elseif (Float64(i * c) <= 1e+18)
                		tmp = fma(z, t, fma(a, b, 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[(b * a + N[(i * c + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(i * c), $MachinePrecision], -2e-50], t$95$1, If[LessEqual[N[(i * c), $MachinePrecision], 1e+18], N[(z * t + N[(a * b + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, t \cdot z\right)\right)\\
                \mathbf{if}\;i \cdot c \leq -2 \cdot 10^{-50}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;i \cdot c \leq 10^{+18}:\\
                \;\;\;\;\mathsf{fma}\left(z, t, \mathsf{fma}\left(a, b, y \cdot x\right)\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if (*.f64 c i) < -2.00000000000000002e-50 or 1e18 < (*.f64 c i)

                  1. Initial program 95.4%

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

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

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

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

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

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

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

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

                  if -2.00000000000000002e-50 < (*.f64 c i) < 1e18

                  1. Initial program 99.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(z, t, \mathsf{fma}\left(a, b, \color{blue}{x \cdot y}\right)\right) \]
                  7. Applied rewrites96.9%

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

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

                Alternative 5: 89.5% accurate, 0.7× speedup?

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

                  1. Initial program 99.9%

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, \color{blue}{y \cdot x}\right)\right) \]
                    6. lower-*.f6494.3

                      \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, \color{blue}{y \cdot x}\right)\right) \]
                  5. Applied rewrites94.3%

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

                  if -3.99999999999999978e66 < (*.f64 a b) < 1e17

                  1. Initial program 97.3%

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

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

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

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

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

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

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

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

                  if 1e17 < (*.f64 a b)

                  1. Initial program 93.0%

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

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

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

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

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

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

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

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

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

                Alternative 6: 90.1% accurate, 0.7× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, t \cdot z\right)\right)\\ \mathbf{if}\;t \cdot z \leq -2 \cdot 10^{+33}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \cdot z \leq 10^{+41}:\\ \;\;\;\;\mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, y \cdot x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b c i)
                 :precision binary64
                 (let* ((t_1 (fma b a (fma i c (* t z)))))
                   (if (<= (* t z) -2e+33)
                     t_1
                     (if (<= (* t z) 1e+41) (fma b a (fma i c (* 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 = fma(b, a, fma(i, c, (t * z)));
                	double tmp;
                	if ((t * z) <= -2e+33) {
                		tmp = t_1;
                	} else if ((t * z) <= 1e+41) {
                		tmp = fma(b, a, fma(i, c, (y * x)));
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b, c, i)
                	t_1 = fma(b, a, fma(i, c, Float64(t * z)))
                	tmp = 0.0
                	if (Float64(t * z) <= -2e+33)
                		tmp = t_1;
                	elseif (Float64(t * z) <= 1e+41)
                		tmp = fma(b, a, fma(i, c, 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[(b * a + N[(i * c + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * z), $MachinePrecision], -2e+33], t$95$1, If[LessEqual[N[(t * z), $MachinePrecision], 1e+41], N[(b * a + N[(i * c + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, t \cdot z\right)\right)\\
                \mathbf{if}\;t \cdot z \leq -2 \cdot 10^{+33}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;t \cdot z \leq 10^{+41}:\\
                \;\;\;\;\mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, y \cdot x\right)\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if (*.f64 z t) < -1.9999999999999999e33 or 1.00000000000000001e41 < (*.f64 z t)

                  1. Initial program 95.6%

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

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

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

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

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

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

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

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

                  if -1.9999999999999999e33 < (*.f64 z t) < 1.00000000000000001e41

                  1. Initial program 98.5%

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, \color{blue}{y \cdot x}\right)\right) \]
                    6. lower-*.f6494.9

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

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

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

                Alternative 7: 86.6% accurate, 0.7× speedup?

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

                  1. Initial program 89.1%

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

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

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

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

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

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

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

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

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

                      \[\leadsto t \cdot z + \color{blue}{x \cdot y} \]
                    3. Step-by-step derivation
                      1. Applied rewrites87.1%

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

                      if -1.00000000000000004e245 < (*.f64 x y) < 9.9999999999999993e158

                      1. Initial program 99.0%

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(b, a, \mathsf{fma}\left(i, c, t \cdot z\right)\right)} \]
                    4. Recombined 2 regimes into one program.
                    5. Final simplification88.7%

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

                    Alternative 8: 63.2% accurate, 0.9× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \cdot c \leq -5 \cdot 10^{+282}:\\ \;\;\;\;i \cdot c\\ \mathbf{elif}\;i \cdot c \leq 4 \cdot 10^{+237}:\\ \;\;\;\;\mathsf{fma}\left(a, b, t \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot c\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b c i)
                     :precision binary64
                     (if (<= (* i c) -5e+282)
                       (* i c)
                       (if (<= (* i c) 4e+237) (fma a b (* t z)) (* i c))))
                    double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                    	double tmp;
                    	if ((i * c) <= -5e+282) {
                    		tmp = i * c;
                    	} else if ((i * c) <= 4e+237) {
                    		tmp = fma(a, b, (t * z));
                    	} else {
                    		tmp = i * c;
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z, t, a, b, c, i)
                    	tmp = 0.0
                    	if (Float64(i * c) <= -5e+282)
                    		tmp = Float64(i * c);
                    	elseif (Float64(i * c) <= 4e+237)
                    		tmp = fma(a, b, Float64(t * z));
                    	else
                    		tmp = Float64(i * c);
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(i * c), $MachinePrecision], -5e+282], N[(i * c), $MachinePrecision], If[LessEqual[N[(i * c), $MachinePrecision], 4e+237], N[(a * b + N[(t * z), $MachinePrecision]), $MachinePrecision], N[(i * c), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;i \cdot c \leq -5 \cdot 10^{+282}:\\
                    \;\;\;\;i \cdot c\\
                    
                    \mathbf{elif}\;i \cdot c \leq 4 \cdot 10^{+237}:\\
                    \;\;\;\;\mathsf{fma}\left(a, b, t \cdot z\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;i \cdot c\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if (*.f64 c i) < -4.99999999999999978e282 or 3.99999999999999976e237 < (*.f64 c i)

                      1. Initial program 91.1%

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

                        \[\leadsto \color{blue}{c \cdot i} \]
                      4. Step-by-step derivation
                        1. *-commutativeN/A

                          \[\leadsto \color{blue}{i \cdot c} \]
                        2. lower-*.f6488.3

                          \[\leadsto \color{blue}{i \cdot c} \]
                      5. Applied rewrites88.3%

                        \[\leadsto \color{blue}{i \cdot c} \]

                      if -4.99999999999999978e282 < (*.f64 c i) < 3.99999999999999976e237

                      1. Initial program 98.5%

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

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

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

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

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

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

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

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

                        \[\leadsto a \cdot b + \color{blue}{t \cdot z} \]
                      7. Step-by-step derivation
                        1. Applied rewrites65.3%

                          \[\leadsto \mathsf{fma}\left(a, \color{blue}{b}, t \cdot z\right) \]
                      8. Recombined 2 regimes into one program.
                      9. Final simplification69.3%

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

                      Alternative 9: 42.9% accurate, 1.1× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \cdot z \leq -1 \cdot 10^{-28}:\\ \;\;\;\;t \cdot z\\ \mathbf{elif}\;t \cdot z \leq 2 \cdot 10^{+68}:\\ \;\;\;\;i \cdot c\\ \mathbf{else}:\\ \;\;\;\;t \cdot z\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i)
                       :precision binary64
                       (if (<= (* t z) -1e-28) (* t z) (if (<= (* t z) 2e+68) (* i c) (* t z))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i) {
                      	double tmp;
                      	if ((t * z) <= -1e-28) {
                      		tmp = t * z;
                      	} else if ((t * z) <= 2e+68) {
                      		tmp = i * c;
                      	} else {
                      		tmp = t * z;
                      	}
                      	return tmp;
                      }
                      
                      real(8) function code(x, y, z, t, a, b, c, i)
                          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 ((t * z) <= (-1d-28)) then
                              tmp = t * z
                          else if ((t * z) <= 2d+68) then
                              tmp = i * c
                          else
                              tmp = t * z
                          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 ((t * z) <= -1e-28) {
                      		tmp = t * z;
                      	} else if ((t * z) <= 2e+68) {
                      		tmp = i * c;
                      	} else {
                      		tmp = t * z;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b, c, i):
                      	tmp = 0
                      	if (t * z) <= -1e-28:
                      		tmp = t * z
                      	elif (t * z) <= 2e+68:
                      		tmp = i * c
                      	else:
                      		tmp = t * z
                      	return tmp
                      
                      function code(x, y, z, t, a, b, c, i)
                      	tmp = 0.0
                      	if (Float64(t * z) <= -1e-28)
                      		tmp = Float64(t * z);
                      	elseif (Float64(t * z) <= 2e+68)
                      		tmp = Float64(i * c);
                      	else
                      		tmp = Float64(t * z);
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b, c, i)
                      	tmp = 0.0;
                      	if ((t * z) <= -1e-28)
                      		tmp = t * z;
                      	elseif ((t * z) <= 2e+68)
                      		tmp = i * c;
                      	else
                      		tmp = t * z;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(t * z), $MachinePrecision], -1e-28], N[(t * z), $MachinePrecision], If[LessEqual[N[(t * z), $MachinePrecision], 2e+68], N[(i * c), $MachinePrecision], N[(t * z), $MachinePrecision]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;t \cdot z \leq -1 \cdot 10^{-28}:\\
                      \;\;\;\;t \cdot z\\
                      
                      \mathbf{elif}\;t \cdot z \leq 2 \cdot 10^{+68}:\\
                      \;\;\;\;i \cdot c\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t \cdot z\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (*.f64 z t) < -9.99999999999999971e-29 or 1.99999999999999991e68 < (*.f64 z t)

                        1. Initial program 95.2%

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{t \cdot z} \]
                          3. Step-by-step derivation
                            1. lower-*.f6461.0

                              \[\leadsto \color{blue}{t \cdot z} \]
                          4. Applied rewrites61.0%

                            \[\leadsto \color{blue}{t \cdot z} \]

                          if -9.99999999999999971e-29 < (*.f64 z t) < 1.99999999999999991e68

                          1. Initial program 99.2%

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

                            \[\leadsto \color{blue}{c \cdot i} \]
                          4. Step-by-step derivation
                            1. *-commutativeN/A

                              \[\leadsto \color{blue}{i \cdot c} \]
                            2. lower-*.f6437.5

                              \[\leadsto \color{blue}{i \cdot c} \]
                          5. Applied rewrites37.5%

                            \[\leadsto \color{blue}{i \cdot c} \]
                        7. Recombined 2 regimes into one program.
                        8. Final simplification49.1%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \cdot z \leq -1 \cdot 10^{-28}:\\ \;\;\;\;t \cdot z\\ \mathbf{elif}\;t \cdot z \leq 2 \cdot 10^{+68}:\\ \;\;\;\;i \cdot c\\ \mathbf{else}:\\ \;\;\;\;t \cdot z\\ \end{array} \]
                        9. Add Preprocessing

                        Alternative 10: 27.7% accurate, 5.0× speedup?

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

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

                          \[\leadsto \color{blue}{c \cdot i} \]
                        4. Step-by-step derivation
                          1. *-commutativeN/A

                            \[\leadsto \color{blue}{i \cdot c} \]
                          2. lower-*.f6425.6

                            \[\leadsto \color{blue}{i \cdot c} \]
                        5. Applied rewrites25.6%

                          \[\leadsto \color{blue}{i \cdot c} \]
                        6. Add Preprocessing

                        Reproduce

                        ?
                        herbie shell --seed 2024327 
                        (FPCore (x y z t a b c i)
                          :name "Linear.V4:$cdot from linear-1.19.1.3, C"
                          :precision binary64
                          (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))