Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 3 | 0 | 1.000 | statement_seq[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 140 | InclusionConstraintGraph/SetOfNodes.h |
2 | 13 | 267 | InclusionConstraintGraph/SetOfNodes.h |
3 | 13 | 334 | 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); |
| ||||
// 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); |
| ||||
// 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); |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |