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
Gaëtan Gilbert
Iris
Commits
b2f7da38
Commit
b2f7da38
authored
1 year ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
tweak tests a bit
parent
bc0339ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/heap_lang.v
+5
-3
5 additions, 3 deletions
tests/heap_lang.v
with
5 additions
and
3 deletions
tests/heap_lang.v
+
5
−
3
View file @
b2f7da38
...
...
@@ -550,10 +550,12 @@ Section lock_gen.
"l"
<-
#
42
;;
release
"lock"
.
Lemma
wp_lock_client_spin
`{
!
heapGS
Σ
,
!
lockG
Σ
}
:
(* Making sure that using [spin_lockG] here works, not just [lockG]. *)
Lemma
wp_lock_client_spin
`{
!
heapGS
Σ
,
!
spin_lockG
Σ
}
:
⊢
WP
lock_client_spin
{{
_,
True
}}
.
Proof
.
unfold
lock_client_spin
.
wp_alloc
l
as
"Hl"
.
unfold
lock_client_spin
.
simpl
.
Show
.
(* should show no spin_lock.<something> *)
wp_alloc
l
as
"Hl"
.
wp_smart_apply
(
newlock_spec
(
∃
n
:
Z
,
l
↦
#
n
)
with
"[Hl]"
)
as
(
lk
γ
)
"#Hlock"
;
first
by
eauto
.
wp_smart_apply
(
acquire_spec
with
"Hlock"
)
as
"(Hlocked & %v & Hloc)"
.
...
...
@@ -562,7 +564,7 @@ Section lock_gen.
Qed
.
End
lock_gen
.
(** Making sure
we
the [lockG] conditions are resolved when using adequacy. For
(** Making sure
that
the [lockG
/spin_lockG
] conditions are resolved when using adequacy. For
the generic client, we need to instantiate it with a specific lock for that to
make sense. *)
Section
lock_adequacy
.
...
...
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