private Set<Function> findFunctions(Program program) {
		Set<Function> functions = new HashSet<>();
		for (Entry<Function, Set<Function>> entry : sourceToTargetsMap.entrySet()) {
			Function source = entry.getKey();
			Set<Function> targets = entry.getValue();

			if (source.getProgram() == program) {
				functions.add(source);
			}
			for (Function function : targets) {
				if (function.getProgram() == program) {
					functions.add(function);
				}
			}
		}
		return functions;
	}
Removes all functions in the model that come from the given
program

@param program the program to remove functions from
Ghidra/Features/Base/src/main/java/ghidra/features/base/codecompare/model/MatchedFunctionComparisonModel.java