/claripy

An abstraction layer for constraint solvers.

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

claripy

Claripy is an abstracted constraint-solving wrapper.

Usage

It is usable!

General usage is similar to Z3:

>>> import claripy
>>> a = claripy.BVV(3, 32)
>>> b = claripy.BVS('var_b', 32)
>>> s = claripy.Solver()
>>> s.add(b > a)
>>> print(s.eval(b, 1)[0])