Fix c-code generation for nested conditional functions