// File: /workspace/github_cpp_makefile_star2_O3/dianejdan[P]Eclat/./PatternStore.hpp
// Function: PatternStore<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::eclat(Pattern<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>*)
void eclat(Pattern<Typ> *parent){
        vector<Pattern<Typ> * > myChildren = parent->get_children(); // get children list

        for (int i = 0; i < myChildren.size(); ++i){ // loop through child in children list
            int newPats = 0; // a count to see if there are new Patterns

            for (int j = (i+1); j < myChildren.size(); ++j){ // find the "larger" child
                // perform the join of tid lists of two children
                vector<int> joinTidList = myChildren[i]->join_tid_list(myChildren[j]);
                if (joinTidList.size() >= minsup){ // check if the join tid list is larger than minsup
                    // add this new pattern as a new child of the smaller child for joining
                    add_pattern(myChildren[i], myChildren[j]->get_item(), joinTidList);
                    ++newPats; // new pattern count increases by 1
                }
            }
            if (newPats > 0)
                eclat(myChildren[i]); // if more than one new patterns, eclat the smaller child for joining
                                      // it is like a DFS of tree structure
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, -0x30(%rbp)
addq $0x38, %rsi
leaq -0x58(%rbp), %r14
movq %r14, %rdi
callq 0x65de
movq (%r14), %rdi
movq 0x8(%r14), %rax
cmpq %rdi, %rax
je 0x3d5e
movl $0x1, %r14d
xorl %edx, %edx
leaq -0xa8(%rbp), %rbx
movq %rdx, %r15
incq %rdx
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x3, %rcx
cmpq %rdx, %rcx
jbe 0x3d48
movq %rdx, -0x38(%rbp)
xorl %r12d, %r12d
movq %r14, -0x40(%rbp)
movq (%rdi,%r15,8), %rsi
movq (%rdi,%r14,8), %rdx
leaq -0x70(%rbp), %rdi
callq 0x64ce
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rax
subq %rdi, %rax
sarq $0x2, %rax
movq -0x30(%rbp), %rcx
movslq 0xc(%rcx), %rcx
cmpq %rcx, %rax
jb 0x3ced
movq -0x58(%rbp), %rax
movq (%rax,%r15,8), %r13
movq (%rax,%r14,8), %rax
leaq -0x80(%rbp), %rcx
movq %rcx, -0x90(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0x4f5a
movq %rbx, %rdi
leaq -0x70(%rbp), %rsi
callq 0x400a
movq -0x30(%rbp), %rdi
movq %r13, %rsi
leaq -0x90(%rbp), %rdx
movq %rbx, %rcx
callq 0x5c3a
movq -0xa8(%rbp), %rdi
testq %rdi, %rdi
je 0x3cca
movq -0x98(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x3ce6
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x21d0
incl %r12d
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x3cfe
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
incq %r14
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rax
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
ja 0x3c2f
testl %r12d, %r12d
jle 0x3d40
movq (%rdi,%r15,8), %rsi
movq -0x30(%rbp), %rdi
callq 0x3bc4
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %rdx
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rax
jmp 0x3d48
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %rdx
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x3, %rcx
incq %r14
cmpq %rdx, %rcx
ja 0x3c0b
testq %rdi, %rdi
je 0x3d6f
movq -0x48(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3dde
movq %rax, %rbx
jmp 0x3dab
movq %rax, %rbx
jmp 0x3dc7
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
testq %rdi, %rdi
je 0x3dab
movq -0x98(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x3dc7
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x3de1
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0x3de1
movq %rax, %rbx
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x3df6
movq -0x48(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x22c0