summaryrefslogtreecommitdiff
path: root/src/theory/arith/nl/nl_model.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-06-25 07:15:06 -0500
committerGitHub <noreply@github.com>2020-06-25 07:15:06 -0500
commit1af865f3429c0dd5910b5a8d1e12d690c3623dfa (patch)
treeac996a942c79ebb083900226a7b7c0348ef9be3a /src/theory/arith/nl/nl_model.cpp
parente8482734bb0cd0af285464a4c50b631234ea36ee (diff)
Update option --nl-ext to enable/disable incremental linearization solver only (#4649)
Previously, this option disabled/enabled the entire non-linear solver. This is in preparation for new CAD techniques. I am intentionally not renaming "--nl-ext" to e.g. "--nl-inc-lin" for the sake of not breaking user configurations. It makes some minor changes to clean the interface in a few places and to not enable the non-linear solver in linear logics.
Diffstat (limited to 'src/theory/arith/nl/nl_model.cpp')
-rw-r--r--src/theory/arith/nl/nl_model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/arith/nl/nl_model.cpp b/src/theory/arith/nl/nl_model.cpp
index bf27ecbb3..d471bf0f6 100644
--- a/src/theory/arith/nl/nl_model.cpp
+++ b/src/theory/arith/nl/nl_model.cpp
@@ -211,13 +211,12 @@ int NlModel::compareValue(Node i, Node j, bool isAbsolute) const
}
bool NlModel::checkModel(const std::vector<Node>& assertions,
- const std::vector<Node>& false_asserts,
unsigned d,
std::vector<NlLemma>& lemmas,
std::vector<Node>& gs)
{
Trace("nl-ext-cm-debug") << " solve for equalities..." << std::endl;
- for (const Node& atom : false_asserts)
+ for (const Node& atom : assertions)
{
// see if it corresponds to a univariate polynomial equation of degree two
if (atom.getKind() == EQUAL)
@@ -489,6 +488,7 @@ bool NlModel::solveEqualitySimple(Node eq,
{
if (seq.getConst<bool>())
{
+ // already true
d_check_model_solved[eq] = Node::null();
return true;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback