Skip to content

Commit

Permalink
Fix CFG visualization when dynamic analysis is not available (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov authored May 11, 2023
1 parent 5e38501 commit 8a1615c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/static_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,7 @@ impl<'a> Analysis<'a> {
.collect::<Vec<String>>()
.join(" ")
)?;
} else {
let dynamic_analysis = dynamic_analysis.unwrap();
} else if let Some(dynamic_analysis) = dynamic_analysis {
for (destination, counter) in edges {
write!(output, " lbb_{cfg_node_start} -> ")?;
if function_range.contains(&destination) {
Expand Down

0 comments on commit 8a1615c

Please sign in to comment.