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
1f9c5efc
Commit
1f9c5efc
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add test for iAuIntro errors (status quo)
parent
62798412
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/atomic.ref
+11
-0
11 additions, 0 deletions
tests/atomic.ref
tests/atomic.v
+17
-0
17 additions, 0 deletions
tests/atomic.v
with
28 additions
and
0 deletions
tests/atomic.ref
+
11
−
0
View file @
1f9c5efc
...
...
@@ -12,6 +12,17 @@
AACC << ∀ (v0 : val) (q : Qp), l ↦{q} v0 ABORT l ↦ v >> @ ⊤, ∅
<< l ↦{q} v0, COMM Q -∗ Q >>
"non_laterable"
: string
The command has indeed failed with message:
Tactic failure: iAuIntro: not all spatial assumptions are laterable.
The command has indeed failed with message:
Tactic failure: wp_apply: cannot apply
(<<< ∀ (v : val) (q : Qp), ?Goal ↦{q} v >>>
! #?Goal @ ⊤
<<< ?Goal ↦{q} v, RET v >>>).
"printing"
: string
1 subgoal
Σ : gFunctors
...
...
This diff is collapsed.
Click to expand it.
tests/atomic.v
+
17
−
0
View file @
1f9c5efc
...
...
@@ -17,7 +17,24 @@ Section tests.
Qed
.
End
tests
.
(* Test if we get reasonable error messages with non-laterable assertions in the context. *)
Section
error
.
Context
`{
!
heapG
Σ
}
{
aheap
:
atomic_heap
Σ
}
.
Import
atomic_heap
.
notation
.
Check
"non_laterable"
.
Lemma
non_laterable
(
P
:
iProp
Σ
)
(
l
:
loc
)
:
P
-∗
WP
!#
l
{{
_,
True
}}
.
Proof
.
iIntros
"HP"
.
wp_apply
load_spec
.
Fail
iAuIntro
.
Restart
.
iIntros
"HP"
.
Fail
awp_apply
load_spec
.
Abort
.
End
error
.
(* Test if AWP and the AU obtained from AWP print. *)
Check
"printing"
.
Section
printing
.
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