From 914899f645f32061d8d031792b44314173c44d3e Mon Sep 17 00:00:00 2001 From: Dmitri Makarov Date: Thu, 11 May 2023 11:32:31 -0400 Subject: [PATCH] Fix CFG visualization when dynamic analysis is not available --- src/static_analysis.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/static_analysis.rs b/src/static_analysis.rs index 464c0f5b..18dabcbc 100644 --- a/src/static_analysis.rs +++ b/src/static_analysis.rs @@ -682,8 +682,7 @@ impl<'a> Analysis<'a> { .collect::>() .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) {