@Override
	public int hashCode() {
		int result = prod.hashCode();
		for (AssemblyParseTreeNode n : substs) {
			result *= 31;
			result += n.hashCode();
		}
		return result;
	}
Construct a branch from the given grammar and production

@param grammar the grammar containing the production
@param prod the production applied to create this branch
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/tree/AssemblyParseBranch.java