Skip to content

Commit 52dc134

Browse files
committed
Small fixes
for CI
1 parent 96e5cda commit 52dc134

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/goto-programs/c_string_refinement.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Author: diffblue
1111

1212
#include "c_string_refinement.h"
1313
#include "arith_tools.h"
14+
#include "cprover_prefix.h"
1415
#include "irep_ids.h"
1516
#include "std_expr.h"
1617

@@ -88,15 +89,15 @@ void c_string_refinementt::operator()(goto_functionst &goto_functions)
8889
it != goto_functions.function_map.end();
8990
it++)
9091
{
91-
if(it->first == "__CPROVER_math_func_string_index_of")
92+
if(it->first == CPROVER_PREFIX "math_func_string_index_of")
9293
{
9394
do_string_index_of(it->second);
9495
}
95-
else if(it->first == "__CPROVER_math_func_string_substring")
96+
else if(it->first == CPROVER_PREFIX "math_func_string_substring")
9697
{
9798
do_string_substring(it->second);
9899
}
99-
else if(it->first == "__CPROVER_math_func_string_concat")
100+
else if(it->first == CPROVER_PREFIX "math_func_string_concat")
100101
{
101102
do_string_concat(it->second);
102103
}

src/solvers/strings/string_constraint_generator_indexof.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ string_constraint_generatort::add_axioms_for_index_of(
4242
{
4343
string_constraintst constraints;
4444
const typet &index_type = from_index.type();
45-
//const typet &size_type = str.length_type();
4645
symbol_exprt index = fresh_symbol("index_of", index_type);
4746
symbol_exprt contains = fresh_symbol("contains_in_index_of");
4847

@@ -311,9 +310,9 @@ string_constraint_generatort::add_axioms_for_index_of(
311310
PRECONDITION(args.size() == 2 || args.size() == 3);
312311
const array_string_exprt str = get_string_expr(array_pool, args[0]);
313312
const exprt &c = args[1];
314-
const typet &index_type = f.type(); //str.length_type();
313+
const typet &index_type = f.type();
315314
const typet &char_type = str.content().type().subtype();
316-
//PRECONDITION(f.type() == index_type);
315+
317316
const exprt from_index =
318317
args.size() == 2 ? from_integer(0, index_type) : args[2];
319318

src/solvers/strings/string_refinement_util.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Author: Diffblue Ltd.
77
\*******************************************************************/
88

99
#include "string_refinement_util.h"
10-
#include "irep_ids.h"
1110
#include "string_format_builtin_function.h"
1211
#include <algorithm>
1312
#include <functional>

0 commit comments

Comments
 (0)