#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
struct pareto_element {
  int dummy;
};

/* Variables and functions */
scalar_t__ check_instance();
int **crossover(int **, int, int, int);
int get_h_size(char *);
int get_l_size(char *);
int get_v_size(char *);
int **initialization(int, int, int, int **, int);
int **load_G(int, int, char *);
int **load_H(int, char *);
int *load_K(int, char *);
int **load_T(int, char *);
int **load_V(int, char *);
int **load_network_utilization(int **, int **, int **, int, int, int);
float **load_objectives(int **, int ***, int **, int **, int **, int, int, int,
                        int *, int **, int);
int ***load_utilization(int **, int **, int **, int, int, int);
int **mutation(int **, int **, int, int, int);
int *non_dominated_sorting(float **, int);
scalar_t__ pareto_insert(struct pareto_element *, int, int *, float *);
int **population_evolution(int **, int **, float **, float **, int *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int **reparation(int **, int ***, int **, int **, int, int, int, int, int *,
                 int **, int, int **, int **);
int /*<<< orphan*/ report_best_population(struct pareto_element *, int **,
                                          int **, int **, int **, int, int,
                                          int);
int selection(int *, int, double);
int /*<<< orphan*/ srand(unsigned int);
int /*<<< orphan*/ srand48(scalar_t__);
scalar_t__ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  if (argc == 1) {
    printf("[ERROR] usage: %s datacenter_file\n", argv[0]);
    return 1;
  } else {
    int generation = 0;
    int h_size = get_h_size(argv[1]);
    int v_size = get_v_size(argv[1]);
    int l_size = get_l_size(argv[1]);
    int **H = load_H(h_size, argv[1]);
    int **V = load_V(v_size, argv[1]);
    int **T = load_T(v_size, argv[1]);
    int **G = load_G(h_size, l_size, argv[1]);
    int *K = load_K(l_size, argv[1]);
    srand((unsigned int)time(NULL));
    srand48(time(NULL));
    if (check_instance() != 0) {
      printf("\nThe problem has no solution, call Amazon EC2\n");
      return 1;
    }
    int **P = initialization(100, h_size, v_size, V, 1);
    int ***utilization_P = load_utilization(P, H, V, 100, h_size, v_size);
    int **network_utilization_P =
        load_network_utilization(P, G, T, 100, l_size, v_size);
    P = reparation(P, utilization_P, H, V, 100, h_size, v_size, 1, K,
                   network_utilization_P, l_size, G, T);
    float **objectives_functions_P =
        load_objectives(P, utilization_P, H, V, T, 100, h_size, v_size, K,
                        network_utilization_P, l_size);
    int *fronts_P = non_dominated_sorting(objectives_functions_P, 100);
    struct pareto_element *pareto_head = NULL;
    int iterator_individual;
    for (iterator_individual = 0; iterator_individual < 100;
         iterator_individual++) {
      if (fronts_P[iterator_individual] == 1) {
        pareto_head = (struct pareto_element *)pareto_insert(
            pareto_head, v_size, P[iterator_individual],
            objectives_functions_P[iterator_individual]);
      }
    }
    int father, mother;
    int **Q;
    int ***utilization_Q;
    int **network_utilization_Q;
    float **objectives_functions_Q;
    int *fronts_Q;
    while (generation < 1) {
      generation++;
      Q = initialization(100, h_size, v_size, V, 1);
      father = selection(fronts_P, 100, 0.5);
      mother = selection(fronts_P, 100, 0.5);
      Q = crossover(Q, father, mother, v_size);
      Q = mutation(Q, V, 100, h_size, v_size);
      utilization_Q = load_utilization(Q, H, V, 100, h_size, v_size);
      network_utilization_Q =
          load_network_utilization(Q, G, T, 100, l_size, v_size);
      Q = reparation(Q, utilization_Q, H, V, 100, h_size, v_size, 1, K,
                     network_utilization_Q, l_size, G, T);
      objectives_functions_Q =
          load_objectives(Q, utilization_Q, H, V, T, 100, h_size, v_size, K,
                          network_utilization_Q, l_size);
      fronts_Q = non_dominated_sorting(objectives_functions_Q, 100);
      for (iterator_individual = 0; iterator_individual < 100;
           iterator_individual++) {
        if (fronts_Q[iterator_individual] == 1) {
          pareto_head = (struct pareto_element *)pareto_insert(
              pareto_head, v_size, Q[iterator_individual],
              objectives_functions_Q[iterator_individual]);
        }
      }
      P = population_evolution(P, Q, objectives_functions_P,
                               objectives_functions_Q, fronts_P, 100, v_size);
    }
    report_best_population(pareto_head, G, T, H, V, v_size, h_size, l_size);
    printf("\n");
    return 0;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0xe8,%rsp
movl   $0x0,-0x1c(%rbp)
mov    %edi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
cmpl   $0x1,-0x20(%rbp)
jne    12d9 <main+0x49>
mov    -0x28(%rbp),%rax
mov    (%rax),%rsi
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x1,-0x1c(%rbp)
jmp    1850 <main+0x5c0>
movl   $0x0,-0x2c(%rbp)
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rdi
call   1140 <get_h_size@plt>
mov    %eax,-0x30(%rbp)
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rdi
call   10e0 <get_v_size@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <get_l_size@plt>
mov    %eax,-0x38(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rsi
call   11b0 <load_H@plt>
mov    %rax,-0x40(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rsi
call   11a0 <load_V@plt>
mov    %rax,-0x48(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rsi
call   1160 <load_T@plt>
mov    %rax,-0x50(%rbp)
mov    -0x30(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rdx
call   1100 <load_G@plt>
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rsi
call   10c0 <load_K@plt>
mov    %rax,-0x60(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1110 <time@plt>
mov    %eax,%edi
call   10d0 <srand@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1110 <time@plt>
mov    %rax,%rdi
call   1150 <srand48@plt>
mov    $0x0,%al
call   10b0 <check_instance@plt>
cmp    $0x0,%rax
je     13c3 <main+0x133>
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x1,-0x1c(%rbp)
jmp    1850 <main+0x5c0>
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x48(%rbp),%rcx
mov    $0x64,%edi
mov    $0x1,%r8d
call   1030 <initialization@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x30(%rbp),%r8d
mov    -0x34(%rbp),%r9d
mov    $0x64,%ecx
call   1080 <load_utilization@plt>
mov    %rax,-0x70(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x38(%rbp),%r8d
mov    -0x34(%rbp),%r9d
mov    $0x64,%ecx
call   10f0 <load_network_utilization@plt>
mov    %rax,-0x78(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x70(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x30(%rbp),%r9d
mov    -0x34(%rbp),%r15d
mov    -0x60(%rbp),%r14
mov    -0x78(%rbp),%rbx
mov    -0x38(%rbp),%r11d
mov    -0x58(%rbp),%r10
mov    -0x50(%rbp),%rax
mov    $0x64,%r8d
mov    %r15d,(%rsp)
movl   $0x1,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1130 <reparation@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x70(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x30(%rbp),%r14d
mov    -0x34(%rbp),%ebx
mov    -0x60(%rbp),%r11
mov    -0x78(%rbp),%r10
mov    -0x38(%rbp),%eax
mov    $0x64,%r9d
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1180 <load_objectives@plt>
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rdi
mov    $0x64,%esi
call   1040 <non_dominated_sorting@plt>
mov    %rax,-0x88(%rbp)
movq   $0x0,-0x90(%rbp)
movl   $0x0,-0x94(%rbp)
cmpl   $0x64,-0x94(%rbp)
jge    156c <main+0x2dc>
mov    -0x88(%rbp),%rax
movslq -0x94(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    1553 <main+0x2c3>
mov    -0x90(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x68(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x80(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
call   1090 <pareto_insert@plt>
mov    %rax,-0x90(%rbp)
jmp    1558 <main+0x2c8>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    14fa <main+0x26a>
jmp    1571 <main+0x2e1>
cmpl   $0x1,-0x2c(%rbp)
jge    180c <main+0x57c>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x48(%rbp),%rcx
mov    $0x64,%edi
mov    $0x1,%r8d
call   1030 <initialization@plt>
mov    %rax,-0xa8(%rbp)
mov    -0x88(%rbp),%rdi
mov    $0x64,%esi
movsd  0xa47(%rip),%xmm0
call   1050 <selection@plt>
mov    %eax,-0x98(%rbp)
mov    -0x88(%rbp),%rdi
mov    $0x64,%esi
movsd  0xa28(%rip),%xmm0
call   1050 <selection@plt>
mov    %eax,-0x9c(%rbp)
mov    -0xa8(%rbp),%rdi
mov    -0x98(%rbp),%esi
mov    -0x9c(%rbp),%edx
mov    -0x34(%rbp),%ecx
call   1190 <crossover@plt>
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x30(%rbp),%ecx
mov    -0x34(%rbp),%r8d
mov    $0x64,%edx
call   1120 <mutation@plt>
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x30(%rbp),%r8d
mov    -0x34(%rbp),%r9d
mov    $0x64,%ecx
call   1080 <load_utilization@plt>
mov    %rax,-0xb0(%rbp)
mov    -0xa8(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x38(%rbp),%r8d
mov    -0x34(%rbp),%r9d
mov    $0x64,%ecx
call   10f0 <load_network_utilization@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xa8(%rbp),%rdi
mov    -0xb0(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x30(%rbp),%r9d
mov    -0x34(%rbp),%r15d
mov    -0x60(%rbp),%r14
mov    -0xb8(%rbp),%rbx
mov    -0x38(%rbp),%r11d
mov    -0x58(%rbp),%r10
mov    -0x50(%rbp),%rax
mov    $0x64,%r8d
mov    %r15d,(%rsp)
movl   $0x1,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1130 <reparation@plt>
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rdi
mov    -0xb0(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x30(%rbp),%r14d
mov    -0x34(%rbp),%ebx
mov    -0x60(%rbp),%r11
mov    -0xb8(%rbp),%r10
mov    -0x38(%rbp),%eax
mov    $0x64,%r9d
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1180 <load_objectives@plt>
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rdi
mov    $0x64,%esi
call   1040 <non_dominated_sorting@plt>
mov    %rax,-0xc8(%rbp)
movl   $0x0,-0x94(%rbp)
cmpl   $0x64,-0x94(%rbp)
jge    17d5 <main+0x545>
mov    -0xc8(%rbp),%rax
movslq -0x94(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    17bc <main+0x52c>
mov    -0x90(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0xa8(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0xc0(%rbp),%rax
movslq -0x94(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
call   1090 <pareto_insert@plt>
mov    %rax,-0x90(%rbp)
jmp    17c1 <main+0x531>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    175d <main+0x4cd>
mov    -0x68(%rbp),%rdi
mov    -0xa8(%rbp),%rsi
mov    -0x80(%rbp),%rdx
mov    -0xc0(%rbp),%rcx
mov    -0x88(%rbp),%r8
mov    -0x34(%rbp),%eax
mov    $0x64,%r9d
mov    %eax,(%rsp)
call   1170 <population_evolution@plt>
mov    %rax,-0x68(%rbp)
jmp    1571 <main+0x2e1>
mov    -0x90(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x34(%rbp),%r9d
mov    -0x30(%rbp),%r10d
mov    -0x38(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <report_best_population@plt>
lea    0x816(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%rbp
cmp    $0x1,%edi
jne    12e2 <main+0x32>
mov    0x0(%rbp),%rsi
lea    0xd37(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    $0x1,%eax
jmp    16ca <main+0x41a>
mov    0x8(%rbp),%rdi
call   1160 <get_h_size@plt>
mov    %eax,%r14d
mov    0x8(%rbp),%rdi
call   1100 <get_v_size@plt>
mov    %eax,%ebx
mov    0x8(%rbp),%rdi
call   1080 <get_l_size@plt>
mov    %eax,%r12d
mov    0x8(%rbp),%rsi
mov    %r14d,%edi
call   11d0 <load_H@plt>
mov    %rax,0x10(%rsp)
mov    0x8(%rbp),%rsi
mov    %ebx,%edi
call   11c0 <load_V@plt>
mov    %rax,%r13
mov    0x8(%rbp),%rsi
mov    %ebx,%edi
call   1180 <load_T@plt>
mov    %rax,0x20(%rsp)
mov    0x8(%rbp),%rdx
mov    %r14d,%edi
mov    %r12d,%esi
call   1120 <load_G@plt>
mov    %rax,%r15
mov    0x8(%rbp),%rsi
mov    %r12,0x40(%rsp)
mov    %r12d,%edi
call   10e0 <load_K@plt>
mov    %rax,%rbp
xor    %edi,%edi
call   1130 <time@plt>
mov    %eax,%edi
call   10f0 <srand@plt>
xor    %edi,%edi
call   1130 <time@plt>
mov    %rax,%rdi
call   1170 <srand48@plt>
xor    %eax,%eax
call   10d0 <check_instance@plt>
test   %rax,%rax
je     1399 <main+0xe9>
lea    0xca1(%rip),%rdi
call   1070 <puts@plt>
mov    $0x1,%eax
jmp    16ca <main+0x41a>
mov    $0x64,%edi
mov    %r14d,%esi
mov    %ebx,%edx
mov    %r13,%rcx
mov    $0x1,%r8d
call   1030 <initialization@plt>
mov    %rbp,0x48(%rsp)
mov    %r13,%rbp
mov    %r15,%r13
mov    %r15,0x38(%rsp)
mov    %rax,%r15
mov    %rax,%rdi
mov    0x10(%rsp),%r12
mov    %r12,%rsi
mov    %rbp,%rdx
mov    $0x64,%ecx
mov    %r14d,%r8d
mov    %ebx,%r9d
call   10a0 <load_utilization@plt>
mov    %rbp,0x8(%rsp)
mov    %rax,0x30(%rsp)
mov    %r15,%rdi
mov    %r13,%rsi
mov    0x20(%rsp),%rbp
mov    %rbp,%rdx
mov    $0x64,%ecx
mov    0x40(%rsp),%r13
mov    %r13d,%r8d
mov    %r14,0x18(%rsp)
mov    %ebx,%r9d
call   1110 <load_network_utilization@plt>
mov    %rax,0x28(%rsp)
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x38(%rsp),%r15
mov    %r15,%rsi
mov    %r12,%rdx
mov    0x10(%rsp),%rcx
mov    $0x64,%r8d
mov    %r14d,%r9d
push   %rbp
push   0x48(%rsp)
push   %r13
mov    %r13,%r14
push   %rax
mov    0x70(%rsp),%r13
push   %r13
push   $0x1
push   %rbx
call   1150 <reparation@plt>
add    $0x38,%rsp
mov    %rax,0x58(%rsp)
mov    %rax,%rdi
mov    %r15,%rsi
mov    0x10(%rsp),%rax
mov    %r12,%rdx
mov    %rax,%r12
mov    %rax,%rcx
mov    %rbp,%r8
mov    $0x64,%r9d
push   %r14
push   0x38(%rsp)
push   %r13
push   %rbx
mov    0x40(%rsp),%r14
push   %r14
call   11a0 <load_objectives@plt>
add    $0x30,%rsp
mov    %rax,0x28(%rsp)
mov    %rax,%rdi
mov    $0x64,%esi
call   1050 <non_dominated_sorting@plt>
mov    %rax,%r13
xor    %ebp,%ebp
xor    %r15d,%r15d
jmp    14ba <main+0x20a>
xchg   %ax,%ax
add    $0x1,%rbp
cmp    $0x64,%rbp
je     14e3 <main+0x233>
cmpl   $0x1,0x0(%r13,%rbp,4)
jne    14b0 <main+0x200>
mov    0x50(%rsp),%rax
mov    (%rax,%rbp,8),%rdx
mov    0x28(%rsp),%rax
mov    (%rax,%rbp,8),%rcx
mov    %r15,%rdi
mov    %ebx,%esi
call   10b0 <pareto_insert@plt>
mov    %rax,%r15
jmp    14b0 <main+0x200>
mov    $0x64,%edi
mov    %r14d,%esi
mov    %ebx,%edx
mov    %r12,%rcx
mov    $0x1,%r8d
call   1030 <initialization@plt>
mov    %rax,%r12
movsd  0xafa(%rip),%xmm0
mov    %r13,%rdi
mov    $0x64,%esi
call   1060 <selection@plt>
mov    %eax,%ebp
mov    %r13,0x30(%rsp)
mov    %r13,%rdi
mov    $0x64,%esi
movsd  0xad6(%rip),%xmm0
call   1060 <selection@plt>
mov    %r12,%rdi
mov    %ebp,%esi
mov    %eax,%edx
mov    %ebx,%ecx
call   11b0 <crossover@plt>
mov    %rax,%rdi
mov    0x8(%rsp),%rbp
mov    %rbp,%rsi
mov    $0x64,%edx
mov    %r14d,%ecx
mov    %ebx,%r8d
call   1140 <mutation@plt>
mov    %rax,%r12
mov    %rax,%rdi
mov    0x10(%rsp),%rsi
mov    %rbp,%rdx
mov    $0x64,%ecx
mov    %r14d,%r8d
mov    %ebx,%r9d
call   10a0 <load_utilization@plt>
mov    %rax,%rbp
mov    %rax,0x60(%rsp)
mov    %r12,%rdi
mov    0x38(%rsp),%r14
mov    %r14,%rsi
mov    0x20(%rsp),%rdx
mov    $0x64,%ecx
mov    0x40(%rsp),%r13
mov    %r13d,%r8d
mov    %ebx,%r9d
call   1110 <load_network_utilization@plt>
mov    %rax,0x58(%rsp)
sub    $0x8,%rsp
mov    %r12,%rdi
mov    %rbp,%rsi
mov    0x18(%rsp),%rdx
mov    0x10(%rsp),%rcx
mov    $0x64,%r8d
mov    0x20(%rsp),%r9
mov    0x28(%rsp),%rbp
push   %rbp
push   %r14
push   %r13
push   %rax
mov    0x70(%rsp),%r12
push   %r12
push   $0x1
push   %rbx
call   1150 <reparation@plt>
add    $0x40,%rsp
mov    %rax,%r14
sub    $0x8,%rsp
mov    %rax,%rdi
mov    0x68(%rsp),%rsi
mov    0x18(%rsp),%rdx
mov    0x10(%rsp),%rcx
mov    %rbp,%r8
mov    $0x64,%r9d
push   %r13
push   0x68(%rsp)
push   %r12
mov    %rbx,%r13
push   %rbx
push   0x40(%rsp)
call   11a0 <load_objectives@plt>
add    $0x30,%rsp
mov    %rax,%r12
mov    %rax,%rdi
mov    $0x64,%esi
call   1050 <non_dominated_sorting@plt>
mov    %rax,%rbp
xor    %ebx,%ebx
jmp    164a <main+0x39a>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x64,%rbx
je     1669 <main+0x3b9>
cmpl   $0x1,0x0(%rbp,%rbx,4)
jne    1640 <main+0x390>
mov    (%r14,%rbx,8),%rdx
mov    (%r12,%rbx,8),%rcx
mov    %r15,%rdi
mov    %r13d,%esi
call   10b0 <pareto_insert@plt>
mov    %rax,%r15
jmp    1640 <main+0x390>
sub    $0x8,%rsp
mov    0x58(%rsp),%rdi
mov    %r14,%rsi
mov    0x30(%rsp),%rdx
mov    %r12,%rcx
mov    0x38(%rsp),%r8
mov    $0x64,%r9d
push   %r13
call   1190 <population_evolution@plt>
add    $0x10,%rsp
mov    %r15,%rdi
mov    0x38(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    0x10(%rsp),%rcx
mov    0x8(%rsp),%r8
mov    %r13d,%r9d
push   0x40(%rsp)
push   0x20(%rsp)
call   1090 <report_best_population@plt>
add    $0x10,%rsp
mov    $0xa,%edi
call   1040 <putchar@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.pareto_element = type { i32 }
@.str = [35 x i8] c"[ERROR] usage: %s datacenter_file\0A\00"
@.str.1 = [47 x i8] c"\0AThe problem has no solution, call Amazon EC2\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32**
%11 = alloca i32**
%12 = alloca i32**
%13 = alloca i32**
%14 = alloca i32*
%15 = alloca i32**
%16 = alloca i32***
%17 = alloca i32**
%18 = alloca float**
%19 = alloca i32*
%20 = alloca %struct.pareto_element*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32**
%25 = alloca i32***
%26 = alloca i32**
%27 = alloca float**
%28 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%29 = load i32, i32* %4
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %36
31: ; preds = %2
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 0
%34 = load i8*, i8** %33
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* %34)
store i32 1, i32* %3
br label %265
36: ; preds = %2
store i32 0, i32* %6
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i32 @get_h_size(i8* %39)
store i32 %40, i32* %7
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 1
%43 = load i8*, i8** %42
%44 = call i32 @get_v_size(i8* %43)
store i32 %44, i32* %8
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = call i32 @get_l_size(i8* %47)
store i32 %48, i32* %9
%49 = load i32, i32* %7
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 1
%52 = load i8*, i8** %51
%53 = call i32** @load_H(i32 %49, i8* %52)
store i32** %53, i32*** %10
%54 = load i32, i32* %8
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 1
%57 = load i8*, i8** %56
%58 = call i32** @load_V(i32 %54, i8* %57)
store i32** %58, i32*** %11
%59 = load i32, i32* %8
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 1
%62 = load i8*, i8** %61
%63 = call i32** @load_T(i32 %59, i8* %62)
store i32** %63, i32*** %12
%64 = load i32, i32* %7
%65 = load i32, i32* %9
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i64 1
%68 = load i8*, i8** %67
%69 = call i32** @load_G(i32 %64, i32 %65, i8* %68)
store i32** %69, i32*** %13
%70 = load i32, i32* %9
%71 = load i8**, i8*** %5
%72 = getelementptr inbounds i8*, i8** %71, i64 1
%73 = load i8*, i8** %72
%74 = call i32* @load_K(i32 %70, i8* %73)
store i32* %74, i32** %14
%75 = call i64 @time(i32* null)
%76 = trunc i64 %75 to i32
%77 = call i32 @srand(i32 %76)
%78 = call i64 @time(i32* null)
%79 = call i32 @srand48(i64 %78)
%80 = call i64 (...) @check_instance()
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %36
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %265
84: ; preds = %36
%85 = load i32, i32* %7
%86 = load i32, i32* %8
%87 = load i32**, i32*** %11
%88 = call i32** @initialization(i32 100, i32 %85, i32 %86, i32** %87, i32 1)
store i32** %88, i32*** %15
%89 = load i32**, i32*** %15
%90 = load i32**, i32*** %10
%91 = load i32**, i32*** %11
%92 = load i32, i32* %7
%93 = load i32, i32* %8
%94 = call i32*** @load_utilization(i32** %89, i32** %90, i32** %91, i32 100, i32 %92, i32 %93)
store i32*** %94, i32**** %16
%95 = load i32**, i32*** %15
%96 = load i32**, i32*** %13
%97 = load i32**, i32*** %12
%98 = load i32, i32* %9
%99 = load i32, i32* %8
%100 = call i32** @load_network_utilization(i32** %95, i32** %96, i32** %97, i32 100, i32 %98, i32 %99)
store i32** %100, i32*** %17
%101 = load i32**, i32*** %15
%102 = load i32***, i32**** %16
%103 = load i32**, i32*** %10
%104 = load i32**, i32*** %11
%105 = load i32, i32* %7
%106 = load i32, i32* %8
%107 = load i32*, i32** %14
%108 = load i32**, i32*** %17
%109 = load i32, i32* %9
%110 = load i32**, i32*** %13
%111 = load i32**, i32*** %12
%112 = call i32** @reparation(i32** %101, i32*** %102, i32** %103, i32** %104, i32 100, i32 %105, i32 %106, i32 1, i32* %107, i32** %108, i32 %109, i32** %110, i32** %111)
store i32** %112, i32*** %15
%113 = load i32**, i32*** %15
%114 = load i32***, i32**** %16
%115 = load i32**, i32*** %10
%116 = load i32**, i32*** %11
%117 = load i32**, i32*** %12
%118 = load i32, i32* %7
%119 = load i32, i32* %8
%120 = load i32*, i32** %14
%121 = load i32**, i32*** %17
%122 = load i32, i32* %9
%123 = call float** @load_objectives(i32** %113, i32*** %114, i32** %115, i32** %116, i32** %117, i32 100, i32 %118, i32 %119, i32* %120, i32** %121, i32 %122)
store float** %123, float*** %18
%124 = load float**, float*** %18
%125 = call i32* @non_dominated_sorting(float** %124, i32 100)
store i32* %125, i32** %19
store %struct.pareto_element* null, %struct.pareto_element** %20
store i32 0, i32* %21
br label %126
126: ; preds = %152, %84
%127 = load i32, i32* %21
%128 = icmp slt i32 %127, 100
br i1 %128, label %129, label %155
129: ; preds = %126
%130 = load i32*, i32** %19
%131 = load i32, i32* %21
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i32, i32* %130, i64 %132
%134 = load i32, i32* %133
%135 = icmp eq i32 %134, 1
br i1 %135, label %136, label %151
136: ; preds = %129
%137 = load %struct.pareto_element*, %struct.pareto_element** %20
%138 = load i32, i32* %8
%139 = load i32**, i32*** %15
%140 = load i32, i32* %21
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i32*, i32** %139, i64 %141
%143 = load i32*, i32** %142
%144 = load float**, float*** %18
%145 = load i32, i32* %21
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds float*, float** %144, i64 %146
%148 = load float*, float** %147
%149 = call i64 @pareto_insert(%struct.pareto_element* %137, i32 %138, i32* %143, float* %148)
%150 = inttoptr i64 %149 to %struct.pareto_element*
store %struct.pareto_element* %150, %struct.pareto_element** %20
br label %151
151: ; preds = %136, %129
br label %152
152: ; preds = %151
%153 = load i32, i32* %21
%154 = add nsw i32 %153, 1
store i32 %154, i32* %21
br label %126
155: ; preds = %126
br label %156
156: ; preds = %246, %155
%157 = load i32, i32* %6
%158 = icmp slt i32 %157, 1
br i1 %158, label %159, label %254
159: ; preds = %156
%160 = load i32, i32* %6
%161 = add nsw i32 %160, 1
store i32 %161, i32* %6
%162 = load i32, i32* %7
%163 = load i32, i32* %8
%164 = load i32**, i32*** %11
%165 = call i32** @initialization(i32 100, i32 %162, i32 %163, i32** %164, i32 1)
store i32** %165, i32*** %24
%166 = load i32*, i32** %19
%167 = call i32 @selection(i32* %166, i32 100, double 5.000000e-01)
store i32 %167, i32* %22
%168 = load i32*, i32** %19
%169 = call i32 @selection(i32* %168, i32 100, double 5.000000e-01)
store i32 %169, i32* %23
%170 = load i32**, i32*** %24
%171 = load i32, i32* %22
%172 = load i32, i32* %23
%173 = load i32, i32* %8
%174 = call i32** @crossover(i32** %170, i32 %171, i32 %172, i32 %173)
store i32** %174, i32*** %24
%175 = load i32**, i32*** %24
%176 = load i32**, i32*** %11
%177 = load i32, i32* %7
%178 = load i32, i32* %8
%179 = call i32** @mutation(i32** %175, i32** %176, i32 100, i32 %177, i32 %178)
store i32** %179, i32*** %24
%180 = load i32**, i32*** %24
%181 = load i32**, i32*** %10
%182 = load i32**, i32*** %11
%183 = load i32, i32* %7
%184 = load i32, i32* %8
%185 = call i32*** @load_utilization(i32** %180, i32** %181, i32** %182, i32 100, i32 %183, i32 %184)
store i32*** %185, i32**** %25
%186 = load i32**, i32*** %24
%187 = load i32**, i32*** %13
%188 = load i32**, i32*** %12
%189 = load i32, i32* %9
%190 = load i32, i32* %8
%191 = call i32** @load_network_utilization(i32** %186, i32** %187, i32** %188, i32 100, i32 %189, i32 %190)
store i32** %191, i32*** %26
%192 = load i32**, i32*** %24
%193 = load i32***, i32**** %25
%194 = load i32**, i32*** %10
%195 = load i32**, i32*** %11
%196 = load i32, i32* %7
%197 = load i32, i32* %8
%198 = load i32*, i32** %14
%199 = load i32**, i32*** %26
%200 = load i32, i32* %9
%201 = load i32**, i32*** %13
%202 = load i32**, i32*** %12
%203 = call i32** @reparation(i32** %192, i32*** %193, i32** %194, i32** %195, i32 100, i32 %196, i32 %197, i32 1, i32* %198, i32** %199, i32 %200, i32** %201, i32** %202)
store i32** %203, i32*** %24
%204 = load i32**, i32*** %24
%205 = load i32***, i32**** %25
%206 = load i32**, i32*** %10
%207 = load i32**, i32*** %11
%208 = load i32**, i32*** %12
%209 = load i32, i32* %7
%210 = load i32, i32* %8
%211 = load i32*, i32** %14
%212 = load i32**, i32*** %26
%213 = load i32, i32* %9
%214 = call float** @load_objectives(i32** %204, i32*** %205, i32** %206, i32** %207, i32** %208, i32 100, i32 %209, i32 %210, i32* %211, i32** %212, i32 %213)
store float** %214, float*** %27
%215 = load float**, float*** %27
%216 = call i32* @non_dominated_sorting(float** %215, i32 100)
store i32* %216, i32** %28
store i32 0, i32* %21
br label %217
217: ; preds = %243, %159
%218 = load i32, i32* %21
%219 = icmp slt i32 %218, 100
br i1 %219, label %220, label %246
220: ; preds = %217
%221 = load i32*, i32** %28
%222 = load i32, i32* %21
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds i32, i32* %221, i64 %223
%225 = load i32, i32* %224
%226 = icmp eq i32 %225, 1
br i1 %226, label %227, label %242
227: ; preds = %220
%228 = load %struct.pareto_element*, %struct.pareto_element** %20
%229 = load i32, i32* %8
%230 = load i32**, i32*** %24
%231 = load i32, i32* %21
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds i32*, i32** %230, i64 %232
%234 = load i32*, i32** %233
%235 = load float**, float*** %27
%236 = load i32, i32* %21
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds float*, float** %235, i64 %237
%239 = load float*, float** %238
%240 = call i64 @pareto_insert(%struct.pareto_element* %228, i32 %229, i32* %234, float* %239)
%241 = inttoptr i64 %240 to %struct.pareto_element*
store %struct.pareto_element* %241, %struct.pareto_element** %20
br label %242
242: ; preds = %227, %220
br label %243
243: ; preds = %242
%244 = load i32, i32* %21
%245 = add nsw i32 %244, 1
store i32 %245, i32* %21
br label %217
246: ; preds = %217
%247 = load i32**, i32*** %15
%248 = load i32**, i32*** %24
%249 = load float**, float*** %18
%250 = load float**, float*** %27
%251 = load i32*, i32** %19
%252 = load i32, i32* %8
%253 = call i32** @population_evolution(i32** %247, i32** %248, float** %249, float** %250, i32* %251, i32 100, i32 %252)
store i32** %253, i32*** %15
br label %156
254: ; preds = %156
%255 = load %struct.pareto_element*, %struct.pareto_element** %20
%256 = load i32**, i32*** %13
%257 = load i32**, i32*** %12
%258 = load i32**, i32*** %10
%259 = load i32**, i32*** %11
%260 = load i32, i32* %8
%261 = load i32, i32* %7
%262 = load i32, i32* %9
%263 = call i32 @report_best_population(%struct.pareto_element* %255, i32** %256, i32** %257, i32** %258, i32** %259, i32 %260, i32 %261, i32 %262)
%264 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %265
265: ; preds = %254, %82, %31
%266 = load i32, i32* %3
ret i32 %266
}

LLVM IR (-O2):
%struct.pareto_element = type { i32 }
@.str = [35 x i8] c"[ERROR] usage: %s datacenter_file\0A\00"
@str = [46 x i8] c"\0AThe problem has no solution, call Amazon EC2\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* %5)
br label %90
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i32 @get_h_size(i8* %9)
%11 = load i8*, i8** %8
%12 = tail call i32 @get_v_size(i8* %11)
%13 = load i8*, i8** %8
%14 = tail call i32 @get_l_size(i8* %13)
%15 = load i8*, i8** %8
%16 = tail call i32** @load_H(i32 %10, i8* %15)
%17 = load i8*, i8** %8
%18 = tail call i32** @load_V(i32 %12, i8* %17)
%19 = load i8*, i8** %8
%20 = tail call i32** @load_T(i32 %12, i8* %19)
%21 = load i8*, i8** %8
%22 = tail call i32** @load_G(i32 %10, i32 %14, i8* %21)
%23 = load i8*, i8** %8
%24 = tail call i32* @load_K(i32 %14, i8* %23)
%25 = tail call i64 @time(i32* null)
%26 = trunc i64 %25 to i32
%27 = tail call i32 @srand(i32 %26)
%28 = tail call i64 @time(i32* null)
%29 = tail call i32 @srand48(i64 %28)
%30 = tail call i64 (...) @check_instance()
%31 = icmp eq i64 %30, 0
br i1 %31, label %34, label %32
32: ; preds = %7
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
br label %90
34: ; preds = %7
%35 = tail call i32** @initialization(i32 100, i32 %10, i32 %12, i32** %18, i32 1)
%36 = tail call i32*** @load_utilization(i32** %35, i32** %16, i32** %18, i32 100, i32 %10, i32 %12)
%37 = tail call i32** @load_network_utilization(i32** %35, i32** %22, i32** %20, i32 100, i32 %14, i32 %12)
%38 = tail call i32** @reparation(i32** %35, i32*** %36, i32** %16, i32** %18, i32 100, i32 %10, i32 %12, i32 1, i32* %24, i32** %37, i32 %14, i32** %22, i32** %20)
%39 = tail call float** @load_objectives(i32** %38, i32*** %36, i32** %16, i32** %18, i32** %20, i32 100, i32 %10, i32 %12, i32* %24, i32** %37, i32 %14)
%40 = tail call i32* @non_dominated_sorting(float** %39, i32 100)
br label %41
41: ; preds = %34, %54
%42 = phi i64 [ 0, %34 ], [ %56, %54 ]
%43 = phi %struct.pareto_element* [ null, %34 ], [ %55, %54 ]
%44 = getelementptr inbounds i32, i32* %40, i64 %42
%45 = load i32, i32* %44
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %54
47: ; preds = %41
%48 = getelementptr inbounds i32*, i32** %38, i64 %42
%49 = load i32*, i32** %48
%50 = getelementptr inbounds float*, float** %39, i64 %42
%51 = load float*, float** %50
%52 = tail call i64 @pareto_insert(%struct.pareto_element* %43, i32 %12, i32* %49, float* %51)
%53 = inttoptr i64 %52 to %struct.pareto_element*
br label %54
54: ; preds = %41, %47
%55 = phi %struct.pareto_element* [ %53, %47 ], [ %43, %41 ]
%56 = add nuw nsw i64 %42, 1
%57 = icmp eq i64 %56, 100
br i1 %57, label %58, label %41
58: ; preds = %54
%59 = tail call i32** @initialization(i32 100, i32 %10, i32 %12, i32** %18, i32 1)
%60 = tail call i32 @selection(i32* %40, i32 100, double 5.000000e-01)
%61 = tail call i32 @selection(i32* %40, i32 100, double 5.000000e-01)
%62 = tail call i32** @crossover(i32** %59, i32 %60, i32 %61, i32 %12)
%63 = tail call i32** @mutation(i32** %62, i32** %18, i32 100, i32 %10, i32 %12)
%64 = tail call i32*** @load_utilization(i32** %63, i32** %16, i32** %18, i32 100, i32 %10, i32 %12)
%65 = tail call i32** @load_network_utilization(i32** %63, i32** %22, i32** %20, i32 100, i32 %14, i32 %12)
%66 = tail call i32** @reparation(i32** %63, i32*** %64, i32** %16, i32** %18, i32 100, i32 %10, i32 %12, i32 1, i32* %24, i32** %65, i32 %14, i32** %22, i32** %20)
%67 = tail call float** @load_objectives(i32** %66, i32*** %64, i32** %16, i32** %18, i32** %20, i32 100, i32 %10, i32 %12, i32* %24, i32** %65, i32 %14)
%68 = tail call i32* @non_dominated_sorting(float** %67, i32 100)
br label %69
69: ; preds = %58, %82
%70 = phi i64 [ 0, %58 ], [ %84, %82 ]
%71 = phi %struct.pareto_element* [ %55, %58 ], [ %83, %82 ]
%72 = getelementptr inbounds i32, i32* %68, i64 %70
%73 = load i32, i32* %72
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %82
75: ; preds = %69
%76 = getelementptr inbounds i32*, i32** %66, i64 %70
%77 = load i32*, i32** %76
%78 = getelementptr inbounds float*, float** %67, i64 %70
%79 = load float*, float** %78
%80 = tail call i64 @pareto_insert(%struct.pareto_element* %71, i32 %12, i32* %77, float* %79)
%81 = inttoptr i64 %80 to %struct.pareto_element*
br label %82
82: ; preds = %69, %75
%83 = phi %struct.pareto_element* [ %81, %75 ], [ %71, %69 ]
%84 = add nuw nsw i64 %70, 1
%85 = icmp eq i64 %84, 100
br i1 %85, label %86, label %69
86: ; preds = %82
%87 = tail call i32** @population_evolution(i32** %38, i32** %66, float** %39, float** %67, i32* %40, i32 100, i32 %12)
%88 = tail call i32 @report_best_population(%struct.pareto_element* %83, i32** %22, i32** %20, i32** %16, i32** %18, i32 %12, i32 %10, i32 %14)
%89 = tail call i32 @putchar(i32 10)
br label %90
90: ; preds = %32, %86, %4
%91 = phi i32 [ 1, %4 ], [ 1, %32 ], [ 0, %86 ]
ret i32 %91
}