Commit 2f38d73
committed
Disable string indices assertion
This checked that no universally-quantified expression referred to the same string with
two different indices, but this is definitely possible (and always has been, e.g. the
StartsWith regression test asks for s.startsWtih(s, 1), which essentially asks if s is
its own prefix, and produces the expression "forall x, s[x] == s[x+1]".
The previous commit's improvement to pointer tracking means symex now exposes that situation
more directly, but it would always have happened in reality, just not getting caught by this
assertion.1 parent 697e720 commit 2f38d73
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2152 | 2152 | | |
2153 | 2153 | | |
2154 | 2154 | | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
2155 | 2162 | | |
2156 | 2163 | | |
2157 | 2164 | | |
| |||
2164 | 2171 | | |
2165 | 2172 | | |
2166 | 2173 | | |
| 2174 | + | |
2167 | 2175 | | |
2168 | 2176 | | |
2169 | 2177 | | |
| |||
0 commit comments