Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
8ebe1485
Commit
8ebe1485
authored
Jun 11, 2019
by
Robbert Krebbers
Browse files
Add notation for pointer arithmetic to heap_lang.
parent
47f304f6
Pipeline
#17347
passed with stage
in 13 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
theories/heap_lang/notation.v
View file @
8ebe1485
...
...
@@ -60,6 +60,7 @@ Notation "'ref' e" := (Alloc e%E) (at level 10) : expr_scope.
Notation
"- e"
:
=
(
UnOp
MinusUnOp
e
%
E
)
:
expr_scope
.
Notation
"e1 + e2"
:
=
(
BinOp
PlusOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 +ₗ e2"
:
=
(
BinOp
OffsetOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 - e2"
:
=
(
BinOp
MinusOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 * e2"
:
=
(
BinOp
MultOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 `quot` e2"
:
=
(
BinOp
QuotOp
e1
%
E
e2
%
E
)
:
expr_scope
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment