Changes in src/ControlStruct/MLEMutator.cc [6180274:4de48c5]
- File:
-
- 1 edited
-
src/ControlStruct/MLEMutator.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/MLEMutator.cc
r6180274 r4de48c5 9 9 // Author : Rodolfo G. Esteves 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Wed Feb 2 20:18:57 202213 // Update Count : 22 711 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Jan 22 11:50:00 2020 13 // Update Count : 223 14 14 // 15 15 … … 39 39 namespace { 40 40 bool isLoop( const MultiLevelExitMutator::Entry & e ) { 41 return dynamic_cast< While DoStmt * >( e.get_controlStructure() )41 return dynamic_cast< WhileStmt * >( e.get_controlStructure() ) 42 42 || dynamic_cast< ForStmt * >( e.get_controlStructure() ); 43 43 } … … 66 66 67 67 // break labels have to come after the statement they break out of, so mutate a statement, then if they inform us 68 // through the breakLabel field tha they need a place to jump to on a break statement, add the break label to the68 // through the breakLabel field that they need a place to jump to on a break statement, add the break label to the 69 69 // body of statements 70 70 void MultiLevelExitMutator::fixBlock( std::list< Statement * > &kids, bool caseClause ) { … … 136 136 } 137 137 } 138 assertf( false, "C FA internal error: could not find label '%s' on statement %s",138 assertf( false, "Could not find label '%s' on statement %s", 139 139 originalTarget.get_name().c_str(), toString( stmt ).c_str() ); 140 140 } … … 295 295 } 296 296 297 void MultiLevelExitMutator::premutate( While DoStmt * whileDoStmt ) {298 return prehandleLoopStmt( while DoStmt );297 void MultiLevelExitMutator::premutate( WhileStmt * whileStmt ) { 298 return prehandleLoopStmt( whileStmt ); 299 299 } 300 300 … … 303 303 } 304 304 305 Statement * MultiLevelExitMutator::postmutate( While DoStmt * whileDoStmt ) {306 return posthandleLoopStmt( while DoStmt );305 Statement * MultiLevelExitMutator::postmutate( WhileStmt * whileStmt ) { 306 return posthandleLoopStmt( whileStmt ); 307 307 } 308 308 … … 395 395 } 396 396 assert( ! enclosingControlStructures.empty() ); 397 assertf( dynamic_cast<SwitchStmt *>( enclosingControlStructures.back().get_controlStructure() ), 398 "CFA internal error: control structure enclosing a case clause must be a switch, but is: %s", 399 toCString( enclosingControlStructures.back().get_controlStructure() ) ); 397 assertf( dynamic_cast<SwitchStmt *>( enclosingControlStructures.back().get_controlStructure() ), "Control structure enclosing a case clause must be a switch, but is: %s", toCString( enclosingControlStructures.back().get_controlStructure() ) ); 400 398 if ( caseStmt->isDefault() ) { 401 399 if ( enclosingControlStructures.back().isFallDefaultUsed() ) {
Note:
See TracChangeset
for help on using the changeset viewer.