File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -258,15 +258,16 @@ bool value_set_analysis_fivrt::check_type(const typet &type)
258258{
259259 if (type.id ()==ID_pointer)
260260 {
261- switch (track_options) {
261+ switch (track_options)
262+ {
262263 case TRACK_ALL_POINTERS:
263264 { return true ; break ; }
264265 case TRACK_FUNCTION_POINTERS:
265266 {
266267 if (type.id ()==ID_pointer)
267268 {
268269 const typet *t = &type;
269- while (t->id ()==ID_pointer) t = &(t->subtype ());
270+ while (t->id ()==ID_pointer) t = &(t->subtype ());
270271
271272 return (t->id ()==ID_code);
272273 }
@@ -290,7 +291,8 @@ bool value_set_analysis_fivrt::check_type(const typet &type)
290291 it!=components.end ();
291292 it++)
292293 {
293- if (check_type (it->type ())) return true ;
294+ if (check_type (it->type ()))
295+ return true ;
294296 }
295297 }
296298 else if (type.id ()==ID_array)
Original file line number Diff line number Diff line change @@ -258,15 +258,16 @@ bool value_set_analysis_fivrnst::check_type(const typet &type)
258258{
259259 if (type.id ()==ID_pointer)
260260 {
261- switch (track_options) {
261+ switch (track_options)
262+ {
262263 case TRACK_ALL_POINTERS:
263264 { return true ; break ; }
264265 case TRACK_FUNCTION_POINTERS:
265266 {
266267 if (type.id ()==ID_pointer)
267268 {
268269 const typet *t = &type;
269- while (t->id ()==ID_pointer) t = &(t->subtype ());
270+ while (t->id ()==ID_pointer) t = &(t->subtype ());
270271
271272 return (t->id ()==ID_code);
272273 }
@@ -290,7 +291,8 @@ bool value_set_analysis_fivrnst::check_type(const typet &type)
290291 it!=components.end ();
291292 it++)
292293 {
293- if (check_type (it->type ())) return true ;
294+ if (check_type (it->type ()))
295+ return true ;
294296 }
295297 }
296298 else if (type.id ()==ID_array)
You can’t perform that action at this time.
0 commit comments