Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 402
    • Issues 402
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1708
Closed
Open
Created Sep 21, 2009 by Artem Shinkarov@temaOwner

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);
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking