Open panacekcz opened 6 years ago
The single occurence in daikon uses a local variable, so detecting the expression directly would not work.
If the @IndexOf
annotation described in #1461 is implemented, then it could be done: if i
is @IndexOf(value="a",in="s")
, then i!=-1
would refine s
to @MinLen
of a
.
Possibly could work also with @IndexOfIndexFor
if the offset expression is of the right form.
Duplicate of kelloggm#169
When
a.indexOf(s)!=-1
is checked, the length ofa
could be refined the same as it is forstartsWith
orendsWith
(#1432).