Resolve syscall information from the state, get the IP address of the syscall SimProcedure, and set the IP of
        the state accordingly. Don't do anything if the resolution fails.

        :param SimState state: the program state.
        :return: None

def _fix_syscall_ip(state):
        """
        Resolve syscall information from the state, get the IP address of the syscall SimProcedure, and set the IP of
        the state accordingly. Don't do anything if the resolution fails.

        :param SimState state: the program state.
        :return: None
        """

        try:
            bypass = o.BYPASS_UNSUPPORTED_SYSCALL in state.options
            stub = state.project.simos.syscall(state, allow_unsupported=bypass)
            if stub: # can be None if simos is not a subclass of SimUserspace
                state.ip = stub.addr # fix the IP
        except AngrUnsupportedSyscallError:
            pass