Skip to content

Commit 74be7fb

Browse files
authored
Merge pull request diffblue#1729 from romainbrenguier/refactor/unused-nonempty-option
Remove the string-non-empty function which had no effect
2 parents 5bd5962 + 5a8eea5 commit 74be7fb

File tree

6 files changed

+0
-9
lines changed

6 files changed

+0
-9
lines changed

src/cbmc/cbmc_parse_options.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ void cbmc_parse_optionst::get_command_line_options(optionst &options)
271271
if(cmdline.isset("refine-strings"))
272272
{
273273
options.set_option("refine-strings", true);
274-
options.set_option("string-non-empty", cmdline.isset("string-non-empty"));
275274
options.set_option("string-printable", cmdline.isset("string-printable"));
276275
if(cmdline.isset("string-max-length"))
277276
options.set_option(
@@ -1009,7 +1008,6 @@ void cbmc_parse_optionst::help()
10091008
" --z3 use Z3\n"
10101009
" --refine use refinement procedure (experimental)\n"
10111010
" --refine-strings use string refinement (experimental)\n"
1012-
" --string-non-empty add constraint that strings are non empty (experimental)\n" // NOLINT(*)
10131011
" --string-printable add constraint that strings are printable (experimental)\n" // NOLINT(*)
10141012
" --string-max-length add constraint on the length of strings\n" // NOLINT(*)
10151013
" --string-max-input-length add constraint on the length of input strings\n" // NOLINT(*)

src/cbmc/cbmc_parse_options.h

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class optionst;
4444
"(no-pretty-names)(beautify)" \
4545
"(dimacs)(refine)(max-node-refinement):(refine-arrays)(refine-arithmetic)"\
4646
"(refine-strings)" \
47-
"(string-non-empty)" \
4847
"(string-printable)" \
4948
"(string-max-length):" \
5049
"(string-max-input-length):" \

src/cbmc/cbmc_solvers.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ std::unique_ptr<cbmc_solverst::solvert> cbmc_solverst::get_string_refinement()
178178
info.ui=ui;
179179
if(options.get_bool_option("string-max-length"))
180180
info.string_max_length=options.get_signed_int_option("string-max-length");
181-
info.string_non_empty=options.get_bool_option("string-non-empty");
182181
info.trace=options.get_bool_option("trace");
183182
if(options.get_bool_option("max-node-refinement"))
184183
info.max_node_refinement=

src/jbmc/jbmc_parse_options.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ void jbmc_parse_optionst::get_command_line_options(optionst &options)
246246
if(cmdline.isset("refine-strings"))
247247
{
248248
options.set_option("refine-strings", true);
249-
options.set_option("string-non-empty", cmdline.isset("string-non-empty"));
250249
options.set_option("string-printable", cmdline.isset("string-printable"));
251250
if(cmdline.isset("string-max-length"))
252251
options.set_option(
@@ -912,7 +911,6 @@ void jbmc_parse_optionst::help()
912911
" --z3 use Z3\n"
913912
" --refine use refinement procedure (experimental)\n"
914913
" --refine-strings use string refinement (experimental)\n"
915-
" --string-non-empty add constraint that strings are non empty (experimental)\n" // NOLINT(*)
916914
" --string-printable add constraint that strings are printable (experimental)\n" // NOLINT(*)
917915
" --string-max-length add constraint on the length of strings\n" // NOLINT(*)
918916
" --string-max-input-length add constraint on the length of input strings\n" // NOLINT(*)

src/jbmc/jbmc_parse_options.h

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class optionst;
4444
"(no-pretty-names)(beautify)" \
4545
"(dimacs)(refine)(max-node-refinement):(refine-arrays)(refine-arithmetic)"\
4646
"(refine-strings)" \
47-
"(string-non-empty)" \
4847
"(string-printable)" \
4948
"(string-max-length):" \
5049
"(string-max-input-length):" \

src/solvers/refinement/string_refinement.h

-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ class string_refinementt final: public bv_refinementt
4949
struct configt
5050
{
5151
std::size_t refinement_bound=0;
52-
/// Make non-deterministic character arrays have at least one character
53-
bool string_non_empty=false;
5452
/// Concretize strings after solver is finished
5553
bool trace=false;
5654
bool use_counter_example=true;

0 commit comments

Comments
 (0)