private Address resolveFunctionReference(Address addr) {
		Address extAddr = null;
		for (Reference ref : program.getReferenceManager().getReferencesFrom(addr)) {
			if (ref.isExternalReference()) {
				extAddr = ref.getToAddress();
			}
			else if (ref.isMemoryReference()) {
				if (ref.getReferenceType().isCall()) {
					return ref.getToAddress();
				}
			}
		}
		return extAddr;
	}
Apply pcode from an instruction to current varnode context.
Following a flow will push a new context state based on the current context state onto the contextStack

@param contextStack context state stack
@param vContext varnode context
@param instruction instruction to apply pcode from
@param continueAfterHittingFlow true if should continue after hitting an already processed flow
@param monitor to cancel
@return true to to continue this instruction path, false otherwise
Ghidra/Features/Base/src/main/java/ghidra/program/util/SymbolicPropogator.java