Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
116
Issues
116
List
Boards
Labels
Service Desk
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
Iris
Commits
ea809ed4
Commit
ea809ed4
authored
Nov 02, 2019
by
Robbert Krebbers
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor tweaks in lifting file.
parent
9d4613fc
Pipeline
#20832
passed with stage
in 15 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
theories/heap_lang/lifting.v
theories/heap_lang/lifting.v
+9
-7
No files found.
theories/heap_lang/lifting.v
View file @
ea809ed4
...
...
@@ -176,7 +176,7 @@ Proof. solve_pure_exec. Qed.
Instance
pure_binop
op
v1
v2
v'
:
PureExec
(
bin_op_eval
op
v1
v2
=
Some
v'
)
1
(
BinOp
op
(
Val
v1
)
(
Val
v2
))
(
Val
v'
)
|
10
.
Proof
.
solve_pure_exec
.
Qed
.
(* Higher-priority instance for
EqOp
. *)
(* Higher-priority instance for
[EqOp]
. *)
Instance
pure_eqop
v1
v2
:
PureExec
(
vals_compare_safe
v1
v2
)
1
(
BinOp
EqOp
(
Val
v1
)
(
Val
v2
))
...
...
@@ -237,8 +237,8 @@ Proof.
Qed
.
(** Heap *)
(** The
"proper" [allocN] are derived in [array]. *)
(** The
usable rules for [allocN] stated in terms of the [array] proposition
are derived in te file [array]. *)
Lemma
heap_array_to_seq_meta
l
vs
(
n
:
nat
)
:
length
vs
=
n
→
([
∗
map
]
l'
↦
_
∈
heap_array
l
vs
,
meta_token
l'
⊤
)
-
∗
...
...
@@ -280,8 +280,9 @@ Proof.
iIntros
(
Hn
Φ
)
"_ HΦ"
.
iApply
wp_lift_atomic_head_step_no_fork
;
auto
.
iIntros
(
σ
1
κ
κ
s
k
)
"[Hσ Hκs] !>"
;
iSplit
;
first
by
auto
with
lia
.
iNext
;
iIntros
(
v2
σ
2
efs
Hstep
)
;
inv_head_step
.
iMod
(@
gen_heap_alloc_gen
with
"Hσ"
)
as
"(Hσ & Hl & Hm)"
.
{
apply
(
heap_array_map_disjoint
_
l
(
replicate
(
Z
.
to_nat
n
)
v
))
;
eauto
.
iMod
(
gen_heap_alloc_gen
_
(
heap_array
l
(
replicate
(
Z
.
to_nat
n
)
v
))
with
"Hσ"
)
as
"(Hσ & Hl & Hm)"
.
{
apply
heap_array_map_disjoint
.
rewrite
replicate_length
Z2Nat
.
id
;
auto
with
lia
.
}
iModIntro
;
iSplit
;
first
done
.
iFrame
"Hσ Hκs"
.
iApply
"HΦ"
.
iApply
big_sepL_sep
.
iSplitL
"Hl"
.
...
...
@@ -297,8 +298,9 @@ Proof.
iIntros
(
Hn
Φ
)
"_ HΦ"
.
iApply
twp_lift_atomic_head_step_no_fork
;
auto
.
iIntros
(
σ
1
κ
s
k
)
"[Hσ Hκs] !>"
;
iSplit
;
first
by
destruct
n
;
auto
with
lia
.
iIntros
(
κ
v2
σ
2
efs
Hstep
)
;
inv_head_step
.
iMod
(@
gen_heap_alloc_gen
with
"Hσ"
)
as
"(Hσ & Hl & Hm)"
.
{
apply
(
heap_array_map_disjoint
_
l
(
replicate
(
Z
.
to_nat
n
)
v
))
;
eauto
.
iMod
(
gen_heap_alloc_gen
_
(
heap_array
l
(
replicate
(
Z
.
to_nat
n
)
v
))
with
"Hσ"
)
as
"(Hσ & Hl & Hm)"
.
{
apply
heap_array_map_disjoint
.
rewrite
replicate_length
Z2Nat
.
id
;
auto
with
lia
.
}
iModIntro
;
do
2
(
iSplit
;
first
done
).
iFrame
"Hσ Hκs"
.
iApply
"HΦ"
.
iApply
big_sepL_sep
.
iSplitL
"Hl"
.
...
...
Paolo G. Giarrusso
@Blaisorblade
mentioned in issue
#273
·
Nov 07, 2019
mentioned in issue
#273
mentioned in issue #273
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment