Skip to content

Commit

Permalink
feat: kissat v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Aug 5, 2024
1 parent 3e8e2c7 commit a1ddca6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions kissat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ build = "build.rs"
debug = []
safe = []
quiet = []
v4-0-0 = []
v3-1-1 = []
v3-1-0 = []
v3-0-0 = []
Expand Down
1 change: 1 addition & 0 deletions kissat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Armin Biere's SAT solver [Kissat](https://github.com/arminbiere/kissat) to be us

Kissat versions can be selected via cargo crate features.
The following Kissat versions are available:
- `v4-0-0`: [Version 4.0.0](https://github.com/arminbiere/kissat/releases/tag/rel-4.0.0)
- `v3-1-0`: [Version 3.1.0](https://github.com/arminbiere/kissat/releases/tag/rel-3.1.0)
- `v3-0-0`: [Version 3.0.0](https://github.com/arminbiere/kissat/releases/tag/rel-3.0.0)
- `sc2022-light`: [SAT Competition 2022 Light](https://github.com/arminbiere/kissat/releases/tag/sc2022-light)
Expand Down
5 changes: 5 additions & 0 deletions kissat/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ if [ "$1" == "--clean" ]; then cargo clean -p rustsat-kissat > /dev/null; fi
cargo build --features=v3-1-1 &> v311-build.log
echo "v3.1.1 build returned: $?"

echo "Building v4.0.0"
if [ "$1" == "--clean" ]; then cargo clean -p rustsat-kissat > /dev/null; fi
cargo build --features=v4-0-0 &> v400-build.log
echo "v4.0.0 build returned: $?"

echo "Building quiet"
if [ "$1" == "--clean" ]; then cargo clean -p rustsat-kissat > /dev/null; fi
cargo build --features=quiet &> quiet-build.log
Expand Down
6 changes: 4 additions & 2 deletions kissat/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ fn main() {
}

// Select commit based on features. If conflict, always choose newest release
let tag = if cfg!(feature = "v3-1-1") {
let tag = if cfg!(feature = "v4-0-0") {
"refs/tags/rel-4.0.0"
} else if cfg!(feature = "v3-1-1") {
"refs/tags/rel-3.1.1"
} else if cfg!(feature = "v3-1-0") {
"refs/tags/rel-3.1.0"
Expand All @@ -31,7 +33,7 @@ fn main() {
"refs/tags/sc2022-bulky"
} else {
// default to newest version
"refs/tags/rel-3.1.1"
"refs/tags/rel-4.0.0"
};

// Build C library
Expand Down
1 change: 1 addition & 0 deletions kissat/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
//!
//! Kissat versions can be selected via cargo crate features.
//! The following Kissat versions are available:
//! - `v4-0-0`: [Version 4.0.0](https://github.com/arminbiere/kissat/releases/tag/rel-4.0.0)
//! - `v3-1-0`: [Version 3.1.0](https://github.com/arminbiere/kissat/releases/tag/rel-3.1.0)
//! - `v3-0-0`: [Version 3.0.0](https://github.com/arminbiere/kissat/releases/tag/rel-3.0.0)
//! - `sc2022-light`: [SAT Competition 2022 Light](https://github.com/arminbiere/kissat/releases/tag/sc2022-light)
Expand Down
4 changes: 4 additions & 0 deletions kissat/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ echo "Testing v3.1.1"
cargo test --features=v3-1-1 &> v311-test.log
echo "v3.1.1 test returned: $?"

echo "Testing v4.0.0"
cargo test --features=v4-0-0 &> v400-test.log
echo "v4.0.0 test returned: $?"

echo "Testing quiet"
cargo test --features=quiet &> quiet-test.log
echo "quiet test returned: $?"
Expand Down

0 comments on commit a1ddca6

Please sign in to comment.