1. A non-transitory computer-readable recording medium having a program stored therein for causing a computer to execute a process of processing a program by repeating analysis and execution of a source code having been read, the process comprising: associating, when the source code includes a definition of a function, a function name identifying the function, with an intermediate representation of the source code corresponding to the function, to be stored; determining whether the intermediate representation having the function associated is stored, when calling the function; executing a procedure corresponding to the function, by using the intermediate representation, when the intermediate representation is stored; and generating the intermediate representation by analyzing the source code corresponding to the function, when the intermediate representation is not stored.