Lines Matching defs:cstmt

80 static control_statement *cstmt;
152 cs->c_surrounding = cstmt;
153 cstmt = cs;
159 while (cstmt->c_kind != kind)
160 cstmt = cstmt->c_surrounding;
162 control_statement *cs = cstmt;
163 cstmt = cs->c_surrounding;
348 cstmt->c_had_return_noval = true;
352 if (cstmt->c_had_return_noval && cstmt->c_had_return_value &&
368 cstmt->c_had_return_value, funcsym->s_osdef,
465 for (cs = cstmt; cs != NULL && !cs->c_switch; cs = cs->c_surrounding)
529 for (cs = cstmt; cs != NULL && !cs->c_switch; cs = cs->c_surrounding)
589 cstmt->c_always_then = reached;
596 cstmt->c_reached_end_of_then = reached;
598 set_reached(!cstmt->c_always_then);
604 if (cstmt->c_reached_end_of_then)
606 else if (cstmt->c_always_then)
654 cstmt->c_switch = true;
655 cstmt->c_switch_type = tp;
656 cstmt->c_switch_expr = tn;
668 lint_assert(cstmt->c_switch_type != NULL);
670 if (cstmt->c_switch_type->t_is_enum) {
676 lint_assert(cstmt->c_switch_type->u.enumer != NULL);
677 for (esym = cstmt->c_switch_type->u.enumer->en_first_enumerator;
681 nclab = (int)cstmt->c_case_labels.len;
682 if (hflag && eflag && nclab < nenum && !cstmt->c_default)
689 if (cstmt->c_break) {
696 } else if (cstmt->c_default ||
697 (hflag && cstmt->c_switch_type->t_is_enum &&
728 cstmt->c_loop = true;
729 cstmt->c_maybe_endless = is_nonzero(tn);
741 set_reached(!cstmt->c_maybe_endless || cstmt->c_break);
756 cstmt->c_loop = true;
762 if (cstmt->c_continue)
769 cstmt->c_maybe_endless = constant_is_nonzero(tn);
770 if (!cstmt->c_maybe_endless && cstmt->c_continue)
777 if (cstmt->c_maybe_endless)
779 if (cstmt->c_break)
799 cstmt->c_loop = true;
806 cstmt->c_for_expr3_mem = expr_save_memory();
807 cstmt->c_for_expr3 = tn3;
808 cstmt->c_for_expr3_pos = curr_pos;
809 cstmt->c_for_expr3_csrc_pos = csrc_pos;
819 cstmt->c_maybe_endless = tn2 == NULL || is_nonzero(tn2);
829 if (cstmt->c_continue)
832 expr_restore_memory(cstmt->c_for_expr3_mem);
833 tnode_t *tn3 = cstmt->c_for_expr3;
837 curr_pos = cstmt->c_for_expr3_pos;
838 csrc_pos = cstmt->c_for_expr3_csrc_pos;
855 set_reached(cstmt->c_break || !cstmt->c_maybe_endless);
871 control_statement *cs = cstmt;
892 for (cs = cstmt; cs != NULL && !cs->c_loop; cs = cs->c_surrounding)
953 control_statement *cs = cstmt;