// File: /workspace/github_cpp_makefile_star2_O3/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
movl %edi, %ebp
xorl %edi, %edi
movq %rsi, %rbx
callq 0x21f0
movl %eax, %edi
callq 0x2220
leaq 0x40(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x2f54
movq 0x8(%rbx), %rsi
leaq 0x58(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x4e74
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x616b(%rip), %rsi      # 0xa26b
leaq 0x6179(%rip), %rdx      # 0xa280
leaq 0x20(%rsp), %rdi
callq 0x72fc
vxorps %xmm0, %xmm0, %xmm0
movq %rsp, %rdi
movq $0x0, 0x10(%rdi)
vmovaps %xmm0, (%rdi)
movl $0xf4240, %esi          # imm = 0xF4240
callq 0x4eb2
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
je 0x417a
xorl %ebx, %ebx
callq 0x2080
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rsi
cltq
xorl %edx, %edx
subq %rcx, %rsi
sarq $0x3, %rsi
divq %rsi
movq (%rsp), %rax
vmovsd (%rcx,%rdx,8), %xmm0
vmovsd %xmm0, (%rax,%rbx,8)
incq %rbx
movq 0x8(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rbx, %rcx
ja 0x413b
leaq 0x2a8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x60f4(%rip), %rsi      # 0xa281
leaq 0x60f0(%rip), %rdx      # 0xa284
leaq 0x298(%rsp), %rdi
callq 0x72fc
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
leaq 0x288(%rsp), %r12
movq %r12, -0x10(%r12)
addq %rsi, %rdx
leaq 0x278(%rsp), %rdi
callq 0x7266
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x268(%rsp), %r13
movq %r13, -0x10(%r13)
addq %rsi, %rdx
leaq 0x258(%rsp), %rdi
callq 0x7266
leaq 0x40(%rsp), %rdi
leaq 0x298(%rsp), %rdx
leaq 0x278(%rsp), %rcx
leaq 0x258(%rsp), %r8
movq %rsp, %rsi
callq 0x4ee3
movq 0x258(%rsp), %rdi
cmpq %r13, %rdi
je 0x4230
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x278(%rsp), %rdi
cmpq %r12, %rdi
je 0x424d
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x426a
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x248(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x6009(%rip), %rsi      # 0xa286
leaq 0x6007(%rip), %rdx      # 0xa28b
leaq 0x238(%rsp), %rdi
callq 0x72fc
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
leaq 0x228(%rsp), %r12
movq %r12, -0x10(%r12)
addq %rsi, %rdx
leaq 0x218(%rsp), %rdi
callq 0x7266
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x208(%rsp), %r13
movq %r13, -0x10(%r13)
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0x7266
leaq 0x40(%rsp), %rdi
leaq 0x238(%rsp), %rdx
leaq 0x218(%rsp), %rcx
leaq 0x1f8(%rsp), %r8
movq %rsp, %rsi
callq 0x5434
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4320
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x218(%rsp), %rdi
cmpq %r12, %rdi
je 0x433d
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x435a
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x1e8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5f18(%rip), %rsi      # 0xa285
leaq 0x5f17(%rip), %rdx      # 0xa28b
leaq 0x1d8(%rsp), %rdi
callq 0x72fc
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
leaq 0x1c8(%rsp), %r12
movq %r12, -0x10(%r12)
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0x7266
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x1a8(%rsp), %r13
movq %r13, -0x10(%r13)
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0x7266
leaq 0x40(%rsp), %rdi
leaq 0x1d8(%rsp), %rdx
leaq 0x1b8(%rsp), %rcx
leaq 0x198(%rsp), %r8
movq %rsp, %rsi
callq 0x5ab7
movq 0x198(%rsp), %rdi
cmpq %r13, %rdi
je 0x4410
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x1b8(%rsp), %rdi
cmpq %r12, %rdi
je 0x442d
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x444a
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x188(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5e2f(%rip), %rsi      # 0xa28c
leaq 0x5e2a(%rip), %rdx      # 0xa28e
leaq 0x178(%rsp), %rdi
callq 0x72fc
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
leaq 0x168(%rsp), %r12
movq %r12, -0x10(%r12)
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0x7266
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x148(%rsp), %r13
movq %r13, -0x10(%r13)
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x7266
leaq 0x40(%rsp), %rdi
leaq 0x178(%rsp), %rdx
leaq 0x158(%rsp), %rcx
leaq 0x138(%rsp), %r8
movq %rsp, %rsi
callq 0x613a
movq 0x138(%rsp), %rdi
cmpq %r13, %rdi
je 0x4500
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x158(%rsp), %rdi
cmpq %r12, %rdi
je 0x451d
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x453a
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x128(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5d42(%rip), %rsi      # 0xa28f
leaq 0x5d43(%rip), %rdx      # 0xa297
leaq 0x118(%rsp), %rdi
callq 0x72fc
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
leaq 0x108(%rsp), %r12
movq %r12, -0x10(%r12)
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0x7266
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0xe8(%rsp), %r13
movq %r13, -0x10(%r13)
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x7266
leaq 0x40(%rsp), %rdi
leaq 0x118(%rsp), %rdx
leaq 0xf8(%rsp), %rcx
leaq 0xd8(%rsp), %r8
movq %rsp, %rsi
callq 0x6690
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x45f0
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x460d
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x118(%rsp), %rdi
cmpq %r15, %rdi
je 0x462a
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0xc8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5c5b(%rip), %rsi      # 0xa298
leaq 0x5c57(%rip), %rdx      # 0xa29b
leaq 0xb8(%rsp), %rdi
callq 0x72fc
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
leaq 0xa8(%rsp), %r12
movq %r12, -0x10(%r12)
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x7266
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x7266
leaq 0x40(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
leaq 0x98(%rsp), %rcx
leaq 0x78(%rsp), %r8
movq %rsp, %rsi
callq 0x6be6
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x46d7
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x46f4
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4711
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2260
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4727
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x473e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4759
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x4770
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 0x78(%rsp), %rdi
movq %rax, %rbx
cmpq %r13, %rdi
je 0x47a6
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x47a6
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x47c8
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x47c8
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r15, %rdi
je 0x49f4
movq 0xc8(%rsp), %rsi
jmp 0x49e5
jmp 0x49f1
movq 0xd8(%rsp), %rdi
movq %rax, %rbx
cmpq %r13, %rdi
je 0x4810
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4810
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4832
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4832
movq %rax, %rbx
movq 0x118(%rsp), %rdi
cmpq %r15, %rdi
je 0x49f4
movq 0x128(%rsp), %rsi
jmp 0x49e5
jmp 0x49f1
movq 0x138(%rsp), %rdi
movq %rax, %rbx
cmpq %r13, %rdi
je 0x487a
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x487a
movq %rax, %rbx
movq 0x158(%rsp), %rdi
cmpq %r12, %rdi
je 0x489c
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x489c
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x49f4
movq 0x188(%rsp), %rsi
jmp 0x49e5
jmp 0x49f1
movq 0x198(%rsp), %rdi
movq %rax, %rbx
cmpq %r13, %rdi
je 0x48e4
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x48e4
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4906
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4906
movq %rax, %rbx
movq 0x1d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x49f4
movq 0x1e8(%rsp), %rsi
jmp 0x49e5
jmp 0x49f1
movq 0x1f8(%rsp), %rdi
movq %rax, %rbx
cmpq %r13, %rdi
je 0x494e
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x494e
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r12, %rdi
je 0x4970
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x4970
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r15, %rdi
je 0x49f4
movq 0x248(%rsp), %rsi
jmp 0x49e5
jmp 0x49f1
movq 0x258(%rsp), %rdi
movq %rax, %rbx
cmpq %r13, %rdi
je 0x49ae
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x49ae
movq %rax, %rbx
movq 0x278(%rsp), %rdi
cmpq %r12, %rdi
je 0x49d0
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x49d0
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r15, %rdi
je 0x49f4
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x2260
jmp 0x49f4
jmp 0x49f1
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4a0a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x4a21
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2260
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a3c
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2260
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x4a53
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2260
movq %rbx, %rdi
callq 0x2360
movq %rax, %rbx
jmp 0x4a21
movq %rax, %rbx
jmp 0x4a3c
nop