Skip to content

Commit

Permalink
add single thread option
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Aug 29, 2024
1 parent c61158c commit 23513b4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ struct Args {
#[arg(long)]
single_thread: bool,
#[arg(long)]
show_system: bool,
#[arg(long)]
max_cycles: Option<u64>,
#[arg(value_name = "BTOR2", index = 1)]
filename: String,
}

static RANDOM_OPTS: RandomOptions = RandomOptions {
small_k: 50,
large_k: 1_000,
large_k_prob: 0.0,
large_k: 10_000,
large_k_prob: 0.5,
max_cycles: None,
};

Expand All @@ -50,6 +52,10 @@ fn main() {
replace_anonymous_inputs_with_zero(&mut ctx, &mut sys);
simplify_expressions(&mut ctx, &mut sys);

if args.show_system {
println!("{}", sys.serialize_to_str(&ctx));
}

// run testing on multiple cores
let num_threads = if args.single_thread {
1
Expand Down

0 comments on commit 23513b4

Please sign in to comment.