Lines Matching refs:stmt
35 static int is_do_while_zero(struct statement *stmt) in is_do_while_zero() argument
37 if (!stmt->iterator_post_condition) in is_do_while_zero()
39 if (!expr_is_zero(stmt->iterator_post_condition)) in is_do_while_zero()
44 static void push_statement(struct statement_list **stack, struct statement *stmt) in push_statement() argument
46 add_ptr_list(stack, stmt); in push_statement()
56 struct statement *stmt; in inside_do_while_zero() local
58 stmt = last_ptr_list((struct ptr_list *)iterator_stack); in inside_do_while_zero()
59 return !!stmt; in inside_do_while_zero()
64 struct statement *stmt; in loop_is_macro() local
66 stmt = last_ptr_list((struct ptr_list *)iterator_stack); in loop_is_macro()
67 if (!stmt) in loop_is_macro()
69 if (get_macro_name(stmt->iterator_post_condition->pos)) in loop_is_macro()
74 static void match_stmt(struct statement *stmt) in match_stmt() argument
76 if (stmt->type != STMT_ITERATOR) in match_stmt()
79 if (is_do_while_zero(stmt)) { in match_stmt()
80 push_statement(&iterator_stack, stmt); in match_stmt()
85 static void match_stmt_after(struct statement *stmt) in match_stmt_after() argument
87 if (stmt->type != STMT_ITERATOR) in match_stmt_after()
103 static void match_continue(struct statement *stmt) in match_continue() argument
105 if (stmt->type != STMT_GOTO) in match_continue()
108 if (!stmt->goto_label || stmt->goto_label->type != SYM_NODE) in match_continue()
110 if (strcmp(stmt->goto_label->ident->name, "continue") != 0) in match_continue()