Skip to content

Commit 3091abd

Browse files
Petr BauchPetr Bauch
Petr Bauch
authored and
Petr Bauch
committed
Change separator to comma (fix regression tests)
1 parent 9457fbb commit 3091abd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

regression/goto-instrument/fp-reachability-slice2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--fp-reachability-slice a:c
3+
--fp-reachability-slice a,c
44
^EXIT=0$
55
^SIGNAL=0$
66
dead d;

regression/goto-instrument/fp-reachability-slice3/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CORE
22
main.c
3-
--fp-reachability-slice b:c
3+
--fp-reachability-slice b,c
44
^EXIT=0$
55
^SIGNAL=0$
66
--

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ void goto_instrument_parse_optionst::help()
16211621
"Slicing:\n"
16221622
" --fp-reachability-slice <f> remove instructions that cannot appear on a\n" // NOLINT(*)
16231623
" trace that visits all given functions. The list of functions has to be\n" // NOLINT(*)
1624-
" given as a colon separated list.\n"
1624+
" given as a comma separated list.\n"
16251625
" --reachability-slice slice away instructions that can't reach assertions\n" // NOLINT(*)
16261626
" --full-slice slice away instructions that don't affect assertions\n" // NOLINT(*)
16271627
" --property id slice with respect to specific property only\n" // NOLINT(*)

src/util/cmdline.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ bool cmdlinet::parse(int argc, const char **argv, const char *optstring)
226226
options[*optnr].values.push_back(argv[i]+2);
227227

228228
auto &my_values = options[*optnr].values;
229-
if(my_values.back().find(':') != std::string::npos)
229+
if(my_values.back().find(',') != std::string::npos)
230230
{
231231
std::istringstream multiple_values(my_values.back());
232232
my_values.pop_back();
233233
std::string single_value;
234-
while(std::getline(multiple_values, single_value, ':'))
234+
while(std::getline(multiple_values, single_value, ','))
235235
{
236236
my_values.push_back(single_value);
237237
}

0 commit comments

Comments
 (0)