Which of the following informal conditions does not need to


To express a general rule for proving correctness of a "while" loop, we used the concept of a loop invariant. Which of the following informal conditions does NOT need to hold of a loop invariant for that rule to apply?

A. The overall precondition implies the loop invariant

B. The loop invariant implies that the loop test expression is true

C. Whenever the loop test expression is true, running the loop body preserves the loop invariant

D. Whenever the loop test expression is false, the loop invariant implies the overall postcondition

Solution Preview :

Prepared by a verified Expert
Business Management: Which of the following informal conditions does not need to
Reference No:- TGS02775968

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)