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 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2029
Closed
Open
Created Dec 20, 2011 by Robert Bernecky@rbeDeveloper

SCCF bug causes wrong answers on idx_modarray_AxVxA()

Bugzilla Link 892
Created on Dec 20, 2011 20:53
Resolution FIXED
Resolved on Dec 20, 2011 21:34
Version svn
OS Linux
Architecture PC

Extended Description

Summary says it all; Build # sac2c v1.00-beta (Haggis And Apple)
 developer rev 17712:MODIFIED linux-gnu_x86_64
 (Mon Dec 19 13:11:35 EST 2011 by sac)
sac2c crud.sac -doawlf -nowlf -v4 -nocyc -bopt:cfls  >crud.cfls
Here is the code that fails:
use Array : {genarray,take,-,sel};
inline int[+] rotrXII(int[+] y)
{ /* Last axis reverse on rank>1 */
 cellshape = take([-1], _shape_A_(y));
 cell = genarray(cellshape, 0);
 z = with {
        ( . <= iv <= .)
                : (y[iv]);
       } : genarray( [2], cell);
 return(z);
}
int main()
{ 
 M =_reshape_VxA_([2, 3],[0,1,2,3,4,5]);
 A_354=rotrXII( M);
 StdIO::print(A_354);
 return(0);
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking