private static Set<Address> findFunctions(Program program, AddressSetView set,
			boolean killThunks) {
		Set<Address> functionStarts = new HashSet<>();

		FunctionIterator functions = program.getFunctionManager().getFunctions(set, true);
		for (Function function : functions) {
			if (killThunks) {
				if (function.isThunk()) {
					function = function.getThunkedFunction(true);
				}
			}
			functionStarts.add(function.getEntryPoint());
		}

		return functionStarts;
	}
Builds the DependencyGraph for the acyclic call graph represented by this object.
@param monitor the taskMonitor to use for reporting progress or cancelling.
@return the DependencyGraph for the acyclic call graph represented by this object.
@throws CancelledException if the monitor was cancelled.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/util/AcyclicCallGraphBuilder.java