Question: Using the verification rules in the notes, list all the con - ditions that must be shown to be universally true in order to show
Using the verification rules in the notes, list all the con
ditions that must be shown to be universally true in order to show
that the following proof outline is partially correct. Perform all sub
stitutions. I.e state the condition using the substitution notation
when applicable and then restate it after doing the substitutions.
Assume state variables p and k are integers and that a is an array
of integers of length at least length M indexed from
A : M
p k :
B : p M k M k p aki in k ai
while p M k p do
C : p M k M k p i in p ai
if ap then
D : p M k M k p i in p ai
k : k
end if
E : p M k M k p aki in k ai
p : p
end while
F : k M k M aki in k ai
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
