File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -86,19 +86,23 @@ void locst::output(std::ostream &out) const
86
86
{
87
87
irep_idt function;
88
88
89
- for (unsigned l= 0 ; l< loc_vector.size (); l++)
89
+ for (std:: size_t l = 0 ; l < loc_vector.size (); l++)
90
90
{
91
- const loct &loc= loc_vector[l];
92
- if (function!= loc.function )
91
+ const loct &loc = loc_vector[l];
92
+ if (function != loc.function )
93
93
{
94
- function= loc.function ;
94
+ function = loc.function ;
95
95
out << " *** " << function << " \n " ;
96
96
}
97
97
98
98
out << " L" << l << " : "
99
99
// << loc.target->type << " "
100
100
// << loc.target->location
101
- << " " << as_string (ns, *loc.target ) << " \n " ;
101
+ << " " << as_string (ns, *loc.target );
102
+ if (loc_vector[l].distance_to_property
103
+ != std::numeric_limits<std::size_t >::max ())
104
+ out << " path length: " << loc_vector[l].distance_to_property ;
105
+ out << " \n " ;
102
106
103
107
if (!loc.branch_target .is_nil ())
104
108
out << " T: " << loc.branch_target << " \n " ;
Original file line number Diff line number Diff line change @@ -27,11 +27,12 @@ struct loct
27
27
target (_target),
28
28
function (_function)
29
29
{
30
+ distance_to_property=std::numeric_limits<std::size_t >::max ();
30
31
}
31
32
32
33
goto_programt::const_targett target;
33
34
irep_idt function;
34
-
35
+ std:: size_t distance_to_property;
35
36
// we only support a single branch target
36
37
loc_reft branch_target;
37
38
};
You can’t perform that action at this time.
0 commit comments