public static ResourceFile getWeightsFile(LanguageID id1, LanguageID id2) throws IOException {
		String[] split1 = id1.getIdAsString().split(":");
		String[] split2 = id2.getIdAsString().split(":");
		// Check if we have are comparing the same processor size
		if ((split1.length < 3) || (split2.length < 3)) {
			return null;		// If not, we need to do something different with the weights
		}

		ResourceFile moduleDataSubDirectory = Application.getModuleDataSubDirectory("");
		if (split1[0].equals("Dalvik") || split1[0].equals("JVM")) {
			if (!split2[0].equals(split1[0])) {
				return null;
			}
			return new ResourceFile(moduleDataSubDirectory, "lshweights_cpool.xml");
		}
		String basefile;
		String size1 = split1[2];		// Pull out the size
		String size2 = split2[2];
		if (!size1.equals(size2)) {		// If the two things we compare are from different processor sizes
			if (!size1.equals("64") && !size1.equals("32")) {
				return null;	// Differing sizes not 32 or 64
			}
			if (!size2.equals("64") && !size2.equals("32")) {
				return null;	// We cannot do decent comparisons
			}
			basefile = "lshweights_nosize.xml";	// We use a special sizeless weights file
		}
		else {
			if (size1.equals("32")) {
				basefile = "lshweights_32.xml";
			}
			else if (size1.equals("64")) {
				basefile = "lshweights_64.xml";
				if (split1.length > 3) {
					String version = split1[3];
					if (version.contains("-32")) {
						basefile = "lshweights_64_32.xml";
					}
				}
			}
			else {
				// Same size, but not 64 or 32
				basefile = "lshweights_nosize.xml";
			}
		}

		return new ResourceFile(moduleDataSubDirectory, basefile);
	}
Return the weights file that should be used to compare functions between two programs
@param id1 is the language of the first program
@param id2 is the language of the second program  (can be same as first program)
@return the XML weights file, or null if there is no valid weights file
@throws IOException if the module data directory cannot be found
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/GenSignatures.java