|
|
Bugzilla Link |
442 |
Created on |
Jun 30, 2008 15:40 |
Resolution |
FIXED |
Resolved on |
Jul 15, 2008 16:52 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Extended Description
sac2c -d sancheck bugopt.sac crashes with broken SSAASSIGN. Here's the code:
Now, if you compile this with -nolir, you get a different failure
(in Arithmetic Simplification) and with
-nocf, the bug disappears entirely.
--------------------------------------------------------
use Structures : {<,+,modarray};
int main()
{
y = _reshape_VxA_([2, 2, 2], [1,2,3,4,5,6,7,8]);
z = y;
q = _reshape_VxA_([2,2],[9,10,11,12]);
#ifdef BUG
for(i=0; i<2; i++) {
for(j = 0; j<1 ; j++){
#else // BUG
for(i=0; _lt_SxS_(i,2); i++) {
for(j = 0; _lt_SxS_(j,1) ; j++){
#endif // BUG
z[[0]] = q;
}
}
return(_sel_VxA_([0,1,1], z));
}