Claims
- 1. A program transformation method of transforming a functional program having at least a conditional expression, by applying a procedure to said functional program using information of an operating environment represented by a predicate logic formula, said procedure being carried out by a computer having a memory, a central processing unit and an input/output device, said method comprising the steps of:
- (a1) determining by said computer whether an expression of said functional program is a conditional expression;
- (a2) if said expression of said functional program is a conditional expression, determining by said computer whether a judgement condition contained in said conditional expression or a negation of said judgement condition is provable using said information;
- (a3) if said judgement condition is provable in step (a2), applying by said computer said procedure to a true part of said judgment condition using said information and replacing by said computer said conditional expression with a result of applying said procedure to said true part of said judgement condition;
- (a4) if said negation of said judgement condition is provable in step (a2), applying by said computer said procedure to said false part of said judgment condition using said information and replacing by said computer said conditional expression with a result of applying said procedure to said false part of said judgement condition; and
- (a5) if neither said judgement condition and said negation of said judgement condition are provable in step (a2), applying by said computer said procedure to said true part of said judgement condition using a logical product of said information and said judgment condition, applying by said computer said procedure to said false part of said judgment condition using a logical product of said information and said negation of said judgement condition and replacing said true part of said judgement condition and said false part of said judgement condition by a result of applying said procedure to said true part of said judgement condition using said logical product and a result of applying said procedure to said false part of said judgement condition using said logical product respectively.
Priority Claims (1)
Number |
Date |
Country |
Kind |
63-91554 |
Apr 1988 |
JPX |
|
Parent Case Info
This application is a continuation of application Ser. No. 258,160, filed on Oct. 14, 1988, now abandoned.
US Referenced Citations (5)
Non-Patent Literature Citations (2)
Entry |
"Computer, Systems, Controls 2", No. 5, 1971, pp. 45-50. |
Kahn, K. M.: Partial Evaluation of Lisp Written in Prolog, UPMAIL Report Department of Computer Science, Uppsala University, Uppsala, Sweden, Mar. 11, 1982. |
Continuations (1)
|
Number |
Date |
Country |
Parent |
258160 |
Oct 1988 |
|