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: analyzing the source code of a script; determining based on an analysis result whether a function definition portion is extracted; storing an association between a function name and the source code in a memory, when the function definition portion is extracted by the analysis; determining based on the analysis result whether a function calling part is extracted, when the function definition part is not extracted; determining whether an intermediate representation corresponding to the analysis result exists in the memory, when a function calling part is extracted; when it is determined that the intermediate representation does not exist in the memory, and when the function calling part is extracted: acquiring the source code corresponding to the function name of the function calling part from the memory, generating the intermediate representation by analyzing the acquired source code, adding the generated intermediate representation to the memory, executing the acquired source code, and storing an association between an intermediate code, acquired by executing the source code until an end of the source code, and the function name; and when it is determined that the intermediate representation does exist in the memory, and when the function calling part is extracted: executing the intermediate representation. analyzing the source code of a script; determining based on an analysis result whether a function definition portion is extracted; storing an association between a function name and the source code in a memory, when the function definition portion is extracted by the analysis; determining based on the analysis result whether a function calling part is extracted, when the function definition part is not extracted; determining whether an intermediate representation corresponding to the analysis result exists in the memory, when a function calling part is extracted; when it is determined that the intermediate representation does not exist in the memory, and when the function calling part is extracted: acquiring the source code corresponding to the function name of the function calling part from the memory, generating the intermediate representation by analyzing the acquired source code, adding the generated intermediate representation to the memory, executing the acquired source code, and storing an association between an intermediate code, acquired by executing the source code until an end of the source code, and the function name; and acquiring the source code corresponding to the function name of the function calling part from the memory, generating the intermediate representation by analyzing the acquired source code, adding the generated intermediate representation to the memory, executing the acquired source code, and storing an association between an intermediate code, acquired by executing the source code until an end of the source code, and the function name; and when it is determined that the intermediate representation does exist in the memory, and when the function calling part is extracted: executing the intermediate representation.