The Weakest Precondition wp


Again, the axiomatic specification of the semantics of the language construct C is of the form
     {P} C {Q}
where P and Q are assertions. Unfortunately, such a representation of the action of C is not unique and may not completely specify all the actions of C. For example, What is needed is a way of associating to the construct C a general relation between precondition P and postcondition Q. The way to do this is to use the property that programming is a goal-oriented activity:
An activity that tends to achieve a goal and demonstrate it in subsequent actions.