
(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);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((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}
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = (((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}
(FPCore (x y z t a b c i) :precision binary64 (fma y x (fma i c (fma b a (* t z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(y, x, fma(i, c, fma(b, a, (t * z))));
}
function code(x, y, z, t, a, b, c, i) return fma(y, x, fma(i, c, fma(b, a, Float64(t * z)))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(y * x + N[(i * c + N[(b * a + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, x, \mathsf{fma}\left(i, c, \mathsf{fma}\left(b, a, t \cdot z\right)\right)\right)
\end{array}
Initial program 96.0%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
lift-*.f64N/A
fp-cancel-sign-sub-invN/A
associate-+l-N/A
sub-flipN/A
lift-*.f64N/A
*-commutativeN/A
sub-negate-revN/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
+-commutativeN/A
associate-+l+N/A
lift-*.f64N/A
fp-cancel-sign-sub-invN/A
lower-fma.f64N/A
fp-cancel-sign-sub-invN/A
lift-*.f64N/A
Applied rewrites98.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma y x (fma i c (* t z)))))
(if (<= (* x y) -1e+125)
t_1
(if (<= (* x y) 2e+104) (fma a b (fma c i (* 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(y, x, fma(i, c, (t * z)));
double tmp;
if ((x * y) <= -1e+125) {
tmp = t_1;
} else if ((x * y) <= 2e+104) {
tmp = fma(a, b, fma(c, i, (t * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(y, x, fma(i, c, Float64(t * z))) tmp = 0.0 if (Float64(x * y) <= -1e+125) tmp = t_1; elseif (Float64(x * y) <= 2e+104) tmp = fma(a, b, fma(c, i, 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[(y * x + N[(i * c + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -1e+125], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], 2e+104], N[(a * b + N[(c * i + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, x, \mathsf{fma}\left(i, c, t \cdot z\right)\right)\\
\mathbf{if}\;x \cdot y \leq -1 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \cdot y \leq 2 \cdot 10^{+104}:\\
\;\;\;\;\mathsf{fma}\left(a, b, \mathsf{fma}\left(c, i, t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 x y) < -9.9999999999999992e124 or 2e104 < (*.f64 x y) Initial program 96.0%
Taylor expanded in a around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.9
Applied rewrites75.9%
lift-fma.f64N/A
+-commutativeN/A
lift-fma.f64N/A
lift-*.f64N/A
+-commutativeN/A
associate-+l+N/A
lift-*.f64N/A
*-commutativeN/A
+-commutativeN/A
lift-fma.f64N/A
lower-fma.f6476.2
lift-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
fp-cancel-sign-sub-invN/A
distribute-lft-neg-outN/A
distribute-rgt-neg-inN/A
fp-cancel-sub-sign-invN/A
*-commutativeN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
*-commutativeN/A
lift-*.f64N/A
remove-double-negN/A
lower-fma.f6476.2
Applied rewrites76.2%
if -9.9999999999999992e124 < (*.f64 x y) < 2e104Initial program 96.0%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6474.5
Applied rewrites74.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma c i (fma t z (* x y)))))
(if (<= (* x y) -7.9e+124)
t_1
(if (<= (* x y) 1.3e+104) (fma a b (fma c i (* 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(c, i, fma(t, z, (x * y)));
double tmp;
if ((x * y) <= -7.9e+124) {
tmp = t_1;
} else if ((x * y) <= 1.3e+104) {
tmp = fma(a, b, fma(c, i, (t * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(c, i, fma(t, z, Float64(x * y))) tmp = 0.0 if (Float64(x * y) <= -7.9e+124) tmp = t_1; elseif (Float64(x * y) <= 1.3e+104) tmp = fma(a, b, fma(c, i, 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[(c * i + N[(t * z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -7.9e+124], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], 1.3e+104], N[(a * b + N[(c * i + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, i, \mathsf{fma}\left(t, z, x \cdot y\right)\right)\\
\mathbf{if}\;x \cdot y \leq -7.9 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \cdot y \leq 1.3 \cdot 10^{+104}:\\
\;\;\;\;\mathsf{fma}\left(a, b, \mathsf{fma}\left(c, i, t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 x y) < -7.9000000000000003e124 or 1.3e104 < (*.f64 x y) Initial program 96.0%
Taylor expanded in a around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.9
Applied rewrites75.9%
if -7.9000000000000003e124 < (*.f64 x y) < 1.3e104Initial program 96.0%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6474.5
Applied rewrites74.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma a b (fma c i (* t z)))))
(if (<= (* z t) -1.5e+147)
t_1
(if (<= (* z t) 2e+141) (fma a b (fma c i (* x y))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(a, b, fma(c, i, (t * z)));
double tmp;
if ((z * t) <= -1.5e+147) {
tmp = t_1;
} else if ((z * t) <= 2e+141) {
tmp = fma(a, b, fma(c, i, (x * y)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(a, b, fma(c, i, Float64(t * z))) tmp = 0.0 if (Float64(z * t) <= -1.5e+147) tmp = t_1; elseif (Float64(z * t) <= 2e+141) tmp = fma(a, b, fma(c, i, Float64(x * y))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a * b + N[(c * i + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(z * t), $MachinePrecision], -1.5e+147], t$95$1, If[LessEqual[N[(z * t), $MachinePrecision], 2e+141], N[(a * b + N[(c * i + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, b, \mathsf{fma}\left(c, i, t \cdot z\right)\right)\\
\mathbf{if}\;z \cdot t \leq -1.5 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \cdot t \leq 2 \cdot 10^{+141}:\\
\;\;\;\;\mathsf{fma}\left(a, b, \mathsf{fma}\left(c, i, x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 z t) < -1.49999999999999997e147 or 2.00000000000000003e141 < (*.f64 z t) Initial program 96.0%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6474.5
Applied rewrites74.5%
if -1.49999999999999997e147 < (*.f64 z t) < 2.00000000000000003e141Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma c i (* x y))))
(if (<= (* x y) -9e+124)
t_1
(if (<= (* x y) 2.5e+106) (fma a b (fma c i (* 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(c, i, (x * y));
double tmp;
if ((x * y) <= -9e+124) {
tmp = t_1;
} else if ((x * y) <= 2.5e+106) {
tmp = fma(a, b, fma(c, i, (t * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(c, i, Float64(x * y)) tmp = 0.0 if (Float64(x * y) <= -9e+124) tmp = t_1; elseif (Float64(x * y) <= 2.5e+106) tmp = fma(a, b, fma(c, i, 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[(c * i + N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -9e+124], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], 2.5e+106], N[(a * b + N[(c * i + N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, i, x \cdot y\right)\\
\mathbf{if}\;x \cdot y \leq -9 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \cdot y \leq 2.5 \cdot 10^{+106}:\\
\;\;\;\;\mathsf{fma}\left(a, b, \mathsf{fma}\left(c, i, t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 x y) < -9.0000000000000008e124 or 2.4999999999999999e106 < (*.f64 x y) Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in a around 0
lower-fma.f64N/A
lower-*.f6452.6
Applied rewrites52.6%
if -9.0000000000000008e124 < (*.f64 x y) < 2.4999999999999999e106Initial program 96.0%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6474.5
Applied rewrites74.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma c i (* t z))))
(if (<= (* z t) -2e+143)
t_1
(if (<= (* z t) 2e+143) (fma a b (* x y)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(c, i, (t * z));
double tmp;
if ((z * t) <= -2e+143) {
tmp = t_1;
} else if ((z * t) <= 2e+143) {
tmp = fma(a, b, (x * y));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(c, i, Float64(t * z)) tmp = 0.0 if (Float64(z * t) <= -2e+143) tmp = t_1; elseif (Float64(z * t) <= 2e+143) tmp = fma(a, b, Float64(x * y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(c * i + N[(t * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(z * t), $MachinePrecision], -2e+143], t$95$1, If[LessEqual[N[(z * t), $MachinePrecision], 2e+143], N[(a * b + N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, i, t \cdot z\right)\\
\mathbf{if}\;z \cdot t \leq -2 \cdot 10^{+143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \cdot t \leq 2 \cdot 10^{+143}:\\
\;\;\;\;\mathsf{fma}\left(a, b, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (*.f64 z t) < -2e143 or 2e143 < (*.f64 z t) Initial program 96.0%
Taylor expanded in a around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.9
Applied rewrites75.9%
Taylor expanded in x around 0
lower-*.f6451.8
Applied rewrites51.8%
if -2e143 < (*.f64 z t) < 2e143Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* z t) -4e+154)
(* t z)
(if (<= (* z t) -1.5e-113)
(fma c i (* x y))
(if (<= (* z t) 2e+143) (fma a b (* x y)) (* t z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((z * t) <= -4e+154) {
tmp = t * z;
} else if ((z * t) <= -1.5e-113) {
tmp = fma(c, i, (x * y));
} else if ((z * t) <= 2e+143) {
tmp = fma(a, b, (x * y));
} else {
tmp = t * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(z * t) <= -4e+154) tmp = Float64(t * z); elseif (Float64(z * t) <= -1.5e-113) tmp = fma(c, i, Float64(x * y)); elseif (Float64(z * t) <= 2e+143) tmp = fma(a, b, Float64(x * y)); else tmp = Float64(t * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(z * t), $MachinePrecision], -4e+154], N[(t * z), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], -1.5e-113], N[(c * i + N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], 2e+143], N[(a * b + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(t * z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -4 \cdot 10^{+154}:\\
\;\;\;\;t \cdot z\\
\mathbf{elif}\;z \cdot t \leq -1.5 \cdot 10^{-113}:\\
\;\;\;\;\mathsf{fma}\left(c, i, x \cdot y\right)\\
\mathbf{elif}\;z \cdot t \leq 2 \cdot 10^{+143}:\\
\;\;\;\;\mathsf{fma}\left(a, b, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot z\\
\end{array}
\end{array}
if (*.f64 z t) < -4.00000000000000015e154 or 2e143 < (*.f64 z t) Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in z around inf
lower-*.f6427.2
Applied rewrites27.2%
if -4.00000000000000015e154 < (*.f64 z t) < -1.5e-113Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in a around 0
lower-fma.f64N/A
lower-*.f6452.6
Applied rewrites52.6%
if -1.5e-113 < (*.f64 z t) < 2e143Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
(FPCore (x y z t a b c i) :precision binary64 (if (<= (* z t) -1e+147) (* t z) (if (<= (* z t) 2e+143) (fma a b (* x y)) (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((z * t) <= -1e+147) {
tmp = t * z;
} else if ((z * t) <= 2e+143) {
tmp = fma(a, b, (x * y));
} else {
tmp = t * z;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(z * t) <= -1e+147) tmp = Float64(t * z); elseif (Float64(z * t) <= 2e+143) tmp = fma(a, b, Float64(x * y)); else tmp = Float64(t * z); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(z * t), $MachinePrecision], -1e+147], N[(t * z), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], 2e+143], N[(a * b + N[(x * y), $MachinePrecision]), $MachinePrecision], N[(t * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -1 \cdot 10^{+147}:\\
\;\;\;\;t \cdot z\\
\mathbf{elif}\;z \cdot t \leq 2 \cdot 10^{+143}:\\
\;\;\;\;\mathsf{fma}\left(a, b, x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot z\\
\end{array}
\end{array}
if (*.f64 z t) < -9.9999999999999998e146 or 2e143 < (*.f64 z t) Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in z around inf
lower-*.f6427.2
Applied rewrites27.2%
if -9.9999999999999998e146 < (*.f64 z t) < 2e143Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
(FPCore (x y z t a b c i) :precision binary64 (if (<= (* z t) -1.5e+147) (* t z) (if (<= (* z t) 2e+141) (* x y) (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((z * t) <= -1.5e+147) {
tmp = t * z;
} else if ((z * t) <= 2e+141) {
tmp = x * y;
} else {
tmp = t * 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, c, i)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((z * t) <= (-1.5d+147)) then
tmp = t * z
else if ((z * t) <= 2d+141) then
tmp = x * y
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 ((z * t) <= -1.5e+147) {
tmp = t * z;
} else if ((z * t) <= 2e+141) {
tmp = x * y;
} else {
tmp = t * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (z * t) <= -1.5e+147: tmp = t * z elif (z * t) <= 2e+141: tmp = x * y else: tmp = t * z return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(z * t) <= -1.5e+147) tmp = Float64(t * z); elseif (Float64(z * t) <= 2e+141) tmp = Float64(x * y); 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 ((z * t) <= -1.5e+147) tmp = t * z; elseif ((z * t) <= 2e+141) tmp = x * y; else tmp = t * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(z * t), $MachinePrecision], -1.5e+147], N[(t * z), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], 2e+141], N[(x * y), $MachinePrecision], N[(t * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot t \leq -1.5 \cdot 10^{+147}:\\
\;\;\;\;t \cdot z\\
\mathbf{elif}\;z \cdot t \leq 2 \cdot 10^{+141}:\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;t \cdot z\\
\end{array}
\end{array}
if (*.f64 z t) < -1.49999999999999997e147 or 2.00000000000000003e141 < (*.f64 z t) Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in z around inf
lower-*.f6427.2
Applied rewrites27.2%
if -1.49999999999999997e147 < (*.f64 z t) < 2.00000000000000003e141Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in x around inf
lower-*.f6428.2
Applied rewrites28.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= (* a b) -1.95e+95) (* a b) (if (<= (* a b) 2.45e+65) (* t z) (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -1.95e+95) {
tmp = a * b;
} else if ((a * b) <= 2.45e+65) {
tmp = t * z;
} else {
tmp = a * b;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((a * b) <= (-1.95d+95)) then
tmp = a * b
else if ((a * b) <= 2.45d+65) then
tmp = t * z
else
tmp = a * b
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 ((a * b) <= -1.95e+95) {
tmp = a * b;
} else if ((a * b) <= 2.45e+65) {
tmp = t * z;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (a * b) <= -1.95e+95: tmp = a * b elif (a * b) <= 2.45e+65: tmp = t * z else: tmp = a * b return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(a * b) <= -1.95e+95) tmp = Float64(a * b); elseif (Float64(a * b) <= 2.45e+65) tmp = Float64(t * z); else tmp = Float64(a * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((a * b) <= -1.95e+95) tmp = a * b; elseif ((a * b) <= 2.45e+65) tmp = t * z; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(a * b), $MachinePrecision], -1.95e+95], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2.45e+65], N[(t * z), $MachinePrecision], N[(a * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -1.95 \cdot 10^{+95}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq 2.45 \cdot 10^{+65}:\\
\;\;\;\;t \cdot z\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -1.9499999999999999e95 or 2.44999999999999978e65 < (*.f64 a b) Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
if -1.9499999999999999e95 < (*.f64 a b) < 2.44999999999999978e65Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in z around inf
lower-*.f6427.2
Applied rewrites27.2%
(FPCore (x y z t a b c i) :precision binary64 (if (<= (* a b) -1e-20) (* a b) (if (<= (* a b) 12.5) (* c i) (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -1e-20) {
tmp = a * b;
} else if ((a * b) <= 12.5) {
tmp = c * i;
} else {
tmp = a * b;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((a * b) <= (-1d-20)) then
tmp = a * b
else if ((a * b) <= 12.5d0) then
tmp = c * i
else
tmp = a * b
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 ((a * b) <= -1e-20) {
tmp = a * b;
} else if ((a * b) <= 12.5) {
tmp = c * i;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (a * b) <= -1e-20: tmp = a * b elif (a * b) <= 12.5: tmp = c * i else: tmp = a * b return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(a * b) <= -1e-20) tmp = Float64(a * b); elseif (Float64(a * b) <= 12.5) tmp = Float64(c * i); else tmp = Float64(a * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((a * b) <= -1e-20) tmp = a * b; elseif ((a * b) <= 12.5) tmp = c * i; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(a * b), $MachinePrecision], -1e-20], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 12.5], N[(c * i), $MachinePrecision], N[(a * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -1 \cdot 10^{-20}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq 12.5:\\
\;\;\;\;c \cdot i\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
if (*.f64 a b) < -9.99999999999999945e-21 or 12.5 < (*.f64 a b) Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
if -9.99999999999999945e-21 < (*.f64 a b) < 12.5Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
Taylor expanded in c around inf
lower-*.f6427.6
Applied rewrites27.6%
(FPCore (x y z t a b c i) :precision binary64 (* a b))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a * 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, c, i)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = a * b
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a * b;
}
def code(x, y, z, t, a, b, c, i): return a * b
function code(x, y, z, t, a, b, c, i) return Float64(a * b) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a * b; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(a * b), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b
\end{array}
Initial program 96.0%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-fma.f64N/A
lower-*.f6475.1
Applied rewrites75.1%
Taylor expanded in c around 0
lower-fma.f64N/A
lower-*.f6451.6
Applied rewrites51.6%
Taylor expanded in x around 0
lower-*.f6426.8
Applied rewrites26.8%
herbie shell --seed 2025149
(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)))