assignment code generation