sac2c issueshttps://gitlab.sac-home.org/sac-group/sac2c/-/issues2023-10-26T14:42:50Zhttps://gitlab.sac-home.org/sac-group/sac2c/-/issues/2344WLSTRIDE_ISMODIFIED error2023-10-26T14:42:50ZSven-Bodo ScholzWLSTRIDE_ISMODIFIED errorwhen compiling
```
noinline
double[4,4,4] coarse2fine (double[2,2,2] z)
{
foo = with {
([1, 1, 1] <= iv < [4,4,4] step [2, 2, 2] ) : _sel_VxA_(_div_VxS_(_sub_VxS_(iv, 1), 2),z);
} : genarray ([4,4,4], 0d);
return ...when compiling
```
noinline
double[4,4,4] coarse2fine (double[2,2,2] z)
{
foo = with {
([1, 1, 1] <= iv < [4,4,4] step [2, 2, 2] ) : _sel_VxA_(_div_VxS_(_sub_VxS_(iv, 1), 2),z);
} : genarray ([4,4,4], 0d);
return foo;
}
noinline
double[2,2,2] fine2coarse(double[4,4,4] r)
{
bar = with {
([0,0,0] <= iv < [2,2,2]) : _sel_VxA_(_mul_SxV_(2,iv),r);
} : genarray ([2,2,2], 0d);
return bar;
}
int main()
{
u = with {} : genarray([4,4,4], 0d);
rs = fine2coarse (u);
u = coarse2fine (rs);
return _toi_S_(_sel_VxA_([0,0,0], u));
}
```
with
```
-sbs-SvenBodosAir2-> sac2c-d -V
sac2c 1.3.3-MijasCosta-1079-g648dba
build-type: DEBUG
built-by: "sbs" at 2023-09-13T11:13:47
```
I get
```
-sbs-Sven-Bodos-MacBook-Air-2-> sac2c-d bug.sac
** 1: Loading SAC program ...
** 2: Preprocessing SAC program ...
** 3: Running module system ...
** 4: Simplifying source code ...
** 5: Converting to static single assignment form ...
** 6: Running type inference system ...
** 7: Processing exports ...
** 8: Preparing for code optimization ...
** 9: Enhancing with-loops ...
** 10: Running SAC optimizations ...
** 11: Automatic parallelisation for GPUs skipped.
** 12: Transforming with-loop representation ...
Internal compiler error
Assertion "!WLSTRIDE_ISMODIFIED (stride1)" failed at /Volumes/Users/sbs/sac2c/src/libsac2c/wltransform/wltransform.c:3654 -- stride was modified
Please file a bug at: https://gitlab.sac-home.org/sac-group/sac2c/-/issues
```https://gitlab.sac-home.org/sac-group/sac2c/-/issues/2064sac2c dies in wltransform due to illegal node structure access2017-11-19T21:54:15ZClemens Grelcksac2c dies in wltransform due to illegal node structure access| | |
| --- | --- |
| Bugzilla Link | [604](http://bugs.sac-home.org/show_bug.cgi?id=604) |
| Created on | Nov 22, 2009 12:04 |
| Resolution | FIXED |
| Resolved on | Nov 23, 2009 11:43 |
| Version | 1.00beta |
| OS | Linux |
| Archite...| | |
| --- | --- |
| Bugzilla Link | [604](http://bugs.sac-home.org/show_bug.cgi?id=604) |
| Created on | Nov 22, 2009 12:04 |
| Resolution | FIXED |
| Resolved on | Nov 23, 2009 11:43 |
| Version | 1.00beta |
| OS | Linux |
| Architecture | All |
| Attachments | [bug22.sac](/uploads/1b3894a7e1efc91d1598db9a2bf58826/bug22.sac) |
## Extended Description
<pre>Created an attachment (id=610)
code to reproduce failure
When compiling the soon to be attached code, sac2c dies in wltransform in
function CompareWlTrees. The access via WLNODE_STEP goes bust as the current
node of type wlgrid has no step attribute. I assume this is a systematic
problem of the new wltransform and not specific to the current code, hence
the high severity.</pre>Stephan HerhutStephan Herhut