Skip to content

Commit 52a4962

Browse files
proux01Lysxia
authored andcommitted
1 parent 163b651 commit 52a4962

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

secure_example/LabelledAsmCombinators.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ Definition app_bks {A B C D : nat} (ab : bks A B) (cd : bks C D)
8686
end.
8787

8888
(** Simple combinator to build a [block] from its instructions and branch operation. *)
89-
Fixpoint after {A: Type} (is : list instr) (bch : branch A) : block A :=
90-
match is with
89+
Fixpoint after {A: Type} (si : list instr) (bch : branch A) : block A :=
90+
match si with
9191
| nil => bbb bch
92-
| i :: is => bbi i (after is bch)
92+
| i :: si => bbi i (after si bch)
9393
end.
9494

9595
(* SAZ: rationalize the names of the combinators? *)

theories/Basics/Basics.v

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ Polymorphic Class MonadIter (M : Type -> Type) : Type :=
104104
#[global] Instance MonadIter_stateT {M S} {MM : Monad M} {AM : MonadIter M}
105105
: MonadIter (stateT S M) :=
106106
fun _ _ step i => mkStateT (fun s =>
107-
iter (fun is =>
108-
let i := fst is in
109-
let s := snd is in
110-
is' <- runStateT (step i) s ;;
111-
ret match fst is' with
112-
| inl i' => inl (i', snd is')
113-
| inr r => inr (r, snd is')
107+
iter (fun si =>
108+
let i := fst si in
109+
let s := snd si in
110+
si' <- runStateT (step i) s ;;
111+
ret match fst si' with
112+
| inl i' => inl (i', snd si')
113+
| inr r => inr (r, snd si')
114114
end) (i, s)).
115115

116116
#[global] Polymorphic Instance MonadIter_stateT0 {M S} {MM : Monad M} {AM : MonadIter M}

tutorial/AsmCombinators.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ Definition app_bks {A B C D : nat} (ab : bks A B) (cd : bks C D)
7979
end.
8080

8181
(** Simple combinator to build a [block] from its instructions and branch operation. *)
82-
Fixpoint after {A: Type} (is : list instr) (bch : branch A) : block A :=
83-
match is with
82+
Fixpoint after {A: Type} (si : list instr) (bch : branch A) : block A :=
83+
match si with
8484
| nil => bbb bch
85-
| i :: is => bbi i (after is bch)
85+
| i :: si => bbi i (after si bch)
8686
end.
8787

8888
(* SAZ: rationalize the names of the combinators? *)

0 commit comments

Comments
 (0)