SCCF bug causes wrong answers on idx_modarray_AxVxA()
|
|
Bugzilla Link |
892 |
Created on |
Dec 20, 2011 20:53 |
Resolution |
FIXED |
Resolved on |
Dec 20, 2011 21:34 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
Summary says it all; Build # sac2c v1.00-beta (Haggis And Apple)
developer rev 17712:MODIFIED linux-gnu_x86_64
(Mon Dec 19 13:11:35 EST 2011 by sac)
sac2c crud.sac -doawlf -nowlf -v4 -nocyc -bopt:cfls >crud.cfls
Here is the code that fails:
use Array : {genarray,take,-,sel};
inline int[+] rotrXII(int[+] y)
{ /* Last axis reverse on rank>1 */
cellshape = take([-1], _shape_A_(y));
cell = genarray(cellshape, 0);
z = with {
( . <= iv <= .)
: (y[iv]);
} : genarray( [2], cell);
return(z);
}
int main()
{
M =_reshape_VxA_([2, 3],[0,1,2,3,4,5]);
A_354=rotrXII( M);
StdIO::print(A_354);
return(0);
}