//scan each basic block and fine the corresponding label, e.g. procedure
Iterator it = program.getCFG().getSortedBlockIterator();
int address;
int size;
while (it.hasNext()) {
Block block = (Block)it.next();
size = block.getSize();
address = block.getAddress();
if (size > 0 && program.readInstr(address) != null) {
labelLookup.put(new Integer(address), nearestLabel(address));
s.insertProbe(procedureProbe, address);
}
}