Skip to content

Commit 045637f

Browse files
committed
Make value_sett::field_sensitive a virtual method
This is used out-of-tree as a customisation point.
1 parent 18459ef commit 045637f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pointer-analysis/value_set.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ class value_sett
6363
return *this;
6464
}
6565

66-
static bool field_sensitive(const irep_idt &id, const typet &type);
66+
/// Determines whether an identifier of a given type should have its fields
67+
/// distinguished. Virtual so that subclasses can override this behaviour.
68+
virtual bool field_sensitive(const irep_idt &id, const typet &type);
6769

6870
/// Matches the location_number field of the instruction that corresponds
6971
/// to this value_sett instance in value_set_domaint's state map

0 commit comments

Comments
 (0)