CryptoMiniSat

CryptoMiniSat is an advanced incremental SAT solver. It reads CNF in the DIMACS format, extended with XOR clauses, and can be used from the command line, as a C++ library, or from Python (pip3 install pycryptosat), with C and Rust wrappers as well. The library interfaces are incremental: they support assumptions and multiple solve calls. CryptoMiniSat emits XLRUP proofs that can be checked by the formally verified checker cake_xlrup from frat-xor. It is the SAT solver inside our counters and samplers, ApproxMC, UniGen and CMSGen; if you want to use it as a preprocessor, try Arjun instead. Release binaries are on GitHub, it is available via Nix, and you can try it in your browser. It is MIT licensed. For common questions, see the CryptoMiniSat FAQ. ...

1 min · map[name:msoos]

Ganak

Ganak is a high-performance exact model counter: given a CNF formula, it tells you how many satisfying assignments it has, optionally projected onto a set of variables and weighted. It won all available awards at the 2024 and 2025 Model Counting Competitions. It can count over any field, including integers, rationals, complex numbers, integers modulo a prime, and polynomials over a finite field. Ganak runs in probabilistic mode by default, and can also run fully non-probabilistically (--prob 0), or switch to ApproxMC after a timeout to give an approximate count (--appmct). It should be used together with our preprocessor, Arjun. Release binaries are on GitHub, it is available via Nix, and you can try it in your browser. ...

1 min · map[name:msoos]

Grain of Salt

Grain of Salt generates CNF problems from shift-register-based stream ciphers, so that they can be attacked with SAT solvers such as CryptoMiniSat. Descriptions of Grain, Trivium, Bivium, HiTag2 and Crypto1 are included, and new ciphers are easy to add: you describe the shift registers and give the feedback, filter and output functions in algebraic normal form, one monomial per line. You control how many output bits are known, how many key bits are given as help bits (--probBits), and how many problems to generate. For example, ./grainofsalt --num 100 --outputs 90 --crypto grain --probBits 70 generates 100 problems for Grain, with 90 bits of observed output and 70 randomly chosen help bits. The CNF is optimised before output, in part using the bundled espresso logic minimiser. The code is on GitHub, GPL-licensed. ...

1 min · map[name:msoos]