in code/4diac-integration/src/integration-test/resources/translator/basic/alg/statements/exit/cpp/Exit_out.cpp [40:61]
void FORTE_Exit::executeEvent(int pa_nEIID){
bool bTransitionCleared;
do {
bTransitionCleared = true;
switch(m_nECCState) {
case scm_nStateSTART:
if(1)
enterStateS2();
else
bTransitionCleared = false; //no transition cleared
break;
case scm_nStateS2:
bTransitionCleared = false; //no transition cleared
break;
default:
DEVLOG_ERROR("The state is not in the valid range! The state value is: %d. The max value can be: 2.", m_nECCState.operator TForteUInt16 ());
m_nECCState = 0; // 0 is always the initial state
break;
}
pa_nEIID = cg_nInvalidEventID; // we have to clear the event after the first check in order to ensure correct behavior
} while(bTransitionCleared);
}