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 395
    • Issues 395
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2274
Closed
Open
Created Sep 07, 2021 by Sven-Bodo Scholz@sbsOwner

TC problem with conditionals

The following program

int main()
{
    bodies = [1,2,3,4,5,6,7];

    accs = {[i] -> {[j] -> (_eq_SxS_(i,j) ? _sel_VxA_([i], bodies) : _sel_VxA_([j], bodies)) } };

    return(0);
}

when compiled with -noprelude yields:

./bodies.sac 5 error: Identifier '_hce_23` used without previous definition
./bodies.sac 5 error: Identifier '_hce_22` used without previous definition
./bodies.sac 5 error: Identifier '_hce_25` used without previous definition
./bodies.sac 5 error: Identifier '_hce_24` used without previous definition
compilation failed while Converting to static single assignment form, 4 error(s).

in phase 4 when using

sac2c 1.3.3-MijasCosta-721-g71fd
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking