summaryrefslogtreecommitdiff
path: root/src/theory/arith/nl/nonlinear_extension.cpp
diff options
context:
space:
mode:
authorGereon Kremer <nafur42@gmail.com>2021-05-17 17:18:57 +0200
committerGitHub <noreply@github.com>2021-05-17 15:18:57 +0000
commit63281fbfe093b1d5e375a378bb59761f77256d08 (patch)
treeea4e7dc183ddfb23709c92f74b4d35f581ad8d32 /src/theory/arith/nl/nonlinear_extension.cpp
parentf1a65bef2675495f09603901a7166f20221b0449 (diff)
Improve integration of CAD with nl-Ext (#6542)
This PR improves the integration of the CAD solver with the nl-ext solver in a simple way: we simply use a few of the simple linearization lemmas in combination with CAD by default, significantly improving the performance on QF_NRA.
Diffstat (limited to 'src/theory/arith/nl/nonlinear_extension.cpp')
-rw-r--r--src/theory/arith/nl/nonlinear_extension.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/theory/arith/nl/nonlinear_extension.cpp b/src/theory/arith/nl/nonlinear_extension.cpp
index 8221e18d5..7f97c4122 100644
--- a/src/theory/arith/nl/nonlinear_extension.cpp
+++ b/src/theory/arith/nl/nonlinear_extension.cpp
@@ -218,7 +218,7 @@ bool NonlinearExtension::checkModel(const std::vector<Node>& assertions)
// relevance here, since we may have discarded literals that are relevant
// that are entailed based on the techniques in getAssertions.
std::vector<Node> passertions = assertions;
- if (options::nlExt())
+ if (options::nlExt() == options::NlExtMode::FULL)
{
// preprocess the assertions with the trancendental solver
if (!d_trSlv.preprocessAssertionsCheckModel(passertions))
@@ -474,8 +474,8 @@ Result::Sat NonlinearExtension::modelBasedRefinement(const std::set<Node>& termS
}
// we are incomplete
- if (options::nlExt() && options::nlExtIncPrecision()
- && d_model.usedApproximate())
+ if (options::nlExt() == options::NlExtMode::FULL
+ && options::nlExtIncPrecision() && d_model.usedApproximate())
{
d_trSlv.incrementTaylorDegree();
needsRecheck = true;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback