summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGereon Kremer <nafur42@gmail.com>2021-06-02 12:11:13 +0200
committerGitHub <noreply@github.com>2021-06-02 03:11:13 -0700
commita158366e1e7fdc76e00926393b9d091870e30bad (patch)
tree31a8271b8ab3f9557944f112b42febdfd0d00467
parent4dacf3183d6790ebb4615263908da294e43e3cb6 (diff)
Fix issues when poly is disabled (#6668)
Recent changes introduced issues when libpoly is disabled.
-rw-r--r--src/smt/set_defaults.cpp4
-rw-r--r--src/theory/arith/nl/nonlinear_extension.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/smt/set_defaults.cpp b/src/smt/set_defaults.cpp
index 135fabf5f..96081e97b 100644
--- a/src/smt/set_defaults.cpp
+++ b/src/smt/set_defaults.cpp
@@ -1523,12 +1523,12 @@ void setDefaults(LogicInfo& logic, bool isInternalSubsolver)
if (opts.wasSetByUser(options::nlCad))
{
std::stringstream ss;
- ss << "Cannot use " << options::nlCad.name << " without configuring with --poly.";
+ ss << "Cannot use " << options::arith::nlCad__name << " without configuring with --poly.";
throw OptionException(ss.str());
}
else
{
- Notice() << "Cannot use --" << options::nlCad.name
+ Notice() << "Cannot use --" << options::arith::nlCad__name
<< " without configuring with --poly." << std::endl;
opts.arith.nlCad = false;
opts.arith.nlExt = options::NlExtMode::FULL;
diff --git a/src/theory/arith/nl/nonlinear_extension.cpp b/src/theory/arith/nl/nonlinear_extension.cpp
index 7f97c4122..1bb558d1b 100644
--- a/src/theory/arith/nl/nonlinear_extension.cpp
+++ b/src/theory/arith/nl/nonlinear_extension.cpp
@@ -27,6 +27,7 @@
#include "theory/ext_theory.h"
#include "theory/rewriter.h"
#include "theory/theory_model.h"
+#include "util/rational.h"
using namespace cvc5::kind;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback