Skip to content

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Nov 21, 2022

It turns out that @kind graph queries do not currently support multiple edges with the same origin and target (but distinguished by label), so we were missing CFG edges in the test output for C#, Ruby, and Swift.

@hvitved hvitved changed the title CFG: Workaround in test output for source/sink pairs with multiple edges CFG: Workaround in test output for origin/target pairs with multiple edges Nov 21, 2022
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Nov 21, 2022
@hvitved hvitved marked this pull request as ready for review November 21, 2022 12:12
@hvitved hvitved requested review from a team as code owners November 21, 2022 12:12
@@ -811,7 +811,7 @@ case.rb:
#-----| -> [ ..., * ]

# 35| [ ..., * ]
#-----| match -> x
#-----| false, match, true -> x
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this actually right? I wonder where the true and false edges come from.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this is a bug. It may be addressed already by @hmac's CFG changes, but in all cases, I think we should handle it follow-up.

Copy link
Contributor

Choose a reason for hiding this comment

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

Perfect!

@hvitved hvitved merged commit d189ba5 into github:main Nov 21, 2022
@hvitved hvitved deleted the cfg/multi-edge-workaround branch November 21, 2022 13:34
@hvitved hvitved restored the cfg/multi-edge-workaround branch December 9, 2022 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# no-change-note-required This PR does not need a change note Ruby Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants