LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/sparse.cpp
// Function: SparseIndex::print()
void SparseIndex::print() {
    cout << "----sparse index info----" << endl;

    cout << "indptr: ";
    for(auto i: indptr) {
        cout << i << " ";
    } 
    cout << endl;

    
    cout << "indices: ";
    for(auto i: indices) {
        cout << i << " ";
    } 
    cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x605f(%rip), %rbx      # 0xbfd0
leaq 0x2238(%rip), %rsi      # 0x81b0
movl $0x19, %edx
movq %rbx, %rdi
callq 0x3220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
leaq 0x2217(%rip), %rsi      # 0x81ca
movl $0x8, %edx
movq %rbx, %rdi
callq 0x3220
movq 0x18(%r14), %r13
movq 0x20(%r14), %rbp
cmpq %rbp, %r13
je 0x6000
movq 0x5ffc(%rip), %r15      # 0xbfd0
leaq 0x21f6(%rip), %r12      # 0x81d1
movl (%r13), %esi
movq %r15, %rdi
callq 0x3350
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x3220
addq $0x4, %r13
cmpq %rbp, %r13
jne 0x5fdb
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
leaq 0x21a5(%rip), %rsi      # 0x81d3
movl $0x9, %edx
movq %rbx, %rdi
callq 0x3220
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0x607a
movq 0x5f82(%rip), %r14      # 0xbfd0
leaq 0x217c(%rip), %r15      # 0x81d1
movl (%r12), %esi
movq %r14, %rdi
callq 0x3350
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3220
addq $0x4, %r12
cmpq %r13, %r12
jne 0x6055
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3180
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: Matmul::forward(bool)
void Matmul::forward(bool training) {
    z->zero();
#pragma omp parallel for schedule(static)
    for(int i = 0; i < m; i++) {
        for(int j = 0; j < n; j++) {
#ifdef SIMD
#pragma omp simd
#endif
            for(int k = 0; k < l; k++) {
                z->data[i * l + k] += x->data[i * n + j] * y->data[j * l + k];
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x6d74
movq %rbx, 0x8(%rsp)
movslq 0x20(%rbx), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jle 0x61ac
movq 0x8(%rsp), %rax
movl 0x24(%rax), %ecx
movl 0x28(%rax), %edx
leaq (,%rdx,4), %rsi
movq $0x0, (%rsp)
xorl %r8d, %r8d
testl %ecx, %ecx
jle 0x6194
movl (%rsp), %r9d
shlq $0x2, %r9
movq 0x8(%rsp), %rax
movq 0x8(%rax), %r10
movq 0x10(%rax), %r11
movq %r8, %r14
imulq %rcx, %r14
movq 0x18(%rax), %r15
shlq $0x2, %r14
xorl %r12d, %r12d
xorl %r13d, %r13d
testl %edx, %edx
jle 0x6189
movq (%r10), %rbp
addq %r14, %rbp
movq (%r15), %rax
addq %r9, %rax
movq (%r11), %rbx
addq %r12, %rbx
xorl %edi, %edi
movss (%rbp,%r13,4), %xmm0
mulss (%rbx,%rdi,4), %xmm0
addss (%rax,%rdi,4), %xmm0
movss %xmm0, (%rax,%rdi,4)
incq %rdi
cmpq %rdi, %rdx
jne 0x616b
incq %r13
addq %rsi, %r12
cmpq %rcx, %r13
jne 0x6153
incq %r8
movq (%rsp), %rax
addl %edx, %eax
movq %rax, (%rsp)
cmpq 0x10(%rsp), %r8
jne 0x6125
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: Matmul::backward()
void Matmul::backward() {
    x->zero_grad();
    y->zero_grad();
#pragma omp parallel for schedule(static)
    for(int i =0; i < m; i++) {
        for(int j = 0; j < n; j++) {
            float tmp = 0;
#ifdef SIMD
#pragma omp simd reduction(+:tmp)
#endif
            for(int k = 0; k < l; k++) {
                tmp += z->grad[i * l + k] * y->data[j * l + k];
#ifdef OMP
                b->local_grad[omp_get_thread_num()][j * l + k] += z->grad[i * l + k] * y->data[j * l + k];
#else 
                y->grad[j * l + k] += z->grad[i * l + k] * x->data[i * n + j];
#endif
            }
            x->grad[i * n + j] = tmp;
        }
#ifdef OMP
#ifdef SIMD
#pragma omp parallel for simd schedule(static)
#else
#pragma omp parallel for schedule(static)
#endif
        for(int i = 0; i < b->grad.size();i++) {
            for(int thread = 0; thread < omp_get_num_threads(); thread++) {
                b->grad[i] += b->local_grad[thread][i];
            }
        }
#endif
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x6d9c
movq 0x10(%rbx), %rdi
callq 0x6d9c
movq %rbx, 0x10(%rsp)
movslq 0x20(%rbx), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
jle 0x62f9
movq 0x10(%rsp), %rax
movl 0x24(%rax), %ecx
movl 0x28(%rax), %edx
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
leaq (,%rdx,4), %rdi
movq $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
testl %ecx, %ecx
jle 0x62d7
movl 0x8(%rsp), %r10d
shlq $0x2, %r10
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq 0x10(%rax), %r15
movq (%rsp), %r12
imulq %rcx, %r12
movq 0x18(%rsp), %rax
movq 0x18(%rax), %r13
xorl %ebp, %ebp
xorl %esi, %esi
leaq (%r12,%rsi), %rax
testl %edx, %edx
jle 0x62c2
movq 0x28(%rsp), %r8
movq (%r8), %rbx
movq 0x30(%rsp), %r8
movq 0x18(%r8), %r8
addq %r10, %r8
movq 0x18(%r15), %r9
addq %rbp, %r9
movq (%r15), %r11
addq %rbp, %r11
xorps %xmm0, %xmm0
xorl %r14d, %r14d
movss (%r8,%r14,4), %xmm1
movss (%r11,%r14,4), %xmm2
mulss %xmm1, %xmm2
mulss (%rbx,%rax,4), %xmm1
addss (%r9,%r14,4), %xmm1
addss %xmm2, %xmm0
movss %xmm1, (%r9,%r14,4)
incq %r14
cmpq %r14, %rdx
jne 0x6293
jmp 0x62c5
xorps %xmm0, %xmm0
movss %xmm0, (%r13,%rax,4)
incq %rsi
addq %rdi, %rbp
cmpq %rcx, %rsi
jne 0x6264
movq (%rsp), %rsi
incq %rsi
movq 0x8(%rsp), %rax
addl %edx, %eax
movq %rax, 0x8(%rsp)
movq %rsi, (%rsp)
cmpq 0x20(%rsp), %rsi
jne 0x6223
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: SparseMatmul::forward(bool)
void SparseMatmul::forward(bool training) {
    z->zero();
    
    for(int i = 0; i < sp->indptr.size() - 1; i++) {
        for(int jj = sp->indptr[i]; jj < sp->indptr[i + 1]; jj++) {
            int j = sp->indices[jj];  // get the dst vertex 
            for(int k = 0; k < l; k++) {
                z->data[i * l + k] += x->data[jj] * y->data[j * l + k];
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x6d74
movq 0x30(%rbx), %rax
movq 0x18(%rax), %rcx
movq %rax, 0x10(%rsp)
movq 0x20(%rax), %rax
movq %rcx, 0x8(%rsp)
subq %rcx, %rax
sarq $0x2, %rax
decq %rax
movq %rax, 0x20(%rsp)
je 0x6422
movl 0x28(%rbx), %esi
movslq %esi, %rcx
movq 0x8(%rsp), %rax
movl (%rax), %r8d
shlq $0x2, %rcx
movq %rcx, 0x18(%rsp)
xorl %r9d, %r9d
xorl %r10d, %r10d
movl %r8d, %eax
movq 0x8(%rsp), %rcx
movl 0x4(%rcx,%r10,4), %r8d
cmpl %r8d, %eax
jge 0x640f
movslq %r8d, %r11
movq 0x10(%rsp), %rcx
movq (%rcx), %r14
movq 0x8(%rbx), %r15
movq 0x10(%rbx), %r12
movq 0x18(%rbx), %r13
movslq %eax, %rbp
testl %esi, %esi
jle 0x6407
movslq (%r14,%rbp,4), %rcx
movslq %esi, %rax
imulq %rcx, %rax
shlq $0x2, %rax
addq (%r12), %rax
movq (%r15), %rcx
movq (%r13), %rdi
addq %r9, %rdi
xorl %edx, %edx
movss (%rcx,%rbp,4), %xmm0
mulss (%rax,%rdx,4), %xmm0
addss (%rdi,%rdx,4), %xmm0
movss %xmm0, (%rdi,%rdx,4)
incq %rdx
cmpq %rdx, %rsi
jne 0x63eb
incq %rbp
cmpq %r11, %rbp
jne 0x63c8
incq %r10
addq 0x18(%rsp), %r9
cmpq 0x20(%rsp), %r10
jne 0x639c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: SparseMatmul::backward()
void SparseMatmul::backward() {
    y->zero_grad();

    for(int i = 0; i < sp->indptr.size() - 1; i++) {
        for(int jj = sp->indptr[i]; jj < sp->indptr[i + 1]; jj++) {
            int j = sp->indices[jj];
            for(int k = 0; k < l; k++) {
                y->grad[j * l + k] += z->grad[i * l + k] * x->data[jj];
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x6d9c
movq 0x30(%rbx), %rax
movq 0x18(%rax), %rcx
movq %rax, 0x10(%rsp)
movq 0x20(%rax), %rax
movq %rcx, 0x8(%rsp)
subq %rcx, %rax
sarq $0x2, %rax
decq %rax
movq %rax, 0x20(%rsp)
je 0x651b
movl 0x28(%rbx), %esi
movslq %esi, %rcx
movq 0x8(%rsp), %rax
movl (%rax), %r8d
shlq $0x2, %rcx
movq %rcx, 0x18(%rsp)
xorl %r9d, %r9d
xorl %r10d, %r10d
movl %r8d, %eax
movq 0x8(%rsp), %rcx
movl 0x4(%rcx,%r10,4), %r8d
cmpl %r8d, %eax
jge 0x6508
movslq %r8d, %r11
movq 0x10(%rsp), %rcx
movq (%rcx), %r14
movq 0x18(%rbx), %r15
movq 0x8(%rbx), %r12
movq 0x10(%rbx), %r13
movslq %eax, %rbp
testl %esi, %esi
jle 0x6500
movslq (%r14,%rbp,4), %rcx
movslq %esi, %rax
imulq %rcx, %rax
shlq $0x2, %rax
addq 0x18(%r13), %rax
movq (%r12), %rcx
movq 0x18(%r15), %rdi
addq %r9, %rdi
xorl %edx, %edx
movss (%rdi,%rdx,4), %xmm0
mulss (%rcx,%rbp,4), %xmm0
addss (%rax,%rdx,4), %xmm0
movss %xmm0, (%rax,%rdx,4)
incq %rdx
cmpq %rdx, %rsi
jne 0x64e4
incq %rbp
cmpq %r11, %rbp
jne 0x64c0
incq %r10
addq 0x18(%rsp), %r9
cmpq 0x20(%rsp), %r10
jne 0x6494
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: GraphSum::forward(bool)
void GraphSum::forward(bool training) {
    out->zero();
    for(int src = 0; src < graph->indptr.size() - 1; src++) {
        for(int i = graph->indptr[src]; i < graph->indptr[src + 1]; i++) {
            int dst = graph->indices[i];
            float coef = 1.0 / sqrtf(
                (graph->indptr[src + 1] - graph->indptr[src]) * (graph->indptr[dst + 1] - graph->indptr[dst])
            );

            for(int j = 0; j < dim; j++) {
                out->data[src*dim + j] += coef * in->data[dst * dim + j];
            }
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x6d74
movq 0x18(%rbx), %rcx
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rdx
subq %rax, %rdx
cmpq $0x4, %rdx
je 0x6649
xorl %r14d, %r14d
xorps %xmm2, %xmm2
movq %r14, %r15
movslq (%rax,%r14,4), %r12
incq %r14
movl 0x4(%rax,%r15,4), %edx
cmpl %edx, %r12d
jge 0x6632
movq (%rcx), %rcx
subl (%rax,%r15,4), %edx
movslq (%rcx,%r12,4), %r13
movl 0x4(%rax,%r13,4), %ecx
subl (%rax,%r13,4), %ecx
imull %edx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
ucomiss %xmm2, %xmm0
jb 0x65bb
sqrtss %xmm0, %xmm0
jmp 0x65c3
callq 0x3380
xorps %xmm2, %xmm2
movslq 0x20(%rbx), %rax
testq %rax, %rax
jle 0x661a
movss 0x1c0c(%rip), %xmm1     # 0x81e0
divss %xmm0, %xmm1
imulq %rax, %r13
movq 0x8(%rbx), %rcx
shlq $0x2, %r13
addq (%rcx), %r13
movq 0x10(%rbx), %rdx
movl %r15d, %ecx
imull %eax, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq (%rdx), %rcx
xorl %edx, %edx
movss (%r13,%rdx,4), %xmm0
mulss %xmm1, %xmm0
addss (%rcx,%rdx,4), %xmm0
movss %xmm0, (%rcx,%rdx,4)
incq %rdx
cmpq %rdx, %rax
jne 0x65fd
incq %r12
movq 0x18(%rbx), %rcx
movq 0x18(%rcx), %rax
movslq (%rax,%r14,4), %rdx
cmpq %rdx, %r12
jl 0x6592
movq 0x20(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
decq %rdx
cmpq %r14, %rdx
ja 0x657a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: GraphSum::backward()
void GraphSum::backward() {
    in->zero_grad();
    for(int src = 0; src < graph->indptr.size() - 1; src++) {
        for(int i = graph->indptr[src]; i < graph->indptr[src + 1]; i++) {
            int dst = graph->indices[i];
            float coef = 1.0 / sqrtf(
                (graph->indptr[src + 1] - graph->indptr[src]) * (graph->indptr[dst + 1] - graph->indptr[dst])
            );

            for(int j = 0; j < dim; j++) {
                in->grad[src*dim + j] += coef * in->data[dst * dim + j];
            }
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x6d9c
movq 0x18(%rbx), %rcx
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rdx
subq %rax, %rdx
cmpq $0x4, %rdx
je 0x6754
xorl %r14d, %r14d
xorps %xmm2, %xmm2
movq %r14, %r15
movslq (%rax,%r14,4), %r12
incq %r14
movl 0x4(%rax,%r15,4), %edx
cmpl %edx, %r12d
jge 0x673d
movq (%rcx), %rcx
subl (%rax,%r15,4), %edx
movslq (%rcx,%r12,4), %r13
movl 0x4(%rax,%r13,4), %ecx
subl (%rax,%r13,4), %ecx
imull %edx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
ucomiss %xmm2, %xmm0
jb 0x66c9
sqrtss %xmm0, %xmm0
jmp 0x66d1
callq 0x3380
xorps %xmm2, %xmm2
movslq 0x20(%rbx), %rax
testq %rax, %rax
jle 0x6725
movss 0x1afe(%rip), %xmm1     # 0x81e0
movq 0x8(%rbx), %rdx
imulq %rax, %r13
shlq $0x2, %r13
addq (%rdx), %r13
divss %xmm0, %xmm1
movl %r15d, %ecx
imull %eax, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq 0x18(%rdx), %rcx
xorl %edx, %edx
movss (%r13,%rdx,4), %xmm0
mulss %xmm1, %xmm0
addss (%rcx,%rdx,4), %xmm0
movss %xmm0, (%rcx,%rdx,4)
incq %rdx
cmpq %rdx, %rax
jne 0x6708
incq %r12
movq 0x18(%rbx), %rcx
movq 0x18(%rcx), %rax
movslq (%rax,%r14,4), %rdx
cmpq %rdx, %r12
jl 0x66a0
movq 0x20(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
decq %rdx
cmpq %r14, %rdx
ja 0x6688
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: ReLU::forward(bool)
void ReLU::forward(bool training) {
    for(int i = 0; i < in->data.size(); i++) {
        bool keep = in->data[i] > 0;
        if(training) {
            mask[i] = keep;
        }
        if(!keep) {
            in->data[i] = 0;
        }
    }
}

// Assembly:
movq 0x8(%rdi), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
je 0x6a84
sarq $0x2, %rcx
movq 0x10(%rdi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %edi, %edi
xorps %xmm0, %xmm0
movss (%rax,%rdi,4), %xmm1
testb %sil, %sil
je 0x6a70
ucomiss %xmm0, %xmm1
seta (%rdx,%rdi)
ucomiss %xmm0, %xmm1
ja 0x6a7c
movl $0x0, (%rax,%rdi,4)
incq %rdi
cmpq %rdi, %rcx
jne 0x6a5f
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: Dropout::Dropout(Variable*, float)
Dropout::Dropout(Variable *in, float p): in(in), p(p) {
    if(!in->grad.empty()) {
        mask = new int[in->data.size()];
    } else {
        mask = nullptr;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x5215(%rip), %rax      # 0xbce0
movq %rax, (%rdi)
movq %rsi, 0x8(%rdi)
movss %xmm0, 0x18(%rdi)
movq 0x18(%rsi), %rax
cmpq 0x20(%rsi), %rax
je 0x6afa
movq 0x8(%rsi), %rax
subq (%rsi), %rax
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
jmp 0x6afc
xorl %eax, %eax
movq %rax, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: Dropout::forward(bool)
void Dropout::forward(bool training) {
    if(!training) return;
    const int threshold = int(p * GCN_RAND_MAX);
    float scale = 1 / (1 - p);

    for(int i = 0; i < in->data.size(); i++) {
        bool keep = int(RAND()) >= threshold;
        in->data[i] *= keep ? scale : 0;
        if(mask) {
            mask[i] = keep;
        }
    }
}

// Assembly:
testl %esi, %esi
je 0x6bea
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x8(%rax), %rcx
cmpq (%rax), %rcx
je 0x6be2
movss 0x18(%rbx), %xmm0
movss 0x167b(%rip), %xmm1     # 0x81ec
mulss %xmm0, %xmm1
cvttss2si %xmm1, %ebp
movss 0x165f(%rip), %xmm2     # 0x81e0
movaps %xmm2, %xmm1
subss %xmm0, %xmm1
divss %xmm1, %xmm2
movss %xmm2, 0xc(%rsp)
xorl %r14d, %r14d
callq 0x6ee8
movss 0xc(%rsp), %xmm0
cmpl %ebp, %eax
jge 0x6ba7
xorps %xmm0, %xmm0
movq 0x8(%rbx), %rdx
movq (%rdx), %rcx
mulss (%rcx,%r14,4), %xmm0
movss %xmm0, (%rcx,%r14,4)
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x6bcf
xorl %edi, %edi
cmpl %ebp, %eax
setge %dil
movl %edi, (%rsi,%r14,4)
incq %r14
movq 0x8(%rdx), %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq %r14, %rax
ja 0x6b95
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/module.cpp
// Function: Dropout::backward()
void Dropout::backward() {
    if(!mask) return;

    float scale = 1 / (1 - p);
    for(int i = 0; i < in->data.size(); i++) {
        in->grad[i] *= mask[i] ? scale : 0;
    }
}

// Assembly:
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x6c46
movq 0x8(%rdi), %rdx
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
je 0x6c46
movss 0x15d6(%rip), %xmm0     # 0x81e0
movaps %xmm0, %xmm1
subss 0x18(%rdi), %xmm1
divss %xmm1, %xmm0
sarq $0x2, %rcx
movq 0x18(%rdx), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
cmpl $0x0, (%rax,%rsi,4)
xorps %xmm1, %xmm1
je 0x6c34
movaps %xmm0, %xmm1
mulss (%rdx,%rsi,4), %xmm1
movss %xmm1, (%rdx,%rsi,4)
incq %rsi
cmpq %rsi, %rcx
jne 0x6c28
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/rand.cpp
// Function: xorshift128plus()
uint32_t xorshift128plus() {
    uint64_t state[2];
    state[0] = rand();
    state[1] = rand();
    uint64_t t = state[0];
    uint64_t const s = state[1];
    assert(t && s);
    state[0] = t;
    t ^= t << 23;
    t ^= t >> 17;
    t ^= s ^ (s >> 26);
    state[1] = t;
    uint32_t res = (t + s) & 0x7fffffff;
    return res;
}

// Assembly:
pushq %rbx
callq 0x30b0
movl %eax, %ebx
callq 0x30b0
testl %ebx, %ebx
je 0x6f2a
testl %eax, %eax
je 0x6f2a
movslq %eax, %rdx
movslq %ebx, %rsi
movq %rsi, %rcx
shlq $0x17, %rcx
xorq %rsi, %rcx
movq %rcx, %rsi
shrq $0x11, %rsi
shrq $0x1a, %rdx
xorl %eax, %edx
xorl %edx, %ecx
xorl %esi, %ecx
addl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, %eax
popq %rbx
retq
leaq 0x1324(%rip), %rdi      # 0x8255
leaq 0x1324(%rip), %rsi      # 0x825c
leaq 0x132a(%rip), %rcx      # 0x8269
movl $0x11, %edx
callq 0x3170
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/optim.cpp
// Function: Adam::Adam(std::vector<std::pair<Variable*, bool>, std::allocator<std::pair<Variable*, bool>>>, AdamParams)
Adam::Adam(vector<pair<Variable*, bool>> vars, AdamParams params) {
    step_count = 0;
    this->params = params;
    for(auto v: vars) {
        this->adamVars.emplace_back(v.first, v.second);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x14(%rdi)
movl 0x50(%rsp), %eax
movl %eax, 0x10(%rdi)
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%rdi)
movq (%rsi), %r12
movq 0x8(%rsi), %r13
cmpq %r13, %r12
je 0x706c
movq %rdi, %rbx
addq $0x18, %rbx
leaq 0x8(%rsp), %r14
movq %rsp, %r15
movups (%r12), %xmm0
movaps %xmm0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x73f6
addq $0x10, %r12
cmpq %r13, %r12
jne 0x704c
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x46fe
movq %r14, %rdi
callq 0x3360
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/optim.cpp
// Function: Adam::step()
void Adam::step() {
    step_count++;
    float step_size = params.lr * sqrtf(1 - powf(params.beta2, step_count)) / (1 - powf(params.beta1, step_count));
    for(auto &var: adamVars) {
        for(int i = 0; i < var.size(); i++) {
            float grad = (*var.grad)[i];
            if(var.decay) {
                grad += params.weight_decay * (*var.data)[i];
            }
            var.m[i] = params.beta1 * var.m[i] + (1.0 - params.beta1) * grad;
            var.v[i] = params.beta2 * var.v[i] + (1.0 - params.beta2) * grad * grad;
            (*var.data)[i] -= step_size * var.m[i] / (sqrtf(var.v[i]) + params.eps);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x14(%rdi), %eax
incl %eax
movl %eax, 0x14(%rdi)
movss (%rdi), %xmm0
movss %xmm0, 0x4(%rsp)
movss 0x8(%rdi), %xmm0
cvtsi2ss %eax, %xmm1
callq 0x32f0
movaps %xmm0, %xmm1
movss 0x111c(%rip), %xmm0     # 0x81e0
subss %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x70d6
sqrtss %xmm0, %xmm0
jmp 0x70db
callq 0x3380
movss %xmm0, (%rsp)
movss 0x4(%rbx), %xmm0
xorps %xmm1, %xmm1
cvtsi2ssl 0x14(%rbx), %xmm1
callq 0x32f0
movq 0x18(%rbx), %r14
movq 0x20(%rbx), %r15
cmpq %r15, %r14
movss 0x4(%rsp), %xmm4
je 0x725f
mulss (%rsp), %xmm4
movss 0x10ca(%rip), %xmm1     # 0x81e0
subss %xmm0, %xmm1
divss %xmm1, %xmm4
movsd 0x11aa(%rip), %xmm5     # 0x82d0
xorps %xmm6, %xmm6
movss %xmm4, 0x4(%rsp)
movq (%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0x7252
xorl %r12d, %r12d
movq 0x8(%r14), %rcx
movq (%rcx), %rcx
movss (%rcx,%r12,4), %xmm0
cmpb $0x1, 0x40(%r14)
jne 0x716e
movss 0x10(%rbx), %xmm1
mulss (%rax,%r12,4), %xmm1
addss %xmm1, %xmm0
movss 0x4(%rbx), %xmm1
movq 0x10(%r14), %rax
xorps %xmm2, %xmm2
cvtss2sd %xmm1, %xmm2
mulss (%rax,%r12,4), %xmm1
cvtss2sd %xmm1, %xmm1
movapd %xmm5, %xmm3
subsd %xmm2, %xmm3
cvtss2sd %xmm0, %xmm0
mulsd %xmm0, %xmm3
addsd %xmm1, %xmm3
xorps %xmm1, %xmm1
cvtsd2ss %xmm3, %xmm1
movss %xmm1, (%rax,%r12,4)
movss 0x8(%rbx), %xmm1
movq 0x28(%r14), %rcx
xorps %xmm2, %xmm2
cvtss2sd %xmm1, %xmm2
mulss (%rcx,%r12,4), %xmm1
cvtss2sd %xmm1, %xmm1
movapd %xmm5, %xmm3
subsd %xmm2, %xmm3
mulsd %xmm0, %xmm3
mulsd %xmm0, %xmm3
addsd %xmm1, %xmm3
xorps %xmm0, %xmm0
cvtsd2ss %xmm3, %xmm0
movss %xmm0, (%rcx,%r12,4)
movss (%rax,%r12,4), %xmm1
mulss %xmm4, %xmm1
ucomiss %xmm6, %xmm0
jb 0x71f9
sqrtss %xmm0, %xmm0
jmp 0x7219
movss %xmm1, (%rsp)
callq 0x3380
movss (%rsp), %xmm1
xorps %xmm6, %xmm6
movsd 0x10bd(%rip), %xmm5     # 0x82d0
movss 0x4(%rsp), %xmm4
addss 0xc(%rbx), %xmm0
divss %xmm0, %xmm1
movq (%r14), %rcx
movq (%rcx), %rax
movss (%rax,%r12,4), %xmm0
subss %xmm1, %xmm0
movss %xmm0, (%rax,%r12,4)
incq %r12
movq 0x8(%rcx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r12
jl 0x714b
addq $0x48, %r14
cmpq %r15, %r14
jne 0x712f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yuang-chen[P]paraGCN/src/main.cpp
// Function: main
int main(int argc, char **argv) {
    setbuf(stdout, NULL);

    if(argc < 2) {
        cout << "gcn-* graph_dataset" << endl;
        return EXIT_FAILURE;
    }

    GCNParams params = GCNParams::get_default();
    GCNData data;
    string input_name(argv[1]);
    Parser parser(&params, &data, input_name);
    if(!parser.parse()) {
        cerr << "cannot read input: " << input_name << endl;
        exit(EXIT_FAILURE);
    }

    GCN gcn(params, &data);
    gcn.run();
    return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x820, %rsp            # imm = 0x820
movq %rsi, %rbx
movl %edi, %ebp
movq 0x4885(%rip), %rax      # 0xbfb0
movq (%rax), %rdi
xorl %esi, %esi
callq 0x3290
cmpl $0x1, %ebp
jg 0x7786
movq 0x488f(%rip), %rbx      # 0xbfd0
leaq 0xb94(%rip), %rsi       # 0x82dc
movl $0x13, %edx
movq %rbx, %rdi
callq 0x3220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3180
movl $0x1, %eax
jmp 0x78c3
leaq 0x68(%rsp), %rdi
callq 0x369c
leaq 0x90(%rsp), %rdi
movl $0xa8, %edx
xorl %esi, %esi
callq 0x3140
movq 0x8(%rbx), %rsi
leaq 0x28(%rsp), %rdi
leaq 0x1f8(%rsp), %rdx
callq 0x798a
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x7a90
leaq 0x1f8(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x90(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x5094
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x7810
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x1f8(%rsp), %rdi
callq 0x5b06
testb %al, %al
je 0x78cf
movl 0x88(%rsp), %eax
movl %eax, 0x20(%rsp)
movups 0x68(%rsp), %xmm0
movups 0x78(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x36cc
leaq 0x138(%rsp), %rdi
callq 0x4194
leaq 0x138(%rsp), %rdi
callq 0x3d1a
leaq 0x608(%rsp), %rdi
callq 0x30a0
leaq 0x400(%rsp), %rdi
callq 0x30a0
leaq 0x1f8(%rsp), %rdi
callq 0x30a0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x78b4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x90(%rsp), %rdi
callq 0x79ee
xorl %eax, %eax
addq $0x820, %rsp            # imm = 0x820
popq %rbx
popq %r14
popq %rbp
retq
movq 0x471a(%rip), %rdi      # 0xbff0
leaq 0xa13(%rip), %rsi       # 0x82f0
movl $0x13, %edx
callq 0x3220
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x46f8(%rip), %rdi      # 0xbff0
callq 0x3220
movq %rax, %rdi
callq 0x3120
movl $0x1, %edi
callq 0x3230
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x3d1a
jmp 0x794c
jmp 0x7949
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x7959
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x7959
movq %rax, %rbx
jmp 0x7959
movq %rax, %rbx
jmp 0x7974
movq %rax, %rbx
leaq 0x1f8(%rsp), %rdi
callq 0x79c8
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7974
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x90(%rsp), %rdi
callq 0x79ee
movq %rbx, %rdi
callq 0x3360
nop
// File: /workspace/github_cpp_makefile_star2_O3/roberty65[P]bServer/common/src/MemoryBuffer.cpp
// Function: MemoryBuffer::readString(char*, unsigned long)
int MemoryBuffer::readString(char *buf, size_t size)
{
	long savedRptr = rptr;
	uint32_t len = 0;

	if (readUint32(len) < 0) return - 1;
	if (rptr + len > wptr) {
		// buffer is not enough for this string
		rptr = savedRptr;
		return -1;
	}

	if (len < size) size = len;
	memcpy(buf, mbuf + rptr, size);

	rptr += len;
	return len; 
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rdi), %r12
leaq 0xc(%rsp), %rsi
movl $0x0, (%rsi)
callq 0x4894
testl %eax, %eax
js 0x473d
movq 0x8(%rbx), %rsi
movl 0xc(%rsp), %r13d
leaq (%rsi,%r13), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq 0x10(%rbx), %rcx
jg 0x4737
cmpq %r14, %r13
cmovbq %r13, %r14
addq (%rbx), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x10a0
movq 0x8(%rbx), %r12
addq %r13, %r12
movl %r13d, %eax
movq %r12, 0x8(%rbx)
jmp 0x4742
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/roberty65[P]bServer/common/src/MemoryBuffer.cpp
// Function: MemoryBuffer::writeString(char const*, unsigned long)
int MemoryBuffer::writeString(const char *buf, size_t size)
{
	if (buf == NULL) size = 0;
	else if (size == 0) size = strlen(buf) + 1;

	if (ensureCapacity(bsize + 4 + size) < 0)
		return -1;

	writeUint32((uint32_t)size);
	memcpy(mbuf + wptr, buf, size); 
	wptr += size;

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x4778
movq %rdx, %r15
testq %rdx, %rdx
jne 0x477b
movq %r14, %rdi
callq 0x1050
movq %rax, %r15
incq %r15
jmp 0x477b
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
leaq (%r15,%rax), %rcx
addq $0x4, %rcx
cmpq %rcx, %rax
jae 0x479c
leaq 0x4(%r15), %rsi
movq %rbx, %rdi
callq 0x47cc
testl %eax, %eax
js 0x47c5
movq %rbx, %rdi
movl %r15d, %esi
callq 0x4454
movq (%rbx), %rdi
addq 0x10(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x10a0
addq %r15, 0x10(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x47bf
// File: /workspace/github_cpp_makefile_star2_O3/roberty65[P]bServer/common/src/MemoryBuffer.cpp
// Function: MemoryBuffer::resize(unsigned long)
int MemoryBuffer::resize(size_t added)
{
	size_t nsize = bsize + added, n = 1;
	if (nsize < bsize) return -1;	// overflow

	if (nsize >= (((size_t)1) << (8 * sizeof(size_t) - 1))) n = nsize;
	else while (n < nsize) n = n << 1;
	
	unsigned char *nbuf = new (std::nothrow)unsigned char[n];
	if (nbuf == NULL) return -1;

	if (mbuf != NULL) {
		// copy old data, release it when need 
		memcpy(nbuf, mbuf, wptr);
		if (autoDelete) delete[] mbuf;
	}

	mbuf = nbuf;
	bsize = n;
	autoDelete = true;
	
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
addq 0x18(%rdi), %rsi
jb 0x4842
movq %rdi, %rbx
js 0x47f6
movl $0x1, %eax
movq %rax, %r14
addq %rax, %rax
cmpq %rsi, %r14
jb 0x47e9
jmp 0x47f9
movq %rsi, %r14
movq 0x27c0(%rip), %rsi      # 0x6fc0
movq %r14, %rdi
callq 0x1140
testq %rax, %rax
je 0x4842
movq %rax, %r15
movq (%rbx), %r12
testq %r12, %r12
je 0x4835
movq 0x10(%rbx), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x10a0
cmpb $0x1, 0x20(%rbx)
jne 0x4835
movq %r12, %rdi
callq 0x1120
movq %r15, (%rbx)
movq %r14, 0x18(%rbx)
movb $0x1, 0x20(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/roberty65[P]bServer/common/src/MemoryBuffer.cpp
// Function: MemoryBuffer::data(unsigned char*, unsigned long, bool)
unsigned char *MemoryBuffer::data(unsigned char *_buf, size_t _size, bool _autoDelete)
{
	if (mbuf != NULL && autoDelete) delete[] mbuf;

	mbuf = _buf;
	bsize = _size;
	autoDelete = _autoDelete;

	return mbuf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x4876
cmpb $0x1, 0x20(%r12)
jne 0x4876
callq 0x1120
movq %r14, (%r12)
movq %r15, 0x18(%r12)
movb %bl, 0x20(%r12)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/RanUnif.cpp
// Function: RanUnif(long*)
FTYPE RanUnif( long *s )
{
  // uniform random number generator
  long   ix, k1;
  FTYPE dRes;
  
  ix = *s;
  *s = ix+1;
  ix *= 1513517L;
	ix %= 2147483647L;
  k1 = ix/127773L;
  ix = 16807L*( ix - k1*127773L ) - k1 * 2836L;
  if (ix < 0) ix = ix + 2147483647L;
  //*s   = ix;
  dRes = (ix * 4.656612875e-10);
  return (dRes);
  
}

// Assembly:
movq (%rdi), %rsi
imulq $0x17182d, %rsi, %rcx   # imm = 0x17182D
movabsq $-0x7ffffffefffffffd, %rdx # imm = 0x8000000100000003
movq %rcx, %rax
imulq %rdx
addq %rcx, %rdx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x1e, %rdx
addq %rax, %rdx
movq %rdx, %rax
shlq $0x1f, %rax
subq %rax, %rdx
addq %rcx, %rdx
movslq %edx, %rax
imulq $-0x7cb1f4a1, %rax, %rcx # imm = 0x834E0B5F
shrq $0x20, %rcx
addl %ecx, %eax
movl %eax, %ecx
shrl $0x1f, %ecx
sarl $0x10, %eax
addl %ecx, %eax
cltq
imulq $-0x1f31d, %rax, %rcx   # imm = 0xFFFE0CE3
addq %rdx, %rcx
imulq $0x41a7, %rcx, %rcx     # imm = 0x41A7
imulq $-0xb14, %rax, %rax     # imm = 0xF4EC
leaq (%rcx,%rax), %rdx
addq $0x7fffffff, %rdx       # imm = 0x7FFFFFFF
addq %rax, %rcx
cmovnsq %rcx, %rdx
leaq 0x1(%rsi), %rax
cvtsi2sd %rdx, %xmm0
movq %rax, (%rdi)
mulsd 0x1b52(%rip), %xmm0     # 0x30d0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/nr_routines.c
// Function: nrerror(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void nrerror(std::string error_text )
{
  fprintf(stderr,"Numerical Recipes run-time error...\n");
  fprintf(stderr,"%s\n",error_text.c_str());
  fprintf(stderr,"...now exiting to system...\n");
  exit(1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x3a4a(%rip), %r14      # 0x4fd8
movq (%r14), %rcx
leaq 0x1b40(%rip), %rdi      # 0x30d8
movl $0x24, %esi
movl $0x1, %edx
callq 0x1170
movq (%r14), %rdi
movq (%rbx), %rdx
leaq 0x1b49(%rip), %rsi      # 0x30fd
xorl %eax, %eax
callq 0x1110
movq (%r14), %rcx
leaq 0x1b3c(%rip), %rdi      # 0x3101
movl $0x1c, %esi
movl $0x1, %edx
callq 0x1170
movl $0x1, %edi
callq 0x10e0
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/HJM_SimPath_Forward_Blocking.cpp
// Function: serialB(double*, double*, int, int, int)
void serialB(FTYPE *pdZ, FTYPE *randZ, int BLOCKSIZE, int iN, int iFactors)
{
  for(int l = 0; l < iFactors; l++){
    for(int b = 0; b < BLOCKSIZE; b++){
      for (int j = 1; j < iN; j++){
        pdZ[l * iN * BLOCKSIZE + BLOCKSIZE*j + b]= CumNormalInv(randZ[l * iN * BLOCKSIZE + BLOCKSIZE * j + b]);  /* 18% of the total executition time */
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, 0x4(%rsp)
testl %r8d, %r8d
jle 0x17bf
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movl %r8d, %eax
movq %rax, 0x10(%rsp)
movl 0x4(%rsp), %eax
movl %eax, %ecx
imull %edx, %eax
movl %eax, 0x8(%rsp)
decq %rcx
movq %rcx, 0x20(%rsp)
xorl %eax, %eax
movl %edx, (%rsp)
movq %rax, 0x18(%rsp)
testl %ebp, %ebp
jle 0x17a6
xorl %eax, %eax
movl (%rsp), %ebx
movl %eax, 0xc(%rsp)
movq 0x20(%rsp), %r13
movl %ebx, %r12d
cmpl $0x2, 0x4(%rsp)
jl 0x179a
movslq %r12d, %r12
movsd (%r14,%r12,8), %xmm0
callq 0x136c
movsd %xmm0, (%r15,%r12,8)
addl %ebp, %r12d
decq %r13
jne 0x177e
movl 0xc(%rsp), %eax
incl %eax
incl %ebx
cmpl %ebp, %eax
jne 0x176b
movq 0x18(%rsp), %rax
incq %rax
movl (%rsp), %ecx
addl 0x8(%rsp), %ecx
movl %ecx, (%rsp)
cmpq 0x10(%rsp), %rax
jne 0x175d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/HJM.cpp
// Function: HJM_Yield_to_Forward(double*, int, double*)
int HJM_Yield_to_Forward (FTYPE *pdForward,	//Forward curve to be outputted
    int iN,				//Number of time-steps
    FTYPE *pdYield)		//Input yield curve 
{
  int i;
  pdForward[0] = pdYield[0];
  for(i = 1; i < iN; i++) pdForward[i] = (i + 1) * pdYield[i] - i * pdYield[i - 1];

  return 1;
}

// Assembly:
movsd (%rdx), %xmm0
movsd %xmm0, (%rdi)
cmpl $0x2, %esi
jl 0x1b41
movl %esi, %eax
movl $0x1, %esi
movl $0x2, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
mulsd -0x8(%rdx,%rsi,8), %xmm1
mulsd (%rdx,%rsi,8), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rdi,%rsi,8)
leaq 0x1(%rsi), %r8
incl %ecx
movq %r8, %rsi
cmpq %r8, %rax
jne 0x1b11
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/HJM.cpp
// Function: HJM_Drifts(double*, double*, int, int, double, double*)
int HJM_Drifts(FTYPE *pdTotalDrift,	//Output vector that stores the total drift correction for each maturity
    FTYPE *ppdDrifts,		//Output matrix that stores drift correction for each factor for each maturity
    int iN, 
    int iFactors,
    FTYPE dYears,
    FTYPE *ppdFactors)		//Input factor volatilities
{
  //This function computes drift corrections required for each factor for each maturity based on given factor volatilities

  int i, j, l;
  FTYPE ddelt = (FTYPE)(dYears/iN);
  FTYPE dSumVol;

  //computation of factor drifts for shortest maturity
  for (i = 0; i < iFactors; i++)
    ppdDrifts[i * (iN - 1)] = 0.5 * ddelt * (ppdFactors[i * (iN - 1)]) * (ppdFactors[i * (iN - 1)]);

  //computation of factor drifts for other maturities
  for (i = 0; i < iFactors;i++)
    for (j = 1; j < iN - 1; j++)
    {
      ppdDrifts[i * (iN - 1) + j] = 0;
      for(l = 0; l < j; l++) ppdDrifts[i * (iN - 1) + j] -= ppdDrifts[i * (iN - 1) + l];

      dSumVol=0;
      for(l = 0; l <= j; l++) dSumVol += ppdFactors[i * (iN - 1) + l];

      ppdDrifts[i * (iN - 1) + j] += 0.5 * ddelt * dSumVol * dSumVol;
    }

  //computation of total drifts for all maturities
  for(i = 0; i < iN - 1; i++)
  {
    pdTotalDrift[i]=0;
    for(j = 0; j < iFactors; j++) pdTotalDrift[i] += ppdDrifts[j * (iN - 1) + i];
  }

  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %eax
testl %ecx, %ecx
jle 0x1c3f
cvtsi2sd %edx, %xmm1
divsd %xmm1, %xmm0
mulsd 0x161d(%rip), %xmm0     # 0x3188
movslq %edx, %r9
leaq -0x8(,%r9,8), %r9
xorl %r10d, %r10d
movq %rax, %r11
movsd (%r8,%r10), %xmm1
movapd %xmm0, %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm2
movsd %xmm2, (%rsi,%r10)
addq %r9, %r10
decq %r11
jne 0x1b7c
testl %ecx, %ecx
jle 0x1c3f
leal -0x1(%rdx), %r9d
movslq %r9d, %r10
leaq (,%r10,8), %r11
xorl %ebx, %ebx
movq %rsi, %r14
cmpl $0x3, %edx
jl 0x1c2b
movq %rbx, %r15
imulq %r10, %r15
leaq (%rsi,%r15,8), %r15
movl $0x2, %r12d
movl $0x1, %r13d
movq $0x0, (%r15,%r13,8)
xorpd %xmm1, %xmm1
xorl %ebp, %ebp
subsd (%r14,%rbp,8), %xmm1
movsd %xmm1, (%r15,%r13,8)
incq %rbp
cmpq %rbp, %r13
jne 0x1be2
xorpd %xmm2, %xmm2
xorl %ebp, %ebp
addsd (%r8,%rbp,8), %xmm2
incq %rbp
cmpq %rbp, %r12
jne 0x1bfc
movapd %xmm0, %xmm3
mulsd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm1, %xmm3
movsd %xmm3, (%r15,%r13,8)
incq %r13
incq %r12
cmpq %r9, %r13
jne 0x1bd4
incq %rbx
addq %r11, %r14
addq %r11, %r8
cmpq %rax, %rbx
jne 0x1bb8
jmp 0x1c43
leal -0x1(%rdx), %r9d
cmpl $0x2, %edx
jl 0x1c8a
movslq %r9d, %rdx
movl %edx, %r8d
shlq $0x3, %rdx
xorl %r9d, %r9d
movq $0x0, (%rdi,%r9,8)
testl %ecx, %ecx
jle 0x1c7e
xorpd %xmm0, %xmm0
movq %rax, %r10
movq %rsi, %r11
addsd (%r11), %xmm0
movsd %xmm0, (%rdi,%r9,8)
addq %rdx, %r11
decq %r10
jne 0x1c6b
incq %r9
addq $0x8, %rsi
cmpq %r8, %r9
jne 0x1c55
movl $0x1, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/HJM.cpp
// Function: Discount_Factors_Blocking(double*, int, double, double*, int, double*)
int Discount_Factors_Blocking(FTYPE *pdDiscountFactors, 
    int iN, 
    FTYPE dYears, 
    FTYPE *pdRatePath,
    int BLOCKSIZE,
		FTYPE *pdexpRes) {
  int i, j, b;
  FTYPE ddelt = (FTYPE)(dYears/iN); //HJM time-step length

  //precompute the exponientials
  for (j = 0; j < (iN - 1) * BLOCKSIZE; j++) pdexpRes[j] = -pdRatePath[j] * ddelt;
  for (j = 0; j < (iN - 1) * BLOCKSIZE; j++) pdexpRes[j] = exp(pdexpRes[j]);

  //initializing the discount factor vector
  for (i = 0; i < iN * BLOCKSIZE; i++) pdDiscountFactors[i] = 1.0;

  for (i = 1; i < iN; i++){
    for (b = 0; b < BLOCKSIZE; b++){
      for (j = 0; j < i; j++){
        pdDiscountFactors[i * BLOCKSIZE + b] *= pdexpRes[j * BLOCKSIZE + b];
      }
    }
  } 

  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %ecx, %ebp
movl %esi, %r15d
movq %rdi, %r14
leal -0x1(%r15), %eax
imull %ecx, %eax
testl %eax, %eax
jle 0x1d0b
cvtsi2sd %r15d, %xmm1
divsd %xmm1, %xmm0
movl %eax, %r12d
xorl %ecx, %ecx
movapd 0x13ef(%rip), %xmm1     # 0x30c0
movsd (%rdx,%rcx,8), %xmm2
xorpd %xmm1, %xmm2
mulsd %xmm0, %xmm2
movsd %xmm2, (%rbx,%rcx,8)
incq %rcx
cmpq %rcx, %r12
jne 0x1cd1
testl %eax, %eax
jle 0x1d0b
xorl %r13d, %r13d
movsd (%rbx,%r13,8), %xmm0
callq 0x1150
movsd %xmm0, (%rbx,%r13,8)
incq %r13
cmpq %r13, %r12
jne 0x1cf2
movl %ebp, %eax
imull %r15d, %eax
testl %eax, %eax
jle 0x1db0
movl %eax, %ecx
incl %eax
andl $-0x2, %eax
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa 0x145b(%rip), %xmm1     # 0x3190
xorl %ecx, %ecx
movdqa 0x1461(%rip), %xmm2     # 0x31a0
pxor %xmm2, %xmm0
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
pcmpeqd %xmm3, %xmm3
movdqa 0x1457(%rip), %xmm4     # 0x31b0
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %esi
notl %esi
testb $0x1, %sil
je 0x1d8f
movq %rdx, (%r14,%rcx,8)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x1da3
movq %rdx, 0x8(%r14,%rcx,8)
addq $0x2, %rcx
paddq %xmm4, %xmm1
cmpq %rcx, %rax
jne 0x1d59
cmpl $0x2, %r15d
jl 0x1e10
movl %ebp, %eax
movl %r15d, %ecx
leaq (,%rax,8), %rdx
movl $0x1, %esi
testl %ebp, %ebp
jle 0x1e08
movq %rsi, %rdi
imulq %rax, %rdi
leaq (%r14,%rdi,8), %rdi
movq %rbx, %r8
xorl %r9d, %r9d
movsd (%rdi,%r9,8), %xmm0
movq %rsi, %r10
movq %r8, %r11
mulsd (%r11), %xmm0
movsd %xmm0, (%rdi,%r9,8)
addq %rdx, %r11
decq %r10
jne 0x1de9
incq %r9
addq $0x8, %r8
cmpq %rax, %r9
jne 0x1ddd
incq %rsi
cmpq %rcx, %rsi
jne 0x1dc8
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/HJM_Securities.cpp
// Function: parseOpt(int, char**)
void parseOpt(int argc, char** argv) {
  if(argc == 1)
  {
    fprintf(stderr," usage: \n\t-ns [number of swaptions (should be > number of threads]\n\t-sm [number of simulations]\n\t-nt [number of threads]\n"); 
    exit(1);
  }

  for (int j=1; j<argc; j++) {
    if (!strcmp("-sm", argv[j])) {NUM_TRIALS = atol(argv[++j]);}
    else if (!strcmp("-nt", argv[j])) {nThreads = atoi(argv[++j]);} 
    else if (!strcmp("-ns", argv[j])) {nSwaptions = atoi(argv[++j]);} 
    else if (!strcmp("-md", argv[j])) {MAX_DEV = atoi(argv[++j]);}
    else {
      fprintf(stderr," usage: \n\t-ns [number of swaptions (should be > number of threads]\n\t-sm [number of simulations]\n\t-nt [number of threads]\n"); 
    }
  }

  if(nSwaptions < nThreads) {
    nSwaptions = nThreads; 
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x1, %edi
je 0x27cc
jle 0x27a9
movq %rsi, %rbx
movl %edi, %ebp
movl $0x1, %r12d
leaq 0xc51(%rip), %r14       # 0x3340
movslq %r12d, %r15
movq (%rbx,%r15,8), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x1100
testl %eax, %eax
je 0x2754
leaq 0xc38(%rip), %rdi       # 0x3344
movq %r13, %rsi
callq 0x1100
testl %eax, %eax
je 0x276a
leaq 0xc29(%rip), %rdi       # 0x3348
movq %r13, %rsi
callq 0x1100
testl %eax, %eax
je 0x2780
leaq 0xc1a(%rip), %rdi       # 0x334c
movq %r13, %rsi
callq 0x1100
testl %eax, %eax
jne 0x27a2
leal 0x1(%r15), %r12d
movq 0x8(%rbx,%r15,8), %rdi
callq 0x1130
movl %eax, 0x299a(%rip)      # 0x50ec
jmp 0x2794
leal 0x1(%r15), %r12d
movq 0x8(%rbx,%r15,8), %rdi
callq 0x10d0
movl %eax, 0x2968(%rip)      # 0x50d0
jmp 0x2794
leal 0x1(%r15), %r12d
movq 0x8(%rbx,%r15,8), %rdi
callq 0x1130
movl %eax, 0x2956(%rip)      # 0x50d4
jmp 0x2794
leal 0x1(%r15), %r12d
movq 0x8(%rbx,%r15,8), %rdi
callq 0x1130
movl %eax, 0x2944(%rip)      # 0x50d8
incl %r12d
cmpl %ebp, %r12d
jl 0x26ef
jmp 0x27a9
callq 0x1190
jmp 0x2794
movl 0x2925(%rip), %eax      # 0x50d4
cmpl %eax, 0x2923(%rip)      # 0x50d8
jge 0x27bd
movl %eax, 0x291b(%rip)      # 0x50d8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x11ac
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/HJM_Securities.cpp
// Function: getFactors()
FTYPE* getFactors() {
  // initialize input dataset
  FTYPE* factors = dmatrix(iFactors, iN - 1);
  //the three rows store vol data for the three factors
  factors[0]= .01;
  factors[1]= .01;
  factors[2]= .01;
  factors[3]= .01;
  factors[4]= .01;
  factors[5]= .01;
  factors[6]= .01;
  factors[7]= .01;
  factors[8]= .01;
  factors[9]= .01;

  factors[(iN - 1)]= .009048;
  factors[(iN - 1) + 1]= .008187;
  factors[(iN - 1) + 2]= .007408;
  factors[(iN - 1) + 3]= .006703;
  factors[(iN - 1) + 4]= .006065;
  factors[(iN - 1) + 5]= .005488;
  factors[(iN - 1) + 6]= .004966;
  factors[(iN - 1) + 7]= .004493;
  factors[(iN - 1) + 8]= .004066;
  factors[(iN - 1) + 9]= .003679;

  factors[(iN - 1) * 2]= .001000;
  factors[(iN - 1) * 2 + 1]= .000750;
  factors[(iN - 1) * 2 + 2]= .000500;
  factors[(iN - 1) * 2 + 3]= .000250;
  factors[(iN - 1) * 2 + 4]= .000000;
  factors[(iN - 1) * 2 + 5]= -.000250;
  factors[(iN - 1) * 2 + 6]= -.000500;
  factors[(iN - 1) * 2 + 7]= -.000750;
  factors[(iN - 1) * 2 + 8]= -.001000;
  factors[(iN - 1) * 2 + 9]= -.001250;

  return factors;
}

// Assembly:
pushq %rax
movslq 0x290f(%rip), %rdi      # 0x50e8
movslq 0x28fc(%rip), %rsi      # 0x50dc
decq %rsi
callq 0x162f
movaps 0x9f1(%rip), %xmm0      # 0x31e0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x40(%rax)
movslq 0x28d3(%rip), %rcx      # 0x50dc
movaps 0x9e0(%rip), %xmm0      # 0x31f0
movups %xmm0, -0x8(%rax,%rcx,8)
movaps 0x9e4(%rip), %xmm0      # 0x3200
movups %xmm0, 0x8(%rax,%rcx,8)
movaps 0x9e8(%rip), %xmm0      # 0x3210
movups %xmm0, 0x18(%rax,%rcx,8)
movaps 0x9ec(%rip), %xmm0      # 0x3220
movups %xmm0, 0x28(%rax,%rcx,8)
movaps 0x9f0(%rip), %xmm0      # 0x3230
movups %xmm0, 0x38(%rax,%rcx,8)
leal (%rcx,%rcx), %edx
leal -0x2(%rcx,%rcx), %esi
movslq %esi, %rsi
movaps 0x9ea(%rip), %xmm0      # 0x3240
movups %xmm0, (%rax,%rsi,8)
movslq %edx, %rdx
movaps 0x9ec(%rip), %xmm0      # 0x3250
movups %xmm0, (%rax,%rdx,8)
leal 0x2(%rcx,%rcx), %edx
movslq %edx, %rdx
xorps %xmm0, %xmm0
movhps 0x94f(%rip), %xmm0      # xmm0 = xmm0[0,1],mem[0,1]
movups %xmm0, (%rax,%rdx,8)
leal 0x4(%rcx,%rcx), %edx
movslq %edx, %rdx
movaps 0x9d5(%rip), %xmm0      # 0x3260
movups %xmm0, (%rax,%rdx,8)
leal 0x6(%rcx,%rcx), %ecx
movslq %ecx, %rcx
movaps 0x9d3(%rip), %xmm0      # 0x3270
movups %xmm0, (%rax,%rcx,8)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O3/jc-kim[P]swaptions/timers.c
// Function: timer_init()
void timer_init() {
  int i;
  for (i = 0; i < NUM_TIMERS; i++) {
    t_start[i] = 0.0;
    t_elapsed[i] = 0.0;
    t_count[i] = 0;
  }
}

// Assembly:
pushq %rax
leaq 0x25c4(%rip), %rdi      # 0x5110
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x1040
leaq 0x27b1(%rip), %rdi      # 0x5310
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x1040
leaq 0x299e(%rip), %rdi      # 0x5510
movl $0x100, %edx            # imm = 0x100
xorl %esi, %esi
popq %rax
jmp 0x1040
// File: /workspace/github_cpp_makefile_star2_O3/davmac314[P]dinit/src/../dasynq/include/dasynq.h
// Function: dasynq::v2::dprivate::child_proc_watcher_impl<dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>, run_process(char const**, dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>&, subproc_buffer&)::sp_watcher_t>::dispatch(void*)
void dispatch(void *loop_ptr) noexcept override
    {
        EventLoop &loop = *static_cast<EventLoop *>(loop_ptr);
        loop_access::get_base_lock(loop).unlock();

        auto rearm_type = static_cast<Derived *>(this)->status_change(loop, this->watch_pid, this->child_status);

        loop_access::get_base_lock(loop).lock();

        if (rearm_type != rearm::REMOVED) {

            this->active = false;
            if (this->deleteme) {
                // We don't want a watch that is marked "deleteme" to re-arm itself.
                rearm_type = rearm::REMOVE;
            }

            loop_access::process_child_watch_rearm(loop, this, rearm_type);

            // rearm_type = loop.process??;
            post_dispatch(loop, this, rearm_type);
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x34(%rdi), %rax
movb $0x1, 0x3c(%rdi)
movq %rax, 0x40(%rdi)
andb $-0x2, 0xc(%rdi)
movq %rsi, %r14
leaq 0x20(%rdi), %rsi
leaq 0x28(%r14), %rdi
callq 0x5e9a
leaq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x4e34
movq (%rbx), %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x20(%rax)
nop