diff --git a/miden/Cargo.toml b/miden/Cargo.toml index 487f2d17a9..32253f4684 100644 --- a/miden/Cargo.toml +++ b/miden/Cargo.toml @@ -64,5 +64,5 @@ escargot = "0.5.7" num-bigint = "0.4" predicates = "3.0" test-utils = { package = "miden-test-utils", path = "../test-utils" } -vm-core = { package = "miden-core", path = "../core", version = "0.7" } winter-fri = { package = "winter-fri", version = "0.6" } +vm-core = { package = "miden-core", path = "../core", version = "0.7" } diff --git a/miden/src/tools/mod.rs b/miden/src/tools/mod.rs index 32c40534ae..e209d60618 100644 --- a/miden/src/tools/mod.rs +++ b/miden/src/tools/mod.rs @@ -36,6 +36,21 @@ impl Analyze { let execution_details: ExecutionDetails = analyze(program.as_str(), stack_inputs, host) .expect("Could not retrieve execution details"); + let program_name = self + .assembly_file + .file_name() + .expect("provided file path is incorrect") + .to_str() + .unwrap(); + print!("\nAnalyzed {} program", program_name); + if let Some(input_path) = &self.input_file { + let input_name = input_path + .file_name() + .expect("provided input path is incorrect") + .to_str() + .unwrap(); + println!(" with {}", input_name); + } println!("{}", execution_details); @@ -134,7 +149,7 @@ impl fmt::Display for ExecutionDetails { ├── Hash chiplet rows: {} ├── Bitwise chiplet rows: {} ├── Memory chiplet rows: {} - └── Kernel ROM rows: {}", + └── Kernel ROM rows: {}\n", self.trace_len_summary().trace_len(), self.trace_len_summary().padded_trace_len(), padding_percentage, @@ -148,7 +163,6 @@ impl fmt::Display for ExecutionDetails { )?; let total_noops = self.total_noops(); let asm_op_stats = self.asm_op_stats(); - writeln!(f, "Total Number of NOOPs executed: {}\n", total_noops)?; // calculate the total length of pading for the `AsmOp` column let padding = @@ -157,7 +171,7 @@ impl fmt::Display for ExecutionDetails { writeln!( f, "{0: