Skip to content

Commit

Permalink
Merge pull request #250 from HigherOrderCO/use-hvmc-prune
Browse files Browse the repository at this point in the history
Use hvmc prune implementation
  • Loading branch information
imaqtkatt authored Apr 2, 2024
2 parents f4c551e + 17fe4f1 commit a8209d8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 35 deletions.
1 change: 0 additions & 1 deletion src/hvmc_net/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub mod mutual_recursion;
pub mod prune;
32 changes: 0 additions & 32 deletions src/hvmc_net/prune.rs

This file was deleted.

4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use hvmc::{
host::Host,
run::{DynNet, Heap, Rewrites},
};
use hvmc_net::{mutual_recursion, prune::prune_defs};
use hvmc_net::mutual_recursion;
use net::{hvmc_to_net::hvmc_to_net, net_to_hvmc::nets_to_hvmc};
use std::{
sync::{Arc, Mutex},
Expand Down Expand Up @@ -63,7 +63,7 @@ pub fn compile_book(
diagnostics.fatal(())?;
}
if opts.prune {
prune_defs(&mut core_book, book.hvmc_entrypoint().to_string());
core_book.prune(&[book.hvmc_entrypoint().to_string()]);
}
mutual_recursion::check_cycles(&core_book, &mut diagnostics)?;

Expand Down

0 comments on commit a8209d8

Please sign in to comment.