Patent ID: 8200469

Claim:
A computer system comprising a storage that stores a first procedure, the first procedure including an operation portion for performing multi-stage logical operations from an input stage to an output stage, the operation portion including, between the input stage and the output stage, operations having a plurality of inputs and operations of previous stages as sources of the plurality of inputs; and, a generator that generates a second procedure including a plurality of statements for executing the operations included in the operation portion, wherein the generator comprises: an analyzer that analyzes the operations of the operation portion stored in the storage from the output stage to the input stage and determines whether or not an analyzed operation is a first type of operation in which, as some of the plurality of inputs of the analyzed operation are determined, at least some of other inputs become don't cares; and an outputting means that outputs reconstructed statements for executing the analyzed operation if the analyzed operation is the first type of operation, the reconstructed statements including statements for executing one of source operations of inputs of the analyzed operation and for bypassing at least one of the source operations of inputs which becomes don't care by the executing of one of source operations, wherein the generator repeats analyzing of the analyzer and outputting of the outputting means, and reconfigures the operation portion of the first procedure from the output stage to the input stage with the reconstructed statements as the second procedure.