CodeGen: further simplify assertion

Use more of algorithm to simplify the assertion.  Pointed out by David Blakie!