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
00166237
Verified
Commit
00166237
authored
4 years ago
by
Tej Chajed
Browse files
Options
Downloads
Patches
Plain Diff
Add tests for wp_load and wp_store failures
parent
4c96a504
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/heap_lang.ref
+20
-0
20 additions, 0 deletions
tests/heap_lang.ref
tests/heap_lang.v
+24
-0
24 additions, 0 deletions
tests/heap_lang.v
with
44 additions
and
0 deletions
tests/heap_lang.ref
+
20
−
0
View file @
00166237
...
@@ -68,6 +68,26 @@
...
@@ -68,6 +68,26 @@
--------------------------------------∗
--------------------------------------∗
|={⊤}=> l ↦ #1
|={⊤}=> l ↦ #1
"wp_load_fail"
: string
The command has indeed failed with message:
Tactic failure: wp_load: cannot find 'Load' in (Fork Skip).
The command has indeed failed with message:
Tactic failure: wp_load: cannot find 'Load' in (Fork Skip).
"wp_load_no_ptsto"
: string
The command has indeed failed with message:
Tactic failure: wp_load: cannot find l ↦ ?.
"wp_store_fail"
: string
The command has indeed failed with message:
Tactic failure: wp_store: cannot find 'Store' in (Fork Skip).
The command has indeed failed with message:
Tactic failure: wp_store: cannot find 'Store' in (Fork Skip).
"wp_store_no_ptsto"
: string
The command has indeed failed with message:
Tactic failure: wp_store: cannot find l ↦ ?.
1 goal
1 goal
Σ : gFunctors
Σ : gFunctors
...
...
This diff is collapsed.
Click to expand it.
tests/heap_lang.v
+
24
−
0
View file @
00166237
...
@@ -149,6 +149,30 @@ Section tests.
...
@@ -149,6 +149,30 @@ Section tests.
⊢
WP
e
+
#
0
[{
_,
True
}]
.
⊢
WP
e
+
#
0
[{
_,
True
}]
.
Proof
.
wp_bind
(
e
+
#
0
)
%
E
.
Abort
.
Proof
.
wp_bind
(
e
+
#
0
)
%
E
.
Abort
.
Check
"wp_load_fail"
.
Lemma
wp_load_fail
:
⊢
WP
Fork
Skip
{{
_,
True
}}
.
Proof
.
Fail
wp_load
.
Abort
.
Lemma
wp_load_fail
:
⊢
WP
Fork
Skip
[{
_,
True
}]
.
Proof
.
Fail
wp_load
.
Abort
.
Check
"wp_load_no_ptsto"
.
Lemma
wp_load_fail
(
l
:
loc
)
:
⊢
WP
!
#
l
{{
_,
True
}}
.
Proof
.
Fail
wp_load
.
Abort
.
Check
"wp_store_fail"
.
Lemma
wp_store_fail
:
⊢
WP
Fork
Skip
{{
_,
True
}}
.
Proof
.
Fail
wp_store
.
Abort
.
Lemma
wp_store_fail
:
⊢
WP
Fork
Skip
[{
_,
True
}]
.
Proof
.
Fail
wp_store
.
Abort
.
Check
"wp_store_no_ptsto"
.
Lemma
wp_store_fail
(
l
:
loc
)
:
⊢
WP
#
l
<-
#
0
{{
_,
True
}}
.
Proof
.
Fail
wp_store
.
Abort
.
Lemma
wp_apply_evar
e
P
:
Lemma
wp_apply_evar
e
P
:
P
-∗
(
∀
Q
Φ
,
Q
-∗
WP
e
{{
Φ
}})
-∗
WP
e
{{
_,
True
}}
.
P
-∗
(
∀
Q
Φ
,
Q
-∗
WP
e
{{
Φ
}})
-∗
WP
e
{{
_,
True
}}
.
Proof
.
iIntros
"HP HW"
.
wp_apply
"HW"
.
iExact
"HP"
.
Qed
.
Proof
.
iIntros
"HP HW"
.
wp_apply
"HW"
.
iExact
"HP"
.
Qed
.
...
...
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