diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2017-11-14 19:06:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-14 19:06:49 -0600 |
commit | 85df7998e4362e0a9c796146d07d7b9e91045a31 (patch) | |
tree | 0ab2e33e807651386cd041257c1abff2bb769057 /src/theory/quantifiers/model_engine.cpp | |
parent | 748e20967ae7698f6b545a5128633865701aeb2d (diff) |
Make QEffort an enum (#1366)
* Make QEffort an enum.
* Format
* Minor
* Fix
Diffstat (limited to 'src/theory/quantifiers/model_engine.cpp')
-rw-r--r-- | src/theory/quantifiers/model_engine.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/theory/quantifiers/model_engine.cpp b/src/theory/quantifiers/model_engine.cpp index c4a0b5c5d..5d01e04e6 100644 --- a/src/theory/quantifiers/model_engine.cpp +++ b/src/theory/quantifiers/model_engine.cpp @@ -53,25 +53,26 @@ bool ModelEngine::needsCheck( Theory::Effort e ) { return e==Theory::EFFORT_LAST_CALL; } -unsigned ModelEngine::needsModel( Theory::Effort e ) { +QuantifiersModule::QEffort ModelEngine::needsModel(Theory::Effort e) +{ if( options::mbqiInterleave() ){ - return QuantifiersEngine::QEFFORT_STANDARD; + return QEFFORT_STANDARD; }else{ - return QuantifiersEngine::QEFFORT_MODEL; + return QEFFORT_MODEL; } } void ModelEngine::reset_round( Theory::Effort e ) { d_incomplete_check = true; } - -void ModelEngine::check( Theory::Effort e, unsigned quant_e ){ +void ModelEngine::check(Theory::Effort e, QEffort quant_e) +{ bool doCheck = false; if( options::mbqiInterleave() ){ - doCheck = quant_e==QuantifiersEngine::QEFFORT_STANDARD && d_quantEngine->hasAddedLemma(); + doCheck = quant_e == QEFFORT_STANDARD && d_quantEngine->hasAddedLemma(); } if( !doCheck ){ - doCheck = quant_e==QuantifiersEngine::QEFFORT_MODEL; + doCheck = quant_e == QEFFORT_MODEL; } if( doCheck ){ Assert( !d_quantEngine->inConflict() ); |