summaryrefslogtreecommitdiff
path: root/src/theory/arith/arith_utilities.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-03-27 19:53:59 -0500
committerGitHub <noreply@github.com>2020-03-27 17:53:59 -0700
commit8ee4da5904e15c7900109a82ec126ce87715e548 (patch)
tree7548cb80531009655b31ec579853671fb0559d8f /src/theory/arith/arith_utilities.cpp
parent97f1e4592b617a5682a8e990b4f82d3cbb6ee037 (diff)
Split transcendental solver to its own file (#4156)
* Attempting to split transcendental function solver * Clean * Format * More * Format * Attempt link * Format * Fix * Another refactor * More * More * Rename * Format Co-authored-by: Ahmed Irfan <43099566+ahmed-irfan@users.noreply.github.com> Co-authored-by: Aina Niemetz <aina.niemetz@gmail.com>
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