diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2018-08-29 14:38:33 -0700 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-08-29 16:38:33 -0500 |
commit | 3eac9d04c5d4bfba81142d4a5fe91b86590b32ae (patch) | |
tree | e3ed07e7268d57ce27c2f748524bd9ff45859579 /src/smt/logic_request.cpp | |
parent | 1ae13e7e30aaaa088de057496c649649067867dc (diff) |
Refactor MipLibTrick preprocessing pass. (#2359)
Diffstat (limited to 'src/smt/logic_request.cpp')
-rw-r--r-- | src/smt/logic_request.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/smt/logic_request.cpp b/src/smt/logic_request.cpp index 5c0c5758d..c9ddad176 100644 --- a/src/smt/logic_request.cpp +++ b/src/smt/logic_request.cpp @@ -31,4 +31,15 @@ void LogicRequest::widenLogic(theory::TheoryId id) { d_smt.d_logic.lock(); } +/** Enable Integers if not yet enabled. */ +void LogicRequest::enableIntegers() +{ + if (!d_smt.d_logic.areIntegersUsed()) + { + d_smt.d_logic = d_smt.d_logic.getUnlockedCopy(); + d_smt.d_logic.enableIntegers(); + d_smt.d_logic.lock(); + } +} + }/* CVC4 namespace */ |