@@ -121,26 +121,31 @@ class _rw_set_loct:public rw_set_baset
121121 _rw_set_loct (
122122 const namespacet &_ns,
123123 value_setst &_value_sets,
124+ const irep_idt &_function_id,
124125 goto_programt::const_targett _target,
125- local_may_aliast &may):
126- rw_set_baset(_ns),
127- value_sets(_value_sets),
128- target(_target),
129- local_may(may)
126+ local_may_aliast &may)
127+ : rw_set_baset(_ns),
128+ value_sets(_value_sets),
129+ function_id(_function_id),
130+ target(_target),
131+ local_may(may)
130132#else
131133 _rw_set_loct (
132134 const namespacet &_ns,
133135 value_setst &_value_sets,
134- goto_programt::const_targett _target):
135- rw_set_baset(_ns),
136- value_sets(_value_sets),
137- target(_target)
136+ const irep_idt &_function_id,
137+ goto_programt::const_targett _target)
138+ : rw_set_baset(_ns),
139+ value_sets(_value_sets),
140+ function_id(_function_id),
141+ target(_target)
138142#endif
139143 {
140144 }
141145
142146protected:
143147 value_setst &value_sets;
148+ const irep_idt function_id;
144149 const goto_programt::const_targett target;
145150
146151#ifdef LOCAL_MAY
@@ -180,15 +185,17 @@ class rw_set_loct:public _rw_set_loct
180185 rw_set_loct (
181186 const namespacet &_ns,
182187 value_setst &_value_sets,
188+ const irep_idt &_function_id,
183189 goto_programt::const_targett _target,
184- local_may_aliast &may):
185- _rw_set_loct(_ns, _value_sets, _target, may)
190+ local_may_aliast &may)
191+ : _rw_set_loct(_ns, _value_sets, _function_id , _target, may)
186192#else
187193 rw_set_loct (
188194 const namespacet &_ns,
189195 value_setst &_value_sets,
190- goto_programt::const_targett _target):
191- _rw_set_loct(_ns, _value_sets, _target)
196+ const irep_idt &_function_id,
197+ goto_programt::const_targett _target)
198+ : _rw_set_loct(_ns, _value_sets, _function_id, _target)
192199#endif
193200 {
194201 compute ();
@@ -239,17 +246,19 @@ class rw_set_with_trackt:public _rw_set_loct
239246 rw_set_with_trackt (
240247 const namespacet &_ns,
241248 value_setst &_value_sets,
249+ const irep_idt &_function_id,
242250 goto_programt::const_targett _target,
243- local_may_aliast &may):
244- _rw_set_loct(_ns, _value_sets, _target, may),
245- dereferencing(false )
251+ local_may_aliast &may)
252+ : _rw_set_loct(_ns, _value_sets, _function_id , _target, may),
253+ dereferencing(false )
246254#else
247255 rw_set_with_trackt (
248256 const namespacet &_ns,
249257 value_setst &_value_sets,
250- goto_programt::const_targett _target):
251- _rw_set_loct(_ns, _value_sets, _target),
252- dereferencing(false )
258+ const irep_idt &_function_id,
259+ goto_programt::const_targett _target)
260+ : _rw_set_loct(_ns, _value_sets, _function_id, _target),
261+ dereferencing(false )
253262#endif
254263 {
255264 compute ();
0 commit comments