Skip to content

Commit

Permalink
Further clang-format backends/p4tools/modules/smith/common/statements…
Browse files Browse the repository at this point in the history
….cpp

Signed-off-by: zzmic <100326374+zzmic@users.noreply.github.com>
  • Loading branch information
zzmic committed Jul 3, 2024
1 parent 2f00f23 commit 2d48c85
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions backends/p4tools/modules/smith/common/statements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,18 @@ IR::Statement *StatementGenerator::genStatement(bool is_in_func) {
if (is_in_func) {
pctExit = 0;
}
std::vector<int64_t> percent = {PCT.STATEMENT_SWITCH, PCT.STATEMENT_ASSIGNMENTORMETHODCALL,
PCT.STATEMENT_IF, PCT.STATEMENT_RETURN, pctExit,
PCT.STATEMENT_BLOCK,
// Add the for-loop statement and
// the for-in-loop statement generation percentages.
PCT.STATEMENT_FOR, PCT.STATEMENT_FOR_IN,};
std::vector<int64_t> percent = {
PCT.STATEMENT_SWITCH,
PCT.STATEMENT_ASSIGNMENTORMETHODCALL,
PCT.STATEMENT_IF,
PCT.STATEMENT_RETURN,
pctExit,
PCT.STATEMENT_BLOCK,
// Add the for-loop statement and
// the for-in-loop statement generation percentages.
PCT.STATEMENT_FOR,
PCT.STATEMENT_FOR_IN,
};
IR::Statement *stmt = nullptr;
bool useDefaultStmt = false;

Expand Down

0 comments on commit 2d48c85

Please sign in to comment.