3-SAT CNF generator for testing SAT solvers
- LibGMP
# Solve multiplication of two 4-bit variables which is equal to 15 hpsat_generate -f 6 -b 8 -v 15 | picosat | hpsat_generate -f 6 -b 8 -p
# Solve addition of two 8-bit variables which is equal to 15 hpsat_generate -f 1 -b 8 -v 15 | picosat | hpsat_generate -f 1 -b 8 -p
# Solve custom expression hpsat_generate -i "(a & b)|(a & c)|(b & c)" | picosat --all | hpsat_generate -i "abc" -p