cyclic detection in pre-compilation