CloneSet12


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24240.955labeled_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1242540
InclusionConstraintGraph/Graph.h
2242565
InclusionConstraintGraph/Graph.h
Clone Instance
1
Line Count
24
Source Line
2540
Source File
InclusionConstraintGraph/Graph.h

                                                case L'A': {
                                                        // get from node
                                                        std::size_t from;
                                                        GetNumber(from);
                                                        // skip separator
                                                        SkipCharacter(L':');
                                                        // get to node
                                                        std::size_t to;
                                                        GetNumber(to);
                                                        // skip newline
                                                        SkipNewline();
                                                        // collect statistics
                                                        map_node_number_to_node[from].statistics.explicit_parameters_or_arguments++;
                                                        // add argument
                                                        const SequenceOfNodes &arguments = map_node_number_to_node[from].node->GetIndirectCallArguments();
                                                        if (map_node_number_to_node[from].statistics.explicit_parameters_or_arguments > arguments.Size()) {
                                                                map_node_number_to_node[from].node->AddIndirectCallArgument(map_node_number_to_node[to].node);
                                                                if (map_node_number_to_node[from].node->GetOnPath() != Node::IsMarked) { // node is existing node?
                                                                        changed_on_read = true;
                                                                                                                                       }
                                                                                                                                                          }
                                                        else   {
                                                                assert(arguments[map_node_number_to_node[from].statistics.explicit_parameters_or_arguments -1] ==map_node_number_to_node[to].node);
                                                               }
                                                        break;
                                                           }


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

                                                case L'E': {
                                                        // get from node
                                                        std::size_t from;
                                                        GetNumber(from);
                                                        // skip separator
                                                        SkipCharacter(L':');
                                                        // get to node
                                                        std::size_t to;
                                                        GetNumber(to);
                                                        // skip newline
                                                        SkipNewline();
                                                        // collect statistics
                                                        map_node_number_to_node[from].statistics.explicit_parameters_or_arguments++;
                                                        // add field
                                                        const SequenceOfNodes &object_fields = map_node_number_to_node[from].node->GetObjectFields();
                                                        if (map_node_number_to_node[from].statistics.explicit_parameters_or_arguments > object_fields.Size()) {
                                                                map_node_number_to_node[from].node->AddObjectField(map_node_number_to_node[to].node);
                                                                if (map_node_number_to_node[from].node->GetOnPath() != Node::IsMarked) { // node is existing node?
                                                                        changed_on_read = true;
                                                                                                                                       }
                                                                                                                                                              }
                                                        else   {
                                                                assert(object_fields[map_node_number_to_node[from].statistics.explicit_parameters_or_arguments -1] ==map_node_number_to_node[to].node);
                                                               }
                                                        break;
                                                           }


Clone AbstractionParameter Count: 4Parameter Bindings

case [[#variablea890c60]]:
  {
    // get from node
    std::size_t from;
    GetNumber(from);
    // skip separator
    SkipCharacter(L':');
    // get to node
    std::size_t to;
    GetNumber(to);
    // skip newline
    SkipNewline();
    // collect statistics
    map_node_number_to_node[from].statistics.explicit_parameters_or_arguments++;
    // add field
    // add argument
    const SequenceOfNodes &[[#variablea890c00]] = map_node_number_to_node[from].node->[[#variablea890b80]]();
    if (map_node_number_to_node[from].statistics.explicit_parameters_or_arguments > [[#variablea890c00]].Size())
      {
        map_node_number_to_node[from].node->[[#variablea890b00]](map_node_number_to_node[to].node);
        if (map_node_number_to_node[from].node->GetOnPath() != Node::IsMarked)
          { // node is existing node?
            changed_on_read = true;
          }
      }
    else
      {
        assert([[#variablea890c00]][map_node_number_to_node[from].statistics.explicit_parameters_or_arguments - 1] == map_node_number_to_node[to].node);
      }
    break;
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a890c60]]
L'E' 
12[[#a890c60]]
L'A' 
21[[#a890c00]]
object_fields 
22[[#a890c00]]
arguments 
31[[#a890b80]]
GetObjectFields 
32[[#a890b80]]
GetIndirectCallArguments 
41[[#a890b00]]
AddObjectField 
42[[#a890b00]]
AddIndirectCallArgument