@@ -84,43 +84,43 @@ class string_instrumentationt:public messaget
84
84
void do_sprintf (
85
85
goto_programt &dest,
86
86
goto_programt::targett it,
87
- code_function_callt &call );
87
+ const code_function_callt &);
88
88
void do_snprintf (
89
89
goto_programt &dest,
90
90
goto_programt::targett it,
91
- code_function_callt &call );
91
+ const code_function_callt &);
92
92
void do_strcat (
93
93
goto_programt &dest,
94
94
goto_programt::targett it,
95
- code_function_callt &call );
95
+ const code_function_callt &);
96
96
void do_strncmp (
97
97
goto_programt &dest,
98
98
goto_programt::targett it,
99
- code_function_callt &call );
99
+ const code_function_callt &);
100
100
void do_strchr (
101
101
goto_programt &dest,
102
102
goto_programt::targett it,
103
- code_function_callt &call );
103
+ const code_function_callt &);
104
104
void do_strrchr (
105
105
goto_programt &dest,
106
106
goto_programt::targett it,
107
- code_function_callt &call );
107
+ const code_function_callt &);
108
108
void do_strstr (
109
109
goto_programt &dest,
110
110
goto_programt::targett it,
111
- code_function_callt &call );
111
+ const code_function_callt &);
112
112
void do_strtok (
113
113
goto_programt &dest,
114
114
goto_programt::targett it,
115
- code_function_callt &call );
115
+ const code_function_callt &);
116
116
void do_strerror (
117
117
goto_programt &dest,
118
118
goto_programt::targett it,
119
- code_function_callt &call );
119
+ const code_function_callt &);
120
120
void do_fscanf (
121
121
goto_programt &dest,
122
122
goto_programt::targett it,
123
- code_function_callt &call );
123
+ const code_function_callt &);
124
124
125
125
void do_format_string_read (
126
126
goto_programt &dest,
@@ -222,8 +222,8 @@ void string_instrumentationt::do_function_call(
222
222
goto_programt &dest,
223
223
goto_programt::targett target)
224
224
{
225
- code_function_callt &call = target->get_function_call ();
226
- exprt &function= call.function ();
225
+ const code_function_callt &call = target->get_function_call ();
226
+ const exprt &function = call.function ();
227
227
// const exprt &lhs=call.lhs();
228
228
229
229
if (function.id ()==ID_symbol)
@@ -272,7 +272,7 @@ void string_instrumentationt::do_function_call(
272
272
void string_instrumentationt::do_sprintf (
273
273
goto_programt &dest,
274
274
goto_programt::targett target,
275
- code_function_callt &call)
275
+ const code_function_callt &call)
276
276
{
277
277
const code_function_callt::argumentst &arguments=call.arguments ();
278
278
@@ -312,7 +312,7 @@ void string_instrumentationt::do_sprintf(
312
312
void string_instrumentationt::do_snprintf (
313
313
goto_programt &dest,
314
314
goto_programt::targett target,
315
- code_function_callt &call)
315
+ const code_function_callt &call)
316
316
{
317
317
const code_function_callt::argumentst &arguments=call.arguments ();
318
318
@@ -353,7 +353,7 @@ void string_instrumentationt::do_snprintf(
353
353
void string_instrumentationt::do_fscanf (
354
354
goto_programt &dest,
355
355
goto_programt::targett target,
356
- code_function_callt &call)
356
+ const code_function_callt &call)
357
357
{
358
358
const code_function_callt::argumentst &arguments=call.arguments ();
359
359
@@ -618,14 +618,14 @@ void string_instrumentationt::do_format_string_write(
618
618
void string_instrumentationt::do_strncmp (
619
619
goto_programt &,
620
620
goto_programt::targett,
621
- code_function_callt &)
621
+ const code_function_callt &)
622
622
{
623
623
}
624
624
625
625
void string_instrumentationt::do_strchr (
626
626
goto_programt &dest,
627
627
goto_programt::targett target,
628
- code_function_callt &call)
628
+ const code_function_callt &call)
629
629
{
630
630
const code_function_callt::argumentst &arguments=call.arguments ();
631
631
@@ -650,7 +650,7 @@ void string_instrumentationt::do_strchr(
650
650
void string_instrumentationt::do_strrchr (
651
651
goto_programt &dest,
652
652
goto_programt::targett target,
653
- code_function_callt &call)
653
+ const code_function_callt &call)
654
654
{
655
655
const code_function_callt::argumentst &arguments=call.arguments ();
656
656
@@ -675,7 +675,7 @@ void string_instrumentationt::do_strrchr(
675
675
void string_instrumentationt::do_strstr (
676
676
goto_programt &dest,
677
677
goto_programt::targett target,
678
- code_function_callt &call)
678
+ const code_function_callt &call)
679
679
{
680
680
const code_function_callt::argumentst &arguments=call.arguments ();
681
681
@@ -706,7 +706,7 @@ void string_instrumentationt::do_strstr(
706
706
void string_instrumentationt::do_strtok (
707
707
goto_programt &dest,
708
708
goto_programt::targett target,
709
- code_function_callt &call)
709
+ const code_function_callt &call)
710
710
{
711
711
const code_function_callt::argumentst &arguments=call.arguments ();
712
712
@@ -737,7 +737,7 @@ void string_instrumentationt::do_strtok(
737
737
void string_instrumentationt::do_strerror (
738
738
goto_programt &dest,
739
739
goto_programt::targett it,
740
- code_function_callt &call)
740
+ const code_function_callt &call)
741
741
{
742
742
if (call.lhs ().is_nil ())
743
743
{
0 commit comments