comments on the main inference code generation method.