protected void assertHasExtAddresses(Set<ExternalLocation> externalLocations,
			String... addrStrings) {

		Address[] addrs = new Address[addrStrings.length];
		for (int i = 0; i < addrs.length; i++) {
			addrs[i] = addr(resultProgram, addrStrings[i]);
		}
		boolean[] foundAddrs = new boolean[addrStrings.length];
		int count = 0;

		for (ExternalLocation extLoc : externalLocations) {
			Address addr = extLoc.getAddress();

			boolean found = false;
			for (int i = 0; i < addrs.length; i++) {
				if (addrs[i].equals(addr)) {
					assertFalse("Duplicate ext addr: " + addr, foundAddrs[i]);
					foundAddrs[i] = true;
					found = true;
					++count;
					break;
				}
			}
			assertTrue("Unexpected extaddr: " + addr, found);
		}

		assertEquals("Did not find expected ext addrs", addrs.length, count);
	}
Changes the function's parameter indicated by index to be a stack
parameter with the indicated stack offset.
@param func the function
@param index the index of an existing parameter
@param stackOffset the stack offset for this parameter
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/AbstractExternalMergerTest.java