The present invention provides automatic program generation technology that enables
the generation of a diverse range of programs with fewer models. The automatic
program generation device of the present invention, which automatically generates
programs that will perform the predetermined processing, comprises a plurality
of data structure resolution units that respectively include a model program for
a corresponding data structure, wherein the model program includes resolution logic
for performing a setting peculiar to the predetermined processing; and a resolution
unit for generating a program for performing the predetermined processing by acquiring
resolution information relating to the setting peculiar to the predetermined processing
for resolution logic included in the model program in the data structure resolution
unit corresponding to a selected data structure and by synthesizing the model program
and the resolution information for the resolution logic. In the present invention,
model programs are prepared in correspondence with data structures. Compared with
the preparation of a model for each use and/or processing flow, it enables the
generation of a diverse range of programs with fewer models.