mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
another stab at fixing substring interval extraction combinatorics
- i is the offset into val_other. The valid offsets are 0... |val_other|-1. - j is the length of the substring. It only makes sense to extract strings of length 1,... |val_other|-i
This commit is contained in:
parent
fa22b646aa
commit
558758fcf1
|
@ -694,7 +694,7 @@ namespace sls {
|
|||
hashtable<zstring, zstring_hash_proc, default_eq<zstring>> set;
|
||||
set.insert(zstring(""));
|
||||
for (unsigned i = 0; i < val_other.length(); ++i) {
|
||||
for (unsigned j = val_other.length() - i; j-- > 0; ) {
|
||||
for (unsigned j = 1; j <= val_other.length() - i; ++j) {
|
||||
zstring sub = val_other.extract(i, j);
|
||||
if (set.contains(sub))
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue