Questions: Floyd-Hoare Verification

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

What is a verification condition in the context of Floyd-Hoare verification?

AA runtime check inserted into the program to detect violations
BA logical formula derived from program annotations that, if valid, guarantees the program meets its specification
CA type-checking constraint that ensures the program compiles
DA test case that exercises a particular code path
Question 2 True / False

In Floyd-Hoare verification, the human must supply loop invariants because verification condition generation cannot automatically discover them.

TTrue
FFalse
Question 3 Short Answer

A Floyd-Hoare proof of a 50-line function with 3 loops has all its verification conditions discharged by an SMT solver. What has been proven, and what has NOT been proven?

Think about your answer, then reveal below.