db/insert_manual_states.pl: remove debug output
[smatch.git] / validation / optim / fact-ior-shift.c
blob5fa91eb5cfc2aadd37f683c24a2d6f41f28291ce
1 typedef unsigned int uint;
2 typedef signed int sint;
5 uint fact_ior_shl(uint a, uint b, uint s)
7 return ((a << s) | (b << s)) == ((a | b) << s);
10 uint fact_ior_lsr(uint a, uint b, uint s)
12 return ((a >> s) | (b >> s)) == ((a | b) >> s);
15 sint fact_ior_asr(sint a, sint b, sint s)
17 return ((a >> s) | (b >> s)) == ((a | b) >> s);
21 * check-name: fact-ior-shift
22 * check-command: test-linearize -Wno-decl $file
24 * check-output-ignore
25 * check-output-returns: 1