Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mattxwang committed Jul 6, 2023
1 parent ae46fad commit 5840c29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/one_shot_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ fn compile_bdd_dtree(str: String, _args: &Args) -> BenchResult {
let cnf = Cnf::from_file(str);
let order = cnf.min_fill_order();
let dtree = DTree::from_cnf(&cnf, &order);
let man = StandardBddBuilder::<BddApplyTable<BddPtr>>::new(order, BddApplyTable::new(cnf.num_vars()));
let man =
StandardBddBuilder::<BddApplyTable<BddPtr>>::new(order, BddApplyTable::new(cnf.num_vars()));
let plan = BddPlan::from_dtree(&dtree);
let _bdd = man.compile_plan(&plan);

Expand Down
4 changes: 3 additions & 1 deletion src/builder/bdd_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ impl<'a, T: LruTable<'a, BddPtr<'a>>> StandardBddBuilder<'a, T> {
StandardBddBuilder::new(default_order, AllTable::new())
}

pub fn new_default_order_lru(num_vars: usize) -> StandardBddBuilder<'a, BddApplyTable<BddPtr<'a>>> {
pub fn new_default_order_lru(
num_vars: usize,
) -> StandardBddBuilder<'a, BddApplyTable<BddPtr<'a>>> {
let default_order = VarOrder::linear_order(num_vars);
StandardBddBuilder::new(default_order, BddApplyTable::new(21))
}
Expand Down
2 changes: 1 addition & 1 deletion src/wasm/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::builder::bdd_builder::{StandardBddBuilder, BddPtr, DDNNFPtr};
use crate::builder::bdd_builder::{BddPtr, DDNNFPtr, StandardBddBuilder};
use crate::builder::cache::lru_app::BddApplyTable;
use crate::builder::sdd::builder::SddBuilder;
use crate::builder::sdd::compression::CompressionSddBuilder;
Expand Down

0 comments on commit 5840c29

Please sign in to comment.