public final void setInput(Varnode vn, int slot) {
		if (input == null) {
			input = new Varnode[slot + 1];
			for (int i = 0; i < input.length; ++i) {
				input[i] = null;
			}
		}
		else if (slot >= input.length) {
			Varnode[] newinput = new Varnode[slot + 1];
			for (int i = 0; i < input.length; ++i) {
				newinput[i] = input[i];
			}
			for (int i = input.length; i < newinput.length; ++i) {
				newinput[i] = null;
			}
			input = newinput;
		}
		input[slot] = vn;
	}
Set/Replace an input varnode at the given slot.

@param vn varnode to replace
@param slot index of input varnode to be replaced
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/PcodeOp.java