Skip to content

Analysis: .back_edge miscomputed, preventing loop detection #2738

Answered by lwerdna
lwerdna asked this question in Q&A
Discussion options

You must be logged in to vote

Binary Ninja's definition of back edge doesn't require the ancestor node to dominate the descendent. The field is computed and used in internal processing of basic blocks, so not easily changed. If you want the more strict definition, you can simply check that edge.target in edge.source.dominators.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lwerdna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2692 on October 25, 2021 18:30.