Coccinelle archive mirror
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@inria.fr>
To: Markus Elfring <Markus.Elfring@web.de>
Cc: cocci@inria.fr
Subject: Re: [cocci] Increasing awareness for short-circuit evaluation consequences by SmPL disjunctions?
Date: Wed, 5 Feb 2025 13:11:42 +0100 (CET)	[thread overview]
Message-ID: <9cfd83f7-cc7-fbf-1432-c3ce47337987@inria.fr> (raw)
In-Reply-To: <55fe2528-2405-4762-8e2c-f326810dc2ea@web.de>



On Wed, 5 Feb 2025, Markus Elfring wrote:

> Hello,
>
> Disjunctions of the semantic patch language are using short-circuit evaluation.
> It has got the consequence that the last element of the specified condition will
> only be checked if all previous parts did not match. Such a technical detail
> can lead to a recommended ordering of condition parts if you would like to care
> for optimal run time characteristics of SmPL code.
>
> The usage incidence might be unclear for involved case distinctions.
> How do you think about to clarify possibilities any further for the reordering of
> SmPL disjunction items?

What is unclear?  The disjunction branches are not reordered.

julia

  reply	other threads:[~2025-02-05 12:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-05 12:05 [cocci] Increasing awareness for short-circuit evaluation consequences by SmPL disjunctions? Markus Elfring
2025-02-05 12:11 ` Julia Lawall [this message]
2025-02-05 12: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=9cfd83f7-cc7-fbf-1432-c3ce47337987@inria.fr \
    --to=julia.lawall@inria.fr \
    --cc=Markus.Elfring@web.de \
    --cc=cocci@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).