static familyOf(insts) {
    var i, j;

    var nSSE = 0;
    var nAVX = 0;
    
    for (i = 0; i < insts.length; i++) {
      const inst = insts[i];
      const ops = inst.operands;

      if (/^(VEX|XOP|EVEX)$/.test(inst.prefix)) {
        for (j = 0; j < ops.length; j++) {
          if (/^(xmm|ymm|zmm)$/.test(ops[j].reg)) {
            nAVX++;
            break;
          }
        }
      }
      else {
        for (j = 0; j < ops.length; j++) {
          if (/^(mm|xmm)$/.test(ops[j].reg)) {
            nSSE++;
            break;
          }
        }
      }
    }

    if (nSSE === insts.length) return "Sse";
    if (nAVX === insts.length) return "Avx";
    
    return "General";
  }
// Calculate a family of a group of instructions.

Calculate a family of a group of instructions.
Calculate a family of a group of instructions .
static familyOf(insts) {
    var i, j;
    var nSSE = 0;
    var nAVX = 0;
    for (i = 0; i < insts.length; i++) {
      const inst = insts[i];
      const ops = inst.operands;
      if (/^(VEX|XOP|EVEX)$/.test(inst.prefix)) {
        for (j = 0; j < ops.length; j++) {
          if (/^(xmm|ymm|zmm)$/.test(ops[j].reg)) {
            nAVX++;
            break;
          }
        }
      }
      else {
        for (j = 0; j < ops.length; j++) {
          if (/^(mm|xmm)$/.test(ops[j].reg)) {
            nSSE++;
            break;
          }
        }
      }
    }
    if (nSSE === insts.length) return "Sse";
    if (nAVX === insts.length) return "Avx";
    return "General";
  }
static familyOf ( insts ) { var i , j ; var nSSE = 0 ; var nAVX = 0 ; for ( i = 0 ; i < insts . length ; i ++ ) { const inst = insts [ i ] ; const ops = inst . operands ; if ( / ^(VEX|XOP|EVEX)$ / . test ( inst . prefix ) ) { for ( j = 0 ; j < ops . length ; j ++ ) { if ( / ^(xmm|ymm|zmm)$ / . test ( ops [ j ] . reg ) ) { nAVX ++ ; break ; } } } else { for ( j = 0 ; j < ops . length ; j ++ ) { if ( / ^(mm|xmm)$ / . test ( ops [ j ] . reg ) ) { nSSE ++ ; break ; } } } } if ( nSSE === insts . length ) return "Sse" ; if ( nAVX === insts . length ) return "Avx" ; return "General" ; }
Calculate a family of a group of instructions.
Calculate a family of a group of instructions .