* [cocci] Searching for longer conjunctions (with SmPL)?
@ 2025-06-29 13:05 Markus Elfring
2025-06-29 13:29 ` Julia Lawall
2025-06-30 9:23 ` [cocci] Data processing requirements by expressions Markus Elfring
0 siblings, 2 replies; 5+ messages in thread
From: Markus Elfring @ 2025-06-29 13:05 UTC (permalink / raw)
To: cocci
Hello,
Is there a need to refine a source code search pattern (like the following)?
@display@
expression a, b, c, d;
@@
(
*a && b && c && d && ...
|
*a && b && c && d
)
Would you be looking for more powerful data processing systems for further
static code analysis attempts (also according to Linux source files)?
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [cocci] Searching for longer conjunctions (with SmPL)?
2025-06-29 13:05 [cocci] Searching for longer conjunctions (with SmPL)? Markus Elfring
@ 2025-06-29 13:29 ` Julia Lawall
2025-06-29 13:37 ` Markus Elfring
2025-06-30 9:23 ` [cocci] Data processing requirements by expressions Markus Elfring
1 sibling, 1 reply; 5+ messages in thread
From: Julia Lawall @ 2025-06-29 13:29 UTC (permalink / raw)
To: Markus Elfring; +Cc: cocci
On Sun, 29 Jun 2025, Markus Elfring wrote:
> Hello,
>
> Is there a need to refine a source code search pattern (like the following)?
>
>
> @display@
> expression a, b, c, d;
> @@
> (
> *a && b && c && d && ...
> |
> *a && b && c && d
> )
I don't see the point having both cases.
julia
>
>
> Would you be looking for more powerful data processing systems for further
> static code analysis attempts (also according to Linux source files)?
>
> Regards,
> Markus
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [cocci] Searching for longer conjunctions (with SmPL)?
2025-06-29 13:29 ` Julia Lawall
@ 2025-06-29 13:37 ` Markus Elfring
2025-06-29 14:04 ` Julia Lawall
0 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2025-06-29 13:37 UTC (permalink / raw)
To: Julia Lawall, cocci
> I don't see the point having both cases.
Do you expect that the following source code search pattern should present
a bit of diff output?
@display2@
expression a, b, c, d;
@@
return
*a && b && c && d && ...
;
Markus_Elfring@Sonne:…/Projekte/Linux/next-analyses> time /usr/bin/spatch --no-loops …/Projekte/Coccinelle/janitor/show_return_with_four_conjunction_items_at_least2.cocci include/uapi/linux/cec.h
…
real 0m0,149s
user 0m0,116s
sys 0m0,033s
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [cocci] Searching for longer conjunctions (with SmPL)?
2025-06-29 13:37 ` Markus Elfring
@ 2025-06-29 14:04 ` Julia Lawall
0 siblings, 0 replies; 5+ messages in thread
From: Julia Lawall @ 2025-06-29 14:04 UTC (permalink / raw)
To: Markus Elfring; +Cc: cocci
On Sun, 29 Jun 2025, Markus Elfring wrote:
> > I don't see the point having both cases.
>
> Do you expect that the following source code search pattern should present
> a bit of diff output?
>
>
> @display2@
> expression a, b, c, d;
> @@
> return
> *a && b && c && d && ...
> ;
OK, there is an isomorphism for &&, but it only works when the && is in a
test expression. That is not the case here. the ... just matches any
expression.
julia
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [cocci] Data processing requirements by expressions
2025-06-29 13:05 [cocci] Searching for longer conjunctions (with SmPL)? Markus Elfring
2025-06-29 13:29 ` Julia Lawall
@ 2025-06-30 9:23 ` Markus Elfring
1 sibling, 0 replies; 5+ messages in thread
From: Markus Elfring @ 2025-06-30 9:23 UTC (permalink / raw)
To: cocci
Hello,
Expressions tend to be used in a lot of source files.
There are source code bases (like Linux) with amazing sizes.
Which computation system resources would you use if you do not like to wait days or some hours
on corresponding data processing results from static code analysis attempts?
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-30 9:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-29 13:05 [cocci] Searching for longer conjunctions (with SmPL)? Markus Elfring
2025-06-29 13:29 ` Julia Lawall
2025-06-29 13:37 ` Markus Elfring
2025-06-29 14:04 ` Julia Lawall
2025-06-30 9:23 ` [cocci] Data processing requirements by expressions Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox