scanparse fails on WL, but does not report anything about problem.
|
|
Bugzilla Link |
1150 |
Created on |
Mar 24, 2015 19:16 |
Resolution |
FIXED |
Resolved on |
Mar 26, 2015 19:25 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
sac2c bug.sac
** 1: Loading SAC program ...
**** Locating source code ...
Reading from file "./bug.sac" ...
**** Running C preprocessor ...
**** Parsing input file ...
abort: Failed to construct a syntax tree for `bug.sac'
compilation failed while Loading SAC program.
sac@rattler:~/docs/papers/2015/PLDI2015-Arrays-wlcondo$ cat bug.sac
int main() {
N = 4000000;
a = genarray( [N+1], 2d);
a[N/2] = 500d;
res = a;
res = with {
(. <= [i] <= .) : {
if(i==0) {
el = a[0];
} else {
if(N==i) {
el = A[N];
} else {
el = (a[i-1] + a[i+1])/2.0;
}
}} : el;
} : modarray( a);
z = sum(res);
StdIO::print(z);
return( 0);
}
sac@rattler:~/docs/papers/2015/PLDI2015-Arrays-wlcondo$
sac@rattler:~/docs/papers/2015/PLDI2015-Arrays-wlcondo$ sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 18540 linux-gnu_x86_64
(Mon Mar 23 08:30:07 EDT 2015 by sac)