#smt-solver #smt #low-level #cargo-toml #add #install #boolector

sys boolector-sys

Low-level bindings for the Boolector SMT solver

15 releases

0.7.2 Feb 26, 2024
0.7.1 Nov 25, 2021
0.6.3 Jan 21, 2021
0.6.1 Dec 4, 2020
0.2.0 May 21, 2019

#13 in #smt-solver

Download history 35/week @ 2024-01-01 38/week @ 2024-01-08 44/week @ 2024-01-15 44/week @ 2024-01-22 46/week @ 2024-01-29 31/week @ 2024-02-05 89/week @ 2024-02-12 36/week @ 2024-02-19 293/week @ 2024-02-26 87/week @ 2024-03-04 115/week @ 2024-03-11 62/week @ 2024-03-18 24/week @ 2024-03-25 71/week @ 2024-04-01 29/week @ 2024-04-08 35/week @ 2024-04-15

162 downloads per month
Used in 5 crates (2 directly)

MIT license

4MB
107K SLoC

C 79K SLoC // 0.1% comments C++ 17K SLoC // 0.0% comments Python 4K SLoC // 0.1% comments Shell 4K SLoC // 0.1% comments Cython 1.5K SLoC // 0.5% comments Rust 1K SLoC // 0.0% comments Forge Config 3 SLoC // 0.4% comments

Contains (ELF exe/lib, 3MB) boolector-1.5.118

crates.io docs.rs

boolector-sys

This Rust crate provides low-level bindings for the Boolector SMT solver, version 3.2.2.

Installation

Using shared boolector library

Compile boolector as a shared library and install it. Then add this crate to your Cargo.toml:

[dependencies]
boolector-sys = "0.7.2"

Using vendored static boolector library

This is possible on UNIX-like targets only. Add this crate to your Cargo.toml with the vendor-lgl feature enabled:

[dependencies]
boolector-sys = { version = "0.7.2", features = ["vendor-lgl"] }

Enabling vendor-lgl will automatically build a static boolector library and link against it. Currently this uses the Lingeling SAT solver.

In order for the build to succeed, you'll need to install some tools on your build host; for a Debian-based distribution build-essential, cmake, curl, and git should be sufficient.

License

This crate is licensed under the MIT license.

Dependencies