-ecc breaks really simple code!
|
|
Bugzilla Link |
877 |
Created on |
Sep 28, 2011 17:34 |
Resolution |
FIXED |
Resolved on |
Oct 07, 2011 11:10 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Attachments |
877.sac |
Extended Description
This program, when compiled with -ecc, puts guards that use
"cell" before the computation of "cell"!
============================================
use Array: {*,+,sel,sum};
inline int[+] utakIIB(int[.] x, int[+] y)
{
cell = _add_VxV_( x, x);
z = with {
(. <= iv <= .)
: x;
} : genarray([4], cell);
return(z);
}
int main()
{
A_26 = [17, 18, 19, 20];
z = utakIIB([2, 2, 2, 2, 2, 2, 2, 2],A_26);
z = sum(z);
StdIO::print(z);
return(0);
}
======================================================
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 17642:MODIFIED linux-gnu_x86_64
(Tue Sep 27 19:08:41 EDT 2011 by sac)