Obscure C-isms and How To Find Them
This is not a Python to the rescue story. This is a true, deeply horrible situation. I was rescued by a reframing technique I'll call Extraction.
First, the function had nested if's without enough else's -- the kind of thing that handles two of the four possible conditions.
if( a ) { if …more ...