Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Pierre Roux
Iris
Commits
d8276388
Commit
d8276388
authored
4 years ago
by
Simon Friis Vindum
Committed by
Robbert Krebbers
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Test that the dfrac notation prints correctly
parent
296dc646
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/heap_lang.ref
+28
-0
28 additions, 0 deletions
tests/heap_lang.ref
tests/heap_lang.v
+13
-3
13 additions, 3 deletions
tests/heap_lang.v
with
41 additions
and
3 deletions
tests/heap_lang.ref
+
28
−
0
View file @
d8276388
...
@@ -151,6 +151,34 @@ Tactic failure: wp_pure: cannot find ?y in (Var "x") or
...
@@ -151,6 +151,34 @@ Tactic failure: wp_pure: cannot find ?y in (Var "x") or
--------------------------------------∗
--------------------------------------∗
|={⊤}=> True
|={⊤}=> True
1 subgoal
Σ : gFunctors
heapG0 : heapG Σ
l : loc
v : val
Φ : val → iPropI Σ
============================
"Hl" : l ↦□ v
--------------------------------------□
"HΦ" : ▷ (True -∗ Φ v)
--------------------------------------∗
WP ! #l {{ v, Φ v }}
1 subgoal
Σ : gFunctors
heapG0 : heapG Σ
dq : dfrac
l : loc
v : val
Φ : val → iPropI Σ
============================
"Hl" : l ↦{dq} v
"HΦ" : True -∗ Φ v
--------------------------------------∗
WP ! #l [{ v, Φ v }]
1 subgoal
1 subgoal
Σ : gFunctors
Σ : gFunctors
...
...
This diff is collapsed.
Click to expand it.
tests/heap_lang.v
+
13
−
3
View file @
d8276388
...
@@ -265,13 +265,16 @@ Section tests.
...
@@ -265,13 +265,16 @@ Section tests.
Abort
.
Abort
.
End
tests
.
End
tests
.
Section
persistent_
mapsto_tests
.
Section
mapsto_tests
.
Context
`{
!
heapG
Σ
}
.
Context
`{
!
heapG
Σ
}
.
(* Test that the different versions of mapsto work with the tactics, parses,
and prints correctly. *)
(* Loading from a persistent points-to predicate in the _persistent_ context. *)
(* Loading from a persistent points-to predicate in the _persistent_ context. *)
Lemma
persistent_mapsto_load_persistent
l
v
:
Lemma
persistent_mapsto_load_persistent
l
v
:
{{{
l
↦□
v
}}}
!
#
l
{{{
RET
v
;
True
}}}
.
{{{
l
↦□
v
}}}
!
#
l
{{{
RET
v
;
True
}}}
.
Proof
.
iIntros
(
Φ
)
"#Hl HΦ"
.
wp_load
.
by
iApply
"HΦ"
.
Qed
.
Proof
.
iIntros
(
Φ
)
"#Hl HΦ"
.
Show
.
wp_load
.
by
iApply
"HΦ"
.
Qed
.
(* Loading from a persistent points-to predicate in the _spatial_ context. *)
(* Loading from a persistent points-to predicate in the _spatial_ context. *)
Lemma
persistent_mapsto_load_spatial
l
v
:
Lemma
persistent_mapsto_load_spatial
l
v
:
...
@@ -295,7 +298,14 @@ Section persistent_mapsto_tests.
...
@@ -295,7 +298,14 @@ Section persistent_mapsto_tests.
wp_load
.
by
iApply
"HΦ"
.
wp_load
.
by
iApply
"HΦ"
.
Qed
.
Qed
.
End
persistent_mapsto_tests
.
(* Loading from the general mapsto for any [dfrac]. *)
Lemma
general_mapsto
dq
l
v
:
[[{
l
↦
{
dq
}
v
}]]
!
#
l
[[{
RET
v
;
True
}]]
.
Proof
.
iIntros
(
Φ
)
"Hl HΦ"
.
Show
.
wp_load
.
by
iApply
"HΦ"
.
Qed
.
End
mapsto_tests
.
Section
inv_mapsto_tests
.
Section
inv_mapsto_tests
.
Context
`{
!
heapG
Σ
}
.
Context
`{
!
heapG
Σ
}
.
...
...
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