diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2020-01-29 15:40:59 -0800 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2020-01-29 15:40:59 -0800 |
commit | 1beb31339aace505c99a0b38c1e7fc618857bf34 (patch) | |
tree | cb15721b5b70d779668c6410bb8fb4629e19f3c0 | |
parent | 99d7c85f7fd0523166b1cba283df97d6b16a4c0c (diff) |
Prefer old variable heuristicoldVarHeuristic
-rw-r--r-- | src/theory/strings/theory_strings.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/theory/strings/theory_strings.cpp b/src/theory/strings/theory_strings.cpp index 35868fb69..331e9f0ff 100644 --- a/src/theory/strings/theory_strings.cpp +++ b/src/theory/strings/theory_strings.cpp @@ -1405,7 +1405,15 @@ void TheoryStrings::checkInit() { var = n; }else{ Trace("strings-process-debug") << " congruent variable : " << n << std::endl; - d_congruent.insert( n ); + if (var > n) + { + d_congruent.insert(var); + var = n; + } + else + { + d_congruent.insert(n); + } } } } |