Check if a conditional expression is statically well-formed.
(check-cond-expression branches expr ctxt) → result
We check every branch; see check-branch-list. In addition, we generate a proof obligation saying that the conditions are exhaustive.