Begin the code generation for function def