private static String getDefaultLocalName(Program program, VariableStorage storage) {

		StringBuilder buffy = new StringBuilder("global");
		for (Varnode v : storage.getVarnodes()) {
			buffy.append('_');
			Register reg = program.getRegister(v);
			if (reg != null) {
				buffy.append(reg.getName());
			}
			else {
				Address addr = v.getAddress();
				buffy.append(addr.getAddressSpace().getName() + Long.toHexString(addr.getOffset()));
			}
		}
		return buffy.toString();
	}
Constructs a new GlobalVariableSymbolDB which are restricted to the global namespace
@param symbolMgr the symbol manager
@param cache symbol object cache
@param variableMgr variable storage manager
@param address the address of the symbol (stack address)
@param record the record for the symbol
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/GlobalVariableSymbolDB.java