Skip to content

Commit

Permalink
Expose MasterBaseTable::u32_table_length()
Browse files Browse the repository at this point in the history
This will enable benchmarking the cost of simulating a program outside
the scope of the triton-vm crate.
  • Loading branch information
sshine committed Jan 13, 2023
1 parent 8e2ae01 commit 3c91651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion triton-vm/src/table/master_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ impl MasterBaseTable {
roundup_npo2(max_height as u64) as usize
}

fn u32_table_length(aet: &AlgebraicExecutionTrace) -> usize {
pub fn u32_table_length(aet: &AlgebraicExecutionTrace) -> usize {
aet.u32_entries
.iter()
.map(|(_, lhs, rhs)| max(lhs.value(), rhs.value()))
Expand Down

0 comments on commit 3c91651

Please sign in to comment.