SPWN-language
SPWN-language copied to clipboard
Optimizer Bug (AKA "frames() bug")
if runtime_condition { runtime_operation }
trigger_func!
This causes the optimizer to panic with the following error:
Built in 781 milliseconds!
Optimizing triggers...
thread 'main' panicked at 'assertion failed: swaps.insert(a, b).is_none()', optimizer\src\optimize.rs:857:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I don't think it's fully an optimizer issue tho.
if 1i == 0 {}
!{ 1i.add(1) }!
This is one of the shortest examples I found that throws that error.