private boolean checkLocalExports(Constructor ct) {
		if (ct.getTempl() == null) {
			return true;		// No template, collisions impossible
		}
		if (ct.getTempl().buildOnly()) {
			return true;		// Operand exports aren't manipulated, so no collision is possible
		}
		if (ct.getNumOperands() < 2) {
			return true;		// Collisions can only happen with multiple operands
		}
		boolean noCollisions = true;
		Map<Long, Integer> collect = new TreeMap<>();
		for (int i = 0; i < ct.getNumOperands(); ++i) {
			ArrayList<Long> newCollect = new ArrayList<>();
			ct.getOperand(i).collectLocalValues(newCollect);
			if (newCollect.isEmpty()) {
				continue;
			}
			int collideOperand = findCollision(collect, newCollect, i);
			if (collideOperand >= 0) {
				noCollisions = false;
				if (warnalllocalcollisions) {
					reportWarning(ct.location,
						String.format("Possible operand collision between symbols '%s' and '%s'",
							ct.getOperand(collideOperand).getName(), ct.getOperand(i).getName()));

				}
				break;	// Don't continue
			}
		}
		return noCollisions;
	}
<code>SleighCompile</code> provides the ability to compile Sleigh language module (e.g., *.slaspec)
files.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcodeCPort/slgh_compile/SleighCompile.java