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
  • #2043
Closed
Open
Created Dec 19, 2012 by Robert Bernecky@rbeDeveloper

CF misses selection from structural constant

Bugzilla Link 1041
Created on Dec 19, 2012 23:54
Resolution FIXED
Resolved on Dec 20, 2012 22:02
Version svn
OS Linux
Architecture PC
Attachments crud3.sac

Extended Description

Created an attachment (id=943)
source code to reproduce fault
This one is very old apparently, but it's getting in my way today.
We have something like this:
 vec = [ m, n];
 vec2 =  _idx_modarray_AxSxS_( vec, 0, q);
 cols = _idx_sel_( 1, vec2);
This could be simplified to:
 cols = n;
The circumstances are that the two idx() indices 
are constant and NOT the same, and PRF_ARG1 of the modarray is 
a structural constant. In that case, we treat the expression
as if we had been given:
 cols = _idx_sel_( 1, vec);
This is already handled by CF.
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 18046 linux-gnu_x86_64
 (Wed Dec 19 16:40:34 EST 2012 by sac)
Compile with: 
sac2c crud3.sac -doawlf -nowlf -v1 -bopt >crud
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking