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 394
    • Issues 394
    • 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
  • #2030
Closed
Open
Created Dec 24, 2011 by Robert Bernecky@rbeDeveloper

CF selModarray(?) causes wrong answers in rle.sac (and other APEX benchmarks)

Bugzilla Link 897
Created on Dec 24, 2011 16:03
Resolution FIXED
Resolved on Dec 28, 2011 22:49
Version svn
OS Linux
Architecture PC
Attachments crud2.sac

Extended Description

Created an attachment (id=836)
source code to reproduce failure
I chased this bug just this far, but am out of town until Monday; will
fix it then. Basically, indexed assigns of the form:
    x[iv] = 42;
    z = 10+x[iv];
leaves x unchanged. Not exactly what we want...
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
 developer rev 17714:MODIFIED linux-gnu_x86_64
 (Tue Dec 20 16:34:06 EST 2011 by sac)
sac2c crud2.sac -v0
a.outapex@rattler:~/apex2003/benchmks/rle$ a.out
4 30
0 0 0 0 30
3 -90
0 0 0 -90 30
2 180
0 0 180 -90 30
1 -180
0 -180 180 -90 30
0 0
0 -180 180 -90 30
0 -180 180 -90 30
apex@rattler:~/apex2003/benchmks/rle$ sac2c crud2.sac -v0 -DBREAKME
apex@rattler:~/apex2003/benchmks/rle$ a.out
4 30
0 0 0 0 0
3 -90
0 0 0 0 0
2 180
0 0 0 0 0
1 -180
0 0 0 0 0
0 0
0 0 0 0 0
0 0 0 0 0
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking