@@ -194,8 +194,22 @@ void value_sett::output(
194
194
result=from_expr (ns, identifier, o);
195
195
else
196
196
{
197
- result=" <" +from_expr (ns, identifier, o)+" , " ;
198
-
197
+ if (o.id ()==ID_dynamic_object)
198
+ {
199
+ dynamic_object_exprt::recencyt recency;
200
+ std::string recency_str=" " ;
201
+
202
+ recency=to_dynamic_object_expr (o).get_recency ();
203
+ if (recency==dynamic_object_exprt::recencyt::MOST_RECENT_ALLOCATION)
204
+ recency_str=" most-recent-allocation" ;
205
+ else if (recency==dynamic_object_exprt::recencyt::ANY_ALLOCATION)
206
+ recency_str=" any-allocation" ;
207
+ result=" <" +from_expr (ns, identifier, o)+" , " +recency_str+" , " ;
208
+ }
209
+ else
210
+ {
211
+ result=" <" +from_expr (ns, identifier, o)+" , " ;
212
+ }
199
213
if (o_it->second .offset_is_set )
200
214
result+=integer2string (o_it->second .offset )+" " ;
201
215
else
@@ -894,10 +908,19 @@ void value_sett::get_value_set_rec(
894
908
{
895
909
const dynamic_object_exprt &dynamic_object=
896
910
to_dynamic_object_expr (expr);
911
+ std::string recency_str=" " ;
912
+
913
+ if (dynamic_object.get_recency ()==
914
+ dynamic_object_exprt::recencyt::MOST_RECENT_ALLOCATION)
915
+ recency_str=" most-recent-allocation" ;
916
+ else if (dynamic_object.get_recency ()==
917
+ dynamic_object_exprt::recencyt::ANY_ALLOCATION)
918
+ recency_str=" any-allocation" ;
897
919
898
920
const std::string prefix=
899
921
" value_set::dynamic_object" +
900
- dynamic_object.instance ().get_string (ID_value);
922
+ dynamic_object.instance ().get_string (ID_value)+
923
+ recency_str;
901
924
902
925
// first try with suffix
903
926
const std::string full_name=prefix+suffix;
@@ -1532,10 +1555,19 @@ void value_sett::assign_rec(
1532
1555
{
1533
1556
const dynamic_object_exprt &dynamic_object=
1534
1557
to_dynamic_object_expr (lhs);
1558
+ std::string recency_str=" " ;
1559
+
1560
+ if (dynamic_object.get_recency ()==
1561
+ dynamic_object_exprt::recencyt::MOST_RECENT_ALLOCATION)
1562
+ recency_str=" most-recent-allocation" ;
1563
+ else if (dynamic_object.get_recency ()==
1564
+ dynamic_object_exprt::recencyt::ANY_ALLOCATION)
1565
+ recency_str=" any-allocation" ;
1535
1566
1536
1567
const std::string name=
1537
1568
" value_set::dynamic_object" +
1538
- dynamic_object.instance ().get_string (ID_value);
1569
+ dynamic_object.instance ().get_string (ID_value)+
1570
+ recency_str;
1539
1571
1540
1572
entryt &e=get_entry (entryt (name, suffix), lhs.type (), ns);
1541
1573
0 commit comments