Program generation device, program production method, and program
AssigneePanasonic Corporation
InventorsAkira Tanaka, Hiroyuki Morishita, Akihiko Inoue
Life of this patent
Estimating the term…
Loading patent…
AssigneePanasonic Corporation
InventorsAkira Tanaka, Hiroyuki Morishita, Akihiko Inoue
Estimating the term…
A program generation apparatus references a source program including a loop for executing a block N times (N≧2) and having such dependence that a variable defined in a statement in the block pertaining to ith execution (1≦i<N) is referenced by a statement in the block pertaining to jth execution (i<j≦N), calculates equivalent representations of variables in the block pertaining to the ith execution and the block pertaining to any other execution than the ith execution, specifies, with respect to each representation of a target variable causing the dependence, a representation of a variable not causing the dependence that is equivalent to the representation of the target variable, and generates a program being for executing the block M times (M≦N) and including a statement including the specified representation in place of each representation of the target variable.
A program generation apparatus for generating a program by referencing a source program including a loop for executing a block comprising one or more statements N times (N≧2), the source program having such dependence that a variable defined in a statement in the block pertaining to an ith execution (1≦i<N) is referenced by a statement in the block pertaining to a jth execution (i<j≦N), the program generation apparatus comprising:
A program generation method used in a program generation apparatus for generating a program by referencing a source program including a loop for executing a block comprising one or more statements N times (N≧2), the source program having such dependence that a variable defined in a statement in the block pertaining to an ith execution (1≦i<N) is referenced by a statement in the block pertaining to a jth execution (i<j≦N), the program generation apparatus including a calculation unit, a specification unit and a generation unit, the program generation method comprising the steps of:
A non-transitory computer-readable recording medium having a program recorded thereon, the program for causing a processor in a program generation apparatus to perform a program generation processing method, the program generation apparatus being for generating a program by referencing a source program including a loop for executing a block comprising one or more statements N times (N≧2), the source program having such dependence that a variable defined in a statement in the block pertaining to an ith execution (1≦i<N) is referenced by a statement in the block pertaining to a jth execution (i<j≦N), the program generation processing method comprising the steps of:
Dependencies are inferred from the claim text.