add generate_if_statament in generate.c