diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-11-03 12:17:32 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 12:17:32 -0600 |
commit | e2aff722e0b1072e90bd0c77e7030957364283cc (patch) | |
tree | fe19793d03140f173caabe3c5a1c9cf833e38ebb /src | |
parent | cf36673d216949bb4306964c81488df3eb42b0c2 (diff) |
Reset built model flag at presolve in nonlinear (#5386)
Fixes a bug in incremental with non-linear where the built model flag would still be true on the first call to check in a 2nd call to check-sat in incremental mode. This occurs when we are under the same SAT context when the model was built (likely level 0) on the subsequent check-sat call.
Fixes #5372
Diffstat (limited to 'src')
-rw-r--r-- | src/theory/arith/nl/nonlinear_extension.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/theory/arith/nl/nonlinear_extension.cpp b/src/theory/arith/nl/nonlinear_extension.cpp index fdab6d7b7..f5e83c8f0 100644 --- a/src/theory/arith/nl/nonlinear_extension.cpp +++ b/src/theory/arith/nl/nonlinear_extension.cpp @@ -582,6 +582,7 @@ void NonlinearExtension::interceptModel(std::map<Node, Node>& arithModel) void NonlinearExtension::presolve() { Trace("nl-ext") << "NonlinearExtension::presolve" << std::endl; + d_builtModel = false; } void NonlinearExtension::runStrategy(Theory::Effort effort, |