@@ -206,8 +206,6 @@ void rw_range_sett::get_objects_dereference(
206
206
{
207
207
const exprt &pointer=deref.pointer ();
208
208
get_objects_rec (READ, pointer);
209
- if (mode!=READ)
210
- get_objects_rec (mode, pointer);
211
209
}
212
210
213
211
/* ******************************************************************\
@@ -586,14 +584,13 @@ Function: rw_range_sett::get_objects_address_of
586
584
587
585
void rw_range_sett::get_objects_address_of (const exprt &object)
588
586
{
589
- if (object.id ()==ID_string_constant ||
587
+ if (object.id ()==ID_symbol ||
588
+ object.id ()==ID_string_constant ||
590
589
object.id ()==ID_label ||
591
590
object.id ()==ID_array ||
592
591
object.id ()==" NULL-object" )
593
592
// constant, nothing to do
594
593
return ;
595
- else if (object.id ()==ID_symbol)
596
- get_objects_rec (READ, object);
597
594
else if (object.id ()==ID_dereference)
598
595
get_objects_rec (READ, object);
599
596
else if (object.id ()==ID_index)
@@ -757,11 +754,6 @@ void rw_range_sett::get_objects_rec(
757
754
{
758
755
// dereferencing may yield some weird ones, ignore these
759
756
}
760
- else if (mode==LHS_W)
761
- {
762
- forall_operands (it, expr)
763
- get_objects_rec (mode, *it);
764
- }
765
757
else
766
758
throw " rw_range_sett: assignment to `" +expr.id_string ()+" ' not handled" ;
767
759
}
0 commit comments