CloneSet23


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.962selection_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1171858
InclusionConstraintGraph/Graph.h
2172249
InclusionConstraintGraph/Graph.h
Clone Instance
1
Line Count
17
Source Line
1858
Source File
InclusionConstraintGraph/Graph.h

                                                        // check for tracking number
                                                        if (file[position] == L':') {
                                                                position++;
                                                                // get tracking number
                                                                unsigned long tracking_number;
                                                                GetNumber(tracking_number);
                                                                // create temporary node
                                                                map_node_number_to_node[node_number].node = m_temporaries_to_nodes(translation_unit, tracking_number);
                                                                if (map_node_number_to_node[node_number].node == NULL) {
                                                                        map_node_number_to_node[node_number].node = Node::CreateTemporaryNode(Node::IsMarked);
                                                                        #if PRESERVE_NODE_DESCRIPTIONS
                                                                                m_temporaries_to_nodes.Add(translation_unit, tracking_number, map_node_number_to_node[node_number].node, description);
                                                                        #else
                                                                                m_temporaries_to_nodes.Add(translation_unit, tracking_number, map_node_number_to_node[node_number].node);
                                                                        #endif
                                                                                                                       }
                                                                                    }
                                                        else   {
                                                                assert(0);
                                                               }


Clone Instance
2
Line Count
17
Source Line
2249
Source File
InclusionConstraintGraph/Graph.h

                                                        // check for tracking number
                                                        if (file[position] == L':') {
                                                                position++;
                                                                // get tracking number
                                                                unsigned long tracking_number;
                                                                GetNumber(tracking_number);
                                                                // create indirect call node
                                                                map_node_number_to_node[node_number].node = m_indirect_calls_to_nodes(translation_unit, tracking_number);
                                                                if (map_node_number_to_node[node_number].node == NULL) {
                                                                        map_node_number_to_node[node_number].node = Node::CreateIndirectCallNode(Node::IsMarked);
                                                                        #if PRESERVE_NODE_DESCRIPTIONS
                                                                                m_indirect_calls_to_nodes.Add(translation_unit, tracking_number, map_node_number_to_node[node_number].node, description);
                                                                        #else
                                                                                m_indirect_calls_to_nodes.Add(translation_unit, tracking_number, map_node_number_to_node[node_number].node);
                                                                        #endif
                                                                                                                       }
                                                                                    }
                                                        else   {
                                                                assert(0);
                                                               }


Clone AbstractionParameter Count: 2Parameter Bindings

// check for tracking number
if (file[position] == L':')
  {
    position++;
    // get tracking number
    unsigned long tracking_number;
    GetNumber(tracking_number);
    // create temporary node
    // create indirect call node
    map_node_number_to_node[node_number].node = [[#variablea92d820]](translation_unit, tracking_number);
    if (map_node_number_to_node[node_number].node == NULL)
      {
        map_node_number_to_node[node_number].node = Node::[[#variablea92d800]](Node::IsMarked);
        #if PRESERVE_NODE_DESCRIPTIONS
          [[#variablea92d820]].Add(translation_unit, tracking_number, map_node_number_to_node[node_number].node, description);
        #else
          [[#variablea92d820]].Add(translation_unit, tracking_number, map_node_number_to_node[node_number].node);
        #endif
      }
  }
else
  {
    assert(0);
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a92d820]]
m_temporaries_to_nodes 
12[[#a92d820]]
m_indirect_calls_to_nodes 
21[[#a92d800]]
CreateTemporaryNode 
22[[#a92d800]]
CreateIndirectCallNode