Commit a15dc8f
committed
[TS] Mock unresolved virtual calls instead of killing the state
Coverage investigation on an open-source corpus showed that 155 of 172
unreached symbolic targets died in under 100ms: TsInterpreter killed the
state (assert(false)) on ANY unresolved callee (e.g. Number.isInteger),
making everything after such a call unreachable. All three unresolved-call
sites in visitVirtualMethodCall now fall back to mockMethodCall +
returnSite, mirroring the pre-existing unresolved-constructor
approximation. Full usvm-ts suite stays green (422 tests).
NOTE: an engine fix, staged to be extracted into a separate PR.1 parent dab6d43 commit a15dc8f
1 file changed
Lines changed: 11 additions & 3 deletions
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
| |||
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
206 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
| |||
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
215 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
216 | 224 | | |
217 | 225 | | |
218 | 226 | | |
| |||
0 commit comments