diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-06-24 12:41:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 12:41:34 -0500 |
commit | cecaa8b28477d6bef96ece4976d5383e9b3cd4d1 (patch) | |
tree | f6d3fe2b2af3485345db3170b8e409be736809ef /src/preprocessing/passes/unconstrained_simplifier.cpp | |
parent | ecafdf215735ad9d8257dc44064f2479502d348b (diff) | |
parent | be607a9d420f79fa3e6a1f2c9b8c0e1b49cd34ee (diff) |
Merge branch 'master' into fixExtraVersionfixExtraVersion
Diffstat (limited to 'src/preprocessing/passes/unconstrained_simplifier.cpp')
-rw-r--r-- | src/preprocessing/passes/unconstrained_simplifier.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/preprocessing/passes/unconstrained_simplifier.cpp b/src/preprocessing/passes/unconstrained_simplifier.cpp index e20403d2a..7d1f66d65 100644 --- a/src/preprocessing/passes/unconstrained_simplifier.cpp +++ b/src/preprocessing/passes/unconstrained_simplifier.cpp @@ -75,6 +75,16 @@ void UnconstrainedSimplifier::visitAll(TNode assertion) { d_unconstrained.erase(current); } + else + { + // Also erase the children from the visited-once set when we visit a + // node a second time, otherwise variables in this node are not + // erased from the set of unconstrained variables. + for (TNode childNode : current) + { + toVisit.push_back(unc_preprocess_stack_element(childNode, current)); + } + } } ++find->second; continue; |