On Thu, 18 Feb 2021, Markus Elfring wrote: > > A disjunction basically says "at this node in the cfg, can I match the > > first patter, or can I match the second pattern, etc." Unfortunately in > > this case the two branches start matching at different nodes, so the short > > circuit aspect of a disjunction isn't used, and it matches both patterns. > > > > The solution is to just make two rules. The first for the if case and the > > second for everything else. > > Will such feedback trigger further software development considerations? No. This is never going to change, until someone completely redesigns Coccinelle. julia _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci
- [Cocci] [PATCH] coccinelle: misc: add swap script Denis Efremov
- Re: [Cocci] [PATCH] coccinelle: misc: add swap script Markus Elfring
- Re: [Cocci] [PATCH] coccinelle: misc: add swap script Julia Lawall
- Re: [Cocci] [PATCH] coccinelle: misc: add swap scr... Denis Efremov
- Re: [Cocci] [PATCH] coccinelle: misc: add swap... Julia Lawall
- Re: [Cocci] [PATCH] coccinelle: misc: add ... Denis Efremov
- Re: [Cocci] [PATCH] coccinelle: misc:... Julia Lawall
- Re: [Cocci] [PATCH] coccinelle: m... Denis Efremov
- Re: [Cocci] [PATCH] coccinelle: misc: add ... Julia Lawall
- [Cocci] [PATCH v2] coccinelle: misc: add minmax script Denis Efremov
- Re: [Cocci] [PATCH v2] coccinelle: misc: add minma... Denis Efremov
- [Cocci] [PATCH v2] coccinelle: misc: add swap script Denis Efremov
- [Cocci] [PATCH v3] coccinelle: misc: add swap script Denis Efremov