Skip to content

Shared: Use isSink/1 in PropagateFlowConfig #19404

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

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

MathiasVP
Copy link
Contributor

A not-super-widely-known feature from state-based dataflow configurations is that you can omit the state (see here) in the isSink when you don't want to restrict the state in isSink.

It looks like this is exactly what's being done in PropagateFlowConfig::isSink so we might as well omit the sink and avoid the small cartesian product.

@MathiasVP MathiasVP marked this pull request as ready for review April 28, 2025 17:25
@Copilot Copilot AI review requested due to automatic review settings April 28, 2025 17:25
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • shared/mad/codeql/mad/modelgenerator/internal/ModelGeneratorImpl.qll: Language not supported

@MathiasVP MathiasVP requested a review from michaelnebel April 28, 2025 17:25
@MathiasVP MathiasVP added the no-change-note-required This PR does not need a change note label Apr 28, 2025
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MathiasVP MathiasVP merged commit daf953f into github:main Apr 29, 2025
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants