Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
c
Commits
9d31584e
Commit
9d31584e
authored
Jun 14, 2018
by
Léon Gondelman
Browse files
rename dCVal -> dCRet
parent
4b231c02
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/vcgen/dcexpr.v
View file @
9d31584e
...
...
@@ -215,14 +215,14 @@ From iris_c.c_translation Require Import monad translation proofmode.
(* Add "Unknown" constructor *)
Inductive
dcexpr
:
Type
:
=
|
dC
Val
:
dval
→
dcexpr
|
dC
Ret
:
dval
→
dcexpr
|
dCLoad
:
dcexpr
→
dcexpr
|
dCStore
:
dcexpr
→
dcexpr
→
dcexpr
|
dCBinOp
:
bin_op
→
dcexpr
→
dcexpr
→
dcexpr
.
Fixpoint
dcexpr_interp
(
E
:
list
loc
)
(
d
:
dcexpr
)
:
expr
:
=
match
d
with
|
dC
Val
dv
=>
a_ret
(
dval_interp
E
dv
)
|
dC
Ret
dv
=>
a_ret
(
dval_interp
E
dv
)
|
dCLoad
d1
=>
a_load
(
dcexpr_interp
E
d1
)
|
dCStore
d1
d2
=>
a_store
(
dcexpr_interp
E
d1
)
(
dcexpr_interp
E
d2
)
|
dCBinOp
op
d1
d2
=>
a_bin_op
op
(
dcexpr_interp
E
d1
)
(
dcexpr_interp
E
d2
)
...
...
@@ -231,9 +231,9 @@ From iris_c.c_translation Require Import monad translation proofmode.
Class
IntoDCexpr
(
E
:
list
loc
)
(
e
:
expr
)
(
de
:
dcexpr
)
:
=
into_dcexpr
:
e
=
dcexpr_interp
E
de
.
Global
Instance
into_dcexpr_
val
E
v
dv
:
Global
Instance
into_dcexpr_
ret
E
v
dv
:
IntoDVal
E
v
dv
→
IntoDCexpr
E
(
a_ret
v
)
(
dC
Val
dv
).
IntoDCexpr
E
(
a_ret
v
)
(
dC
Ret
dv
).
Proof
.
by
rewrite
/
IntoDCexpr
=>
->.
Qed
.
Global
Instance
into_dcexpr_load
E
e
de
:
...
...
Write
Preview
Supports
Markdown
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