CloneSet76


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000compound_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11045
InclusionConstraintGraph/SequenceOfNodes.h
210118
InclusionConstraintGraph/SetOfNodes.h
Clone Instance
1
Line Count
10
Source Line
45
Source File
InclusionConstraintGraph/SequenceOfNodes.h

                                                  {
                        if (m_connections == NULL) {
                                // no node in sequence
                                return 0;
                                                   }
                        else   if ((reinterpret_cast<std::size_t>(reinterpret_cast<char *>(m_connections)) & 1) != 0) {
                                // single node in sequence
                                return 1;
                                                                                                                      }
                               else
                               {
                                // multiple nodes in sequence
                                return m_connections->size();
                               }
                                                  }


Clone Instance
2
Line Count
10
Source Line
118
Source File
InclusionConstraintGraph/SetOfNodes.h

                                                       {
                        if (m_connections == NULL) {
                                // no node in set
                                return 0;
                                                   }
                        else   if ((reinterpret_cast<std::size_t>(reinterpret_cast<char *>(m_connections)) & 1) != 0) {
                                // single node in set
                                return 1;
                                                                                                                      }
                               else
                               {
                                // multiple nodes in set
                                return m_connections->size();
                               }
                                                       }


Clone AbstractionParameter Count: 0Parameter Bindings

{
  if (m_connections == NULL)
    {
      // no node in set
      // no node in sequence
      return 0;
    }
  else
    if ((reinterpret_cast<std::size_t>(reinterpret_cast<char *>(m_connections)) & 1) != 0)
      {
        // single node in set
        // single node in sequence
        return 1;
      }
    else
      {
        // multiple nodes in set
        // multiple nodes in sequence
        return m_connections->size();
      }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None