Rust · one file · fewer states
SharedFrame, one type
In a renderer, several threads share one frame. The step turns two fields of its type into one value with three cases, and it removes a flag that nothing ever read.
Why this is better. The type had 16 possible states and now has 6, and the unchanged tests reach all 6. Half as many planted faults go unnoticed. The price was 57 tokens. Lesscode refused the first attempt as too big and accepted the trimmed one.
The tests pass before and after. The author reported these numbers from recorded runs. Lesscode did not judge this one.