Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
Iris
Commits
700646bc
Commit
700646bc
authored
Dec 05, 2017
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bitwise negation on integers.
parent
c57f36f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
theories/heap_lang/lang.v
theories/heap_lang/lang.v
+1
-0
No files found.
theories/heap_lang/lang.v
View file @
700646bc
...
...
@@ -317,6 +317,7 @@ Definition subst' (mx : binder) (es : expr) : expr → expr :=
Definition
un_op_eval
(
op
:
un_op
)
(
v
:
val
)
:
option
val
:
=
match
op
,
v
with
|
NegOp
,
LitV
(
LitBool
b
)
=>
Some
$
LitV
$
LitBool
(
negb
b
)
|
NegOp
,
LitV
(
LitInt
n
)
=>
Some
$
LitV
$
LitInt
(
Z
.
lnot
n
)
|
MinusUnOp
,
LitV
(
LitInt
n
)
=>
Some
$
LitV
$
LitInt
(-
n
)
|
_
,
_
=>
None
end
.
...
...
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