private static void finalizeExecutableResult(TreeSet<ExecutableResult> singlefunc,
		TreeSet<ExecutableResult> globalfunc) {
		Iterator<ExecutableResult> finaliter = singlefunc.iterator();
		while (finaliter.hasNext()) {
			ExecutableResult eres = finaliter.next();
			ExecutableResult tmpres = globalfunc.floor(eres);
			if ((tmpres == null) || (!tmpres.equals(eres))) {
				tmpres = new ExecutableResult(eres.exerecord);
				globalfunc.add(tmpres);
			}
			tmpres.addFunction(eres.getSignificanceSum());
		}
	}
@return sum of significance scores for all matching functions
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/search/results/ExecutableResult.java