private Map<Function, Set<Address>> getSyscallsInFunctions(Program program,
			TaskMonitor tMonitor) throws CancelledException {
		Map<Function, Set<Address>> funcsToCalls = new HashMap<>();
		for (Function func : program.getFunctionManager().getFunctionsNoStubs(true)) {
			tMonitor.checkCancelled();
			for (Instruction inst : program.getListing().getInstructions(func.getBody(), true)) {
				if (tester.test(inst)) {
					Set<Address> callSites = funcsToCalls.get(func);
					if (callSites == null) {
						callSites = new HashSet<>();
						funcsToCalls.put(func, callSites);
					}
					callSites.add(inst.getAddress());
				}
			}
		}
		return funcsToCalls;
	}
Scans through all of the functions defined in {@code program} and returns
a map which takes a function to the set of address in its body which contain
system calls
@param program program containing functions
@param tMonitor monitor
@return map function -> addresses in function containing syscalls
@throws CancelledException if the user cancels
Ghidra/Features/Base/ghidra_scripts/ResolveX86orX64LinuxSyscallsScript.java