Use more efficient method of identifying rules (C emitter still broken)