Skip to main content

A fuzzing framework for SMT solvers

Project description

portfolio_view


yinyang

A fuzzing framework for SMT solvers. Given a set of seed SMT formulas, yinyang generates mutant formulas to stress-test SMT solvers. yinyang can be used to robustify SMT solvers. It already found 1,500+ bugs in the two state-of-the-art SMT solvers Z3 and CVC4.

Installation

To install a stable version of yinyang use:

pip3 install yinyang

To install the most recent version, check out the repository:

git clone https://github.com/testsmt/yinyang.git                        
pip3 install antlr4-python3-runtime==4.9.2                                   

Note that you may want to add yinyang/bin to your PATH, for running yinyang conveniently without prefix.

Usage

  1. Get SMT-LIB 2 benchmarks. Edit scripts/SMT-LIB-clone.sh to select the logics for testing. Run ./scripts/SMT-LIB-clone.sh to download the corresponding SMT-LIB 2 benchmarks. Alternatively, you can download benchmarks directly from the SMT-LIB website or supply your own benchmarks.

  2. Get and build SMT solvers for testing. Install two or more SMT solvers that support the SMT-LIB 2 format. You may find it convenient to add them to your PATH.

  3. Run yinyang on the benchmarks e.g. with Z3 and CVC4.

typefuzz "z3 model_validate=true;cvc4 --check-models -m -i -q" benchmarks 

yinyang will by default randomly select formulas from the folder ./benchmarks and generate 300 mutants per seed formula. If a bug has been found, the bug trigger is stored in ./bugs. yinyang will run in an infinite loop. You can use the shortcut CTRL+C to terminate yinyang manually.

📘 Documentation

Feedback

For bugs/issues/questions/feature requests please file an issue. We are always happy to receive your feedback or help you adjust yinyang to the needs of your custom solver, help you build on yinyang, etc.

📬 Contact us

Additional Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yinyang-0.1.2.tar.gz (104.3 kB view details)

Uploaded Source

Built Distribution

yinyang-0.1.2-py3-none-any.whl (141.2 kB view details)

Uploaded Python 3

File details

Details for the file yinyang-0.1.2.tar.gz.

File metadata

  • Download URL: yinyang-0.1.2.tar.gz
  • Upload date:
  • Size: 104.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.9

File hashes

Hashes for yinyang-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b8c2aee2b3a13f204d3510f576cbe5944085b684fe2f7142994608a67c655771
MD5 b1daf698a028feb78e6a1590383ba306
BLAKE2b-256 52e766b658d601a5975c866755ace3f2fe60934a254fdd64bb520d7b1a0648c7

See more details on using hashes here.

File details

Details for the file yinyang-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: yinyang-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 141.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.9

File hashes

Hashes for yinyang-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c58ba3f5212e48e2716cc1b56b2d016cb2bdf357e6a1c318f97c5a685cc200c
MD5 a5a4ea65aa95b904a467356e1e803604
BLAKE2b-256 a7d59837475b1d3e5263e28c334b9110448e5d2be33f58ac9e7cb21fb9304231

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page