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

WLS fails on simple codes, e.g., ktr.sac

Bugzilla Link 646
Created on Dec 30, 2009 22:14
Resolution FIXED
Resolved on Jan 03, 2010 21:46
Version svn
OS Linux
Architecture PC
Attachments crud.sac

Extended Description

Build #16697 fails to perform WLS on this code (and many others):
int main()
{
  A = with  {
    (. <= iv=[i] <= .) {
     B = with {
       (. <= jv=[j] <= .) {
         VAL = _add_SxS_( i, _mul_SxS_( 2, j));
       } : VAL;
      } : genarray([4], 42);
    } : B;
   } : genarray([4], [10,20,30,40]);
  StdIO::print(A);
  return(0);
}
sac2c -d#,WLS gives this:
with {
      (_flat_2 <= iv=[i] < _flat_5 genwidth [ _wlsimp_115 ])
      {
        B = with {
              (_flat_2 <= jv=[j] < _flat_5 genwidth [ _wlsimp_116 ])
              {
                _flat_12 = _mul_SxS_( _flat_13, j);
                VAL = _add_SxS_( i, _flat_12);
              } : VAL ;
 } :
            genarray( _flat_5, _flat_7);
      } : B ;
 } :
    genarray( _flat_5, _flat_1)
-----------------------------------------------
 WLSCdoCheck: WLS: A: Checking whether with-loop can be scalarized.
    WLSCwith: WLS: A: Outer with-loop has no full partition
 WLSCdoCheck: WLS: A: With-loop cannot be scalarized.
I'm looking into it now, to see if there's a simple fix.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking