Skip to content
Snippets Groups Projects
Commit f9181595 authored by Ralf Jung's avatar Ralf Jung
Browse files

(maybe) better symbol for Ptradd

parent 8dc969d0
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@
\newcommand{\unfold}{\langkw{unfold}\spac}
\newcommand{\HLOp}{\circledcirc}
\newcommand{\Ptradd}{\mathop{+_{\langkw{l}}}}
\newcommand{\Ptradd}{\mathop{+_{\langkw{L}}}}
\newcommand{\TT}{()}
\newcommand*\poison{\text{\Biohazard}}
......
......@@ -66,6 +66,10 @@ We will leave away the disambiguating subscript when it is clear from the contex
All of this lets us define $\ofval$ as simply applying the value injection (the very first syntactic form of $\Expr$), which makes a lot of things in Coq much simpler.
$\toval$ is defined recursively in the obvious way.
\langkw{Alloc} takes as first argument the number of heap cells to allocate (must be strictly positive), and as second argument the default value to use for these heap cells.
This lets one allocate arrays.
$\Ptradd$ implements pointer arithmetic (the left operand must be a pointer, the right operand an integer), which is used to access array elements.
For our set of states and observations, we pick
\begin{align*}
\loc \ni \Loc \eqdef{}& \integer \\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment