Proof using.
intros.
unfold handleClientRequest in *.
repeat break_match; find_inversion; simpl in *; intuition.
Qed.

(* Specifications: *)
Theorem handleAppendEntries_term_votedFor :
forall h st t n pli plt es ci st' ps h',
handleAppendEntries h st t n pli plt es ci = (st', ps) ->
votedFor st' = Some h' ->
currentTerm st' = currentTerm st /\ votedFor st' = votedFor st.