bti_codegen