Skip to content

Commit 67505fb

Browse files
authored
Merge pull request #5981 from jezhiggins/vsd-widening-prep
Change domain merge(...) to take trace_ptrts rather than locationt.
2 parents 1a360f6 + a387193 commit 67505fb

23 files changed

+34
-65
lines changed

src/analyses/ai_domain.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,7 @@ class ai_domain_factoryt : public ai_domain_factory_baset
214214
{
215215
// For backwards compatability, use the location version
216216
return static_cast<domainT &>(dest).merge(
217-
static_cast<const domainT &>(src),
218-
from->current_location(),
219-
to->current_location());
217+
static_cast<const domainT &>(src), from, to);
220218
}
221219
};
222220

src/analyses/constant_propagator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ bool constant_propagator_domaint::valuest::meet(
638638
/// \return Return true if "this" has changed.
639639
bool constant_propagator_domaint::merge(
640640
const constant_propagator_domaint &other,
641-
locationt,
642-
locationt)
641+
trace_ptrt,
642+
trace_ptrt)
643643
{
644644
return values.merge(other.values);
645645
}

src/analyses/constant_propagator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class constant_propagator_domaint:public ai_domain_baset
4848

4949
bool merge(
5050
const constant_propagator_domaint &other,
51-
locationt from,
52-
locationt to);
51+
trace_ptrt from,
52+
trace_ptrt to);
5353

5454
virtual bool ai_simplify(
5555
exprt &condition,

src/analyses/custom_bitvector_analysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,8 @@ void custom_bitvector_domaint::output(
609609

610610
bool custom_bitvector_domaint::merge(
611611
const custom_bitvector_domaint &b,
612-
locationt,
613-
locationt)
612+
trace_ptrt,
613+
trace_ptrt)
614614
{
615615
bool changed=has_values.is_false();
616616
has_values=tvt::unknown();

src/analyses/custom_bitvector_analysis.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ class custom_bitvector_domaint:public ai_domain_baset
7171
return has_values.is_true();
7272
}
7373

74-
bool merge(
75-
const custom_bitvector_domaint &b,
76-
locationt from,
77-
locationt to);
74+
bool merge(const custom_bitvector_domaint &b, trace_ptrt from, trace_ptrt to);
7875

7976
typedef unsigned long long bit_vectort;
8077

src/analyses/dependence_graph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Date: August 2013
2121

2222
bool dep_graph_domaint::merge(
2323
const dep_graph_domaint &src,
24-
goto_programt::const_targett,
25-
goto_programt::const_targett)
24+
trace_ptrt,
25+
trace_ptrt)
2626
{
2727
// An abstract state at location `to` may be non-bottom even if
2828
// `merge(..., `to`) has not been called so far. This is due to the special

src/analyses/dependence_graph.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ class dep_graph_domaint:public ai_domain_baset
7373
{
7474
}
7575

76-
bool merge(
77-
const dep_graph_domaint &src,
78-
goto_programt::const_targett from,
79-
goto_programt::const_targett to);
76+
bool merge(const dep_graph_domaint &src, trace_ptrt from, trace_ptrt to);
8077

8178
void transform(
8279
const irep_idt &function_from,

src/analyses/escape_analysis.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,7 @@ void escape_domaint::output(
326326
}
327327
}
328328

329-
bool escape_domaint::merge(
330-
const escape_domaint &b,
331-
locationt,
332-
locationt)
329+
bool escape_domaint::merge(const escape_domaint &b, trace_ptrt, trace_ptrt)
333330
{
334331
bool changed=has_values.is_false();
335332
has_values=tvt::unknown();

src/analyses/escape_analysis.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ class escape_domaint:public ai_domain_baset
4141
const ai_baset &ai,
4242
const namespacet &ns) const final override;
4343

44-
bool merge(
45-
const escape_domaint &b,
46-
locationt from,
47-
locationt to);
44+
bool merge(const escape_domaint &b, trace_ptrt from, trace_ptrt to);
4845

4946
void make_bottom() final override
5047
{

src/analyses/global_may_alias.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ void global_may_alias_domaint::output(
197197

198198
bool global_may_alias_domaint::merge(
199199
const global_may_alias_domaint &b,
200-
locationt,
201-
locationt)
200+
trace_ptrt,
201+
trace_ptrt)
202202
{
203203
bool changed=has_values.is_false();
204204
has_values=tvt::unknown();

0 commit comments

Comments
 (0)