uroboros-diversification/src/disasm/Parser.py
def calldes_symb(self, s):
        """
        Parse function call destination symbol (address or label)
        :param s: lexeme
        """
        items = s.split()
        if len(items) < 2: return None
        s1 = items[1].strip()
        if '+' in s1 or '-' in s1:
            addr = int(items[0], 16)
            return self.get_func('S_0x%X' % addr, False, addr)
        elif '@' in s1:
            name = s1.split('@')[0]
            return self.get_func(name[1:], True)
        return self.get_func(s1[1:-1], True)

        Parse function call destination symbol (address or label)
        :param s: lexeme
        
Parse function call destination symbol (address or label)
Parse function call destination symbol ( address or label )
def calldes_symb(self, s):
        items = s.split()
        if len(items) < 2: return None
        s1 = items[1].strip()
        if '+' in s1 or '-' in s1:
            addr = int(items[0], 16)
            return self.get_func('S_0x%X' % addr, False, addr)
        elif '@' in s1:
            name = s1.split('@')[0]
            return self.get_func(name[1:], True)
        return self.get_func(s1[1:-1], True)
def calldes_symb ( self , s ) : items = s . split ( ) if len ( items ) < 2 : return None s1 = items [ 1 ] . strip ( ) if '+' in s1 or '-' in s1 : addr = int ( items [ 0 ] , 16 ) return self . get_func ( 'S_0x%X' % addr , False , addr ) elif '@' in s1 : name = s1 . split ( '@' ) [ 0 ] return self . get_func ( name [ 1 : ] , True ) return self . get_func ( s1 [ 1 : - 1 ] , True )
Parse function call destination symbol (address or label)
Parse function call destination symbol ( address or label )
"""
        Parse function call destination symbol (address or label)
        :param s: lexeme
        """
self
s
None