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

sat-adaptor [DRAFT PR] #636

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
129 changes: 87 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resolver = "2"
default-members = [
"conjure_oxide",
"crates/conjure_core",
"solvers/kissat",
"solvers/minion",
]

Expand All @@ -13,10 +12,9 @@ members = [
"crates/conjure_core",
"crates/enum_compatability_macro",
"crates/conjure_macros",
"solvers/kissat",
"solvers/minion",
"crates/tree-sitter-essence",
"crates/tree_morph",
"crates/tree_morph",
]

[workspace.lints.clippy]
Expand Down
2 changes: 2 additions & 0 deletions crates/conjure_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ schemars = "0.8.21"
clap = { version = "4.5.26", features = ["derive"] }
itertools = "0.14.0"
im = "15.1.0"
rustsat-minisat = "0.4.3"
rustsat = "0.6.3"

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/conjure_core/src/ast/expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub enum Expression {
/// Turns into a conjunction when it reaches a boolean context
Bubble(Metadata, Box<Expression>, Box<Expression>),

// VAR: Temp
Atomic(Metadata, Atom),

/// `|x|` - absolute value of `x`
Expand Down
63 changes: 0 additions & 63 deletions crates/conjure_core/src/solver/adaptors/kissat.rs

This file was deleted.

7 changes: 3 additions & 4 deletions crates/conjure_core/src/solver/adaptors/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//! Solver adaptors.

mod kissat;
mod minion;
mod sat_common;
mod rustsat;
use std::arch::x86_64;

#[doc(inline)]
pub use kissat::Kissat;

#[doc(inline)]
pub use minion::Minion;
pub use rustsat::SAT;
Loading