> I believe that it is already possible. Should the following approach work together with the semantic patch language?
@lengths@
statement list [if_count] is;
statement list [else_count] es;
@@
if (...)
is
else
es
@script:python display@
if_n << lengths.if_count;
else_n << lengths.else_count;
@@
print("{0}|{1}".format(if_n, else_n))
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci
