CloneSet5


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30220.985iteration_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1303677
InclusionConstraintGraph/Graph.h
2303708
InclusionConstraintGraph/Graph.h
Clone Instance
1
Line Count
30
Source Line
3677
Source File
InclusionConstraintGraph/Graph.h

                        // mark parameters and result of marked named functions
                        do {
                                for (MapNamedEntitiesToNodes::Iterator iterator = m_named_functions_to_nodes.Begin(); iterator != m_named_functions_to_nodes.End(); ++iterator) {
                                        if (iterator.GetNode()->GetNodeNumber() != 0) {
                                                const SequenceOfNodes &parameters = iterator.GetNode()->GetFunctionParameters();
                                                for (std::size_t p=0; p <parameters.Size();p++) {
                                                        if (parameters[p]->GetNodeNumber() == 0) {
                                                                number_of_nodes++;
                                                                parameters[p]->SetNodeNumber(number_of_nodes);
                                                                parameters[p]->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                                                                                                 }
                                                                                                }
                                                if (iterator.GetNode()->HasFunctionVariadicParameter()) {
                                                        Node *variadic_parameter = iterator.GetNode()->GetFunctionVariadicParameter();
                                                        if (variadic_parameter->GetNodeNumber() == 0) {
                                                                number_of_nodes++;
                                                                variadic_parameter->SetNodeNumber(number_of_nodes);
                                                                variadic_parameter->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                                                                                                      }
                                                                                                        }
                                                if (iterator.GetNode()->HasFunctionResult()) {
                                                        Node *result = iterator.GetNode()->GetFunctionResult();
                                                        if (result->GetNodeNumber() == 0) {
                                                                number_of_nodes++;
                                                                result->SetNodeNumber(number_of_nodes);
                                                                result->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                                                                                          }
                                                                                             }
                                                                                      }
                                                                                                                                                                                }
                           }
                        while (  0);


Clone Instance
2
Line Count
30
Source Line
3708
Source File
InclusionConstraintGraph/Graph.h

                        // mark parameters and result of marked anonymous functions
                        do {
                                for (MapTrackingNumbersToNodes::Iterator iterator = m_anonymous_functions_to_nodes.Begin(); iterator != m_anonymous_functions_to_nodes.End(); ++iterator) {
                                        if (iterator.GetNode()->GetNodeNumber() != 0) {
                                                const SequenceOfNodes &parameters = iterator.GetNode()->GetFunctionParameters();
                                                for (std::size_t p=0; p <parameters.Size();p++) {
                                                        if (parameters[p]->GetNodeNumber() == 0) {
                                                                number_of_nodes++;
                                                                parameters[p]->SetNodeNumber(number_of_nodes);
                                                                parameters[p]->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                                                                                                 }
                                                                                                }
                                                if (iterator.GetNode()->HasFunctionVariadicParameter()) {
                                                        Node *variadic_parameter = iterator.GetNode()->GetFunctionVariadicParameter();
                                                        if (variadic_parameter->GetNodeNumber() == 0) {
                                                                number_of_nodes++;
                                                                variadic_parameter->SetNodeNumber(number_of_nodes);
                                                                variadic_parameter->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                                                                                                      }
                                                                                                        }
                                                if (iterator.GetNode()->HasFunctionResult()) {
                                                        Node *result = iterator.GetNode()->GetFunctionResult();
                                                        if (result->GetNodeNumber() == 0) {
                                                                number_of_nodes++;
                                                                result->SetNodeNumber(number_of_nodes);
                                                                result->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                                                                                          }
                                                                                             }
                                                                                      }
                                                                                                                                                                                          }
                           }
                        while (  0);


Clone AbstractionParameter Count: 2Parameter Bindings

// mark parameters and result of marked anonymous functions
// mark parameters and result of marked named functions
do
  {
    for ([[#variablea89a040]]::Iterator iterator = [[#variablea899f80]].Begin(); iterator != [[#variablea899f80]].End(); ++iterator)
      {
        if (iterator.GetNode()->GetNodeNumber() != 0)
          {
            const SequenceOfNodes &parameters = iterator.GetNode()->GetFunctionParameters();
            for (std::size_t p = 0; p < parameters.Size(); p++)
              {
                if (parameters[p]->GetNodeNumber() == 0)
                  {
                    number_of_nodes++;
                    parameters[p]->SetNodeNumber(number_of_nodes);
                    parameters[p]->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                  }
              }
            if (iterator.GetNode()->HasFunctionVariadicParameter())
              {
                Node * variadic_parameter = iterator.GetNode()->GetFunctionVariadicParameter();
                if (variadic_parameter->GetNodeNumber() == 0)
                  {
                    number_of_nodes++;
                    variadic_parameter->SetNodeNumber(number_of_nodes);
                    variadic_parameter->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                  }
              }
            if (iterator.GetNode()->HasFunctionResult())
              {
                Node * result = iterator.GetNode()->GetFunctionResult();
                if (result->GetNodeNumber() == 0)
                  {
                    number_of_nodes++;
                    result->SetNodeNumber(number_of_nodes);
                    result->SetAuxiliaryBorder(Node::IsAuxiliaryBorder);
                  }
              }
          }
      }
  }
while (0);
 

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