Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
c
Commits
94f431da
Commit
94f431da
authored
Jun 30, 2018
by
Léon Gondelman
Browse files
extend vcgen with par.
parent
97c0d2c3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
theories/vcgen/tests/basics.v
View file @
94f431da
...
...
@@ -43,4 +43,23 @@ Section test.
Proof
.
iIntros
"**"
.
vcg_solver
.
auto
.
Qed
.
Lemma
test_par_1
(
l1
l2
:
loc
)
(
v1
v2
:
val
)
:
l1
↦
C
v1
-
∗
l2
↦
C
v2
-
∗
awp
(
∗ᶜ
♯
l1
|||
ᶜ
∗ᶜ
♯
l2
)
True
(
λ
w
,
⌜
w
=
(
v1
,
v2
)%
V
⌝
∗
l1
↦
C
v1
∗
l2
↦
C
v2
).
Proof
.
iIntros
"**"
.
vcg_solver
.
rewrite
Qp_half_half
.
eauto
with
iFrame
.
Qed
.
Lemma
test_par_2
(
l1
l2
:
loc
)
(
v1
v2
:
val
)
:
l1
↦
C
v1
-
∗
l2
↦
C
v2
-
∗
awp
(
(
♯
l1
=
ᶜ
a_ret
v2
)
|||
ᶜ
(
♯
l2
=
ᶜ
a_ret
v1
)
)
True
(
λ
w
,
⌜
w
=
(
v2
,
v1
)%
V
⌝
∗
l1
↦
C
[
LLvl
]
v2
∗
l2
↦
C
[
LLvl
]
v1
).
Proof
.
iIntros
"**"
.
vcg_solver
.
eauto
with
iFrame
.
Qed
.
(*TODO: test function call with multiple arguments *)
End
test
.
theories/vcgen/vcgen.v
View file @
94f431da
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment