
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Dr. Jim Sasaki, CS Dept, Illinois Institute of Chicago Problem 1 (20 points) Give a full total correctness proof outline for a program { n !! 0} S { x !=! n !/1!} { x !=! n !} where the invariant is obtained by replacing the constant 1 with a variable. Problem 2 (20 points) Find a reasonably simple precondition p for the program below; give a full proof outline that uses your" p. { p } a [ n ]!:=!0; a [ m ]!:=! x { a [ n ]!=!0} Problem 3 (20 points) Draw an evaluation graph for the following configuration. [Solve this for the general case, symbolically.] Is the program disjoint parallel? [Hint: Is “disjoint parallel” a syntactic or se- mantic property?]
**_Problem 4 (20 points)_** Give a full proof outline for { _n_ !>!0} [ _u_ !:=! _n_ !|| _v_ !:=! _n_ +1!|| _w_ !:=! _n_ +2] {0!