def infer_operands_size(operands):
    size = None

    for oprnd in operands:
        if oprnd.size:
            size = oprnd.size
            break

    if size:
        for oprnd in operands:
            if not oprnd.size:
                oprnd.size = size
    else:
        for oprnd in operands:
            if isinstance(oprnd, X86ImmediateOperand) and not oprnd.size:
                oprnd.size = arch_info.architecture_size
Infer x86 instruction operand size based on other operands.
dataset/ETHPy150Open programa-stic/barf-project/barf/barf/arch/x86/x86parser.py/infer_operands_size