Coccinelle release 0.2.5-rc8
[bpt/coccinelle.git] / tests / not_converted.cocci
CommitLineData
b1b2de81
C
1// A variable is used between two affectations.
2//
3// Confidence: High
4// Copyright: (C) Nicolas Palix, Julia Lawall, DIKU. GPLv2.
5// URL:
6// Options: -ifdef_to_if
7
8@filter@
9local idexpression E;
10expression Er;
11@@
12
13E = Er;
14
15@r @
16local idexpression filter.E;
17position b;
18position e,f;
19expression E1;
20expression E2;
21@@
22
23E@b = E1;
24... when != E
25 when strict
26(
27E@f = <+...E...+>;
28|
29E@e = E2;
30)
31
32@script:python@
33p1 << r.b;
34p2 << r.e;
35p3 << r.f;
36@@
37
38cocci.include_match(False)
39
40@script:python@
41p1 << r.b;
42p2 << r.e;
43@@
44
45cocci.print_main("",p1)
46cocci.print_secs("",p2)