public static AddressSetView getAddressSet(Program program) {
		MemoryBlock[] memBlocks = program.getMemory().getBlocks();
		AddressSet addrSet = new AddressSet();
		for (MemoryBlock block : memBlocks) {
			addrSet.add(block.getStart(), block.getEnd());
		}
		return addrSet;
	}
Gets the address set for the specified program.
@param program the program whose address set we want.
@return the address set
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryUtil.java