loda-lang / loda-cpp

Runtime and miner for the LODA language written in C++
https://loda-lang.org/
Apache License 2.0
21 stars 1 forks source link

Terminate loop if counter is zero #264

Open ckrause opened 1 year ago

ckrause commented 1 year ago

If the loop counter is already zero before the execution of the loop body we can terminate the loop immediately and skip the last iteration. This will impact the step count and needs to be considered in IE as well.