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
Yixuan Chen
Iris
Commits
2f866db4
Commit
2f866db4
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add a test that uses heap_total
parent
6c5d84e1
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
+8
-1
8 additions, 1 deletion
tests/heap_lang.v
with
8 additions
and
1 deletion
tests/heap_lang.v
+
8
−
1
View file @
2f866db4
From
iris
.
base_logic
.
lib
Require
Import
gen_inv_heap
invariants
.
From
iris
.
base_logic
.
lib
Require
Import
gen_inv_heap
invariants
.
From
iris
.
program_logic
Require
Export
weakestpre
total_weakestpre
.
From
iris
.
program_logic
Require
Export
weakestpre
total_weakestpre
.
From
iris
.
heap_lang
Require
Import
lang
adequacy
proofmode
notation
.
From
iris
.
heap_lang
Require
Import
lang
adequacy
total_adequacy
proofmode
notation
.
(* Import lang *again*. This used to break notation. *)
(* Import lang *again*. This used to break notation. *)
From
iris
.
heap_lang
Require
Import
lang
.
From
iris
.
heap_lang
Require
Import
lang
.
From
iris
.
prelude
Require
Import
options
.
From
iris
.
prelude
Require
Import
options
.
...
@@ -453,3 +453,10 @@ End error_tests.
...
@@ -453,3 +453,10 @@ End error_tests.
(* Test a closed proof *)
(* Test a closed proof *)
Lemma
heap_e_adequate
σ
:
adequate
NotStuck
heap_e
σ
(
λ
v
_,
v
=
#
2
)
.
Lemma
heap_e_adequate
σ
:
adequate
NotStuck
heap_e
σ
(
λ
v
_,
v
=
#
2
)
.
Proof
.
eapply
(
heap_adequacy
heapΣ
)=>
??
.
iIntros
"_"
.
by
iApply
heap_e_spec
.
Qed
.
Proof
.
eapply
(
heap_adequacy
heapΣ
)=>
??
.
iIntros
"_"
.
by
iApply
heap_e_spec
.
Qed
.
Lemma
heap_e_totally_adequate
σ
:
sn
erased_step
([
heap_e
],
σ
)
.
Proof
.
eapply
(
heap_total
heapΣ
NotStuck
_
_
(
const
True
))=>
??
.
iIntros
"_"
.
rewrite
/
heap_e
/=.
wp_alloc
l
.
wp_load
.
wp_store
.
wp_load
.
auto
.
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