uroboros-diversification/src/disasm/arm_process.py
def load_size(op, exp):
    """
    Return byte size of the memory load
    :param op: load operator string
    :param exp: load expression string
    :return: size of loaded data
    """
    op = op.lower()
    if op.startswith('vldr'):
        return 4 if exp.startswith('s') else 8
    if op.startswith('ldr'):
        if len(op) < 4 or op[3] == '.': return 4
        if op[3] == 'd': return 8
        if op[3] == 'h' or (op[3] == 's' and op[4] == 'h'): return 2
        return 1
    return 4

    Return byte size of the memory load
    :param op: load operator string
    :param exp: load expression string
    :return: size of loaded data
    
Return byte size of the memory load
Return byte size of the memory load
def load_size(op, exp):
    op = op.lower()
    if op.startswith('vldr'):
        return 4 if exp.startswith('s') else 8
    if op.startswith('ldr'):
        if len(op) < 4 or op[3] == '.': return 4
        if op[3] == 'd': return 8
        if op[3] == 'h' or (op[3] == 's' and op[4] == 'h'): return 2
        return 1
    return 4
def load_size ( op , exp ) : op = op . lower ( ) if op . startswith ( 'vldr' ) : return 4 if exp . startswith ( 's' ) else 8 if op . startswith ( 'ldr' ) : if len ( op ) < 4 or op [ 3 ] == '.' : return 4 if op [ 3 ] == 'd' : return 8 if op [ 3 ] == 'h' or ( op [ 3 ] == 's' and op [ 4 ] == 'h' ) : return 2 return 1 return 4
Return byte size of the memory load
Return byte size of the memory load
"""
    Return byte size of the memory load
    :param op: load operator string
    :param exp: load expression string
    :return: size of loaded data
    """
size of loaded data
size of loaded data
op
load operator string
load operator string
exp
load expression string
load expression string