def get_block_diff(block):
    """Returns a list of triplets of the form (ea, orig, new). Checks for diffs
    in block level using the instrs and rinstrs (=reordered) lists."""

    orig_bytes = ''.join([i.bytes for i in block.instrs])
    reor_bytes = ''.join([i.bytes for i in block.rinstrs])
    diff = []

    for i, (orig, new) in enumerate(zip(orig_bytes, reor_bytes)):
        if orig != new:
            diff.append((block.begin + i, orig, new))

    return diff