Generate SAT solver input