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