Skip to content

Commit

Permalink
Remove some prints
Browse files Browse the repository at this point in the history
  • Loading branch information
mwillsey committed Nov 17, 2021
1 parent 1efe2ce commit 7e8676d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,9 @@ impl<'a, L: Language> Compiler<'a, L> {

self.add_todo(Id::from(last_i), Reg(0));

println!("Compiling: {:?}", self.pattern);

while let Some((id, (reg, node))) = self.next() {
if self.is_ground_now(id) && !node.is_leaf() {
let extracted = self.pattern.extract(id);
println!(
"grounded! ({:?})\n{:?}\n => {:?}",
self.instructions, self.v2r, extracted
);
self.instructions.push(Instruction::Lookup {
i: reg,
term: extracted
Expand Down Expand Up @@ -256,8 +250,6 @@ impl<'a, L: Language> Compiler<'a, L> {
}
}

println!("Compiled to {:#?}", self.instructions);

let mut subst = Subst::default();
for (v, r) in self.v2r {
subst.insert(v, Id::from(r.0 as usize));
Expand Down

0 comments on commit 7e8676d

Please sign in to comment.