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 393
    • Issues 393
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2259
Closed
Open
Created May 11, 2021 by Robert Bernecky@rbeDeveloper

LUR crashes in "stupid type conversions" when compiling module

Compiling with:

sac2c crudscan.sac -maxoptcyc 1 -d treecheck -chkfreq 4 -v4

crashes in LUR's GetLoopIdentifiers, near "stupid type conversions".

module UTRepresentation;
use Array:{shape,genarray,<,+,++,-,*,sum,sel,modarray};
export {NOTmain};

inline int mpybslXII(int[.] y)
{ /* Scan of vector */
 size = shape(y);
 arg = genarray(size,1);
 z = 42;
 for ( i=1; i<size[[0]]; i++) {
    z = z + 4 * 3;
 }
 return(z);
}

int NOTmain ()
{
 z=mpybslXII( [2,3,1]);
 return(z);
}

Compiled with:

rbe@boa:~/JimBrown$ sac2c -V
sac2c 1.3.3-MijasCosta-583-g93687
build-type: DEBUG
built-by: "sac" at 2021-05-03T11:17:13
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking