public int calcDepth(PcodeBlock leaf) {
		int depth = 0;
		while (leaf != this) {
			if (leaf == null) {
				return -1;
			}
			leaf = leaf.getParent();
			depth += 1;
		}
		return depth;
	}
Assuming paths out of this block depend on a boolean condition
@return the PcodeBlock coming out of this if the condition is true
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/PcodeBlock.java