def METHOD_NAME(datas):
    if not allEqual([d[:2] for d in datas]):
        raise MergeError("instruction or line specifications differ")
    elif [d for d in datas if len(d)!=numEvents+2]:
        raise MergeError("statistics differ in event counts")
    result = [datas[0][0],datas[0][1]]
    for i,ev in enumerate(events):
        s = sum([d[i+2] for d in datas])
        if ev=='Icov':
            result.append(max([d[i+2] for d in datas])) # true iff any are non-zero
        elif ev=='Iuncov':
            result.append(min([d[i+2] for d in datas])) # true iff any are non-zero
        else:
            result.append(s)
    return result