broader tracking of aggregate modifications

This commit is contained in:
Vern Paxson 2023-11-28 11:06:11 -08:00
parent f0eccda180
commit 8a18d5f8a2
3 changed files with 66 additions and 45 deletions

View file

@ -1008,10 +1008,12 @@ bool CSE_ValidityChecker::CheckID(const ID* id, bool ignore_orig) const {
return true; // reassignment
if ( id_t && same_type(id_t, i->GetType()) ) {
// printf("identifier %s (%d), start %s, end %s\n", id->Name(), ignore_orig, obj_desc(start_e).c_str(),
// obj_desc(end_e).c_str()); Same-type aggregate.
// if ( ignore_orig )
return true;
// Same-type aggregate.
if ( ! ignore_orig )
printf("identifier %s (%d), start %s, end %s\n", id->Name(), ignore_orig, obj_desc(start_e).c_str(),
obj_desc(end_e).c_str());
if ( ignore_orig )
return true;
}
}