use of soot.jimple.spark.geom.dataRep.SegmentNode in project soot by Sable.
the class HeapInsIntervalManager method generate_all_to_many.
/**
* Merge all the ONE_TO_ONE figures pointed to by mp.
* The result is in the form (p, q, 0, I, L).
*/
private SegmentNode generate_all_to_many(SegmentNode mp) {
long left, right;
SegmentNode p;
left = mp.I2;
right = left + mp.L;
p = mp.next;
while (p != null) {
if (p.I2 < left)
left = p.I2;
long t = p.I2 + p.L;
if (t > right)
right = t;
p = p.next;
}
// We reuse the first element in the list mp
mp.I1 = 0;
mp.I2 = left;
mp.L = right - left;
mp.next = null;
return mp;
}
Aggregations