Nested for with a condition breaks at 'mmv'
|
|
Bugzilla Link |
563 |
Created on |
Sep 21, 2009 19:12 |
Resolution |
FIXED |
Resolved on |
Oct 17, 2009 19:36 |
Version |
1.00beta |
OS |
Linux |
Architecture |
PC |
Extended Description
/*
* SAC - bug report
* ================
*
* automatically generated on Mon Sep 21 19:01:07 BST 2009
*
* using sac2c v1.00-beta (Buchette d'Anjou) rev 16226 for linux-gnu_i686
* built Fri Jul 24 15:22:58 BST 2009.
* by user asv on host obelix for linux-gnu.
*
* The compiler was called by
* sac2c -v 4 error.sac -noprelude -b16:mmv
*
* The contents of error.sac is:
*/
module error;
export all;
int write_block(int current) {
outbufcount = 0;
for (i = 0; _lt_SxS_(i , current); i = _add_SxS_( i, 1)) {
if ( _eq_SxS_( 0, current) ) {
outbufcount = _add_SxS_( outbufcount, 1);
} else {
for (j = 0; _lt_SxS_( j , current); j = _add_SxS_( j, 1)) {
outbufcount = _add_SxS_( outbufcount, 1);
}
}
}
return (outbufcount);
}