protected boolean isPureRecursive(P prod) {
		if (prod.getRHS().size() != 1) {
			return false;
		}
		if (!prod.getLHS().equals(prod.getRHS().getSymbol(0))) {
			return false;
		}
		return true;
	}
Check if the given production is purely recursive, i.e., of the form I =&gt; I

@param prod the production to check
@return true iff the production is purely recursive
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/grammars/AbstractAssemblyGrammar.java