CloneSet21


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23230.972labeled_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1232389
InclusionConstraintGraph/Graph.h
2232413
InclusionConstraintGraph/Graph.h
Clone Instance
1
Line Count
23
Source Line
2389
Source File
InclusionConstraintGraph/Graph.h

                                                case L'I': {
                                                        // 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.inclusion_constraints++;
                                                        // establish inclusion constraint
                                                        if (map_node_number_to_node[from].node->EstablishIncludes(map_node_number_to_node[to].node)) {
                                                                if (   (map_node_number_to_node[from].node->GetOnPath() != Node::IsMarked) // node is existing node?
                                                                       &&  (map_node_number_to_node[from].node->GetAuxiliaryBorder() != Node::IsAuxiliaryBorder) &&
                                                                           (!map_node_number_to_node[from].statistics.is_auxiliary_border))
                                                                     {
                                                                        changed_on_read = true;
                                                                     }
                                                                                                                                                     }
                                                        break;
                                                           }


Clone Instance
2
Line Count
23
Source Line
2413
Source File
InclusionConstraintGraph/Graph.h

                                                case L'L': {
                                                        // 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.pointed_to_locations++;
                                                        // establish pointed-to location
                                                        if (map_node_number_to_node[from].node->EstablishPointsTo(map_node_number_to_node[to].node)) {
                                                                if (   (map_node_number_to_node[from].node->GetOnPath() != Node::IsMarked) // node is existing node?
                                                                       &&  (map_node_number_to_node[from].node->GetAuxiliaryBorder() != Node::IsAuxiliaryBorder) &&
                                                                           (!map_node_number_to_node[from].statistics.is_auxiliary_border))
                                                                     {
                                                                        changed_on_read = true;
                                                                     }
                                                                                                                                                     }
                                                        break;
                                                           }


Clone AbstractionParameter Count: 3Parameter Bindings

case [[#variablea930920]]:
  {
    // 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.[[#variablea930760]]++;
    // establish pointed-to location
    // establish inclusion constraint
    if (map_node_number_to_node[from].node->[[#variablea930880]](map_node_number_to_node[to].node))
      {
        if ((map_node_number_to_node[from].node->GetOnPath() != Node::IsMarked) // node is existing node?
            && (map_node_number_to_node[from].node->GetAuxiliaryBorder() != Node::IsAuxiliaryBorder) && (!map_node_number_to_node[from].statistics.is_auxiliary_border))
          {
            changed_on_read = true;
          }
      }
    break;
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a930920]]
L'L' 
12[[#a930920]]
L'I' 
21[[#a930760]]
pointed_to_locations 
22[[#a930760]]
inclusion_constraints 
31[[#a930880]]
EstablishPointsTo 
32[[#a930880]]
EstablishIncludes