-bscp does not like multi-generator WLs
|
|
Bugzilla Link |
1078 |
Created on |
May 04, 2013 22:49 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Attachments |
ArrayTransform.xsac |
Extended Description
Created an attachment (id=976)
source code to reproduce fault
I tried adding a last-axis catenate to ArrayTransform.xsac, like this:
z = with {
(0 *_shape_A_(x) <= iv < _shape_A_( x)) : x[ iv];
,
( offset <= iv < shpz) : y[ iv - offset];
} : genarray(shpz, -666);
However, -bscp sticks a comma after each partition, which sac2c does not like.
This is what comes out of the -bscp sausage-maker:
z = with {
(*( 0, _shape_A_( x)) <= iv < _shape_A_( x))
{
} : sel( iv, x) ; ,
(offset <= iv < shpz)
{
} : sel( -( iv, offset), y) ;
} :
genarray( shpz, zero( x));
sac2c does not like the comma.
I suppose I can break up the WL into a genarray/modarray pair...