Set<BasicBlock> (ExceptionRangeCFG range) { Set<BasicBlock> setEntries = new HashSet<>(); Set<BasicBlock> setRange = new HashSet<>(range.getProtectedRange()); for (BasicBlock block : range.getProtectedRange()) { Set<BasicBlock> setPreds = new HashSet<>(block.getPredecessors()); setPreds.removeAll(setRange); if (!setPreds.isEmpty()) { setEntries.add(block); } } return setEntries; }