// File: /workspace/github_cpp_makefile_star2_O1/umatin[P]LogarithmicErrorRegression/benchmark.cpp
// Function: main
int main(int argc, char *argv[]){
    srand(time(NULL));

    std::vector<double> data = parse_arguments(argc, argv);

    std::string data_name = argv[1];
    std::string outfile = "results/benchmark.csv";
    int num_lookups = 1000000;
    
    std::vector<double> lookups;
    lookups.resize(num_lookups);
    for (int i = 0; i < lookups.size(); i++){
        lookups[i] = data[rand()%data.size()];
    }

    benchmark_regression<simple_linear_regression_stable>(data,lookups,"SLR",data_name,outfile);
    benchmark_regression<create_regression_tournament_selection<LogNorm>>(data,lookups,"LogTE",data_name,outfile);
    benchmark_regression<create_regression_tournament_selection<FastDiscreteLogNorm>>(data,lookups,"DLogTE",data_name,outfile);
    benchmark_regression<build_regression_direct_descent>(data,lookups,"2P",data_name,outfile);
    benchmark_regression<theil_sen>(data,lookups,"TheilSen",data_name,outfile);
    benchmark_regression<create_regression_optimal<L1Norm>>(data,lookups,"LAD",data_name,outfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rsi, %rbx
movl %edi, %ebp
xorl %edi, %edi
callq 0x21f0
movl %eax, %edi
callq 0x2220
leaq 0x40(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x2fb6
movq 0x8(%rbx), %rsi
leaq 0x58(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x4ec4
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x6149(%rip), %rsi      # 0xa2ab
leaq 0x6157(%rip), %rdx      # 0xa2c0
leaq 0x20(%rsp), %rdi
callq 0x7354
vxorps %xmm0, %xmm0, %xmm0
movq %rsp, %rdi
vmovaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0xf4240, %esi          # imm = 0xF4240
callq 0x4f02
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
je 0x41dc
xorl %ebx, %ebx
callq 0x2080
cltq
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rsi
subq %rcx, %rsi
sarq $0x3, %rsi
xorl %edx, %edx
divq %rsi
vmovsd (%rcx,%rdx,8), %xmm0
movq (%rsp), %rax
vmovsd %xmm0, (%rax,%rbx,8)
incq %rbx
movq 0x8(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rbx, %rcx
ja 0x419d
leaq 0x2a8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x60d2(%rip), %rsi      # 0xa2c1
leaq 0x60ce(%rip), %rdx      # 0xa2c4
leaq 0x298(%rsp), %rdi
callq 0x7354
leaq 0x288(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x278(%rsp), %rdi
callq 0x72c4
leaq 0x268(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x258(%rsp), %rdi
callq 0x72c4
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x298(%rsp), %rdx
leaq 0x278(%rsp), %rcx
leaq 0x258(%rsp), %r8
callq 0x4f33
movq 0x258(%rsp), %rdi
cmpq %r13, %rdi
je 0x4292
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x278(%rsp), %rdi
cmpq %r12, %rdi
je 0x42af
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x42cc
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x248(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5fe7(%rip), %rsi      # 0xa2c6
leaq 0x5fe5(%rip), %rdx      # 0xa2cb
leaq 0x238(%rsp), %rdi
callq 0x7354
leaq 0x228(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x218(%rsp), %rdi
callq 0x72c4
leaq 0x208(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0x72c4
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x238(%rsp), %rdx
leaq 0x218(%rsp), %rcx
leaq 0x1f8(%rsp), %r8
callq 0x5485
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4382
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x218(%rsp), %rdi
cmpq %r12, %rdi
je 0x439f
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x43bc
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x1e8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5ef6(%rip), %rsi      # 0xa2c5
leaq 0x5ef5(%rip), %rdx      # 0xa2cb
leaq 0x1d8(%rsp), %rdi
callq 0x7354
leaq 0x1c8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0x72c4
leaq 0x1a8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0x72c4
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x1d8(%rsp), %rdx
leaq 0x1b8(%rsp), %rcx
leaq 0x198(%rsp), %r8
callq 0x5b09
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
je 0x4472
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x1b8(%rsp), %rdi
cmpq %r12, %rdi
je 0x448f
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x44ac
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x188(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5e0d(%rip), %rsi      # 0xa2cc
leaq 0x5e08(%rip), %rdx      # 0xa2ce
leaq 0x178(%rsp), %rdi
callq 0x7354
leaq 0x168(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0x72c4
leaq 0x148(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x72c4
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x178(%rsp), %rdx
leaq 0x158(%rsp), %rcx
leaq 0x138(%rsp), %r8
callq 0x618d
movq 0x138(%rsp), %rdi
cmpq %r13, %rdi
je 0x4562
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x158(%rsp), %rdi
cmpq %r12, %rdi
je 0x457f
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x459c
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x128(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5d20(%rip), %rsi      # 0xa2cf
leaq 0x5d21(%rip), %rdx      # 0xa2d7
leaq 0x118(%rsp), %rdi
callq 0x7354
leaq 0x108(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0x72c4
leaq 0xe8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x72c4
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0x118(%rsp), %rdx
leaq 0xf8(%rsp), %rcx
leaq 0xd8(%rsp), %r8
callq 0x66e4
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4652
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x466f
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x118(%rsp), %rdi
cmpq %r15, %rdi
je 0x468c
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5c39(%rip), %rsi      # 0xa2d8
leaq 0x5c35(%rip), %rdx      # 0xa2db
leaq 0xb8(%rsp), %rdi
callq 0x7354
leaq 0xa8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x72c4
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x72c4
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
leaq 0xb8(%rsp), %rdx
leaq 0x98(%rsp), %rcx
leaq 0x78(%rsp), %r8
callq 0x6c3b
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x4739
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x4756
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4773
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2260
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4789
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x47a0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47bb
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x47d2
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
xorl %eax, %eax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x4808
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4808
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x482a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x482a
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a56
movq 0xc8(%rsp), %rsi
jmp 0x4a47
jmp 0x4a53
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4872
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4872
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4894
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4894
movq %rax, %rbx
movq 0x118(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a56
movq 0x128(%rsp), %rsi
jmp 0x4a47
jmp 0x4a53
movq %rax, %rbx
movq 0x138(%rsp), %rdi
cmpq %r13, %rdi
je 0x48dc
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x48dc
movq %rax, %rbx
movq 0x158(%rsp), %rdi
cmpq %r12, %rdi
je 0x48fe
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x48fe
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a56
movq 0x188(%rsp), %rsi
jmp 0x4a47
jmp 0x4a53
movq %rax, %rbx
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
je 0x4946
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4946
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4968
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4968
movq %rax, %rbx
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a56
movq 0x1e8(%rsp), %rsi
jmp 0x4a47
jmp 0x4a53
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x49b0
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x49b0
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r12, %rdi
je 0x49d2
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x49d2
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a56
movq 0x248(%rsp), %rsi
jmp 0x4a47
jmp 0x4a53
movq %rax, %rbx
movq 0x258(%rsp), %rdi
cmpq %r13, %rdi
je 0x4a10
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4a10
movq %rax, %rbx
movq 0x278(%rsp), %rdi
cmpq %r12, %rdi
je 0x4a32
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4a32
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a56
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4a56
jmp 0x4a53
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4a6c
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x4a83
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a9e
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x4ab5
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq %rbx, %rdi
callq 0x2360
movq %rax, %rbx
jmp 0x4a83
movq %rax, %rbx
jmp 0x4a9e
nop