Skip to content

Commit

Permalink
another attempt at setting up the CI
Browse files Browse the repository at this point in the history
This is a PR-specific hack and should be replaced once Iris is a standard dependency.
  • Loading branch information
mansky1 committed Mar 19, 2024
1 parent 5dc8fd7 commit 3eb4c5e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/coq-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ jobs:
opam install -y ${{ matrix.coq_version == 'dev' && 'coq-flocq' || matrix.bit_size == 32 && 'coq-compcert-32.3.13' || 'coq-compcert.3.13' }}
# Required by test2
opam install -y coq-ext-lib
echo ${{ github.ref_name }}
opam install -y ${{ github.ref_name == 'vst_on_iris' && 'coq-iris.dev.2023-05-31.0.a22a81c2' || '' }}
if [ ${{ github.ref_name }} = '755/merge']
then
opam repo add -y iris-dev https://gitlab.mpi-sws.org/iris/opam.git
opam install -y coq-iris.dev.2023-05-31.0.a22a81c2
fi
endGroup
# See https://github.com/coq-community/docker-coq-action/tree/v1#permissions
before_script: |
Expand Down
1 change: 1 addition & 0 deletions floyd/io_events.v
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Lemma has_ext_ITREE : forall tr, has_ext tr ⊢ ITREE tr.
Proof.
intro; unfold ITREE.
Exists tr; entailer!.
reflexivity.
Qed.

Lemma ITREE_impl' : forall tr tr', sutt eq tr' tr ->
Expand Down
5 changes: 2 additions & 3 deletions progs64/verif_io.v
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,9 @@ Proof.
forward.
forward_while (∃ i : int, PROP (Int.signed i = -1 \/ Int.signed i = Byte.unsigned c) LOCAL (temp _r (Vint i); temp _c (Vubyte c))
SEP (ITREE (if eq_dec (Int.signed i) (-1) then (r <- write stdout c;; k) else k))).
- Exists (Int.neg (Int.repr 1)); entailer!.
- Exists (Int.neg (Int.repr 1)); simpl; entailer!.
- entailer!.
- subst; rewrite -> Int.signed_repr by rep_lia.
rewrite -> if_true by auto.
- subst; rewrite -> if_true by auto.
forward_call (c, k).
Intros i.
forward.
Expand Down

0 comments on commit 3eb4c5e

Please sign in to comment.