
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b): return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = ((x + (y * z)) + (t * a)) + ((a * z) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x + (y * z)) + (t * a)) + ((a * z) * b);
}
def code(x, y, z, t, a, b): return ((x + (y * z)) + (t * a)) + ((a * z) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x + Float64(y * z)) + Float64(t * a)) + Float64(Float64(a * z) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x + (y * z)) + (t * a)) + ((a * z) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x + N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(N[(a * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\left(\left(x + y \cdot z\right) + t \cdot a\right) + \left(a \cdot z\right) \cdot b
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (fma b z t) a (fma z y x))))
(if (<= a -5.5e+93)
t_1
(if (<= a 2e+39) (fma z (fma b a y) (fma a t x)) t_1))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(fma(b, z, t), a, fma(z, y, x));
double tmp;
if (a <= -5.5e+93) {
tmp = t_1;
} else if (a <= 2e+39) {
tmp = fma(z, fma(b, a, y), fma(a, t, x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(fma(b, z, t), a, fma(z, y, x)) tmp = 0.0 if (a <= -5.5e+93) tmp = t_1; elseif (a <= 2e+39) tmp = fma(z, fma(b, a, y), fma(a, t, x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * z + t), $MachinePrecision] * a + N[(z * y + x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.5e+93], t$95$1, If[LessEqual[a, 2e+39], N[(z * N[(b * a + y), $MachinePrecision] + N[(a * t + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, \mathsf{fma}\left(z, y, x\right)\right)\\
\mathbf{if}\;a \leq -5.5 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+39}:\\
\;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(b, a, y\right), \mathsf{fma}\left(a, t, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if a < -5.5000000000000003e93 or 1.99999999999999988e39 < a Initial program 92.2%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
distribute-lft-outN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
remove-double-negN/A
remove-double-negN/A
*-commutativeN/A
lower-fma.f6494.3%
lift-+.f64N/A
+-commutativeN/A
add-flipN/A
sub-flipN/A
lift-*.f64N/A
*-commutativeN/A
remove-double-negN/A
lower-fma.f6494.4%
Applied rewrites94.4%
if -5.5000000000000003e93 < a < 1.99999999999999988e39Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
(FPCore (x y z t a b) :precision binary64 (if (<= a -2.9e+94) (fma (fma b z t) a x) (fma z (fma b a y) (fma a t x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -2.9e+94) {
tmp = fma(fma(b, z, t), a, x);
} else {
tmp = fma(z, fma(b, a, y), fma(a, t, x));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -2.9e+94) tmp = fma(fma(b, z, t), a, x); else tmp = fma(z, fma(b, a, y), fma(a, t, x)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -2.9e+94], N[(N[(b * z + t), $MachinePrecision] * a + x), $MachinePrecision], N[(z * N[(b * a + y), $MachinePrecision] + N[(a * t + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\mathbf{if}\;a \leq -2.9 \cdot 10^{+94}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(b, a, y\right), \mathsf{fma}\left(a, t, x\right)\right)\\
\end{array}
if a < -2.8999999999999998e94Initial program 92.2%
Taylor expanded in y around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6473.7%
Applied rewrites73.7%
lift-+.f64N/A
+-commutativeN/A
lift-fma.f64N/A
lift-*.f64N/A
distribute-lft-outN/A
lift-+.f64N/A
*-commutativeN/A
lower-fma.f6474.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6474.4%
Applied rewrites74.4%
if -2.8999999999999998e94 < a Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (fma a t (* y z)))))
(if (<= t -5000.0)
t_1
(if (<= t 1.05e-20) (+ x (fma a (* b z) (* y z))) t_1))))double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + fma(a, t, (y * z));
double tmp;
if (t <= -5000.0) {
tmp = t_1;
} else if (t <= 1.05e-20) {
tmp = x + fma(a, (b * z), (y * z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + fma(a, t, Float64(y * z))) tmp = 0.0 if (t <= -5000.0) tmp = t_1; elseif (t <= 1.05e-20) tmp = Float64(x + fma(a, Float64(b * z), Float64(y * z))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(a * t + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5000.0], t$95$1, If[LessEqual[t, 1.05e-20], N[(x + N[(a * N[(b * z), $MachinePrecision] + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := x + \mathsf{fma}\left(a, t, y \cdot z\right)\\
\mathbf{if}\;t \leq -5000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{-20}:\\
\;\;\;\;x + \mathsf{fma}\left(a, b \cdot z, y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if t < -5e3 or 1.0499999999999999e-20 < t Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in b around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f6477.5%
Applied rewrites77.5%
if -5e3 < t < 1.0499999999999999e-20Initial program 92.2%
Taylor expanded in t around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6470.2%
Applied rewrites70.2%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (+ x (fma a t (* y z))))) (if (<= y -2.3e+100) t_1 (if (<= y 6.9e+44) (fma (fma b z t) a x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + fma(a, t, (y * z));
double tmp;
if (y <= -2.3e+100) {
tmp = t_1;
} else if (y <= 6.9e+44) {
tmp = fma(fma(b, z, t), a, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + fma(a, t, Float64(y * z))) tmp = 0.0 if (y <= -2.3e+100) tmp = t_1; elseif (y <= 6.9e+44) tmp = fma(fma(b, z, t), a, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(a * t + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.3e+100], t$95$1, If[LessEqual[y, 6.9e+44], N[(N[(b * z + t), $MachinePrecision] * a + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := x + \mathsf{fma}\left(a, t, y \cdot z\right)\\
\mathbf{if}\;y \leq -2.3 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.9 \cdot 10^{+44}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -2.2999999999999999e100 or 6.8999999999999997e44 < y Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in b around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f6477.5%
Applied rewrites77.5%
if -2.2999999999999999e100 < y < 6.8999999999999997e44Initial program 92.2%
Taylor expanded in y around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6473.7%
Applied rewrites73.7%
lift-+.f64N/A
+-commutativeN/A
lift-fma.f64N/A
lift-*.f64N/A
distribute-lft-outN/A
lift-+.f64N/A
*-commutativeN/A
lower-fma.f6474.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6474.4%
Applied rewrites74.4%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (fma a t (* y z)))) (if (<= y -2.15e+142) t_1 (if (<= y 6.9e+44) (fma (fma b z t) a x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(a, t, (y * z));
double tmp;
if (y <= -2.15e+142) {
tmp = t_1;
} else if (y <= 6.9e+44) {
tmp = fma(fma(b, z, t), a, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(a, t, Float64(y * z)) tmp = 0.0 if (y <= -2.15e+142) tmp = t_1; elseif (y <= 6.9e+44) tmp = fma(fma(b, z, t), a, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * t + N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.15e+142], t$95$1, If[LessEqual[y, 6.9e+44], N[(N[(b * z + t), $MachinePrecision] * a + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, t, y \cdot z\right)\\
\mathbf{if}\;y \leq -2.15 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6.9 \cdot 10^{+44}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(b, z, t\right), a, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -2.15000000000000006e142 or 6.8999999999999997e44 < y Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in b around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f6477.5%
Applied rewrites77.5%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-*.f6453.1%
Applied rewrites53.1%
if -2.15000000000000006e142 < y < 6.8999999999999997e44Initial program 92.2%
Taylor expanded in y around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6473.7%
Applied rewrites73.7%
lift-+.f64N/A
+-commutativeN/A
lift-fma.f64N/A
lift-*.f64N/A
distribute-lft-outN/A
lift-+.f64N/A
*-commutativeN/A
lower-fma.f6474.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6474.4%
Applied rewrites74.4%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* (fma b z t) a))) (if (<= a -1.3e+18) t_1 (if (<= a 1.85e+116) (fma y z x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(b, z, t) * a;
double tmp;
if (a <= -1.3e+18) {
tmp = t_1;
} else if (a <= 1.85e+116) {
tmp = fma(y, z, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(fma(b, z, t) * a) tmp = 0.0 if (a <= -1.3e+18) tmp = t_1; elseif (a <= 1.85e+116) tmp = fma(y, z, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b * z + t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.3e+18], t$95$1, If[LessEqual[a, 1.85e+116], N[(y * z + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(b, z, t\right) \cdot a\\
\mathbf{if}\;a \leq -1.3 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+116}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if a < -1.3e18 or 1.8500000000000001e116 < a Initial program 92.2%
Taylor expanded in a around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6450.3%
Applied rewrites50.3%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6450.3%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6450.3%
Applied rewrites50.3%
if -1.3e18 < a < 1.8500000000000001e116Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-*.f6452.2%
Applied rewrites52.2%
Applied rewrites52.2%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* (fma a b y) z))) (if (<= z -1.8e-9) t_1 (if (<= z 1.1e-136) (+ x (* a t)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(a, b, y) * z;
double tmp;
if (z <= -1.8e-9) {
tmp = t_1;
} else if (z <= 1.1e-136) {
tmp = x + (a * t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(fma(a, b, y) * z) tmp = 0.0 if (z <= -1.8e-9) tmp = t_1; elseif (z <= 1.1e-136) tmp = Float64(x + Float64(a * t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(a * b + y), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.8e-9], t$95$1, If[LessEqual[z, 1.1e-136], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, b, y\right) \cdot z\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{-9}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-136}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -1.8e-9 or 1.1000000000000001e-136 < z Initial program 92.2%
Taylor expanded in z around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6450.5%
Applied rewrites50.5%
lift-*.f64N/A
*-commutativeN/A
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
+-commutativeN/A
lift-fma.f64N/A
lower-*.f6450.5%
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6450.5%
Applied rewrites50.5%
if -1.8e-9 < z < 1.1000000000000001e-136Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in b around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f6477.5%
Applied rewrites77.5%
Taylor expanded in y around 0
lower-*.f6452.5%
Applied rewrites52.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.8e-9)
(fma y z x)
(if (<= z 1.1e-136)
(+ x (* a t))
(if (<= z 2.3e+73) (fma y z x) (* (* a b) z)))))double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.8e-9) {
tmp = fma(y, z, x);
} else if (z <= 1.1e-136) {
tmp = x + (a * t);
} else if (z <= 2.3e+73) {
tmp = fma(y, z, x);
} else {
tmp = (a * b) * z;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.8e-9) tmp = fma(y, z, x); elseif (z <= 1.1e-136) tmp = Float64(x + Float64(a * t)); elseif (z <= 2.3e+73) tmp = fma(y, z, x); else tmp = Float64(Float64(a * b) * z); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.8e-9], N[(y * z + x), $MachinePrecision], If[LessEqual[z, 1.1e-136], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+73], N[(y * z + x), $MachinePrecision], N[(N[(a * b), $MachinePrecision] * z), $MachinePrecision]]]]
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-136}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+73}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot b\right) \cdot z\\
\end{array}
if z < -1.8e-9 or 1.1000000000000001e-136 < z < 2.3e73Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-*.f6452.2%
Applied rewrites52.2%
Applied rewrites52.2%
if -1.8e-9 < z < 1.1000000000000001e-136Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in b around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f6477.5%
Applied rewrites77.5%
Taylor expanded in y around 0
lower-*.f6452.5%
Applied rewrites52.5%
if 2.3e73 < z Initial program 92.2%
Taylor expanded in z around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6450.5%
Applied rewrites50.5%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6426.8%
Applied rewrites26.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.8e-9)
(fma y z x)
(if (<= z 1.1e-136)
(+ x (* a t))
(if (<= z 2.9e+149) (fma y z x) (* a (* b z))))))double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.8e-9) {
tmp = fma(y, z, x);
} else if (z <= 1.1e-136) {
tmp = x + (a * t);
} else if (z <= 2.9e+149) {
tmp = fma(y, z, x);
} else {
tmp = a * (b * z);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.8e-9) tmp = fma(y, z, x); elseif (z <= 1.1e-136) tmp = Float64(x + Float64(a * t)); elseif (z <= 2.9e+149) tmp = fma(y, z, x); else tmp = Float64(a * Float64(b * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.8e-9], N[(y * z + x), $MachinePrecision], If[LessEqual[z, 1.1e-136], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+149], N[(y * z + x), $MachinePrecision], N[(a * N[(b * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-136}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+149}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot z\right)\\
\end{array}
if z < -1.8e-9 or 1.1000000000000001e-136 < z < 2.9000000000000002e149Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-*.f6452.2%
Applied rewrites52.2%
Applied rewrites52.2%
if -1.8e-9 < z < 1.1000000000000001e-136Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in b around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f6477.5%
Applied rewrites77.5%
Taylor expanded in y around 0
lower-*.f6452.5%
Applied rewrites52.5%
if 2.9000000000000002e149 < z Initial program 92.2%
Taylor expanded in z around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6450.5%
Applied rewrites50.5%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
(FPCore (x y z t a b) :precision binary64 (if (<= z -1.8e-9) (fma y z x) (if (<= z 1.1e-136) (+ x (* a t)) (fma y z x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.8e-9) {
tmp = fma(y, z, x);
} else if (z <= 1.1e-136) {
tmp = x + (a * t);
} else {
tmp = fma(y, z, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.8e-9) tmp = fma(y, z, x); elseif (z <= 1.1e-136) tmp = Float64(x + Float64(a * t)); else tmp = fma(y, z, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.8e-9], N[(y * z + x), $MachinePrecision], If[LessEqual[z, 1.1e-136], N[(x + N[(a * t), $MachinePrecision]), $MachinePrecision], N[(y * z + x), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-136}:\\
\;\;\;\;x + a \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right)\\
\end{array}
if z < -1.8e-9 or 1.1000000000000001e-136 < z Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-*.f6452.2%
Applied rewrites52.2%
Applied rewrites52.2%
if -1.8e-9 < z < 1.1000000000000001e-136Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in b around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f6477.5%
Applied rewrites77.5%
Taylor expanded in y around 0
lower-*.f6452.5%
Applied rewrites52.5%
(FPCore (x y z t a b) :precision binary64 (if (<= a -1.8e+92) (* a t) (if (<= a 2.6e+130) (fma y z x) (* a t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= -1.8e+92) {
tmp = a * t;
} else if (a <= 2.6e+130) {
tmp = fma(y, z, x);
} else {
tmp = a * t;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= -1.8e+92) tmp = Float64(a * t); elseif (a <= 2.6e+130) tmp = fma(y, z, x); else tmp = Float64(a * t); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, -1.8e+92], N[(a * t), $MachinePrecision], If[LessEqual[a, 2.6e+130], N[(y * z + x), $MachinePrecision], N[(a * t), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;a \leq -1.8 \cdot 10^{+92}:\\
\;\;\;\;a \cdot t\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+130}:\\
\;\;\;\;\mathsf{fma}\left(y, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot t\\
\end{array}
if a < -1.8e92 or 2.5999999999999998e130 < a Initial program 92.2%
Taylor expanded in a around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6450.3%
Applied rewrites50.3%
Taylor expanded in z around 0
Applied rewrites28.2%
if -1.8e92 < a < 2.5999999999999998e130Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-*.f6452.2%
Applied rewrites52.2%
Applied rewrites52.2%
(FPCore (x y z t a b) :precision binary64 (if (<= z -1.8e-9) (* y z) (if (<= z 1.1e-136) (* a t) (* y z))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.8e-9) {
tmp = y * z;
} else if (z <= 1.1e-136) {
tmp = a * t;
} else {
tmp = y * z;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1.8d-9)) then
tmp = y * z
else if (z <= 1.1d-136) then
tmp = a * t
else
tmp = y * z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.8e-9) {
tmp = y * z;
} else if (z <= 1.1e-136) {
tmp = a * t;
} else {
tmp = y * z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.8e-9: tmp = y * z elif z <= 1.1e-136: tmp = a * t else: tmp = y * z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.8e-9) tmp = Float64(y * z); elseif (z <= 1.1e-136) tmp = Float64(a * t); else tmp = Float64(y * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.8e-9) tmp = y * z; elseif (z <= 1.1e-136) tmp = a * t; else tmp = y * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.8e-9], N[(y * z), $MachinePrecision], If[LessEqual[z, 1.1e-136], N[(a * t), $MachinePrecision], N[(y * z), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{-9}:\\
\;\;\;\;y \cdot z\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-136}:\\
\;\;\;\;a \cdot t\\
\mathbf{else}:\\
\;\;\;\;y \cdot z\\
\end{array}
if z < -1.8e-9 or 1.1000000000000001e-136 < z Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-*.f6452.2%
Applied rewrites52.2%
Taylor expanded in x around 0
lower-*.f6428.0%
Applied rewrites28.0%
if -1.8e-9 < z < 1.1000000000000001e-136Initial program 92.2%
Taylor expanded in a around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f6450.3%
Applied rewrites50.3%
Taylor expanded in z around 0
Applied rewrites28.2%
(FPCore (x y z t a b) :precision binary64 (* y z))
double code(double x, double y, double z, double t, double a, double b) {
return y * 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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = y * z
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return y * z;
}
def code(x, y, z, t, a, b): return y * z
function code(x, y, z, t, a, b) return Float64(y * z) end
function tmp = code(x, y, z, t, a, b) tmp = y * z; end
code[x_, y_, z_, t_, a_, b_] := N[(y * z), $MachinePrecision]
y \cdot z
Initial program 92.2%
lift-+.f64N/A
+-commutativeN/A
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
+-commutativeN/A
associate-+l+N/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
distribute-rgt-outN/A
lower-fma.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6494.8%
Applied rewrites94.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-*.f6452.2%
Applied rewrites52.2%
Taylor expanded in x around 0
lower-*.f6428.0%
Applied rewrites28.0%
herbie shell --seed 2025184
(FPCore (x y z t a b)
:name "Graphics.Rasterific.CubicBezier:cachedBezierAt from Rasterific-0.6.1"
:precision binary64
(+ (+ (+ x (* y z)) (* t a)) (* (* a z) b)))