repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
db/insert_manual_states.pl: remove debug output
[smatch.git]
/
validation
/
optim
/
and-lsr.c
blob
439eb82272479afd75a700470f5b148a82b98d90
1
// (x & M) >> S to (x >> S) & (M >> S)
2
3
unsigned int
foo
(
unsigned int
x
)
4
{
5
return
(
x
&
0xffff
) >>
12
;
6
}
7
8
/*
9
* check-name: and-lsr
10
* check-command: test-linearize -Wno-decl $file
11
*
12
* check-output-ignore
13
* check-output-contains: and\\..*\\$15
14
* check-output-excludes: and\\..*\\$0xffff
15
*/