Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abhishek Anand
Iris
Commits
17b5bd9a
Commit
17b5bd9a
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add notations for some of the new heap_lang binary operators.
parent
4782352f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/heap_lang/notation.v
+15
-10
15 additions, 10 deletions
theories/heap_lang/notation.v
with
15 additions
and
10 deletions
theories/heap_lang/notation.v
+
15
−
10
View file @
17b5bd9a
...
@@ -58,16 +58,21 @@ Notation "()" := LitUnit : val_scope.
...
@@ -58,16 +58,21 @@ Notation "()" := LitUnit : val_scope.
Notation
"! e"
:=
(
Load
e
%
E
)
(
at
level
9
,
right
associativity
)
:
expr_scope
.
Notation
"! e"
:=
(
Load
e
%
E
)
(
at
level
9
,
right
associativity
)
:
expr_scope
.
Notation
"'ref' e"
:=
(
Alloc
e
%
E
)
Notation
"'ref' e"
:=
(
Alloc
e
%
E
)
(
at
level
30
,
right
associativity
)
:
expr_scope
.
(
at
level
30
,
right
associativity
)
:
expr_scope
.
Notation
"- e"
:=
(
UnOp
MinusUnOp
e
%
E
)
Notation
"- e"
:=
(
UnOp
MinusUnOp
e
%
E
)
:
expr_scope
.
(
at
level
35
,
right
associativity
)
:
expr_scope
.
Notation
"e1 + e2"
:=
(
BinOp
PlusOp
e1
%
E
e2
%
E
)
Notation
"e1 + e2"
:=
(
BinOp
PlusOp
e1
%
E
e2
%
E
)
:
expr_scope
.
(
at
level
50
,
left
associativity
)
:
expr_scope
.
Notation
"e1 - e2"
:=
(
BinOp
MinusOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 - e2"
:=
(
BinOp
MinusOp
e1
%
E
e2
%
E
)
Notation
"e1 * e2"
:=
(
BinOp
MultOp
e1
%
E
e2
%
E
)
:
expr_scope
.
(
at
level
50
,
left
associativity
)
:
expr_scope
.
Notation
"e1 `quot` e2"
:=
(
BinOp
QuotOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 ≤ e2"
:=
(
BinOp
LeOp
e1
%
E
e2
%
E
)
(
at
level
70
)
:
expr_scope
.
Notation
"e1 `rem` e2"
:=
(
BinOp
RemOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 < e2"
:=
(
BinOp
LtOp
e1
%
E
e2
%
E
)
(
at
level
70
)
:
expr_scope
.
Notation
"e1 ≪ e2"
:=
(
BinOp
ShiftLOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 = e2"
:=
(
BinOp
EqOp
e1
%
E
e2
%
E
)
(
at
level
70
)
:
expr_scope
.
Notation
"e1 ≫ e2"
:=
(
BinOp
ShiftROp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 ≠ e2"
:=
(
UnOp
NegOp
(
BinOp
EqOp
e1
%
E
e2
%
E
))
(
at
level
70
)
:
expr_scope
.
Notation
"e1 ≤ e2"
:=
(
BinOp
LeOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 < e2"
:=
(
BinOp
LtOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 = e2"
:=
(
BinOp
EqOp
e1
%
E
e2
%
E
)
:
expr_scope
.
Notation
"e1 ≠ e2"
:=
(
UnOp
NegOp
(
BinOp
EqOp
e1
%
E
e2
%
E
))
:
expr_scope
.
Notation
"~ e"
:=
(
UnOp
NegOp
e
%
E
)
(
at
level
75
,
right
associativity
)
:
expr_scope
.
Notation
"~ e"
:=
(
UnOp
NegOp
e
%
E
)
(
at
level
75
,
right
associativity
)
:
expr_scope
.
(* The unicode ← is already part of the notation "_ ← _; _" for bind. *)
(* The unicode ← is already part of the notation "_ ← _; _" for bind. *)
Notation
"e1 <- e2"
:=
(
Store
e1
%
E
e2
%
E
)
(
at
level
80
)
:
expr_scope
.
Notation
"e1 <- e2"
:=
(
Store
e1
%
E
e2
%
E
)
(
at
level
80
)
:
expr_scope
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment