Extract DIMACS Printing (#2800)
authorAlex Ozdemir <aozdemir@hmc.edu>
Fri, 18 Jan 2019 19:10:26 +0000 (11:10 -0800)
committerAina Niemetz <aina.niemetz@gmail.com>
Fri, 18 Jan 2019 19:10:26 +0000 (11:10 -0800)
commit8b494ee2e856a0ddb5ea60a1a39340816ba0fc29
treef32dbceda09e06f847451c6f4e537a176e0eca09
parent7a5e007ea530c97c5f3885958f5d018e350013a7
Extract DIMACS Printing (#2800)

Creating LRAT proofs reuqires writing SAT problems in the DIMACS format.
Before this code was in the LRAT class.

However, since creating ER proofs will also require writing DIMACS, I
decided to extract it.

At the same time I realized that my prior representation of used clauses
was unnecessarily poor. I had chosen it to align with
`CnfProof::collectAtomsForClauses`, but the format is really bad (it
requires extra allocations & manual memory management), and I discovered
that the aforementioned method is super simple, so I'm moving to a
better format.
src/CMakeLists.txt
src/proof/dimacs_printer.cpp [new file with mode: 0644]
src/proof/dimacs_printer.h [new file with mode: 0644]
src/proof/lrat/lrat_proof.cpp
src/proof/lrat/lrat_proof.h