Skip to content

Commit

Permalink
Make VarRange visible for other libraries from the solvers module
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed Feb 9, 2024
1 parent c3154fb commit df287e1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions crates/pindakaas/src/solver.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#[cfg(feature = "ipasir-up")]
use std::any::Any;
use std::num::NonZeroI32;

use crate::{helpers::VarRange, ClauseDatabase, Lit, Valuation, Var};

pub mod libloading;

#[cfg(feature = "cadical")]
pub mod cadical;
#[cfg(feature = "intel-sat")]
Expand All @@ -15,6 +7,15 @@ pub mod kissat;
#[cfg(feature = "splr")]
pub mod splr;

pub mod libloading;

#[cfg(feature = "ipasir-up")]
use std::any::Any;
use std::num::NonZeroI32;

pub use crate::helpers::VarRange;
use crate::{ClauseDatabase, Lit, Valuation, Var};

pub trait Solver: ClauseDatabase {
/// Return the name and the version of SAT solver.
fn signature(&self) -> &str;
Expand Down

0 comments on commit df287e1

Please sign in to comment.