CloneSet13


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24220.953statement_seq[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1242935
InclusionConstraintGraph/Graph.h
2242959
InclusionConstraintGraph/Graph.h
Clone Instance
1
Line Count
24
Source Line
2935
Source File
InclusionConstraintGraph/Graph.h

                                while (file[position] != L'-') {
                                        // get target node
                                        std::size_t target;
                                        GetNumber(target);
                                        // skip separator
                                        SkipCharacter(L':');
                                        // get source node
                                        std::size_t source;
                                        GetNumber(source);
                                        // skip newline
                                        SkipNewline();
                                        // remember constraint
                                        if (!read_assignments.m_assignments_to_dereferenced_targets_from_sources.IsInOrElseAdd(map_node_number_to_node[target].node,map_node_number_to_node[source].node)) {
                                                m_assignments_to_dereferenced_targets_from_sources.Append(file_translation_unit, map_node_number_to_node[target].node, map_node_number_to_node[source].node);
                                                                                                                                                                                                           }
                                        else   {
                                                #if 1 // needed to write back constraints
                                                        m_assignments_to_dereferenced_targets_from_sources.Append(file_translation_unit, map_node_number_to_node[target].node, map_node_number_to_node[source].node);
                                                        m_assignments_to_dereferenced_targets_from_sources[m_assignments_to_dereferenced_targets_from_sources.Size() -1].SetIsDuplicate();
                                                #endif
                                               }
                                                               }
                                // read constraints target=*source
                                SkipText(L"-- target=*source"); SkipNewline();


Clone Instance
2
Line Count
24
Source Line
2959
Source File
InclusionConstraintGraph/Graph.h

                                while (file[position] != L'-') {
                                        // get target node
                                        std::size_t target;
                                        GetNumber(target);
                                        // skip separator
                                        SkipCharacter(L':');
                                        // get source node
                                        std::size_t source;
                                        GetNumber(source);
                                        // skip newline
                                        SkipNewline();
                                        // remember constraint
                                        if (!read_assignments.m_assignments_to_targets_from_dereferenced_sources.IsInOrElseAdd(map_node_number_to_node[target].node,map_node_number_to_node[source].node)) {
                                                m_assignments_to_targets_from_dereferenced_sources.Append(file_translation_unit, map_node_number_to_node[target].node, map_node_number_to_node[source].node);
                                                                                                                                                                                                           }
                                        else   {
                                                #if 1 // needed to write back constraints
                                                        m_assignments_to_targets_from_dereferenced_sources.Append(file_translation_unit, map_node_number_to_node[target].node, map_node_number_to_node[source].node);
                                                        m_assignments_to_targets_from_dereferenced_sources[m_assignments_to_targets_from_dereferenced_sources.Size() -1].SetIsDuplicate();
                                                #endif
                                               }
                                                               }
                                // read constraints target=(*source).field
                                SkipText(L"-- target=(*source).field"); SkipNewline();


Clone AbstractionParameter Count: 2Parameter Bindings

while (file[position] != L'-')
  {
    // get target node
    std::size_t target;
    GetNumber(target);
    // skip separator
    SkipCharacter(L':');
    // get source node
    std::size_t source;
    GetNumber(source);
    // skip newline
    SkipNewline();
    // remember constraint
    if (!read_assignments.[[#variablea8970a0]].IsInOrElseAdd(map_node_number_to_node[target].node, map_node_number_to_node[source].node))
      {
        [[#variablea8970a0]].Append(file_translation_unit, map_node_number_to_node[target].node, map_node_number_to_node[source].node);
      }
    else
      {
        #if 1 // needed to write back constraints
          [[#variablea8970a0]].Append(file_translation_unit, map_node_number_to_node[target].node, map_node_number_to_node[source].node);
          [[#variablea8970a0]][[[#variablea8970a0]].Size() - 1].SetIsDuplicate();
        #endif
      }
  }
// read constraints target=(*source).field
// read constraints target=*source
SkipText([[#variablea892760]]);
SkipNewline();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a8970a0]]
m_assignments_to_targets_from_dereferenced_sources 
12[[#a8970a0]]
m_assignments_to_dereferenced_targets_from_sources 
21[[#a892760]]
L"-- target=(*source).field" 
22[[#a892760]]
L"-- target=*source"