Skip to content

Commit 6170630

Browse files
authored
Merge pull request #1752 from GaloisInc/heapster-docfixes
Minor Heapster docfixes
2 parents 727fccb + abc33c3 commit 6170630

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

heapster-saw/doc/Permissions.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ In this document, we use the following metavariables to refer to different sorts
1313
`sh` | Shape expression
1414
`l` | Lifetime expression
1515
`p` | Value permission
16-
17-
16+
17+
1818

1919
Value Types
2020
================
@@ -71,8 +71,8 @@ In addition to the above expressions, we also have shape expressions, which we s
7171
| `sh1 orsh sh2` | `llvmshape w` | A disjunctive shape. `sh1` and `sh2` need not have the same size. |
7272
| `sh1 ; sh2` | `llvmshape w` | A sequence of two shapes |
7373
| `[l]ptrsh(rw,sh)` | `llvmshape w` | A shape for a pointer to another memory block, i.e. a memblock permission, with a given shape. This memblock permission will have the same read/write and lifetime modalities as the memblock permission containing this pointer shape, unless they are specifically overridden by the pointer shape; i.e., we have that `[l]memblock(rw,off,len,[l']ptrsh(rw',sh)) = [l]memblock(rw,off,len, fieldsh([l']memblock(rw',0,len(sh),sh)))`, where `rw'` and/or `l'` can be `Nothing`, in which case they default to `rw` and `l`, respectively. |
74-
| `fieldsh(p)` | `llvmshape w` | A shape for a single pointer field, given a permission that acts on a pointer of unknown size. |
75-
| `fieldsh(sz,p)` | `llvmshape w` | Like `fieldsh(p)`, but where the permission acts on a pointer of size `sz`. |
74+
| `fieldsh(sz,p)` | `llvmshape w` | A shape for a single pointer field, given a permission `p` that acts on a pointer of size `sz`. |
75+
| `fieldsh(p)` | `llvmshape w` | Equivalent to `fieldsh(w,p)`. |
7676
| `arraysh(s,len,sh)` | `llvmshape w` | A shape for an array with the given stride, length (in number of elements = total length / stride), and fields `sh` |
7777
| `exsh x:a.sh` | `llvmshape w` | An existential shape |
7878
| `falsesh` | `llvmshape w` | The unsatisfiable or contradictory shape |

src/SAWScript/Interpreter.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4060,15 +4060,15 @@ primitives = Map.fromList
40604060
"HeapsterEnv -> String -> String -> String -> TopLevel HeapsterEnv"
40614061
(bicVal heapster_assume_fun)
40624062
Experimental
4063-
[ "heapster_assume_fun nm perms trans assumes that function nm has"
4063+
[ "heapster_assume_fun env nm perms trans assumes that function nm has"
40644064
, " permissions perms and translates to the SAW core term trans"
40654065
]
40664066

40674067
, prim "heapster_assume_fun_rename"
40684068
"HeapsterEnv -> String -> String -> String -> String -> TopLevel HeapsterEnv"
40694069
(bicVal heapster_assume_fun_rename)
40704070
Experimental
4071-
[ "heapster_assume_fun_rename nm nm_t perms trans assumes that function nm"
4071+
[ "heapster_assume_fun_rename env nm nm_to perms trans assumes that function nm"
40724072
, " has permissions perms and translates to the SAW core term trans. If"
40734073
, " trans is not an identifier then it is bound to the defined name nm_to."
40744074
]
@@ -4078,15 +4078,15 @@ primitives = Map.fromList
40784078
(bicVal heapster_assume_fun_rename_prim)
40794079
Experimental
40804080
[
4081-
"heapster_assume_fun_rename_prim nm nm_to perms assumes that function nm"
4081+
"heapster_assume_fun_rename_prim env nm nm_to perms assumes that function nm"
40824082
, " has permissions perms as a primitive."
40834083
]
40844084

40854085
, prim "heapster_assume_fun_multi"
40864086
"HeapsterEnv -> String -> [(String, String)] -> TopLevel HeapsterEnv"
40874087
(bicVal heapster_assume_fun_multi)
40884088
Experimental
4089-
[ "heapster_assume_fun_multi nm [(perm1, trans1), ...] assumes that function"
4089+
[ "heapster_assume_fun_multi env nm [(perm1, trans1), ...] assumes that function"
40904090
, " nm can be typed with 0 or more permissions, each with the corresponding"
40914091
, " translation to SAW core"
40924092
]

0 commit comments

Comments
 (0)