Skip to content

Commit

Permalink
alphabetical order + uncontrained handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed May 30, 2024
1 parent 20900b6 commit e794384
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ impl ExecutionReport {
pub fn total_instruction_count(&self) -> u64 {
self.instruction_counts.values().sum()
}

pub fn total_syscall_count(&self) -> u64 {
self.syscall_counts.values().sum()
}
}

impl Display for ExecutionReport {
Expand Down Expand Up @@ -582,7 +586,7 @@ impl Runtime {
let mut memory_store_value: Option<u32> = None;
self.memory_accesses = MemoryAccessRecord::default();

if self.should_report {
if self.should_report && !self.unconstrained {
self.report
.instruction_counts
.entry(instruction.opcode)
Expand Down Expand Up @@ -804,7 +808,7 @@ impl Runtime {
b = self.rr(Register::X10, MemoryAccessPosition::B);
let syscall = SyscallCode::from_u32(syscall_id);

if self.should_report {
if self.should_report && !self.unconstrained {
self.report
.syscall_counts
.entry(syscall)
Expand Down

0 comments on commit e794384

Please sign in to comment.