60 likes | 184 Views
Exercise 6 Testing. Exercise - Testing. The PDR document , The FTP document. Correctness Proof. Correctness proof for k = 0; g = 1; while ( n k ) { k = k + 1; g = g * n; }. Correctness Proof (Cont’d). Draw a flow diagram, Any assumptions? Assessments, Loop invariant ,
E N D
Exercise 6 Testing
Exercise - Testing • The PDR document , • The FTP document.
Correctness Proof • Correctness proof for • k = 0;g = 1; while ( n k ){ k = k + 1; g = g * n;}
Correctness Proof (Cont’d) • Draw a flow diagram, • Any assumptions? • Assessments, • Loop invariant , • Prove by induction.
Exercise 6 Testing The End