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
  • #1048
Closed
Open
Created Nov 26, 2009 by Robert Bernecky@rbeDeveloper

UTIndexSet failure: loop variable "arr_a" is being used inconsistently

Bugzilla Link 610
Created on Nov 26, 2009 22:50
Version svn
OS Linux
Architecture PC
Attachments crud.sac

Extended Description

Developer rev 16638 dies with above message on this code:
use Array : all;
int main()
{ 
 A_351=iota( 6);
 M2_4=_reshape_VxA_([2, 3],A_351);
 A_354=rotrXII( M2_4);
 M2_5=indsxx(M2_4,A_354);
 A_360=_reshape_VxA_([2, 3],[2, 1, 0, 5, 4, 3]);
 z= match(M2_5, A_360);
 StdIO::print(z);
 return(0);
}
inline int[+] indsxx(int[+] X,  int[+] Y)
{ /* X[;;nonscalarI;;;]<- nonscalarY */
 
 z = X;
 z[[]]=Y;
 return(z);
}
inline int[+] rotrXII(int[+] y)
{/* Last axis reverse on rank>1 */
 cellshape = take([-1], shape(y));
 frameshape = drop([-1],shape(y));
 cell = genarray(cellshape, 0);
 z = with {
        ( . <= iv <= .)
                : reverse(y[iv]);
       } : genarray(frameshape, cell);
 return(z);
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking