The document demonstrates the rule of sequential composition for weakest precondition calculus. It shows that the weakest precondition of a sequential composition of statements S1;S2 with respect to a postcondition Q is equal to the weakest precondition of S1 with respect to the weakest precondition of S2 with respect to Q. It then works through two examples of applying the rule to calculate weakest preconditions.
The document demonstrates the rule of sequential composition for weakest precondition calculus. It shows that the weakest precondition of a sequential composition of statements S1;S2 with respect to a postcondition Q is equal to the weakest precondition of S1 with respect to the weakest precondition of S2 with respect to Q. It then works through two examples of applying the rule to calculate weakest preconditions.
The document demonstrates the rule of sequential composition for weakest precondition calculus. It shows that the weakest precondition of a sequential composition of statements S1;S2 with respect to a postcondition Q is equal to the weakest precondition of S1 with respect to the weakest precondition of S2 with respect to Q. It then works through two examples of applying the rule to calculate weakest preconditions.