CloneSet8


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25250.960labeled_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1252464
InclusionConstraintGraph/Graph.h
2252490
InclusionConstraintGraph/Graph.h
Clone Instance
1
Line Count
25
Source Line
2464
Source File
InclusionConstraintGraph/Graph.h

                                                case L'V': {
                                                        // 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.has_function_variadic_parameter = true;
                                                        // add variadic parameter
                                                        if (!map_node_number_to_node[from].node->HasFunctionVariadicParameter()) {
                                                                map_node_number_to_node[from].node->AddFunctionVariadicParameter(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   {
                                                                if (map_node_number_to_node[from].node->GetFunctionVariadicParameter() != map_node_number_to_node[to].node) {
                                                                        equivalent_nodes.resize(equivalent_nodes.size() +1,std::pair<Node *, Node *>(map_node_number_to_node[from].node->GetFunctionVariadicParameter(), map_node_number_to_node[to].node));
                                                                                                                                                                            }
                                                               }
                                                        break;
                                                           }


Clone Instance
2
Line Count
25
Source Line
2490
Source File
InclusionConstraintGraph/Graph.h

                                                case L'R': {
                                                        // 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.has_function_result = true;
                                                        // add result
                                                        if (!map_node_number_to_node[from].node->HasFunctionResult()) {
                                                                map_node_number_to_node[from].node->AddFunctionResult(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   {
                                                                if (map_node_number_to_node[from].node->GetFunctionResult() != map_node_number_to_node[to].node) {
                                                                        equivalent_nodes.resize(equivalent_nodes.size() +1,std::pair<Node *, Node *>(map_node_number_to_node[from].node->GetFunctionResult(), map_node_number_to_node[to].node));
                                                                                                                                                                 }
                                                               }
                                                        break;
                                                           }


Clone AbstractionParameter Count: 5Parameter Bindings

case [[#variablea91e940]]:
  {
    // 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.[[#variablea91e0e0]] = true;
    // add result
    // add variadic parameter
    if (!map_node_number_to_node[from].node->[[#variablea91e5c0]]())
      {
        map_node_number_to_node[from].node->[[#variablea91e900]](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
      {
        if (map_node_number_to_node[from].node->[[#variablea91e840]]() != map_node_number_to_node[to].node)
          {
            equivalent_nodes.resize(equivalent_nodes.size() + 1, std::pair<Node *, Node *>(map_node_number_to_node[from].node->[[#variablea91e840]](), map_node_number_to_node[to].node));
          }
      }
    break;
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a91e940]]
L'R' 
12[[#a91e940]]
L'V' 
21[[#a91e0e0]]
has_function_result 
22[[#a91e0e0]]
has_function_variadic_parameter 
31[[#a91e5c0]]
HasFunctionResult 
32[[#a91e5c0]]
HasFunctionVariadicParameter 
41[[#a91e900]]
AddFunctionResult 
42[[#a91e900]]
AddFunctionVariadicParameter 
51[[#a91e840]]
GetFunctionResult 
52[[#a91e840]]
GetFunctionVariadicParameter