Research Article

Classifying Obstructive and Nonobstructive Code Clones of Type I Using Simplified Classification Scheme: A Case Study

Algorithm 1

Example clone. Comments and explanations removed for confidentiality reasons. Variable names were changed.
  p++ = iInt;
  p++ = 0;
  Int nLength = sizeof(parameter1) + pLen;
  memcpy(p,&nLength, sizeof(nLength));
  p += sizeof(nLength)
  if (pVar)
  
    memcpy(p, pVar, pLen);
    p += pLen;
  
  return p;