Ported block analysis from C1X, and copied over C4 sources.