Skip to content

Commit

Permalink
All current features except show_ancestors implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
oskari1 committed Dec 1, 2023
1 parent 59a2e31 commit d9b7c34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions axiom-profiler-GUI/src/results/filters/graph_filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ impl Filter {
Filter::MaxInsts(n) => graph.keep_n_most_costly(n),
Filter::HideSubTreeWithRoot(nidx) => graph.remove_subtree_with_root(nidx),
Filter::ShowNeighbours(nidx, direction) => graph.show_neighbours(nidx, direction),
// Filter::ShowSourceTree(nidx) => graph.show_ancestors(nidx),
_ => (),
Filter::ShowSourceTree(nidx) => graph.show_ancestors(nidx),
}
}
}
Expand Down
14 changes: 7 additions & 7 deletions smt-log-parser/src/parsers/z3/inst_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ impl InstGraph {
}
}

// pub fn show_ancestors(&mut self, node: NodeIndex) {
// let orig_with_reversed_edges = petgraph::visit::Reversed(&self.orig_graph);
// let mut dfs = Dfs::new(orig_with_reversed_edges, node);
// while let Some(nx) = dfs.next(orig_with_reversed_edges) {
// self.orig_graph[nx].visible = true;
// }
// }
pub fn show_ancestors(&mut self, node: NodeIndex) {
// let orig_with_reversed_edges = petgraph::visit::Reversed(&self.orig_graph);
// let mut dfs = Dfs::new(orig_with_reversed_edges, node);
// while let Some(nx) = dfs.next(orig_with_reversed_edges) {
// self.orig_graph[nx].visible = true;
// }
}

pub fn reset(&mut self) {
for node in self.orig_graph.node_weights_mut() {
Expand Down

0 comments on commit d9b7c34

Please sign in to comment.