// print a run as witness of the given TPDA if the language is non-empty
// print a run as witness of the given TPDA if the language is non-empty
void runCGPP::print() {
void runCGPP::print() {
short int lt = 0, ct=0; // lt : last timestamps, ct : current time stamps
short int lt = 0, ct=0; // lt : last timestamps, ct : current time stamps
cout << endl << "A run of the automation as a witness for the language to be non-empty.\nThe run given as a sequence of pairs (Transition, Time stamp) : " << endl;
cout << endl << "A run of the automation as a witness for the language to be non-empty.\nThe run given as a sequence of pairs (Transition, Time stamp) : " << endl;
...
@@ -979,8 +1026,8 @@ void runCGPP::print() {
...
@@ -979,8 +1026,8 @@ void runCGPP::print() {
}
}
cout << endl << endl;
cout << endl << endl;
}
}
*/
*/
// return a backtracking state with the info given in the parameters
// return a backtracking state with the info given in the parameters
trackZone*getTrackZone(chart,intl,intr){
trackZone*getTrackZone(chart,intl,intr){
...
@@ -994,10 +1041,10 @@ trackZone* getTrackZone(char t, int l, int r) {
...
@@ -994,10 +1041,10 @@ trackZone* getTrackZone(char t, int l, int r) {
}
}
/*
/*
// get the run of the timed system
// get the run of the timed system
// if sm == "", this means. we are backtracking from the state reside in i-th index of main vector 'allStates'
// if sm == "", this means. we are backtracking from the state reside in i-th index of main vector 'allStates'
// if sm != "", then sm string is the key for shuffle operation of the state reside in i-th index of allStates
// if sm != "", then sm string is the key for shuffle operation of the state reside in i-th index of allStates
runCGPP* printRun(int i) {
runCGPP* printRun(int i) {
stateGCPP* vs; // tree automata state variable
stateGCPP* vs; // tree automata state variable
trackCGPP *bp; // back tracking state
trackCGPP *bp; // back tracking state
...
@@ -1035,8 +1082,8 @@ runCGPP* printRun(int i) {
...
@@ -1035,8 +1082,8 @@ runCGPP* printRun(int i) {
return rs;
return rs;
}
}
}
}
*/
*/
// return true iff language recognized by the TPDA is empty
// return true iff language recognized by the TPDA is empty