1 /// Check for constants that are added but are used elsewhere as bitmasks
2 /// The results should be checked manually to ensure that the nonzero
3 /// bits in the two constants are actually disjoint.
5 // Confidence: Moderate
6 // Copyright: (C) 2013 Julia Lawall, INRIA/LIP6. GPLv2.
7 // Copyright: (C) 2013 Gilles Muller, INRIA/LIP6. GPLv2.
8 // URL: http://coccinelle.lip6.fr/
10 // Options: --no-includes --include-headers
44 @script:python depends on org@
48 cocci.print_main("sum of probable bitmasks, consider |",p)
50 @script:python depends on report@
54 msg = "WARNING: sum of probable bitmasks, consider |"
55 coccilib.report.print_report(p[0],msg)