- File:
-
- 1 edited
-
src/ControlStruct/ChooseMutator.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/ChooseMutator.cc
r4162aea9 r843054c2 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : Wed Jun 03 15:30:20201513 // Update Count : 511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 19 15:31:39 2015 13 // Update Count : 2 14 14 // 15 15 … … 44 44 std::list< Statement * > &stmts = caseStmt->get_statements(); 45 45 46 // the difference between switch and choose is that switch has an implicit fallthrough47 // to the next case, whereas choose has an implicit break at the end of the current case.48 // thus to transform a choose statement into a switch, we only need to insert breaks at the49 // end of any case that doesn't already end in a break and that doesn't end in a fallthru50 51 46 if ( insideChoose ) { 52 47 BranchStmt *posBrk;
Note:
See TracChangeset
for help on using the changeset viewer.