private static void wrapUp(List<FunctionPair> result, final VTMatchSet matchSet,
			final TaskMonitor monitor) throws CancelledException {

		//Populate the table with matches.
		monitor.setMessage("Adding results to database");
		monitor.setIndeterminate(false);
		monitor.initialize(result.size());
		int ii = 0;
		for (FunctionPair resMatch : result) {
			VTMatchInfo match = resMatch.getMatch(matchSet);
			++ii;
			if (ii % 1000 == 0) {
				monitor.checkCancelled();
				monitor.incrementProgress(1000);
			}
			matchSet.addMatch(match);
		}
		return;
	}
Correlator which discovers functional matches by comparing data-flow feature vectors.
An initial seed set of high confidence matches are chosen.  The match set is extended
from the seeds by using local neighborhoods around the accepted match to efficiently
discover new matches.
Ghidra/Features/VersionTrackingBSim/src/main/java/ghidra/feature/vt/api/BSimProgramCorrelator.java