File tree 5 files changed +26
-2
lines changed
regression/jbmc-strings/stub-string-length
5 files changed +26
-2
lines changed Original file line number Diff line number Diff line change
1
+
2
+ public class Opaque {
3
+
4
+ public static String getstr () { return null ; }
5
+
6
+ }
Original file line number Diff line number Diff line change
1
+
2
+ public class Test {
3
+
4
+ public static void main () {
5
+
6
+ String s = Opaque .getstr ();
7
+ if (s != null )
8
+ assert s .length () <= 10 ;
9
+
10
+ }
11
+
12
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ Test.class
3
+ --function Test.main --max-nondet-string-length 10
4
+ VERIFICATION SUCCESSFUL
5
+ EXIT=0
6
+ SIGNAL=0
Original file line number Diff line number Diff line change @@ -499,8 +499,8 @@ int jbmc_parse_optionst::doit()
499
499
? std::stoul (cmdline.get_value (" java-max-input-array-length" ))
500
500
: MAX_NONDET_ARRAY_LENGTH_DEFAULT;
501
501
object_factory_params.max_nondet_string_length =
502
- cmdline.isset (" string- max-input -length" )
503
- ? std::stoul (cmdline.get_value (" string- max-input -length" ))
502
+ cmdline.isset (" max-nondet-string -length" )
503
+ ? std::stoul (cmdline.get_value (" max-nondet-string -length" ))
504
504
: MAX_NONDET_STRING_LENGTH;
505
505
object_factory_params.max_nondet_tree_depth =
506
506
cmdline.isset (" java-max-input-tree-depth" )
You can’t perform that action at this time.
0 commit comments