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