summaryrefslogtreecommitdiff
path: root/src/theory/arith/arith_utilities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/arith/arith_utilities.cpp')
-rw-r--r--src/theory/arith/arith_utilities.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/theory/arith/arith_utilities.cpp b/src/theory/arith/arith_utilities.cpp
index cbb27197f..cb8524a58 100644
--- a/src/theory/arith/arith_utilities.cpp
+++ b/src/theory/arith/arith_utilities.cpp
@@ -272,6 +272,12 @@ Node arithSubstitute(Node n, std::vector<Node>& vars, std::vector<Node>& subs)
return visited[n];
}
+Node mkBounded(Node l, Node a, Node u)
+{
+ NodeManager* nm = NodeManager::currentNM();
+ return nm->mkNode(AND, nm->mkNode(GEQ, a, l), nm->mkNode(LEQ, a, u));
+}
+
} // namespace arith
} // namespace theory
} // namespace CVC4
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback