[CODEGEN] Codegen tool works well