|
|
Bugzilla Link |
766 |
Created on |
Nov 01, 2010 22:56 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
If an N_array node, iv, used in a sel(iv, producerWL) contains
a mix of constants and WITHIDS, e.g, iv = [ 2, j, k], then
iv does not obtain extrema, which defeats AWLF on the producerWL.
Here is failing code, to be compiled with:
sac2c -ecc -extrema -doawlf -nowlf mixedIV.sac
use Array: {-,transpose,genarray,++,*,iota,sum};
int main()
{
shp = [ 6, 10];
AAA = with {
( . <= iv=[i,j] <= .) :
_add_SxS_( j, _mul_SxS_( i, _sel_VxA_( [1], shp)));
} : genarray( shp, 42);
b = with {
( . <= IV=[JJ] <= .) :
_sel_VxA_( [ 1, JJ], AAA);
} : genarray( [8], 666);
z = sum(b) - 108;
return(z);
}