Skip to content

Commit dbf0058

Browse files
committed
remove unnecessary .c_str()
1 parent cefce97 commit dbf0058

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/solvers/flattening/arrays.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ void arrayst::collect_arrays(const exprt &a)
190190

191191
DATA_INVARIANT(
192192
struct_op.id() == ID_symbol || struct_op.id() == ID_nondet_symbol,
193-
("unexpected array expression: member with '" + struct_op.id_string() +
194-
"'")
195-
.c_str());
193+
"unexpected array expression: member with '" + struct_op.id_string() +
194+
"'");
196195
}
197196
else if(a.id()==ID_constant ||
198197
a.id()==ID_array ||
@@ -216,8 +215,7 @@ void arrayst::collect_arrays(const exprt &a)
216215
// cast between array types?
217216
DATA_INVARIANT(
218217
typecast_op.type().id() == ID_array,
219-
("unexpected array type cast from " + typecast_op.type().id_string())
220-
.c_str());
218+
"unexpected array type cast from " + typecast_op.type().id_string());
221219

222220
arrays.make_union(a, typecast_op);
223221
collect_arrays(typecast_op);
@@ -236,8 +234,7 @@ void arrayst::collect_arrays(const exprt &a)
236234
{
237235
DATA_INVARIANT(
238236
false,
239-
("unexpected array expression (collect_arrays): '" + a.id_string() + "'")
240-
.c_str());
237+
"unexpected array expression (collect_arrays): '" + a.id_string() + "'");
241238
}
242239
}
243240

@@ -523,9 +520,8 @@ void arrayst::add_array_constraints(
523520
{
524521
DATA_INVARIANT(
525522
false,
526-
("unexpected array expression (add_array_constraints): '" +
527-
expr.id_string() + "'")
528-
.c_str());
523+
"unexpected array expression (add_array_constraints): '" +
524+
expr.id_string() + "'");
529525
}
530526
}
531527

0 commit comments

Comments
 (0)