-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Import CFG printing from the erc20 repo * Remove checking for loops. The backward reachability method returns false positives. We don't care if a node can loop back to itself somehow, but only that it completes a loop by reaching some previous instance of itself in the history displayed so far. * Remove unnessesary empty line * kprint.pretty_print: Overload to allow printing Substs We don't add pretty print as a member to Subst since this causes a circular dependency between kprint.py and kast.py * Revert "kprint.pretty_print: Overload to allow printing Substs" This reverts commit 8ad6728. * kcfg: pretty_print: Convert Substs to Preds before printing The expected output looks ugly, but when we're using a real KPrint it should be fine. * kcfg: Keep track of previously visited nodes to detect loops * isort * flake8 * kcfg: to_dot: Don't remove leaf -- Its OK if we have an unused class for a node. * flake8: Some of this indentation actually makes things uglier :-( * Update pyk/src/pyk/tests/test_kcfg.py Co-authored-by: Everett Hildenbrandt <[email protected]> * kcfg: Mark internal functions with _ * visited_nodes => prior_on_trace * extract pretty printers for nodes and edges * pyk: Extract method edge_likes = edges+covers * print_subgraph => _print_subgraph Co-authored-by: Everett Hildenbrandt <[email protected]>
- Loading branch information
Showing
3 changed files
with
184 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters