Skip to content

Commit

Permalink
fix: Remove iterations counter
Browse files Browse the repository at this point in the history
This is very old debugging code that shouldn't be there any longer.
  • Loading branch information
uncomputable committed Aug 29, 2024
1 parent f6e7ecf commit 0be5b02
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/bit_machine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,19 +245,13 @@ impl BitMachine {

let mut ip = program;
let mut call_stack = vec![];
let mut iterations = 0u64;

let output_width = ip.arrow().target.bit_width();
if output_width > 0 {
self.new_frame(output_width);
}

'main_loop: loop {
iterations += 1;
if iterations % 1_000_000_000 == 0 {
println!("({:5} M) exec {:?}", iterations / 1_000_000, ip);
}

match ip.inner() {
node::Inner::Unit => {}
node::Inner::Iden => {
Expand Down

0 comments on commit 0be5b02

Please sign in to comment.