LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/competitor_regression.h
// Function: simple_linear_regression_stable(std::vector<double, std::allocator<double>>&)
linear_regression simple_linear_regression_stable(std::vector<double>& data){
    long double count = data.size();
    long double x_mean = 0;
    long double y_mean = 0;
    long double xx_sum = 0;
    long double xy_sum = 0;

    for(int i = 0; i < data.size(); i++){
        x_mean += data[i];
        y_mean += (long double)i;
    }
    x_mean /= count;
    y_mean /= count;

    for(int i = 0; i < data.size(); i++){
        xx_sum += std::pow<long double>((long double)data[i] - x_mean, 2);
        xy_sum += (long double)(i - y_mean) * (long double)(data[i] - x_mean);
    }

    double a = xy_sum / xx_sum;
    double b = y_mean - (a * x_mean);

    assert(a >= 0);
    return linear_regression(a,b);
}

// Assembly:
subq $0x28, %rsp
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
movq %rdx, %rcx
subq %rax, %rcx
xorl %esi, %esi
sarq $0x3, %rcx
sets %sil
movq %rcx, 0x20(%rsp)
fildll 0x20(%rsp)
leaq 0x7881(%rip), %r8       # 0xa018
fadds (%r8,%rsi,4)
fldz
fld %st(0)
cmpq %rax, %rdx
je 0x27cf
fstp %st(0)
fstp %st(0)
cmpq $0x1, %rcx
adcq $0x0, %rcx
fldz
xorl %edx, %edx
fld %st(0)
fxch %st(1)
faddl (%rax,%rdx,8)
movl %edx, 0x4(%rsp)
fxch %st(1)
fiaddl 0x4(%rsp)
incq %rdx
cmpq %rdx, %rcx
fxch %st(1)
jne 0x27b8
fdiv %st(2), %st
fxch %st(1)
fdivp %st, %st(2)
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
je 0x2826
sarq $0x3, %rcx
movq (%rdi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
fldz
xorl %esi, %esi
fld %st(0)
fld %st(2)
fsubrl (%rax,%rsi,8)
fmul %st, %st(0)
faddp %st, %st(1)
movl %esi, (%rsp)
fld %st(3)
fisubrl (%rsp)
fld %st(3)
fsubrl (%rdx,%rsi,8)
fmulp %st, %st(1)
faddp %st, %st(2)
incq %rsi
cmpq %rsi, %rcx
jne 0x27f6
fdivrp %st, %st(1)
fstpl 0x18(%rsp)
vmovsd 0x18(%rsp), %xmm0
jmp 0x282e
vmovsd 0x77f2(%rip), %xmm0     # 0xa020
vxorpd %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
jb 0x2853
vmovsd %xmm0, 0x10(%rsp)
fmull 0x10(%rsp)
fsubrp %st, %st(1)
fstpl 0x8(%rsp)
vmovsd 0x8(%rsp), %xmm1
addq $0x28, %rsp
retq
fstp %st(0)
fstp %st(0)
leaq 0x7922(%rip), %rdi      # 0xa180
leaq 0x7922(%rip), %rsi      # 0xa187
leaq 0x797b(%rip), %rcx      # 0xa1e7
movl $0x33, %edx
callq 0x2130
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/irls.h
// Function: weighted_mean_x(std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>&)
long double weighted_mean_x(std::vector<double> data, std::vector<double>& weights){
    long double w_sum = 0;
    long double d_sum = 0;
    for(int i = 0; i < data.size(); i++){
        w_sum += weights[i];
        d_sum += weights[i] * (long double)data[i];
    }
    return d_sum/w_sum;
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
flds 0x7757(%rip)            # 0xa0c8
subq %rax, %rcx
je 0x29a1
fstp %st(0)
sarq $0x3, %rcx
movq (%rsi), %rdx
cmpq $0x1, %rcx
adcq $0x0, %rcx
fldz
xorl %esi, %esi
fld %st(0)
fldl (%rdx,%rsi,8)
fadd %st, %st(1)
fmull (%rax,%rsi,8)
faddp %st, %st(2)
incq %rsi
cmpq %rsi, %rcx
jne 0x298d
fdivrp %st, %st(1)
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/irls.h
// Function: weighted_mean_y(std::vector<double, std::allocator<double>>&)
long double weighted_mean_y(std::vector<double>& weights){
    long double w_sum = 0;
    long double d_sum = 0;
    for(int i = 0; i < weights.size(); i++){
        w_sum += weights[i];
        d_sum += weights[i] * (long double)i;
    }
    return d_sum/w_sum;
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
flds 0x7719(%rip)            # 0xa0c8
subq %rax, %rcx
je 0x29e1
fstp %st(0)
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
fldz
xorl %edx, %edx
fld %st(0)
fldl (%rax,%rdx,8)
fadd %st, %st(1)
movl %edx, -0x4(%rsp)
fimull -0x4(%rsp)
faddp %st, %st(2)
incq %rdx
cmpq %rdx, %rcx
jne 0x29c8
fdivrp %st, %st(1)
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/irls.h
// Function: weighted_simple_regression(std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&)
linear_regression weighted_simple_regression(std::vector<double>& data, std::vector<double>& weights){
    long double x_mean = weighted_mean_x(data, weights);
    long double y_mean = weighted_mean_y(weights);

    long double top = 0;
    long double bot = 0;
    for(int i = 0; i < data.size(); i++){
        top += weights[i] * (data[i] - x_mean) * ((long double)i - y_mean);
        bot += weights[i] * (data[i] - x_mean) * (data[i] - x_mean);
    }

    double a = top/bot;
    double b = y_mean - (a * x_mean);
    return linear_regression(a,b);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4ac8
movq (%r15), %rdi
movq 0x8(%r15), %rax
flds 0x76ba(%rip)            # 0xa0c8
subq %rdi, %rax
je 0x2a3e
fstp %st(0)
sarq $0x3, %rax
movq (%r14), %rcx
cmpq $0x1, %rax
adcq $0x0, %rax
fldz
xorl %edx, %edx
fld %st(0)
fldl (%rcx,%rdx,8)
fadd %st, %st(1)
fmull (%rdi,%rdx,8)
faddp %st, %st(2)
incq %rdx
cmpq %rdx, %rax
jne 0x2a2a
fdivrp %st, %st(1)
testq %rdi, %rdi
je 0x2a58
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
fstpt 0x2c(%rsp)
callq 0x2260
fldt 0x2c(%rsp)
movq (%r14), %rax
movq 0x8(%r14), %rcx
flds 0x7663(%rip)            # 0xa0c8
subq %rax, %rcx
je 0x2a97
fstp %st(0)
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
fldz
xorl %edx, %edx
fld %st(0)
fldl (%rax,%rdx,8)
fadd %st, %st(1)
movl %edx, 0xc(%rsp)
fimull 0xc(%rsp)
faddp %st, %st(2)
incq %rdx
cmpq %rdx, %rcx
jne 0x2a7e
fdivrp %st, %st(1)
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
je 0x2ae7
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
fldz
xorl %esi, %esi
fld %st(0)
fld %st(3)
fsubrl (%rcx,%rsi,8)
fld %st(0)
fmull (%rax,%rsi,8)
movl %esi, 0x8(%rsp)
fld %st(4)
fisubrl 0x8(%rsp)
fmul %st(1), %st
faddp %st, %st(4)
fmulp %st, %st(1)
faddp %st, %st(1)
incq %rsi
cmpq %rsi, %rdx
jne 0x2ab5
fdivrp %st, %st(1)
fstpl 0x20(%rsp)
vmovsd 0x20(%rsp), %xmm0
jmp 0x2aef
vmovsd 0x7531(%rip), %xmm0     # 0xa020
vmovsd %xmm0, 0x18(%rsp)
fxch %st(1)
fmull 0x18(%rsp)
fsubrp %st, %st(1)
fstpl 0x10(%rsp)
vmovsd 0x10(%rsp), %xmm1
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/helpers/../exponential_search.h
// Function: exponential_search_lower_bound(int, double, std::vector<double, std::allocator<double>>&)
int exponential_search_lower_bound(int m, double key, std::vector<double> & data) {
    // Continue doubling the bound until it contains the lower bound. Then use
    // binary search.
    int bound = 1;
    int l, r;  // will do binary search in range [l, r)
    if (data[m] >= key) {
        int size = m;
        while (bound < size && data[m - bound] >= key) {
            bound *= 2;
        }
        l = m - std::min<int>(bound, size);
        r = m - bound / 2;
    } else {
        int size = data.size() - m;
        while (bound < size && data[m + bound] < key) {
            bound *= 2;
        }
        l = m + bound / 2;
        r = m + std::min<int>(bound, size);
    }
    return binary_search_lower_bound(l, r, key, data);
}

// Assembly:
movslq %edi, %rax
movq (%rsi), %rcx
vmovsd (%rcx,%rax,8), %xmm1
vucomisd %xmm0, %xmm1
jae 0x2b62
movq 0x8(%rsi), %rsi
subq %rcx, %rsi
shrq $0x3, %rsi
subl %edi, %esi
movl $0x1, %edx
cmpl $0x2, %esi
jl 0x2b50
movl $0x1, %edx
leal (%rdx,%rdi), %eax
cltq
vucomisd (%rcx,%rax,8), %xmm0
jbe 0x2b50
addl %edx, %edx
cmpl %esi, %edx
jl 0x2b3e
movl %edx, %eax
shrl $0x1f, %eax
addl %edx, %eax
sarl %eax
addl %edi, %eax
cmpl %edx, %esi
cmovll %esi, %edx
jmp 0x2b99
movl $0x1, %esi
cmpl $0x2, %edi
jl 0x2b83
movl %edi, %eax
subl %esi, %eax
cltq
vmovsd (%rcx,%rax,8), %xmm1
vucomisd %xmm0, %xmm1
jb 0x2b83
addl %esi, %esi
cmpl %edi, %esi
jl 0x2b6c
cmpl %edi, %esi
movl %edi, %edx
cmovll %esi, %edx
movl %edi, %eax
subl %edx, %eax
movl %esi, %edx
shrl $0x1f, %edx
addl %esi, %edx
sarl %edx
negl %edx
addl %edi, %edx
cmpl %edx, %eax
jge 0x2bc8
movl %edx, %edi
subl %eax, %edi
movl %edi, %esi
shrl $0x1f, %esi
addl %edi, %esi
sarl %esi
leal (%rsi,%rax), %edi
movslq %edi, %r8
vmovsd (%rcx,%r8,8), %xmm1
vucomisd %xmm0, %xmm1
jb 0x2bc2
movl %edi, %edx
jmp 0x2b9b
leal 0x1(%rsi,%rax), %eax
jmp 0x2b9b
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/helpers/../exponential_search.h
// Function: exponential_search_lower_bound_linear_head(int, double, std::vector<double, std::allocator<double>>&)
int exponential_search_lower_bound_linear_head(int m, double key, std::vector<double> & data) {
    if(data[m] == key){
        return m;
    }
    int bound = 4;
    int l, r;  // will do binary search in range [l, r)
    if (data[m] >= key) {
        for(int i = 1; i < 4; i++){
            if(data[m-i] < key){
                return m-i;
            }
        }
        int size = m;
        while (bound < size && data[m - bound] > key) {
            bound *= 2;
        }
        l = m - std::min<int>(bound, size);
        r = m - bound / 2;
    } else {
        for(int i = 1; i < 4; i++){
            if(data[m+1] > key){
                return m+i;
            }
        }
        int size = data.size() - m;
        while (bound < size && data[m + bound] < key) {
            bound *= 2;
        }
        l = m + bound / 2;
        r = m + std::min<int>(bound, size);
    }
    return binary_search_lower_bound(l, r, key, data);
}

// Assembly:
movslq %edi, %rdx
movq (%rsi), %rcx
vmovsd (%rcx,%rdx,8), %xmm1
vucomisd %xmm0, %xmm1
jne 0x2bdf
jp 0x2bdf
movl %edi, %eax
retq
jae 0x2bfb
vmovsd 0x8(%rcx,%rdx,8), %xmm1
xorl %eax, %eax
vucomisd %xmm0, %xmm1
ja 0x2c0a
incl %eax
cmpl $0x3, %eax
jne 0x2be9
setae %dl
jmp 0x2c0f
vucomisd -0x8(%rcx,%rdx,8), %xmm0
jbe 0x2c4e
decq %rdx
xorl %esi, %esi
jmp 0x2c77
leal 0x1(%rdi), %eax
xorl %edx, %edx
testb %dl, %dl
je 0x2bde
movq 0x8(%rsi), %rsi
subq %rcx, %rsi
shrq $0x3, %rsi
subl %edi, %esi
movl $0x4, %edx
cmpl $0x5, %esi
jl 0x2c41
movl $0x4, %edx
leal (%rdx,%rdi), %eax
cltq
vucomisd (%rcx,%rax,8), %xmm0
jbe 0x2c41
addl %edx, %edx
cmpl %esi, %edx
jl 0x2c2f
movl %edx, %eax
sarl %eax
addl %edi, %eax
cmpl %edx, %esi
cmovll %esi, %edx
jmp 0x2cc4
leal -0x3(%rdx), %eax
leaq -0x10(%rcx,%rdx,8), %rsi
xorl %edx, %edx
cmpq $0x2, %rdx
je 0x2c7b
incq %rdx
vucomisd (%rsi), %xmm0
leaq -0x8(%rsi), %rsi
jbe 0x2c58
cmpq $0x3, %rdx
setae %sil
notl %edx
addl %edi, %edx
movl %edx, %eax
jmp 0x2c86
incq %rdx
cmpq $0x3, %rdx
setae %sil
testb %sil, %sil
je 0x2bde
movl $0x4, %edx
cmpl $0x5, %edi
jl 0x2cb5
movl $0x4, %edx
movl %edi, %eax
subl %edx, %eax
cltq
vmovsd (%rcx,%rax,8), %xmm1
vucomisd %xmm0, %xmm1
jbe 0x2cb5
addl %edx, %edx
cmpl %edi, %edx
jl 0x2c9e
cmpl %edi, %edx
movl %edi, %esi
cmovll %edx, %esi
movl %edi, %eax
subl %esi, %eax
sarl %edx
negl %edx
addl %edi, %edx
cmpl %edx, %eax
jge 0x2bde
movl %edx, %edi
subl %eax, %edi
movl %edi, %esi
shrl $0x1f, %esi
addl %edi, %esi
sarl %esi
leal (%rsi,%rax), %edi
movslq %edi, %r8
vmovsd (%rcx,%r8,8), %xmm1
vucomisd %xmm0, %xmm1
jb 0x2cf1
movl %edi, %edx
jmp 0x2cc6
leal 0x1(%rsi,%rax), %eax
jmp 0x2cc6
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/helpers/../exponential_search.h
// Function: exponential_search_lower_bound_steps(int, double, std::vector<double, std::allocator<double>>&, int&)
int exponential_search_lower_bound_steps(int m, double key, std::vector<double> & data, int & steps) {
    // Continue doubling the bound until it contains the lower bound. Then use
    // binary search.
    steps = 1;
    int bound = 1;
    int l, r;  // will do binary search in range [l, r)
    if (data[m] >= key) {
        int size = m;
        while (bound < size && data[m - bound] >= key) {
            bound *= 2;
            steps++;
        }
        l = m - std::min<int>(bound, size);
        r = m - bound / 2;
    } else {
        int size = data.size() - m;
        while (bound < size && data[m + bound] < key) {
            bound *= 2;
            steps++;
        }
        l = m + bound / 2;
        r = m + std::min<int>(bound, size);
    }
    return binary_search_lower_bound(l, r, key, data);
}

// Assembly:
movl $0x1, (%rdx)
movslq %edi, %rax
movq (%rsi), %rcx
vmovsd (%rcx,%rax,8), %xmm1
vucomisd %xmm0, %xmm1
jae 0x2d5e
movq 0x8(%rsi), %r8
subq %rcx, %r8
shrq $0x3, %r8
subl %edi, %r8d
movl $0x1, %esi
cmpl $0x2, %r8d
jl 0x2d4a
movl (%rdx), %eax
incl %eax
movl $0x1, %esi
leal (%rsi,%rdi), %r9d
movslq %r9d, %r9
vucomisd (%rcx,%r9,8), %xmm0
jbe 0x2d4a
addl %esi, %esi
movl %eax, (%rdx)
incl %eax
cmpl %r8d, %esi
jl 0x2d30
movl %esi, %eax
shrl $0x1f, %eax
addl %esi, %eax
sarl %eax
addl %edi, %eax
cmpl %esi, %r8d
cmovll %r8d, %esi
jmp 0x2da6
movl $0x1, %r8d
cmpl $0x2, %edi
jl 0x2d8c
movl (%rdx), %eax
incl %eax
movl %edi, %esi
subl %r8d, %esi
movslq %esi, %rsi
vmovsd (%rcx,%rsi,8), %xmm1
vucomisd %xmm0, %xmm1
jb 0x2d8c
addl %r8d, %r8d
movl %eax, (%rdx)
incl %eax
cmpl %edi, %r8d
jl 0x2d6d
cmpl %edi, %r8d
movl %edi, %edx
cmovll %r8d, %edx
movl %edi, %eax
subl %edx, %eax
movl %r8d, %esi
shrl $0x1f, %esi
addl %r8d, %esi
sarl %esi
negl %esi
addl %edi, %esi
cmpl %esi, %eax
jge 0x2dd5
movl %esi, %edi
subl %eax, %edi
movl %edi, %edx
shrl $0x1f, %edx
addl %edi, %edx
sarl %edx
leal (%rdx,%rax), %edi
movslq %edi, %r8
vmovsd (%rcx,%r8,8), %xmm1
vucomisd %xmm0, %xmm1
jb 0x2dcf
movl %edi, %esi
jmp 0x2da8
leal 0x1(%rdx,%rax), %eax
jmp 0x2da8
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/helpers/regression_benchmark.h
// Function: benchmark_lookup_linear_regression(std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>, linear_regression)
long benchmark_lookup_linear_regression(std::vector<double> & data, std::vector<double> lookups, linear_regression lr){ 
    int data_size = data.size()-1;
    auto start = std::chrono::high_resolution_clock::now();
    
    for(int i = 0; i < lookups.size(); i++){
        long pos = lr.predict(lookups[i]);
        pos = std::max<long>(std::min<long>(pos, data_size), 0);
        DoNotOptimize(exponential_search_lower_bound_linear_head(pos, lookups[i], data));
    }

    auto stop = std::chrono::high_resolution_clock::now();
    auto duration = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start);

    return duration.count();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
vmovsd %xmm1, 0x8(%rsp)
vmovsd %xmm0, (%rsp)
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdi), %r12
movq 0x8(%rdi), %r13
callq 0x2040
movq %rax, %r14
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x2e73
subq %r12, %r13
shlq $0x1d, %r13
movabsq $-0x100000000, %r12     # imm = 0xFFFFFFFF00000000
addq %r13, %r12
sarq $0x20, %r12
xorl %r13d, %r13d
vmovsd (%rax,%r13,8), %xmm0
vmovapd %xmm0, %xmm1
vmovsd (%rsp), %xmm2
vfmadd213sd 0x8(%rsp), %xmm2, %xmm1 # xmm1 = (xmm2 * xmm1) + mem
vcvttsd2si %xmm1, %rax
cmpq %rax, %r12
cmovlq %r12, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
andnl %eax, %ecx, %edi
movq %r15, %rsi
callq 0x2bc9
incq %r13
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
ja 0x2e27
callq 0x2040
subq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/helpers/regression_benchmark.h
// Function: perform_benchmark(linear_regression, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, int)
std::vector<long> perform_benchmark(linear_regression lr, std::vector<double>& data, std::vector<double>& lookups, int num){
    std::vector<long> measurements;
    for (int i = 0; i < num; i++){
        long time = benchmark_lookup_linear_regression(data, lookups, lr);
        measurements.push_back(time);
    }

    std::sort(measurements.begin(), measurements.end());
    return measurements;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
vmovsd %xmm1, 0x10(%rsp)
vmovsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
testl %ecx, %ecx
jle 0x2f30
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4ac8
movq %r15, %rdi
movq %r12, %rsi
vmovsd 0x8(%rsp), %xmm0
vmovsd 0x10(%rsp), %xmm1
callq 0x2dd6
movq %rax, %r13
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2f03
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq %r13, 0x18(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2f1f
movq %r13, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2f2c
movq %rbx, %rdi
leaq 0x18(%rsp), %rdx
callq 0x7400
decl %ebp
jne 0x2ec7
movq (%rbx), %r14
movq 0x8(%rbx), %r15
cmpq %r15, %r14
je 0x2f67
movq %r15, %rax
subq %r14, %rax
sarq $0x3, %rax
lzcntq %rax, %rdx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x7533
movq %r14, %rdi
movq %r15, %rsi
callq 0x761c
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f97
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2f9a
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
jmp 0x2f9a
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2fae
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2260
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/helpers/io_handler.h
// Function: std::vector<unsigned long, std::allocator<unsigned long>> load_data<unsigned long>(char*)
static std::vector<T> load_data(char * filename_cs) {
    std::string filename(filename_cs);
    std::vector<T> data;

    std::ifstream in(filename, std::ios::binary);
    if (!in.is_open()) {
        std::cerr << "unable to open " << filename << std::endl;
        exit(EXIT_FAILURE);
    }
    // Read size.
    uint64_t size;
    in.read(reinterpret_cast<char*>(&size), sizeof(uint64_t));
    data.resize(size);
    // Read values.
    in.read(reinterpret_cast<char*>(data.data()), size*sizeof(T));
    in.close();
    
    return data;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x4ec4
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movl $0x4, %edx
callq 0x2320
leaq 0xa8(%rsp), %rdi
callq 0x2060
testb %al, %al
je 0x38e9
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x2290
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8134
movq (%rbx), %rsi
movq 0x8(%rsp), %rdx
shlq $0x3, %rdx
leaq 0x30(%rsp), %rdi
callq 0x2290
leaq 0x30(%rsp), %rdi
callq 0x2050
leaq 0x30(%rsp), %rdi
callq 0x2070
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x38db
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2260
movq %rbx, %rax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r14
retq
movq 0xa700(%rip), %rdi      # 0xdff0
leaq 0x6a31(%rip), %rsi      # 0xa328
movl $0xf, %edx
callq 0x2270
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0xa6de(%rip), %rdi      # 0xdff0
callq 0x2270
movq %rax, %rdi
callq 0x20f0
movl $0x1, %edi
callq 0x2280
jmp 0x3930
movq %rax, %r14
jmp 0x393d
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x2070
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3951
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2260
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x396c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2260
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/fast_brute_force.h
// Function: find_min_idx(std::vector<double, std::allocator<double>>&, linear_regression, long)
long find_min_idx(std::vector<double>& data, linear_regression lr, long selfi){
    long min_idx = -1;
    double min_err = std::numeric_limits<double>::infinity();
    for(int i = 0; i < data.size(); i++){
        if(i != selfi){
            double err = calculate_error_single_element<L1Norm, false, false>(data, lr.a, lr.b, i);
            if (err < min_err){
                min_idx = i;
                min_err = err;
            }
        }
    }
    return min_idx;
}

// Assembly:
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
je 0x405a
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
vmovsd 0x5ff7(%rip), %xmm2     # 0xa010
movq $-0x1, %rax
xorl %edi, %edi
vmovddup 0x6046(%rip), %xmm3     # xmm3 = mem[0,0]
cmpq %rdi, %rsi
je 0x4051
vcvtsi2sd %edi, %xmm6, %xmm4
vmovsd (%rcx,%rdi,8), %xmm5
vfmadd213sd %xmm1, %xmm0, %xmm5 # xmm5 = (xmm0 * xmm5) + xmm1
vsubsd %xmm5, %xmm4, %xmm4
vandpd %xmm3, %xmm4, %xmm4
vucomisd %xmm4, %xmm2
vminsd %xmm2, %xmm4, %xmm2
cmovaq %rdi, %rax
incq %rdi
cmpq %rdi, %rdx
jne 0x402a
retq
movq $-0x1, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/fast_brute_force.h
// Function: build_regression_direct_descent(std::vector<double, std::allocator<double>>&, int)
linear_regression build_regression_direct_descent(std::vector<double>& data, int num){
    srand(time(nullptr));
    long index = rand()%data.size();

    linear_regression lr;
    for(int i = 0; i < num; i++){
        double a,b;
        std::pair<linear_regression, long> p = build_regression_i(data, index);
        lr = p.first;
        long cost = p.second;
        index = find_min_idx(data, lr, index);
        //std::cout << calculate_error<DiscreteLogNorm>(data, lr) << std::endl;
    }
    return lr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebx
movq %rdi, %r14
xorl %edi, %edi
callq 0x21f0
movl %eax, %edi
callq 0x2220
callq 0x2080
testl %ebx, %ebx
jle 0x40dc
cltq
movq 0x8(%r14), %rcx
subq (%r14), %rcx
sarq $0x3, %rcx
xorl %edx, %edx
divq %rcx
movq %rdx, %r12
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3b9b
vmovsd 0x10(%rsp), %xmm0
vmovsd 0x18(%rsp), %xmm1
movq %r14, %rdi
vmovsd %xmm0, 0x8(%rsp)
vmovsd %xmm1, (%rsp)
movq %r12, %rsi
callq 0x3ff9
movq %rax, %r12
decl %ebx
jne 0x40a3
jmp 0x40eb
vxorps %xmm0, %xmm0, %xmm0
vmovsd %xmm0, 0x8(%rsp)
vmovsd %xmm0, (%rsp)
vmovsd 0x8(%rsp), %xmm0
vmovsd (%rsp), %xmm1
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/median.h
// Function: double quickselect<double>(std::vector<double, std::allocator<double>>&, int, int, int)
T quickselect(std::vector<T>& data, int k, int lo, int hi){
    int i = hoare_partition(data, lo, hi, data[(lo+hi)/2]);
    if(i == k){
        return data[i];
    }
    else if(i < k){
        return quickselect(data, k, i+1, hi);
    }
    else{
        return quickselect(data, k, lo, i-1);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
leal -0x1(%rdx), %r8d
leal (%rcx,%rdx), %r9d
movl %r9d, %r10d
shrl $0x1f, %r10d
addl %r9d, %r10d
sarl %r10d
movslq %r10d, %r9
movq (%rdi), %r10
vmovsd (%r10,%r9,8), %xmm0
leal 0x1(%rcx), %r9d
movl %r8d, %r11d
movslq %r11d, %r11
vmovsd 0x8(%r10,%r11,8), %xmm1
incq %r11
vucomisd %xmm1, %xmm0
ja 0x4ceb
movslq %r9d, %r13
movq %r13, %r14
shlq $0x20, %r14
leaq (%r10,%r13,8), %r15
xorl %ebx, %ebx
addq %rax, %r14
vmovsd -0x8(%r15,%rbx,8), %xmm2
decq %rbx
vucomisd %xmm0, %xmm2
ja 0x4d0b
movl %r13d, %r12d
addq %rbx, %r13
cmpq %r13, %r11
jge 0x4d3d
addq %rbx, %r12
vmovsd %xmm2, (%r10,%r11,8)
vmovsd %xmm1, (%r15,%rbx,8)
movl %r12d, %r9d
jmp 0x4ce8
movl %esi, %r11d
subl %r9d, %r11d
cmpl %ebx, %r11d
je 0x4d64
addq %rbx, %r12
cmpl %esi, %r12d
jl 0x4d5a
leal -0x1(%r9,%rbx), %ecx
jmp 0x4cc4
leal 0x1(%r9,%rbx), %edx
jmp 0x4cc0
sarq $0x1d, %r14
vmovsd (%r10,%r14), %xmm0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/log_regression.h
// Function: linear_regression create_regression_tournament_selection<(ERROR_TYPE)1, true, true>(std::vector<double, std::allocator<double>>&)
linear_regression create_regression_tournament_selection(std::vector<double>& data){
    long s = std::pow(2, (int)std::ceil(log2(data.size())));
    std::vector<int> tournament;
    tournament.resize(s);
    for (int i = 0; i < s/2; i++){
        int fr = rand() % data.size();
        int to;
        do{
            to = rand() % data.size();
        }while(fr == to);
        tournament[2*i] = fr;
        tournament[2*i + 1] = to;
    }
    double error;
    return create_regression_tournament_selection_recursive<E,ROUND,BOUNDED>(data, tournament, 0, s, error);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x3, %rax
vcvtusi2sd %rax, %xmm0, %xmm0
callq 0x2370
vroundsd $0xa, %xmm0, %xmm0, %xmm0
vcvttsd2si %xmm0, %edi
vmovsd 0x4669(%rip), %xmm0     # 0xa078
callq 0x22f0
vcvttsd2si %xmm0, %r14
vxorpd %xmm0, %xmm0, %xmm0
movq %rsp, %rdi
vmovapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %r14, %rsi
callq 0x8a68
cmpq $0x2, %r14
jl 0x5a95
movq %r14, %r12
shrq $0x3f, %r12
addq %r14, %r12
sarq %r12
xorl %r13d, %r13d
callq 0x2080
cltq
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
sarq $0x3, %rcx
xorl %edx, %edx
divq %rcx
movq %rdx, %r15
callq 0x2080
cltq
movq 0x8(%rbx), %rcx
subq (%rbx), %rcx
sarq $0x3, %rcx
xorl %edx, %edx
divq %rcx
cmpl %edx, %r15d
je 0x5a64
movq (%rsp), %rax
movl %r15d, (%rax,%r13,8)
movl %edx, 0x4(%rax,%r13,8)
incq %r13
cmpq %r12, %r13
jne 0x5a4a
movq %rsp, %rsi
leaq 0x28(%rsp), %r8
movq %rbx, %rdi
xorl %edx, %edx
movl %r14d, %ecx
callq 0x8a99
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5ad8
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
vmovsd %xmm0, 0x20(%rsp)
vmovsd %xmm1, 0x18(%rsp)
callq 0x2260
vmovsd 0x18(%rsp), %xmm1
vmovsd 0x20(%rsp), %xmm0
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x5ae8
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5b01
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/error_function.h
// Function: long double calculate_error<(ERROR_TYPE)3, true, false>(std::vector<double, std::allocator<double>>&, linear_regression)
long double calculate_error(std::vector<double>& data, linear_regression lr){
    long double total_error = 0;
    for(long i = 0; i < data.size(); i++){
        total_error += calculate_error_single_element<E, CORRECT, BOUNDED>(data, lr, i);
    }
    return total_error;
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
fldz
subq %rax, %rcx
je 0x8a67
fstp %st(0)
sarq $0x3, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
fldz
xorl %edx, %edx
movabsq $0x100000000, %rsi      # imm = 0x100000000
xorl %edi, %edi
movq %rdx, %r8
sarq $0x1d, %r8
vcvtsi2sd %edi, %xmm4, %xmm2
vmovsd (%rax,%r8), %xmm3
vfmadd213sd %xmm1, %xmm0, %xmm3 # xmm3 = (xmm0 * xmm3) + xmm1
vroundsd $0x9, %xmm3, %xmm3, %xmm3
vsubsd %xmm3, %xmm2, %xmm2
vmovsd %xmm2, -0x8(%rsp)
fldl -0x8(%rsp)
fmul %st, %st(0)
fstpl -0x10(%rsp)
vmovsd -0x10(%rsp), %xmm2
vmovsd %xmm2, -0x18(%rsp)
faddl -0x18(%rsp)
incq %rdi
addq %rsi, %rdx
cmpq %rdi, %rcx
jne 0x8a1c
retq
// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/./src/error_function.h
// Function: long double calculate_error<(ERROR_TYPE)0, true, true>(std::vector<double, std::allocator<double>>&, double, double)
long double calculate_error(std::vector<double>& data, double a, double b){
    long double total_error = 0;
    for(long i = 0; i < data.size(); i++){
        total_error += calculate_error_single_element<E, CORRECT, BOUNDED>(data, a, b, i);
    }
    return total_error;
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
fldz
subq %rax, %rdx
fldz
fldz
je 0x9268
fstp %st(1)
fstp %st(1)
fstp %st(0)
movq %rdx, %rcx
sarq $0x3, %rcx
shrq $0x3, %rdx
decl %edx
movl %edx, -0x1c(%rsp)
fildl -0x1c(%rsp)
cmpq $0x1, %rcx
adcq $0x0, %rcx
fldz
xorl %edx, %edx
vmovddup 0xe73(%rip), %xmm2      # xmm2 = mem[0,0]
movabsq $0x100000000, %rsi      # imm = 0x100000000
xorl %edi, %edi
fld %st(0)
fxch %st(2)
fxch %st(1)
movq %rdx, %r8
sarq $0x1d, %r8
vmovsd (%rax,%r8), %xmm3
vfmadd213sd %xmm1, %xmm0, %xmm3 # xmm3 = (xmm0 * xmm3) + xmm1
vmovsd %xmm3, -0x8(%rsp)
fldl -0x8(%rsp)
fucomi %st(2), %st
fcmovnbe %st(2), %st
fxch %st(1)
fucomi %st(1), %st
fxch %st(1)
fcmovnbe %st(1), %st
vcvtsi2sd %edi, %xmm5, %xmm3
fstpl -0x10(%rsp)
vroundsd $0x9, -0x10(%rsp), %xmm5, %xmm4
vsubsd %xmm4, %xmm3, %xmm3
vandpd %xmm2, %xmm3, %xmm3
vmovlpd %xmm3, -0x18(%rsp)
fxch %st(2)
faddl -0x18(%rsp)
incq %rdi
addq %rsi, %rdx
cmpq %rdi, %rcx
fxch %st(2)
jne 0x920f
fstp %st(1)
fstp %st(0)
retq
// File: /workspace/github_cpp_makefile_star2_O1/ef-gy[P]libefgy/include/ef.gy/continued-fractions.h
// Function: efgy::math::numeric::continuedFractional<long long>::continuedFractional(efgy::math::numeric::fractional<long long> const&)
continuedFractional(const fractional<N> &pF)
      : coefficient(), negative(false) {
    N i = N(0);
    for (fractional<N> f = pF;
         (f.numerator != zero()) && (f.denominator != zero());
         f = reciprocal(f - i)) {
      i = N(f);

      if (i < zero()) {
        coefficient.push_back(-i);
        negative = true;
      } else {
        coefficient.push_back(i);
      }

      if (f < zero()) {
        f *= N(-1);
        i = -i;
      }
    }

    if ((coefficient.size() > one()) && (coefficient.back() == N(1))) {
      coefficient.push_back(N(1));
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x9(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x18(%rsp)
movups (%rsi), %xmm0
movaps %xmm0, (%rsp)
movq (%rsp), %rax
testq %rax, %rax
je 0x5872
leaq 0x20(%rsp), %r14
movq %rsp, %r15
leaq 0x30(%rsp), %r12
leaq 0x18(%rsp), %r13
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x5872
cqto
idivq %rcx
movq %rax, 0x18(%rsp)
testq %rax, %rax
js 0x57cf
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x57ee
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x580a
negq %rax
movq %rax, 0x20(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x57fb
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x5806
movq %rbx, %rdi
movq %r13, %rdx
callq 0x13fc4
jmp 0x580a
movq %rbx, %rdi
movq %r14, %rdx
callq 0x13e88
movb $0x1, 0x18(%rbx)
movq (%rsp), %rax
testq %rax, %rax
jns 0x5827
negq %rax
movq %rax, (%rsp)
movq %r15, %rdi
callq 0x13dc0
negq 0x18(%rsp)
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %rdx
imulq %rcx, %rdx
subq %rdx, %rax
movq %rax, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movq %r14, %rdi
callq 0x13dc0
movups 0x20(%rsp), %xmm0
movups %xmm0, 0x30(%rsp)
movq %r12, %rdi
callq 0x13e3f
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
testq %rax, %rax
jne 0x579b
movq 0x8(%rbx), %rsi
movq %rsi, %rax
subq (%rbx), %rax
cmpq $0x8, %rax
jbe 0x58b6
cmpq $0x1, -0x8(%rsi)
jne 0x58b6
movq $0x1, 0x20(%rsp)
cmpq 0x10(%rbx), %rsi
je 0x58a9
movq $0x1, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x58b6
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x13e88
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x58cc
jmp 0x58cc
jmp 0x58cc
jmp 0x58cc
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x58e3
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4250
movq %r14, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O1/ef-gy[P]libefgy/include/ef.gy/continued-fractions.h
// Function: efgy::math::numeric::continuedFractional<long long>::operator efgy::math::numeric::fractional<long long>() const
operator fractional<N>(void) const {
    fractional<N> rv;
    N j = coefficient.size() - N(1);
    for (N i = j; i >= N(0); i--) {
      if (i == j) {
        rv = fractional<N>(N(coefficient[i]));
      } else {
        rv = reciprocal(rv) + coefficient[i];
      }
    }
    if (negative) {
      rv *= N(-1);
    }
    return rv;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq $0x0, (%rsp)
movq $0x1, 0x8(%rsp)
movq 0x8(%rdi), %r12
subq (%rdi), %r12
sarq $0x3, %r12
testq %r12, %r12
jle 0x59b8
xorl %r13d, %r13d
movq %rsp, %r14
leaq 0x10(%rsp), %r15
testq %r13, %r13
je 0x599a
movq %r14, %rdi
callq 0x13e3f
movq (%rbx), %rcx
movq -0x8(%rcx,%r12,8), %rcx
imulq %rdx, %rcx
addq %rax, %rcx
movq %rcx, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %r15, %rdi
callq 0x13dc0
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
jmp 0x59a7
movq (%rbx), %rax
movq -0x8(%rax,%r12,8), %rax
movl $0x1, %ecx
movq %rax, (%rsp)
movq %rcx, 0x8(%rsp)
incq %r13
decq %r12
jg 0x5960
cmpb $0x0, 0x18(%rbx)
je 0x59c9
movq %rsp, %rdi
negq (%rdi)
callq 0x13dc0
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/ef-gy[P]libefgy/include/ef.gy/continued-fractions.h
// Function: std::basic_ostream<char, std::char_traits<char>>& efgy::math::numeric::operator<<<char, long long>(std::basic_ostream<char, std::char_traits<char>>&, efgy::math::numeric::continuedFractional<long long> const&)
std::basic_ostream<C> &operator<<(std::basic_ostream<C> &out,
                                  const continuedFractional<N> &f) {
  if (f.coefficient.size() == N(0)) {
    return out << "[ 0 ]";
  }

  if (f.negative) {
    out << "- ";
  }
  out << "[";
  for (N i = N(0); i < f.coefficient.size(); i++) {
    if (i == N(0)) {
      out << " " << f.coefficient[i];
    } else if (i == N(1)) {
      out << "; " << f.coefficient[i];
    } else {
      out << ", " << f.coefficient[i];
    }
  }

  return out << " ]";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rsi), %rax
cmpq (%rsi), %rax
je 0x5acf
movq %rsi, %r14
cmpb $0x1, 0x18(%rsi)
jne 0x5a18
leaq 0xf718(%rip), %rsi      # 0x15123
movl $0x2, %edx
movq %rbx, %rdi
callq 0x42b0
leaq 0x100bd(%rip), %rsi     # 0x15adc
movl $0x1, %edx
movq %rbx, %rdi
callq 0x42b0
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0x5ac1
xorl %ebp, %ebp
leaq 0x10043(%rip), %r12     # 0x15a85
leaq 0x10098(%rip), %r13     # 0x15ae1
xorl %r15d, %r15d
cmpq $0x1, %r15
je 0x5a6c
testq %r15, %r15
jne 0x5a89
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x42b0
movq (%r14), %rax
jmp 0x5a9f
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x10063(%rip), %rsi     # 0x15ade
callq 0x42b0
movq (%r14), %rax
addq $0x8, %rax
jmp 0x5a9f
movl $0x2, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x42b0
movq (%r14), %rax
addq %rbp, %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x40b0
movq 0x8(%r14), %rax
subq (%r14), %rax
incq %r15
sarq $0x3, %rax
addq $0x8, %rbp
cmpq %rax, %r15
jb 0x5a4c
leaq 0x10011(%rip), %rsi     # 0x15ad9
movl $0x2, %edx
jmp 0x5adb
leaq 0x10000(%rip), %rsi     # 0x15ad6
movl $0x5, %edx
movq %rbx, %rdi
callq 0x42b0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ef-gy[P]libefgy/include/ef.gy/continued-fractions.h
// Function: efgy::math::numeric::continuedFractional<long long>::operator,(long long const&) const
continuedFractional operator,(const N &pB) const {
    continuedFractional rv = *this;
    N b = pB;
    if (b < zero()) {
      rv.negative = true;
      rv.coefficient.push_back(-b);
    } else {
      rv.coefficient.push_back(b);
    }
    return rv;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x148d2
movb 0x18(%r15), %al
movb %al, 0x18(%rbx)
movq (%r14), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
js 0x14876
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
jne 0x1488b
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x13fc4
jmp 0x14896
movb $0x1, 0x18(%rbx)
negq %rax
movq %rax, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x148a3
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x13e88
jmp 0x14896
jmp 0x148b2
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x148c9
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4250
movq %r14, %rdi
callq 0x43c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/main.cpp
// Function: main
int main(int argc, char *args[]) {
    if (argc != 2) {
        std::cout<<"code file not given"<<std::endl;
        return 0;
    }
    std::ifstream fin(args[1]);
    std::string str((std::istreambuf_iterator<char>(fin)), std::istreambuf_iterator<char>());

    Lexer lexer(str);
    lexer.lex();
    // lexer.debug();

    Parser parser(lexer.getTokens());
    parser.parse();
    // parser.debug();

    Assembler assembler(parser.getAsmCode());
    assembler.assemble();
    // assembler.debug();

    VirtualMachine vm(assembler.getBinCode());
    vm.execute();
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x540, %rsp            # imm = 0x540
cmpl $0x2, %edi
jne 0x3825
movq 0x8(%rsi), %rsi
leaq -0x548(%rbp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x3350
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq -0x460(%rbp,%rax), %rsi
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
leaq -0x30(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x4eb0
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x42ce
leaq -0x70(%rbp), %rdi
movl $0x0, 0x20(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movq $0x0, 0x38(%rdi)
callq 0x597a
leaq -0x48(%rbp), %rsi
leaq -0x190(%rbp), %rdi
callq 0x4376
leaq -0x248(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x38f8
leaq -0x190(%rbp), %rdi
callq 0x39cc
leaq -0x248(%rbp), %rdi
callq 0x97a0
leaq -0x210(%rbp), %rsi
leaq -0x190(%rbp), %rdi
callq 0x3a1c
leaq -0x190(%rbp), %rdi
callq 0xb95c
leaq -0x170(%rbp), %rsi
leaq -0x340(%rbp), %rdi
callq 0xd170
leaq -0x340(%rbp), %rdi
callq 0xd570
leaq -0x340(%rbp), %rdi
callq 0x415a
leaq -0x190(%rbp), %rdi
callq 0x41ae
leaq -0x248(%rbp), %rdi
callq 0x421a
leaq -0x70(%rbp), %rdi
callq 0x42a2
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x3817
callq 0x31c0
leaq -0x548(%rbp), %rdi
callq 0x3080
jmp 0x3867
movq 0x107a4(%rip), %rbx     # 0x13fd0
leaq 0xb7d1(%rip), %rsi      # 0xf004
movl $0x13, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3150
xorl %eax, %eax
addq $0x540, %rsp            # imm = 0x540
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x340(%rbp), %rdi
callq 0x415a
jmp 0x388b
jmp 0x3888
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
callq 0x41ae
jmp 0x389e
jmp 0x389b
movq %rax, %rbx
leaq -0x248(%rbp), %rdi
callq 0x421a
jmp 0x38c2
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
callq 0x39cc
jmp 0x38c2
jmp 0x38bf
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x42a2
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0x38d9
callq 0x31c0
leaq -0x548(%rbp), %rdi
callq 0x3080
movq %rbx, %rdi
callq 0x3330
movq %rax, %rbx
jmp 0x38cb
movq %rax, %rbx
jmp 0x38d9
nop
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/AST.cpp
// Function: BlockAST::print()
void BlockAST::print() {
    std::cout<<"block: {"<<std::endl;
    for (auto it = statements.begin(); it != statements.end(); ++it) {
        (*it)->print();
    }
    std::cout<<"}"<<std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xe248(%rip), %rbx      # 0x13fd0
leaq 0x948b(%rip), %rsi      # 0xf21a
movl $0x8, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3150
movq 0x10(%r14), %r15
cmpq 0x18(%r14), %r15
je 0x5ddc
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
addq $0x8, %r15
jmp 0x5dc7
leaq 0x9440(%rip), %rsi      # 0xf223
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3150
nop
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/AST.cpp
// Function: IfExprAST::print()
void IfExprAST::print() {
    std::cout<<"if\t";
    condAST->print();
    ifBlockAST->print();
    if (elseBlockAST) {
        std::cout<<"else\t";
        elseBlockAST->print();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xe19e(%rip), %rdi      # 0x13fd0
leaq 0x93ec(%rip), %rsi      # 0xf225
movl $0x3, %edx
callq 0x3230
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x18(%rbx), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
cmpq $0x0, 0x20(%rbx)
je 0x5e86
movq 0xe16b(%rip), %rdi      # 0x13fd0
leaq 0x93bd(%rip), %rsi      # 0xf229
movl $0x5, %edx
callq 0x3230
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/AST.cpp
// Function: CallFuncAST::print()
void CallFuncAST::print() {
    std::cout<<"call func: "<<mCallee<<"("<<std::endl;
    for (auto it = mArgs.begin(); it != mArgs.end(); ++it) {
        (*it)->print();
    }
    std::cout<<")"<<std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0xe0f2(%rip), %rbx      # 0x13fd0
leaq 0x9351(%rip), %rsi      # 0xf236
movl $0xb, %edx
movq %rbx, %rdi
callq 0x3230
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq %rbx, %rdi
callq 0x3230
movq %rax, %r15
leaq 0x9342(%rip), %rsi      # 0xf24e
movl $0x1, %edx
movq %rax, %rdi
callq 0x3230
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3150
movq 0x30(%r14), %r15
cmpq 0x38(%r14), %r15
je 0x5f59
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
addq $0x8, %r15
jmp 0x5f44
leaq 0x93ae(%rip), %rsi      # 0xf30e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3230
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3150
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/AST.cpp
// Function: FunctionAST::print()
void FunctionAST::print() {
    std::cout<<"def func "<<mFunc.second<<": (";
    for (auto it = mArgs.begin(); it != mArgs.end(); ++it) {
        std::cout<<(*it).second<<", ";
    }
    std::cout<<"nullptr) ";
    blockAST->print();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0xe01d(%rip), %r14      # 0x13fd0
leaq 0x9288(%rip), %rsi      # 0xf242
movl $0x9, %edx
movq %r14, %rdi
callq 0x3230
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
movq %r14, %rdi
callq 0x3230
leaq 0x926e(%rip), %rsi      # 0xf24c
movl $0x3, %edx
movq %rax, %rdi
callq 0x3230
movq 0x38(%rbx), %r12
cmpq 0x40(%rbx), %r12
je 0x602f
movq 0xdfd4(%rip), %r14      # 0x13fd0
leaq 0x924d(%rip), %r15      # 0xf250
movq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
movq %r14, %rdi
callq 0x3230
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3230
addq $0x28, %r12
cmpq 0x40(%rbx), %r12
jne 0x6003
movq 0xdf9a(%rip), %rdi      # 0x13fd0
leaq 0x9216(%rip), %rsi      # 0xf253
movl $0x9, %edx
callq 0x3230
movq 0x50(%rbx), %rdi
movq (%rdi), %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *0x10(%rax)
nop
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/AST.cpp
// Function: BlockAST::eval[abi:cxx11]()
std::string BlockAST::eval() {
    std::string str;
    for (auto it = statements.begin(); it != statements.end(); ++it) {
        str += (*it)->eval();
    }
    return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x30(%rbp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x10(%rsi), %r12
cmpq 0x18(%rsi), %r12
je 0x7a41
movq %rsi, %r14
leaq -0x40(%rbp), %r13
leaq -0x50(%rbp), %r15
movq (%r12), %rsi
movq (%rsi), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %rbx, %rdi
callq 0x30b0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x7a37
callq 0x31c0
addq $0x8, %r12
cmpq 0x18(%r14), %r12
jne 0x7a0c
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x7a69
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x7a69
callq 0x31c0
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x7a77
callq 0x31c0
movq %r14, %rdi
callq 0x3330
nop
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/./AST.h
// Function: IfExprAST::~IfExprAST()
~IfExprAST() {
        delete condAST;
        delete ifBlockAST;
        if (elseBlockAST) {
            delete elseBlockAST;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xa6b2(%rip), %rax      # 0x13c40
movq %rax, (%rdi)
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x95a0
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x95af
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x95c4
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parse()
bool Parser::parse() {
    getNextToken(); // start parsing
    ASTNode *newStat = nullptr;
    while (curToken.first != Token::END_OF_FILE) {
        newStat = this->parseStatement();
        if (newStat) {
            ASTList.push_back(newStat);
        }
    }
    for (auto it = ASTList.begin(); it != ASTList.end(); ++it) {
        #ifdef DEBUG
        std::string temp = (*it)->eval();
        std::cout<<temp<<"<<"<<std::endl;
        asmcode += temp;
        #else
        asmcode += (*it)->eval();
        #endif
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movslq 0x80(%rdi), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x80(%rdi)
movq (%rdi), %rcx
leaq (%rax,%rax,4), %rax
leaq 0x8(%rcx,%rax,8), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x58(%rdi)
addq $0x60, %rdi
callq 0x3130
movq $0x0, -0x30(%rbp)
cmpl $-0x1, 0x58(%rbx)
je 0x982b
leaq 0x18(%rbx), %r14
leaq -0x30(%rbp), %r15
movq %rbx, %rdi
callq 0x98a0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x9825
movq 0x20(%rbx), %rsi
cmpq 0x28(%rbx), %rsi
je 0x981a
movq %rax, (%rsi)
addq $0x8, 0x20(%rbx)
jmp 0x9825
movq %r14, %rdi
movq %r15, %rdx
callq 0xb060
cmpl $-0x1, 0x58(%rbx)
jne 0x97f5
movq 0x18(%rbx), %r12
cmpq 0x20(%rbx), %r12
je 0x9876
leaq 0x38(%rbx), %r14
leaq -0x40(%rbp), %r13
leaq -0x50(%rbp), %r15
movq (%r12), %rsi
movq (%rsi), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x30b0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x986c
callq 0x31c0
addq $0x8, %r12
cmpq 0x20(%rbx), %r12
jne 0x9841
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x9898
callq 0x31c0
movq %rbx, %rdi
callq 0x3330
// File: /workspace/github_cpp_makefile_star2_O1/KJTang[P]SimpleCompiler/Parser.cpp
// Function: Parser::parseStatement()
ASTNode *Parser::parseStatement() {
    #ifdef DEBUG
    std::cout<<curToken.second<<"\tparseStatement"<<std::endl;
    #endif
    switch (curToken.first) {
        case Token::KEYWORD_IF: {
            return this->parseIfExpr();
        }
        case Token::KEYWORD_WHILE: {
            return this->parseWhileExpr();
        }
        case Token::TYPE_INT: {
            return this->parseDeclaration();
        }
        case Token::KEYWORD_RET: {
            return this->parseFuncReturn();
        }
        default: {
            return this->parseExpression();
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x58(%rdi), %eax
addl $-0x6, %eax
cmpl $0x4, %eax
ja 0x98d7
leaq 0x5a06(%rip), %rcx      # 0xf2bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
popq %rbp
jmp 0x98de
popq %rbp
jmp 0x9a6c
popq %rbp
jmp 0x99ce
popq %rbp
jmp 0x9a46
popq %rbp
jmp 0x9b7a
nop