Re: [v2] coccinelle: semantic patch to check for inappropriate do_div() calls

From: Julia Lawall
Date: Thu Jan 09 2020 - 07:04:51 EST




On Thu, 9 Jan 2020, Markus Elfring wrote:

> >> Thus I suggest now to split the source code search pattern into
> >> four separate rules.
> >
> > Why?
>
> Does the Coccinelle software ensure that a variable like âr.ulâ contains
> really useful data even if the expected branch of the SmPL disjunction
> was occasionally not matched?

The python code will only be executed if it does.

julia