Patent ID: 8271954
Filing Date: 2012-09-18
Classification: G06F

Abstract:
1. A data saving method of processing results including an array element which is periodically saved when a computer executes a program, the data saving method comprising: analyzing a loop structure of the program from a source code of the program by the computer to detect a main loop of the program and a sub-loop included in the main loop; determining a point of entrance to the detected main loop as a checkpoint by the computer that is a point for saving data of the processing results; specifying the contents of the arithmetic process described in the detected main loop by the computer to select reference-first array elements which are array elements only referred to and defined after being referred to as checkpoint data to be saved at the checkpoint; and saving the selected reference-first array elements by the computer as the checkpoint data, wherein the contents of an arithmetic process in each of a plurality of sub-loops included in the detected main loop is detected at the analyzing; and when a reference sub-loop appears after a definition sub-loop appears and a subsequent definition sub-loop that is a sub-loop of an arithmetic process defining array elements further appears, the intersection of the complement of the sum of the array elements defined by every definition sub-loop and the sum of the array elements referred to by every reference sub-loop is identified as the reference-first array elements provided that all of the array elements defined by the subsequent definition sub-loops are included in all of the array elements defined by the definition sub-loop.