GithubHelp home page GithubHelp logo

fatemender / boolector-sys Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 7.0 30 KB

Low-level Rust bindings for the Boolector SMT solver

License: MIT License

Rust 98.33% Shell 1.67%
rust smt-solver boolector rust-ffi

boolector-sys's People

Contributors

cdisselkoen avatar christianmoesl avatar fatemender avatar inspier avatar yeggor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

boolector-sys's Issues

Failed to build vendored Boolector

I tried to follow the instructions in the new README to make a crate that depended on boolector-sys with vendored Boolector.

Cargo.toml:

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

This failed to build, with the error:

error: failed to run custom build command for `boolector-sys v0.6.0`

Caused by:
  process didn't exit successfully: `/home/craig/blah/target/debug/build/boolector-sys-1460bc80a8064f48/build-script-build` (exit code: 101)
  --- stdout
  running "./contrib/setup-lingeling.sh"

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', /home/craig/.cargo/registry/src/github.com-1ecc6299db9ec823/boolector-sys-0.6.0/build-vendor.rs:93:39
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This is on Ubuntu 20.04, with build-essential, cmake, and curl all installed. Anecdotally I got the same error on Arch Linux.

Am I doing something wrong? Is this a bug?

Build boolector

Hello,

I am wondering if it would be possible to also implement to build boolector when needed/wanted.
Maybe it is possible to use a cargo feature to enable the build of boolector. Still this would be very nice as I believe that it is rather unlikely that boolector is being packaged in the future on most systems.

If you want I can look into it and create a PR.

How to use `FILE` type?

Hi,

Thanks for your work on these bindings! I'm having trouble using the methods that involve a parameter of type *mut FILE - e.g., boolector_dump_*, boolector_parse_*, boolector_print_model(). How can I create a valid *mut FILE? Is there a way to convert from std::fs::File, or std::io::stdout(), to *mut FILE? Do you have an example calling any of these methods from Rust?

Thanks in advance for the help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.