Änderungen

Summary

  1. fixed #737 optimizer bug (commit: f4c4ea6) (details)
Commit f4c4ea6b519fbb884dda9ed547b2598dcd700d69 by peter.peq
fixed #737 optimizer bug
The problem was in TempMerger, which remembers the current value of
variables and inlines temporary variables. It checks that moving
expressions has no unintended side-effects. However the necessary checks
(whether a statement reads a global or calls a function) was cached and
not recomputed when statements changed due to optimizations.
This fix removes the cache, which probably makes this optimization
slower.
(commit: f4c4ea6)
The file was modifiedde.peeeq.wurstscript/src/test/java/tests/wurstscript/tests/WurstScriptTest.java (diff)
The file was modifiedde.peeeq.wurstscript/src/test/java/tests/wurstscript/tests/OptimizerTests.java (diff)
The file was modifiedde.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/intermediatelang/optimizer/TempMerger.java (diff)