Skip to content

Commit c66e886

Browse files
author
svorenova
committed
Set max-nondet-string-length to 10000 by default
Unless no-refine-strings is defined
1 parent 88f2a96 commit c66e886

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/solvers/strings/string_refinement.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ Author: Alberto Griggio, [email protected]
4545
" --string-input-value st restrict non-null strings to a fixed value st;\n" /* NOLINT(*) */ \
4646
" the switch can be used multiple times to give\n" /* NOLINT(*) */ \
4747
" several strings\n" /* NOLINT(*) */ \
48-
" --max-nondet-string-length n bound the length of nondet (e.g. input) strings\n" /* NOLINT(*) */
48+
" --max-nondet-string-length n bound the length of nondet (e.g. input) strings;\n" /* NOLINT(*) */ \
49+
" set to 10000 by default\n" /* NOLINT(*) */
4950

5051
// The integration of the string solver into CBMC is incomplete. Therefore,
5152
// it is not turned on by default and not all options are available.

src/util/object_factory_parameters.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ void parse_object_factory_options(const cmdlinet &cmdline, optionst &options)
7474
"max-nondet-string-length",
7575
cmdline.get_value("max-nondet-string-length"));
7676
}
77+
else if(!cmdline.isset("no-refine-strings"))
78+
{
79+
options.set_option("max-nondet-string-length", 10000);
80+
}
7781
if(cmdline.isset("string-printable"))
7882
{
7983
options.set_option("string-printable", true);

0 commit comments

Comments
 (0)