summaryrefslogtreecommitdiff
path: root/cheri/sail_latexcc/sailccfnsetCapOffset.tex
diff options
context:
space:
mode:
Diffstat (limited to 'cheri/sail_latexcc/sailccfnsetCapOffset.tex')
-rw-r--r--cheri/sail_latexcc/sailccfnsetCapOffset.tex6
1 files changed, 0 insertions, 6 deletions
diff --git a/cheri/sail_latexcc/sailccfnsetCapOffset.tex b/cheri/sail_latexcc/sailccfnsetCapOffset.tex
deleted file mode 100644
index f272f7d3..00000000
--- a/cheri/sail_latexcc/sailccfnsetCapOffset.tex
+++ /dev/null
@@ -1,6 +0,0 @@
-function #\hyperref[zsetCapOffset]{setCapOffset}#(c, offset) : (CapStruct, #\hyperref[zbits]{bits}#(64)) -> (bool, CapStruct) =
- let base : #\hyperref[zbits]{bits}#(64) = #\hyperref[ztozybits]{to\_bits}#(64, #\hyperref[zgetCapBase]{getCapBase}#(c)) in
- let newAddress : #\hyperref[zbits]{bits}#(64) = base + offset in
- let newCap = { c with address = newAddress } in
- let representable = #\hyperref[zfastRepCheck]{fastRepCheck}#(c, (newAddress - c.address)) in
- (representable, newCap)