# Count the number of events
numOfActualEvents = CountEvents()
extractedEvents.write("while(true) {\n")
- extractedEvents.write("\tdef eventNumber = Verify.getInt(0,%d)\n" % (numOfActualEvents - 1))
+ # We use Verify.getIntFromList() instead of Verify.getInt() since we want to manipulate the
+ # choices in the list/set to implement POR
+ #extractedEvents.write("\tdef eventNumber = Verify.getInt(0,%d)\n" % (numOfActualEvents - 1))
+ extractedEvents.write("\tdef eventNumber = Verify.getIntFromList(0,")
+ for x in range (1, numOfActualEvents - 1):
+ extractedEvents.write("%d," % x)
+ extractedEvents.write("%d)\n" % (numOfActualEvents - 1))
extractedEvents.write("\tswitch(eventNumber) {\n")
counter = 0
indexApp1 = 0
extractedEvents.write("\n\t\t\tbreak\n")
counter = counter + 1
extractedEvents.write("\t}\n")
+ extractedEvents.write("\tprintln(\"\\nEVENT NUMBER: \" + eventNumber)\n");
extractedEvents.write("}\n")
def CheckIfOnlyTouchEvents():