summaryrefslogtreecommitdiff
path: root/src/smt/logic_request.cpp
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2018-08-29 14:38:33 -0700
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-08-29 16:38:33 -0500
commit3eac9d04c5d4bfba81142d4a5fe91b86590b32ae (patch)
treee3ed07e7268d57ce27c2f748524bd9ff45859579 /src/smt/logic_request.cpp
parent1ae13e7e30aaaa088de057496c649649067867dc (diff)
Refactor MipLibTrick preprocessing pass. (#2359)
Diffstat (limited to 'src/smt/logic_request.cpp')
-rw-r--r--src/smt/logic_request.cpp11
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 */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback