Add -o learned-lits to output learned literals (#7934)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Wed, 12 Jan 2022 23:28:02 +0000 (17:28 -0600)
committerGitHub <noreply@github.com>
Wed, 12 Jan 2022 23:28:02 +0000 (23:28 +0000)
commit14155a4a00177a496eb48df0d50e38e2190908c3
treef4d3b53c2fbd0994dbead4785f549070681c4a95
parentdefb0de81171b6633e5ef745f927217614a4fe54
Add -o learned-lits to output learned literals (#7934)

Prints both literals learned during preprocessing, and during search.

This feature was recently requested by Cetora.
14 files changed:
src/CMakeLists.txt
src/options/base_options.toml
src/prop/prop_engine.cpp
src/prop/prop_engine.h
src/prop/theory_proxy.cpp
src/prop/theory_proxy.h
src/prop/zero_level_learner.cpp [new file with mode: 0644]
src/prop/zero_level_learner.h [new file with mode: 0644]
src/smt/preprocessor.cpp
src/smt/preprocessor.h
src/smt/smt_solver.cpp
src/theory/substitutions.h
test/regress/CMakeLists.txt
test/regress/regress0/printer/learned-lit-output.smt2 [new file with mode: 0644]