Created
June 11, 2017 08:09
-
-
Save kaworu/14910868052bb248e55ea73802f45d5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@r1@ | |
type T; | |
position p; | |
identifier i; | |
constant c1, c2, c3; | |
@@ | |
T i@p[ | |
( | |
c1 | |
| | |
c2 + c3 | |
) | |
]; | |
@r2@ | |
type T; | |
position p != r1.p; | |
identifier i; | |
expression e; | |
@@ | |
T i@p[e]; | |
@script:python r3@ | |
p << r2.p; | |
@@ | |
cocci.print_main("",p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment