#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ cause(int *, int *);
double comprimento_medio_fila(char *);
double expntl(float);
int /*<<< orphan*/ facility(char *, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double);
double periodo_medio_ocupado(char *);
int /*<<< orphan*/ printf(char *);
int randompar(int, int);
int /*<<< orphan*/ release(char *, int);
int /*<<< orphan*/ request(char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ schedule(int, double, int);
int /*<<< orphan*/ *sendto(int /*<<< orphan*/ *);
int /*<<< orphan*/ smpl(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stream(int /*<<< orphan*/);
double time();
double utilizacao_recurso(char *);
int main() {
  float Te = 1;
  int Event = 1, Customer = 1, Aleatorio;
  float Ta0 = 10, Ts0 = 10, Ts1 = 10, Ts2 = 10, Ts3 = 10, Ts4 = 10, Ts5 = 10,
        Ts6 = 10, Ts7 = 10, Ts8 = 10;
  int i = 0;
  unsigned int Maximo_Entidades = 0, Num_Max_Entidades = 2;
  FILE *p, *saida;
  saida = fopen("AVALDES.out", "w");
  if ((p = sendto(saida)) == NULL)
    printf("Erro na saida \n");
  smpl(0, " AVALDES");
  facility("Front", 1);
  facility("CPU1", 1);
  facility("Disk1", 1);
  facility("CPU2", 1);
  facility("Disk2", 1);
  facility("CPU3", 1);
  facility("Disk3", 1);
  facility("CPU4", 1);
  facility("Disk4", 1);
  stream(0);
  for (i = 0; i < 2; i++)
    schedule(1, 1.0, Customer);
  while ((time() < Te) && (Maximo_Entidades < Num_Max_Entidades)) {
    cause(&Event, &Customer);
    switch (Event) {
    case 1:
      schedule(2, 0.0, Customer);
      break;
    case 2:
      if (request("Front", Event, Customer, 0) == 0)
        schedule(3, expntl(Ts0), Customer);
      break;
    case 3:
      release("Front", Customer);
      Aleatorio = randompar(1, 10000);
      if ((1 <= Aleatorio) && (Aleatorio <= 2500))
        schedule(4, 0.0, Customer);
      if ((2501 <= Aleatorio) && (Aleatorio <= 5000))
        schedule(8, 0.0, Customer);
      if ((5001 <= Aleatorio) && (Aleatorio <= 7500))
        schedule(12, 0.0, Customer);
      if ((7501 <= Aleatorio) && (Aleatorio <= 10000))
        schedule(16, 0.0, Customer);
      break;
    case 4:
      if (request("CPU1", Event, Customer, 0) == 0)
        schedule(5, expntl(Ts1), Customer);
      break;
    case 5:
      release("CPU1", Customer);
      Aleatorio = randompar(1, 10000);
      if ((1 <= Aleatorio) && (Aleatorio <= 8000))
        schedule(6, 0.0, Customer);
      if ((8001 <= Aleatorio) && (Aleatorio <= 10000))
        Maximo_Entidades++;
      break;
    case 8:
      if (request("CPU2", Event, Customer, 0) == 0)
        schedule(9, expntl(Ts3), Customer);
      break;
    case 9:
      release("CPU2", Customer);
      Aleatorio = randompar(1, 10000);
      if ((1 <= Aleatorio) && (Aleatorio <= 8000))
        schedule(10, 0.0, Customer);
      if ((8001 <= Aleatorio) && (Aleatorio <= 10000))
        Maximo_Entidades++;
      break;
    case 12:
      if (request("CPU3", Event, Customer, 0) == 0)
        schedule(13, expntl(Ts5), Customer);
      break;
    case 13:
      release("CPU3", Customer);
      Aleatorio = randompar(1, 10000);
      if ((1 <= Aleatorio) && (Aleatorio <= 8000))
        schedule(14, 0.0, Customer);
      if ((8001 <= Aleatorio) && (Aleatorio <= 10000))
        Maximo_Entidades++;
      break;
    case 16:
      if (request("CPU4", Event, Customer, 0) == 0)
        schedule(17, expntl(Ts7), Customer);
      break;
    case 17:
      release("CPU4", Customer);
      Aleatorio = randompar(1, 10000);
      if ((1 <= Aleatorio) && (Aleatorio <= 8000))
        schedule(18, 0.0, Customer);
      if ((8001 <= Aleatorio) && (Aleatorio <= 10000))
        Maximo_Entidades++;
      break;
    case 6:
      if (request("Disk1", Event, Customer, 0) == 0)
        schedule(7, expntl(Ts2), Customer);
      break;
    case 7:
      release("Disk1", Customer);
      schedule(4, 0.0, Customer);
      break;
    case 10:
      if (request("Disk2", Event, Customer, 0) == 0)
        schedule(11, expntl(Ts4), Customer);
      break;
    case 11:
      release("Disk2", Customer);
      schedule(8, 0.0, Customer);
      break;
    case 14:
      if (request("Disk3", Event, Customer, 0) == 0)
        schedule(15, expntl(Ts6), Customer);
      break;
    case 15:
      release("Disk3", Customer);
      schedule(12, 0.0, Customer);
      break;
    case 18:
      if (request("Disk4", Event, Customer, 0) == 0)
        schedule(19, expntl(Ts8), Customer);
      break;
    case 19:
      release("Disk4", Customer);
      schedule(16, 0.0, Customer);
      break;
    }
  }
  fprintf(saida, "TempoSimulado: %f\n", time());
  fprintf(saida, "Utilizacao (\"Front\") = %g\n", utilizacao_recurso("Front"));
  fprintf(saida, "Comprimento medio fila (\"Front\") = %g\n",
          comprimento_medio_fila("Front"));
  fprintf(saida, "Periodo medio ocupado (\"Front\") = %g\n",
          periodo_medio_ocupado("Front"));
  fprintf(saida, "Utilizacao (\"CPU1\") = %g\n", utilizacao_recurso("CPU1"));
  fprintf(saida, "Comprimento medio fila (\"CPU1\") = %g\n",
          comprimento_medio_fila("CPU1"));
  fprintf(saida, "Periodo medio ocupado (\"CPU1\") = %g\n",
          periodo_medio_ocupado("CPU1"));
  fprintf(saida, "Utilizacao (\"Disk1\") = %g\n", utilizacao_recurso("Disk1"));
  fprintf(saida, "Comprimento medio fila (\"Disk1\") = %g\n",
          comprimento_medio_fila("Disk1"));
  fprintf(saida, "Periodo medio ocupado (\"Disk1\") = %g\n",
          periodo_medio_ocupado("Disk1"));
  fprintf(saida, "Utilizacao (\"CPU2\") = %g\n", utilizacao_recurso("CPU2"));
  fprintf(saida, "Comprimento medio fila (\"CPU2\") = %g\n",
          comprimento_medio_fila("CPU2"));
  fprintf(saida, "Periodo medio ocupado (\"CPU2\") = %g\n",
          periodo_medio_ocupado("CPU2"));
  fprintf(saida, "Utilizacao (\"Disk2\") = %g\n", utilizacao_recurso("Disk2"));
  fprintf(saida, "Comprimento medio fila (\"Disk2\") = %g\n",
          comprimento_medio_fila("Disk2"));
  fprintf(saida, "Periodo medio ocupado (\"Disk2\") = %g\n",
          periodo_medio_ocupado("Disk2"));
  fprintf(saida, "Utilizacao (\"CPU3\") = %g\n", utilizacao_recurso("CPU3"));
  fprintf(saida, "Comprimento medio fila (\"CPU3\") = %g\n",
          comprimento_medio_fila("CPU3"));
  fprintf(saida, "Periodo medio ocupado (\"CPU3\") = %g\n",
          periodo_medio_ocupado("CPU3"));
  fprintf(saida, "Utilizacao (\"Disk3\") = %g\n", utilizacao_recurso("Disk3"));
  fprintf(saida, "Comprimento medio fila (\"Disk3\") = %g\n",
          comprimento_medio_fila("Disk3"));
  fprintf(saida, "Periodo medio ocupado (\"Disk3\") = %g\n",
          periodo_medio_ocupado("Disk3"));
  fprintf(saida, "Utilizacao (\"CPU4\") = %g\n", utilizacao_recurso("CPU4"));
  fprintf(saida, "Comprimento medio fila (\"CPU4\") = %g\n",
          comprimento_medio_fila("CPU4"));
  fprintf(saida, "Periodo medio ocupado (\"CPU4\") = %g\n",
          periodo_medio_ocupado("CPU4"));
  fprintf(saida, "Utilizacao (\"Disk4\") = %g\n", utilizacao_recurso("Disk4"));
  fprintf(saida, "Comprimento medio fila (\"Disk4\") = %g\n",
          comprimento_medio_fila("Disk4"));
  fprintf(saida, "Periodo medio ocupado (\"Disk4\") = %g\n",
          periodo_medio_ocupado("Disk4"));
  fclose(saida);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xdca(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
movss  0xdab(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xd9e(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  0xd91(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xd84(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  0xd77(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  0xd6a(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  0xd5d(%rip),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  0xd50(%rip),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  0xd43(%rip),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  0xd36(%rip),%xmm0
movss  %xmm0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x2,-0x48(%rbp)
lea    0xd71(%rip),%rdi
lea    0xd76(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rdi
call   1090 <sendto@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
jne    131e <main+0xfe>
lea    0xd51(%rip),%rdi
call   1080 <printf@plt>
xor    %edi,%edi
lea    0xd53(%rip),%rsi
call   10a0 <smpl@plt>
lea    0xd50(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xd45(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xd39(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xd2e(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xd22(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xd17(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xd0b(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xd00(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xcf4(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
xor    %edi,%edi
call   10c0 <stream@plt>
movl   $0x0,-0x40(%rbp)
cmpl   $0x2,-0x40(%rbp)
jge    1400 <main+0x1e0>
mov    -0x10(%rbp),%esi
mov    $0x1,%edi
movsd  0xc1b(%rip),%xmm0
call   1030 <schedule@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    13d3 <main+0x1b3>
jmp    1405 <main+0x1e5>
mov    $0x0,%al
call   10d0 <time@plt>
movaps %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xor    %eax,%eax
ucomisd %xmm1,%xmm0
mov    %al,-0x59(%rbp)
jbe    1433 <main+0x213>
mov    -0x44(%rbp),%eax
cmp    -0x48(%rbp),%eax
setb   %al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
test   $0x1,%al
jne    1443 <main+0x223>
jmp    19c5 <main+0x7a5>
lea    -0xc(%rbp),%rdi
lea    -0x10(%rbp),%rsi
call   1140 <cause@plt>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x68(%rbp)
sub    $0x12,%eax
ja     19c0 <main+0x7a0>
mov    -0x68(%rbp),%rax
lea    0xba0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%esi
mov    $0x2,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xbe8(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    14c2 <main+0x2a2>
movss  -0x1c(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0x3,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0xbb2(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1050 <randompar@plt>
mov    %eax,-0x14(%rbp)
mov    $0x1,%eax
cmp    -0x14(%rbp),%eax
jg     1513 <main+0x2f3>
cmpl   $0x9c4,-0x14(%rbp)
jg     1513 <main+0x2f3>
mov    -0x10(%rbp),%esi
mov    $0x4,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
mov    $0x9c5,%eax
cmp    -0x14(%rbp),%eax
jg     153e <main+0x31e>
cmpl   $0x1388,-0x14(%rbp)
jg     153e <main+0x31e>
mov    -0x10(%rbp),%esi
mov    $0x8,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
mov    $0x1389,%eax
cmp    -0x14(%rbp),%eax
jg     1569 <main+0x349>
cmpl   $0x1d4c,-0x14(%rbp)
jg     1569 <main+0x349>
mov    -0x10(%rbp),%esi
mov    $0xc,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
mov    $0x1d4d,%eax
cmp    -0x14(%rbp),%eax
jg     1594 <main+0x374>
cmpl   $0x2710,-0x14(%rbp)
jg     1594 <main+0x374>
mov    -0x10(%rbp),%esi
mov    $0x10,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xae3(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    15cd <main+0x3ad>
movss  -0x20(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0x5,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0xaad(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1050 <randompar@plt>
mov    %eax,-0x14(%rbp)
mov    $0x1,%eax
cmp    -0x14(%rbp),%eax
jg     161e <main+0x3fe>
cmpl   $0x1f40,-0x14(%rbp)
jg     161e <main+0x3fe>
mov    -0x10(%rbp),%esi
mov    $0x6,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
mov    $0x1f41,%eax
cmp    -0x14(%rbp),%eax
jg     1642 <main+0x422>
cmpl   $0x2710,-0x14(%rbp)
jg     1642 <main+0x422>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xa40(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    167b <main+0x45b>
movss  -0x28(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0x9,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0xa0a(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1050 <randompar@plt>
mov    %eax,-0x14(%rbp)
mov    $0x1,%eax
cmp    -0x14(%rbp),%eax
jg     16cc <main+0x4ac>
cmpl   $0x1f40,-0x14(%rbp)
jg     16cc <main+0x4ac>
mov    -0x10(%rbp),%esi
mov    $0xa,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
mov    $0x1f41,%eax
cmp    -0x14(%rbp),%eax
jg     16f0 <main+0x4d0>
cmpl   $0x2710,-0x14(%rbp)
jg     16f0 <main+0x4d0>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0x99d(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    1729 <main+0x509>
movss  -0x30(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0xd,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0x967(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1050 <randompar@plt>
mov    %eax,-0x14(%rbp)
mov    $0x1,%eax
cmp    -0x14(%rbp),%eax
jg     177a <main+0x55a>
cmpl   $0x1f40,-0x14(%rbp)
jg     177a <main+0x55a>
mov    -0x10(%rbp),%esi
mov    $0xe,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
mov    $0x1f41,%eax
cmp    -0x14(%rbp),%eax
jg     179e <main+0x57e>
cmpl   $0x2710,-0x14(%rbp)
jg     179e <main+0x57e>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0x8fa(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    17d7 <main+0x5b7>
movss  -0x38(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0x11,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0x8c4(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1050 <randompar@plt>
mov    %eax,-0x14(%rbp)
mov    $0x1,%eax
cmp    -0x14(%rbp),%eax
jg     1828 <main+0x608>
cmpl   $0x1f40,-0x14(%rbp)
jg     1828 <main+0x608>
mov    -0x10(%rbp),%esi
mov    $0x12,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
mov    $0x1f41,%eax
cmp    -0x14(%rbp),%eax
jg     184c <main+0x62c>
cmpl   $0x2710,-0x14(%rbp)
jg     184c <main+0x62c>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0x830(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    1885 <main+0x665>
movss  -0x24(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0x7,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0x7fa(%rip),%rdi
call   1120 <release@plt>
mov    -0x10(%rbp),%esi
mov    $0x4,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0x7de(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    18e2 <main+0x6c2>
movss  -0x2c(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0xb,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0x7a8(%rip),%rdi
call   1120 <release@plt>
mov    -0x10(%rbp),%esi
mov    $0x8,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0x78c(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    193f <main+0x71f>
movss  -0x34(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0xf,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0x756(%rip),%rdi
call   1120 <release@plt>
mov    -0x10(%rbp),%esi
mov    $0xc,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0x73a(%rip),%rdi
xor    %ecx,%ecx
call   10f0 <request@plt>
cmp    $0x0,%eax
jne    199c <main+0x77c>
movss  -0x3c(%rbp),%xmm0
call   1110 <expntl@plt>
mov    -0x10(%rbp),%esi
mov    $0x13,%edi
call   1030 <schedule@plt>
jmp    19c0 <main+0x7a0>
mov    -0x10(%rbp),%esi
lea    0x704(%rip),%rdi
call   1120 <release@plt>
mov    -0x10(%rbp),%esi
mov    $0x10,%edi
xorps  %xmm0,%xmm0
call   1030 <schedule@plt>
jmp    1405 <main+0x1e5>
mov    -0x58(%rbp),%rax
mov    %rax,-0x148(%rbp)
mov    $0x0,%al
call   10d0 <time@plt>
mov    -0x148(%rbp),%rdi
lea    0x6d0(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x140(%rbp)
lea    0x687(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0x140(%rbp),%rdi
lea    0x6b9(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x138(%rbp)
lea    0x65d(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0x138(%rbp),%rdi
lea    0x6aa(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x130(%rbp)
lea    0x633(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0x130(%rbp),%rdi
lea    0x6a7(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x128(%rbp)
lea    0x60f(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0x128(%rbp),%rdi
lea    0x6a3(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x120(%rbp)
lea    0x5e5(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0x120(%rbp),%rdi
lea    0x693(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x118(%rbp)
lea    0x5bb(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0x118(%rbp),%rdi
lea    0x68f(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x110(%rbp)
lea    0x596(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0x110(%rbp),%rdi
lea    0x68a(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x108(%rbp)
lea    0x56c(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0x108(%rbp),%rdi
lea    0x67b(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x100(%rbp)
lea    0x542(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0x100(%rbp),%rdi
lea    0x678(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xf8(%rbp)
lea    0x51e(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0xf8(%rbp),%rdi
lea    0x674(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xf0(%rbp)
lea    0x4f4(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0xf0(%rbp),%rdi
lea    0x664(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xe8(%rbp)
lea    0x4ca(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0xe8(%rbp),%rdi
lea    0x660(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xe0(%rbp)
lea    0x4a5(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0xe0(%rbp),%rdi
lea    0x65b(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xd8(%rbp)
lea    0x47b(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0xd8(%rbp),%rdi
lea    0x64c(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xd0(%rbp)
lea    0x451(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0xd0(%rbp),%rdi
lea    0x649(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xc8(%rbp)
lea    0x42d(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0xc8(%rbp),%rdi
lea    0x645(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    0x403(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0xc0(%rbp),%rdi
lea    0x635(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    0x3d9(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0xb8(%rbp),%rdi
lea    0x631(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    0x3b4(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0xb0(%rbp),%rdi
lea    0x62c(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xa8(%rbp)
lea    0x38a(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0xa8(%rbp),%rdi
lea    0x61d(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0xa0(%rbp)
lea    0x360(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0xa0(%rbp),%rdi
lea    0x61a(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    0x33c(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0x98(%rbp),%rdi
lea    0x616(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x90(%rbp)
lea    0x312(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0x90(%rbp),%rdi
lea    0x606(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x88(%rbp)
lea    0x2e8(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0x88(%rbp),%rdi
lea    0x602(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    0x2c6(%rip),%rdi
call   1130 <utilizacao_recurso@plt>
mov    -0x80(%rbp),%rdi
lea    0x603(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    0x2a2(%rip),%rdi
call   1040 <comprimento_medio_fila@plt>
mov    -0x78(%rbp),%rdi
lea    0x5fa(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    0x27e(%rip),%rdi
call   1070 <periodo_medio_ocupado@plt>
mov    -0x70(%rbp),%rdi
lea    0x5fd(%rip),%rsi
call   10b0 <fprintf@plt>
mov    -0x58(%rbp),%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movl   $0x1,0x4(%rsp)
movl   $0x1,(%rsp)
lea    0xe17(%rip),%rdi
lea    0xe1c(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,%r15
mov    %rax,%rdi
call   1090 <sendto@plt>
test   %rax,%rax
jne    1269 <main+0x49>
lea    0x11ec(%rip),%rdi
call   1040 <puts@plt>
lea    0xdf6(%rip),%rsi
xor    %edi,%edi
call   10a0 <smpl@plt>
lea    0xdf1(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xde6(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xdda(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xdcf(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xdc3(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xdb8(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xdac(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xda1(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
lea    0xd95(%rip),%rdi
mov    $0x1,%esi
call   10e0 <facility@plt>
xor    %edi,%edi
call   10c0 <stream@plt>
movsd  0xce1(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <schedule@plt>
mov    $0x1,%edi
movsd  0xcc5(%rip),%xmm0
mov    $0x1,%esi
call   1030 <schedule@plt>
xor    %eax,%eax
call   10d0 <time@plt>
movsd  0xcac(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    17c4 <main+0x5a4>
lea    0x4(%rsp),%r12
mov    %rsp,%rbx
lea    0xc9f(%rip),%r13
xor    %r14d,%r14d
mov    %r12,%rdi
mov    %rbx,%rsi
call   1140 <cause@plt>
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x12,%eax
ja     17a5 <main+0x585>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0x2,%edi
jmp    17a0 <main+0x580>
mov    %rbx,%rbp
mov    %r12,%rbx
mov    (%rsp),%esi
lea    0xcbf(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1060 <randompar@plt>
mov    %eax,%r12d
lea    -0x1(%r12),%eax
cmp    $0x1f3f,%eax
ja     13ea <main+0x1ca>
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0x6,%edi
call   1030 <schedule@plt>
add    $0xffffe0bf,%r12d
cmp    $0x7d0,%r12d
adc    $0x0,%r14d
mov    %rbx,%r12
mov    %rbp,%rbx
jmp    17a5 <main+0x585>
mov    (%rsp),%edx
lea    0xc74(%rip),%rdi
mov    $0xa,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0xbdb(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0xb,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%edx
lea    0xc42(%rip),%rdi
mov    $0xc,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0xba3(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0xd,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%esi
lea    0xc0a(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1060 <randompar@plt>
mov    %eax,%ebp
lea    -0x1(%rbp),%eax
cmp    $0x1f3f,%eax
ja     16b6 <main+0x496>
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0xe,%edi
jmp    16b1 <main+0x491>
mov    (%rsp),%esi
lea    0xbd0(%rip),%rdi
call   1120 <release@plt>
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0xc,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%esi
lea    0xbb6(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1060 <randompar@plt>
mov    %eax,%ebp
lea    -0x1(%rbp),%eax
cmp    $0x1f3f,%eax
ja     16b6 <main+0x496>
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0x12,%edi
jmp    16b1 <main+0x491>
mov    (%rsp),%edx
lea    0xb50(%rip),%rdi
mov    $0x2,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0xacd(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0x3,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%esi
lea    0xb18(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1060 <randompar@plt>
lea    -0x1(%rax),%ecx
cmp    $0x9c3,%ecx
jbe    1632 <main+0x412>
lea    -0x9c5(%rax),%ecx
cmp    $0x9c3,%ecx
jbe    16da <main+0x4ba>
lea    -0x1389(%rax),%ecx
cmp    $0x9c3,%ecx
jbe    14c5 <main+0x2a5>
add    $0xffffe2b3,%eax
cmp    $0x9c3,%eax
jbe    1794 <main+0x574>
jmp    17a5 <main+0x585>
mov    (%rsp),%edx
lea    0xab8(%rip),%rdi
mov    $0x4,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0xa2f(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0x5,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%edx
lea    0xa85(%rip),%rdi
mov    $0x6,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0x9f7(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0x7,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%esi
lea    0xa4d(%rip),%rdi
call   1120 <release@plt>
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0x4,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%edx
lea    0xa33(%rip),%rdi
mov    $0x8,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0x99f(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0x9,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%esi
lea    0x9fb(%rip),%rdi
call   1120 <release@plt>
mov    $0x1,%edi
mov    $0x2710,%esi
call   1060 <randompar@plt>
mov    %eax,%ebp
lea    -0x1(%rbp),%eax
cmp    $0x1f3f,%eax
ja     16b6 <main+0x496>
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0xa,%edi
call   1030 <schedule@plt>
add    $0xffffe0bf,%ebp
cmp    $0x7d0,%ebp
adc    $0x0,%r14d
jmp    17a5 <main+0x585>
mov    (%rsp),%esi
lea    0x9b0(%rip),%rdi
call   1120 <release@plt>
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0x8,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%edx
lea    0x99b(%rip),%rdi
mov    $0xe,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0x8f7(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0xf,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%edx
lea    0x969(%rip),%rdi
mov    $0x10,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0x8c3(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0x11,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%edx
lea    0x93d(%rip),%rdi
mov    $0x12,%esi
xor    %ecx,%ecx
call   10f0 <request@plt>
test   %eax,%eax
jne    17a5 <main+0x585>
movss  0x892(%rip),%xmm0
call   1110 <expntl@plt>
mov    (%rsp),%esi
mov    $0x13,%edi
jmp    17a0 <main+0x580>
mov    (%rsp),%esi
lea    0x90c(%rip),%rdi
call   1120 <release@plt>
mov    (%rsp),%esi
xorpd  %xmm0,%xmm0
mov    $0x10,%edi
call   1030 <schedule@plt>
xor    %eax,%eax
call   10d0 <time@plt>
movsd  0x84c(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    17c4 <main+0x5a4>
cmp    $0x2,%r14d
jb     1370 <main+0x150>
xor    %eax,%eax
call   10d0 <time@plt>
lea    0x8cf(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x88e(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x8c4(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x8c8(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x8d8(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x848(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x8e0(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x8e3(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x8f2(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x801(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x8f9(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x8fd(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x90d(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x7bb(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x915(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x918(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x927(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x774(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x92e(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x932(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x942(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x72e(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x94a(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x94d(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x95c(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x6e7(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x963(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x967(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x977(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x6a1(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x97f(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x982(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x991(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
lea    0x65a(%rip),%rbp
mov    %rbp,%rdi
call   1130 <utilizacao_recurso@plt>
lea    0x998(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1050 <comprimento_medio_fila@plt>
lea    0x99c(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %rbp,%rdi
call   1080 <periodo_medio_ocupado@plt>
lea    0x9ac(%rip),%rsi
mov    %r15,%rdi
call   10b0 <fprintf@plt>
mov    %r15,%rdi
call   1070 <fclose@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"AVALDES.out\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [16 x i8] c"Erro na saida \0A\00"
@.str.3 = [9 x i8] c" AVALDES\00"
@.str.4 = [6 x i8] c"Front\00"
@.str.5 = [5 x i8] c"CPU1\00"
@.str.6 = [6 x i8] c"Disk1\00"
@.str.7 = [5 x i8] c"CPU2\00"
@.str.8 = [6 x i8] c"Disk2\00"
@.str.9 = [5 x i8] c"CPU3\00"
@.str.10 = [6 x i8] c"Disk3\00"
@.str.11 = [5 x i8] c"CPU4\00"
@.str.12 = [6 x i8] c"Disk4\00"
@.str.13 = [19 x i8] c"TempoSimulado: %f\0A\00"
@.str.14 = [27 x i8] c"Utilizacao (\22Front\22) = %g\0A\00"
@.str.15 = [39 x i8] c"Comprimento medio fila (\22Front\22) = %g\0A\00"
@.str.16 = [38 x i8] c"Periodo medio ocupado (\22Front\22) = %g\0A\00"
@.str.17 = [26 x i8] c"Utilizacao (\22CPU1\22) = %g\0A\00"
@.str.18 = [38 x i8] c"Comprimento medio fila (\22CPU1\22) = %g\0A\00"
@.str.19 = [37 x i8] c"Periodo medio ocupado (\22CPU1\22) = %g\0A\00"
@.str.20 = [27 x i8] c"Utilizacao (\22Disk1\22) = %g\0A\00"
@.str.21 = [39 x i8] c"Comprimento medio fila (\22Disk1\22) = %g\0A\00"
@.str.22 = [38 x i8] c"Periodo medio ocupado (\22Disk1\22) = %g\0A\00"
@.str.23 = [26 x i8] c"Utilizacao (\22CPU2\22) = %g\0A\00"
@.str.24 = [38 x i8] c"Comprimento medio fila (\22CPU2\22) = %g\0A\00"
@.str.25 = [37 x i8] c"Periodo medio ocupado (\22CPU2\22) = %g\0A\00"
@.str.26 = [27 x i8] c"Utilizacao (\22Disk2\22) = %g\0A\00"
@.str.27 = [39 x i8] c"Comprimento medio fila (\22Disk2\22) = %g\0A\00"
@.str.28 = [38 x i8] c"Periodo medio ocupado (\22Disk2\22) = %g\0A\00"
@.str.29 = [26 x i8] c"Utilizacao (\22CPU3\22) = %g\0A\00"
@.str.30 = [38 x i8] c"Comprimento medio fila (\22CPU3\22) = %g\0A\00"
@.str.31 = [37 x i8] c"Periodo medio ocupado (\22CPU3\22) = %g\0A\00"
@.str.32 = [27 x i8] c"Utilizacao (\22Disk3\22) = %g\0A\00"
@.str.33 = [39 x i8] c"Comprimento medio fila (\22Disk3\22) = %g\0A\00"
@.str.34 = [38 x i8] c"Periodo medio ocupado (\22Disk3\22) = %g\0A\00"
@.str.35 = [26 x i8] c"Utilizacao (\22CPU4\22) = %g\0A\00"
@.str.36 = [38 x i8] c"Comprimento medio fila (\22CPU4\22) = %g\0A\00"
@.str.37 = [37 x i8] c"Periodo medio ocupado (\22CPU4\22) = %g\0A\00"
@.str.38 = [27 x i8] c"Utilizacao (\22Disk4\22) = %g\0A\00"
@.str.39 = [39 x i8] c"Comprimento medio fila (\22Disk4\22) = %g\0A\00"
@.str.40 = [38 x i8] c"Periodo medio ocupado (\22Disk4\22) = %g\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32*
%20 = alloca i32*
store i32 0, i32* %1
store float 1.000000e+00, float* %2
store i32 1, i32* %3
store i32 1, i32* %4
store float 1.000000e+01, float* %6
store float 1.000000e+01, float* %7
store float 1.000000e+01, float* %8
store float 1.000000e+01, float* %9
store float 1.000000e+01, float* %10
store float 1.000000e+01, float* %11
store float 1.000000e+01, float* %12
store float 1.000000e+01, float* %13
store float 1.000000e+01, float* %14
store float 1.000000e+01, float* %15
store i32 0, i32* %16
store i32 0, i32* %17
store i32 2, i32* %18
%21 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %21, i32** %20
%22 = load i32*, i32** %20
%23 = call i32* @sendto(i32* %22)
store i32* %23, i32** %19
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %27
25: ; preds = %0
%26 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %27
27: ; preds = %25, %0
%28 = call i32 @smpl(i32 0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%29 = call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 1)
%30 = call i32 @facility(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 1)
%31 = call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 1)
%32 = call i32 @facility(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 1)
%33 = call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 1)
%34 = call i32 @facility(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 1)
%35 = call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 1)
%36 = call i32 @facility(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 1)
%37 = call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 1)
%38 = call i32 @stream(i32 0)
store i32 0, i32* %16
br label %39
39: ; preds = %45, %27
%40 = load i32, i32* %16
%41 = icmp slt i32 %40, 2
br i1 %41, label %42, label %48
42: ; preds = %39
%43 = load i32, i32* %4
%44 = call i32 @schedule(i32 1, double 1.000000e+00, i32 %43)
br label %45
45: ; preds = %42
%46 = load i32, i32* %16
%47 = add nsw i32 %46, 1
store i32 %47, i32* %16
br label %39
48: ; preds = %39
br label %49
49: ; preds = %313, %48
%50 = call double (...) @time()
%51 = load float, float* %2
%52 = fpext float %51 to double
%53 = fcmp olt double %50, %52
br i1 %53, label %54, label %58
54: ; preds = %49
%55 = load i32, i32* %17
%56 = load i32, i32* %18
%57 = icmp ult i32 %55, %56
br label %58
58: ; preds = %54, %49
%59 = phi i1 [ false, %49 ], [ %57, %54 ]
br i1 %59, label %60, label %314
60: ; preds = %58
%61 = call i32 @cause(i32* %3, i32* %4)
%62 = load i32, i32* %3
switch i32 %62, label %313 [
i32 1, label %63
i32 2, label %66
i32 3, label %77
i32 4, label %117
i32 5, label %128
i32 8, label %150
i32 9, label %161
i32 12, label %183
i32 13, label %194
i32 16, label %216
i32 17, label %227
i32 6, label %249
i32 7, label %260
i32 10, label %265
i32 11, label %276
i32 14, label %281
i32 15, label %292
i32 18, label %297
i32 19, label %308
]
63: ; preds = %60
%64 = load i32, i32* %4
%65 = call i32 @schedule(i32 2, double 0.000000e+00, i32 %64)
br label %313
66: ; preds = %60
%67 = load i32, i32* %3
%68 = load i32, i32* %4
%69 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %67, i32 %68, i32 0)
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %76
71: ; preds = %66
%72 = load float, float* %7
%73 = call double @expntl(float %72)
%74 = load i32, i32* %4
%75 = call i32 @schedule(i32 3, double %73, i32 %74)
br label %76
76: ; preds = %71, %66
br label %313
77: ; preds = %60
%78 = load i32, i32* %4
%79 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %78)
%80 = call i32 @randompar(i32 1, i32 10000)
store i32 %80, i32* %5
%81 = load i32, i32* %5
%82 = icmp sle i32 1, %81
br i1 %82, label %83, label %89
83: ; preds = %77
%84 = load i32, i32* %5
%85 = icmp sle i32 %84, 2500
br i1 %85, label %86, label %89
86: ; preds = %83
%87 = load i32, i32* %4
%88 = call i32 @schedule(i32 4, double 0.000000e+00, i32 %87)
br label %89
89: ; preds = %86, %83, %77
%90 = load i32, i32* %5
%91 = icmp sle i32 2501, %90
br i1 %91, label %92, label %98
92: ; preds = %89
%93 = load i32, i32* %5
%94 = icmp sle i32 %93, 5000
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = load i32, i32* %4
%97 = call i32 @schedule(i32 8, double 0.000000e+00, i32 %96)
br label %98
98: ; preds = %95, %92, %89
%99 = load i32, i32* %5
%100 = icmp sle i32 5001, %99
br i1 %100, label %101, label %107
101: ; preds = %98
%102 = load i32, i32* %5
%103 = icmp sle i32 %102, 7500
br i1 %103, label %104, label %107
104: ; preds = %101
%105 = load i32, i32* %4
%106 = call i32 @schedule(i32 12, double 0.000000e+00, i32 %105)
br label %107
107: ; preds = %104, %101, %98
%108 = load i32, i32* %5
%109 = icmp sle i32 7501, %108
br i1 %109, label %110, label %116
110: ; preds = %107
%111 = load i32, i32* %5
%112 = icmp sle i32 %111, 10000
br i1 %112, label %113, label %116
113: ; preds = %110
%114 = load i32, i32* %4
%115 = call i32 @schedule(i32 16, double 0.000000e+00, i32 %114)
br label %116
116: ; preds = %113, %110, %107
br label %313
117: ; preds = %60
%118 = load i32, i32* %3
%119 = load i32, i32* %4
%120 = call i32 @request(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %118, i32 %119, i32 0)
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %127
122: ; preds = %117
%123 = load float, float* %8
%124 = call double @expntl(float %123)
%125 = load i32, i32* %4
%126 = call i32 @schedule(i32 5, double %124, i32 %125)
br label %127
127: ; preds = %122, %117
br label %313
128: ; preds = %60
%129 = load i32, i32* %4
%130 = call i32 @release(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %129)
%131 = call i32 @randompar(i32 1, i32 10000)
store i32 %131, i32* %5
%132 = load i32, i32* %5
%133 = icmp sle i32 1, %132
br i1 %133, label %134, label %140
134: ; preds = %128
%135 = load i32, i32* %5
%136 = icmp sle i32 %135, 8000
br i1 %136, label %137, label %140
137: ; preds = %134
%138 = load i32, i32* %4
%139 = call i32 @schedule(i32 6, double 0.000000e+00, i32 %138)
br label %140
140: ; preds = %137, %134, %128
%141 = load i32, i32* %5
%142 = icmp sle i32 8001, %141
br i1 %142, label %143, label %149
143: ; preds = %140
%144 = load i32, i32* %5
%145 = icmp sle i32 %144, 10000
br i1 %145, label %146, label %149
146: ; preds = %143
%147 = load i32, i32* %17
%148 = add i32 %147, 1
store i32 %148, i32* %17
br label %149
149: ; preds = %146, %143, %140
br label %313
150: ; preds = %60
%151 = load i32, i32* %3
%152 = load i32, i32* %4
%153 = call i32 @request(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %151, i32 %152, i32 0)
%154 = icmp eq i32 %153, 0
br i1 %154, label %155, label %160
155: ; preds = %150
%156 = load float, float* %10
%157 = call double @expntl(float %156)
%158 = load i32, i32* %4
%159 = call i32 @schedule(i32 9, double %157, i32 %158)
br label %160
160: ; preds = %155, %150
br label %313
161: ; preds = %60
%162 = load i32, i32* %4
%163 = call i32 @release(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %162)
%164 = call i32 @randompar(i32 1, i32 10000)
store i32 %164, i32* %5
%165 = load i32, i32* %5
%166 = icmp sle i32 1, %165
br i1 %166, label %167, label %173
167: ; preds = %161
%168 = load i32, i32* %5
%169 = icmp sle i32 %168, 8000
br i1 %169, label %170, label %173
170: ; preds = %167
%171 = load i32, i32* %4
%172 = call i32 @schedule(i32 10, double 0.000000e+00, i32 %171)
br label %173
173: ; preds = %170, %167, %161
%174 = load i32, i32* %5
%175 = icmp sle i32 8001, %174
br i1 %175, label %176, label %182
176: ; preds = %173
%177 = load i32, i32* %5
%178 = icmp sle i32 %177, 10000
br i1 %178, label %179, label %182
179: ; preds = %176
%180 = load i32, i32* %17
%181 = add i32 %180, 1
store i32 %181, i32* %17
br label %182
182: ; preds = %179, %176, %173
br label %313
183: ; preds = %60
%184 = load i32, i32* %3
%185 = load i32, i32* %4
%186 = call i32 @request(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %184, i32 %185, i32 0)
%187 = icmp eq i32 %186, 0
br i1 %187, label %188, label %193
188: ; preds = %183
%189 = load float, float* %12
%190 = call double @expntl(float %189)
%191 = load i32, i32* %4
%192 = call i32 @schedule(i32 13, double %190, i32 %191)
br label %193
193: ; preds = %188, %183
br label %313
194: ; preds = %60
%195 = load i32, i32* %4
%196 = call i32 @release(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %195)
%197 = call i32 @randompar(i32 1, i32 10000)
store i32 %197, i32* %5
%198 = load i32, i32* %5
%199 = icmp sle i32 1, %198
br i1 %199, label %200, label %206
200: ; preds = %194
%201 = load i32, i32* %5
%202 = icmp sle i32 %201, 8000
br i1 %202, label %203, label %206
203: ; preds = %200
%204 = load i32, i32* %4
%205 = call i32 @schedule(i32 14, double 0.000000e+00, i32 %204)
br label %206
206: ; preds = %203, %200, %194
%207 = load i32, i32* %5
%208 = icmp sle i32 8001, %207
br i1 %208, label %209, label %215
209: ; preds = %206
%210 = load i32, i32* %5
%211 = icmp sle i32 %210, 10000
br i1 %211, label %212, label %215
212: ; preds = %209
%213 = load i32, i32* %17
%214 = add i32 %213, 1
store i32 %214, i32* %17
br label %215
215: ; preds = %212, %209, %206
br label %313
216: ; preds = %60
%217 = load i32, i32* %3
%218 = load i32, i32* %4
%219 = call i32 @request(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 %217, i32 %218, i32 0)
%220 = icmp eq i32 %219, 0
br i1 %220, label %221, label %226
221: ; preds = %216
%222 = load float, float* %14
%223 = call double @expntl(float %222)
%224 = load i32, i32* %4
%225 = call i32 @schedule(i32 17, double %223, i32 %224)
br label %226
226: ; preds = %221, %216
br label %313
227: ; preds = %60
%228 = load i32, i32* %4
%229 = call i32 @release(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 %228)
%230 = call i32 @randompar(i32 1, i32 10000)
store i32 %230, i32* %5
%231 = load i32, i32* %5
%232 = icmp sle i32 1, %231
br i1 %232, label %233, label %239
233: ; preds = %227
%234 = load i32, i32* %5
%235 = icmp sle i32 %234, 8000
br i1 %235, label %236, label %239
236: ; preds = %233
%237 = load i32, i32* %4
%238 = call i32 @schedule(i32 18, double 0.000000e+00, i32 %237)
br label %239
239: ; preds = %236, %233, %227
%240 = load i32, i32* %5
%241 = icmp sle i32 8001, %240
br i1 %241, label %242, label %248
242: ; preds = %239
%243 = load i32, i32* %5
%244 = icmp sle i32 %243, 10000
br i1 %244, label %245, label %248
245: ; preds = %242
%246 = load i32, i32* %17
%247 = add i32 %246, 1
store i32 %247, i32* %17
br label %248
248: ; preds = %245, %242, %239
br label %313
249: ; preds = %60
%250 = load i32, i32* %3
%251 = load i32, i32* %4
%252 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %250, i32 %251, i32 0)
%253 = icmp eq i32 %252, 0
br i1 %253, label %254, label %259
254: ; preds = %249
%255 = load float, float* %9
%256 = call double @expntl(float %255)
%257 = load i32, i32* %4
%258 = call i32 @schedule(i32 7, double %256, i32 %257)
br label %259
259: ; preds = %254, %249
br label %313
260: ; preds = %60
%261 = load i32, i32* %4
%262 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %261)
%263 = load i32, i32* %4
%264 = call i32 @schedule(i32 4, double 0.000000e+00, i32 %263)
br label %313
265: ; preds = %60
%266 = load i32, i32* %3
%267 = load i32, i32* %4
%268 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %266, i32 %267, i32 0)
%269 = icmp eq i32 %268, 0
br i1 %269, label %270, label %275
270: ; preds = %265
%271 = load float, float* %11
%272 = call double @expntl(float %271)
%273 = load i32, i32* %4
%274 = call i32 @schedule(i32 11, double %272, i32 %273)
br label %275
275: ; preds = %270, %265
br label %313
276: ; preds = %60
%277 = load i32, i32* %4
%278 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %277)
%279 = load i32, i32* %4
%280 = call i32 @schedule(i32 8, double 0.000000e+00, i32 %279)
br label %313
281: ; preds = %60
%282 = load i32, i32* %3
%283 = load i32, i32* %4
%284 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %282, i32 %283, i32 0)
%285 = icmp eq i32 %284, 0
br i1 %285, label %286, label %291
286: ; preds = %281
%287 = load float, float* %13
%288 = call double @expntl(float %287)
%289 = load i32, i32* %4
%290 = call i32 @schedule(i32 15, double %288, i32 %289)
br label %291
291: ; preds = %286, %281
br label %313
292: ; preds = %60
%293 = load i32, i32* %4
%294 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %293)
%295 = load i32, i32* %4
%296 = call i32 @schedule(i32 12, double 0.000000e+00, i32 %295)
br label %313
297: ; preds = %60
%298 = load i32, i32* %3
%299 = load i32, i32* %4
%300 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 %298, i32 %299, i32 0)
%301 = icmp eq i32 %300, 0
br i1 %301, label %302, label %307
302: ; preds = %297
%303 = load float, float* %15
%304 = call double @expntl(float %303)
%305 = load i32, i32* %4
%306 = call i32 @schedule(i32 19, double %304, i32 %305)
br label %307
307: ; preds = %302, %297
br label %313
308: ; preds = %60
%309 = load i32, i32* %4
%310 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 %309)
%311 = load i32, i32* %4
%312 = call i32 @schedule(i32 16, double 0.000000e+00, i32 %311)
br label %313
313: ; preds = %60, %308, %307, %292, %291, %276, %275, %260, %259, %248, %226, %215, %193, %182, %160, %149, %127, %116, %76, %63
br label %49
314: ; preds = %58
%315 = load i32*, i32** %20
%316 = call double (...) @time()
%317 = call i32 @fprintf(i32* %315, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double %316)
%318 = load i32*, i32** %20
%319 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%320 = call i32 @fprintf(i32* %318, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), double %319)
%321 = load i32*, i32** %20
%322 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%323 = call i32 @fprintf(i32* %321, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0), double %322)
%324 = load i32*, i32** %20
%325 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%326 = call i32 @fprintf(i32* %324, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), double %325)
%327 = load i32*, i32** %20
%328 = call double @utilizacao_recurso(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%329 = call i32 @fprintf(i32* %327, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0), double %328)
%330 = load i32*, i32** %20
%331 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%332 = call i32 @fprintf(i32* %330, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), double %331)
%333 = load i32*, i32** %20
%334 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%335 = call i32 @fprintf(i32* %333, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0), double %334)
%336 = load i32*, i32** %20
%337 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%338 = call i32 @fprintf(i32* %336, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0), double %337)
%339 = load i32*, i32** %20
%340 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%341 = call i32 @fprintf(i32* %339, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.21, i64 0, i64 0), double %340)
%342 = load i32*, i32** %20
%343 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%344 = call i32 @fprintf(i32* %342, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.22, i64 0, i64 0), double %343)
%345 = load i32*, i32** %20
%346 = call double @utilizacao_recurso(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%347 = call i32 @fprintf(i32* %345, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0), double %346)
%348 = load i32*, i32** %20
%349 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%350 = call i32 @fprintf(i32* %348, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.24, i64 0, i64 0), double %349)
%351 = load i32*, i32** %20
%352 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%353 = call i32 @fprintf(i32* %351, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.25, i64 0, i64 0), double %352)
%354 = load i32*, i32** %20
%355 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%356 = call i32 @fprintf(i32* %354, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.26, i64 0, i64 0), double %355)
%357 = load i32*, i32** %20
%358 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%359 = call i32 @fprintf(i32* %357, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.27, i64 0, i64 0), double %358)
%360 = load i32*, i32** %20
%361 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%362 = call i32 @fprintf(i32* %360, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.28, i64 0, i64 0), double %361)
%363 = load i32*, i32** %20
%364 = call double @utilizacao_recurso(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%365 = call i32 @fprintf(i32* %363, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.29, i64 0, i64 0), double %364)
%366 = load i32*, i32** %20
%367 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%368 = call i32 @fprintf(i32* %366, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.30, i64 0, i64 0), double %367)
%369 = load i32*, i32** %20
%370 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%371 = call i32 @fprintf(i32* %369, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.31, i64 0, i64 0), double %370)
%372 = load i32*, i32** %20
%373 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%374 = call i32 @fprintf(i32* %372, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.32, i64 0, i64 0), double %373)
%375 = load i32*, i32** %20
%376 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%377 = call i32 @fprintf(i32* %375, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.33, i64 0, i64 0), double %376)
%378 = load i32*, i32** %20
%379 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%380 = call i32 @fprintf(i32* %378, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.34, i64 0, i64 0), double %379)
%381 = load i32*, i32** %20
%382 = call double @utilizacao_recurso(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%383 = call i32 @fprintf(i32* %381, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.35, i64 0, i64 0), double %382)
%384 = load i32*, i32** %20
%385 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%386 = call i32 @fprintf(i32* %384, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.36, i64 0, i64 0), double %385)
%387 = load i32*, i32** %20
%388 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%389 = call i32 @fprintf(i32* %387, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.37, i64 0, i64 0), double %388)
%390 = load i32*, i32** %20
%391 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%392 = call i32 @fprintf(i32* %390, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.38, i64 0, i64 0), double %391)
%393 = load i32*, i32** %20
%394 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%395 = call i32 @fprintf(i32* %393, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.39, i64 0, i64 0), double %394)
%396 = load i32*, i32** %20
%397 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%398 = call i32 @fprintf(i32* %396, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.40, i64 0, i64 0), double %397)
%399 = load i32*, i32** %20
%400 = call i32 @fclose(i32* %399)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"AVALDES.out\00"
@.str.1 = [2 x i8] c"w\00"
@.str.3 = [9 x i8] c" AVALDES\00"
@.str.4 = [6 x i8] c"Front\00"
@.str.5 = [5 x i8] c"CPU1\00"
@.str.6 = [6 x i8] c"Disk1\00"
@.str.7 = [5 x i8] c"CPU2\00"
@.str.8 = [6 x i8] c"Disk2\00"
@.str.9 = [5 x i8] c"CPU3\00"
@.str.10 = [6 x i8] c"Disk3\00"
@.str.11 = [5 x i8] c"CPU4\00"
@.str.12 = [6 x i8] c"Disk4\00"
@.str.13 = [19 x i8] c"TempoSimulado: %f\0A\00"
@.str.14 = [27 x i8] c"Utilizacao (\22Front\22) = %g\0A\00"
@.str.15 = [39 x i8] c"Comprimento medio fila (\22Front\22) = %g\0A\00"
@.str.16 = [38 x i8] c"Periodo medio ocupado (\22Front\22) = %g\0A\00"
@.str.17 = [26 x i8] c"Utilizacao (\22CPU1\22) = %g\0A\00"
@.str.18 = [38 x i8] c"Comprimento medio fila (\22CPU1\22) = %g\0A\00"
@.str.19 = [37 x i8] c"Periodo medio ocupado (\22CPU1\22) = %g\0A\00"
@.str.20 = [27 x i8] c"Utilizacao (\22Disk1\22) = %g\0A\00"
@.str.21 = [39 x i8] c"Comprimento medio fila (\22Disk1\22) = %g\0A\00"
@.str.22 = [38 x i8] c"Periodo medio ocupado (\22Disk1\22) = %g\0A\00"
@.str.23 = [26 x i8] c"Utilizacao (\22CPU2\22) = %g\0A\00"
@.str.24 = [38 x i8] c"Comprimento medio fila (\22CPU2\22) = %g\0A\00"
@.str.25 = [37 x i8] c"Periodo medio ocupado (\22CPU2\22) = %g\0A\00"
@.str.26 = [27 x i8] c"Utilizacao (\22Disk2\22) = %g\0A\00"
@.str.27 = [39 x i8] c"Comprimento medio fila (\22Disk2\22) = %g\0A\00"
@.str.28 = [38 x i8] c"Periodo medio ocupado (\22Disk2\22) = %g\0A\00"
@.str.29 = [26 x i8] c"Utilizacao (\22CPU3\22) = %g\0A\00"
@.str.30 = [38 x i8] c"Comprimento medio fila (\22CPU3\22) = %g\0A\00"
@.str.31 = [37 x i8] c"Periodo medio ocupado (\22CPU3\22) = %g\0A\00"
@.str.32 = [27 x i8] c"Utilizacao (\22Disk3\22) = %g\0A\00"
@.str.33 = [39 x i8] c"Comprimento medio fila (\22Disk3\22) = %g\0A\00"
@.str.34 = [38 x i8] c"Periodo medio ocupado (\22Disk3\22) = %g\0A\00"
@.str.35 = [26 x i8] c"Utilizacao (\22CPU4\22) = %g\0A\00"
@.str.36 = [38 x i8] c"Comprimento medio fila (\22CPU4\22) = %g\0A\00"
@.str.37 = [37 x i8] c"Periodo medio ocupado (\22CPU4\22) = %g\0A\00"
@.str.38 = [27 x i8] c"Utilizacao (\22Disk4\22) = %g\0A\00"
@.str.39 = [39 x i8] c"Comprimento medio fila (\22Disk4\22) = %g\0A\00"
@.str.40 = [38 x i8] c"Periodo medio ocupado (\22Disk4\22) = %g\0A\00"
@str = [15 x i8] c"Erro na saida \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
store i32 1, i32* %1
%4 = bitcast i32* %2 to i8*
store i32 1, i32* %2
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32* @sendto(i32* %5)
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
br label %10
10: ; preds = %8, %0
%11 = tail call i32 @smpl(i32 0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%12 = tail call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 1)
%13 = tail call i32 @facility(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 1)
%14 = tail call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 1)
%15 = tail call i32 @facility(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 1)
%16 = tail call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 1)
%17 = tail call i32 @facility(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 1)
%18 = tail call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 1)
%19 = tail call i32 @facility(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 1)
%20 = tail call i32 @facility(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 1)
%21 = tail call i32 @stream(i32 0)
%22 = tail call i32 @schedule(i32 1, double 1.000000e+00, i32 1)
%23 = tail call i32 @schedule(i32 1, double 1.000000e+00, i32 1)
%24 = call double (...) @time()
%25 = fcmp olt double %24, 1.000000e+00
br i1 %25, label %26, label %214
26: ; preds = %10, %208
%27 = phi i32 [ %209, %208 ], [ 0, %10 ]
%28 = call i32 @cause(i32* %1, i32* %2)
%29 = load i32, i32* %1
switch i32 %29, label %208 [
i32 1, label %30
i32 2, label %33
i32 3, label %41
i32 4, label %68
i32 5, label %76
i32 8, label %90
i32 9, label %98
i32 12, label %112
i32 13, label %120
i32 16, label %134
i32 17, label %142
i32 6, label %156
i32 7, label %164
i32 10, label %169
i32 11, label %177
i32 14, label %182
i32 15, label %190
i32 18, label %195
i32 19, label %203
]
30: ; preds = %26
%31 = load i32, i32* %2
%32 = call i32 @schedule(i32 2, double 0.000000e+00, i32 %31)
br label %208
33: ; preds = %26
%34 = load i32, i32* %2
%35 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 2, i32 %34, i32 0)
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %208
37: ; preds = %33
%38 = call double @expntl(float 1.000000e+01)
%39 = load i32, i32* %2
%40 = call i32 @schedule(i32 3, double %38, i32 %39)
br label %208
41: ; preds = %26
%42 = load i32, i32* %2
%43 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %42)
%44 = call i32 @randompar(i32 1, i32 10000)
%45 = add i32 %44, -1
%46 = icmp ult i32 %45, 2500
br i1 %46, label %47, label %50
47: ; preds = %41
%48 = load i32, i32* %2
%49 = call i32 @schedule(i32 4, double 0.000000e+00, i32 %48)
br label %208
50: ; preds = %41
%51 = add i32 %44, -2501
%52 = icmp ult i32 %51, 2500
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, i32* %2
%55 = call i32 @schedule(i32 8, double 0.000000e+00, i32 %54)
br label %208
56: ; preds = %50
%57 = add i32 %44, -5001
%58 = icmp ult i32 %57, 2500
br i1 %58, label %59, label %62
59: ; preds = %56
%60 = load i32, i32* %2
%61 = call i32 @schedule(i32 12, double 0.000000e+00, i32 %60)
br label %208
62: ; preds = %56
%63 = add i32 %44, -7501
%64 = icmp ult i32 %63, 2500
br i1 %64, label %65, label %208
65: ; preds = %62
%66 = load i32, i32* %2
%67 = call i32 @schedule(i32 16, double 0.000000e+00, i32 %66)
br label %208
68: ; preds = %26
%69 = load i32, i32* %2
%70 = call i32 @request(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4, i32 %69, i32 0)
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %208
72: ; preds = %68
%73 = call double @expntl(float 1.000000e+01)
%74 = load i32, i32* %2
%75 = call i32 @schedule(i32 5, double %73, i32 %74)
br label %208
76: ; preds = %26
%77 = load i32, i32* %2
%78 = call i32 @release(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %77)
%79 = call i32 @randompar(i32 1, i32 10000)
%80 = add i32 %79, -1
%81 = icmp ult i32 %80, 8000
br i1 %81, label %82, label %85
82: ; preds = %76
%83 = load i32, i32* %2
%84 = call i32 @schedule(i32 6, double 0.000000e+00, i32 %83)
br label %85
85: ; preds = %82, %76
%86 = add i32 %79, -8001
%87 = icmp ult i32 %86, 2000
%88 = zext i1 %87 to i32
%89 = add nuw nsw i32 %27, %88
br label %208
90: ; preds = %26
%91 = load i32, i32* %2
%92 = call i32 @request(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 8, i32 %91, i32 0)
%93 = icmp eq i32 %92, 0
br i1 %93, label %94, label %208
94: ; preds = %90
%95 = call double @expntl(float 1.000000e+01)
%96 = load i32, i32* %2
%97 = call i32 @schedule(i32 9, double %95, i32 %96)
br label %208
98: ; preds = %26
%99 = load i32, i32* %2
%100 = call i32 @release(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %99)
%101 = call i32 @randompar(i32 1, i32 10000)
%102 = add i32 %101, -1
%103 = icmp ult i32 %102, 8000
br i1 %103, label %104, label %107
104: ; preds = %98
%105 = load i32, i32* %2
%106 = call i32 @schedule(i32 10, double 0.000000e+00, i32 %105)
br label %107
107: ; preds = %104, %98
%108 = add i32 %101, -8001
%109 = icmp ult i32 %108, 2000
%110 = zext i1 %109 to i32
%111 = add nuw nsw i32 %27, %110
br label %208
112: ; preds = %26
%113 = load i32, i32* %2
%114 = call i32 @request(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 12, i32 %113, i32 0)
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %208
116: ; preds = %112
%117 = call double @expntl(float 1.000000e+01)
%118 = load i32, i32* %2
%119 = call i32 @schedule(i32 13, double %117, i32 %118)
br label %208
120: ; preds = %26
%121 = load i32, i32* %2
%122 = call i32 @release(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %121)
%123 = call i32 @randompar(i32 1, i32 10000)
%124 = add i32 %123, -1
%125 = icmp ult i32 %124, 8000
br i1 %125, label %126, label %129
126: ; preds = %120
%127 = load i32, i32* %2
%128 = call i32 @schedule(i32 14, double 0.000000e+00, i32 %127)
br label %129
129: ; preds = %126, %120
%130 = add i32 %123, -8001
%131 = icmp ult i32 %130, 2000
%132 = zext i1 %131 to i32
%133 = add nuw nsw i32 %27, %132
br label %208
134: ; preds = %26
%135 = load i32, i32* %2
%136 = call i32 @request(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 16, i32 %135, i32 0)
%137 = icmp eq i32 %136, 0
br i1 %137, label %138, label %208
138: ; preds = %134
%139 = call double @expntl(float 1.000000e+01)
%140 = load i32, i32* %2
%141 = call i32 @schedule(i32 17, double %139, i32 %140)
br label %208
142: ; preds = %26
%143 = load i32, i32* %2
%144 = call i32 @release(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i32 %143)
%145 = call i32 @randompar(i32 1, i32 10000)
%146 = add i32 %145, -1
%147 = icmp ult i32 %146, 8000
br i1 %147, label %148, label %151
148: ; preds = %142
%149 = load i32, i32* %2
%150 = call i32 @schedule(i32 18, double 0.000000e+00, i32 %149)
br label %151
151: ; preds = %148, %142
%152 = add i32 %145, -8001
%153 = icmp ult i32 %152, 2000
%154 = zext i1 %153 to i32
%155 = add nuw nsw i32 %27, %154
br label %208
156: ; preds = %26
%157 = load i32, i32* %2
%158 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 6, i32 %157, i32 0)
%159 = icmp eq i32 %158, 0
br i1 %159, label %160, label %208
160: ; preds = %156
%161 = call double @expntl(float 1.000000e+01)
%162 = load i32, i32* %2
%163 = call i32 @schedule(i32 7, double %161, i32 %162)
br label %208
164: ; preds = %26
%165 = load i32, i32* %2
%166 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %165)
%167 = load i32, i32* %2
%168 = call i32 @schedule(i32 4, double 0.000000e+00, i32 %167)
br label %208
169: ; preds = %26
%170 = load i32, i32* %2
%171 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 10, i32 %170, i32 0)
%172 = icmp eq i32 %171, 0
br i1 %172, label %173, label %208
173: ; preds = %169
%174 = call double @expntl(float 1.000000e+01)
%175 = load i32, i32* %2
%176 = call i32 @schedule(i32 11, double %174, i32 %175)
br label %208
177: ; preds = %26
%178 = load i32, i32* %2
%179 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %178)
%180 = load i32, i32* %2
%181 = call i32 @schedule(i32 8, double 0.000000e+00, i32 %180)
br label %208
182: ; preds = %26
%183 = load i32, i32* %2
%184 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 14, i32 %183, i32 0)
%185 = icmp eq i32 %184, 0
br i1 %185, label %186, label %208
186: ; preds = %182
%187 = call double @expntl(float 1.000000e+01)
%188 = load i32, i32* %2
%189 = call i32 @schedule(i32 15, double %187, i32 %188)
br label %208
190: ; preds = %26
%191 = load i32, i32* %2
%192 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %191)
%193 = load i32, i32* %2
%194 = call i32 @schedule(i32 12, double 0.000000e+00, i32 %193)
br label %208
195: ; preds = %26
%196 = load i32, i32* %2
%197 = call i32 @request(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 18, i32 %196, i32 0)
%198 = icmp eq i32 %197, 0
br i1 %198, label %199, label %208
199: ; preds = %195
%200 = call double @expntl(float 1.000000e+01)
%201 = load i32, i32* %2
%202 = call i32 @schedule(i32 19, double %200, i32 %201)
br label %208
203: ; preds = %26
%204 = load i32, i32* %2
%205 = call i32 @release(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 %204)
%206 = load i32, i32* %2
%207 = call i32 @schedule(i32 16, double 0.000000e+00, i32 %206)
br label %208
208: ; preds = %53, %47, %59, %151, %129, %107, %85, %195, %199, %182, %186, %169, %173, %156, %160, %134, %138, %112, %116, %90, %94, %68, %72, %62, %65, %33, %37, %26, %203, %190, %177, %164, %30
%209 = phi i32 [ %27, %26 ], [ %27, %203 ], [ %27, %199 ], [ %27, %195 ], [ %27, %190 ], [ %27, %186 ], [ %27, %182 ], [ %27, %177 ], [ %27, %173 ], [ %27, %169 ], [ %27, %164 ], [ %27, %160 ], [ %27, %156 ], [ %27, %138 ], [ %27, %134 ], [ %27, %116 ], [ %27, %112 ], [ %27, %94 ], [ %27, %90 ], [ %27, %72 ], [ %27, %68 ], [ %27, %65 ], [ %27, %62 ], [ %27, %37 ], [ %27, %33 ], [ %27, %30 ], [ %89, %85 ], [ %111, %107 ], [ %133, %129 ], [ %155, %151 ], [ %27, %59 ], [ %27, %47 ], [ %27, %53 ]
%210 = call double (...) @time()
%211 = fcmp olt double %210, 1.000000e+00
%212 = icmp ult i32 %209, 2
%213 = select i1 %211, i1 %212, i1 false
br i1 %213, label %26, label %214
214: ; preds = %208, %10
%215 = call double (...) @time()
%216 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), double %215)
%217 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%218 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), double %217)
%219 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%220 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0), double %219)
%221 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%222 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), double %221)
%223 = call double @utilizacao_recurso(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%224 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0), double %223)
%225 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%226 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), double %225)
%227 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%228 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0), double %227)
%229 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%230 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.20, i64 0, i64 0), double %229)
%231 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%232 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.21, i64 0, i64 0), double %231)
%233 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%234 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.22, i64 0, i64 0), double %233)
%235 = call double @utilizacao_recurso(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%236 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.23, i64 0, i64 0), double %235)
%237 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%238 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.24, i64 0, i64 0), double %237)
%239 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%240 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.25, i64 0, i64 0), double %239)
%241 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%242 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.26, i64 0, i64 0), double %241)
%243 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%244 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.27, i64 0, i64 0), double %243)
%245 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%246 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.28, i64 0, i64 0), double %245)
%247 = call double @utilizacao_recurso(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%248 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.29, i64 0, i64 0), double %247)
%249 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%250 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.30, i64 0, i64 0), double %249)
%251 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%252 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.31, i64 0, i64 0), double %251)
%253 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%254 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.32, i64 0, i64 0), double %253)
%255 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%256 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.33, i64 0, i64 0), double %255)
%257 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%258 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.34, i64 0, i64 0), double %257)
%259 = call double @utilizacao_recurso(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%260 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.35, i64 0, i64 0), double %259)
%261 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%262 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.36, i64 0, i64 0), double %261)
%263 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%264 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.37, i64 0, i64 0), double %263)
%265 = call double @utilizacao_recurso(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%266 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.38, i64 0, i64 0), double %265)
%267 = call double @comprimento_medio_fila(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%268 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.39, i64 0, i64 0), double %267)
%269 = call double @periodo_medio_ocupado(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%270 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.40, i64 0, i64 0), double %269)
%271 = call i32 @fclose(i32* %5)
ret i32 0
}