Searched refs:last_stmt (Results 1 – 4 of 4) sorted by relevance
684 struct statement *last_stmt; in split_then_return_last() local686 last_stmt = last_ptr_list((struct ptr_list *)stmt->stmts); in split_then_return_last()687 if (!last_stmt) in split_then_return_last()692 if (tmp == last_stmt) { in split_then_return_last()697 return last_stmt; in split_then_return_last()718 struct statement *last_stmt; in __handle_expr_statement_assigns() local722 last_stmt = split_then_return_last(stmt); in __handle_expr_statement_assigns()723 if (!last_stmt) { in __handle_expr_statement_assigns()728 fake_expr_stmt.pos = last_stmt->pos; in __handle_expr_statement_assigns()731 fake_expr_stmt.statement = last_stmt; in __handle_expr_statement_assigns()
1038 struct statement *last_stmt; in get_last_expr_from_expression_stmt() local1048 last_stmt = last_ptr_list((struct ptr_list *)stmt->stmts); in get_last_expr_from_expression_stmt()1049 if (!last_stmt) in get_last_expr_from_expression_stmt()1051 if (last_stmt->type == STMT_LABEL) in get_last_expr_from_expression_stmt()1052 last_stmt = last_stmt->label_statement; in get_last_expr_from_expression_stmt()1053 if (last_stmt->type != STMT_EXPRESSION) in get_last_expr_from_expression_stmt()1055 return last_stmt->expression; in get_last_expr_from_expression_stmt()
2078 struct statement *stmt, *last_stmt; in strip_expr_statement() local2090 last_stmt = last_ptr_list((struct ptr_list *)stmt->stmts); in strip_expr_statement()2091 if (!last_stmt || last_stmt->type == STMT_LABEL) in strip_expr_statement()2092 last_stmt = last_stmt->label_statement; in strip_expr_statement()2093 if (!last_stmt || last_stmt->type != STMT_EXPRESSION) in strip_expr_statement()2095 return strip_expr(last_stmt->expression); in strip_expr_statement()
191 struct statement *last_stmt = NULL; in inlinable() local206 last_stmt = last_ptr_list((struct ptr_list *)sym->stmt->stmts); in inlinable()213 last_stmt = last_ptr_list((struct ptr_list *)sym->inline_stmt->stmts); in inlinable()216 if (!last_stmt) in inlinable()220 if (last_stmt->pos.line > sym->pos.line + inline_budget) in inlinable()