private void checkCaseSensitivity() {
		if (!failinsensitivedups) {
			return;		// Case insensitive duplicates don't cause error
		}
		HashMap<String, SleighSymbol> registerMap = new HashMap<>();
		SymbolScope scope = symtab.getGlobalScope();
		IteratorSTL<SleighSymbol> iter;
		for (iter = scope.begin(); !iter.isEnd(); iter.increment()) {
			SleighSymbol sym = iter.get();
			if (!(sym instanceof VarnodeSymbol)) {
				continue;
			}
			VarnodeSymbol vsym = (VarnodeSymbol) sym;
			AddrSpace space = vsym.getFixedVarnode().space;
			if (space.getType() != spacetype.IPTR_PROCESSOR) {
				continue;
			}
			String nm = sym.getName().toUpperCase();
			SleighSymbol oldsym = registerMap.putIfAbsent(nm, sym);
			if (oldsym != null) {	// Name already existed
				StringBuilder buffer = new StringBuilder();
				buffer.append("Name collision: ").append(sym.getName()).append(" --- ");
				Location oldLocation = oldsym.getLocation();
				buffer.append("Duplicate symbol ").append(oldsym.getName()).append(" defined at ");
				buffer.append(oldLocation);
				reportError(sym.getLocation(), buffer.toString());
			}
		}
	}
<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