diff options
author | Gereon Kremer <gereon.kremer@cs.rwth-aachen.de> | 2020-08-05 04:32:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-04 21:32:10 -0500 |
commit | c324bb21adb44374eb37a0254e31c0a0d0b3ebc7 (patch) | |
tree | c9650b2f5160a356d7434253215f9070869f53f0 | |
parent | 64a8b1b205ccc793865bacf2b4388c534dc2f16d (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.cpp | 2 |
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 } |