EgonOlsen71 / basicv2

A Commodore (CBM) BASIC V2 interpreter/compiler written in Java
https://egonolsen71.github.io/basicv2/
The Unlicense
84 stars 15 forks source link

Constant if simplifier #45

Closed ciplogic closed 11 months ago

ciplogic commented 1 year ago

Built on previous MRs, and it allows a constant per-line propagator. It works on top of line code. It also does IF costs. This can be a bit fragile, but it should be smart enough, especially combined with previous optimizations.

Added special test "Playground" to prove it and it was used as a stress test for this logic.