Only look for dependency cycles when assertions are enabled.