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 24
    • Merge requests 24
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1250
Closed
Open
Created May 14, 2013 by Robert Bernecky@rbeDeveloper

shift() function folds with hidden constant count, but not with constant!

Bugzilla Link 1081
Created on May 14, 2013 14:42
Version svn
OS Linux
Architecture PC
Attachments shifttest.sac

Extended Description

This is weird:
I have a hand-rolled version of the stdlib shift() function, 
which will AWLF if I give it a hidden constant count, eg. id( 5),
but not if I give it a constant - 5.
I'm looking into it now.
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 product rev 18145 linux-gnu_x86_64
 (Tue May 14 09:34:10 EDT 2013 by sac)
sac2c -doawlf -nowlf shifttest.sac -bopt >crud
Also, the non-constant version ends up with two partitions,
and the constant version has three!
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking