* [cocci] Avoiding duplicate elements in SmPL disjunctions?
@ 2025-11-08 9:50 Markus Elfring
2025-11-22 10:35 ` Markus Elfring
0 siblings, 1 reply; 8+ messages in thread
From: Markus Elfring @ 2025-11-08 9:50 UTC (permalink / raw)
To: cocci
Hello,
I tried the following script variant out for the semantic patch language.
@display@
statement s;
@@
*while (1)
s
Questionable test result (according to the software combination “Coccinelle 1.3.0”):
Markus_Elfring@Sonne:…/Projekte/Coccinelle/janitor> /usr/bin/spatch --parse-cocci show_unlimited_while_loops.cocci
…
(
*while *(*1*)
|
*while *(*1 *!= *0*)
|
*while *(*1*)
|
*while *(*0 *!= *1*)
)s
…
An element of the generated SmPL disjunction got repeated somehow.
How do you think about to avoid such duplicate code?
Regards,
Markus
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [cocci] Avoiding duplicate elements in SmPL disjunctions? 2025-11-08 9:50 [cocci] Avoiding duplicate elements in SmPL disjunctions? Markus Elfring @ 2025-11-22 10:35 ` Markus Elfring [not found] ` <188e41fa-91c5-b09c-51d1-8f69f5d8cea@inria.fr> 2026-08-25 16:32 ` Markus Elfring 0 siblings, 2 replies; 8+ messages in thread From: Markus Elfring @ 2025-11-22 10:35 UTC (permalink / raw) To: cocci > An element of the generated SmPL disjunction got repeated somehow. > How do you think about to avoid such duplicate code? Will another data representation trigger more desirable improvements? Markus_Elfring@Sonne:…/Projekte/Coccinelle/janitor> /usr/bin/spatch --parse-cocci show_unlimited_while_loops.cocci | sort | uniq -c -d … 2 *while *(*1*) Markus_Elfring@Sonne:~> /usr/bin/spatch --parse-cocci --sp '! 2' | sort | uniq -c -d … 3 *0 *== *2 3 *!*2 3 *2 *== *0 Which components of the Coccinelle software are responsible for such data processing results? Regards, Markus ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <188e41fa-91c5-b09c-51d1-8f69f5d8cea@inria.fr>]
* Re: [cocci] Avoiding duplicate elements in SmPL disjunctions? [not found] ` <188e41fa-91c5-b09c-51d1-8f69f5d8cea@inria.fr> @ 2025-11-22 14:54 ` Markus Elfring 2025-11-23 10:00 ` Markus Elfring 1 sibling, 0 replies; 8+ messages in thread From: Markus Elfring @ 2025-11-22 14:54 UTC (permalink / raw) To: Julia Lawall; +Cc: cocci >> Which components of the Coccinelle software are responsible for such >> data processing results? > iso_pattern.ml Thanks that you pointed this OCaml source file out finally. https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/2d5df416a939c5c7b9d958559be3b63e0b1414fe/parsing_cocci/iso_pattern.ml Unfortunately, I find that such source code is not directly adjustable (by me). Thus I hope that algorithmic properties can be clarified better also according to reported remaining open issues. Regards, Markus ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [cocci] Avoiding duplicate elements in SmPL disjunctions? [not found] ` <188e41fa-91c5-b09c-51d1-8f69f5d8cea@inria.fr> 2025-11-22 14:54 ` Markus Elfring @ 2025-11-23 10:00 ` Markus Elfring [not found] ` <c23ff4fa-b44e-f653-8015-9c573ae2ad47@inria.fr> 1 sibling, 1 reply; 8+ messages in thread From: Markus Elfring @ 2025-11-23 10:00 UTC (permalink / raw) To: Julia Lawall, cocci > iso_pattern.ml Do test results indicate that data processing for isomorphisms is still so erroneous that this functionality should be deactivated until the implementation quality will really be acceptable? How can it be switched off? https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/2d5df416a939c5c7b9d958559be3b63e0b1414fe/docs/manual/spatch_options.tex#L93-112 Regards, Markus ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <c23ff4fa-b44e-f653-8015-9c573ae2ad47@inria.fr>]
* Re: [cocci] Avoiding duplicate elements in SmPL disjunctions? [not found] ` <c23ff4fa-b44e-f653-8015-9c573ae2ad47@inria.fr> @ 2025-11-23 10:15 ` Markus Elfring 0 siblings, 0 replies; 8+ messages in thread From: Markus Elfring @ 2025-11-23 10:15 UTC (permalink / raw) To: Julia Lawall, cocci >> Do test results indicate that data processing for isomorphisms is still so erroneous >> that this functionality should be deactivated until the implementation quality >> will really be acceptable? > > The implementation quality is fine. I got an other impression. > No one has complained for the last 15 years. Am I a contributor who presented relevant bug reports? How will development interests (and resources) evolve further? Regards, Markus ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [cocci] Avoiding duplicate elements in SmPL disjunctions? 2025-11-22 10:35 ` Markus Elfring [not found] ` <188e41fa-91c5-b09c-51d1-8f69f5d8cea@inria.fr> @ 2026-08-25 16:32 ` Markus Elfring 2026-08-25 16:40 ` Julia Lawall 1 sibling, 1 reply; 8+ messages in thread From: Markus Elfring @ 2026-08-25 16:32 UTC (permalink / raw) To: cocci > Markus_Elfring@Sonne:~> /usr/bin/spatch --parse-cocci --sp '! 2' | sort | uniq -c -d > … > 3 *0 *== *2 > 3 *!*2 > 3 *2 *== *0 Can a command like “`spatch --parse-cocci --sp '! 2' | sort | uniq -c -d`” trigger further test considerations according to Coccinelle 1.3.1 and 1.3.2? Questionable test result: … 5 3 @@ 8 | Regards, Markus ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [cocci] Avoiding duplicate elements in SmPL disjunctions? 2026-08-25 16:32 ` Markus Elfring @ 2026-08-25 16:40 ` Julia Lawall 2026-08-25 19:27 ` Markus Elfring 0 siblings, 1 reply; 8+ messages in thread From: Julia Lawall @ 2026-08-25 16:40 UTC (permalink / raw) To: Markus Elfring; +Cc: cocci [-- Attachment #1: Type: text/plain, Size: 476 bytes --] On Tue, 25 Aug 2026, Markus Elfring wrote: > > Markus_Elfring@Sonne:~> /usr/bin/spatch --parse-cocci --sp '! 2' | sort | uniq -c -d > > … > > 3 *0 *== *2 > > 3 *!*2 > > 3 *2 *== *0 > > Can a command like “`spatch --parse-cocci --sp '! 2' | sort | uniq -c -d`” > trigger further test considerations according to Coccinelle 1.3.1 and 1.3.2? > > Questionable test result: > … > 5 > 3 @@ > 8 | I have no idea what this means. julia ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [cocci] Avoiding duplicate elements in SmPL disjunctions? 2026-08-25 16:40 ` Julia Lawall @ 2026-08-25 19:27 ` Markus Elfring 0 siblings, 0 replies; 8+ messages in thread From: Markus Elfring @ 2026-08-25 19:27 UTC (permalink / raw) To: Julia Lawall, cocci >> Can a command like “`spatch --parse-cocci --sp '! 2' | sort | uniq -c -d`” >> trigger further test considerations according to Coccinelle 1.3.1 and 1.3.2? >> >> Questionable test result: >> … >> 5 >> 3 @@ >> 8 | > > I have no idea what this means. Would any more software users dare to retry mentioned test commands? Regards, Markus ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-08-26 10:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-08 9:50 [cocci] Avoiding duplicate elements in SmPL disjunctions? Markus Elfring
2025-11-22 10:35 ` Markus Elfring
[not found] ` <188e41fa-91c5-b09c-51d1-8f69f5d8cea@inria.fr>
2025-11-22 14:54 ` Markus Elfring
2025-11-23 10:00 ` Markus Elfring
[not found] ` <c23ff4fa-b44e-f653-8015-9c573ae2ad47@inria.fr>
2025-11-23 10:15 ` Markus Elfring
2026-08-25 16:32 ` Markus Elfring
2026-08-25 16:40 ` Julia Lawall
2026-08-25 19:27 ` Markus Elfring
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.