Fix broken infinite loop detection.
Fix broken infinite loop detection.

kranich/haste-compiler,nyson/haste-compiler,kranich/haste-compiler,kranich/haste-compiler,kranich/haste-compiler,nyson/haste-compiler,nyson/haste-compiler,nyson/haste-compiler