summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2020-08-05 04:32:10 +0200
committerGitHub <noreply@github.com>2020-08-04 21:32:10 -0500
commitc324bb21adb44374eb37a0254e31c0a0d0b3ebc7 (patch)
treec9650b2f5160a356d7434253215f9070869f53f0
parent64a8b1b205ccc793865bacf2b4388c534dc2f16d (diff)
Add dummy returns if libpoly is unavailable. (#4845)
This PR adds dummy return statements do CadSolver in case libpoly is not available.
-rw-r--r--src/theory/arith/nl/cad_solver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theory/arith/nl/cad_solver.cpp b/src/theory/arith/nl/cad_solver.cpp
index 783fb0187..a2fc1e1f1 100644
--- 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
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback