Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rice Wine
Iris
Commits
58ae11ed
Commit
58ae11ed
authored
Apr 07, 2019
by
Robbert Krebbers
Browse files
Change the level of `ref` so it's the same as application.
parent
787636f5
Changes
3
Show whitespace changes
Inline
Sidebyside
tests/heap_lang.ref
View file @
58ae11ed
...
@@ 86,6 +86,14 @@ Tactic failure: wp_pure: cannot find ?y in (Var "x") or
...
@@ 86,6 +86,14 @@ Tactic failure: wp_pure: cannot find ?y in (Var "x") or
∗
∗
WP "x" {{ _, True }}
WP "x" {{ _, True }}
1 subgoal
Σ : gFunctors
heapG0 : heapG Σ
============================
∗
WP let: "f" := λ: "x", "x" in ref ("f" #10) {{ _, True }}
1 subgoal
1 subgoal
Σ : gFunctors
Σ : gFunctors
...
...
tests/heap_lang.v
View file @
58ae11ed
...
@@ 149,6 +149,12 @@ End tests.
...
@@ 149,6 +149,12 @@ End tests.
Section
printing_tests
.
Section
printing_tests
.
Context
`
{!
heapG
Σ
}.
Context
`
{!
heapG
Σ
}.
Lemma
ref_print
:
True

∗
WP
let
:
"f"
:
=
(
λ
:
"x"
,
"x"
)
in
ref
(
"f"
#
10
)
{{
_
,
True
}}.
Proof
.
iIntros
"_"
.
Show
.
Abort
.
(* These terms aren't even closed, but that's not what this is about. The
(* These terms aren't even closed, but that's not what this is about. The
length of the variable names etc. has been carefully chosen to trigger
length of the variable names etc. has been carefully chosen to trigger
particular behavior of the Coq pretty printer. *)
particular behavior of the Coq pretty printer. *)
...
...
theories/heap_lang/notation.v
View file @
58ae11ed
...
@@ 59,8 +59,7 @@ Notation "'match:' e0 'with' 'InjR' x1 => e1  'InjL' x2 => e2 'end'" :=
...
@@ 59,8 +59,7 @@ Notation "'match:' e0 'with' 'InjR' x1 => e1  'InjL' x2 => e2 'end'" :=
Notation
"()"
:
=
LitUnit
:
val_scope
.
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
10
)
:
expr_scope
.
(
at
level
30
,
right
associativity
)
:
expr_scope
.
Notation
" e"
:
=
(
UnOp
MinusUnOp
e
%
E
)
:
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
PlusOp
e1
%
E
e2
%
E
)
:
expr_scope
.
...
...
Write
Preview
Markdown
is supported
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