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 22
    • Merge requests 22
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2271
Closed
Open
Created Aug 18, 2021 by Sven-Bodo Scholz@sbsOwner

WLF multi-operator bug

The following program:

int main()
{
   ax,ay = with {
            ( [0, 0] <= [i,j] < [2,10]) : (2, 2.0);
          } : ( genarray( [10,10] ,1),
                genarray( [10,10], 1.0 ));

   ax,ay = with {
            ( [0, 0] <= [i,j] < [2,10]) : (_sel_VxA_([i,j], ax), _sel_VxA_([i,j], ay));
          } : ( genarray( [10,10] ,1),
                genarray( [10,10], 1.0 ));

   return _sel_VxA_( [2,2], ax) ;
}

when compiled with sac2c 1.3.3-MijasCosta-682-gd1a1

replaces the second selection wrongly, which subsequently leads to the following error:

error: line 9 in file ./reg.sac:
error: Element types of one generator body expression and another generator body expression should be identical; types found:
error: double{1.0...}  and  int{2}
compilation failed while Running SAC optimizations.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking