Skip to content

Commit 286f78e

Browse files
committed
Use consistent types with function_application_exprt
It seems that the type should be the return type of the function.
1 parent 249d8cf commit 286f78e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jbmc/unit/solvers/strings/string_constraint_instantiation/instantiate_not_contains.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ SCENARIO(
194194
{
195195
// Creating "ab".lastIndexOf("b", 0)
196196
const function_application_exprt func(
197-
symbol_exprt(ID_cprover_string_last_index_of_func),
197+
symbol_exprt(ID_cprover_string_last_index_of_func, t.length_type()),
198198
{ab, b, from_integer(2)},
199199
t.length_type());
200200

jbmc/unit/solvers/strings/string_refinement/dependency_graph.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ SCENARIO("dependency_graph", "[core][solvers][refinement][string_refinement]")
6464

6565
// fun1 is s3 = s1.concat(s2)
6666
const function_application_exprt fun1(
67-
symbol_exprt(ID_cprover_string_concat_func),
67+
symbol_exprt(ID_cprover_string_concat_func, fun_type),
6868
{string3.op0(), string3.op1(), string1, string2},
6969
fun_type);
7070

7171
// fun2 is s5 = s3.concat(s4)
7272
const function_application_exprt fun2(
73-
symbol_exprt(ID_cprover_string_concat_func),
73+
symbol_exprt(ID_cprover_string_concat_func, fun_type),
7474
{string5.op0(), string5.op1(), string3, string4},
7575
fun_type);
7676

7777
// fun3 is s6 = s5.concat(s2)
7878
const function_application_exprt fun3(
79-
symbol_exprt(ID_cprover_string_concat_func),
79+
symbol_exprt(ID_cprover_string_concat_func, fun_type),
8080
{string6.op0(), string6.op1(), string5, string2},
8181
fun_type);
8282

0 commit comments

Comments
 (0)