AWLF unit test dropAKDrank2.sac fails in several ways, depending on prod/dev version
| Bugzilla Link | 1080 | 
| Created on | May 05, 2013 23:07 | 
| Version | svn | 
| OS | Linux | 
| Architecture | PC | 
| Attachments | dropAKDrank2.sac | 
Extended Description
Created an attachment (id=977) source code to reproduce fault sac2c -V sac2c v1.00-beta (Haggis And Apple) product rev 18133 linux-gnu_x86_64 (Sun May 5 11:30:39 EDT 2013 by sac) The above unit test fails in at least two nasty waya: 1. Production version of sac2c: sac2c dropAKDrank2.sac -v1 -doawlf -nowlf -v4 ,,, ** 18: Preparing C code generation ... **** Marking memval identifiers ... OOOOOOOPS, your program crashed the compiler 8-(( 2. Development version of sac2c: * 13: Transforming with-loop representation ... **** Simplifying with-loops ... **** Transforming with-loop representation ... wltransform/wltransform.c:7159 Assertion "strides != NULL" fa 3. And, we get wrong answers, too! sac2c dropAKDrank2.sac -v1 sac@rattler:~/sac/testsuite/optimizations/awlf$ a.out Dimension: 2 Shape : < 0, 10> <> sac@rattler:~/sac/testsuite/optimizations/awlf$ sac2c dropAKDrank2.sac -v1 -nodl sac@rattler:~/sac/testsuite/optimizations/awlf$ a.out Dimension: 2 Shape : < 1, 10> |5.000000e-01 1.500000e+00 2.500000e+00 3.500000e+00 4.500000e+00 5.500000e+00 6.500000e+00 7.500000e+00 8.500000e+00 9.500000e+00 | I'm assigning this one to myself, because of (3). However, there might be refs to undefined variables in that back end code...
 
