public static TreeSet<ExecutableResult> generateFromMatchRows(
		List<BSimMatchResult> filteredrows) {
		TreeSet<ExecutableResult> execrows = new TreeSet<ExecutableResult>();
		ExecutableResult curres = new ExecutableResult();
		TreeSet<ExecutableResult> exetree = new TreeSet<ExecutableResult>();
		FunctionDescription curdescription = null;
		Iterator<BSimMatchResult> iter = filteredrows.iterator();
		while (iter.hasNext()) {
			BSimMatchResult simres = iter.next();
			double signif = simres.getSignificance();
			if (curdescription != simres.getOriginalFunctionDescription()) {
				finalizeExecutableResult(exetree, execrows);
				curdescription = simres.getOriginalFunctionDescription();
				exetree = new TreeSet<ExecutableResult>();
			}
			curres.exerecord = simres.getMatchFunctionDescription().getExecutableRecord();
			ExecutableResult tmpres = exetree.floor(curres);
			if ((tmpres == null) || (!tmpres.equals(curres))) {		// Haven't seen this executable before
				tmpres = new ExecutableResult(curres.exerecord);
				tmpres.sumsignif = signif;
				exetree.add(tmpres);
			}
			else {	// Seen this executable before for this particular function
				if (tmpres.getSignificanceSum() < signif)
					tmpres.sumsignif = signif;
			}
		}
		if (!exetree.isEmpty())
			finalizeExecutableResult(exetree, execrows);
		return execrows;
	}
@return sum of significance scores for all matching functions
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/search/results/ExecutableResult.java