[CORE] Add dirty allocation process for generated code