From mboxrd@z Thu Jan 1 00:00:00 1970 From: julia.lawall@lip6.fr (Julia Lawall) Date: Thu, 6 Mar 2014 17:24:38 +0100 (CET) Subject: [Cocci] Remove unnecessary null pointer checks? In-Reply-To: <5318345F.6060305@users.sourceforge.net> References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <530E560C.40706@users.sourceforge.net> <5318345F.6060305@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Thu, 6 Mar 2014, SF Markus Elfring wrote: > >> - Does the message 'EXN:Invalid_argument("equal: abstractvalue")' > >> indicate that the desired source code analysis is influenced in unwanted > >> ways? > > > > No, the semantic patch should be enough to reproduce the problem. If I > > need more information, I will ask. > > I have looked into my log files once more so that I can give you another > feedback for a "regexp problem". I can't reproduce this. I need the semantic patch. julia > > > > The problem has no impact on the quality of the answers actually obtained. > > Now I make a different observation for the processing of SmPL constraints with a > long function name list in the regular expression. > > elfring at Sonne:~/Projekte/Coccinelle/janitor> OCAMLRUNPARAM=b spatch.opt > --sp-file delete_unnecessary_checks3.cocci > /usr/src/linux-stable/fs/proc/proc_sysctl.c > init_defs_builtins: /usr/local/share/coccinelle/standard.h > HANDLING: /usr/src/linux-stable/fs/proc/proc_sysctl.c > diff = > --- /usr/src/linux-stable/fs/proc/proc_sysctl.c > +++ /tmp/cocci-output-5200-eacf04-proc_sysctl.c > @@ -470,8 +470,7 @@ static struct dentry *proc_sys_lookup(st > d_add(dentry, inode); > > out: > - if (h) > - sysctl_head_finish(h); > + sysctl_head_finish(h); > sysctl_head_finish(head); > return err; > } > elfring at Sonne:~/Projekte/Coccinelle/janitor> OCAMLRUNPARAM=b spatch.opt > --sp-file list_functions_with_unnecessary_checks1.cocci > /usr/src/linux-stable/fs/proc/proc_sysctl.c > init_defs_builtins: /usr/local/share/coccinelle/standard.h > HANDLING: /usr/src/linux-stable/fs/proc/proc_sysctl.c > Fatal error: exception Invalid_argument("equal: abstract value") > Called from file "list.ml", line 86, characters 24-34 > Called from file "list.ml", line 86, characters 24-34 > Called from file "list.ml", line 86, characters 24-34 > Called from file "list.ml", line 57, characters 20-23 > > > Regards, > Markus >