Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EBBA6C4828F for ; Thu, 8 Feb 2024 13:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:in-reply-to:message-id:references: mime-version:subject:reply-to:sender:list-id:list-help: list-subscribe:list-unsubscribe:list-post:list-owner: list-archive; bh=nTtJInPi56+eA7jIqIyQNALirx1cYxhThkVO392NtDc=; b=o2q+0ZFTVL+YW1uIsmm/Ur6yTvPif5b63xKs2cWtVyPvSu2+1fvDDq3t hupL7Glqr6HeFoiO++525gbOa6T7pdIqXNlz5gyRBZdTcmNW9WEpbjfFS ZbJlp2QrRwGsWchpkTCZmn5Yqyd90jjfftdEW3sq/5AzFZDJLA6K+GtXX c=; Received-SPF: Pass (mail2-relais-roc.national.inria.fr: domain of cocci-owner@inria.fr designates 128.93.162.160 as permitted sender) identity=mailfrom; client-ip=128.93.162.160; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="cocci-owner@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@sympa.inria.fr) identity=helo; client-ip=128.93.162.160; receiver=mail2-relais-roc.national.inria.fr; envelope-from="cocci-owner@inria.fr"; x-sender="postmaster@sympa.inria.fr"; x-conformance=spf_only Authentication-Results: mail2-relais-roc.national.inria.fr; spf=Pass smtp.mailfrom=cocci-owner@inria.fr; spf=None smtp.helo=postmaster@sympa.inria.fr; dkim=pass (signature verified) header.i=@inria.fr X-IronPort-AV: E=Sophos;i="6.05,253,1701126000"; d="scan'208";a="150962952" Received: from prod-listesu18.inria.fr (HELO sympa.inria.fr) ([128.93.162.160]) by mail2-relais-roc.national.inria.fr with ESMTP; 08 Feb 2024 14:23:25 +0100 Received: by sympa.inria.fr (Postfix, from userid 20132) id AB2B0E00B7; Thu, 8 Feb 2024 14:23:25 +0100 (CET) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id D2481E008A for ; Thu, 8 Feb 2024 14:23:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=nTtJInPi56+eA7jIqIyQNALirx1cYxhThkVO392NtDc=; b=Yp0Qf2uYNsi1sd4TGvuDQvz8f8yMRqQNo918cJKC/vB+hu65z5gQNIQa 1d7BDsHazBwlL2W/CHoLEJc+dN5nkxmHWN68oNapQpxhOVhKzMzcl4z7K uLyGyloCL6Sw/psYZ69PqBKa7yDyz6fVUfVyGAmIS5wy+4xGlJl7M7n3i o=; X-IronPort-AV: E=Sophos;i="6.05,253,1701126000"; d="scan'208";a="79107386" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 14:23:22 +0100 Date: Thu, 8 Feb 2024 14:23:21 +0100 (CET) From: Julia Lawall To: Markus Elfring cc: cocci@inria.fr In-Reply-To: Message-ID: <510575-bbc0-442-85a3-3c2fa510aba7@inria.fr> References: <7639c70-41e8-9a1-3a5-3a7711fc465@inria.fr> <1f8cb65b-715f-404c-84f7-8eee6de02352@web.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-26116560-1707398601=:3408" Subject: Re: [cocci] Improving support for code positions with opposite SmPL dependencies Reply-To: Julia Lawall X-Loop: cocci@inria.fr X-Sequence: 1517 Errors-To: cocci-owner@inria.fr Precedence: list Precedence: bulk Sender: cocci-request@inria.fr X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-26116560-1707398601=:3408 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 8 Feb 2024, Markus Elfring wrote: > >>>> Markus_Elfring@Sonne:…/Projekte/Coccinelle/Probe> spatch --parse-cocci test2-switch_opposite_dependencies-20240208.cocci > >>>> … > >>>> meta: semantic error: position cannot be inherited over modifications: call_pos > >>>> File "test2-switch_opposite_dependencies-20240208.cocci", line 28, column 44, charpos = 572 > >>>> around = ';', > >>>> whole content = position find.call_pos, find.declaration_pos; > >>>> > >>>> > >>>> Will source code transformations become better supported according to > >>>> opposite SmPL dependencies? > >> > >> I would appreciate more constructive feedback for this test result. > > > > Once you make transformations, the positions of the > > changed code have changed. > > I propose to take the specification “adjustment2 depends on !test_switch” > better into account . > This case distinction is already working as expected for the > specification “virtual test_switch” according to another test case variant. And? The fact that one case is the negation of the other doesn't do anything to imply that eg multiple matches cannot occur in the same function. > How will the handling of “if … else …” constructs evolve further for SmPL code? It won't. julia --8323329-26116560-1707398601=:3408--