Skip to content

Commit

Permalink
Cleaning up the trusted compute file
Browse files Browse the repository at this point in the history
  • Loading branch information
JuneRousseau committed Jan 7, 2025
1 parent 8ce4dd2 commit c161a17
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 225 deletions.
6 changes: 6 additions & 0 deletions theories/cap_lang.v
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ Section opsem.
then Some (Nat.div (Z.to_nat oa) 2)
else Some (Nat.div (Z.to_nat (oa^-1)%f) 2).

Definition has_seal (ot : Z) (tid : TIndex) : Prop :=
match finz.of_z ot with
| Some ot => tid_of_otype ot = Some tid
| None => False
end.

Definition measure (m : Mem) (b e: Addr) :=
let instructions : list Word :=
map snd
Expand Down
Loading

0 comments on commit c161a17

Please sign in to comment.