CloneSet17


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13301.000statement_seq[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112140
InclusionConstraintGraph/SetOfNodes.h
213267
InclusionConstraintGraph/SetOfNodes.h
313334
InclusionConstraintGraph/SetOfNodes.h
Clone Instance
1
Line Count
12
Source Line
140
Source File
InclusionConstraintGraph/SetOfNodes.h

                                // multiple nodes in set
                                NodeRepresentationType *set_ptr = &*m_connections->begin();
                                std::size_t min = 0;
                                std::size_t max = m_connections->size() -1;
                                while (min < max) {
                                        std::size_t mid = (min + max) / 2;
                                        if (set_ptr[mid] < pnode_to_representation(n)) {
                                                min = mid +1;
                                                                                       }
                                        else   {
                                                max = mid;
                                               }
                                                  }
                                assert(min == max);


Clone Instance
2
Line Count
13
Source Line
267
Source File
InclusionConstraintGraph/SetOfNodes.h

                                // multiple nodes in set
                                NodeRepresentationType *set_ptr = &*m_connections->begin();
                                // search for insertion position in ordered sequence
                                std::size_t min = 0;
                                std::size_t max = m_connections->size() -1;
                                while (min < max) {
                                        std::size_t mid = (min + max) / 2;
                                        if (set_ptr[mid] < pnode_to_representation(n)) {
                                                min = mid +1;
                                                                                       }
                                        else   {
                                                max = mid;
                                               }
                                                  }
                                assert(min == max);


Clone Instance
3
Line Count
13
Source Line
334
Source File
InclusionConstraintGraph/SetOfNodes.h

                                // multiple nodes in set
                                NodeRepresentationType *set_ptr = &*m_connections->begin();
                                // search for position in ordered sequence
                                std::size_t min = 0;
                                std::size_t max = m_connections->size() -1;
                                while (min < max) {
                                        std::size_t mid = (min + max) / 2;
                                        if (set_ptr[mid] < pnode_to_representation(n)) {
                                                min = mid +1;
                                                                                       }
                                        else   {
                                                max = mid;
                                               }
                                                  }
                                assert(min == max);


Clone AbstractionParameter Count: 0Parameter Bindings

// multiple nodes in set
NodeRepresentationType * set_ptr = &*m_connections->begin();
// search for position in ordered sequence
// search for insertion position in ordered sequence
std::size_t min = 0;
std::size_t max = m_connections->size() - 1;
while (min < max)
  {
    std::size_t mid = (min + max) / 2;
    if (set_ptr[mid] < pnode_to_representation(n))
      {
        min = mid + 1;
      }
    else
      {
        max = mid;
      }
  }
assert(min == max);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None