I have an automatically generated TCL proc, which has many if condition, some lines inside some if condition never gets executed for any possible combinations of proc inputs.
But I found some syntactical errors in those lines like extra ] or multiplication [1*1] instead of [expr 1*1]. I want to find out these TCL syntactical errors in all the lines. Is there any clever way to do achieve this?