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 403
    • Issues 403
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1229
Closed
Open
Created Nov 01, 2010 by Robert Bernecky@rbeDeveloper

AWLF fails to propagate extrema for mixed N_array node

Bugzilla Link 766
Created on Nov 01, 2010 22:56
Version svn
OS Linux
Architecture PC

Extended Description

If an N_array node, iv,  used in a sel(iv, producerWL) contains
a mix of constants and WITHIDS, e.g, iv = [ 2, j, k], then
iv does not obtain extrema, which defeats AWLF on the producerWL.
Here is failing code, to be compiled with: 
  sac2c -ecc -extrema -doawlf -nowlf mixedIV.sac
use Array: {-,transpose,genarray,++,*,iota,sum};
int main()
{
 shp = [ 6, 10];
 AAA = with {
          ( . <= iv=[i,j] <= .) :  
            _add_SxS_( j, _mul_SxS_( i, _sel_VxA_( [1], shp)));
          } : genarray( shp, 42);
 b = with {
          ( . <= IV=[JJ] <= .) :
            _sel_VxA_( [ 1, JJ], AAA);
          } : genarray( [8], 666);
 z = sum(b) - 108;
 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