Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/c/coccinelle/coccinelle_1.1.0.deb-1.1_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/coccinelle-1.1.0.deb-1.187ufszch/coccinelle_1.1.0.deb-1.1_amd64.buildinfo Get source package info: coccinelle=1.1.0.deb-1.1 Source URL: http://snapshot.notset.fr/mr/package/coccinelle/1.1.0.deb-1.1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-14 automake=1:1.16.3-2 autopoint=0.21-4 autotools-dev=20180224.1+nmu1 base-files=11 base-passwd=3.5.49 bash=5.1-2+b1 binutils=2.35.2-2 binutils-common=2.35.2-2 binutils-x86-64-linux-gnu=2.35.2-2 bsdextrautils=2.36.1-7 bsdutils=1:2.36.1-7 build-essential=12.9 bzip2=1.0.8-4 coreutils=8.32-4+b1 cpp=4:10.2.1-1 cpp-10=10.2.1-6 dash=0.5.11+git20200708+dd9ef66-5 debconf=1.5.75 debhelper=13.3.3 debianutils=4.11.2 dh-autoreconf=20 dh-ocaml=1.1.3 dh-python=4.20201102+nmu1 dh-strip-nondeterminism=1.11.0-1 diffutils=1:3.7-5 dpkg=1.20.7.1 dpkg-dev=1.20.7.1 dwz=0.13+20210201-1 file=1:5.39-3 findutils=4.8.0-1 g++=4:10.2.1-1 g++-10=10.2.1-6 gcc=4:10.2.1-1 gcc-10=10.2.1-6 gcc-10-base=10.2.1-6 gettext=0.21-4 gettext-base=0.21-4 grep=3.6-1 groff-base=1.22.4-6 gzip=1.10-3 hostname=3.23 init-system-helpers=1.60 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-10 libarchive-zip-perl=1.68-1 libasan6=10.2.1-6 libatomic1=10.2.1-6 libattr1=1:2.4.48-6 libaudit-common=1:3.0-2 libaudit1=1:3.0-2 libbinutils=2.35.2-2 libblkid1=2.36.1-7 libbz2-1.0=1.0.8-4 libc-bin=2.31-9 libc-dev-bin=2.31-9 libc6=2.31-9 libc6-dev=2.31-9 libcap-ng0=0.7.9-2.2+b1 libcc1-0=10.2.1-6 libcom-err2=1.46.1-1 libcrypt-dev=1:4.4.17-1 libcrypt1=1:4.4.17-1 libctf-nobfd0=2.35.2-2 libctf0=2.35.2-2 libdb5.3=5.3.28+dfsg1-0.8 libdebconfclient0=0.256 libdebhelper-perl=13.3.3 libdpkg-perl=1.20.7.1 libelf1=0.183-1 libexpat1=2.2.10-2 libffi7=3.3-6 libfile-stripnondeterminism-perl=1.11.0-1 libfindlib-ocaml=1.8.1-2 libgcc-10-dev=10.2.1-6 libgcc-s1=10.2.1-6 libgcrypt20=1.8.7-3 libgdbm-compat4=1.19-2 libgdbm6=1.19-2 libglib2.0-0=2.66.7-1 libgmp10=2:6.2.1+dfsg-1 libgomp1=10.2.1-6 libgpg-error0=1.38-2 libgssapi-krb5-2=1.18.3-4 libicu67=67.1-6 libisl23=0.23-1 libitm1=10.2.1-6 libk5crypto3=1.18.3-4 libkeyutils1=1.6.1-2 libkrb5-3=1.18.3-4 libkrb5support0=1.18.3-4 liblsan0=10.2.1-6 liblz4-1=1.9.3-1 liblzma5=5.2.5-1.0 libmagic-mgc=1:5.39-3 libmagic1=1:5.39-3 libmenhir-ocaml-dev=20201216-1 libmount1=2.36.1-7 libmpc3=1.2.0-1 libmpdec3=2.5.1-1 libmpfr6=4.1.0-3 libncurses-dev=6.2+20201114-2 libncurses5-dev=6.2+20201114-2 libncurses6=6.2+20201114-2 libncursesw6=6.2+20201114-2 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libpam-modules=1.4.0-6 libpam-modules-bin=1.4.0-6 libpam-runtime=1.4.0-6 libpam0g=1.4.0-6 libparmap-ocaml=1.2-1 libparmap-ocaml-dev=1.2-1 libpcre-ocaml=7.4.6-1+b1 libpcre-ocaml-dev=7.4.6-1+b1 libpcre16-3=2:8.39-13 libpcre2-8-0=10.36-2 libpcre3=2:8.39-13 libpcre3-dev=2:8.39-13 libpcre32-3=2:8.39-13 libpcrecpp0v5=2:8.39-13 libperl5.32=5.32.1-3 libpipeline1=1.5.3-1 libpyml-ocaml=20200518-2+b2 libpyml-ocaml-dev=20200518-2+b2 libpython3-stdlib=3.9.1-1 libpython3.9-minimal=3.9.2-1 libpython3.9-stdlib=3.9.2-1 libquadmath0=10.2.1-6 libreadline8=8.1-1 libseccomp2=2.5.1-1 libselinux1=3.1-3 libsigsegv2=2.13-1 libsmartcols1=2.36.1-7 libsqlite3-0=3.34.1-3 libssl1.1=1.1.1j-1 libstdc++-10-dev=10.2.1-6 libstdc++6=10.2.1-6 libstdcompat-ocaml=14-2+b1 libstdcompat-ocaml-dev=14-2+b1 libsub-override-perl=0.09-2 libsystemd0=247.3-1 libtinfo6=6.2+20201114-2 libtirpc-common=1.3.1-1 libtirpc-dev=1.3.1-1 libtirpc3=1.3.1-1 libtool=2.4.6-15 libtsan0=10.2.1-6 libubsan1=10.2.1-6 libuchardet0=0.0.7-1 libudev1=247.3-1 libunistring2=0.9.10-4 libuuid1=2.36.1-7 libxml2=2.9.10+dfsg-6.3+b1 libzstd1=1.4.8+dfsg-2 linux-libc-dev=5.10.13-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-5 make=4.3-4 man-db=2.9.4-2 mawk=1.3.4.20200120-2 media-types=4.0.0 menhir=20201216-1 ncurses-base=6.2+20201114-2 ncurses-bin=6.2+20201114-2 ocaml-base-nox=4.11.1-4 ocaml-compiler-libs=4.11.1-4 ocaml-findlib=1.8.1-2 ocaml-interp=4.11.1-4 ocaml-nox=4.11.1-4 patch=2.7.6-7 perl=5.32.1-3 perl-base=5.32.1-3 perl-modules-5.32=5.32.1-3 pkg-config=0.29.2-1 po-debconf=1.0.21+nmu1 python3=3.9.1-1 python3-distutils=3.9.2-1 python3-lib2to3=3.9.2-1 python3-minimal=3.9.1-1 python3.9=3.9.2-1 python3.9-minimal=3.9.2-1 readline-common=8.1-1 sed=4.7-1 sensible-utils=0.0.14 sysvinit-utils=2.96-6 tar=1.34+dfsg-1 tzdata=2021a-1 util-linux=2.36.1-7 xz-utils=5.2.5-1.0 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210301T023626Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d coccinelle=1.1.0.deb-1.1 && mkdir -p /build/coccinelle-y7yj0U && dpkg-source --no-check -x /*.dsc /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb && chown -R builduser:builduser /build/coccinelle-y7yj0U" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1614686242" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/coccinelle-y7yj0U /tmp/coccinelle-1.1.0.deb-1.187ufszch bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20210301T023626Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.20KFz_bzu_ as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.20KFz_bzu_ Reading package lists... Building dependency tree... util-linux is already the newest version (2.36.1-7). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 134 kB of archives. After this operation, 397 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20210301T023626Z unstable/main amd64 libfakeroot amd64 1.25.3-1.1 [47.0 kB] Get:2 http://snapshot.notset.fr/archive/debian/20210301T023626Z unstable/main amd64 fakeroot amd64 1.25.3-1.1 [87.0 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (683 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4663 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.25.3-1.1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.3-1.1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.25.3-1.1_amd64.deb ... Unpacking fakeroot (1.25.3-1.1) ... Setting up libfakeroot:amd64 (1.25.3-1.1) ... Setting up fakeroot (1.25.3-1.1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-9) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210301T023626Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.20KFz_bzu_ Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20210301T023626Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 23s (988 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.20KFz_bzu_ I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d coccinelle=1.1.0.deb-1.1 && mkdir -p /build/coccinelle-y7yj0U && dpkg-source --no-check -x /*.dsc /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb && chown -R builduser:builduser /build/coccinelle-y7yj0U"' exec /tmp/mmdebstrap.20KFz_bzu_ Reading package lists... NOTICE: 'coccinelle' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/ocaml-team/coccinelle.git Please use: git clone https://salsa.debian.org/ocaml-team/coccinelle.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 4345 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main coccinelle 1.1.0.deb-1.1 (dsc) [2515 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main coccinelle 1.1.0.deb-1.1 (tar) [4331 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main coccinelle 1.1.0.deb-1.1 (diff) [12.1 kB] Fetched 4345 kB in 4s (1209 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'coccinelle_1.1.0.deb-1.1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting coccinelle in /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb dpkg-source: info: unpacking coccinelle_1.1.0.deb.orig.tar.gz dpkg-source: info: unpacking coccinelle_1.1.0.deb-1.1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying no-bundles.diff dpkg-source: info: applying manual-build-fix.diff dpkg-source: info: applying dont-update-test-score.diff dpkg-source: info: applying dont-expose-parmap.diff I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1614686242" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.20KFz_bzu_ dpkg-buildpackage: info: source package coccinelle dpkg-buildpackage: info: source version 1.1.0.deb-1.1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Adrian Bunk dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean --with ocaml,python3,autoreconf dh_auto_clean make -j4 distclean make[1]: Entering directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' CLEAN commons CLEAN globals CLEAN parsing_cocci CLEAN parsing_c CLEAN ctl CLEAN ocaml CLEAN python CLEAN engine CLEAN popl09 CLEAN extra CLEAN spatch CLEAN spgen rm -f coccinelle.cma coccinelle.cmxa coccinelle.a \ coccinelle.cmo coccinelle.cmx coccinelle.o \ coccinelle_modules.cmi coccinelle_modules.cmo \ coccinelle_modules.o coccinelle_modules.cmx CLEAN exposed-module CLEAN .depend CLEAN configure make[1]: Leaving directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' dh_ocamlclean dh_clean debian/rules binary-arch dh binary-arch --with ocaml,python3,autoreconf dh_update_autotools_config -a dh_autoreconf -a aclocal: warning: couldn't open directory 'm4': No such file or directory dh_ocamlinit -a debian/rules override_dh_auto_configure make[1]: Entering directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --enable-ocaml --enable-python --enable-opt configure: configuring coccinelle 1.1.0 in /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes configure: determining version suffix checking for date... /bin/date configure: version suffix set to Tue, 12 Oct 2021 06:07:36 +0000 configure: this configure program uses pkg-config m4 macros configure: this configure program uses ocaml m4 macros (see setup/ocaml.m4) configure: this configure program uses custom m4 macros (see setup/cocci.m4) configure: some fake substitutions for required but unavailable programs may be used (see setup/fake*) configure: verifying basic tools checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for bash... /bin/bash checking for tar... /bin/tar checking for patch... /usr/bin/patch checking for echo... /bin/echo checking for patchelf... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for ocamlc... /usr/bin/ocamlc OCaml version is 4.11.1 OCaml library path is /usr/lib/ocaml checking for ocamlopt... /usr/bin/ocamlopt checking for ocamlc.opt... /usr/bin/ocamlc.opt checking for ocamlopt.opt... /usr/bin/ocamlopt.opt checking for ocaml... /usr/bin/ocaml checking for ocamldep... /usr/bin/ocamldep checking for ocamlmktop... /usr/bin/ocamlmktop checking for ocamlmklib... /usr/bin/ocamlmklib checking for ocamldoc... /usr/bin/ocamldoc checking that the OCaml version is at least 3.12... yes checking that the OCaml version is at least 4.02... yes checking that the OCaml version is at least 4.03... yes checking for ocamllex... /usr/bin/ocamllex checking for ocamllex.opt... /usr/bin/ocamllex.opt checking for ocamlyacc... /usr/bin/ocamlyacc checking for ocamlfind... /usr/bin/ocamlfind checking for ocamlprof... /usr/bin/ocamlprof configure: verifying basic ocaml modules configure: coccinelle may use external ocaml libraries in /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/bundles configure: the following OCaml packages should be provided by your ocaml installation checking for OCaml findlib package unix... found checking for OCaml findlib package bigarray... found checking for OCaml findlib package str... found configure: configuring package dynlink checking for OCaml findlib package dynlink... found configure: configuring package parmap checking for OCaml findlib package parmap... found configure: configuring package stdcompat checking for OCaml findlib package stdcompat... found configure: verifying optional features checking for menhir... /usr/bin/menhir configure: system menhir will be used configure: system menhir will be used configure: configuring package pyml checking for OCaml findlib package pyml... found checking for libpcre... yes configure: configuring package pcre checking for OCaml findlib package pcre... found checking if pcre depends on bytes... no configure: support for pcre syntax is enabled checking for pdflatex... no configure: pdflatex not found. Trying substitute /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/setup/fake-pdflatex.sh pdflatex. checking for pdflatex... /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/setup/fake-pdflatex.sh pdflatex checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile.config config.status: creating version.ml config.status: creating commons/commands.ml config.status: creating globals/config.ml config.status: creating globals/regexp.ml config.status: creating python/pycocci.ml config.status: creating ocaml/prepare_ocamlcocci.ml config.status: creating scripts/spatch.sh config.status: creating tools/spgen/scripts/spgen.sh config.status: creating docs/spatch.1 config.status: creating setup/Makefile config.status: executing depfiles commands configure: configuration completed ------------------------------------------------------------------------------ Summary configure flags: --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --enable-ocaml --enable-python --enable-opt findlib: /usr/bin/ocamlfind (an actual version is strongly recommended) menhir: /usr/bin/menhir (for local package use --without-menhir, install the menhir package otherwise) ocaml scripting: yes (overridable with --enable-ocaml) python scripting: yes (overridable with --enable-python) pcre regexes: (overridable with --enable-pcre-syntax) pcre module: yes (for local package use --disable-pcre) pcre library: yes (requires the libpcre-ocaml-dev package) optimized spatch: yes (overridable with --disable-opt) bash-completion: ${prefix}/share/bash-completion/completions (overridable with --with-bash-completion) ------------------------------------------------------------------------------ Coccinelle can now be compiled and installed. If you compile coccinelle again after source code changes or configuration changes, you may need to run first: $ make clean To compile coccinelle, run: $ make To install coccinelle, run: $ make install Then, to test coccinelle, run for example: $ spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c Or when coccinelle is not installed yet: $ COCCINELLE_HOME=/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb ./scripts/spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c ------------------------------------------------------------------------------ You may need to set some environment variables so that the python libraries are found. The frontend 'spatch' sets the following variables: $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib $ export PYTHONPATH=$PYTHONPATH:/usr/lib/coccinelle/python ------------------------------------------------------------------------------ make[1]: Leaving directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' dh_auto_build -a make -j4 make[1]: Entering directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' OCAMLYACC parsing_c/parser_c.mly OCAMLDEP tools/spgen/source/spgen_lexer.mli OCAMLDEP parsing_c/lexer_c.mli OCAMLDEP parsing_cocci/lexer_script.mli OCAMLDEP parsing_cocci/lexer_cli.mli OCAMLDEP parsing_cocci/lexer_cocci.mli OCAMLDEP tools/spgen/source/main.mli OCAMLDEP tools/spgen/source/spgen_test.mli OCAMLDEP tools/spgen/source/spgen.mli 4 shift/reduce conflicts. OCAMLDEP tools/spgen/source/spgen_config.mli OCAMLDEP tools/spgen/source/spgen_interactive.mli OCAMLDEP tools/spgen/source/file_transform.mli OCAMLDEP tools/spgen/source/script_rule.mli OCAMLDEP tools/spgen/source/context_rule.mli OCAMLDEP tools/spgen/source/rule_header.mli OCAMLDEP tools/spgen/source/rule_body.mli OCAMLDEP tools/spgen/source/disj_generator.mli OCAMLDEP tools/spgen/source/position_generator.mli OCAMLDEP tools/spgen/source/user_input.mli OCAMLDEP tools/spgen/source/snapshot.mli OCAMLDEP tools/spgen/source/detect_patch.mli OCAMLDEP tools/spgen/source/meta_variable.mli OCAMLDEP tools/spgen/source/ast_tostring.mli OCAMLDEP tools/spgen/source/globals.mli OCAMLDEP main.mli OCAMLDEP enter.mli OCAMLDEP read_options.mli OCAMLDEP testing.mli OCAMLDEP cocci.mli OCAMLDEP flag_cocci.mli OCAMLDEP extra/maintainers.mli OCAMLDEP extra/kbuild.mli OCAMLDEP extra/classic_patch.mli OCAMLDEP popl09/popl.mli OCAMLDEP popl09/popltoctl.mli OCAMLDEP popl09/flag_popl.mli OCAMLDEP popl09/pretty_print_popl.mli OCAMLDEP popl09/insert_quantifiers.mli OCAMLDEP popl09/asttopopl.mli OCAMLDEP popl09/ast_popl.mli OCAMLDEP engine/ctlcocci_integration.mli OCAMLDEP engine/postprocess_transinfo.mli OCAMLDEP engine/ctltotex.mli OCAMLDEP engine/asttoctl2.mli OCAMLDEP engine/asttomember.mli OCAMLDEP engine/transformation_c.mli OCAMLDEP engine/pattern_c.mli OCAMLDEP engine/cocci_vs_c.mli OCAMLDEP engine/isomorphisms_c_c.mli OCAMLDEP engine/c_vs_c.mli OCAMLDEP engine/check_reachability.mli OCAMLDEP engine/check_exhaustive_pattern.mli OCAMLDEP engine/pretty_print_engine.mli OCAMLDEP engine/lib_engine.mli OCAMLDEP engine/flag_matcher.mli OCAMLDEP python/pycocci.mli OCAMLDEP python/yes_pycocci.mli OCAMLDEP python/pycocci_aux.mli OCAMLDEP ocaml/run_ocamlcocci.mli OCAMLDEP ocaml/prepare_ocamlcocci.mli OCAMLDEP ocaml/yes_prepare_ocamlcocci.mli OCAMLDEP ocaml/ocamlcocci_aux.mli OCAMLDEP ocaml/coccilib.mli OCAMLDEP ocaml/externalanalysis.mli OCAMLDEP ocaml/exposed_modules.mli OCAMLDEP ctl/wrapper_ctl.mli OCAMLDEP ctl/ctl_engine.mli OCAMLDEP ctl/pretty_print_ctl.mli OCAMLDEP ctl/ast_ctl.mli OCAMLDEP ctl/flag_ctl.mli OCAMLDEP parsing_c/test_parsing_c.mli OCAMLDEP parsing_c/compare_c.mli OCAMLDEP parsing_c/comment_annotater_c.mli OCAMLDEP parsing_c/type_annoter_c.mli OCAMLDEP parsing_c/cpp_ast_c.mli OCAMLDEP parsing_c/type_c.mli OCAMLDEP parsing_c/unparse_hrule.mli OCAMLDEP parsing_c/unparse_c.mli OCAMLDEP parsing_c/parse_c.mli OCAMLDEP parsing_c/danger.mli OCAMLDEP parsing_c/parsing_consistency_c.mli OCAMLDEP parsing_c/parsing_recovery_c.mli OCAMLDEP parsing_c/unparse_cocci.mli OCAMLDEP parsing_c/cpp_analysis_c.mli OCAMLDEP parsing_c/parsing_hacks.mli OCAMLDEP parsing_c/cpp_token_c.mli OCAMLDEP parsing_c/token_views_c.mli OCAMLDEP parsing_c/token_helpers.mli OCAMLDEP parsing_c/parse_string_c.mli OCAMLDEP parsing_c/lexer_parser.mli OCAMLDEP parsing_c/semantic_c.mli OCAMLDEP parsing_c/pretty_print_c.mli OCAMLDEP parsing_c/control_flow_c_build.mli OCAMLDEP parsing_c/includes_cache.mli OCAMLDEP parsing_c/lib_parsing_c.mli OCAMLDEP parsing_c/visitor_c.mli OCAMLDEP parsing_c/control_flow_c.mli OCAMLDEP parsing_c/includes.mli OCAMLDEP parsing_c/ast_c.mli OCAMLDEP parsing_c/token_c.mli OCAMLDEP parsing_c/parsing_stat.mli OCAMLDEP parsing_c/flag_parsing_c.mli OCAMLDEP parsing_c/token_annot.mli OCAMLDEP parsing_cocci/cocci_args.mli OCAMLDEP parsing_cocci/command_line.mli OCAMLDEP parsing_cocci/parse_cocci.mli OCAMLDEP parsing_cocci/re_constraints.mli OCAMLDEP parsing_cocci/commas_on_lists.mli OCAMLDEP parsing_cocci/adjacency.mli OCAMLDEP parsing_cocci/git_grep.mli OCAMLDEP parsing_cocci/id_utils.mli OCAMLDEP parsing_cocci/get_constants2.mli OCAMLDEP parsing_cocci/dpll.mli OCAMLDEP parsing_cocci/cocci_grep.mli OCAMLDEP parsing_cocci/disjdistr.mli OCAMLDEP parsing_cocci/cleanup_rules.mli OCAMLDEP parsing_cocci/parse_aux.mli OCAMLDEP parsing_cocci/parse_printf.mli OCAMLDEP parsing_cocci/safe_for_multi_decls.mli OCAMLDEP parsing_cocci/free_vars.mli OCAMLDEP parsing_cocci/data.mli OCAMLDEP parsing_cocci/semantic_cocci.mli OCAMLDEP parsing_cocci/function_prototypes.mli OCAMLDEP parsing_cocci/insert_plus.mli OCAMLDEP parsing_cocci/adjust_pragmas.mli OCAMLDEP parsing_cocci/context_neg.mli OCAMLDEP parsing_cocci/index.mli OCAMLDEP parsing_cocci/arity.mli OCAMLDEP parsing_cocci/unitary_ast0.mli OCAMLDEP parsing_cocci/test_exps.mli OCAMLDEP parsing_cocci/type_infer.mli OCAMLDEP parsing_cocci/top_level.mli OCAMLDEP parsing_cocci/check_meta.mli OCAMLDEP parsing_cocci/stmtlist.mli OCAMLDEP parsing_cocci/get_metas.mli OCAMLDEP parsing_cocci/simple_assignments.mli OCAMLDEP parsing_cocci/single_statement.mli OCAMLDEP parsing_cocci/iso_compile.mli OCAMLDEP parsing_cocci/comm_assoc.mli OCAMLDEP parsing_cocci/iso_pattern.mli OCAMLDEP parsing_cocci/compute_lines.mli OCAMLDEP parsing_cocci/unify_ast.mli OCAMLDEP parsing_cocci/unparse_ast0.mli OCAMLDEP parsing_cocci/ast0toast.mli OCAMLDEP parsing_cocci/visitor_ast0.mli OCAMLDEP parsing_cocci/visitor_ast.mli OCAMLDEP parsing_cocci/visitor_ast0_types.mli OCAMLDEP parsing_cocci/pretty_print_cocci.mli OCAMLDEP parsing_cocci/ast0_cocci.mli OCAMLDEP parsing_cocci/ast_cocci.mli OCAMLDEP parsing_cocci/flag_parsing_cocci.mli OCAMLDEP globals/regexp.mli OCAMLDEP globals/regexp_pcre.mli OCAMLDEP globals/iteration.mli OCAMLDEP globals/flag.mli OCAMLDEP globals/config.mli OCAMLDEP commons/ograph_extended.mli OCAMLDEP commons/ograph_simple.mli OCAMLDEP commons/common.mli OCAMLDEP commons/commands.mli OCAMLDEP commons/ocamlextra/dumper.mli OCAMLDEP parsing_c/parser_c.ml OCAMLDEP tools/spgen/source/spgen_lexer.ml OCAMLLEX parsing_c/lexer_c.mll OCAMLLEX parsing_cocci/lexer_script.mll 25 states, 314 transitions, table size 1406 bytes OCAMLLEX parsing_cocci/lexer_cli.mll OCAMLLEX parsing_cocci/lexer_cocci.mll 14 states, 681 transitions, table size 2808 bytes ocamllex warning: File "parsing_cocci/lexer_cocci.mll", line 301, character 67: unescaped newline in string. OCAMLDEP tools/spgen/source/main.ml OCAMLDEP tools/spgen/source/spgen_test.ml OCAMLDEP tools/spgen/source/spgen.ml OCAMLDEP tools/spgen/source/spgen_config.ml 413 states, 8047 transitions, table size 34666 bytes 4183 additional bytes used for bindings OCAMLDEP tools/spgen/source/spgen_interactive.ml OCAMLDEP tools/spgen/source/file_transform.ml OCAMLDEP tools/spgen/source/script_rule.ml OCAMLDEP tools/spgen/source/context_rule.ml OCAMLDEP tools/spgen/source/rule_header.ml OCAMLDEP tools/spgen/source/rule_body.ml OCAMLDEP tools/spgen/source/disj_generator.ml OCAMLDEP tools/spgen/source/position_generator.ml OCAMLDEP tools/spgen/source/user_input.ml OCAMLDEP tools/spgen/source/snapshot.ml OCAMLDEP tools/spgen/source/meta_variable.ml OCAMLDEP tools/spgen/source/detect_patch.ml OCAMLDEP tools/spgen/source/ast_tostring.ml OCAMLDEP tools/spgen/source/globals.ml OCAMLDEP main.ml OCAMLDEP enter.ml OCAMLDEP read_options.ml OCAMLDEP testing.ml 564 states, 26650 transitions, table size 109984 bytes 17879 additional bytes used for bindings OCAMLDEP cocci.ml OCAMLDEP flag_cocci.ml OCAMLDEP extra/maintainers.ml OCAMLDEP extra/kbuild.ml OCAMLDEP extra/classic_patch.ml OCAMLDEP popl09/popl.ml OCAMLDEP popl09/popltoctl.ml OCAMLDEP popl09/flag_popl.ml OCAMLDEP popl09/pretty_print_popl.ml OCAMLDEP popl09/insert_quantifiers.ml OCAMLDEP popl09/asttopopl.ml OCAMLDEP popl09/ast_popl.ml OCAMLDEP engine/ctlcocci_integration.ml OCAMLDEP engine/postprocess_transinfo.ml OCAMLDEP engine/ctltotex.ml OCAMLDEP engine/asttoctl2.ml OCAMLDEP engine/asttomember.ml OCAMLDEP engine/transformation_c.ml OCAMLDEP engine/pattern_c.ml OCAMLDEP engine/cocci_vs_c.ml OCAMLDEP engine/isomorphisms_c_c.ml OCAMLDEP engine/c_vs_c.ml OCAMLDEP engine/check_reachability.ml OCAMLDEP engine/check_exhaustive_pattern.ml OCAMLDEP engine/pretty_print_engine.ml OCAMLDEP engine/lib_engine.ml OCAMLDEP engine/flag_matcher.ml OCAMLDEP python/pycocci.ml OCAMLDEP python/yes_pycocci.ml OCAMLDEP python/pycocci_aux.ml OCAMLDEP ocaml/run_ocamlcocci.ml OCAMLDEP ocaml/prepare_ocamlcocci.ml OCAMLDEP ocaml/yes_prepare_ocamlcocci.ml OCAMLDEP ocaml/ocamlcocci_aux.ml OCAMLDEP ocaml/coccilib.ml OCAMLDEP ocaml/exposed_modules.ml OCAMLDEP ocaml/externalanalysis.ml OCAMLDEP ctl/wrapper_ctl.ml OCAMLDEP ctl/ctl_engine.ml OCAMLDEP ctl/pretty_print_ctl.ml OCAMLDEP ctl/ast_ctl.ml OCAMLDEP ctl/flag_ctl.ml OCAMLDEP parsing_c/test_parsing_c.ml OCAMLDEP parsing_c/compare_c.ml OCAMLDEP parsing_c/comment_annotater_c.ml OCAMLDEP parsing_c/cpp_ast_c.ml OCAMLDEP parsing_c/type_annoter_c.ml OCAMLDEP parsing_c/type_c.ml OCAMLDEP parsing_c/unparse_hrule.ml OCAMLDEP parsing_c/unparse_c.ml OCAMLDEP parsing_c/parse_c.ml OCAMLDEP parsing_c/danger.ml OCAMLDEP parsing_c/parsing_consistency_c.ml OCAMLDEP parsing_c/parsing_recovery_c.ml OCAMLDEP parsing_c/unparse_cocci.ml OCAMLDEP parsing_c/cpp_analysis_c.ml OCAMLDEP parsing_c/parsing_hacks.ml OCAMLDEP parsing_c/cpp_token_c.ml OCAMLDEP parsing_c/token_views_c.ml OCAMLDEP parsing_c/token_helpers.ml OCAMLDEP parsing_c/parse_string_c.ml OCAMLDEP parsing_c/lexer_parser.ml OCAMLDEP parsing_c/semantic_c.ml OCAMLDEP parsing_c/pretty_print_c.ml OCAMLDEP parsing_c/control_flow_c_build.ml OCAMLDEP parsing_c/includes_cache.ml OCAMLDEP parsing_c/lib_parsing_c.ml OCAMLDEP parsing_c/visitor_c.ml OCAMLDEP parsing_c/control_flow_c.ml OCAMLDEP parsing_c/includes.ml OCAMLDEP parsing_c/ast_c.ml OCAMLDEP parsing_c/token_c.ml OCAMLDEP parsing_c/parsing_stat.ml OCAMLDEP parsing_c/flag_parsing_c.ml OCAMLDEP parsing_c/token_annot.ml OCAMLDEP parsing_cocci/cocci_args.ml OCAMLDEP parsing_cocci/command_line.ml OCAMLDEP parsing_cocci/re_constraints.ml OCAMLDEP parsing_cocci/parse_cocci.ml OCAMLDEP parsing_cocci/commas_on_lists.ml OCAMLDEP parsing_cocci/adjacency.ml OCAMLDEP parsing_cocci/git_grep.ml OCAMLDEP parsing_cocci/id_utils.ml OCAMLDEP parsing_cocci/get_constants2.ml OCAMLDEP parsing_cocci/dpll.ml OCAMLDEP parsing_cocci/cocci_grep.ml OCAMLDEP parsing_cocci/disjdistr.ml OCAMLDEP parsing_cocci/cleanup_rules.ml OCAMLDEP parsing_cocci/parse_aux.ml OCAMLDEP parsing_cocci/parse_printf.ml OCAMLDEP parsing_cocci/safe_for_multi_decls.ml OCAMLDEP parsing_cocci/free_vars.ml OCAMLDEP parsing_cocci/data.ml OCAMLDEP parsing_cocci/semantic_cocci.ml OCAMLDEP parsing_cocci/function_prototypes.ml OCAMLDEP parsing_cocci/insert_plus.ml OCAMLDEP parsing_cocci/adjust_pragmas.ml OCAMLDEP parsing_cocci/context_neg.ml OCAMLDEP parsing_cocci/index.ml OCAMLDEP parsing_cocci/arity.ml OCAMLDEP parsing_cocci/unitary_ast0.ml OCAMLDEP parsing_cocci/test_exps.ml OCAMLDEP parsing_cocci/type_infer.ml OCAMLDEP parsing_cocci/top_level.ml OCAMLDEP parsing_cocci/check_meta.ml OCAMLDEP parsing_cocci/stmtlist.ml OCAMLDEP parsing_cocci/get_metas.ml OCAMLDEP parsing_cocci/simple_assignments.ml OCAMLDEP parsing_cocci/single_statement.ml OCAMLDEP parsing_cocci/iso_compile.ml OCAMLDEP parsing_cocci/comm_assoc.ml OCAMLDEP parsing_cocci/iso_pattern.ml OCAMLDEP parsing_cocci/compute_lines.ml OCAMLDEP parsing_cocci/unify_ast.ml OCAMLDEP parsing_cocci/unparse_ast0.ml OCAMLDEP parsing_cocci/ast0toast.ml OCAMLDEP parsing_cocci/visitor_ast0.ml OCAMLDEP parsing_cocci/visitor_ast.ml OCAMLDEP parsing_cocci/visitor_ast0_types.ml OCAMLDEP parsing_cocci/pretty_print_cocci.ml OCAMLDEP parsing_cocci/ast0_cocci.ml OCAMLDEP parsing_cocci/ast_cocci.ml OCAMLDEP parsing_cocci/flag_parsing_cocci.ml OCAMLDEP globals/regexp.ml OCAMLDEP globals/regexp_pcre.ml OCAMLDEP globals/iteration.ml OCAMLDEP globals/flag.ml OCAMLDEP globals/config.ml OCAMLDEP commons/ograph_extended.ml OCAMLDEP commons/ograph_simple.ml OCAMLDEP commons/common.ml OCAMLDEP commons/commands.ml OCAMLDEP commons/ocamlextra/dumper.ml OCAMLDEP parsing_c/parser_c.mli OCAMLDEP parsing_c/lexer_c.ml OCAMLDEP parsing_cocci/lexer_script.ml OCAMLDEP parsing_cocci/lexer_cli.ml OCAMLDEP parsing_cocci/lexer_cocci.ml OCAMLC commons/ocamlextra/dumper.mli OCAMLC commons/common.mli OCAMLC globals/config.mli OCAMLC commons/commands.mli OCAMLC globals/flag.mli OCAMLC globals/iteration.mli OCAMLC globals/regexp_pcre.mli OCAMLC globals/regexp.mli OCAMLC parsing_cocci/flag_parsing_cocci.mli OCAMLC parsing_cocci/semantic_cocci.mli OCAMLC parsing_cocci/parse_printf.mli OCAMLC parsing_cocci/lexer_cli.mli OCAMLC parsing_cocci/cocci_grep.mli OCAMLC parsing_cocci/dpll.mli OCAMLC parsing_cocci/git_grep.mli OCAMLC parsing_cocci/command_line.mli OCAMLC parsing_cocci/cocci_args.mli OCAMLC parsing_c/token_annot.mli OCAMLC parsing_c/flag_parsing_c.mli OCAMLC parsing_c/parsing_stat.mli OCAMLC parsing_c/token_c.mli OCAMLC parsing_c/semantic_c.mli OCAMLC parsing_c/compare_c.mli OCAMLC parsing_c/test_parsing_c.mli OCAMLC ctl/flag_ctl.mli OCAMLC ctl/ast_ctl.mli OCAMLC engine/flag_matcher.mli OCAMLC popl09/flag_popl.mli OCAMLC extra/classic_patch.mli OCAMLC extra/kbuild.mli OCAMLC extra/maintainers.mli OCAMLC flag_cocci.mli OCAMLC read_options.mli OCAMLC enter.mli OCAMLC main.mli OCAMLC tools/spgen/source/spgen_lexer.mli OCAMLC tools/spgen/source/spgen.mli OCAMLC tools/spgen/source/spgen_test.mli OCAMLC tools/spgen/source/main.mli cp parsing_c/token_c.cmi ocaml/token_c.cmi cp globals/regexp.cmi ocaml/regexp.cmi cp globals/config.cmi ocaml/config.cmi cp globals/flag.cmi ocaml/flag.cmi cp parsing_c/flag_parsing_c.cmi ocaml/flag_parsing_c.cmi cp globals/iteration.cmi ocaml/iteration.cmi cp commons/commands.cmi ocaml/commands.cmi cp commons/common.cmi ocaml/common.cmi cp commons/ocamlextra/dumper.cmi ocaml/dumper.cmi OCAMLC parsing_c/token_c.ml OCAMLC globals/regexp.ml OCAMLC globals/config.ml OCAMLC globals/flag.ml OCAMLC parsing_c/flag_parsing_c.ml OCAMLC globals/iteration.ml OCAMLC commons/commands.ml OCAMLC commons/common.ml OCAMLC commons/ocamlextra/dumper.ml OCAMLOPT commons/ocamlextra/dumper.ml OCAMLOPT commons/commands.ml OCAMLC commons/ograph_simple.mli OCAMLC commons/ograph_extended.mli OCAMLOPT globals/config.ml OCAMLOPT globals/flag.ml OCAMLOPT globals/regexp_pcre.ml OCAMLOPT parsing_cocci/flag_parsing_cocci.ml OCAMLC parsing_cocci/ast_cocci.mli OCAMLOPT parsing_cocci/semantic_cocci.ml OCAMLOPT parsing_cocci/parse_printf.ml OCAMLOPT parsing_cocci/lexer_cli.ml OCAMLOPT parsing_cocci/cocci_args.ml OCAMLOPT parsing_c/token_annot.ml OCAMLC parsing_c/ast_c.mli OCAMLOPT ctl/flag_ctl.ml OCAMLOPT ctl/ast_ctl.ml OCAMLC ctl/pretty_print_ctl.mli OCAMLC ctl/ctl_engine.mli OCAMLC ocaml/yes_prepare_ocamlcocci.mli OCAMLC ocaml/prepare_ocamlcocci.mli OCAMLC ocaml/run_ocamlcocci.mli OCAMLC python/pycocci_aux.mli OCAMLC python/pycocci.mli OCAMLOPT engine/flag_matcher.ml OCAMLC engine/check_exhaustive_pattern.mli OCAMLC engine/c_vs_c.mli OCAMLC engine/isomorphisms_c_c.mli OCAMLC popl09/ast_popl.mli OCAMLOPT popl09/flag_popl.ml OCAMLOPT flag_cocci.ml OCAMLC tools/spgen/source/globals.mli OCAMLC tools/spgen/source/ast_tostring.mli OCAMLOPT tools/spgen/source/spgen_lexer.ml cp parsing_c/ast_c.cmi ocaml/ast_c.cmi cp parsing_cocci/ast_cocci.cmi ocaml/ast_cocci.cmi cp parsing_c/token_c.cmo ocaml/token_c.cmo OCAMLC parsing_c/ast_c.ml cp globals/regexp.cmo ocaml/regexp.cmo cp globals/config.cmo ocaml/config.cmo cp globals/flag.cmo ocaml/flag.cmo cp parsing_c/flag_parsing_c.cmo ocaml/flag_parsing_c.cmo cp globals/iteration.cmo ocaml/iteration.cmo cp commons/commands.cmo ocaml/commands.cmo cp commons/common.cmo ocaml/common.cmo OCAMLC parsing_cocci/ast_cocci.ml cp commons/ocamlextra/dumper.cmo ocaml/dumper.cmo cp globals/config.cmx ocaml/config.cmx cp globals/flag.cmx ocaml/flag.cmx cp commons/commands.cmx ocaml/commands.cmx cp commons/ocamlextra/dumper.cmx ocaml/dumper.cmx OCAMLOPT commons/common.ml OCAMLOPT globals/regexp.ml OCAMLC parsing_cocci/ast0_cocci.mli OCAMLC parsing_cocci/pretty_print_cocci.mli OCAMLC parsing_cocci/visitor_ast.mli OCAMLC parsing_cocci/stmtlist.mli OCAMLC parsing_cocci/free_vars.mli OCAMLC parsing_cocci/safe_for_multi_decls.mli OCAMLC parsing_cocci/cleanup_rules.mli OCAMLC parsing_cocci/disjdistr.mli OCAMLC parsing_cocci/get_constants2.mli OCAMLC parsing_cocci/adjacency.mli OCAMLC parsing_cocci/commas_on_lists.mli OCAMLC parsing_cocci/re_constraints.mli OCAMLC parsing_cocci/parse_cocci.mli OCAMLC parsing_c/includes.mli OCAMLC parsing_c/control_flow_c.mli OCAMLC parsing_c/includes_cache.mli OCAMLC parsing_c/lexer_parser.mli OCAMLC parsing_c/parser_c.mli OCAMLC parsing_c/unparse_cocci.mli OCAMLC parsing_c/parsing_consistency_c.mli OCAMLC parsing_c/danger.mli OCAMLC parsing_c/unparse_hrule.mli OCAMLC parsing_c/type_c.mli OCAMLC parsing_c/type_annoter_c.mli OCAMLC parsing_c/comment_annotater_c.mli OCAMLC ctl/wrapper_ctl.mli OCAMLC ocaml/externalanalysis.mli OCAMLC ocaml/ocamlcocci_aux.mli OCAMLC engine/cocci_vs_c.mli OCAMLC popl09/asttopopl.mli OCAMLC popl09/insert_quantifiers.mli OCAMLC popl09/pretty_print_popl.mli OCAMLC testing.mli OCAMLC tools/spgen/source/detect_patch.mli OCAMLC tools/spgen/source/meta_variable.mli OCAMLC tools/spgen/source/file_transform.mli cp parsing_c/parser_c.cmi ocaml/parser_c.cmi cp parsing_cocci/ast0_cocci.cmi ocaml/ast0_cocci.cmi cp parsing_c/ast_c.cmo ocaml/ast_c.cmo cp parsing_cocci/ast_cocci.cmo ocaml/ast_cocci.cmo cp globals/regexp.cmx ocaml/regexp.cmx OCAMLC parsing_cocci/ast0_cocci.ml OCAMLC parsing_cocci/visitor_ast0_types.mli OCAMLC parsing_cocci/ast0toast.mli OCAMLC parsing_cocci/unparse_ast0.mli OCAMLC parsing_cocci/unify_ast.mli OCAMLC parsing_cocci/compute_lines.mli OCAMLC parsing_cocci/iso_pattern.mli OCAMLC parsing_cocci/comm_assoc.mli OCAMLC parsing_cocci/single_statement.mli OCAMLC parsing_cocci/simple_assignments.mli OCAMLC parsing_cocci/get_metas.mli OCAMLC parsing_cocci/check_meta.mli OCAMLC parsing_cocci/top_level.mli OCAMLC parsing_cocci/type_infer.mli OCAMLC parsing_cocci/test_exps.mli OCAMLC parsing_cocci/unitary_ast0.mli OCAMLC parsing_cocci/arity.mli OCAMLC parsing_cocci/index.mli OCAMLC parsing_cocci/context_neg.mli OCAMLC parsing_cocci/adjust_pragmas.mli OCAMLC parsing_cocci/insert_plus.mli OCAMLC parsing_cocci/function_prototypes.mli OCAMLC parsing_cocci/data.mli OCAMLC parsing_cocci/id_utils.mli OCAMLC parsing_c/visitor_c.mli OCAMLC parsing_c/control_flow_c_build.mli OCAMLC parsing_c/pretty_print_c.mli OCAMLC parsing_c/lexer_c.mli OCAMLC parsing_c/parse_string_c.mli OCAMLC parsing_c/token_helpers.mli OCAMLC parsing_c/token_views_c.mli OCAMLC parsing_c/parsing_recovery_c.mli OCAMLC engine/lib_engine.mli OCAMLC engine/check_reachability.mli OCAMLC tools/spgen/source/snapshot.mli OCAMLC tools/spgen/source/user_input.mli OCAMLC tools/spgen/source/rule_body.mli OCAMLC tools/spgen/source/rule_header.mli OCAMLC tools/spgen/source/context_rule.mli cp parsing_c/lexer_c.cmi ocaml/lexer_c.cmi cp parsing_c/pretty_print_c.cmi ocaml/pretty_print_c.cmi cp parsing_c/visitor_c.cmi ocaml/visitor_c.cmi OCAMLC parsing_c/lexer_c.ml OCAMLC parsing_c/visitor_c.ml cp parsing_cocci/ast0_cocci.cmo ocaml/ast0_cocci.cmo OCAMLC parsing_cocci/visitor_ast0.mli OCAMLC parsing_cocci/iso_compile.mli OCAMLC parsing_cocci/parse_aux.mli OCAMLC parsing_c/lib_parsing_c.mli OCAMLC parsing_c/cpp_token_c.mli OCAMLC engine/pretty_print_engine.mli OCAMLC engine/pattern_c.mli OCAMLC engine/transformation_c.mli OCAMLC engine/asttomember.mli OCAMLC engine/asttoctl2.mli OCAMLC engine/ctltotex.mli OCAMLC engine/postprocess_transinfo.mli OCAMLC engine/ctlcocci_integration.mli OCAMLC popl09/popltoctl.mli OCAMLC popl09/popl.mli OCAMLC tools/spgen/source/position_generator.mli OCAMLC tools/spgen/source/disj_generator.mli OCAMLC tools/spgen/source/script_rule.mli OCAMLC tools/spgen/source/spgen_interactive.mli cp parsing_c/lib_parsing_c.cmi ocaml/lib_parsing_c.cmi OCAMLC tools/spgen/source/spgen_config.mli OCAMLC parsing_c/parser_c.ml cp parsing_c/lexer_c.cmo ocaml/lexer_c.cmo OCAMLC parsing_c/pretty_print_c.ml OCAMLC parsing_c/lib_parsing_c.ml cp parsing_c/visitor_c.cmo ocaml/visitor_c.cmo MENHIR parsing_cocci/parser_cocci_menhir.mly OCAMLC parsing_c/parsing_hacks.mli OCAMLC parsing_c/cpp_analysis_c.mli OCAMLC parsing_c/parse_c.mli OCAMLOPT ctl/pretty_print_ctl.ml OCAMLC ocaml/exposed_modules.mli OCAMLC ocaml/coccilib.mli OCAMLOPT extra/classic_patch.ml OCAMLOPT extra/kbuild.ml OCAMLOPT extra/maintainers.ml OCAMLC cocci.mli OCAMLOPT read_options.ml cp parsing_c/parse_c.cmi ocaml/parse_c.cmi OCAMLC parsing_c/parse_c.ml cp parsing_c/parser_c.cmo ocaml/parser_c.cmo cp parsing_c/pretty_print_c.cmo ocaml/pretty_print_c.cmo cp parsing_c/lib_parsing_c.cmo ocaml/lib_parsing_c.cmo cp commons/common.cmx ocaml/common.cmx OCAMLOPT commons/ograph_simple.ml OCAMLOPT commons/ograph_extended.ml OCAMLOPT globals/iteration.ml OCAMLOPT parsing_cocci/ast_cocci.ml OCAMLOPT parsing_cocci/cocci_grep.ml OCAMLOPT parsing_cocci/dpll.ml OCAMLOPT parsing_cocci/git_grep.ml OCAMLOPT parsing_cocci/command_line.ml OCAMLOPT parsing_c/flag_parsing_c.ml OCAMLOPT parsing_c/parsing_stat.ml OCAMLOPT parsing_c/token_c.ml OCAMLOPT parsing_c/semantic_c.ml OCAMLC parsing_c/unparse_c.mli OCAMLC parsing_c/cpp_ast_c.mli OCAMLOPT ctl/ctl_engine.ml OCAMLC python/yes_pycocci.mli OCAMLOPT popl09/ast_popl.ml OCAMLOPT -o extra/extra.cmxa OCAMLOPT tools/spgen/source/globals.ml OCAMLOPT tools/spgen/source/ast_tostring.ml cp parsing_c/parse_c.cmo ocaml/parse_c.cmo cp parsing_c/token_c.cmx ocaml/token_c.cmx cp parsing_c/flag_parsing_c.cmx ocaml/flag_parsing_c.cmx cp globals/iteration.cmx ocaml/iteration.cmx cp parsing_cocci/ast_cocci.cmx ocaml/ast_cocci.cmx OCAMLOPT -o commons/commons.cmxa OCAMLOPT -o globals/globals.cmxa OCAMLOPT parsing_cocci/ast0_cocci.ml OCAMLOPT parsing_cocci/pretty_print_cocci.ml OCAMLOPT parsing_c/ast_c.ml OCAMLOPT popl09/insert_quantifiers.ml cp parsing_c/ast_c.cmx ocaml/ast_c.cmx cp parsing_cocci/ast0_cocci.cmx ocaml/ast0_cocci.cmx OCAMLOPT parsing_cocci/visitor_ast0_types.ml OCAMLOPT parsing_cocci/visitor_ast.ml OCAMLOPT parsing_cocci/compute_lines.ml OCAMLOPT parsing_cocci/top_level.ml OCAMLOPT parsing_cocci/arity.ml OCAMLOPT parsing_cocci/index.ml OCAMLOPT parsing_cocci/data.ml OCAMLOPT parsing_c/includes.ml OCAMLOPT parsing_c/control_flow_c.ml OCAMLOPT parsing_c/lexer_parser.ml OCAMLOPT parsing_c/type_c.ml OCAMLOPT ctl/wrapper_ctl.ml OCAMLOPT ocaml/externalanalysis.ml OCAMLOPT engine/lib_engine.ml OCAMLOPT engine/check_exhaustive_pattern.ml OCAMLOPT engine/check_reachability.ml OCAMLOPT engine/isomorphisms_c_c.ml OCAMLOPT engine/asttomember.ml OCAMLOPT engine/ctltotex.ml OCAMLOPT popl09/asttopopl.ml OCAMLOPT popl09/pretty_print_popl.ml OCAMLOPT parsing_cocci/visitor_ast0.ml OCAMLOPT parsing_cocci/stmtlist.ml OCAMLOPT parsing_cocci/free_vars.ml OCAMLOPT parsing_cocci/safe_for_multi_decls.ml OCAMLOPT parsing_cocci/cleanup_rules.ml OCAMLOPT parsing_cocci/disjdistr.ml OCAMLDEP parsing_cocci/parser_cocci_menhir.ml OCAMLDEP parsing_cocci/parser_cocci_menhir.mli OCAMLOPT parsing_cocci/get_constants2.ml OCAMLOPT parsing_cocci/re_constraints.ml OCAMLOPT parsing_c/visitor_c.ml OCAMLOPT -o ctl/ctl.cmxa OCAMLC parsing_cocci/parser_cocci_menhir.mli OCAMLOPT parsing_cocci/id_utils.ml OCAMLC parsing_cocci/lexer_cocci.mli OCAMLC parsing_cocci/lexer_script.mli OCAMLOPT parsing_cocci/adjacency.ml OCAMLOPT parsing_cocci/commas_on_lists.ml OCAMLOPT tools/spgen/source/detect_patch.ml OCAMLOPT parsing_cocci/ast0toast.ml OCAMLOPT parsing_cocci/iso_compile.ml OCAMLOPT parsing_cocci/simple_assignments.ml OCAMLOPT parsing_cocci/get_metas.ml OCAMLOPT parsing_cocci/check_meta.ml OCAMLOPT parsing_cocci/test_exps.ml OCAMLOPT parsing_cocci/unitary_ast0.ml OCAMLOPT parsing_cocci/adjust_pragmas.ml OCAMLOPT parsing_c/lib_parsing_c.ml OCAMLOPT parsing_c/parsing_consistency_c.ml OCAMLOPT tools/spgen/source/meta_variable.ml OCAMLOPT tools/spgen/source/snapshot.ml cp parsing_c/visitor_c.cmx ocaml/visitor_c.cmx OCAMLOPT parsing_cocci/unparse_ast0.ml OCAMLOPT parsing_cocci/unify_ast.ml OCAMLOPT parsing_cocci/type_infer.ml OCAMLOPT parsing_c/includes_cache.ml OCAMLOPT parsing_c/control_flow_c_build.ml OCAMLOPT parsing_c/pretty_print_c.ml OCAMLOPT parsing_c/danger.ml OCAMLOPT engine/c_vs_c.ml OCAMLOPT tools/spgen/source/user_input.ml OCAMLOPT tools/spgen/source/position_generator.ml OCAMLOPT tools/spgen/source/rule_header.ml OCAMLOPT tools/spgen/source/script_rule.ml OCAMLOPT tools/spgen/source/file_transform.ml OCAMLOPT tools/spgen/source/spgen_interactive.ml OCAMLOPT tools/spgen/source/spgen_config.ml cp parsing_c/pretty_print_c.cmx ocaml/pretty_print_c.cmx cp parsing_c/lib_parsing_c.cmx ocaml/lib_parsing_c.cmx OCAMLOPT parsing_cocci/iso_pattern.ml OCAMLOPT parsing_cocci/comm_assoc.ml OCAMLOPT parsing_cocci/context_neg.ml OCAMLOPT parsing_cocci/parse_aux.ml OCAMLOPT parsing_c/parser_c.ml OCAMLOPT parsing_c/unparse_cocci.ml OCAMLOPT ocaml/ocamlcocci_aux.ml OCAMLOPT python/pycocci_aux.ml OCAMLOPT engine/pretty_print_engine.ml OCAMLOPT tools/spgen/source/disj_generator.ml cp parsing_c/parser_c.cmx ocaml/parser_c.cmx OCAMLOPT parsing_cocci/insert_plus.ml OCAMLOPT parsing_cocci/parser_cocci_menhir.ml OCAMLOPT parsing_c/lexer_c.ml OCAMLOPT parsing_c/parse_string_c.ml OCAMLOPT parsing_c/token_helpers.ml OCAMLOPT parsing_c/unparse_hrule.ml OCAMLOPT engine/asttoctl2.ml OCAMLOPT tools/spgen/source/rule_body.ml cp parsing_c/lexer_c.cmx ocaml/lexer_c.cmx OCAMLOPT parsing_cocci/single_statement.ml OCAMLOPT parsing_cocci/function_prototypes.ml OCAMLOPT parsing_c/token_views_c.ml OCAMLOPT parsing_c/parsing_recovery_c.ml OCAMLOPT parsing_c/unparse_c.ml OCAMLOPT parsing_c/comment_annotater_c.ml OCAMLOPT tools/spgen/source/context_rule.ml OCAMLOPT parsing_c/cpp_token_c.ml File "parsing_c/cpp_token_c.ml", line 433, characters 23-51: 433 | | DefineHint (HintMacroStatement as hint) -> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Warning 26: unused variable hint. OCAMLOPT parsing_c/parsing_hacks.ml OCAMLOPT popl09/popltoctl.ml OCAMLOPT popl09/popl.ml OCAMLOPT -o popl09/popl09.cmxa OCAMLOPT parsing_c/cpp_analysis_c.ml OCAMLOPT parsing_c/parse_c.ml OCAMLOPT parsing_c/cpp_ast_c.ml OCAMLOPT parsing_c/type_annoter_c.ml OCAMLOPT parsing_c/compare_c.ml OCAMLOPT ocaml/exposed_modules.ml cp parsing_c/parse_c.cmx ocaml/parse_c.cmx OCAMLOPT parsing_c/test_parsing_c.ml OCAMLOPT ocaml/coccilib.ml OCAMLOPT -o parsing_c/parsing_c.cmxa OCAMLOPT ocaml/yes_prepare_ocamlcocci.ml OCAMLOPT ocaml/run_ocamlcocci.ml OCAMLOPT python/yes_pycocci.ml OCAMLOPT python/pycocci.ml OCAMLOPT ocaml/prepare_ocamlcocci.ml OCAMLOPT -o ocaml/ocaml.cmxa OCAMLOPT -o python/python.cmxa OCAMLOPT engine/cocci_vs_c.ml OCAMLOPT engine/postprocess_transinfo.ml OCAMLOPT engine/pattern_c.ml OCAMLOPT engine/transformation_c.ml OCAMLOPT engine/ctlcocci_integration.ml OCAMLOPT -o engine/engine.cmxa OCAMLOPT parsing_cocci/lexer_cocci.ml OCAMLOPT parsing_cocci/lexer_script.ml OCAMLOPT parsing_cocci/parse_cocci.ml OCAMLOPT -o parsing_cocci/parsing_cocci.cmxa OCAMLOPT cocci.ml OCAMLOPT tools/spgen/source/spgen.ml OCAMLOPT tools/spgen/source/spgen_test.ml OCAMLOPT tools/spgen/source/main.ml OCAMLOPT -o tools/spgen/source/spgen.opt OCAMLOPT testing.ml OCAMLOPT enter.ml OCAMLOPT main.ml OCAMLOPT -o spatch.opt make[1]: Leaving directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' debian/rules override_dh_auto_test-arch make[1]: Entering directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' /usr/bin/make check || echo "IGNORING FAILED TESTS" make[2]: Entering directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' ./spatch.opt --testall --no-update-score-file init_defs_builtins: /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/standard.h 62.res diff = --- tests/62.c +++ /tmp/cocci-output-1410470-9f6a85-62.c @@ -1,8 +1,12 @@ static struct usb_driver carl9170_driver = { .id_table = carl9170_usb_ids, +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) .soft_unbind = 1, +#endif #ifdef CONFIG_PM .reset_resume = carl9170_usb_resume, #endif /* CONFIG_PM */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) .disable_hub_initiated_lpm = 1, +#endif }; a.res a3d.res diff = --- tests/a3d.c +++ /tmp/cocci-output-1410470-f3f3a2-a3d.c @@ -6,13 +6,13 @@ struct a3d { static void a3d_connect(struct gameport *gameport, struct gameport_dev *dev) { struct a3d *a3d; - a3d->adc.idbus = BUS_GAMEPORT; - a3d->dev.idbus = BUS_GAMEPORT; + a3d->adc.id.bustype = BUS_GAMEPORT; + a3d->dev.id.bustype = BUS_GAMEPORT; } static void a3d_connect(struct gameport *gameport, struct gameport_dev *dev) { struct a3d *a3d; - a3d->adc.idbus = BUS_GAMEPORT; + a3d->adc.id.bustype = BUS_GAMEPORT; } a_and_e.res a_and_e_ver1.res diff = --- tests/a_and_e_ver1.c +++ /tmp/cocci-output-1410470-55c843-a_and_e_ver1.c @@ -1,6 +1,7 @@ void main(int i) { g(); + f(2, 0); if(1) f(1,2); else ab.res warning: line 4: should a be a metavariable? diff = --- tests/ab.c +++ /tmp/cocci-output-1410470-7e9d0d-ab.c @@ -1,5 +1,5 @@ int main () { foo = 5; - a = 12; + b = 12; xxx = 12; } action.res diff = --- tests/action.c +++ /tmp/cocci-output-1410470-bc6d50-action.c @@ -1,10 +1,9 @@ void work() { if (x) - { - action(el); - return; - } + goto last_action; + code(); + last_action: action(el); } add1.res diff = --- tests/add1.c +++ /tmp/cocci-output-1410470-fd76c6-add1.c @@ -7,6 +7,9 @@ static int create_scheduling_groups(void ret = build_groups(sd, i); } + if (!sd) + return 0; + list_for_each_entry(sd, cfs_ipa_topology, siblings) { ret = build_lower_groups(sd); } addaft.res diff = --- tests/addaft.c +++ /tmp/cocci-output-1410470-79a631-addaft.c @@ -1,16 +1,8 @@ int main () { foo(); - if (x) { - a(); - b(); - c(); - } + bar(); foo(); - while (x) { - a(); - if (b()) continues; - c(); - } + bar(); foo(); - r(); + bar(); } addbefore.res diff = --- tests/addbefore.c +++ /tmp/cocci-output-1410470-b9b29f-addbefore.c @@ -1,5 +1,6 @@ int main () { if (x) { + foo(); goto out; } after(); addbeforeafter.res diff = --- tests/addbeforeafter.c +++ /tmp/cocci-output-1410470-68271c-addbeforeafter.c @@ -1,6 +1,8 @@ int main () { if (x) { + foo(); goto out; + bar(); } after(); out: addelse.res diff = --- tests/addelse.c +++ /tmp/cocci-output-1410470-834fce-addelse.c @@ -1,3 +1,2 @@ int main () { - if (x == 12) return 6; } addes.res diff = --- tests/addes.c +++ /tmp/cocci-output-1410470-7fd956-addes.c @@ -1 +1,3 @@ int i; +struct foo { +}; addfield.res diff = --- tests/addfield.c +++ /tmp/cocci-output-1410470-10b1dd-addfield.c @@ -1,4 +1,6 @@ struct i2c_client I = { - .name = E, .foo = 16, + .dev = { + .name = E, + }, }; addfield2.res diff = --- tests/addfield2.c +++ /tmp/cocci-output-1410470-987087-addfield2.c @@ -1,17 +1,21 @@ struct foo { + int roto; int titi; }; foo() { + roto(); start(); } struct bar { int titi; + int roto; }; bar() { start(); + roto(); } addif.res diff = --- tests/addif.c +++ /tmp/cocci-output-1410470-6f5224-addif.c @@ -1,7 +1,19 @@ +#ifdef FOO +/* some comment */ +int xxx() { + /* a comment by itself */ + return 12;/* another comment */ } +#endif static int foo() { return 12; } +#ifdef FOO +/* some comment */ +int xxx() { + /* a comment by itself */ + return 12;/* another comment */ } +#endif static int bar() { return 12; } addif1.res diff = --- tests/addif1.c +++ /tmp/cocci-output-1410470-989fa5-addif1.c @@ -1,7 +1,15 @@ +#ifdef FOO +int xxx() { + return 12; } +#endif static int foo() { return 12; } +#ifdef FOO +int xxx() { + return 12; } +#endif static int bar() { return 12; } addif2.res diff = --- tests/addif2.c +++ /tmp/cocci-output-1410470-fc93fd-addif2.c @@ -1,7 +1,13 @@ +#ifdef FOO +int/*foo*/ xxx; +#endif static int foo() { return 12; } +#ifdef FOO +int/*foo*/ xxx; +#endif static int bar() { return 12; } addifdef.res diff = --- tests/addifdef.c +++ /tmp/cocci-output-1410470-905e3e-addifdef.c @@ -1,10 +1,14 @@ #ifdef FOO +#ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) int one () { return 1; } +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */ #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,1) */ /* comment about two */ +#ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) int two () { return 2; } +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */ addifelse.res diff = --- tests/addifelse.c +++ /tmp/cocci-output-1410470-cd34bf-addifelse.c @@ -1,8 +1,14 @@ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) static void rfcomm_l2data_ready(struct sock *sk) { BT_DBG("%p", sk); rfcomm_schedule(); } +#else +static void backport_rfcomm_l2data_ready(struct sock *sk, int unused){ + rfcomm_l2data_ready(sk); +} +#endif static int rfcomm_l2sock_create(struct socket **sock) { addifelse2.res diff = --- tests/addifelse2.c +++ /tmp/cocci-output-1410470-53eb57-addifelse2.c @@ -1,8 +1,15 @@ +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) +static void backport_rfcomm_l2data_ready(struct sock *sk, int unused){ + rfcomm_l2data_ready(sk); +} +#else + static void rfcomm_l2data_ready(struct sock *sk) { BT_DBG("%p", sk); rfcomm_schedule(); } +#endif static int rfcomm_l2sock_create(struct socket **sock) { addinc.res diff = --- tests/addinc.c +++ /tmp/cocci-output-1410470-86950f-addinc.c @@ -1,4 +1,5 @@ #ifndef FOO #define FOO #include +#include #endif addtoo.res diff = --- tests/addtoo.c +++ /tmp/cocci-output-1410470-e2a2f3-addtoo.c @@ -1,16 +1,8 @@ int main () { - if (x) { - a(); - b(); - c(); - } + bar(); foo(); - while (x) { - a(); - if (b()) continues; - c(); - } + bar(); foo(); - r(); + bar(); foo(); } addtrace.res diff = --- tests/addtrace.c +++ /tmp/cocci-output-1410470-e8812d-addtrace.c @@ -2,13 +2,24 @@ short VerDate(char *pcDate) { short sRetour = 0; if ( pcDate == 0 ) { - sRetour = 1; + trace("ifth"); + { + sRetour = 1; + } } - if ( pcDate == 0 ) - sRetour = 1; + trace("endif"); if ( pcDate == 0 ) { + trace("ifth"); sRetour = 1; - return sRetour; } + trace("endif"); + if ( pcDate == 0 ) { + trace("ifth"); + { + sRetour = 1; + return sRetour; + } + } + trace("endif"); return sRetour; } after_if.res diff = --- tests/after_if.c +++ /tmp/cocci-output-1410470-584b74-after_if.c @@ -1,4 +1,5 @@ #ifdef ELMC_MULTICAST static void set_multicast_list(struct net_device *dev); #endif -static struct ethtool_ops netdev_ethtool_ops; +static const struct ethtool_ops netdev_ethtool_ops; + allex.res diff = --- tests/allex.c +++ /tmp/cocci-output-1410470-2bd296-allex.c @@ -6,7 +6,7 @@ int main () { goto out; } } - if (x) return 15; + if (x) return 200; out: return rc; } allex2.res diff = --- tests/allex2.c +++ /tmp/cocci-output-1410470-ba117b-allex2.c @@ -8,5 +8,5 @@ int main () { } return 15; out: - return 0; + return 100; } allex3.res diff = --- tests/allex3.c +++ /tmp/cocci-output-1410470-67ec30-allex3.c @@ -9,5 +9,4 @@ int main () { } return 15; out: - return 0; } andid.res diff = --- tests/andid.c +++ /tmp/cocci-output-1410470-e24863-andid.c @@ -1,5 +1,5 @@ int main () { - int frontandback = 12; + int test = 12; int front = 12; int back = 12; } anon.res diff = --- tests/anon.c +++ /tmp/cocci-output-1410470-022ce9-anon.c @@ -12,5 +12,5 @@ static int ppa_queuecommand(struct scsi_ void (*done) (struct scsi_cmnd *)) { ppa_struct *dev = ppa_dev(cmd->device->host); - schedule_work(&dev->ppa_tq); + schedule_delayed_work(&dev->ppa_tq, 0); } anonfield.res diff = --- tests/anonfield.c +++ /tmp/cocci-output-1410470-5b5ba3-anonfield.c @@ -1,3 +1,3 @@ struct { - int; + bool; }; ar.res diff = --- tests/ar.c +++ /tmp/cocci-output-1410470-8993cd-ar.c @@ -4,9 +4,4 @@ int main() { struct foo *x; struct bar *y; struct foo z[15]; - - x->y = 12; - y->a->y = 12; - y->b[7].y = 12; - z[15].y = 12; } arg.res diff = --- tests/arg.c +++ /tmp/cocci-output-1410470-f24cf8-arg.c @@ -1,6 +1,6 @@ int main () { - foo(bar()); - foo(1,bar()); - foo(bar(),2); - foo(1,bar(),2); + foo(); + foo(1); + foo(2); + foo(1,2); } argument.res diff = --- tests/argument.c +++ /tmp/cocci-output-1410470-9d8790-argument.c @@ -1,8 +1,5 @@ void main(int i){ - f(1,2,3); - - h(1,2); - h(); + g(3, 2, 1); } arparam.res diff = --- tests/arparam.c +++ /tmp/cocci-output-1410470-232b3d-arparam.c @@ -1,3 +1,8 @@ +int g(int q[1024]) +{ + return 12; +} + int main(int q[1024]) { return 12; } array_init.res diff = --- tests/array_init.c +++ /tmp/cocci-output-1410470-7922ac-array_init.c @@ -1,3 +1,2 @@ static int term[MAX_ECARDS] = { 1, 1, 1, 1, 1, 1, 1, 1 }; -MODULE_PARM(term, "1-8i"); array_size.res diff = --- tests/array_size.c +++ /tmp/cocci-output-1410470-3dd64b-array_size.c @@ -1,2 +1,2 @@ -#define MAX_SETUP_STRINGS (sizeof(setup_strings) / sizeof(char *)) +#define MAX_SETUP_STRINGS ARRAY_SIZE(setup_strings) #define SETUP_BUFFER_SIZE 200 arraysz.res diff = --- tests/arraysz.c +++ /tmp/cocci-output-1410470-0f2779-arraysz.c @@ -7,4 +7,4 @@ typedef struct signature { static const Signature signatures[] = { {"SSTBIOS", 0x0000d, 7} /* "SSTBIOS" @ offset 0x0000d */ }; -#define NUM_SIGNATURES (sizeof(signatures)/sizeof(Signature)) +#define NUM_SIGNATURES ARRAY_SIZE(signatures) as_stm.res diff = --- tests/as_stm.c +++ /tmp/cocci-output-1410470-36483d-as_stm.c @@ -1,3 +1,5 @@ int main () { +#ifdef BEFORE if (f()) return 15; +#endif } assign_deref_funcall_in_macro_it.res (ONCE) already tagged but only removed, so safe diff = --- tests/assign_deref_funcall_in_macro_it.c +++ /tmp/cocci-output-1410470-2615c6-assign_deref_funcall_in_macro_it.c @@ -1,13 +1,5 @@ #define for_one(ignored) for (int i = 0; i == 0; ++i) -int *id(int *ptr) { - return ptr; } -int main(void) { - int x = 1; - int *ptr = &x; - for_one(1) - *id(ptr) = 0; - return x; } attradd.res diff = --- tests/attradd.c +++ /tmp/cocci-output-1410470-db4d37-attradd.c @@ -1,3 +1,5 @@ int main () { - char f; + char __attribute__((aligned(1))) f; } +// some comment +// some other comment attrs2groups.res diff = --- tests/attrs2groups.c +++ /tmp/cocci-output-1410470-ebb9c5-attrs2groups.c @@ -3,18 +3,24 @@ static ssize_t devspec_show(struct devic { return 42; } +static BUG(); +NOBUG(); static ssize_t name_show(struct device *dev, struct device_attribute *attr, char *buf) { return 0; } +static BUG(); +NOBUG(); static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) { return 1; } +static BUG(); +NOBUG(); struct device_attribute ibmebus_bus_device_attrs[] = { auto.res warning: rule starting on line 3: metavariable t not used in the - or context code exn while in timeout_function b1.res diff = --- tests/b1.c +++ /tmp/cocci-output-1410470-18216e-b1.c @@ -1,7 +1,9 @@ int main () { while (1) { - if (x > 1 ) { foo(); break; } + if (x > 1 ) { foo(); + bar(); break; } } while (1) - if (x > 1 ) { foo(); break; } + if (x > 1 ) { foo(); + bar(); break; } } b2.res diff = --- tests/b2.c +++ /tmp/cocci-output-1410470-dfe50f-b2.c @@ -1,9 +1,11 @@ int main () { if (1) { - if (x > 1 ) { foo(); brk(); } + if (x > 1 ) { foo(); + bar(); brk(); } } else aaa(); if (1) - while (x > 1 ) { foo(); brk(); } + while (x > 1 ) { foo(); + bar(); brk(); } else aaa(); foo(); brk(); } bad_iso_example.res bad_kfree.res diff = --- tests/bad_kfree.c +++ /tmp/cocci-output-1410470-8f7c26-bad_kfree.c @@ -14,7 +14,7 @@ int bad () { kfree(itv[i]); print("foo",itv[i]); print("foo",itv[i]); - a = itv[i]; + a = NULL; itv[i]=12; a = itv[i]; } bad_ptr_print.res diff = --- tests/bad_ptr_print.c +++ /tmp/cocci-output-1410470-802a75-bad_ptr_print.c @@ -1,4 +1,4 @@ static inline int tester(struct usb_endpoint_descriptor *epd) { - f((struct foo *)x); + g((struct foo *)x); } bad_typedef.res diff = --- tests/bad_typedef.c +++ /tmp/cocci-output-1410470-fff1e5-bad_typedef.c @@ -4,7 +4,7 @@ typedef struct { int main1 (scsi_changer *x) { - foo(x->lock); + foo(x->new_lock); } struct scsi_changer_two { @@ -13,5 +13,5 @@ struct scsi_changer_two { int main2 (struct scsi_changer_two *x) { - foo(x->lock); + foo(x->new_lock); } badcfg.res diff = --- tests/badcfg.c +++ /tmp/cocci-output-1410470-845399-badcfg.c @@ -3,7 +3,7 @@ const char *netdev_cmd_to_name(enum netd #define N(val) \ case NETDEV_##val: \ return "NETDEV_" __stringify(val); - switch (cmd) { + switch (replacement) { N(UP) N(DOWN) N(PRE_CHANGEADDR) } badexp.res diff = --- tests/badexp.c +++ /tmp/cocci-output-1410470-688c5e-badexp.c @@ -1,4 +1,4 @@ int main() { foo(a); - b = a; + b = 3 +a * 27; } badpos.res previous modification: MINUS >>> xxx According to environment 0: current modification: MINUS According to environment 0: exn while in timeout_function badtypedef.res diff = --- tests/badtypedef.c +++ /tmp/cocci-output-1410470-6c50d3-badtypedef.c @@ -5,7 +5,7 @@ int main() { foo_t *b; foo_t *c; - xxx(a); - yyy(b); + aaa(a); + bbb(b); } badwhen.res diff = --- tests/badwhen.c +++ /tmp/cocci-output-1410470-def4c3-badwhen.c @@ -4,7 +4,5 @@ int main () { g(); } int second() { - f(); if (xfoo()) return; - g(); } badzero.res diff = --- tests/badzero.c +++ /tmp/cocci-output-1410470-9ef5e9-badzero.c @@ -4,7 +4,7 @@ int main () { int z; if (y - x == 0) return; if ((y - x) == 0) return; - if (y - z == 0) return; - if ((y - z) == 0) return; + if (27) return; + if (27) return; } bc_1.res warning: f: metavariable i not used in the - or context code exn while in timeout_function befS.res diff = --- tests/befS.c +++ /tmp/cocci-output-1410470-96a253-befS.c @@ -1,20 +1,32 @@ int main () { + foo(); xxx(); + foo(); if(y) { - rrr(); + foo(); + { + foo(); + rrr(); + } } } int main () { + foo(); xxx(); - if(y) + foo(); + if(y) { + foo(); rrr(); + } } int d() {} int main2 () { + foo(); yyy(); + foo(); xxx(); } before.res diff = --- tests/before.c +++ /tmp/cocci-output-1410470-7bc9c4-before.c @@ -1,4 +1,6 @@ int main () { + blah(); one(); + blah(); foo(); } ben.res diff = --- tests/ben.c +++ /tmp/cocci-output-1410470-2d1434-ben.c @@ -1,22 +1,20 @@ +static GType this_type = 0; +static const GTypeInfo this_info = { + sizeof(LassoProviderClass), + NULL, + NULL, + (GClassInitFunc)class_init, + NULL, + NULL, + sizeof(LassoProvider), + 0, + (GInstanceInitFunc)instance_init, + NULL, +}; GType lasso_provider_get_type() { - static GType this_type = 0; - if (!this_type) { - static const GTypeInfo this_info = { - sizeof (LassoProviderClass), - NULL, - NULL, - (GClassInitFunc) class_init, - NULL, - NULL, - sizeof(LassoProvider), - 0, - (GInstanceInitFunc) instance_init, - NULL - }; - this_type = g_type_register_static(LASSO_TYPE_NODE, "LassoProvider", &this_info, 0); } bigin.res diff = --- tests/bigin.c +++ /tmp/cocci-output-1410470-e43f1b-bigin.c @@ -9,5 +9,6 @@ int main() { if (x) if (x) blah(); + bar(); foo(); } bigrepl.res diff = --- tests/bigrepl.c +++ /tmp/cocci-output-1410470-db13f4-bigrepl.c @@ -1,6 +1,9 @@ int main () { - one(argument1(nested, argument), argument2(nested, argument), foo(), + one(argument1(nested, argument), argument2(nested, argument), + call(to, a, very, complicated, function, with, many, args), argument3(nested, argument)); - one(argument1(nested, argument), argument2(nested, argument), foo(), a(b)); - one(argument1(nested, argument), argument2(nested, argument), foo()); + one(argument1(nested, argument), argument2(nested, argument), + call(to, a, very, complicated, function, with, many, args), a(b)); + one(argument1(nested, argument), argument2(nested, argument), + call(to, a, very, complicated, function, with, many, args)); } binop.res diff = --- tests/binop.c +++ /tmp/cocci-output-1410470-7de583-binop.c @@ -2,10 +2,12 @@ void main() { int i = 0; int j = 0; - if( (i = j) + 0 ) { + i = j; + if(i + 0 ) { i = j; } - if( (i = j) + 0 != 0 ) { + i = j; + if(i + 0 != 0 ) { i = j; } } bitfield.res warning: rule starting on line 11: metavariable v not used in the - or context code diff = --- tests/bitfield.c +++ /tmp/cocci-output-1410470-637ffb-bitfield.c @@ -1,15 +1,15 @@ struct dvb_frontend { - struct dvb_frontend_ops* ops; + struct dvb_frontend_ops ops; }; typedef struct { - u8 RESET :1; - u8 IDLE :1; - u8 STOP :1; - u8 HIRQ0 :1; - u8 HIRQ1 :1; - u8 na0 :1; - u8 HABAV :1; - u8 na1 :1; + u8 RESET:2; + u8 IDLE:2; + u8 STOP:2; + u8 HIRQ0:2; + u8 HIRQ1:2; + u8 na0:2; + u8 HABAV:2; + u8 na1:2; } bcm3510_register_value; bitfield_matching.res exn while in timeout_function boolr.res diff = --- tests/boolr.c +++ /tmp/cocci-output-1410470-553217-boolr.c @@ -1,4 +1,3 @@ int main() { - bool i3, i4, i5; int b; } braces.res diff = --- tests/braces.c +++ /tmp/cocci-output-1410470-8fbec2-braces.c @@ -1,9 +1,9 @@ -#define main { foo(); } +#define main foo(); int main() { foo(); } -int main() { if (x) { foo(); } } +int main() { if (x) foo(); } -int main() { while (x) { foo(); } } +int main() { while (x) foo(); } -int main() { if (x) { foo(); } else { foo(); } } +int main() { if (x) foo(); else foo(); } branchparen.res diff = --- tests/branchparen.c +++ /tmp/cocci-output-1410470-3a24ab-branchparen.c @@ -1,6 +1,10 @@ int main () { - if (x) + if (x) { + foo(); xxx(); - else + } + else { + foo(); xxx(); + } } break.res diff = --- tests/break.c +++ /tmp/cocci-output-1410470-48e4bd-break.c @@ -5,8 +5,10 @@ int main () { x = 15; if (x > 1 ) { foo(); break; } } while (a == 3); - if (x > 1 ) { foo(); break; } - if (x > 1 ) { foo(); break; } + if (x > 1 ) { foo(); + bar(); break; } + if (x > 1 ) { foo(); + bar(); break; } } } @@ -18,6 +20,7 @@ int mainx () { if (x > 1 ) { xxx(); continue; } } while (a == 3); if (x > 1 ) { xxx(); break; } - if (x > 1 ) { xxx(); continue; } + if (x > 1 ) { xxx(); + bar(); continue; } } } bug1.res diff = --- tests/bug1.c +++ /tmp/cocci-output-1410470-146a26-bug1.c @@ -1,4 +1,5 @@ -static int typhoon_ioctl(struct video_device *dev, unsigned int cmd,void *arg) +static int typhoon_ioctl(struct inode *i, struct file *f, unsigned int cmd, + void *arg) { struct typhoon_device *typhoon = dev->priv; return 0; bugloop.res diff = --- tests/bugloop.c +++ /tmp/cocci-output-1410470-13fd53-bugloop.c @@ -8,8 +8,8 @@ static int stir_transmit_thread(void *ar while (x) { /* if suspending, then power off and wait */ - if (unlikely(current->flags & PF_FREEZE)) { - refrigerator(PF_FREEZE); + if (unlikely(freezing(current))) { + refrigerator(); } } bugon.res diff = --- tests/bugon.c +++ /tmp/cocci-output-1410470-e64240-bugon.c @@ -1,5 +1,4 @@ static void b44_tx(struct b44 *bp) { - if (unlikely(skb == NULL)) - BUG(); + BUG_ON(skb == NULL); } bus.res diff = --- tests/bus.c +++ /tmp/cocci-output-1410470-a53900-bus.c @@ -1,5 +1,5 @@ int main () { struct foo *dev; - dev->probe(); - foo(); + c1(); + c2(); } cards.res diff = --- tests/cards.c +++ /tmp/cocci-output-1410470-18aa79-cards.c @@ -1,3 +1,3 @@ -MODULE_PARM(io, "1-" __MODULE_STRING(MAX_CARDS) "i"); + int x; caseprint.res diff = --- tests/caseprint.c +++ /tmp/cocci-output-1410470-09e8cb-caseprint.c @@ -3,4 +3,10 @@ int f() { case 12: return 0; case 1: return 2; } + switch (x) { + case 12: + return 0; + case 1: + return 2; + } } cast.res diff = --- tests/cast.c +++ /tmp/cocci-output-1410470-211eb3-cast.c @@ -1,3 +1,2 @@ int main () { - ((struct xxx *)E)->foo = 12; } cast_iso.res diff = --- tests/cast_iso.c +++ /tmp/cocci-output-1410470-362714-cast_iso.c @@ -1,6 +1,6 @@ static int vx_hwdep_dsp_load(snd_hwdep_t *hw, snd_hwdep_dsp_image_t *dsp) { - vx_core_t *vx = snd_magic_cast(vx_core_t, hw->private_data, return -ENXIO); - ak4117_t *chip = snd_magic_cast(ak4117_t, (void *)data, return); + vx_core_t *vx = hw->private_data; + ak4117_t *chip = (ak4117_t *)data; } castdecl.res diff = --- tests/castdecl.c +++ /tmp/cocci-output-1410470-2ffcc0-castdecl.c @@ -1,9 +1,9 @@ int main() { - long i1, i2; - long i3; - long lType = (long)TYPE_OBJ_DS_REPORT, lNuPageBloc = 0L; - unsigned char c1 = 'a', c2 = 'b'; - unsigned char c3 = 'c'; + int i1, i2; + int i3; + int lType = (int)TYPE_OBJ_DS_REPORT, lNuPageBloc = 0L; + char c1 = 'a', c2 = 'b'; + char c3 = 'c'; i1 = 11; i2 = 22; i3 = 33; cex_wishlist_complex1.res diff = --- tests/cex_wishlist_complex1.c +++ /tmp/cocci-output-1410470-286c69-cex_wishlist_complex1.c @@ -1,6 +1,6 @@ #include int main() { - double d; + float d; float f; double complex dc; float complex fc; cex_wishlist_complex2.res diff = --- tests/cex_wishlist_complex2.c +++ /tmp/cocci-output-1410470-a11ee0-cex_wishlist_complex2.c @@ -2,7 +2,7 @@ int main() { double d; float f; - long double complex ldc; + float ldc; double complex dc; float complex fc; return 0; cex_wishlist_complex3.res diff = --- tests/cex_wishlist_complex3.c +++ /tmp/cocci-output-1410470-8bea6f-cex_wishlist_complex3.c @@ -2,7 +2,7 @@ int main() { double d; float f; - double complex dc; - float complex fc; + int dc; + double complex fc; return 0; } change.res diff = --- tests/change.c +++ /tmp/cocci-output-1410470-7e4704-change.c @@ -1,5 +1,6 @@ int main () { foo(); + blah(one, two); this_type = g_type_register_static(LASSO_TYPE_NODE, "LassoProvider", &this_info, 0); } change_type.res diff = --- tests/change_type.c +++ /tmp/cocci-output-1410470-fdc192-change_type.c @@ -1,4 +1,4 @@ int main () { struct foo *x; - return (struct blah *)x; + return 42; } changei.res diff = --- tests/changei.c +++ /tmp/cocci-output-1410470-faa0ca-changei.c @@ -1,7 +1,7 @@ -typedef struct i istruct; +typedef struct i xxx; -int main (int x) { - char c; - return x + c; +int xxx (int xxx) { + char xxx; + return xxx + xxx; } cocci_args.res diff = --- tests/cocci_args.c +++ /tmp/cocci-output-1410470-06a1da-cocci_args.c @@ -1,3 +1,3 @@ int main () { - f(); + g(a); } com.res diff = --- tests/com.c +++ /tmp/cocci-output-1410470-a8122d-com.c @@ -1,8 +1,3 @@ int main() { - foo(); - /* a comment */ - foo(); - /* a comment */ - foo(); bar(); } comadd.res diff = --- tests/comadd.c +++ /tmp/cocci-output-1410470-5f3894-comadd.c @@ -1,3 +1,5 @@ +// some comment +// some other comment int main () { return 12; } comj.res diff = --- tests/comj.c +++ /tmp/cocci-output-1410470-8d688d-comj.c @@ -2,6 +2,8 @@ int foo(int bar) { int i, j; for (i = 5; --i>=0; ) { + /* comments are overrated */ + j -= 3; j+=54; } return j; comma.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_6d68c8.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_6d68c8.ml Compilation OK! Loading ML code of the SP... diff = --- tests/comma.c +++ /tmp/cocci-output-1410470-7650c5-comma.c @@ -3,9 +3,9 @@ show_cpuinfo (struct seq_file *m, void * { for (i = 0; i < ARRAY_SIZE(feature_bits) && size > 1; ++i) { cp += snprintf(cp, size, "%s%s", sep, - feature_bits[i].feature_name), + feature_bits[i].feature_name); cp += snprintf(cp, size, "%s%s", sep, - feature_bits[i].feature_name), + feature_bits[i].feature_name); sep = ", "; } } comment_brace.res diff = --- tests/comment_brace.c +++ /tmp/cocci-output-1410470-b4119a-comment_brace.c @@ -1,7 +1,9 @@ int main () { - while ((inw(base) & 0xad00) != 0) /* data status */ + while ((inw(base) & 0xad00) != 0) /* data status */ { + release_region(); continue; + } return 0; } comment_brace2.res diff = --- tests/comment_brace2.c +++ /tmp/cocci-output-1410470-d98301-comment_brace2.c @@ -1,7 +1,9 @@ int main () { - while ((inw(base) & 0xad00) != 0) /* data status */ + while ((inw(base) & 0xad00) != 0) /* data status */ { + release_region(); continue; + } return 0; } comment_line.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_5ce7b9.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_5ce7b9.ml File "/tmp/ocaml_cocci_5ce7b9.ml", line 31, characters 4-5: 31 | let p = match List.nth __args__ 1 with Coccilib.Pos x -> x | _ -> failwith "bad value" in ^ Warning 26: unused variable p. Compilation OK! Loading ML code of the SP... 1 1 diff = --- tests/comment_line.c +++ /tmp/cocci-output-1410470-588faf-comment_line.c @@ -1,11 +1,9 @@ int main() { before(); - foo(); /*test*/ after(); - foo(); /*test*/ after(); } comment_middle.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_700a75.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_700a75.ml File "/tmp/ocaml_cocci_700a75.ml", line 30, characters 5-6: 30 | let f = match List.nth __args__ 0 with Coccilib.Str x -> x | _ -> failwith "bad value" in ^ Warning 26: unused variable f. Compilation OK! Loading ML code of the SP... diff = --- tests/comment_middle.c +++ /tmp/cocci-output-1410470-ea0393-comment_middle.c @@ -5,5 +5,4 @@ struct i { }; int main() { - foo(); } comments.res diff = --- tests/comments.c +++ /tmp/cocci-output-1410470-431ee9-comments.c @@ -1,5 +1,16 @@ int main() { + // Calls foo() + foo(); return 0; } +/** + Some info about @foo() + @return void +*/ +void foo() +{ + /* Do nothing */ +} + compare.res diff = --- tests/compare.c +++ /tmp/cocci-output-1410470-325555-compare.c @@ -1,7 +1,7 @@ struct aic7xxx_host { struct aic7xxx_cmd_queue { - Scsi_Cmnd *head; - Scsi_Cmnd *tail; + struct scsi_cmnd *head; + struct scsi_cmnd *tail; } completeq; unsigned char msg_buf[13]; /* The message for the target */ unsigned char msg_type; compare_const2.res diff = --- tests/compare_const2.c +++ /tmp/cocci-output-1410470-1ba512-compare_const2.c @@ -1,6 +1,6 @@ int main () { // int i,o; - if (0 == ((1 == i || 3 == i) - && (18 == o || 17 == o))) + if (((i == 1 || i == 3) + && (o == 18 || o == 17)) == 0) return -EINVAL; } condexp.res diff = --- tests/condexp.c +++ /tmp/cocci-output-1410470-012204-condexp.c @@ -5,7 +5,7 @@ main(int argc, char *argv[]) dpy = XOpenDisplay (displayname); if (!dpy) { fprintf (stderr, "%s: unable to open display \"%s\"\n", - ProgramName, XDisplayName (displayname)); + ProgramName, displayname ? displayname : getenv("DISPLAY")); Exit (1); } screenno = DefaultScreen (dpy); const.res warning: line 2: should text be a metavariable? warning: line 3: should buf be a metavariable? warning: line 3: should text be a metavariable? diff = --- tests/const.c +++ /tmp/cocci-output-1410470-134b33-const.c @@ -1,3 +1,3 @@ void foo(const char *text) { - strcat(buf->data, text); + strcat_safe(buf->data, buf->len, text); } const1bis.res warning: line 3: should i be a metavariable? diff = --- tests/const1bis.c +++ /tmp/cocci-output-1410470-108aa7-const1bis.c @@ -1,5 +1,5 @@ void foo(int j) { - const int i; + float i; int i; i++; } const_adding.res diff = --- tests/const_adding.c +++ /tmp/cocci-output-1410470-c930d7-const_adding.c @@ -2,6 +2,6 @@ void main(int i) { const struct file_operations a; - struct file_operations b; + const struct file_operations b; } const_array.res diff = --- tests/const_array.c +++ /tmp/cocci-output-1410470-b38a65-const_array.c @@ -24,9 +24,9 @@ static const struct foo *r128_family4[] }; int main () { - ent->driver_data = sizeof(r128_family)/sizeof(char *); - ent->driver_data = sizeof(r128_family1)/sizeof(char *); - ent->driver_data = sizeof(r128_family2)/sizeof(char *); - ent->driver_data = sizeof(r128_family3)/sizeof(struct foo *); - ent->driver_data = sizeof(r128_family4)/sizeof(struct foo *); + ent->driver_data = ARRAY_SIZE(r128_family); + ent->driver_data = ARRAY_SIZE(r128_family1); + ent->driver_data = ARRAY_SIZE(r128_family2); + ent->driver_data = ARRAY_SIZE(r128_family3); + ent->driver_data = ARRAY_SIZE(r128_family4); } const_implicit_iso.res diff = --- tests/const_implicit_iso.c +++ /tmp/cocci-output-1410470-3a91af-const_implicit_iso.c @@ -1,4 +1,4 @@ void main(double y) { - const int x; + const float x; } constptr.res diff = --- tests/constptr.c +++ /tmp/cocci-output-1410470-94bba9-constptr.c @@ -1,7 +1,7 @@ int main() { - const char * const *id; - const char ** const *id; - const char * const **id; - const char * const id; + const char * const *id1; + const char ** const *id2; + const char * const **id3; + const char * const id4; } constraints.res diff = --- tests/constraints.c +++ /tmp/cocci-output-1410470-8b9c7b-constraints.c @@ -1,23 +1,23 @@ void f() { - int k; + int *k; bool b; - bool *p; - bool **x[]; - char *y[]; + bool **p; + bool * x[]; + char y[]; f(1 == 2); f(1 & 3); g(1 & 2); g(1 != 2); g(1 <= 3); - h(1 == 2); + h(2 == 1); h(1 & 2); h(1 != 2); h(1 <= 2); } void -g(int a, int b, int c) +h(int a, int b, int c) { } constrem.res warning: line 9: should f be a metavariable? diff = --- tests/constrem.c +++ /tmp/cocci-output-1410470-ee518d-constrem.c @@ -1,3 +1 @@ -static const int a; -static const int (*f)(const int); constructor.res diff = --- tests/constructor.c +++ /tmp/cocci-output-1410470-b9e59d-constructor.c @@ -1,5 +1,5 @@ int main () { - imx_add_platform_device_dmamask(Ename, Eid, Eres, Enum_res, - Edata, Esize_data, Edma_mask); + changed_imx_add_platform_device_dmamask(Ename, Eid, Eres, Enum_res, Edata, + Esize_data, Edma_mask); } constty.res diff = --- tests/constty.c +++ /tmp/cocci-output-1410470-5417cb-constty.c @@ -1,7 +1,6 @@ int main () { const int x; int y; - f(x,int); f(y,int); f(x,const int); } constx.res diff = --- tests/constx.c +++ /tmp/cocci-output-1410470-a74b9e-constx.c @@ -1,8 +1,8 @@ int main() { - foo(12); + foobar(12, 12); foo(x); - foo(CONSTANT); - foo('a'); - foo("string"); - foo(1.0001); + foobar(CONSTANT, CONSTANT); + foobar('a', 'a'); + foobar("string", "string"); + foobar(1.0001, 1.0001); } countcalls.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_72d201.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_72d201.ml File "tests/countcalls.cocci", line 63, characters 30-46: Alert deprecated: Stdlib.String.lowercase Use String.lowercase_ascii instead. Compilation OK! Loading ML code of the SP... countcalls_python.res exn while in timeout_function cptr.res diff = --- tests/cptr.c +++ /tmp/cocci-output-1410470-90ae89-cptr.c @@ -1 +1 @@ -static const char *str = "..."; +static const char *const str = "..."; cr.res diff = --- tests/cr.c +++ /tmp/cocci-output-1410470-7df36b-cr.c @@ -1,7 +1,6 @@ int main(void) { #if ! HAVE_XYZ - f1(); - f2(); + f3(); #endif } cr1a.res diff = --- tests/cr1a.c +++ /tmp/cocci-output-1410470-3f81b1-cr1a.c @@ -6,14 +6,17 @@ int __init probe_base_port(int base) if (base) b = e = base; for (base = b; base <= e; base += 0x10) { - if (check_region(base, 0x10)) + if (!request_region(base, 0x10, req_reg_arg3)) continue; for (i = 0; i < 3; i++) fool = inw(base + 2); /* empty possibly uart_receive_buffer */ if ((inw(base + 6) & 0xffef) != 0x0001 || /* line_status */ - (inw(base) & 0xad00) != 0) + (inw(base) & 0xad00) != 0) { + release_region(base, 0x10); continue; + } return (base); + release_region(base, 0x10); } return 0; } cs_check.res warning: line 5: should handle be a metavariable? diff = --- tests/cs_check.c +++ /tmp/cocci-output-1410470-9121c1-cs_check.c @@ -4,7 +4,7 @@ do { last_fn = (fn); if ((last_ret = (re static void nsp_cs_config(dev_link_t *link) { client_handle_t handle = link->handle; - CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(handle, &tuple)); + CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(link, &tuple)); cs_failed: return; } cst.res diff = --- tests/cst.c +++ /tmp/cocci-output-1410470-b07a6e-cst.c @@ -1,5 +1,5 @@ int main(int x) { - emu10k1_t *emu = snd_magic_cast(1, 2, return -ENXIO); + emu10k1_t *emu = 4; int z = 12; return y; } cst_null.res diff = --- tests/cst_null.c +++ /tmp/cocci-output-1410470-acd93d-cst_null.c @@ -2,9 +2,8 @@ void* videobuf_alloc(unsigned int size) { struct videobuf_buffer *vb; - vb = kmalloc(size,GFP_KERNEL); + vb = kzalloc(size, GFP_KERNEL); if (vb != NULL) { - memset(vb,0,size); videobuf_dma_init(&vb->dma); init_waitqueue_head(&vb->done); vb->magic = MAGIC_BUFFER; @@ -17,9 +16,8 @@ void* videobuf_alloc(unsigned int size) { struct videobuf_buffer *vb; - vb = kmalloc(size,GFP_KERNEL); + vb = kzalloc(size, GFP_KERNEL); if (vb) { - memset(vb,0,size); videobuf_dma_init(&vb->dma); init_waitqueue_head(&vb->done); vb->magic = MAGIC_BUFFER; @@ -32,9 +30,8 @@ void* videobuf_alloc(unsigned int size) { struct videobuf_buffer *vb; - vb = kmalloc(size,GFP_KERNEL); + vb = kzalloc(size, GFP_KERNEL); if (NULL != vb) { - memset(vb,0,size); videobuf_dma_init(&vb->dma); init_waitqueue_head(&vb->done); vb->magic = MAGIC_BUFFER; cstr.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_fbaefd.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_fbaefd.ml Compilation OK! Loading ML code of the SP... diff = --- tests/cstr.c +++ /tmp/cocci-output-1410470-b55d24-cstr.c @@ -1,4 +1,8 @@ int main() { f(1,2,1,2,3); g(0,2,1,11,22,11,22,1,1,2,3); + h(1, 1); + h(1, 1); + h(1, 1); + h(2, 2); } cststr.res warning: line 4: should foo be a metavariable? diff = --- tests/cststr.c +++ /tmp/cocci-output-1410470-0e8346-cststr.c @@ -1,3 +1,3 @@ int main () { - foo((ptr_t)"blah"); + xxx((ptr_t)"blah"); } csw.res warning: line 4: should x be a metavariable? diff = --- tests/csw.c +++ /tmp/cocci-output-1410470-8efb56-csw.c @@ -1,14 +1,6 @@ int main() { switch (x) { - case XYZ: - link->state &= ~DEV_PRESENT; - if (link->state & DEV_CONFIG) { - bluecard_close(info); - bluecard_release(link); - } - break; case MID: mid(); break; - case FOO: bar(); break; } } dbg.res diff = --- tests/dbg.c +++ /tmp/cocci-output-1410470-b284ec-dbg.c @@ -4,5 +4,6 @@ static inline void alloc_resource(struct struct resource *pr, *r = &dev->resource[idx]; if (pr) - DBG("PCI"); + DBG("PCI");else + pr = NULL; } dbg1.res diff = --- tests/dbg1.c +++ /tmp/cocci-output-1410470-50221d-dbg1.c @@ -2,4 +2,5 @@ static inline void alloc_resource(struct pci_dev *dev, int idx) { DBG("PCI"); + E = NULL; } dc_close.res diff = --- tests/dc_close.c +++ /tmp/cocci-output-1410470-93dfba-dc_close.c @@ -5,6 +5,7 @@ initicc(struct IsdnCardState *cs) INIT_WORK(&cs->work, icc_bh, cs); cs->setstack_d = setstack_icc; + cs->DC_Send_Data = d_fill_fifo; cs->DC_Close = DC_Close_icc; cs->dc.icc.mon_rx = NULL; debug.res diff = --- tests/debug.c +++ /tmp/cocci-output-1410470-2fca3c-debug.c @@ -1,5 +1,4 @@ static int __init init_3c574_cs(void) { - DEBUG(0, "%s\n", version); return 0; } dec.res diff = --- tests/dec.c +++ /tmp/cocci-output-1410470-3d0fda-dec.c @@ -1,4 +1,5 @@ int f(int x) { + int z; static int y; return x; } decl.res diff = --- tests/decl.c +++ /tmp/cocci-output-1410470-443902-decl.c @@ -1,5 +1,6 @@ static int az_ioctl(int cmd, void *arg) { + foo(); return 0; } decl2.res warning: line 8: should x be a metavariable? diff = --- tests/decl2.c +++ /tmp/cocci-output-1410470-b88518-decl2.c @@ -1,6 +1,6 @@ static int az_ioctl(int cmd, void *arg) { - if (x) { + if (y) { return 0; } else { decl_space.res diff = --- tests/decl_space.c +++ /tmp/cocci-output-1410470-9b4ba4-decl_space.c @@ -1,4 +1,4 @@ int main () { - int *x = y; - int x = y; + int *x = g; + int x = g; } decl_split.res decl_star.res diff = --- tests/decl_star.c +++ /tmp/cocci-output-1410470-454b96-decl_star.c @@ -1,5 +1,5 @@ int main () { - int *x; - int x; + int *y; + int y; return x; } declmeta.res diff = --- tests/declmeta.c +++ /tmp/cocci-output-1410470-6432fd-declmeta.c @@ -1,7 +1,7 @@ -int b,c; +int c; -int b,c; +int c; int main() { - int b,c; + int c; } defe.res diff = --- tests/defe.c +++ /tmp/cocci-output-1410470-a440a4-defe.c @@ -1 +1,0 @@ -#define x 3 define_exp.res diff = --- tests/define_exp.c +++ /tmp/cocci-output-1410470-6f42ab-define_exp.c @@ -1,5 +1,5 @@ #define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? \ - SA_SHIRQ : SA_INTERRUPT) + IRQF_SHARED : IRQF_DISABLED) void main(int i) define_param.res diff = --- tests/define_param.c +++ /tmp/cocci-output-1410470-3646e4-define_param.c @@ -1,10 +1,10 @@ -#define fieldsize(a) (sizeof(a)/sizeof(*a)) + static int atari_proc_infos(unsigned char *nvram, char *buffer, int *len, off_t *begin, off_t offset, int size) { - for (i = fieldsize(boot_prefs) - 1; i >= 0; --i) { + for (i = ARRAY_SIZE(boot_prefs) - 1; i >= 0; --i) { if (nvram[1] == boot_prefs[i].val) { PRINT_PROC("%s\n", boot_prefs[i].name); break; defineinit.res diff = --- tests/defineinit.c +++ /tmp/cocci-output-1410470-255707-defineinit.c @@ -1,3 +1,3 @@ #define MYMACRO(adsf) { \ - .foo = (asdf),\ + .foo = (asdf) * 1000,\ } deftodo.res delete_function.res diff = --- tests/delete_function.c +++ /tmp/cocci-output-1410470-a685e0-delete_function.c @@ -2,12 +2,6 @@ int first () { return 0; } -int foo() { - a(); - a(); - a(); -} - int last () { return 0; } delp.res diff = --- tests/delp.c +++ /tmp/cocci-output-1410470-362404-delp.c @@ -1,4 +1,4 @@ int main () { return - (foo); + foo; } deref.res diff = --- tests/deref.c +++ /tmp/cocci-output-1410470-a547eb-deref.c @@ -1,6 +1,6 @@ int main () { int **q; - foo(*q+12); - xxx(q[0]+12); + foo(12); + xxx(12); yyy(q+12); } destroy.res diff = --- tests/destroy.c +++ /tmp/cocci-output-1410470-9b8cb6-destroy.c @@ -6,7 +6,12 @@ static void wlcore_nvs_cb(const struct f goto out; out_irq: +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) free_irq(wl->irq, wl); +#else + compat_free_threaded_irq(&private->irq_compat); + compat_destroy_threaded_irq(&wl->irq_compat); +#endif #ifdef foo out: release_firmware(fw); detect_cast_attr.res diff = --- tests/detect_cast_attr.c +++ /tmp/cocci-output-1410470-f01489-detect_cast_attr.c @@ -2,9 +2,9 @@ int func() { - char *a = (int __cast_attr) x; - char *a = (__cast_attr int) x; - char *a = (int __cast_attr *) x; - char *a = (int *__cast_attr) x; + char *a = (char *__cast_attr) x; + char *a = (__cast_attr char *) x; + char *a = (char *__cast_attr) x; + char *a = (char *__cast_attr) x; char *a = (int) x; } detect_macrodecl_attr.res warning: line 8: should a be a metavariable? diff = --- tests/detect_macrodecl_attr.c +++ /tmp/cocci-output-1410470-4ffe7c-detect_macrodecl_attr.c @@ -1,5 +1,5 @@ #define __macro_attr MACROANNOTATION -DECLARER(a, b) __macro_attr; +DECLARER(c, b) __macro_attr; DECLARER(a, b); detect_param_attr.res diff = --- tests/detect_param_attr.c +++ /tmp/cocci-output-1410470-c188ce-detect_param_attr.c @@ -1,3 +1,3 @@ -int func1(int __nocast u, __nocast int z, int q __nocast, int w) { +int func1(char __nocast u, __nocast char z, char q __nocast, int w) { return 0; } detect_struct_endattr.res diff = --- tests/detect_struct_endattr.c +++ /tmp/cocci-output-1410470-1550b0-detect_struct_endattr.c @@ -2,7 +2,6 @@ struct abcd { int a; - int b; int c; } __struct_endattr; devlink.res diff = --- tests/devlink.c +++ /tmp/cocci-output-1410470-517078-devlink.c @@ -1,12 +1,12 @@ -static void cm4000_release(dev_link_t *link); +static void cm4000_release(struct pcmcia_device *link); int main () { memset(&dev->atr_csum,0, - sizeof(dev_link_t) - sizeof(dev_node)); + sizeof(struct pcmcia_device) - sizeof(dev_node)); } int xmain () { - dev_link_t x; + struct pcmcia_device x; memset(&dev->atr_csum,0, - sizeof(dev_link_t) - sizeof(dev_node)); + sizeof(struct pcmcia_device) - sizeof(dev_node)); } disj.res warning: line 3: should disj_id1 be a metavariable? warning: line 3: should disj_id2 be a metavariable? warning: line 8: should disj_id1 be a metavariable? warning: line 8: should disj_id2 be a metavariable? warning: line 18: should disj_type be a metavariable? diff = --- tests/disj.c +++ /tmp/cocci-output-1410470-eb0cf2-disj.c @@ -1,31 +1,31 @@ void f() { int disj_id0; - int disj_id1; - int disj_id2; + int disj_id3; + int disj_id3; int disj_id0 = 0; - int disj_id1 = 0; - int disj_id2 = 0; + int disj_id3 = 0; + int disj_id3 = 0; disj_expr(0); - disj_expr(1); - disj_expr(2); + disj_expr(3); + disj_expr(3); float disj_type; - int disj_type; - char disj_type; + bool disj_type; + bool disj_type; DISJ_DECLARER0(0); - DISJ_DECLARER1(0); - DISJ_DECLARER2(0); - return; + DISJ_DECLARER3(0); + DISJ_DECLARER3(0); + break; } void g() { - return; + continue; } void disj_id0(); -void disj_id1(); -void disj_id2(); +void disj_id3(); +void disj_id3(); void disj_id0() { foo(); } -void disj_id1() { foo(); } -void disj_id2() { foo(); } +void disj_id3() { foo(); } +void disj_id3() { foo(); } disjexpr.res diff = --- tests/disjexpr.c +++ /tmp/cocci-output-1410470-3c4a9b-disjexpr.c @@ -1,3 +1,3 @@ int main (int i) { - f(v.fld, v, v.fld2); + f(v->fld, *v, v->fld2); } disjexpr_ver1.res diff = --- tests/disjexpr_ver1.c +++ /tmp/cocci-output-1410470-ee4ee2-disjexpr_ver1.c @@ -1,3 +1,3 @@ int main (int i) { - f(v.fld); + f(v->fld); } disjexpr_ver2.res diff = --- tests/disjexpr_ver2.c +++ /tmp/cocci-output-1410470-4fc1fb-disjexpr_ver2.c @@ -1,3 +1,3 @@ int main (int i) { - f(v.fld, v.fld2, v); + f(v->fld, v->fld2, *v); } disjid.res diff = --- tests/disjid.c +++ /tmp/cocci-output-1410470-731454-disjid.c @@ -1,5 +1,5 @@ -int foo (int x, int z) { return 0; } -int foo (int y, int z) { return 0; } -int bar (int x, int z) { return 0; } -int bar (int y, int z) { return 0; } +int foo (int x, int z) { return 1; } +int foo (int y, int z) { return 1; } +int bar (int x, int z) { return 1; } +int bar (int y, int z) { return 1; } int xxx (int y, int z) { return 0; } distribute.res diff = --- tests/distribute.c +++ /tmp/cocci-output-1410470-25bbae-distribute.c @@ -1,4 +1,4 @@ int main(int i) { - f(1+1); + f(g(1) * 0 * g(2)); } dotcall.res diff = --- tests/dotcall.c +++ /tmp/cocci-output-1410470-b9915e-dotcall.c @@ -1,3 +1,2 @@ int main() { - xxx.foobar(); } dots_comma.res diff = --- tests/dots_comma.c +++ /tmp/cocci-output-1410470-2c7ab9-dots_comma.c @@ -1,4 +1,4 @@ int main(void) { - f(3); + f(2, 3); } double.res diff = --- tests/double.c +++ /tmp/cocci-output-1410470-b40b7c-double.c @@ -1,5 +1,5 @@ static void BChannel_proc_xmt(struct BCState *bcs) { - if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && (!skb_queue_len(&bcs->squeue))) { + if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && skb_queue_empty(&bcs->squeue)) { st->l2.l2l1(st, PH_DEACTIVATE | CONFIRM, NULL); } } double_assign.res diff = --- tests/double_assign.c +++ /tmp/cocci-output-1410470-606ce7-double_assign.c @@ -4,6 +4,5 @@ int main() { } int badmain() { - x = 12; x = 1; } double_lines.res diff = --- tests/double_lines.c +++ /tmp/cocci-output-1410470-4314c8-double_lines.c @@ -1,7 +1,4 @@ int main () { test(); - foo(); - foo(); - foo(); endtest(); } double_switch.res doublepos.res diff = --- tests/doublepos.c +++ /tmp/cocci-output-1410470-1e5a54-doublepos.c @@ -1,5 +1,4 @@ int main() { - f(1,2); f(1,5); f(6,5); } doubleswitch.res diff = --- tests/doubleswitch.c +++ /tmp/cocci-output-1410470-f244a9-doubleswitch.c @@ -3,8 +3,6 @@ void zfLnxRecvEth(zdev_t* dev, zbuf_t* b #ifdef ZM_AVOID_UDP_LARGE_PACKET_FAIL zbuf_t *new_buf; - foo(); - switch(netif_rx(new_buf)) #else doundo.res diff = --- tests/doundo.c +++ /tmp/cocci-output-1410470-dcde78-doundo.c @@ -4,5 +4,5 @@ int main() { const s8 (*queue_priority_mapping)[2]; s8 *noevent; - foo(); + new_foo(); } dowhile.res diff = --- tests/dowhile.c +++ /tmp/cocci-output-1410470-9e8fae-dowhile.c @@ -1,7 +1,5 @@ int main() { do { - f(); } while (0); - g(); } dropbr.res diff = --- tests/dropbr.c +++ /tmp/cocci-output-1410470-d9157b-dropbr.c @@ -1,5 +1,3 @@ int main () { - if (a) { - bar(); - } + if (a) foo(); } dropcom.res diff = --- tests/dropcom.c +++ /tmp/cocci-output-1410470-e7a273-dropcom.c @@ -2,10 +2,6 @@ int one() { return 0; } #endif /* XXX */ -int main () { - return 1; -} - int xyz () { return 1; } dropenderr.res diff = --- tests/dropenderr.c +++ /tmp/cocci-output-1410470-f38844-dropenderr.c @@ -1,8 +1,6 @@ int main () { - if (x) goto end; - if (x) goto end2; + if (x) {} + if (x) {} return 0; - end: - end2: return -1; } dropf.res diff = --- tests/dropf.c +++ /tmp/cocci-output-1410470-eec8f3-dropf.c @@ -1,3 +1,3 @@ int main() { - x = f(1) + f(3); + x = f(1 + 3) + f(3 + 3); } dropparam.res diff = --- tests/dropparam.c +++ /tmp/cocci-output-1410470-332ba5-dropparam.c @@ -2,12 +2,12 @@ int f(char *x, int y, char* z) { return; } -int g(char *x, int y, char* z) { +int g(char *x, char* z) { return; } void main(void) { - g("toto", 3, "tata"); + g("toto", "tata"); } dtest.res diff = --- tests/dtest.c +++ /tmp/cocci-output-1410470-2208aa-dtest.c @@ -1,5 +1,5 @@ int main() { struct sk_buff *e; struct other *e1; - return e->a + e1->b; + return e->a + 12; } eb1.res diff = --- tests/eb1.c +++ /tmp/cocci-output-1410470-56c510-eb1.c @@ -1,7 +1,13 @@ int func() { int c; - Packet p1,p2; + Packet * p1 = SCMalloc(SIZE_OF_PACKET),* p2 = SCMalloc(SIZE_OF_PACKET); int y; + if (p1 == NULL) + return 0; + if (p2 == NULL) + return 0; a = 3; + SCFree(p1); + SCFree(p2); return x+y; } edots.res diff = --- tests/edots.c +++ /tmp/cocci-output-1410470-7e0974-edots.c @@ -1,6 +1,6 @@ void main(int i) { - foo[45]; - bar[45+v.field]; + foo; + bar; // f(foo[45] + bar[45]); edots_ver1.res diff = --- tests/edots_ver1.c +++ /tmp/cocci-output-1410470-4e8a24-edots_ver1.c @@ -1,7 +1,7 @@ void main(int i) { - foo[45]; - bar[45+v.field]; + foo; + bar; - f(foo[45] + bar[45]); + f(foo + bar); } efi3.res diff = --- tests/efi3.c +++ /tmp/cocci-output-1410470-a46eb2-efi3.c @@ -6,6 +6,6 @@ static efi_status_t virt_efi_get_time(ef goto exit; exit: - efi_rts_work.efi_rts_id = EFI_NONE; + efi_rts_work.efi_rts_id = 12; }); } elsify.res diff = --- tests/elsify.c +++ /tmp/cocci-output-1410470-f85414-elsify.c @@ -1,7 +1,7 @@ int main () { if (x) - GOTO(rc = 1); + rc = 1; else - GOTO(rc = 2); + rc = 2; } empty.res diff = --- tests/empty.c +++ /tmp/cocci-output-1410470-a1a43e-empty.c @@ -1,6 +1,6 @@ static int vlsi_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) { - pci_restore_state(pdev, idev->cfg_space); + pci_restore_state(pdev); if (ring_first(idev->tx_ring) == NULL) { } else end_attr.res diff = --- tests/end_attr.c +++ /tmp/cocci-output-1410470-2ca060-end_attr.c @@ -1,10 +1,12 @@ int main() { - struct foo x autofree; + struct foo x; + free(x); return; } int main() { - struct foo x autofree = NULL; + struct foo x = NULL; + free(x); return; } end_commas.res diff = --- tests/end_commas.c +++ /tmp/cocci-output-1410470-7cc76c-end_commas.c @@ -1,4 +1,6 @@ static struct i2c_client client_template = { - .name = "adv7175_client", - .driver = &i2c_driver_adv7175 + .driver = &i2c_driver_adv7175, + .dev = { + .name = "adv7175_client", + } }; endif.res warning: line 5: should x be a metavariable? diff = --- tests/endif.c +++ /tmp/cocci-output-1410470-0aa678-endif.c @@ -2,18 +2,23 @@ void f(int i) { x = 1; if(1) x = 3; + foo(); x = 1; while(1) x = 3; + foo(); x = 1; do x = 3; while(1); + foo(); x = 1; for(1;1;1) x = 3; + foo(); x = 1; for(1;1;1) { x = 3; } + foo(); // switch(1) { // case 0: x = 3; endnl.res diff = --- tests/endnl.c +++ /tmp/cocci-output-1410470-370695-endnl.c @@ -1,18 +1,36 @@ int main () { +#ifdef FOO + call(1); +#endif foo(1); bar(2); +#ifdef BAR + call(2); +#endif one: +#ifdef FOO + call(3); +#endif foo(3); two: bar(4); +#ifdef BAR + call(4); +#endif three: xxx(5); #ifdef X #endif +#ifdef FOO + call(6); +#endif foo(6); #ifdef X #endif bar(7); +#ifdef BAR + call(7); +#endif #ifdef X #endif } endpos.res warning: s: metavariable p not used in the - or context code Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_624cb5.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_624cb5.ml Compilation OK! Loading ML code of the SP... diff = --- tests/endpos.c +++ /tmp/cocci-output-1410470-3217bd-endpos.c @@ -1,4 +1,5 @@ int main () { + main(); if (x) { foo(); return -1; @@ -13,3 +14,8 @@ out: print(); return -1; } + +int main() +{ + return 0; +} enum.res diff = --- tests/enum.c +++ /tmp/cocci-output-1410470-7e6933-enum.c @@ -18,5 +18,5 @@ xxx static reg_errcode_t regex_compile () { - unsigned char *pending_exact = 0; + unsigned char *pending_exact = NULL; } enum_assign.res diff = --- tests/enum_assign.c +++ /tmp/cocci-output-1410470-68dc56-enum_assign.c @@ -1,6 +1,7 @@ enum h { - a = 0, + q = 0, c, x, - b + b, + z }; enumdots.res diff = --- tests/enumdots.c +++ /tmp/cocci-output-1410470-3dc599-enumdots.c @@ -1,3 +1,2 @@ enum binder_work_type { - BINDER_WORK_TRANSACTION = 12, } t; exitc.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_94cad2.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_94cad2.ml Compilation OK! Loading ML code of the SP... Failure in rule starting on line 8 diff = --- tests/exitc.c +++ /tmp/cocci-output-1410470-afb266-exitc.c @@ -1,6 +1,6 @@ int main () { - f(a1); - f(a2); - f(done); - f(a4); + g(a1); + g(a2); + g(done); + g(a4); } exitp.res exn while in timeout_function exp.res diff = --- tests/exp.c +++ /tmp/cocci-output-1410470-e415ef-exp.c @@ -1,14 +1,14 @@ int main(int i) { - int k = foo(); + int k = bar(); if(1) { - foo(); + bar(); } else { - foo(); + bar(); } - foo(); + bar(); } expnest.res diff = --- tests/expnest.c +++ /tmp/cocci-output-1410470-872484-expnest.c @@ -2,5 +2,5 @@ int main() { x = 3 + 4; x = f() + 15; x = 15 + g(); - x = f() + g(); + x = f() - g(); } expopt.res diff = --- tests/expopt.c +++ /tmp/cocci-output-1410470-49ee2a-expopt.c @@ -1,5 +1,5 @@ int main() { int *x; f(x); - *x = 7; + x = 7; } expopt2.res diff = --- tests/expopt2.c +++ /tmp/cocci-output-1410470-2ab948-expopt2.c @@ -1,5 +1,5 @@ void main(int i) { - f(v, w.aa); + f(v, g(w.aa)); } expopt3.res diff = --- tests/expopt3.c +++ /tmp/cocci-output-1410470-508369-expopt3.c @@ -1,5 +1,5 @@ static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg) { - struct video_tuner v; - pcm20_getflags(pcm20, &v.flags, &v.xxx, &v.signal); + struct video_tuner *v; + pcm20_getflags(pcm20, &v->flags, &v->xxx, &v->signal); } expopt3_ver1.res diff = --- tests/expopt3_ver1.c +++ /tmp/cocci-output-1410470-3deb31-expopt3_ver1.c @@ -1,6 +1,6 @@ static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg) { - struct video_tuner v; + struct video_tuner *v; //&v.field; - f(&v.field1, &v.field2, &v.field3, &v.field4); + f(&v->field1, &v->field2, &v->field3, &v->field4); } expopt3_ver2.res diff = --- tests/expopt3_ver2.c +++ /tmp/cocci-output-1410470-704fb6-expopt3_ver2.c @@ -1,5 +1,5 @@ static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg) { - struct video_tuner v; - f(v.field1, v.field2); + struct video_tuner *v; + f(v->field1, v->field2); } exprlist_comma.res diff = --- tests/exprlist_comma.c +++ /tmp/cocci-output-1410470-f96f6b-exprlist_comma.c @@ -1,4 +1,4 @@ int main(void) { - f(3); + f(2, 3); } extra.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_16476f.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_16476f.ml File "/tmp/ocaml_cocci_16476f.ml", line 37, characters 4-6: 37 | let ff = match List.nth __args__ 1 with Coccilib.Str x -> x | _ -> failwith "bad value" in ^^ Warning 26: unused variable ff. Compilation OK! Loading ML code of the SP... diff = --- tests/extra.c +++ /tmp/cocci-output-1410470-0fc134-extra.c @@ -1,12 +1,25 @@ #ifdef FIRST -int main (int a, struct foo *b, struct bar *c) { +int _called_function_0 (int a, struct foo *b, struct bar *c) { a = b->x; return c->d; } + +int main(int a, struct foo *b, struct bar *c) +{ + assert(c != NULL); + assert(b != NULL); + return _called_function_0(a, b, c); +} #else -int main (int a, struct foo *xyz) { +int _called_function_1 (int a, struct foo *xyz) { a = xyz->x; return xyz->d; } + +int main(int a, struct foo *xyz) +{ + assert(xyz != NULL); + return _called_function_1(a, xyz); +} #endif failing_andany.res diff = --- tests/failing_andany.c +++ /tmp/cocci-output-1410470-bc6cb3-failing_andany.c @@ -1,13 +1,9 @@ static int smc_probe1(struct net_device *dev, void __iomem *ioaddr, unsigned long irq_flags) { - request_irq(irq_flags); - register_netdev(dev); } static int smc_probe2(struct net_device *dev, void __iomem *ioaddr, unsigned long irq_flags) { - request_irq(dev); - register_netdev(dev); } fields.res diff = --- tests/fields.c +++ /tmp/cocci-output-1410470-393974-fields.c @@ -1,4 +1,7 @@ struct foo x = { + .a = 1, + .b = 2, + .c = 3, .xa = 1, .xb = 2, .xc = 3, fieldsmin.res warning: line 4: should x be a metavariable? diff = --- tests/fieldsmin.c +++ /tmp/cocci-output-1410470-a80669-fieldsmin.c @@ -1,5 +1,3 @@ struct foo x = { - .a = 1, - .b = 2, .c = 3, }; finalize_only.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_85ba2b.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_85ba2b.ml Compilation OK! Loading ML code of the SP... find_long.res diff = --- tests/find_long.c +++ /tmp/cocci-output-1410470-076034-find_long.c @@ -3,8 +3,8 @@ long function() long a; int b; - a + b; - b + a; + (long)(a + b); + (long)(b + a); return a; } fix_flow_need.res diff = --- tests/fix_flow_need.c +++ /tmp/cocci-output-1410470-8c7881-fix_flow_need.c @@ -5,7 +5,6 @@ void main(int i) { if(1) { foo(); } - bar(); foobar(); } flex.res diff = --- tests/flex.c +++ /tmp/cocci-output-1410470-01e51f-flex.c @@ -3,5 +3,5 @@ struct scmi_msg_resp_sensor_description struct { #define SENSOR_UPDATE_BASE(x) 3 u8 name[SCMI_MAX_STR_SIZE]; - } desc[0]; + } desc[]; }; fn_todo.res diff = --- tests/fn_todo.c +++ /tmp/cocci-output-1410470-74f1b4-fn_todo.c @@ -5,6 +5,6 @@ static void task_kill_later(struct asd_a struct Scsi_Host *shost = sas_ha->core.shost; struct sas_task *task = ascb->uldd_task; - INIT_WORK(&task->abort_work, (void (*)(void *))sas_task_abort, task); + INIT_WORK(&task->abort_work, sas_task_abort); queue_work(shost->work_q, &task->abort_work); } fnptr.res diff = --- tests/fnptr.c +++ /tmp/cocci-output-1410470-1d6943-fnptr.c @@ -8,5 +8,5 @@ static int sci_request_irq(struct sci_po sci_er_interrupt, sci_rx_interrupt, sci_tx_interrupt, sci_br_interrupt, }; - request_irq(port->irqs[0], sci_mpxed_interrupt, SA_INTERRUPT); + request_irq(port->irqs[0], sci_mpxed_interrupt, foo()); } fnret.res warning: line 6: should x be a metavariable? diff = --- tests/fnret.c +++ /tmp/cocci-output-1410470-14b2f5-fnret.c @@ -1 +1 @@ -static void foo(int x) { return; } + fnty.res diff = --- tests/fnty.c +++ /tmp/cocci-output-1410470-3faf2b-fnty.c @@ -1,4 +1,4 @@ -struct allfns { +struct newname { int (*x) (int); int (*y) (int); }; fntypedef.res diff = --- tests/fntypedef.c +++ /tmp/cocci-output-1410470-dda4cb-fntypedef.c @@ -1 +1 @@ -typedef void (*toto_t)(int a, int b); +typedef void (*toto_t)(int a, int b, int c); format.res diff = --- tests/format.c +++ /tmp/cocci-output-1410470-1898af-format.c @@ -1,5 +1,5 @@ int main () { - printf("one %d two\n", 1); - printf("one %d two %d three\n", 1, 2); + printf("blah", 1); + printf("blah", 1, 2); printf("one two three\n"); } format2.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_a1150a.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_a1150a.ml Compilation OK! Loading ML code of the SP... diff = format string is 1x format string is 2x --- tests/format2.c +++ /tmp/cocci-output-1410470-6ea93a-format2.c @@ -1,4 +1,3 @@ int main () { foo("blah %x blah"); - foo("blah %1x blah %2x blah"); } formatlist.res diff = --- tests/formatlist.c +++ /tmp/cocci-output-1410470-c3b6de-formatlist.c @@ -1,10 +1,10 @@ int main () { foo("xyz %d abc"); - foo("xyz %d %d abc"); + foo("blah2"); foo("mno %d %d abc"); foo("mno %d abc %d %d abc %d"); - foo("xyz %d abc %d %d abc %d"); - foo("xyz %d abc %d %d abc %d mno"); + foo("blah"); + foo("blah"); foo("xyz %d abc %d %d abc %d %d abc %d"); foo("xyz %d abc %d %d abc"); foo("xyz abc"); fortest.res diff = --- tests/fortest.c +++ /tmp/cocci-output-1410470-3eea2b-fortest.c @@ -1,18 +1,18 @@ int main() { - for(x=0; x!=10; x++) - y = 12; - for(x=0; x!=10; ) - y = 12; - for(x=0; ; x++) - y = 12; - for(x=0; ; ) - y = 12; - for( ; x!=10; x++) - y = 12; - for( ; x!=10; ) - y = 12; - for( ; ; x++) - y = 12; - for( ; ; ) - y = 12; + bar(); + foo(); + bar(); + foo(); + bar(); + foo(); + bar(); + foo(); + bar(); + foo(); + bar(); + foo(); + bar(); + foo(); + bar(); + foo(); } fortype.res warning: line 4: should x be a metavariable? diff = --- tests/fortype.c +++ /tmp/cocci-output-1410470-d52a9e-fortype.c @@ -1,4 +1,4 @@ int main () { - for (int x = 0; x!=10; x++) - return x; + for (char *p = 0; y!=10; y++) + return y; } four.res diff = --- tests/four.c +++ /tmp/cocci-output-1410470-43cfaf-four.c @@ -1,5 +1,3 @@ int main () { f(1); - h(2); - i(2); } foura.res diff = --- tests/foura.c +++ /tmp/cocci-output-1410470-ec5705-foura.c @@ -1,5 +1,4 @@ int main () { f(1); h(2); - i(2); } fp.res diff = --- tests/fp.c +++ /tmp/cocci-output-1410470-182c98-fp.c @@ -1,3 +1,2 @@ int main(int (*x)(int,int)) { - x(); } fresh_id_script.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_115498.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_115498.ml File "tests/fresh_id_script.cocci", line 11, characters 5-14: Warning 26: unused variable fresh_ml0. File "tests/fresh_id_script.cocci", line 35, characters 5-14: Warning 26: unused variable fresh_ml1. File "tests/fresh_id_script.cocci", line 36, characters 5-14: Warning 26: unused variable fresh_ml2. File "tests/fresh_id_script.cocci", line 38, characters 4-5: Warning 26: unused variable i. Compilation OK! Loading ML code of the SP... exn while in timeout_function fsh.res diff = --- tests/fsh.c +++ /tmp/cocci-output-1410470-0e7e70-fsh.c @@ -1,4 +1,4 @@ int main () { f(c); - g(); + g(foo-c); } fun.res warning: line 5: should x be a metavariable? warning: line 5: should x be a metavariable? diff = --- tests/fun.c +++ /tmp/cocci-output-1410470-15c410-fun.c @@ -1 +1,4 @@ +struct a { + int a; +}; int f(int x) { return x; } func.res diff = --- tests/func.c +++ /tmp/cocci-output-1410470-a471c7-func.c @@ -1,6 +1,7 @@ static int hidg_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) { - VDBG(cdev, "hid_setup crtl_request : bRequestType:0x%x bRequest:0x%x " - "Value:0x%x\n", ctrl->bRequestType, ctrl->bRequest, value); + VDBG(cdev, + "%s crtl_request : bRequestType:0x%x bRequest:0x%x Value:0x%x\n", + ctrl->bRequestType, ctrl->bRequest, value); } funptr_array.res diff = --- tests/funptr_array.c +++ /tmp/cocci-output-1410470-2dbc54-funptr_array.c @@ -1 +1 @@ -int (*x[2])(int x); +int (*x[2])(char x); gadget_allocate.res warning: soa_init: inherited metavariable id1 not used in the -, +, or context code warning: soa_free: inherited metavariable id1 not used in the -, +, or context code warning: soa_alloc: inherited metavariable id1 not used in the -, +, or context code exn while in timeout_function gadget_gather_scatter.res warning: line 230: P, previously declared as a metavariable, is used as an identifier warning: line 230: p, previously declared as a metavariable, is used as an identifier exn while in timeout_function gadget_invalidate.res exn while in timeout_function gadget_mark_used_fields.res exn while in timeout_function gadget_misc.res diff = --- tests/gadget_misc.c +++ /tmp/cocci-output-1410470-497a15-gadget_misc.c @@ -2,6 +2,5 @@ int main() { if(0) { - *((int *) (0x0)) = 1; } } gadget_ninelets_typedef.res diff = --- tests/gadget_ninelets_typedef.c +++ /tmp/cocci-output-1410470-ad1c89-gadget_ninelets_typedef.c @@ -1,21 +1,23 @@ typedef double MyFloat; +typedef double double3x3[3][3]; +typedef MyFloat MyFloat3x3[3][3]; enum cpufields { ENUM_SOMETHING }; // ok for OpenGadget3, IPCC-Gadget struct particle_data { - MyFloat I[3][3]; + MyFloat3x3 I; MyFloat i[3]; - MyFloat J[3][3]; + MyFloat3x3 J; MyFloat j[3]; }; struct sph_particle_data { - double I[3][3]; + double3x3 I; double i[3]; - double J[3][3]; + double3x3 J; double j[3]; }; gadget_patch.res exn while in timeout_function gadget_remove_mpi_function_calls.res diff = --- tests/gadget_remove_mpi_function_calls.c +++ /tmp/cocci-output-1410470-b38522-gadget_remove_mpi_function_calls.c @@ -2,6 +2,5 @@ int main(int argc, char **argv) { MPI_Comm comm; - MPI_Init(&argc, &argv); comm = MPI_COMM_WORLD; } gadget_remove_used_fields.res diff = --- tests/gadget_remove_used_fields.c +++ /tmp/cocci-output-1410470-43af5b-gadget_remove_used_fields.c @@ -1,8 +1,8 @@ -struct particle_data { int i; int j; int k; } * P ; +struct particle_data { int k; } * P ; struct particle_data_soa_t { int i; int j; } * P_soa ; -struct sph_particle_data { int i; int j; int k; } * SphP ; +struct sph_particle_data { int k; } * SphP ; struct sph_particle_data_soa_t { int i; int j; } * SphP_soa ; int main() gadget_sentinel.res warning: line 111: should first be a metavariable? warning: line 142: should first be a metavariable? exn while in timeout_function gadget_soa_defs.res warning: del_non_ptr: metavariable T not used in the - or context code exn while in timeout_function gadget_soa_select.res diff = --- tests/gadget_soa_select.c +++ /tmp/cocci-output-1410470-f5a51e-gadget_soa_select.c @@ -1,5 +1,5 @@ struct sph_particle_data_soa_t { - int *Entropy; + int *Entropy;/* See coccinelle/gadget_soa_select.cocci on how to select SoA fields on a name basis */ }; int main() { gadget_sorting_hook.res diff = --- tests/gadget_sorting_hook.c +++ /tmp/cocci-output-1410470-00ac26-gadget_sorting_hook.c @@ -18,10 +18,24 @@ void soa_invalidate_aos__particle_data() int main() { + /* FIXME: this is a transitory gather-sort-scatter hook solution */ + soa_gather__particle_data_soa_t(P, P_soa, 0, NumPart); + soa_invalidate_soa__particle_data_soa_t(&P_soa, 0, NumPart); any_sort_func(P); + soa_scatter__particle_data_soa_t(P_soa, P, 0, NumPart); + soa_invalidate_aos__particle_data(P, 0, NumPart); + /* FIXME: this is a transitory gather-sort-scatter hook solution */ + soa_gather__sph_particle_data_soa_t(SphP, SphP_soa, 0, N_gas); + soa_gather__particle_data_soa_t(P, P_soa, 0, NumPart); + soa_invalidate_soa__sph_particle_data_soa_t(&SphP_soa, 0, N_gas); + soa_invalidate_soa__particle_data_soa_t(&P_soa, 0, NumPart); rearrange_particle_sequence(); + soa_scatter__particle_data_soa_t(P_soa, P, 0, NumPart); + soa_scatter__sph_particle_data_soa_t(SphP_soa, SphP, 0, N_gas); + soa_invalidate_aos__sph_particle_data(SphP, 0, N_gas); + soa_invalidate_aos__particle_data(P, 0, NumPart); return 0; } gadget_triplets_typedef.res diff = --- tests/gadget_triplets_typedef.c +++ /tmp/cocci-output-1410470-7e4d4e-gadget_triplets_typedef.c @@ -3,6 +3,8 @@ typedef double MyFloat; typedef long double MyLongDouble; typedef long double MyDoublePos; +typedef MyLongDouble MyLongDouble3[3]; +typedef MyFloat MyFloat3[3]; enum cpufields { ENUM_SOMETHING }; // ok for OpenGadget3, IPCC-Gadget @@ -11,11 +13,11 @@ struct particle_data { //MyFloat I[3][3]; //MyFloat I[3][3]; //MyFloat i[3]; - MyFloat j[3]; + MyFloat3 j; //MyFloat J[3][3]; //MyFloat i[3]; //MyDoublePos K[3][3]; - MyLongDouble d[3]; + MyLongDouble3 d; MyDoublePos k[3]; }; gadget_triplets_typedef_ipcc.res diff = --- tests/gadget_triplets_typedef_ipcc.c +++ /tmp/cocci-output-1410470-5103bb-gadget_triplets_typedef_ipcc.c @@ -3,6 +3,7 @@ typedef double MyFloat; typedef long double MyLongDouble; typedef long double MyDoublePos; +typedef MyDoublePos MyDoublePos3[3]; enum cpufields { ENUM_SOMETHING }; // ok for OpenGadget3, IPCC-Gadget @@ -16,7 +17,7 @@ struct particle_data { //MyFloat i[3]; //MyDoublePos K[3][3]; MyLongDouble d[3]; - MyDoublePos k[3]; + MyDoublePos3 k; }; struct sph_particle_data { gcc_min_max.res diff = --- tests/gcc_min_max.c +++ /tmp/cocci-output-1410470-27d0b0-gcc_min_max.c @@ -1,8 +1,8 @@ int main() { int a, b; - a ? b; - a >?= b; + min(a, b); + a = min(a, b); + max(a, b); + a = max(a, b); } getc.res diff = --- tests/getc.c +++ /tmp/cocci-output-1410470-dce872-getc.c @@ -1,4 +1,4 @@ int IFoo_QueryInterface(int *iface, long *riid, void **ppv) { - return IBar_QueryInterface(iface, riid, *ppv); + return 12; } gilles-question.res diff = --- tests/gilles-question.c +++ /tmp/cocci-output-1410470-c8ef67-gilles-question.c @@ -2,8 +2,6 @@ void main(int i) { f(0); if(1) { - g(0); } - g(0); } gotobreak.res diff = --- tests/gotobreak.c +++ /tmp/cocci-output-1410470-0c58a9-gotobreak.c @@ -11,5 +11,5 @@ static void sedlbauer_config(struct pcmc CS_CHECK(GetNextTuple, pcmcia_get_next_tuple(link, &tuple)); } - return; + return 0; } hd.res warning: line 4: should x be a metavariable? warning: line 4: should y be a metavariable? diff = --- tests/hd.c +++ /tmp/cocci-output-1410470-a66448-hd.c @@ -1,3 +1,3 @@ #include "hd.h" -int f(int x, int y) { return x; } +int f(int x) { return x; } headers.res diff = --- tests/headers.c +++ /tmp/cocci-output-1410470-88afb8-headers.c @@ -10,12 +10,12 @@ static int empeg_write (struct usb_seria } -static void empeg_write_bulk_callback (struct urb *urb, struct pt_regs *regs) +static void empeg_write_bulk_callback(struct urb *urb) { } -static void empeg_read_bulk_callback (struct urb *urb, struct pt_regs *regs) +static void empeg_read_bulk_callback(struct urb *urb) { usb_fill_bulk_urb(empeg_read_bulk_callback); hex.res diff = --- tests/hex.c +++ /tmp/cocci-output-1410470-544ca0-hex.c @@ -1,3 +1,2 @@ int main() { - f(0x00); } hil1.res diff = --- tests/hil1.c +++ /tmp/cocci-output-1410470-d69081-hil1.c @@ -2,5 +2,5 @@ { HILSE_FUNC, { func: &funct }, funct_arg, zero_rc }, int main () { - return 12; + return 5; } icomma.res exn while in timeout_function idcon_ocaml.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_e1fc2a.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_e1fc2a.ml Compilation OK! Loading ML code of the SP... diff = --- tests/idcon_ocaml.c +++ /tmp/cocci-output-1410470-ef3c3c-idcon_ocaml.c @@ -1,5 +1,5 @@ void f(void) { - g(a); + g(18); g(b); - g(c); + g(18); } idcon_python.res exn while in timeout_function idstr.res diff = --- tests/idstr.c +++ /tmp/cocci-output-1410470-3fee6e-idstr.c @@ -1,3 +1,3 @@ int main () { - printf("arena 0x%08x, numfree = %d\n", (unsigned)dt, dt->numfree); + printf("y", (unsigned)dt, dt->numfree); } if.res diff = --- tests/if.c +++ /tmp/cocci-output-1410470-bf4313-if.c @@ -1,27 +1,37 @@ int main () { + before(); f(x); + after(); + before(); g(x); + after(); } int main1 () { + before(); f(x); if (x == NULL) { + before(); g(x); } } int main1 () { + before(); f(x); while (x == NULL) { if (q == 3) { + before(); g(x); } } x = 6; } int main2 () { + before(); f(x); if (x == NULL || y == 2) { + before(); g(x); } } ifadd.res diff = --- tests/ifadd.c +++ /tmp/cocci-output-1410470-8634c9-ifadd.c @@ -3,6 +3,7 @@ int main() { if (x) { one(); two(); + foo(); } } } ifbr.res warning: line 13: should ret be a metavariable? warning: rule starting on line 1: metavariable E not used in the - or context code ifd.res diff = --- tests/ifd.c +++ /tmp/cocci-output-1410470-802edc-ifd.c @@ -1,9 +1,13 @@ int main () { one(); +#ifdef 0 +#ifdef 10 foo(); one(); one(); bar(); +#endif +#endif one(); } ifdef1.res diff = --- tests/ifdef1.c +++ /tmp/cocci-output-1410470-cb5f84-ifdef1.c @@ -1,5 +1,8 @@ #include #include +#ifdef CONFIG_NKERNEL +#include +#endif #include #include ifdef2.res diff = --- tests/ifdef2.c +++ /tmp/cocci-output-1410470-30fdc1-ifdef2.c @@ -1,6 +1,11 @@ #include #include #include +#ifdef CONFIG_NKERNEL +#include +#include +unsigned long maxsize = 0; +#endif #include ifdef3.res diff = --- tests/ifdef3.c +++ /tmp/cocci-output-1410470-5fe8e1-ifdef3.c @@ -2,6 +2,15 @@ #include #include #include +#ifdef CONFIG_NKERNEL +#include +#define CONFIG_NKERNEL_NO_SHARED_IRQ // use local (native) mask/unmask +#undef CONFIG_NKERNEL_DEBUG_IRQ +#endif +static inline void nop(void) +{ + int i; +} void init_IRQ(void) ifdef4.res warning: line 9: should desc be a metavariable? warning: line 9: should irq_desc be a metavariable? diff = --- tests/ifdef4.c +++ /tmp/cocci-output-1410470-137467-ifdef4.c @@ -7,7 +7,10 @@ void init_IRQ(void) { for (irq = 0; irq < IRQS; irq++) { - *desc = irq_desc; +#ifdef CONFIG_NKERNEL + if (irq < IRQ_LIMIT) +#endif +*desc = irq_desc; uselessCall(); } } ifdef5.res diff = --- tests/ifdef5.c +++ /tmp/cocci-output-1410470-0bee30-ifdef5.c @@ -11,3 +11,11 @@ void init_IRQ(void) uselessCall(); } } +#ifdef CONFIG_NKERNEL +#ifndef TIMER_32K_SYNCHRONIZED +#define TIMER_32K_SYNCHRONIZED 0xffffffff +#endif +unsigned long nk_vtick_read_stamp(void) +{ + return omap_readl(TIMER_32K_SYNCHRONIZED); +} ifdef6.res diff = --- tests/ifdef6.c +++ /tmp/cocci-output-1410470-5fbf71-ifdef6.c @@ -1,5 +1,8 @@ #include #include +#ifdef CONFIG_NKERNEL +#define foo(x) f(x) +#endif #include #include ifdef6a.res diff = --- tests/ifdef6a.c +++ /tmp/cocci-output-1410470-b516ef-ifdef6a.c @@ -1,4 +1,7 @@ #include +#ifdef CONFIG_NKERNEL +#define foo(x) f(x) +#endif #include #include #include ifdefmeta.res diff = --- tests/ifdefmeta.c +++ /tmp/cocci-output-1410470-604980-ifdefmeta.c @@ -1,26 +1,30 @@ int main() { - buf = alloca(3 - #ifdef PLATFORM_A -// platform a stuff - +5 - +50 - #endif - #ifdef PLATFORM_B -/* platform b stuff */ - +2 - #endif - ); - buf = alloca(3 - #ifdef PLATFORM_A -// platform a stuff - +5 - +50 - #endif - #ifdef PLATFORM_B -/* platform b stuff */ - +2 - #endif - ); + buf = malloc(3 + +#ifdef PLATFORM_A + + 5 + 50 + +#endif + + +#ifdef PLATFORM_B + + 2 + +#endif +); + buf = malloc(3 + +#ifdef PLATFORM_A + + 5 + 50 + +#endif + + +#ifdef PLATFORM_B + + 2 + +#endif +); } int other() { @@ -41,9 +45,6 @@ int other() { } int third() { - buf = alloca(3+5+2); - buf = alloca(3 - +5 - +2 - ); + buf = malloc(3 + 5 + 2); + buf = malloc(3 + 5 + 2); } ifdefmeta1.res diff = --- tests/ifdefmeta1.c +++ /tmp/cocci-output-1410470-9c1996-ifdefmeta1.c @@ -1,17 +1,2 @@ int main() { - buf = alloca(3 - #ifdef PLATFORM_A -// platform a stuff - - - +5 - - - - #endif - #ifdef PLATFORM_B -/* platform b stuff */ - +2 - #endif - ); } ifdefmeta2.res diff = --- tests/ifdefmeta2.c +++ /tmp/cocci-output-1410470-f22145-ifdefmeta2.c @@ -1,12 +1,2 @@ int main() { - buf = alloca(3 - - - +5 - - - - - +2 - ); } ifdefmeta3.res diff = --- tests/ifdefmeta3.c +++ /tmp/cocci-output-1410470-876311-ifdefmeta3.c @@ -1,11 +1,5 @@ int main () { f(); - if (foo) { - one(); -#ifdef ONE - two(); -#endif - three(); - } + xxx(); g(); } ifend.res diff = --- tests/ifend.c +++ /tmp/cocci-output-1410470-420eaa-ifend.c @@ -3,5 +3,3 @@ static int vortex_debug = VORTEX_DEBUG; #else static int vortex_debug = 1; #endif - -#include ifgoto.res diff = --- tests/ifgoto.c +++ /tmp/cocci-output-1410470-9c2b89-ifgoto.c @@ -1,5 +1,7 @@ int main () { - if (x) - GOTO(l,a = 3); + if (x) { + a = 3; + goto l; + } l: return; } ifields.res diff = --- tests/ifields.c +++ /tmp/cocci-output-1410470-501e5d-ifields.c @@ -1,14 +1,16 @@ typedef struct tag_obj { int x; int y; - const IFaceVtbl *lpVtbl; + IFace IFace_iface; int a; } Tobj; static struct IFaceImpl obj = { 1, 2, - &x, + { + &x, 4, + }, 3 }; ifif.res diff = --- tests/ifif.c +++ /tmp/cocci-output-1410470-8b0bcd-ifif.c @@ -1,5 +1,13 @@ int main () { +#ifdef FOO1 +#ifdef FOO2 foo(); +#endif /* FOO1 */ +#endif /* FOO2 */ xxx(); +#ifdef BAR1 +#ifdef BAR2 bar(); +#endif /* BAR1 */ +#endif /* BAR2 */ } ifreturn.res diff = --- tests/ifreturn.c +++ /tmp/cocci-output-1410470-05243a-ifreturn.c @@ -1,31 +1,46 @@ int main () { if (x) { - return 1; + blah(); + { + return 1; + } } return 12; } int main () { if (a) { - if (x) { - return 1; + blah(); + { + if (x) { + blah(); + { + return 1; + } + } + b(); } - b(); } return 12; } int main () { if (a) { - if (b) { - if (x) { - return 1; - } - else { - return 1; + blah(); + { + if (b) { + blah(); + { + if (x) { + return 1; + } + else { + return 1; + } + } } + b(); } - b(); } return 12; } ifreturn3.res diff = --- tests/ifreturn3.c +++ /tmp/cocci-output-1410470-9af382-ifreturn3.c @@ -3,7 +3,10 @@ int GetExitCode (int iFlag_Code) if(iFlag_Code==OK) { return OK; } else // blah + { + mwtrace(); return WARNING; + } return 0; } @@ -11,7 +14,9 @@ int GetExitCode (int iFlag_Code) { if(iFlag_Code==OK) { return OK; - } else + } else { + mwtrace(); return WARNING; + } return 0; } ifreturn4.res diff = --- tests/ifreturn4.c +++ /tmp/cocci-output-1410470-edea65-ifreturn4.c @@ -2,10 +2,16 @@ int GetExitCode (int iFlag_Code) { if(iFlag_Code==OK) { return OK; - } else if(iFlag_Code==WARNING) { - return WARNING; } else { - return_ERREUR; + mwtrace(); + if(iFlag_Code==WARNING) { + return WARNING; + } else { + mwtrace(); + { + return_ERREUR; + } + } } return 0; } ifreturn6.res diff = --- tests/ifreturn6.c +++ /tmp/cocci-output-1410470-4efba2-ifreturn6.c @@ -3,7 +3,8 @@ int main () { blah(); goto end; } - else goto end2; + else blah(); + later(); end: xxx(); end2: ifzer.res diff = --- tests/ifzer.c +++ /tmp/cocci-output-1410470-f5056d-ifzer.c @@ -3,6 +3,5 @@ int main() { and have lived on another thread's stack; that stack may have become unmapped meanwhile (CONFIG_DEBUG_PAGEALLOC). */ #endif - foo(); } ifzz.res diff = --- tests/ifzz.c +++ /tmp/cocci-output-1410470-05e49c-ifzz.c @@ -2,9 +2,9 @@ if 0 char c; #endif -int foo(void) +size_t foo(void) { - int i = 1; + size_t i = 1; #if 0 TRACE("\n"); inc.res diff = --- tests/inc.c +++ /tmp/cocci-output-1410470-ed68d1-inc.c @@ -1,2 +1 @@ -#define foo 3 -#define xxx 4 +#define foobar 3 incdir.res incl.res diff = --- tests/incl.c +++ /tmp/cocci-output-1410470-636260-incl.c @@ -1,6 +1,8 @@ +#include "before.h" #include #include #include +#include "after.h" #ifdef FOO #include #endif FOO incl2.res diff = --- tests/incl2.c +++ /tmp/cocci-output-1410470-429ce6-incl2.c @@ -1,3 +1,4 @@ +#include "beginning.h" #include #include #include "linux/foo.h" inclifdef.res diff = --- tests/inclifdef.c +++ /tmp/cocci-output-1410470-809424-inclifdef.c @@ -1,4 +1,5 @@ #include +#include #ifdef CONFIG #include #endif include.res diff = --- tests/include.c +++ /tmp/cocci-output-1410470-cb98b8-include.c @@ -1,8 +1,6 @@ #include #include -#include -#include void main(int i) { incompatible_value.res diff = --- tests/incompatible_value.c +++ /tmp/cocci-output-1410470-015416-incompatible_value.c @@ -4,6 +4,6 @@ int main() { } int main() { - g(1); - g(2); + h(1); + h(2); } incpos.res exn while in timeout_function incpos1.res exn while in timeout_function inherited.res diff = --- tests/inherited.c +++ /tmp/cocci-output-1410470-6abd71-inherited.c @@ -6,5 +6,5 @@ void main(int i) { h(2); h2(2); - foo(1); + bar(1); } inherited_ver1.res diff = --- tests/inherited_ver1.c +++ /tmp/cocci-output-1410470-0304e7-inherited_ver1.c @@ -3,8 +3,8 @@ void main(int i) { //g(1); f(2); - h(2); - h2(2); + hh(2); + hh22(2); - foo(1); + bar(1); } inhmet.res diff = --- tests/inhmet.c +++ /tmp/cocci-output-1410470-04fe5a-inhmet.c @@ -1,3 +1,3 @@ int main () { - x->s = 12; + foo(); } inhpos.res diff = --- tests/inhpos.c +++ /tmp/cocci-output-1410470-4e33fd-inhpos.c @@ -1,3 +1,2 @@ int main () { - g(3); } initializer.res warning: line 5: should var be a metavariable? diff = --- tests/initializer.c +++ /tmp/cocci-output-1410470-eb1531-initializer.c @@ -1,5 +1,6 @@ struct SHT var = { .f1 = toto1, - .f2 = toto2, + .foo = 12, + .foo2 = 12, .f3 = toto3, }; initializer_many_fields.res warning: line 4: should x be a metavariable? inline.res diff = --- tests/inline.c +++ /tmp/cocci-output-1410470-e726b6-inline.c @@ -1 +1 @@ -inline void foo(int x) { return; } + insdef.res diff = --- tests/insdef.c +++ /tmp/cocci-output-1410470-8d47b5-insdef.c @@ -1 +1,2 @@ #define TABINFOGEN +#include int2bool-local.res diff = --- tests/int2bool-local.c +++ /tmp/cocci-output-1410470-be72e8-int2bool-local.c @@ -1,8 +1,9 @@ int nxnypz1(){ - int x, y, z; + bool z; + int x, y; x = 1; y = 0; - z = 0; + z = false; if (x) return x; @@ -31,8 +32,9 @@ int nxny3() { } int px4() { - int x; - x = 0; + bool x; + + x = false; return 4; } @@ -49,11 +51,13 @@ int nxny5() { } int pxpy6() { - int x; - int y; + bool x; + + bool y; + - x = 0; - y = 1; + x = false; + y = true; x = x && y; introbrace.res diff = --- tests/introbrace.c +++ /tmp/cocci-output-1410470-b2868b-introbrace.c @@ -1,8 +1,12 @@ int main() { - if (x) + if (x) { rc = request_threaded_irq(a, b); - else + rc = compat_request_threaded_irq(12); + } + else { rc = request_threaded_irq(a, b); + rc = compat_request_threaded_irq(12); + } } invert.res diff = --- tests/invert.c +++ /tmp/cocci-output-1410470-cf2479-invert.c @@ -1,3 +1,3 @@ int main () { - x = y + z; + x = z + y; } ip.res diff = --- tests/ip.c +++ /tmp/cocci-output-1410470-f257f6-ip.c @@ -2,10 +2,18 @@ void GetInfoDestTV(short sNoFo) { if(sNoFo == 1) printf("one"); - else if(sNoFo == 2) - printf("two"); - else if(sNoFo == 2) - printf("three"); - else - printf("other"); + else { + trace("ifelel"); + if(sNoFo == 2) + printf("two"); + else { + trace("ifelel"); + if(sNoFo == 2) + printf("three"); + else { + trace("ifelel"); + printf("other"); + } + } + } } ip2.res diff = --- tests/ip2.c +++ /tmp/cocci-output-1410470-735c20-ip2.c @@ -1,11 +1,17 @@ void GetInfoDestTV(short sNoFo) { - if(sNoFo == 1) + if(sNoFo == 1) { + trace("ifelel"); printf("one"); - else if(sNoFo == 2) + } + else if(sNoFo == 2) { + trace("ifelel"); printf("two"); - else if(sNoFo == 2) + } + else if(sNoFo == 2) { + trace("ifelel"); printf("three"); + } else printf("other"); } isococci.res diff = --- tests/isococci.c +++ /tmp/cocci-output-1410470-e1282a-isococci.c @@ -1,6 +1,4 @@ void f(int i) { - if(x > 0) return x; - } isoif.res warning: r: metavariable p1 not used in the - or context code warning: r: metavariable E not used in the - or context code diff = --- tests/isoif.c +++ /tmp/cocci-output-1410470-3973ba-isoif.c @@ -1,4 +1,2 @@ int main () { - if (x == NULL) one(); else two(); - if (x != NULL) three(); else four(); } isotest.res diff = --- tests/isotest.c +++ /tmp/cocci-output-1410470-9a26d8-isotest.c @@ -1,7 +1,6 @@ void main(int i) { - char j; - int i; // = 1; + char j;// = 1; j++; isotest2.res diff = --- tests/isotest2.c +++ /tmp/cocci-output-1410470-b3df67-isotest2.c @@ -1,7 +1,6 @@ void main(int i) { char j; - int i = 1; j++; iteration.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_733595.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_733595.ml Compilation OK! Loading ML code of the SP... 1 pending new file instances 0 pending original file instances exn while in timeout_function iteration_after_merge.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_4d63bf.cmxs -g -I /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/ocaml -I /usr/lib/ocaml /tmp/ocaml_cocci_4d63bf.ml Compilation OK! Loading ML code of the SP... exn while in timeout_function iterator.res exn while in timeout_function iterprint.res exn while in timeout_function jloop1.res exn while in timeout_function julia10.res exn while in timeout_function julia7.res exn while in timeout_function justremove.res exn while in timeout_function keep_comma.res exn while in timeout_function km.res exn while in timeout_function kmalloc.res exn while in timeout_function kmc.res warning: r: metavariable x1 not used in the - or context code warning: r: metavariable S not used in the - or context code exn while in timeout_function kmtest4.res exn while in timeout_function kr.res exn while in timeout_function ktype.res warning: rule starting on line 1: metavariable T2 not used in the - or context code warning: rule starting on line 1: metavariable T not used in the - or context code exn while in timeout_function ktype2.res warning: r: metavariable T2 not used in the - or context code warning: r: metavariable T not used in the - or context code exn while in timeout_function labels_metastatement.res exn while in timeout_function labels_metastatement_ver1.res exn while in timeout_function lid.res exn while in timeout_function line_before_last.res exn while in timeout_function list_test.res warning: line 5: should a be a metavariable? warning: line 12: should a be a metavariable? warning: line 13: should b be a metavariable? warning: line 21: should a be a metavariable? warning: line 23: should b be a metavariable? warning: line 31: should a be a metavariable? warning: line 38: should a be a metavariable? warning: line 39: should b be a metavariable? warning: line 47: should a be a metavariable? warning: line 49: should b be a metavariable? warning: line 56: should f be a metavariable? warning: line 57: should a be a metavariable? warning: line 63: should g be a metavariable? warning: line 64: should a be a metavariable? warning: line 65: should b be a metavariable? warning: line 71: should h be a metavariable? warning: line 73: should a be a metavariable? warning: line 75: should b be a metavariable? warning: line 82: should i be a metavariable? warning: line 84: should a be a metavariable? warning: line 86: should b be a metavariable? exn while in timeout_function local.res exn while in timeout_function localglobal.res exn while in timeout_function localid.res exn while in timeout_function log.res exn while in timeout_function long.res exn while in timeout_function longconst.res exn while in timeout_function longline2.res warning: line 5: should a be a metavariable? exn while in timeout_function longlong.res exn while in timeout_function longlongint.res exn while in timeout_function loop.res exn while in timeout_function lvalue.res warning: line 4: should x be a metavariable? exn while in timeout_function macro.res exn while in timeout_function macro_before_bool.res exn while in timeout_function macro_int16.res exn while in timeout_function match_init.res exn while in timeout_function match_no_meta.res exn while in timeout_function max.res warning: line 6: should i be a metavariable? warning: line 14: should i be a metavariable? exn while in timeout_function md1.res exn while in timeout_function md2.res exn while in timeout_function md3.res exn while in timeout_function mdadd.res exn while in timeout_function mdec.res exn while in timeout_function mdecl.res warning: rule starting on line 14: inherited metavariable unbound not used in the -, +, or context code exn while in timeout_function mdeclp.res exn while in timeout_function mdeclp2.res exn while in timeout_function mdeclrep.res exn while in timeout_function memory.res exn while in timeout_function merge_after_iteration.res exn while in timeout_function metaattr.res exn while in timeout_function metahex.res exn while in timeout_function metaline.res warning: line 42: x, previously declared as a metavariable, is used as an identifier warning: line 48: should y be a metavariable? exn while in timeout_function metaops.res exn while in timeout_function metaops0.res exn while in timeout_function metaruleelem.res exn while in timeout_function metastatement2.res exn while in timeout_function metastatement_for.res exn while in timeout_function metastatement_if.res exn while in timeout_function mincom.res exn while in timeout_function minenum.res exn while in timeout_function minenum1.res exn while in timeout_function minfn.res exn while in timeout_function mini_null_ref.res exn while in timeout_function miniswap.res exn while in timeout_function minstruct.res exn while in timeout_function minusdots.res exn while in timeout_function minusdots_ver1.res exn while in timeout_function move_type.res exn while in timeout_function multi_func1.res exn while in timeout_function multi_initialize_finalize.res exn while in timeout_function multichars.res warning: line 4: should ab be a metavariable? exn while in timeout_function multidec.res exn while in timeout_function multidecl3.res exn while in timeout_function multipath.res exn while in timeout_function multiplus.res warning: rule starting on line 3: metavariable T not used in the - or context code exn while in timeout_function multiremove.res exn while in timeout_function multistruct.res exn while in timeout_function multitype.res exn while in timeout_function multitypedef.res warning: non_delayed_fn: metavariable T not used in the - or context code exn while in timeout_function multivars.res exn while in timeout_function na.res exn while in timeout_function nameless.res exn while in timeout_function nest.res warning: line 6: should hostno be a metavariable? warning: line 18: should xxx be a metavariable? exn while in timeout_function nestone.res warning: one: metavariable S not used in the - or context code exn while in timeout_function nestseq.res exn while in timeout_function neststruct.res exn while in timeout_function nl.res warning: line 4: should x be a metavariable? exn while in timeout_function noa.res exn while in timeout_function nocast.res exn while in timeout_function noret.res exn while in timeout_function not.res exn while in timeout_function notest.res exn while in timeout_function notnot.res warning: line 6: should true be a metavariable? warning: line 6: should false be a metavariable? exn while in timeout_function noty.res exn while in timeout_function noty2.res exn while in timeout_function null_bool.res warning: line 4: should x be a metavariable? exn while in timeout_function null_type.res exn while in timeout_function oddifdef.res warning: line 4: should x be a metavariable? warning: line 6: should x be a metavariable? exn while in timeout_function of.res exn while in timeout_function oneline.res exn while in timeout_function op.res exn while in timeout_function opt.res exn while in timeout_function optional_qualifier.res exn while in timeout_function optional_storage.res exn while in timeout_function orexp.res exn while in timeout_function output.res exn while in timeout_function output_init.res exn while in timeout_function overshoot.res warning: aaa: metavariable f not used in the - or context code warning: xxx: metavariable f not used in the - or context code exn while in timeout_function p1p2.res warning: line 9: should errp be a metavariable? warning: line 20: should errp be a metavariable? exn while in timeout_function p9.res exn while in timeout_function pa.res exn while in timeout_function param.res exn while in timeout_function param_end.res warning: line 6: should x be a metavariable? warning: line 14: should y be a metavariable? exn while in timeout_function param_to_exp.res exn while in timeout_function param_ver1.res exn while in timeout_function parameters_dots.res exn while in timeout_function parenmac.res exn while in timeout_function partial.res warning: rule starting on line 1: metavariable S not used in the - or context code exn while in timeout_function partialmd.res exn while in timeout_function partialmd2.res exn while in timeout_function partialmd3.res exn while in timeout_function pb_distribute_type.res warning: line 6: should x be a metavariable? exn while in timeout_function pb_distribute_type2.res warning: line 8: should x be a metavariable? exn while in timeout_function pb_distribute_type3.res warning: line 9: should x be a metavariable? exn while in timeout_function pb_distribute_type4.res warning: line 8: should x be a metavariable? exn while in timeout_function pb_params_iso.res warning: line 23: should i be a metavariable? exn while in timeout_function pb_parsing_macro.res exn while in timeout_function pb_tag_symbols.res exn while in timeout_function pcim.res exn while in timeout_function pcomma.res exn while in timeout_function plus33.res exn while in timeout_function pmac.res exn while in timeout_function poscon.res exn while in timeout_function posiso.res exn while in timeout_function positionc.res exn while in timeout_function post.res exn while in timeout_function pragmatest1.res exn while in timeout_function print_return.res warning: line 6: should link be a metavariable? warning: rule starting on line 1: metavariable E not used in the - or context code exn while in timeout_function proto.res exn while in timeout_function proto2.res exn while in timeout_function proto_ver1.res exn while in timeout_function proto_ver2.res exn while in timeout_function protoassert.res exn while in timeout_function protox.res warning: line 14: should x be a metavariable? warning: line 16: should x be a metavariable? exn while in timeout_function ptrar.res exn while in timeout_function ptrconstptr.res exn while in timeout_function python_iteration.res exn while in timeout_function python_mdecl.res warning: rule starting on line 14: inherited metavariable unbound not used in the -, +, or context code exn while in timeout_function python_mdeclp.res exn while in timeout_function python_poscon.res exn while in timeout_function qualifier.res exn while in timeout_function range.res exn while in timeout_function rb.res exn while in timeout_function rcu3.res exn while in timeout_function regexp.res exn while in timeout_function regexp2.res exn while in timeout_function regexp3.res exn while in timeout_function relevant_position.res exn while in timeout_function rem1.res exn while in timeout_function rem2.res exn while in timeout_function remaft.res exn while in timeout_function remcom.res exn while in timeout_function remodif.res exn while in timeout_function remove-code-in-branch1.res exn while in timeout_function remove_call.res exn while in timeout_function remove_cast_attr.res exn while in timeout_function remove_cast_attr_allminus.res exn while in timeout_function remove_macrodecl_attr.res exn while in timeout_function remove_metaattr.res exn while in timeout_function remove_param_attrs.res exn while in timeout_function remove_struct_endattr.res exn while in timeout_function remove_struct_endattr_allminus.res exn while in timeout_function remparam.res exn while in timeout_function rems.res exn while in timeout_function rems1.res exn while in timeout_function remstruct.res warning: line 2: should mpuio_irq_chip be a metavariable? warning: line 8: should xxx be a metavariable? exn while in timeout_function replace_typedef.res exn while in timeout_function replacement3.res exn while in timeout_function reserved.res exn while in timeout_function retest.res exn while in timeout_function retmacro.res exn while in timeout_function rets.res exn while in timeout_function return.res warning: rule starting on line 18: metavariable S not used in the - or context code exn while in timeout_function return_implicit.res exn while in timeout_function retval.res exn while in timeout_function retval2.res exn while in timeout_function reusevar.res warning: rule starting on line 8: metavariable p1 not used in the - or context code exn while in timeout_function roa.res exn while in timeout_function rptr.res exn while in timeout_function same_expr.res exn while in timeout_function scope_problem.res exn while in timeout_function sd_2.res exn while in timeout_function serio.res exn while in timeout_function shared_brace.res warning: rule starting on line 1: metavariable S not used in the - or context code warning: rule starting on line 1: metavariable x not used in the - or context code warning: rule starting on line 1: metavariable T not used in the - or context code exn while in timeout_function signed.res warning: line 4: should x be a metavariable? warning: line 10: should a be a metavariable? exn while in timeout_function sis.res exn while in timeout_function sizeof.res exn while in timeout_function sizeof_julia.res exn while in timeout_function sizeptr.res exn while in timeout_function sizestar.res exn while in timeout_function skip.res exn while in timeout_function sl2.res exn while in timeout_function slen.res exn while in timeout_function smallfn.res exn while in timeout_function snprintf.res exn while in timeout_function sp.res exn while in timeout_function spaces.res exn while in timeout_function spacing.res exn while in timeout_function spl.res exn while in timeout_function split_funcall1.res exn while in timeout_function split_funcall2.res exn while in timeout_function starprint.res exn while in timeout_function static.res exn while in timeout_function stm1.res exn while in timeout_function stm10.res exn while in timeout_function stm10_ver1.res exn while in timeout_function stm2.res exn while in timeout_function stm3.res exn while in timeout_function stm4.res exn while in timeout_function stm5.res exn while in timeout_function stm6.res exn while in timeout_function stm7.res exn while in timeout_function stm8.res exn while in timeout_function stm_exp.res exn while in timeout_function stmt.res exn while in timeout_function stmt_removed_and_added.res exn while in timeout_function str_init.res warning: line 4: should x be a metavariable? exn while in timeout_function strangeorder.res warning: rule starting on line 1: metavariable f not used in the - or context code exn while in timeout_function strid.res exn while in timeout_function strid2.res exn while in timeout_function string.res exn while in timeout_function strtest.res exn while in timeout_function struct.res exn while in timeout_function struct_metavar.res exn while in timeout_function struct_typedef.res exn while in timeout_function structfoo.res warning: line 5: should my_foo be a metavariable? exn while in timeout_function structptr_func.res exn while in timeout_function substruct.res exn while in timeout_function sw.res exn while in timeout_function swap3.res exn while in timeout_function switch.res exn while in timeout_function switchdecl.res warning: switch_1: metavariable S_1 not used in the - or context code exn while in timeout_function symbol.res warning: line 12: should g be a metavariable? exn while in timeout_function td.res exn while in timeout_function tdnl.res exn while in timeout_function tdplus.res exn while in timeout_function tern.res exn while in timeout_function test0.res exn while in timeout_function test1.res exn while in timeout_function test10.res exn while in timeout_function test10_ver1.res exn while in timeout_function test11.res exn while in timeout_function test11_ver1.res exn while in timeout_function test12.res exn while in timeout_function test2.res exn while in timeout_function test3.res exn while in timeout_function test4.res exn while in timeout_function test5.res exn while in timeout_function test5_ver1.res exn while in timeout_function test6.res exn while in timeout_function test7.res exn while in timeout_function test8.res exn while in timeout_function test9.res exn while in timeout_function test_s.res exn while in timeout_function test_unsigned_meta.res warning: line 6: should x be a metavariable? warning: line 13: should y be a metavariable? warning: line 19: should q be a metavariable? warning: line 28: should m be a metavariable? warning: line 33: should x be a metavariable? warning: line 39: should y be a metavariable? exn while in timeout_function testand.res exn while in timeout_function testand2.res exn while in timeout_function three_types.res exn while in timeout_function threea.res exn while in timeout_function top.res exn while in timeout_function topdec.res exn while in timeout_function topdec_ver1.res exn while in timeout_function topdec_ver2.res exn while in timeout_function toplevel_macrostmt.res exn while in timeout_function toplevel_struct.res warning: line 5: should usb_stor_host_template be a metavariable? exn while in timeout_function triplet.res exn while in timeout_function tup.res warning: rule starting on line 10: metavariable C not used in the - or context code warning: rule starting on line 10: metavariable B not used in the - or context code exn while in timeout_function twomatch.res exn while in timeout_function twoproto.res exn while in timeout_function ty.res exn while in timeout_function ty1.res warning: line 7: should x be a metavariable? exn while in timeout_function ty_tyexp.res exn while in timeout_function tydisj.res warning: line 20: should a be a metavariable? warning: func: metavariable T not used in the - or context code exn while in timeout_function tyex.res exn while in timeout_function type.res warning: line 7: should x be a metavariable? exn while in timeout_function type1.res exn while in timeout_function type_and_var.res exn while in timeout_function type_and_var2.res exn while in timeout_function type_annotated.res exn while in timeout_function type_constraints.res warning: line 32: should foo be a metavariable? warning: line 33: should xyz be a metavariable? exn while in timeout_function type_ver1.res warning: line 7: should x be a metavariable? exn while in timeout_function type_ver2.res warning: line 7: should x be a metavariable? exn while in timeout_function typedef.res exn while in timeout_function typedef3.res exn while in timeout_function typedef_double.res exn while in timeout_function typeof.res exn while in timeout_function typeof_expr.res exn while in timeout_function typin.res exn while in timeout_function unbrace.res warning: line 13: should list be a metavariable? exn while in timeout_function undref.res exn while in timeout_function undref2.res exn while in timeout_function undref3.res exn while in timeout_function unelse.res exn while in timeout_function unfree.res exn while in timeout_function unl.res exn while in timeout_function unstruct.res exn while in timeout_function updassign.res exn while in timeout_function useless_cast.res exn while in timeout_function varargs.res exn while in timeout_function varargs2.res exn while in timeout_function varargs3.res exn while in timeout_function video1bis.res exn while in timeout_function void.res exn while in timeout_function vpos.res exn while in timeout_function wchar.res exn while in timeout_function whitespace.res exn while in timeout_function wierd_argument.res exn while in timeout_function wierdinit.res exn while in timeout_function wrongcheck.res exn while in timeout_function ws2.res warning: rule starting on line 1: metavariable A not used in the + code exn while in timeout_function xfield.res exn while in timeout_function y2.res exn while in timeout_function zero.res exn while in timeout_function -------------------------------- statistics -------------------------------- 62.res : CORRECT a.res : CORRECT a3d.res : CORRECT a_and_e.res : CORRECT a_and_e_ver1.res : CORRECT ab.res : CORRECT action.res : CORRECT add1.res : CORRECT addaft.res : CORRECT addbefore.res : CORRECT addbeforeafter.res : CORRECT addelse.res : CORRECT addes.res : CORRECT addfield.res : CORRECT addfield2.res : CORRECT addif.res : CORRECT addif1.res : CORRECT addif2.res : CORRECT addifdef.res : CORRECT addifelse.res : CORRECT addifelse2.res : CORRECT addinc.res : CORRECT addtoo.res : CORRECT addtrace.res : CORRECT after_if.res : CORRECT allex.res : CORRECT allex2.res : CORRECT allex3.res : CORRECT andid.res : CORRECT anon.res : CORRECT anonfield.res : CORRECT ar.res : CORRECT arg.res : CORRECT argument.res : CORRECT arparam.res : CORRECT array_init.res : CORRECT array_size.res : CORRECT arraysz.res : CORRECT as_stm.res : CORRECT assign_deref_funcall_in_macro_it.res: CORRECT attradd.res : CORRECT attrs2groups.res : CORRECT auto.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.SMPLParseError("meta: parse error: \n File \"tests/auto.cocci\", line 12, column 0, charpos = 89\n around = 'identifier',\n whole content = identifier x;\n") b1.res : CORRECT b2.res : CORRECT bad_iso_example.res : INCORRECT:diff token: ( VS x File "tests/bad_iso_example.c", line 2, column 6, charpos = 19 around = '(', whole content = if ((x = 3)) return; File "tests/bad_iso_example.res", line 2, column 6, charpos = 19 around = 'x', whole content = if (x) return; diff (result(<) vs expected_result(>)) = @@ -1,4 +1,4 @@ int main() { - if ((x = 3)) return; + if (x) return; } bad_kfree.res : CORRECT bad_ptr_print.res : CORRECT bad_typedef.res : CORRECT badcfg.res : CORRECT badexp.res : CORRECT badpos.res : PROBLEM exn = Failure("rule starting on line 1: already tagged token:\nC code context\nFile \"tests/badpos.c\", line 5, column 30, charpos = 139\n around = 'reg_ptr',\n whole content = \t (int) -(((struct pt_regs *) reg_ptr)->orig_eax + 2));") badtypedef.res : CORRECT badwhen.res : CORRECT badzero.res : CORRECT bc_1.res : PROBLEM exn = Failure("Cannot infer Python version") befS.res : CORRECT before.res : CORRECT ben.res : CORRECT bigin.res : CORRECT bigrepl.res : CORRECT binop.res : CORRECT bitfield.res : CORRECT bitfield_matching.res : PROBLEM exn = Failure("Cannot infer Python version") boolr.res : CORRECT braces.res : CORRECT branchparen.res : CORRECT break.res : CORRECT bug1.res : CORRECT bugloop.res : CORRECT bugon.res : CORRECT bus.res : CORRECT cards.res : CORRECT caseprint.res : CORRECT cast.res : CORRECT cast_iso.res : CORRECT castdecl.res : CORRECT cex_wishlist_complex1.res : CORRECT cex_wishlist_complex2.res : CORRECT cex_wishlist_complex3.res : CORRECT change.res : CORRECT change_type.res : CORRECT changei.res : INCORRECT:diff token: i VS xxx File , line 1, column 15, charpos = 15 around = 'i', whole content = typedef struct i xxx; File "tests/changei.res", line 1, column 15, charpos = 15 around = 'xxx', whole content = typedef struct xxx istruct; diff (result(<) vs expected_result(>)) = @@ -1,4 +1,4 @@ -typedef struct i xxx; +typedef struct xxx istruct; int xxx (int xxx) { char xxx; cocci_args.res : CORRECT com.res : CORRECT comadd.res : CORRECT comj.res : CORRECT comma.res : CORRECT comment_brace.res : CORRECT comment_brace2.res : CORRECT comment_line.res : CORRECT comment_middle.res : CORRECT comments.res : CORRECT compare.res : CORRECT compare_const2.res : CORRECT condexp.res : CORRECT const.res : CORRECT const1bis.res : CORRECT const_adding.res : CORRECT const_array.res : CORRECT const_implicit_iso.res : CORRECT constptr.res : CORRECT constraints.res : CORRECT constrem.res : CORRECT constructor.res : CORRECT constty.res : CORRECT constx.res : CORRECT countcalls.res : CORRECT countcalls.stdout : CORRECT countcalls_python.res : PROBLEM exn = Failure("Cannot infer Python version") cptr.res : CORRECT cr.res : CORRECT cr1a.res : CORRECT cs_check.res : CORRECT cst.res : CORRECT cst_null.res : CORRECT cstr.res : CORRECT cststr.res : CORRECT csw.res : CORRECT dbg.res : CORRECT dbg1.res : CORRECT dc_close.res : CORRECT debug.res : CORRECT dec.res : CORRECT decl.res : CORRECT decl2.res : CORRECT decl_space.res : CORRECT decl_split.res : INCORRECT:diff token: int VS } File "tests/decl_split.c", line 2, column 8, charpos = 27 around = 'int', whole content = int x, y; File "tests/decl_split.res", line 2, column 0, charpos = 19 around = '}', whole content = } diff (result(<) vs expected_result(>)) = @@ -1,3 +1,2 @@ int func(int i) { - int x, y; } decl_star.res : CORRECT declmeta.res : CORRECT defe.res : CORRECT define_exp.res : CORRECT define_param.res : CORRECT defineinit.res : CORRECT deftodo.res : CORRECT delete_function.res : CORRECT delp.res : CORRECT deref.res : CORRECT destroy.res : CORRECT detect_cast_attr.res : CORRECT detect_macrodecl_attr.res : CORRECT detect_param_attr.res : CORRECT detect_struct_endattr.res : CORRECT devlink.res : CORRECT disj.res : CORRECT disjexpr.res : CORRECT disjexpr_ver1.res : CORRECT disjexpr_ver2.res : CORRECT disjid.res : CORRECT distribute.res : CORRECT dotcall.res : CORRECT dots_comma.res : CORRECT double.res : CORRECT double_assign.res : CORRECT double_lines.res : CORRECT double_switch.res : CORRECT doublepos.res : CORRECT doubleswitch.res : CORRECT doundo.res : CORRECT dowhile.res : CORRECT dropbr.res : CORRECT dropcom.res : CORRECT dropenderr.res : CORRECT dropf.res : CORRECT dropparam.res : CORRECT dtest.res : CORRECT eb1.res : CORRECT edots.res : CORRECT edots_ver1.res : CORRECT efi3.res : CORRECT elsify.res : CORRECT empty.res : CORRECT end_attr.res : CORRECT end_commas.res : CORRECT endif.res : CORRECT endnl.res : CORRECT endpos.res : CORRECT enum.res : CORRECT enum_assign.res : CORRECT enumdots.res : CORRECT exitc.res : CORRECT exitp.res : PROBLEM exn = Failure("Cannot infer Python version") exp.res : CORRECT expnest.res : CORRECT expopt.res : CORRECT expopt2.res : CORRECT expopt3.res : CORRECT expopt3_ver1.res : CORRECT expopt3_ver2.res : CORRECT exprlist_comma.res : CORRECT extra.res : CORRECT failing_andany.res : CORRECT fields.res : CORRECT fieldsmin.res : CORRECT finalize_only.res : CORRECT finalize_only.stdout : CORRECT find_long.res : CORRECT fix_flow_need.res : CORRECT flex.res : CORRECT fn_todo.res : CORRECT fnptr.res : CORRECT fnret.res : CORRECT fnty.res : CORRECT fntypedef.res : CORRECT format.res : CORRECT format2.res : CORRECT formatlist.res : CORRECT fortest.res : CORRECT fortype.res : CORRECT four.res : CORRECT foura.res : CORRECT fp.res : CORRECT fresh_id_script.res : PROBLEM exn = Failure("Cannot infer Python version") fsh.res : CORRECT fun.res : CORRECT func.res : CORRECT funptr_array.res : CORRECT gadget_allocate.res : PROBLEM exn = Failure("Cannot infer Python version") gadget_gather_scatter.res : PROBLEM exn = Failure("Cannot infer Python version") gadget_invalidate.res : PROBLEM exn = Failure("Cannot infer Python version") gadget_mark_used_fields.res : PROBLEM exn = Failure("Cannot infer Python version") gadget_misc.res : CORRECT gadget_ninelets_typedef.res : CORRECT gadget_patch.res : PROBLEM exn = Failure("Cannot infer Python version") gadget_remove_mpi_function_calls.res: CORRECT gadget_remove_used_fields.res : CORRECT gadget_sentinel.res : PROBLEM exn = Failure("Cannot infer Python version") gadget_soa_defs.res : PROBLEM exn = Failure("Cannot infer Python version") gadget_soa_select.res : CORRECT gadget_sorting_hook.res : CORRECT gadget_triplets_typedef.res : CORRECT gadget_triplets_typedef_ipcc.res: CORRECT gcc_min_max.res : CORRECT getc.res : CORRECT gilles-question.res : CORRECT gotobreak.res : CORRECT hd.res : CORRECT headers.res : CORRECT hex.res : CORRECT hil1.res : CORRECT icomma.res : PROBLEM exn = Failure("Cannot infer Python version") idcon_ocaml.res : CORRECT idcon_python.res : PROBLEM exn = Failure("Cannot infer Python version") idstr.res : CORRECT if.res : CORRECT ifadd.res : CORRECT ifbr.res : CORRECT ifd.res : CORRECT ifdef1.res : CORRECT ifdef2.res : CORRECT ifdef3.res : CORRECT ifdef4.res : CORRECT ifdef5.res : CORRECT ifdef6.res : CORRECT ifdef6a.res : CORRECT ifdefmeta.res : CORRECT ifdefmeta1.res : CORRECT ifdefmeta2.res : CORRECT ifdefmeta3.res : CORRECT ifend.res : CORRECT ifgoto.res : CORRECT ifields.res : CORRECT ifif.res : CORRECT ifreturn.res : CORRECT ifreturn3.res : CORRECT ifreturn4.res : CORRECT ifreturn6.res : CORRECT ifzer.res : CORRECT ifzz.res : CORRECT inc.res : CORRECT incdir.res : INCORRECT:diff token: x VS 12 File "tests/incdir.c", line 4, column 6, charpos = 46 around = 'x', whole content = foo(x); File "tests/incdir.res", line 4, column 6, charpos = 46 around = '12', whole content = foo(12); diff (result(<) vs expected_result(>)) = @@ -1,5 +1,5 @@ #include "sub/incdir2.c" int main () { - foo(x); + foo(12); } incl.res : CORRECT incl2.res : CORRECT inclifdef.res : CORRECT include.res : CORRECT incompatible_value.res : CORRECT incpos.res : PROBLEM exn = Failure("Cannot infer Python version") incpos1.res : PROBLEM exn = Failure("Cannot infer Python version") inherited.res : CORRECT inherited_ver1.res : CORRECT inhmet.res : CORRECT inhpos.res : CORRECT initializer.res : CORRECT initializer_many_fields.res : CORRECT inline.res : CORRECT insdef.res : CORRECT int2bool-local.res : CORRECT introbrace.res : CORRECT invert.res : CORRECT ip.res : CORRECT ip2.res : CORRECT isococci.res : CORRECT isoif.res : CORRECT isotest.res : CORRECT isotest2.res : CORRECT iteration.res : PROBLEM exn = Failure("Cannot infer Python version") iteration_after_merge.res : PROBLEM exn = Failure("Cannot infer Python version") iterator.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") iterprint.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") jloop1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.SMPLParseError("minus: parse error: \n File \"tests/jloop1.cocci\", line 10, column 3, charpos = 129\n around = '...>',\n whole content = ...>\n") julia10.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") julia7.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") justremove.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") keep_comma.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") km.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") kmalloc.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") kmc.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") kmtest4.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") kr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") ktype.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") ktype2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") labels_metastatement.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") labels_metastatement_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") lid.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") line_before_last.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") list_test.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") local.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") localglobal.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") localid.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") log.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") long.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") longconst.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") longline2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") longlong.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") longlongint.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") loop.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") lvalue.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") macro.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") macro_before_bool.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") macro_int16.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") match_init.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") match_no_meta.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") max.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") md1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") md2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") md3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") mdadd.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") mdec.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") mdecl.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") mdeclp.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") mdeclp2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") mdeclrep.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") memory.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") merge_after_iteration.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metaattr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metahex.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metaline.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metaops.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metaops0.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metaruleelem.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metastatement2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metastatement_for.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") metastatement_if.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") mincom.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") minenum.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") minenum1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") minfn.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") mini_null_ref.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") miniswap.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") minstruct.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") minusdots.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") minusdots_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") move_type.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multi_func1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.SMPLParseError("minus: parse error: \n File \"tests/multi_func1.cocci\", line 12, column 2, charpos = 102\n around = 'fn2',\n whole content = fn2(...) {\n") multi_initialize_finalize.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multichars.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multidec.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multidecl3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multipath.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multiplus.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multiremove.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multistruct.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multitype.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multitypedef.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") multivars.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") na.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") nameless.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") nest.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") nestone.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") nestseq.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") neststruct.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") nl.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") noa.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") nocast.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") noret.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") not.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") notest.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") notnot.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") noty.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") noty2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") null_bool.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") null_type.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") oddifdef.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") of.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") oneline.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") op.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") opt.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") optional_qualifier.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") optional_storage.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") orexp.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") output.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") output_init.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") overshoot.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") p1p2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") p9.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pa.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") param.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") param_end.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") param_to_exp.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") param_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") parameters_dots.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") parenmac.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") partial.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") partialmd.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") partialmd2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") partialmd3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pb_distribute_type.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pb_distribute_type2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pb_distribute_type3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pb_distribute_type4.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pb_params_iso.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pb_parsing_macro.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pb_tag_symbols.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pcim.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pcomma.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") plus33.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pmac.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") poscon.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") posiso.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") positionc.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") post.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") pragmatest1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") print_return.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") proto.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") proto2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") proto_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") proto_ver2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") protoassert.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") protox.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") ptrar.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") ptrconstptr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") python_iteration.res : PROBLEM exn = Failure("Cannot infer Python version") python_mdecl.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") python_mdeclp.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") python_poscon.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") qualifier.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") range.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") rb.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") rcu3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") regexp.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") regexp2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") regexp3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") relevant_position.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") rem1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") rem2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remaft.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remcom.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remodif.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove-code-in-branch1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove_call.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove_cast_attr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove_cast_attr_allminus.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove_macrodecl_attr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove_metaattr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove_param_attrs.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove_struct_endattr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remove_struct_endattr_allminus.res: PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remparam.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") rems.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") rems1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") remstruct.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") replace_typedef.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") replacement3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") reserved.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") retest.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") retmacro.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") rets.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") return.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") return_implicit.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") retval.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") retval2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") reusevar.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") roa.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") rptr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") same_expr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") scope_problem.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sd_2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") serio.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") shared_brace.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") signed.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sis.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sizeof.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sizeof_julia.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sizeptr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sizestar.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") skip.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sl2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") slen.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") smallfn.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") snprintf.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sp.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") spaces.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") spacing.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") spl.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") split_funcall1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") split_funcall2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") starprint.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") static.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm10.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm10_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm4.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm5.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm6.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm7.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm8.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stm_exp.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stmt.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") stmt_removed_and_added.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") str_init.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") strangeorder.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") strid.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") strid2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") string.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") strtest.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") struct.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") struct_metavar.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") struct_typedef.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") structfoo.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") structptr_func.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") substruct.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") sw.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") swap3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") switch.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") switchdecl.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") symbol.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") td.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") tdnl.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") tdplus.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") tern.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test0.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test10.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test10_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test11.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test11_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test12.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test4.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test5.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test5_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test6.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test7.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test8.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test9.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test_s.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") test_unsigned_meta.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") testand.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") testand2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") three_types.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") threea.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") top.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") topdec.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") topdec_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") topdec_ver2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") toplevel_macrostmt.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") toplevel_struct.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") triplet.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") tup.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") twomatch.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") twoproto.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") ty.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") ty1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") ty_tyexp.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") tydisj.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") tyex.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") type.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") type1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") type_and_var.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") type_and_var2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") type_annotated.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") type_constraints.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") type_ver1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") type_ver2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") typedef.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") typedef3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") typedef_double.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") typeof.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") typeof_expr.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") typin.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") unbrace.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") undref.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") undref2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") undref3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") unelse.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") unfree.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") unl.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") unstruct.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") updassign.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") useless_cast.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") varargs.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") varargs2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") varargs3.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") video1bis.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") void.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") vpos.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") wchar.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") whitespace.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") wierd_argument.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") wierdinit.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") wrongcheck.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") ws2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") xfield.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") y2.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") zero.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.Bad_virt("after_start") -------------------------------- regression testing information -------------------------------- regression file: tests/SCORE_expected.sexp new test file appeared: 62.res new test file appeared: a.res new test file appeared: a3d.res new test file appeared: a_and_e.res new test file appeared: a_and_e_ver1.res new test file appeared: ab.res new test file appeared: action.res new test file appeared: add1.res new test file appeared: addaft.res new test file appeared: addbefore.res new test file appeared: addbeforeafter.res new test file appeared: addelse.res new test file appeared: addes.res new test file appeared: addfield.res new test file appeared: addfield2.res new test file appeared: addif.res new test file appeared: addif1.res new test file appeared: addif2.res new test file appeared: addifdef.res new test file appeared: addifelse.res new test file appeared: addifelse2.res new test file appeared: addinc.res new test file appeared: addtoo.res new test file appeared: addtrace.res new test file appeared: after_if.res new test file appeared: allex.res new test file appeared: allex2.res new test file appeared: allex3.res new test file appeared: andid.res new test file appeared: anon.res new test file appeared: anonfield.res new test file appeared: ar.res new test file appeared: arg.res new test file appeared: argument.res new test file appeared: arparam.res new test file appeared: array_init.res new test file appeared: array_size.res new test file appeared: arraysz.res new test file appeared: as_stm.res new test file appeared: assign_deref_funcall_in_macro_it.res new test file appeared: attradd.res new test file appeared: attrs2groups.res new test file appeared: auto.res new test file appeared: b1.res new test file appeared: b2.res new test file appeared: bad_iso_example.res new test file appeared: bad_kfree.res new test file appeared: bad_ptr_print.res new test file appeared: bad_typedef.res new test file appeared: badcfg.res new test file appeared: badexp.res new test file appeared: badpos.res new test file appeared: badtypedef.res new test file appeared: badwhen.res new test file appeared: badzero.res new test file appeared: bc_1.res new test file appeared: befS.res new test file appeared: before.res new test file appeared: ben.res new test file appeared: bigin.res new test file appeared: bigrepl.res new test file appeared: binop.res new test file appeared: bitfield.res new test file appeared: bitfield_matching.res new test file appeared: boolr.res new test file appeared: braces.res new test file appeared: branchparen.res new test file appeared: break.res new test file appeared: bug1.res new test file appeared: bugloop.res new test file appeared: bugon.res new test file appeared: bus.res new test file appeared: cards.res new test file appeared: caseprint.res new test file appeared: cast.res new test file appeared: cast_iso.res new test file appeared: castdecl.res new test file appeared: cex_wishlist_complex1.res new test file appeared: cex_wishlist_complex2.res new test file appeared: cex_wishlist_complex3.res new test file appeared: change.res new test file appeared: change_type.res new test file appeared: changei.res new test file appeared: cocci_args.res new test file appeared: com.res new test file appeared: comadd.res new test file appeared: comj.res new test file appeared: comma.res new test file appeared: comment_brace.res new test file appeared: comment_brace2.res new test file appeared: comment_line.res new test file appeared: comment_middle.res new test file appeared: comments.res new test file appeared: compare.res new test file appeared: compare_const2.res new test file appeared: condexp.res new test file appeared: const.res new test file appeared: const1bis.res new test file appeared: const_adding.res new test file appeared: const_array.res new test file appeared: const_implicit_iso.res new test file appeared: constptr.res new test file appeared: constraints.res new test file appeared: constrem.res new test file appeared: constructor.res new test file appeared: constty.res new test file appeared: constx.res new test file appeared: countcalls.res new test file appeared: countcalls.stdout new test file appeared: countcalls_python.res new test file appeared: cptr.res new test file appeared: cr.res new test file appeared: cr1a.res new test file appeared: cs_check.res new test file appeared: cst.res new test file appeared: cst_null.res new test file appeared: cstr.res new test file appeared: cststr.res new test file appeared: csw.res new test file appeared: dbg.res new test file appeared: dbg1.res new test file appeared: dc_close.res new test file appeared: debug.res new test file appeared: dec.res new test file appeared: decl.res new test file appeared: decl2.res new test file appeared: decl_space.res new test file appeared: decl_split.res new test file appeared: decl_star.res new test file appeared: declmeta.res new test file appeared: defe.res new test file appeared: define_exp.res new test file appeared: define_param.res new test file appeared: defineinit.res new test file appeared: deftodo.res new test file appeared: delete_function.res new test file appeared: delp.res new test file appeared: deref.res new test file appeared: destroy.res new test file appeared: detect_cast_attr.res new test file appeared: detect_macrodecl_attr.res new test file appeared: detect_param_attr.res new test file appeared: detect_struct_endattr.res new test file appeared: devlink.res new test file appeared: disj.res new test file appeared: disjexpr.res new test file appeared: disjexpr_ver1.res new test file appeared: disjexpr_ver2.res new test file appeared: disjid.res new test file appeared: distribute.res new test file appeared: dotcall.res new test file appeared: dots_comma.res new test file appeared: double.res new test file appeared: double_assign.res new test file appeared: double_lines.res new test file appeared: double_switch.res new test file appeared: doublepos.res new test file appeared: doubleswitch.res new test file appeared: doundo.res new test file appeared: dowhile.res new test file appeared: dropbr.res new test file appeared: dropcom.res new test file appeared: dropenderr.res new test file appeared: dropf.res new test file appeared: dropparam.res new test file appeared: dtest.res new test file appeared: eb1.res new test file appeared: edots.res new test file appeared: edots_ver1.res new test file appeared: efi3.res new test file appeared: elsify.res new test file appeared: empty.res new test file appeared: end_attr.res new test file appeared: end_commas.res new test file appeared: endif.res new test file appeared: endnl.res new test file appeared: endpos.res new test file appeared: enum.res new test file appeared: enum_assign.res new test file appeared: enumdots.res new test file appeared: exitc.res new test file appeared: exitp.res new test file appeared: exp.res new test file appeared: expnest.res new test file appeared: expopt.res new test file appeared: expopt2.res new test file appeared: expopt3.res new test file appeared: expopt3_ver1.res new test file appeared: expopt3_ver2.res new test file appeared: exprlist_comma.res new test file appeared: extra.res new test file appeared: failing_andany.res new test file appeared: fields.res new test file appeared: fieldsmin.res new test file appeared: finalize_only.res new test file appeared: finalize_only.stdout new test file appeared: find_long.res new test file appeared: fix_flow_need.res new test file appeared: flex.res new test file appeared: fn_todo.res new test file appeared: fnptr.res new test file appeared: fnret.res new test file appeared: fnty.res new test file appeared: fntypedef.res new test file appeared: format.res new test file appeared: format2.res new test file appeared: formatlist.res new test file appeared: fortest.res new test file appeared: fortype.res new test file appeared: four.res new test file appeared: foura.res new test file appeared: fp.res new test file appeared: fresh_id_script.res new test file appeared: fsh.res new test file appeared: fun.res new test file appeared: func.res new test file appeared: funptr_array.res new test file appeared: gadget_allocate.res new test file appeared: gadget_gather_scatter.res new test file appeared: gadget_invalidate.res new test file appeared: gadget_mark_used_fields.res new test file appeared: gadget_misc.res new test file appeared: gadget_ninelets_typedef.res new test file appeared: gadget_patch.res new test file appeared: gadget_remove_mpi_function_calls.res new test file appeared: gadget_remove_used_fields.res new test file appeared: gadget_sentinel.res new test file appeared: gadget_soa_defs.res new test file appeared: gadget_soa_select.res new test file appeared: gadget_sorting_hook.res new test file appeared: gadget_triplets_typedef.res new test file appeared: gadget_triplets_typedef_ipcc.res new test file appeared: gcc_min_max.res new test file appeared: getc.res new test file appeared: gilles-question.res new test file appeared: gotobreak.res new test file appeared: hd.res new test file appeared: headers.res new test file appeared: hex.res new test file appeared: hil1.res new test file appeared: icomma.res new test file appeared: idcon_ocaml.res new test file appeared: idcon_python.res new test file appeared: idstr.res new test file appeared: if.res new test file appeared: ifadd.res new test file appeared: ifbr.res new test file appeared: ifd.res new test file appeared: ifdef1.res new test file appeared: ifdef2.res new test file appeared: ifdef3.res new test file appeared: ifdef4.res new test file appeared: ifdef5.res new test file appeared: ifdef6.res new test file appeared: ifdef6a.res new test file appeared: ifdefmeta.res new test file appeared: ifdefmeta1.res new test file appeared: ifdefmeta2.res new test file appeared: ifdefmeta3.res new test file appeared: ifend.res new test file appeared: ifgoto.res new test file appeared: ifields.res new test file appeared: ifif.res new test file appeared: ifreturn.res new test file appeared: ifreturn3.res new test file appeared: ifreturn4.res new test file appeared: ifreturn6.res new test file appeared: ifzer.res new test file appeared: ifzz.res new test file appeared: inc.res new test file appeared: incdir.res new test file appeared: incl.res new test file appeared: incl2.res new test file appeared: inclifdef.res new test file appeared: include.res new test file appeared: incompatible_value.res new test file appeared: incpos.res new test file appeared: incpos1.res new test file appeared: inherited.res new test file appeared: inherited_ver1.res new test file appeared: inhmet.res new test file appeared: inhpos.res new test file appeared: initializer.res new test file appeared: initializer_many_fields.res new test file appeared: inline.res new test file appeared: insdef.res new test file appeared: int2bool-local.res new test file appeared: introbrace.res new test file appeared: invert.res new test file appeared: ip.res new test file appeared: ip2.res new test file appeared: isococci.res new test file appeared: isoif.res new test file appeared: isotest.res new test file appeared: isotest2.res new test file appeared: iteration.res new test file appeared: iteration_after_merge.res new test file appeared: iterator.res new test file appeared: iterprint.res new test file appeared: jloop1.res new test file appeared: julia10.res new test file appeared: julia7.res new test file appeared: justremove.res new test file appeared: keep_comma.res new test file appeared: km.res new test file appeared: kmalloc.res new test file appeared: kmc.res new test file appeared: kmtest4.res new test file appeared: kr.res new test file appeared: ktype.res new test file appeared: ktype2.res new test file appeared: labels_metastatement.res new test file appeared: labels_metastatement_ver1.res new test file appeared: lid.res new test file appeared: line_before_last.res new test file appeared: list_test.res new test file appeared: local.res new test file appeared: localglobal.res new test file appeared: localid.res new test file appeared: log.res new test file appeared: long.res new test file appeared: longconst.res new test file appeared: longline2.res new test file appeared: longlong.res new test file appeared: longlongint.res new test file appeared: loop.res new test file appeared: lvalue.res new test file appeared: macro.res new test file appeared: macro_before_bool.res new test file appeared: macro_int16.res new test file appeared: match_init.res new test file appeared: match_no_meta.res new test file appeared: max.res new test file appeared: md1.res new test file appeared: md2.res new test file appeared: md3.res new test file appeared: mdadd.res new test file appeared: mdec.res new test file appeared: mdecl.res new test file appeared: mdeclp.res new test file appeared: mdeclp2.res new test file appeared: mdeclrep.res new test file appeared: memory.res new test file appeared: merge_after_iteration.res new test file appeared: metaattr.res new test file appeared: metahex.res new test file appeared: metaline.res new test file appeared: metaops.res new test file appeared: metaops0.res new test file appeared: metaruleelem.res new test file appeared: metastatement2.res new test file appeared: metastatement_for.res new test file appeared: metastatement_if.res new test file appeared: mincom.res new test file appeared: minenum.res new test file appeared: minenum1.res new test file appeared: minfn.res new test file appeared: mini_null_ref.res new test file appeared: miniswap.res new test file appeared: minstruct.res new test file appeared: minusdots.res new test file appeared: minusdots_ver1.res new test file appeared: move_type.res new test file appeared: multi_func1.res new test file appeared: multi_initialize_finalize.res new test file appeared: multichars.res new test file appeared: multidec.res new test file appeared: multidecl3.res new test file appeared: multipath.res new test file appeared: multiplus.res new test file appeared: multiremove.res new test file appeared: multistruct.res new test file appeared: multitype.res new test file appeared: multitypedef.res new test file appeared: multivars.res new test file appeared: na.res new test file appeared: nameless.res new test file appeared: nest.res new test file appeared: nestone.res new test file appeared: nestseq.res new test file appeared: neststruct.res new test file appeared: nl.res new test file appeared: noa.res new test file appeared: nocast.res new test file appeared: noret.res new test file appeared: not.res new test file appeared: notest.res new test file appeared: notnot.res new test file appeared: noty.res new test file appeared: noty2.res new test file appeared: null_bool.res new test file appeared: null_type.res new test file appeared: oddifdef.res new test file appeared: of.res new test file appeared: oneline.res new test file appeared: op.res new test file appeared: opt.res new test file appeared: optional_qualifier.res new test file appeared: optional_storage.res new test file appeared: orexp.res new test file appeared: output.res new test file appeared: output_init.res new test file appeared: overshoot.res new test file appeared: p1p2.res new test file appeared: p9.res new test file appeared: pa.res new test file appeared: param.res new test file appeared: param_end.res new test file appeared: param_to_exp.res new test file appeared: param_ver1.res new test file appeared: parameters_dots.res new test file appeared: parenmac.res new test file appeared: partial.res new test file appeared: partialmd.res new test file appeared: partialmd2.res new test file appeared: partialmd3.res new test file appeared: pb_distribute_type.res new test file appeared: pb_distribute_type2.res new test file appeared: pb_distribute_type3.res new test file appeared: pb_distribute_type4.res new test file appeared: pb_params_iso.res new test file appeared: pb_parsing_macro.res new test file appeared: pb_tag_symbols.res new test file appeared: pcim.res new test file appeared: pcomma.res new test file appeared: plus33.res new test file appeared: pmac.res new test file appeared: poscon.res new test file appeared: posiso.res new test file appeared: positionc.res new test file appeared: post.res new test file appeared: pragmatest1.res new test file appeared: print_return.res new test file appeared: proto.res new test file appeared: proto2.res new test file appeared: proto_ver1.res new test file appeared: proto_ver2.res new test file appeared: protoassert.res new test file appeared: protox.res new test file appeared: ptrar.res new test file appeared: ptrconstptr.res new test file appeared: python_iteration.res new test file appeared: python_mdecl.res new test file appeared: python_mdeclp.res new test file appeared: python_poscon.res new test file appeared: qualifier.res new test file appeared: range.res new test file appeared: rb.res new test file appeared: rcu3.res new test file appeared: regexp.res new test file appeared: regexp2.res new test file appeared: regexp3.res new test file appeared: relevant_position.res new test file appeared: rem1.res new test file appeared: rem2.res new test file appeared: remaft.res new test file appeared: remcom.res new test file appeared: remodif.res new test file appeared: remove-code-in-branch1.res new test file appeared: remove_call.res new test file appeared: remove_cast_attr.res new test file appeared: remove_cast_attr_allminus.res new test file appeared: remove_macrodecl_attr.res new test file appeared: remove_metaattr.res new test file appeared: remove_param_attrs.res new test file appeared: remove_struct_endattr.res new test file appeared: remove_struct_endattr_allminus.res new test file appeared: remparam.res new test file appeared: rems.res new test file appeared: rems1.res new test file appeared: remstruct.res new test file appeared: replace_typedef.res new test file appeared: replacement3.res new test file appeared: reserved.res new test file appeared: retest.res new test file appeared: retmacro.res new test file appeared: rets.res new test file appeared: return.res new test file appeared: return_implicit.res new test file appeared: retval.res new test file appeared: retval2.res new test file appeared: reusevar.res new test file appeared: roa.res new test file appeared: rptr.res new test file appeared: same_expr.res new test file appeared: scope_problem.res new test file appeared: sd_2.res new test file appeared: serio.res new test file appeared: shared_brace.res new test file appeared: signed.res new test file appeared: sis.res new test file appeared: sizeof.res new test file appeared: sizeof_julia.res new test file appeared: sizeptr.res new test file appeared: sizestar.res new test file appeared: skip.res new test file appeared: sl2.res new test file appeared: slen.res new test file appeared: smallfn.res new test file appeared: snprintf.res new test file appeared: sp.res new test file appeared: spaces.res new test file appeared: spacing.res new test file appeared: spl.res new test file appeared: split_funcall1.res new test file appeared: split_funcall2.res new test file appeared: starprint.res new test file appeared: static.res new test file appeared: stm1.res new test file appeared: stm10.res new test file appeared: stm10_ver1.res new test file appeared: stm2.res new test file appeared: stm3.res new test file appeared: stm4.res new test file appeared: stm5.res new test file appeared: stm6.res new test file appeared: stm7.res new test file appeared: stm8.res new test file appeared: stm_exp.res new test file appeared: stmt.res new test file appeared: stmt_removed_and_added.res new test file appeared: str_init.res new test file appeared: strangeorder.res new test file appeared: strid.res new test file appeared: strid2.res new test file appeared: string.res new test file appeared: strtest.res new test file appeared: struct.res new test file appeared: struct_metavar.res new test file appeared: struct_typedef.res new test file appeared: structfoo.res new test file appeared: structptr_func.res new test file appeared: substruct.res new test file appeared: sw.res new test file appeared: swap3.res new test file appeared: switch.res new test file appeared: switchdecl.res new test file appeared: symbol.res new test file appeared: td.res new test file appeared: tdnl.res new test file appeared: tdplus.res new test file appeared: tern.res new test file appeared: test0.res new test file appeared: test1.res new test file appeared: test10.res new test file appeared: test10_ver1.res new test file appeared: test11.res new test file appeared: test11_ver1.res new test file appeared: test12.res new test file appeared: test2.res new test file appeared: test3.res new test file appeared: test4.res new test file appeared: test5.res new test file appeared: test5_ver1.res new test file appeared: test6.res new test file appeared: test7.res new test file appeared: test8.res new test file appeared: test9.res new test file appeared: test_s.res new test file appeared: test_unsigned_meta.res new test file appeared: testand.res new test file appeared: testand2.res new test file appeared: three_types.res new test file appeared: threea.res new test file appeared: top.res new test file appeared: topdec.res new test file appeared: topdec_ver1.res new test file appeared: topdec_ver2.res new test file appeared: toplevel_macrostmt.res new test file appeared: toplevel_struct.res new test file appeared: triplet.res new test file appeared: tup.res new test file appeared: twomatch.res new test file appeared: twoproto.res new test file appeared: ty.res new test file appeared: ty1.res new test file appeared: ty_tyexp.res new test file appeared: tydisj.res new test file appeared: tyex.res new test file appeared: type.res new test file appeared: type1.res new test file appeared: type_and_var.res new test file appeared: type_and_var2.res new test file appeared: type_annotated.res new test file appeared: type_constraints.res new test file appeared: type_ver1.res new test file appeared: type_ver2.res new test file appeared: typedef.res new test file appeared: typedef3.res new test file appeared: typedef_double.res new test file appeared: typeof.res new test file appeared: typeof_expr.res new test file appeared: typin.res new test file appeared: unbrace.res new test file appeared: undref.res new test file appeared: undref2.res new test file appeared: undref3.res new test file appeared: unelse.res new test file appeared: unfree.res new test file appeared: unl.res new test file appeared: unstruct.res new test file appeared: updassign.res new test file appeared: useless_cast.res new test file appeared: varargs.res new test file appeared: varargs2.res new test file appeared: varargs3.res new test file appeared: video1bis.res new test file appeared: void.res new test file appeared: vpos.res new test file appeared: wchar.res new test file appeared: whitespace.res new test file appeared: wierd_argument.res new test file appeared: wierdinit.res new test file appeared: wrongcheck.res new test file appeared: ws2.res new test file appeared: xfield.res new test file appeared: y2.res new test file appeared: zero.res -------------------------------- total score -------------------------------- good = 273/618 Current score is greater than expected :) (was expecting 0 but got 273) Still, less 75% the tests passed. Returning a nonzero exist status. make[2]: *** [Makefile:267: check] Error 1 make[2]: Leaving directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' IGNORING FAILED TESTS make[1]: Leaving directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' create-stamp debian/debhelper-build-stamp dh_prep -a dh_installdirs -a debian/rules override_dh_auto_install-arch make[1]: Entering directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' /usr/bin/make DESTDIR=/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle install install-bash make[2]: Entering directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' mkdir -p /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/bin /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle mkdir -p /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle/ocaml if test -f bundles/pyml/dllpyml_stubs.so; then \ /usr/bin/install -c -m 755 bundles/pyml/dllpyml_stubs.so \ /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle; \ fi if test -f bundles/pcre/dllpcre_stubs.so; then \ /usr/bin/install -c -m 755 bundles/pcre/dllpcre_stubs.so \ /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle; \ fi /usr/bin/install -c -m 755 spatch.opt /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/bin/spatch /usr/bin/install -c -m 644 standard.h /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle /usr/bin/install -c -m 644 standard.iso /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle /usr/bin/install -c -m 644 ocaml/*.cmi /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle/ocaml/ if test -f ocaml/coccilib.cmx; then \ /usr/bin/install -c -m 644 ocaml/*.cmx /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle/ocaml/; \ fi /usr/bin/install -c -m 755 tools/spgen/source/spgen.opt \ /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/bin/spgen mkdir -p /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle/python/coccilib /usr/bin/install -c -m 644 python/coccilib/*.py \ /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/lib/coccinelle/python/coccilib if test "x/usr/share/bash-completion/completions" != "xno"; then \ mkdir -p /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/bash-completion/completions; \ /usr/bin/install -c -m 644 scripts/spatch.bash_completion \ /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/bash-completion/completions/spatch; \ fi mkdir -p /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/man/man1 mkdir -p /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/man/man3 /usr/bin/install -c -m 644 docs/spatch.1 /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/man/man1/ /usr/bin/install -c -m 644 docs/pycocci.1 /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/man/man1/ /usr/bin/install -c -m 644 docs/spgen.1 /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/man/man1/ /usr/bin/install -c -m 644 docs/Coccilib.3cocci /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/man/man3/ make[2]: Nothing to be done for 'install-bash'. make[2]: Leaving directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' # Vim files install -d /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/vim/addons/ftdetect /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/vim/addons/syntax cp /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/editors/vim/ftdetect/cocci.vim /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/vim/addons/ftdetect/ cp /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/editors/vim/syntax/cocci.vim /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/vim/addons/syntax/ install -d /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/vim/registry cp /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle.yaml /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/vim/registry/ # Emacs files cp /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/editors/emacs/cocci.el /build/coccinelle-y7yj0U/coccinelle-1.1.0.deb/debian/coccinelle/usr/share/emacs/site-lisp/ make[1]: Leaving directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' dh_ocamldoc -a dh_installdocs -a dh_installchangelogs -a dh_installexamples -a dh_installman -a dh_installemacsen -a dh_python3 -a dh_perl -a dh_link -a dh_strip_nondeterminism -a debian/rules override_dh_compress make[1]: Entering directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' dh_compress -X.pdf -X.cocci -X.c make[1]: Leaving directory '/build/coccinelle-y7yj0U/coccinelle-1.1.0.deb' dh_fixperms -a dh_missing -a dh_strip -a -a dh_makeshlibs -a -a dh_shlibdeps -a -a dh_installdeb -a dh_ocaml -a W: coccinelle doesn't resolve dependency on unit Parsing_consistency_c W: coccinelle doesn't resolve dependency on unit Semantic_c W: coccinelle doesn't resolve dependency on unit Parsing_recovery_c W: coccinelle doesn't resolve dependency on unit Token_annot W: coccinelle doesn't resolve dependency on unit Danger W: coccinelle doesn't resolve dependency on unit Parsing_consistency_c W: coccinelle doesn't resolve dependency on unit Token_views_c W: coccinelle doesn't resolve dependency on unit Parsing_recovery_c W: coccinelle doesn't resolve dependency on unit Parsing_hacks W: coccinelle doesn't resolve dependency on unit Ograph_extended W: coccinelle doesn't resolve dependency on unit Type_annoter_c W: coccinelle doesn't resolve dependency on unit Includes_cache W: coccinelle doesn't resolve dependency on unit Parsing_stat W: coccinelle doesn't resolve dependency on unit Includes W: coccinelle doesn't resolve dependency on unit Includes_cache W: coccinelle doesn't resolve dependency on unit Lexer_parser W: coccinelle doesn't resolve dependency on unit Type_annoter_c W: coccinelle doesn't resolve dependency on unit Lexer_parser W: coccinelle doesn't resolve dependency on unit Token_helpers W: coccinelle doesn't resolve dependency on unit Semantic_c W: coccinelle doesn't resolve dependency on unit Cpp_token_c W: coccinelle doesn't resolve dependency on unit Parsing_stat W: coccinelle doesn't resolve dependency on unit Token_helpers W: coccinelle doesn't resolve dependency on unit Data W: coccinelle doesn't resolve dependency on unit Parsing_hacks W: coccinelle doesn't resolve dependency on unit Token_annot W: coccinelle doesn't resolve dependency on unit Cpp_token_c W: coccinelle doesn't resolve dependency on unit Includes W: coccinelle doesn't resolve dependency on unit Data W: coccinelle doesn't resolve dependency on unit Regexp_pcre W: coccinelle doesn't resolve dependency on unit Flag_parsing_cocci W: coccinelle doesn't resolve dependency on unit Flag_parsing_cocci W: coccinelle doesn't resolve dependency on unit Control_flow_c W: coccinelle doesn't resolve dependency on unit Regexp_pcre W: coccinelle doesn't resolve dependency on unit Control_flow_c W: coccinelle doesn't resolve dependency on unit Danger dh_gencontrol -a dh_md5sums -a dh_builddeb -a dpkg-deb: building package 'coccinelle' in '../coccinelle_1.1.0.deb-1.1_amd64.deb'. dpkg-deb: building package 'coccinelle-dbgsym' in '../coccinelle-dbgsym_1.1.0.deb-1.1_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../coccinelle_1.1.0.deb-1.1_amd64.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/coccinelle-y7yj0U /tmp/coccinelle-1.1.0.deb-1.187ufszch I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.20KFz_bzu_... I: success in 719.4709 seconds md5: coccinelle-dbgsym_1.1.0.deb-1.1_amd64.deb: OK md5: coccinelle_1.1.0.deb-1.1_amd64.deb: OK sha1: coccinelle-dbgsym_1.1.0.deb-1.1_amd64.deb: OK sha1: coccinelle_1.1.0.deb-1.1_amd64.deb: OK sha256: coccinelle-dbgsym_1.1.0.deb-1.1_amd64.deb: OK sha256: coccinelle_1.1.0.deb-1.1_amd64.deb: OK Checksums: OK