Changes in src/ControlStruct/MLEMutator.cc [27de955:eb3261f]
- File:
-
- 1 edited
-
src/ControlStruct/MLEMutator.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/MLEMutator.cc
r27de955 reb3261f 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Jun 03 15:09:27201513 // Update Count : 17 012 // Last Modified On : Thu Jun 04 15:12:33 2015 13 // Update Count : 173 14 14 // 15 15 … … 52 52 bool labeledBlock = !(cmpndStmt->get_labels().empty()); 53 53 if ( labeledBlock ) { 54 Label brkLabel = generator->newLabel( );54 Label brkLabel = generator->newLabel("blockBreak"); 55 55 enclosingBlocks.push_back( Entry( cmpndStmt, brkLabel ) ); 56 56 } // if … … 75 75 Statement *MLEMutator::handleLoopStmt( LoopClass *loopStmt ) { 76 76 // remember this as the most recent enclosing loop, then mutate 77 // the body of the loop -- this will do SOMETHING with branch statements 77 // the body of the loop -- this will determine whether brkLabel 78 // and contLabel are used with branch statements 78 79 // and will recursively do the same to nested loops 79 80 Label brkLabel = generator->newLabel("loopBreak"); … … 86 87 assert ( e == loopStmt ); 87 88 88 // generate labels as needed 89 // this will take the necessary steps to add definitions of the previous 90 // two labels, if they are used. 89 91 loopStmt->set_body( mutateLoop( loopStmt->get_body(), e ) ); 90 92 enclosingLoops.pop_back();
Note:
See TracChangeset
for help on using the changeset viewer.