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 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2079
Closed
Open
Created Jun 30, 2008 by Robert Bernecky@rbeDeveloper

Broken SSAASSIGN link in link

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