Coccinelle archive mirror
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Julia Lawall <julia.lawall@inria.fr>, cocci@inria.fr
Subject: Re: [cocci] Terminology evolution for SmPL?
Date: Fri, 24 Oct 2025 21:03:43 +0200	[thread overview]
Message-ID: <bd83f450-3110-47a5-ac5d-ea12f5eae323@web.de> (raw)
In-Reply-To: <d1b6d33d-cfc0-ff6b-47de-7bbc28e8a7d@inria.fr>

> There is no guarantee that two metavariables don't match the same thing.

Can such information also mean that some metavariables would be treated as aliases?

I imagine there are further consequences to consider for the involved terminology.
Will chances grow to achieve related improvements?


> If you don't want them to match the same thing, then you need to use a disjunction.

It seems that there are logical constraints.


>               In the first branch,

Unwanted source code parts can be excluded at the beginning so that the “gems”
would be left over at the end.


>                                    the same metavariable should be used twice,

Some processing efforts were needed already for such a condition check.
Would it be nice if further symbol information can be reused?


>        and then in the second branch there would be the two different metavariables.

Can a name registry be helpful here?



>                 The match should only be indicated for the second branch.

Would it eventually become affected by combinatorial explosion?

Regards,
Markus

  parent reply	other threads:[~2025-10-24 19:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-19 14:00 [cocci] Analysis challenges with SmPL for pass-through functions? Markus Elfring
2025-10-19 14:10 ` Julia Lawall
2025-10-19 14:25   ` Markus Elfring
2025-10-19 14:30     ` Julia Lawall
2025-10-19 14:37       ` Markus Elfring
2025-10-19 14:40         ` Julia Lawall
2025-10-19 14:50           ` Markus Elfring
2025-10-21  6:16   ` Markus Elfring
2025-10-21  9:12     ` Julia Lawall
2025-10-21  9:40       ` Markus Elfring
2025-10-24 19:03   ` Markus Elfring [this message]
2025-10-22  9:20 ` Markus Elfring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd83f450-3110-47a5-ac5d-ea12f5eae323@web.de \
    --to=markus.elfring@web.de \
    --cc=cocci@inria.fr \
    --cc=julia.lawall@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).