question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CFGAccurate.remove_cycles() function never removes any cycles

See original GitHub issue

Function CFGAccurate.remove_cycles() does not remove any cycles from CFG because of type mismatch. cfg._loop_back_edges returns edges with Blocknode types while the cfg._graph has CFGnode type.

The if self._graph.has_edge(b1, b2): condition inside the function never becomes true even if the edge is present in the graph. So the loop back edge never gets removed from the graph

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ltfishcommented, Apr 19, 2018

cfg.get_any_node(addr) should give you the CFGNode w.r.t. the given address. This is without considering context-sensitivity.

0reactions
github-actions[bot]commented, Aug 23, 2022

This issue has been closed due to inactivity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CFG - angr Documentation
string_references() returns a list of all the constant strings that were referred to at any point in the function. They are formatted as...
Read more >
How to remove cycles from a directed graph
You can always make a digraph acyclic by removing all edges. The goal in feedback arc set is to remove the minimum number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found