Skip to content

Commit 1a314e3

Browse files
committed
Value set: add declared-on-type entry member
This is essentially specific to the security scanner's needs, but is also impossible to add to value-set without templating the class, thus moving ~2000LOC into its header file. This is the temporary kludge until we bite the bullet and do that, or think of something smarter.
1 parent 83fd948 commit 1a314e3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/pointer-analysis/value_set.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class value_sett
102102
object_mapt object_map;
103103
idt identifier;
104104
std::string suffix;
105-
105+
typet declared_on_type;
106106
entryt()
107107
{
108108
}
@@ -112,6 +112,13 @@ class value_sett
112112
suffix(_suffix)
113113
{
114114
}
115+
116+
entryt(const idt &_identifier, const std::string &_suffix, const typet &_declared_on_type):
117+
identifier(_identifier),
118+
suffix(_suffix),
119+
declared_on_type(_declared_on_type)
120+
{
121+
}
115122
};
116123

117124
typedef std::set<exprt> expr_sett;

0 commit comments

Comments
 (0)