repo.or.cz
/
smatch
/
bkmgit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
checking_for_null_instead_of_err_ptr: use smatch_kernel_err_ptr.c
[smatch/bkmgit.git]
/
validation
/
optim
/
cse-not01.c
blob
ea1bb7cf25d4dc64348f2bd35e56ee025302d631
1
int
and
(
int
a
) {
return
(~
a
&
a
) ==
0
; }
2
int
ior
(
int
a
) {
return
(~
a
|
a
) == ~
0
; }
3
int
xor
(
int
a
) {
return
(~
a
^
a
) == ~
0
; }
4
5
/*
6
* check-name: cse-not01
7
* check-command: test-linearize -Wno-decl $file
8
*
9
* check-output-ignore
10
* check-output-returns: 1
11
*/