Skip to content

Commit 574101c

Browse files
author
Owen Jones
committed
Add structured_lhs field to entryt
It should be `nil_exprt()` for all lhs except for external value-sets, where it should be the expr from the external value set.
1 parent 3d492fe commit 574101c

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

src/pointer-analysis/value_set.h

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -247,34 +247,46 @@ class value_sett
247247
idt identifier;
248248
std::string suffix;
249249
typet declared_on_type;
250+
exprt structured_lhs;
250251

251252
entryt()
252253
{
253254
}
254255

255-
entryt(const idt &_identifier, const std::string &_suffix):
256-
identifier(_identifier),
257-
suffix(_suffix)
256+
entryt(const idt &_identifier, const std::string &_suffix)
257+
: identifier(_identifier), suffix(_suffix), structured_lhs(nil_exprt())
258258
{
259259
}
260260

261261
entryt(
262262
const idt &_identifier,
263263
const std::string &_suffix,
264-
const typet &_declared_on_type):
265-
identifier(_identifier),
266-
suffix(_suffix),
267-
declared_on_type(_declared_on_type)
264+
const typet &_declared_on_type)
265+
: identifier(_identifier),
266+
suffix(_suffix),
267+
declared_on_type(_declared_on_type),
268+
structured_lhs(nil_exprt())
269+
{
270+
}
271+
272+
entryt(
273+
const idt &_identifier,
274+
const std::string &_suffix,
275+
const typet &_declared_on_type,
276+
const exprt &structured_lhs)
277+
: identifier(_identifier),
278+
suffix(_suffix),
279+
declared_on_type(_declared_on_type),
280+
structured_lhs(structured_lhs)
268281
{
269282
}
270283

271284
bool operator==(const entryt &other) const
272285
{
273-
return
274-
identifier==other.identifier &&
275-
suffix==other.suffix &&
276-
declared_on_type==other.declared_on_type &&
277-
object_map==other.object_map;
286+
return identifier == other.identifier && suffix == other.suffix &&
287+
declared_on_type == other.declared_on_type &&
288+
structured_lhs == other.structured_lhs &&
289+
object_map == other.object_map;
278290
}
279291
bool operator!=(const entryt &other) const
280292
{

0 commit comments

Comments
 (0)