Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make VarRange visible for other libraries from the solvers module #38

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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