de29a9aa07a84dee018161a6983673bc3672bc9b
That's exactly what 'cond' is for. Things like a loop with a constant zero vector condition should be recognized. It was correct before just by chance, because FoldCond currently transforms a constant node into an integer node, but let's not rely on that.
LSL PyOptimizer
LSL PyOptimizer is a LSL2 script optimizer written in Python 2. Currently it only supports code memory optimization (no speed optimization), only for Mono (no LSO), and only for the Second Life flavour of LSL (no OpenSim etc.).
HTML introduction, list of features and documentation available at http://lsl.project.zone/lsl-pyoptimizer/
Description
Optimizes a LSL2 script, folding constants, removing unused code and more. Adds new syntax features too.
Languages
Python
73.5%
LSL
26.5%