CloneSet53


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6201.000statement_seq
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1699
InclusionConstraintGraph/Node.h
26107
InclusionConstraintGraph/Node.h
Clone Instance
1
Line Count
6
Source Line
99
Source File
InclusionConstraintGraph/Node.h

                                                begin_memory = reinterpret_cast<char *>(VirtualAlloc(NULL, size_of_node *page_size,MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE));
                                                if (begin_memory == NULL) {
                                                        std::cerr << "Error: Could not allocate requested memory for nodes." << std::endl;
                                                        throw "Out of memory.";
                                                                          }
                                                end_memory = begin_memory + size_of_node *page_size;


Clone Instance
2
Line Count
6
Source Line
107
Source File
InclusionConstraintGraph/Node.h

                                        begin_memory = reinterpret_cast<char *>(VirtualAlloc(NULL, size_of_node *page_size,MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE));
                                        if (begin_memory == NULL) {
                                                std::cerr << "Error: Could not allocate requested memory for nodes." << std::endl;
                                                throw "Out of memory.";
                                                                  }
                                        end_memory = begin_memory + size_of_node *page_size;


Clone AbstractionParameter Count: 0Parameter Bindings

begin_memory = reinterpret_cast<char *>(VirtualAlloc(NULL, size_of_node * page_size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE));
if (begin_memory == NULL)
  {
    std::cerr << "Error: Could not allocate requested memory for nodes." << std::endl;
    throw "Out of memory.";
  }
end_memory = begin_memory + size_of_node * page_size;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None