RepositoryPython
testsmt

testsmt/yinyang

A fuzzing framework for SMT solvers

201stars
27forks
2issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: cvc4

#1 Repository of the month

1
TINIX TRENDING·Topic: cvc5

#1 Repository of the month

1
TINIX TRENDING·Topic: smt-solver

#1 Repository of the month

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 ffg                                  

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

Similar Projects

Discover other similar projects and AI models.

RepositoryScala
epfl-lara/stainless

Verification framework and tool for higher-order Scala programs. https://gitlab.epfl.ch/lara/stainless

417
Nov 27, 2026
RepositoryOCaml
formalsec/smtml

An SMT solver frontend for OCaml

79
Nov 18, 2026
RepositoryJupyter Notebook
philzook58/z3_tutorial

Jupyter notebooks for tutorial on the Z3 SMT solver

172
Nov 3, 2023
RepositoryPython
HypothesisWorks/hypothesis

The property-based testing library for Python

9.3k
Nov 30, 2026
RepositoryPython
trailofbits/manticore

Symbolic execution tool

3.9k
Jun 24, 2026
RepositoryPython
pschanely/CrossHair

An analysis tool for Python that blurs the line between testing and type systems.

1.4k
Nov 27, 2026
RepositoryRust
foundry-rs/foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.

10.8k
Nov 30, 2026
RepositoryRust
prove-rs/z3.rs

Rust bindings for the Z3 solver.

548
Nov 23, 2026
RepositoryRust
viperproject/smt-scope

SMTscope automatically analyses and visualises SMT solver execution traces.

90
Dec 10, 2025