Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Aug 23, 2023
1 parent d2f1ae6 commit b0d5f86
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
5 changes: 4 additions & 1 deletion tools/src/bin/cnf2opb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ struct Args {

fn main() {
let args = Args::parse();
let opb_opts = OpbOptions { first_var_idx: args.first_var_idx, no_negated_lits: args.avoid_negated_lits };
let opb_opts = OpbOptions {
first_var_idx: args.first_var_idx,
no_negated_lits: args.avoid_negated_lits,
};

let inst: SatInstance = if let Some(in_path) = args.in_path {
SatInstance::from_dimacs_path(in_path).expect("error parsing the input file")
Expand Down
5 changes: 4 additions & 1 deletion tools/src/bin/mcnf2opb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ struct Args {

fn main() {
let args = Args::parse();
let opb_opts = OpbOptions { first_var_idx: args.first_var_idx, no_negated_lits: args.avoid_negated_lits };
let opb_opts = OpbOptions {
first_var_idx: args.first_var_idx,
no_negated_lits: args.avoid_negated_lits,
};

let inst: MultiOptInstance = if let Some(in_path) = args.in_path {
MultiOptInstance::from_dimacs_path(in_path).expect("error parsing the input file")
Expand Down
5 changes: 4 additions & 1 deletion tools/src/bin/opb2cnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ struct Args {

fn main() {
let args = Args::parse();
let opb_opts = OpbOptions { first_var_idx: 0, ..Default::default() };
let opb_opts = OpbOptions {
first_var_idx: 0,
..Default::default()
};

let inst: SatInstance = if let Some(in_path) = args.in_path {
SatInstance::from_opb_path(in_path, opb_opts).expect("error parsing the input file")
Expand Down
5 changes: 4 additions & 1 deletion tools/src/bin/opb2mcnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ struct Args {

fn main() {
let args = Args::parse();
let opb_opts = OpbOptions { first_var_idx: 0, ..Default::default() };
let opb_opts = OpbOptions {
first_var_idx: 0,
..Default::default()
};

let inst: MultiOptInstance = if let Some(in_path) = args.in_path {
MultiOptInstance::from_opb_path(in_path, opb_opts).expect("error parsing the input file")
Expand Down
5 changes: 4 additions & 1 deletion tools/src/bin/opb2wcnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ struct Args {

fn main() {
let args = Args::parse();
let opb_opts = OpbOptions { first_var_idx: 0, ..Default::default() };
let opb_opts = OpbOptions {
first_var_idx: 0,
..Default::default()
};

let inst: OptInstance = if let Some(in_path) = args.in_path {
OptInstance::from_opb_path(in_path, opb_opts).expect("error parsing the input file")
Expand Down
2 changes: 1 addition & 1 deletion tools/src/bin/shuffledimacs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//!
//! Usage: shuffledimacs [dimacs [m,w]cnf file] [output path]
use std::path::{PathBuf, Path};
use std::path::{Path, PathBuf};

use rustsat::instances::{self, BasicVarManager, ManageVars, RandReindVarManager};

Expand Down
5 changes: 4 additions & 1 deletion tools/src/bin/wcnf2opb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ struct Args {

fn main() {
let args = Args::parse();
let opb_opts = OpbOptions { first_var_idx: args.first_var_idx, no_negated_lits: args.avoid_negated_lits };
let opb_opts = OpbOptions {
first_var_idx: args.first_var_idx,
no_negated_lits: args.avoid_negated_lits,
};

let inst: OptInstance = if let Some(in_path) = args.in_path {
OptInstance::from_dimacs_path(in_path).expect("error parsing the input file")
Expand Down

0 comments on commit b0d5f86

Please sign in to comment.