projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a8b1b
)
Add dummy returns if libpoly is unavailable. (#4845)
author
Gereon Kremer
<gereon.kremer@cs.rwth-aachen.de>
Wed, 5 Aug 2020 02:32:10 +0000
(
04:32
+0200)
committer
GitHub
<noreply@github.com>
Wed, 5 Aug 2020 02:32:10 +0000
(21:32 -0500)
This PR adds dummy return statements do CadSolver in case libpoly is not available.
src/theory/arith/nl/cad_solver.cpp
patch
|
blob
|
history
diff --git
a/src/theory/arith/nl/cad_solver.cpp
b/src/theory/arith/nl/cad_solver.cpp
index 783fb018734e76b5a8186bd267e1c105ed55e9dc..a2fc1e1f1721c55d5c97197c4cf29736d6c74605 100644
(file)
--- a/
src/theory/arith/nl/cad_solver.cpp
+++ b/
src/theory/arith/nl/cad_solver.cpp
@@
-102,6
+102,7
@@
std::vector<NlLemma> CadSolver::checkFull()
Warning() << "Tried to use CadSolver but libpoly is not available. Compile "
"with --poly."
<< std::endl;
+ return {};
#endif
}
@@
-132,6
+133,7
@@
bool CadSolver::constructModelIfAvailable(std::vector<Node>& assertions)
Warning() << "Tried to use CadSolver but libpoly is not available. Compile "
"with --poly."
<< std::endl;
+ return false;
#endif
}