Changeset 6180274 for src/ControlStruct


Ignore:
Timestamp:
Feb 2, 2022, 9:25:37 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
9dc08363
Parents:
4e7171f
Message:

more cleanup, make more function parameters const, remove more std::

Location:
src/ControlStruct
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ControlStruct/MLEMutator.cc

    r4e7171f r6180274  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Feb  1 09:26:28 2022
    13 // Update Count     : 225
     12// Last Modified On : Wed Feb  2 20:18:57 2022
     13// Update Count     : 227
    1414//
    1515
     
    136136                        }
    137137                }
    138                 assertf( false, "Could not find label '%s' on statement %s",
     138                assertf( false, "CFA internal error: could not find label '%s' on statement %s",
    139139                        originalTarget.get_name().c_str(), toString( stmt ).c_str() );
    140140        }
     
    395395                }
    396396                assert( ! enclosingControlStructures.empty() );
    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() ) );
     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() ) );
    398400                if ( caseStmt->isDefault() ) {
    399401                        if ( enclosingControlStructures.back().isFallDefaultUsed() ) {
  • src/ControlStruct/MultiLevelExit.cpp

    r4e7171f r6180274  
    1010// Created On       : Mon Nov  1 13:48:00 2021
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Feb  1 18:48:47 2022
    13 // Update Count     : 29
     12// Last Modified On : Wed Feb  2 20:19:24 2022
     13// Update Count     : 30
    1414//
    1515
     
    206206                }
    207207        }
    208         assertf( false, "Could not find label '%s' on statement %s",
     208        assertf( false, "CFA internal error: could not find label '%s' on statement %s",
    209209                         originalTarget.name.c_str(), toString( stmt ).c_str() );
    210210}
     
    406406        Entry & entry = enclosing_control_structures.back();
    407407        assertf( dynamic_cast< const SwitchStmt * >( entry.stmt ),
    408                          "Control structure enclosing a case clause must be a switch, but is: %s",
     408                         "CFA internal error: control structure enclosing a case clause must be a switch, but is: %s",
    409409                         toString( entry.stmt ).c_str() );
    410410        if ( mutStmt->isDefault() ) {
Note: See TracChangeset for help on using the changeset viewer.