Which fact must be checked when a loop is entered?
What does the partial-correctness triple {P} C {Q} promise?
The valid triples {x = 0} x := x + 1 {x = 1} and {x = 2} y := x {y = 2} can be composed directly using those intermediate assertions.
Circle one: True False
Let m >= 1 be a fixed integer. Run j := 1; while j < m do j := j + 1. Invariant j >= 1 is preserved but cannot prove j = m at exit. Which repair should be checked?
Over mathematical integers, start with x = 4 and run x := x + 3; y := 2*x. Which intermediate and final facts justify the composition?
A verification-condition generator sends a formula to a solver, which returns unknown. What follows?
The loop while true do skip preserves invariant true. Does that establish termination?
Over mathematical integers, what is the weakest precondition of x := x + 4 for postcondition x >= 11?