Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 92d2bfb5a363004a8a399eefe5c79f14 > files > 40

coccinelle-examples-1.0.0-0.rc4.2.fc16.i686.rpm

// Even if our analysis does not go through nodes containing 
// funcall, we can still do some (limited) interprocedural modification.

@ rule1 @
identifier foo;
@@


ioctl (...) {
 ...
 foo(3);
 ...
}



@@
identifier rule1.foo;
@@


foo(...)
{

- bar(1);
+ bar(2);

}