A preprocessor identifies the event procedures used by the program, including the entry point and the event associated with each of the event procedures, and the AVPE executes each of the event procedures used by the program to analyze the behaviors of those event procedures and hence of the P-code program.