diff options
author | Haniel Barbosa <hanielbbarbosa@gmail.com> | 2019-07-30 10:21:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 10:21:01 -0500 |
commit | 5e3e9c156b20031a1b0e31489477b9b337d47cae (patch) | |
tree | 5fa3b91eadfa431387209348ea981b00291e6962 /src/smt | |
parent | aca0cef5cf1bcb882dce927a64917aa800dd8b27 (diff) |
Code to activate hoelim preprocessing pass (#3129)
Diffstat (limited to 'src/smt')
-rw-r--r-- | src/smt/smt_engine.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 560cb0599..4a8803392 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -1838,6 +1838,11 @@ void SmtEngine::setDefaults() { if( options::mbqiMode()!=quantifiers::MBQI_NONE ){ options::mbqiMode.set( quantifiers::MBQI_NONE ); } + if (!options::hoElimStoreAx.wasSetByUser()) + { + // by default, use store axioms only if --ho-elim is set + options::hoElimStoreAx.set(options::hoElim()); + } } if( options::fmfFunWellDefinedRelevant() ){ if( !options::fmfFunWellDefined.wasSetByUser() ){ @@ -3488,6 +3493,11 @@ void SmtEnginePrivate::processAssertions() { d_passes["apply-to-const"]->apply(&d_assertions); } + if (options::ufHo()) + { + d_passes["ho-elim"]->apply(&d_assertions); + } + // begin: INVARIANT to maintain: no reordering of assertions or // introducing new ones #ifdef CVC4_ASSERTIONS |