[proof-new] Adding a proof-producing ensure literal method (#5889)
authorHaniel Barbosa <hanielbbarbosa@gmail.com>
Thu, 11 Feb 2021 16:13:18 +0000 (13:13 -0300)
committerGitHub <noreply@github.com>
Thu, 11 Feb 2021 16:13:18 +0000 (13:13 -0300)
commit8fcb59d072b09bfaf8f56334182d425274842461
tree9e546589f4832d20ee58b1799e2ee80bfd392265
parent1d0492104a200f6fa5cc7a1cee539436ee26ea99
[proof-new] Adding a proof-producing ensure literal method (#5889)

The ensureLiteral method in CnfStream may apply CNF conversion to the given literal (for example if it's an IFF), which needs to be recorded in the proof. This commit adds a proof-producing ensureLiteral to ProofCnfStream, which is called by the prop engine if proofs are enabled.

This commit also simplifies the interfaces on ensureLit and convertAtom by removing the preRegistration flag, which was never used.
src/prop/cnf_stream.cpp
src/prop/cnf_stream.h
src/prop/proof_cnf_stream.cpp
src/prop/proof_cnf_stream.h
src/prop/prop_engine.cpp