File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed
jbmc/regression/jbmc-strings/IndexOfConstantEvaluation05-Charactor Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ public class Main {
2+ public void constantIndexOf () {
3+ String s1 = "abcabc" ;
4+ Character b = 'b' ;
5+ assert s1 .indexOf (b ) == 1 ;
6+ assert s1 .indexOf (b , -10 ) == 1 ;
7+ assert s1 .indexOf (b , 3 ) == 4 ;
8+ assert s1 .indexOf (b , 10 ) == -1 ;
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ CORE symex-driven-lazy-loading-expected-failure
2+ Main.class
3+ --function Main.constantIndexOf --cp `../../../../scripts/format_classpath.sh . ../../../lib/java-models-library/target/core-models.jar`
4+ ^Generated [0-9]+ VCC\(s\), 0 remaining after simplification$
5+ ^VERIFICATION SUCCESSFUL$
6+ ^EXIT=0$
7+ ^SIGNAL=0$
8+ --
9+ --
Original file line number Diff line number Diff line change 1+ KNOWNBUG symex-driven-lazy-loading-expected-failure
2+ Main.class
3+ --function Main.constantIndexOf
4+ ^Generated [0-9]+ VCC\(s\), 0 remaining after simplification$
5+ ^VERIFICATION SUCCESSFUL$
6+ ^EXIT=0$
7+ ^SIGNAL=0$
8+ --
9+ --
10+ This is tentatively set to KNOWNBUG as it will fail verification and root cause
11+ not yet found out why verification failed without models-library and with
12+ Character.
You can’t perform that action at this time.
0 commit comments