CloneSet9


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
31220.980iteration_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1313254
InclusionConstraintGraph/Graph.h
2313286
InclusionConstraintGraph/Graph.h
Clone Instance
1
Line Count
31
Source Line
3254
Source File
InclusionConstraintGraph/Graph.h

                        // mark named function nodes
                        do {
                                for (MapNamedEntitiesToNodes::Iterator iterator = m_named_functions_to_nodes.Begin(); iterator != m_named_functions_to_nodes.End(); ++iterator) {
                                        Node *node = iterator.GetNode();
                                        if (node->GetNodeNumber() == 0) {
                                                ContinueIfIsNotInTranslationUnit(iterator);
                                                #if !WRITE_BACK_CACHED_POINTED_TO_LOCATIONS
                                                        // mark transitive closure for named function node
                                                        MarkTransitiveClosureOfNodes(node, number_of_nodes);
                                                #else
                                                    // mark named function node
                                                        number_of_nodes++;
                                                        node->SetNodeNumber(number_of_nodes);
                                                        node->SetAuxiliaryBorder(Node::IsNotAuxiliaryBorder);
                                                #endif
                                                if (node->HasFunctionResult()) {
                                                        node = node->GetFunctionResult();
                                                        if (node->GetNodeNumber() == 0) {
                                                                #if !WRITE_BACK_CACHED_POINTED_TO_LOCATIONS
                                                                        // mark transitive closure for named function node
                                                                        MarkTransitiveClosureOfNodes(node, number_of_nodes);
                                                                #else
                                                                        // mark named function node
                                                                        number_of_nodes++;
                                                                        node->SetNodeNumber(number_of_nodes);
                                                                        node->SetAuxiliaryBorder(Node::IsNotAuxiliaryBorder);
                                                                #endif
                                                                                        }
                                                                               }
                                                                        }
                                                                                                                                                                                }
                           }
                        while (  0);


Clone Instance
2
Line Count
31
Source Line
3286
Source File
InclusionConstraintGraph/Graph.h

                        // mark anonymous function nodes
                        do {
                                for (MapTrackingNumbersToNodes::Iterator iterator = m_anonymous_functions_to_nodes.Begin(); iterator != m_anonymous_functions_to_nodes.End(); ++iterator) {
                                        Node *node = iterator.GetNode();
                                        if (node->GetNodeNumber() == 0) {
                                                ContinueIfIsNotInTranslationUnit(iterator);
                                                #if !WRITE_BACK_CACHED_POINTED_TO_LOCATIONS
                                                        // mark transitive closure for anonymous function node
                                                        MarkTransitiveClosureOfNodes(node, number_of_nodes);
                                                #else
                                                    // mark anonymous function node
                                                        number_of_nodes++;
                                                        node->SetNodeNumber(number_of_nodes);
                                                        node->SetAuxiliaryBorder(Node::IsNotAuxiliaryBorder);
                                                #endif
                                                if (node->HasFunctionResult()) {
                                                        node = node->GetFunctionResult();
                                                        if (node->GetNodeNumber() == 0) {
                                                                #if !WRITE_BACK_CACHED_POINTED_TO_LOCATIONS
                                                                        // mark transitive closure for named function node
                                                                        MarkTransitiveClosureOfNodes(node, number_of_nodes);
                                                                #else
                                                                        // mark named function node
                                                                        number_of_nodes++;
                                                                        node->SetNodeNumber(number_of_nodes);
                                                                        node->SetAuxiliaryBorder(Node::IsNotAuxiliaryBorder);
                                                                #endif
                                                                                        }
                                                                               }
                                                                        }
                                                                                                                                                                                          }
                           }
                        while (  0);


Clone AbstractionParameter Count: 2Parameter Bindings

// mark anonymous function nodes
// mark named function nodes
do
  {
    for ([[#variablea894bc0]]::Iterator iterator = [[#variablea8947a0]].Begin(); iterator != [[#variablea8947a0]].End(); ++iterator)
      {
        Node * node = iterator.GetNode();
        if (node->GetNodeNumber() == 0)
          {
            ContinueIfIsNotInTranslationUnit(iterator);
            #if !WRITE_BACK_CACHED_POINTED_TO_LOCATIONS
              // mark transitive closure for anonymous function node
              // mark transitive closure for named function node
              MarkTransitiveClosureOfNodes(node, number_of_nodes);
            #else
              // mark anonymous function node
              // mark named function node
              number_of_nodes++;
              node->SetNodeNumber(number_of_nodes);
              node->SetAuxiliaryBorder(Node::IsNotAuxiliaryBorder);
            #endif
            if (node->HasFunctionResult())
              {
                node = node->GetFunctionResult();
                if (node->GetNodeNumber() == 0)
                  {
                    #if !WRITE_BACK_CACHED_POINTED_TO_LOCATIONS
                      // mark transitive closure for named function node
                      MarkTransitiveClosureOfNodes(node, number_of_nodes);
                    #else
                      // mark named function node
                      number_of_nodes++;
                      node->SetNodeNumber(number_of_nodes);
                      node->SetAuxiliaryBorder(Node::IsNotAuxiliaryBorder);
                    #endif
                  }
              }
          }
      }
  }
while (0);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a894bc0]]
MapTrackingNumbersToNodes 
12[[#a894bc0]]
MapNamedEntitiesToNodes 
21[[#a8947a0]]
m_anonymous_functions_to_nodes 
22[[#a8947a0]]
m_named_functions_to_nodes