29 releases

0.16.2 Sep 12, 2022
0.16.0 Apr 19, 2022
0.14.1 Nov 18, 2021
0.12.0 Apr 5, 2021
0.2.0 Sep 15, 2016

#158 in Science

Download history 9/week @ 2023-12-11 24/week @ 2024-01-08 19/week @ 2024-01-15 20/week @ 2024-02-19 69/week @ 2024-02-26 53/week @ 2024-03-04 49/week @ 2024-03-11 22/week @ 2024-03-18

194 downloads per month
Used in 2 crates (via mikino_api)

MIT/Apache

255KB
4K SLoC

crates.io Documentation CI

rsmt2

A generic library to interact with SMT-LIB 2 compliant solvers running in a separate system process, such as z3 and CVC4.

If you use this library consider contacting us on the repository so that we can add your project to the readme.

See changes.md for the list of changes.

Features

  • support main solvers (z3, CVC4, Yices 2)
  • all basic declaration/definition/assertion/model/values commands
  • check-sat-assuming, with dedicated actlit API
  • the commands to run each solver can be passed through environment variables, see the conf module
  • alt-ergo
  • get-proof command

Known projects using rsmt2

  • kinō, a model-checker for transition systems (abandoned)
  • hoice, a machine-learning-based predicate synthesizer for horn clauses

License

MIT/Apache-2.0

Dependencies

~2.5–3.5MB
~72K SLoC