Skip to content

Commit aa766ae

Browse files
Set string-max-length in indexOf test
Without this, the solver can end up with a difficult instance for minisat. This behavior depends on the envioronment in which CBMC/JBMC is build, for instance travis and appVeyor may get different counter-examples from the SAT-solver, because of slightly different inputs. The behavior can also vary from one commit to the other on the same system (even if the changes seem unrelated to the solvers). However running the same benchmark on the same operating system with the same version of CBMC/JBMC should always behave the same.
1 parent 988b818 commit aa766ae

File tree

1 file changed

+1
-1
lines changed
  • regression/jbmc-strings/StringIndexOf

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
Test.class
3-
--refine-strings --function Test.check --unwind 4 --string-max-input-length 3 --java-assume-inputs-non-null
3+
--refine-strings --function Test.check --unwind 4 --string-max-input-length 3 --string-max-length 100 --java-assume-inputs-non-null
44
^EXIT=0$
55
^SIGNAL=0$
66
^VERIFICATION SUCCESSFUL$

0 commit comments

Comments
 (0)