"I stepped through the code repeatedly, checking every transformation, every condition, every variable – but nothing stood ...