hevm

hevm is an implementation of the Ethereum Virtual Machine (EVM) made for symbolic execution, equivalence checking, and symbolic unit testing of smart contracts. It can symbolically execute smart contracts, check whether two pieces of EVM code are equivalent, and run arbitrary EVM code. In particular, hevm can run Forge test suites symbolically (hevm test), which is much more thorough than fuzz testing. Static binaries for Linux and macOS are on GitHub (they need z3 installed), it is packaged in nixpkgs, and the user documentation is the hevm book. hevm was originally developed as part of dapptools, and was forked by the formal methods team at the Ethereum Foundation in August 2022. ...

1 min · map[name:msoos]

Pepin

Pepin is a probabilistic approximate counter for DNF formulas. Geometrically, it takes a set of possibly overlapping n-dimensional boxes and estimates the total volume they cover. It reads the cubes in a simple DNF format and outputs an approximate count with a probabilistic guarantee. Pepin streams the cubes, keeping only a bucket of in-progress samples in memory, and it supports weighted counting as well. For CNF formulas, use ApproxMC or Ganak instead. Release binaries are on GitHub, it is available via Nix, and you can try it in your browser. ...

1 min · map[name:msoos]

UniGen

UniGen is an almost-uniform sampler for CNF formulas: it returns satisfying assignments such that each solution is picked with nearly the same probability, with formal guarantees. It supports a sampling set, so that solutions are drawn uniformly over a chosen subset of the variables. The current version is based on Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling (CAV 2020). It builds on a series of papers on the hashing-based approach, published over 2012–2020 and co-authored by Supratik Chakraborty, Daniel Fremont, Stephan Gocht, Kuldeep S. Meel, Sanjit A. Seshia, Mate Soos and Moshe Y. Vardi.

1 min · map[name:msoos]