'Lower the body of the generator\'s finalizer: decref all live
state variables.'

def lower_finalize_func_body(self, builder, genptr):

    self.debug_print(builder, '#    generator:    finalize')
    if self.context.enable_nrt:
        args_ptr = self.get_args_ptr(builder, genptr)
        for (ty, val) in self.arg_packer.load(builder, args_ptr):
            self.context.nrt.decref(builder, ty, val)
    self.debug_print(builder, '#    generator:    finalize    end')
    builder.ret_void()
