Quiz. Weakest precondition for assert and assume [004r]

Answer the following:

  1. What's \(\texttt {wp}(\texttt {assert}(P), Q)\)
  2. What's \(\texttt {wp}(\texttt {assume}(P), Q)\)
  3. Given a statement \(s\), can we transform it into a statement \(s'\) such that: \[ \vDash \{P\}\ s\ \{Q\} \iff \{\top \}\ s'\ \{\top \} \]