Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data flow: Rework reverse flow through parameters #18109

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Nov 26, 2024

No description provided.

@hvitved hvitved force-pushed the dataflow/reverse-flow branch from 8d261e5 to 2e254e4 Compare November 26, 2024 13:03
@hvitved hvitved force-pushed the dataflow/reverse-flow branch 4 times, most recently from 8f34281 to f37447b Compare December 2, 2024 13:48
@hvitved hvitved force-pushed the dataflow/reverse-flow branch 8 times, most recently from a2dc9b1 to 13b8249 Compare December 9, 2024 12:37
@github-actions github-actions bot removed the Python label Dec 9, 2024
@hvitved hvitved force-pushed the dataflow/reverse-flow branch 7 times, most recently from 3b814f0 to d0673a1 Compare December 12, 2024 19:36
@hvitved hvitved force-pushed the dataflow/reverse-flow branch 3 times, most recently from 6534946 to 296d8fb Compare December 13, 2024 13:44
@hvitved hvitved force-pushed the dataflow/reverse-flow branch from 296d8fb to 45c5da2 Compare December 13, 2024 14:14
)
or
// flow through: no prior read
exists(ArgNode arg |

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
loadStep
is not marked as nomagic.
) {
exists(ParameterPosition pos |
parameterValueFlowsToPreUpdate(p, n) and
p.isParameterOf(_, pos) and

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
) {
c = getNodeEnclosingCallable(n) and
paramReturnNode(n, p, _, kind)
}

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
@hvitved hvitved force-pushed the dataflow/reverse-flow branch from 45c5da2 to 23d552e Compare December 13, 2024 14:22
@hvitved hvitved force-pushed the dataflow/reverse-flow branch from 23d552e to d84ca39 Compare December 20, 2024 14:00
@@ -2267,14 +2299,15 @@
)
or
// flow out of a callable
exists(ReturnPosition pos |
revFlowOut(_, node, pos, state, _, _, _, ap) and
exists(DataFlowCall call, ReturnPosition pos |

Check warning

Code scanning / CodeQL

Omittable 'exists' variable Warning

This exists variable can be omitted by using a don't-care expression
in this argument
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant