#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct stat {
  int st_size;
};
struct TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ server;
typedef int /*<<< orphan*/ client;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int O_CREAT;
int O_EXCL;
int /*<<< orphan*/ O_RDONLY;
int O_WRONLY;
int /*<<< orphan*/ SOCK_STREAM;
int accept(int, struct sockaddr *, int *);
int /*<<< orphan*/ atoi(char *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ htons(int /*<<< orphan*/);
int /*<<< orphan*/ inet_addr(char *);
int listen(int, int);
char *malloc(int);
int open(char *, int, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ recv(int, ...);
int /*<<< orphan*/ send(int, int *, int, int /*<<< orphan*/);
int /*<<< orphan*/ sendfile(int, int, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ sleep(int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ sscanf(char *, char *, char *, ...);
int /*<<< orphan*/ stat(char *, struct stat *);
int /*<<< orphan*/ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ system(char *);
int write(int, char *, int);
int main(int argc, char *argv[]) {
  struct sockaddr_in server, client;
  struct stat obj;
  int sock1, sock2;
  char buf[100], command[5], filename[20];
  int k, i, size, len, c;
  int filehandle;
  sock1 = socket(AF_INET, SOCK_STREAM, 0);
  if (sock1 == -1) {
    printf("Socket creation failed");
    exit(1);
  }
  server.sin_family = AF_INET;
  server.sin_port = htons(atoi(argv[1]));
  server.sin_addr.s_addr = inet_addr("127.0.0.1");
  k = bind(sock1, (struct sockaddr *)&server, sizeof(server));
  if (k == -1) {
    printf("Binding error");
    exit(1);
  }
  k = listen(sock1, 1);
  if (k == -1) {
    printf("Listen failed");
    exit(1);
  }
  len = sizeof(client);
  sock2 = accept(sock1, (struct sockaddr *)&client, &len);
  i = 1;
  while (1) {
    recv(sock2, buf, 100, 0);
    sscanf(buf, "%s", command);
    if (!strcmp(command, "ls")) {
      system("ls |grep mp4>temps.txt");
      i = 0;
      stat("temps.txt", &obj);
      size = obj.st_size;
      send(sock2, &size, sizeof(int), 0);
      filehandle = open("temps.txt", O_RDONLY);
      sendfile(sock2, filehandle, NULL, size);
    } else if (!strcmp(command, "get")) {
      sscanf(buf, "%s%s", filename, filename);
      stat(filename, &obj);
      filehandle = open(filename, O_RDONLY);
      size = obj.st_size;
      printf("--%d--", size);
      if (filehandle == -1)
        size = 0;
      send(sock2, &size, sizeof(int), 0);
      if (size)
        sendfile(sock2, filehandle, NULL, size);
    } else if (!strcmp(command, "put")) {
      int c = 0, len;
      char *f;
      sscanf(buf + strlen(command), "%s", filename);
      recv(sock2, &size, sizeof(int), 0);
      i = 1;
      while (1) {
        filehandle = open(filename, O_CREAT | O_EXCL | O_WRONLY, 0666);
        if (filehandle == -1) {
          sprintf(filename + strlen(filename), "%d", i);
        } else
          break;
      }
      f = malloc(size);
      recv(sock2, f, size, 0);
      c = write(filehandle, f, size);
      close(filehandle);
      send(sock2, &c, sizeof(int), 0);
    } else if (!strcmp(command, "bye") || !strcmp(command, "quit")) {
      printf("HYPE Server quitting..\n");
      sleep(1);
      printf("z ");
      sleep(1);
      printf("zz ");
      sleep(1);
      printf("zzz ");
      i = 1;
      send(sock2, &i, sizeof(int), 0);
      exit(0);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2d50(%rip),%rax
mov    (%rax),%edi
mov    0x2d27(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1190 <socket@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0xffffffff,-0x3c(%rbp)
jne    12c7 <main+0x57>
lea    0xd4a(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x1,%edi
call   1170 <exit@plt>
mov    0x2d12(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1150 <atoi@plt>
mov    %eax,%edi
call   1070 <htons@plt>
mov    %eax,-0x1c(%rbp)
lea    0xd26(%rip),%rdi
call   10b0 <inet_addr@plt>
mov    %eax,-0x20(%rbp)
mov    -0x3c(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    $0xc,%edx
call   1120 <bind@plt>
mov    %eax,-0xd4(%rbp)
cmpl   $0xffffffff,-0xd4(%rbp)
jne    1335 <main+0xc5>
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x1,%edi
call   1170 <exit@plt>
mov    -0x3c(%rbp),%edi
mov    $0x1,%esi
call   10f0 <listen@plt>
mov    %eax,-0xd4(%rbp)
cmpl   $0xffffffff,-0xd4(%rbp)
jne    136d <main+0xfd>
lea    0xcd3(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x1,%edi
call   1170 <exit@plt>
movl   $0xc,-0xe0(%rbp)
mov    -0x3c(%rbp),%edi
lea    -0x30(%rbp),%rsi
lea    -0xe0(%rbp),%rdx
call   1140 <accept@plt>
mov    %eax,-0x40(%rbp)
movl   $0x1,-0xd8(%rbp)
mov    -0x40(%rbp),%edi
lea    -0xb0(%rbp),%rsi
mov    $0x64,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <recv@plt>
lea    -0xb0(%rbp),%rdi
lea    -0xb5(%rbp),%rdx
lea    0xc99(%rip),%rsi
mov    $0x0,%al
call   1100 <sscanf@plt>
lea    -0xb5(%rbp),%rdi
lea    0xc64(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%eax
jne    1466 <main+0x1f6>
lea    0xc52(%rip),%rdi
call   1060 <system@plt>
movl   $0x0,-0xd8(%rbp)
lea    0xc49(%rip),%rdi
lea    -0x38(%rbp),%rsi
call   10d0 <stat@plt>
mov    -0x38(%rbp),%eax
mov    %eax,-0xdc(%rbp)
mov    -0x40(%rbp),%edi
lea    -0xdc(%rbp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
mov    0x2ba5(%rip),%rax
mov    (%rax),%esi
lea    0xc11(%rip),%rdi
mov    $0x0,%al
call   1130 <open@plt>
mov    %eax,-0xe8(%rbp)
mov    -0x40(%rbp),%edi
mov    -0xe8(%rbp),%esi
mov    -0xdc(%rbp),%ecx
xor    %eax,%eax
mov    %eax,%edx
call   1110 <sendfile@plt>
jmp    1784 <main+0x514>
lea    -0xb5(%rbp),%rdi
lea    0xbe3(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%eax
jne    1546 <main+0x2d6>
lea    -0xb0(%rbp),%rdi
lea    -0xd0(%rbp),%rdx
lea    -0xd0(%rbp),%rcx
lea    0xbbd(%rip),%rsi
mov    $0x0,%al
call   1100 <sscanf@plt>
lea    -0xd0(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   10d0 <stat@plt>
lea    -0xd0(%rbp),%rdi
mov    0x2b15(%rip),%rax
mov    (%rax),%esi
mov    $0x0,%al
call   1130 <open@plt>
mov    %eax,-0xe8(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0xdc(%rbp)
mov    -0xdc(%rbp),%esi
lea    0xb78(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
cmpl   $0xffffffff,-0xe8(%rbp)
jne    1506 <main+0x296>
movl   $0x0,-0xdc(%rbp)
mov    -0x40(%rbp),%edi
lea    -0xdc(%rbp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
cmpl   $0x0,-0xdc(%rbp)
je     1541 <main+0x2d1>
mov    -0x40(%rbp),%edi
mov    -0xe8(%rbp),%esi
mov    -0xdc(%rbp),%ecx
xor    %eax,%eax
mov    %eax,%edx
call   1110 <sendfile@plt>
jmp    177f <main+0x50f>
lea    -0xb5(%rbp),%rdi
lea    0xb13(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%eax
jne    16c0 <main+0x450>
movl   $0x0,-0xec(%rbp)
lea    -0xb0(%rbp),%rax
mov    %rax,-0x100(%rbp)
lea    -0xb5(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x100(%rbp),%rdi
cltq
add    %rax,%rdi
lea    -0xd0(%rbp),%rdx
lea    0xabd(%rip),%rsi
mov    $0x0,%al
call   1100 <sscanf@plt>
mov    -0x40(%rbp),%edi
lea    -0xdc(%rbp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <recv@plt>
movl   $0x1,-0xd8(%rbp)
lea    -0xd0(%rbp),%rdi
mov    0x2a21(%rip),%rax
mov    (%rax),%esi
mov    0x29e8(%rip),%rax
or     (%rax),%esi
mov    0x29c7(%rip),%rax
or     (%rax),%esi
mov    $0x1b6,%edx
mov    $0x0,%al
call   1130 <open@plt>
mov    %eax,-0xe8(%rbp)
cmpl   $0xffffffff,-0xe8(%rbp)
jne    1647 <main+0x3d7>
lea    -0xd0(%rbp),%rax
mov    %rax,-0x108(%rbp)
lea    -0xd0(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x108(%rbp),%rdi
cltq
add    %rax,%rdi
mov    -0xd8(%rbp),%edx
lea    0xa2e(%rip),%rsi
call   1160 <sprintf@plt>
jmp    164c <main+0x3dc>
jmp    1651 <main+0x3e1>
jmp    15c9 <main+0x359>
mov    -0xdc(%rbp),%edi
call   10e0 <malloc@plt>
mov    %rax,-0xf8(%rbp)
mov    -0x40(%rbp),%edi
mov    -0xf8(%rbp),%rsi
mov    -0xdc(%rbp),%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <recv@plt>
mov    -0xe8(%rbp),%edi
mov    -0xf8(%rbp),%rsi
mov    -0xdc(%rbp),%edx
call   1040 <write@plt>
mov    %eax,-0xec(%rbp)
mov    -0xe8(%rbp),%edi
call   10a0 <close@plt>
mov    -0x40(%rbp),%edi
lea    -0xec(%rbp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
jmp    177a <main+0x50a>
lea    -0xb5(%rbp),%rdi
lea    0x9a0(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%eax
je     16f8 <main+0x488>
lea    -0xb5(%rbp),%rdi
lea    0x988(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%eax
jne    1775 <main+0x505>
lea    0x978(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x1,%edi
call   1180 <sleep@plt>
lea    0x97a(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x1,%edi
call   1180 <sleep@plt>
lea    0x961(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x1,%edi
call   1180 <sleep@plt>
lea    0x948(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
movl   $0x1,-0xd8(%rbp)
mov    -0x40(%rbp),%edi
lea    -0xd8(%rbp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
xor    %edi,%edi
call   1170 <exit@plt>
jmp    177a <main+0x50a>
jmp    177f <main+0x50f>
jmp    1784 <main+0x514>
jmp    1397 <main+0x127>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    %rsi,%rbp
mov    0x2d55(%rip),%r14
mov    (%r14),%edi
mov    0x2d2b(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1190 <socket@plt>
cmp    $0xffffffff,%eax
jne    12ac <main+0x3c>
lea    0xd56(%rip),%rdi
jmp    1310 <main+0xa0>
mov    %eax,%ebx
mov    (%r14),%eax
mov    %eax,0x38(%rsp)
mov    0x8(%rbp),%rdi
call   1150 <atoi@plt>
mov    %eax,%edi
call   1080 <htons@plt>
mov    %eax,0x34(%rsp)
lea    0xd47(%rip),%rdi
call   10c0 <inet_addr@plt>
mov    %eax,0x30(%rsp)
lea    0x30(%rsp),%rsi
mov    %ebx,%edi
mov    $0xc,%edx
call   1120 <bind@plt>
cmp    $0xffffffff,%eax
jne    12f8 <main+0x88>
lea    0xd2b(%rip),%rdi
jmp    1310 <main+0xa0>
mov    %ebx,%edi
mov    $0x1,%esi
call   10f0 <listen@plt>
cmp    $0xffffffff,%eax
jne    1321 <main+0xb1>
lea    0xd1f(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
mov    $0x1,%edi
call   1170 <exit@plt>
movl   $0xc,0x2c(%rsp)
lea    0x60(%rsp),%rsi
lea    0x2c(%rsp),%rdx
mov    %ebx,%edi
call   1140 <accept@plt>
mov    %eax,%r13d
lea    0x70(%rsp),%rbp
lea    0xd14(%rip),%r15
lea    0x40(%rsp),%r12
mov    %eax,0x28(%rsp)
jmp    13c7 <main+0x157>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xcd9(%rip),%rdi
call   1070 <system@plt>
movl   $0x0,0x20(%rsp)
lea    0xcd2(%rip),%rbx
mov    %rbx,%rdi
lea    0x18(%rsp),%rsi
call   10d0 <stat@plt>
mov    0x18(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    %r13d,%edi
lea    0xc(%rsp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1090 <send@plt>
mov    0x2c2d(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1130 <open@plt>
mov    0xc(%rsp),%ecx
mov    %r13d,%edi
mov    %eax,%esi
xor    %edx,%edx
call   1110 <sendfile@plt>
mov    %r13d,%edi
mov    %rbp,%rsi
mov    $0x64,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <recv@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
lea    0x13(%rsp),%rdx
xor    %eax,%eax
call   1100 <sscanf@plt>
movzwl 0x13(%rsp),%eax
xor    $0x736c,%eax
movzbl 0x15(%rsp),%ecx
or     %ax,%cx
je     1360 <main+0xf0>
cmpl   $0x746567,0x13(%rsp)
je     1450 <main+0x1e0>
cmpl   $0x747570,0x13(%rsp)
je     14d6 <main+0x266>
cmpl   $0x657962,0x13(%rsp)
je     161b <main+0x3ab>
mov    0x13(%rsp),%eax
mov    $0x74697571,%ecx
xor    %ecx,%eax
movzbl 0x17(%rsp),%ecx
or     %eax,%ecx
jne    13c7 <main+0x157>
jmp    161b <main+0x3ab>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rdi
lea    0xc01(%rip),%rsi
mov    %r12,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1100 <sscanf@plt>
mov    %r12,%rdi
lea    0x18(%rsp),%rsi
call   10d0 <stat@plt>
mov    0x2b5d(%rip),%rax
mov    (%rax),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1130 <open@plt>
mov    %eax,%ebx
mov    0x18(%rsp),%esi
mov    %esi,0xc(%rsp)
lea    0xbc8(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
cmp    $0xffffffff,%ebx
jne    14ac <main+0x23c>
movl   $0x0,0xc(%rsp)
mov    %r13d,%edi
lea    0xc(%rsp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1090 <send@plt>
mov    0xc(%rsp),%ecx
test   %ecx,%ecx
je     13c7 <main+0x157>
mov    %r13d,%edi
mov    %ebx,%esi
jmp    13c0 <main+0x150>
movl   $0x0,0x24(%rsp)
lea    0x13(%rsp),%rdi
call   1060 <strlen@plt>
cltq
lea    (%rsp,%rax,1),%rdi
add    $0x70,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <sscanf@plt>
mov    $0x4,%edx
mov    %r13d,%edi
lea    0xc(%rsp),%rsi
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <recv@plt>
movl   $0x1,0x20(%rsp)
mov    0x2aa4(%rip),%r14
mov    (%r14),%esi
mov    0x2aca(%rip),%rbx
or     (%rbx),%esi
mov    0x2a79(%rip),%rax
or     (%rax),%esi
mov    %r12,%rdi
mov    $0x1b6,%edx
xor    %eax,%eax
call   1130 <open@plt>
mov    %eax,%r15d
cmp    $0xffffffff,%eax
mov    %r13d,%r12d
jne    15b4 <main+0x344>
mov    0x2a56(%rip),%r13
lea    0x40(%rsp),%rbp
lea    0xb05(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   1060 <strlen@plt>
cltq
lea    (%rsp,%rax,1),%rdi
add    $0x40,%rdi
mov    %r12,%rsi
mov    $0x1,%edx
call   1160 <sprintf@plt>
mov    (%r14),%esi
or     (%rbx),%esi
or     0x0(%r13),%esi
mov    %rbp,%rdi
mov    $0x1b6,%edx
xor    %eax,%eax
call   1130 <open@plt>
cmp    $0xffffffff,%eax
je     1570 <main+0x300>
mov    %eax,%r15d
mov    0x28(%rsp),%r12d
mov    0xc(%rsp),%ebx
mov    %ebx,%edi
call   10e0 <malloc@plt>
mov    %rax,%r13
mov    %r12d,%edi
mov    %rax,%rsi
mov    %ebx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <recv@plt>
mov    0xc(%rsp),%edx
mov    %r15d,%edi
mov    %r13,%rsi
call   1050 <write@plt>
mov    %eax,0x24(%rsp)
mov    %r15d,%edi
call   10b0 <close@plt>
mov    %r12d,%edi
lea    0x24(%rsp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1090 <send@plt>
lea    0xa54(%rip),%r15
lea    0x70(%rsp),%rbp
mov    %r12d,%r13d
lea    0x40(%rsp),%r12
jmp    13c7 <main+0x157>
lea    0xa5a(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1180 <sleep@plt>
lea    0xa41(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
mov    $0x1,%edi
call   1180 <sleep@plt>
lea    0xa28(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
mov    $0x1,%edi
call   1180 <sleep@plt>
lea    0xa0f(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
movl   $0x1,0x20(%rsp)
lea    0x20(%rsp),%rsi
mov    %r13d,%edi
mov    $0x4,%edx
xor    %ecx,%ecx
call   1090 <send@plt>
xor    %edi,%edi
call   1170 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.stat = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [23 x i8] c"Socket creation failed\00"
@.str.1 = [10 x i8] c"127.0.0.1\00"
@.str.2 = [14 x i8] c"Binding error\00"
@.str.3 = [14 x i8] c"Listen failed\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [3 x i8] c"ls\00"
@.str.6 = [23 x i8] c"ls |grep mp4>temps.txt\00"
@.str.7 = [10 x i8] c"temps.txt\00"
@O_RDONLY = global i32 0
@.str.8 = [4 x i8] c"get\00"
@.str.9 = [5 x i8] c"%s%s\00"
@.str.10 = [7 x i8] c"--%d--\00"
@.str.11 = [4 x i8] c"put\00"
@O_CREAT = global i32 0
@O_EXCL = global i32 0
@O_WRONLY = global i32 0
@.str.12 = [3 x i8] c"%d\00"
@.str.13 = [4 x i8] c"bye\00"
@.str.14 = [5 x i8] c"quit\00"
@.str.15 = [24 x i8] c"HYPE Server quitting..\0A\00"
@.str.16 = [3 x i8] c"z \00"
@.str.17 = [4 x i8] c"zz \00"
@.str.18 = [5 x i8] c"zzz \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.sockaddr_in
%7 = alloca %struct.sockaddr_in
%8 = alloca %struct.stat
%9 = alloca i32
%10 = alloca i32
%11 = alloca [100 x i8]
%12 = alloca [5 x i8]
%13 = alloca [20 x i8]
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%23 = load i32, i32* @AF_INET
%24 = load i32, i32* @SOCK_STREAM
%25 = call i32 @socket(i32 %23, i32 %24, i32 0)
store i32 %25, i32* %9
%26 = load i32, i32* %9
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %31
28: ; preds = %2
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%30 = call i32 @exit(i32 1)
unreachable
31: ; preds = %2
%32 = load i32, i32* @AF_INET
%33 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 2
store i32 %32, i32* %33
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 1
%36 = load i8*, i8** %35
%37 = call i32 @atoi(i8* %36)
%38 = call i32 @htons(i32 %37)
%39 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 1
store i32 %38, i32* %39
%40 = call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%41 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %6, i32 0, i32 0
%42 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %41, i32 0, i32 0
store i32 %40, i32* %42
%43 = load i32, i32* %9
%44 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%45 = call i32 @bind(i32 %43, %struct.sockaddr* %44, i32 12)
store i32 %45, i32* %14
%46 = load i32, i32* %14
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %51
48: ; preds = %31
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %31
%52 = load i32, i32* %9
%53 = call i32 @listen(i32 %52, i32 1)
store i32 %53, i32* %14
%54 = load i32, i32* %14
%55 = icmp eq i32 %54, -1
br i1 %55, label %56, label %59
56: ; preds = %51
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%58 = call i32 @exit(i32 1)
unreachable
59: ; preds = %51
store i32 12, i32* %17
%60 = load i32, i32* %9
%61 = bitcast %struct.sockaddr_in* %7 to %struct.sockaddr*
%62 = call i32 @accept(i32 %60, %struct.sockaddr* %61, i32* %17)
store i32 %62, i32* %10
store i32 1, i32* %15
br label %63
63: ; preds = %59, %189
%64 = load i32, i32* %10
%65 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%66 = call i32 (i32, ...) @recv(i32 %64, i8* %65, i32 100, i32 0)
%67 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%68 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%69 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %67, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %68)
%70 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%71 = call i32 @strcmp(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%72 = icmp ne i32 %71, 0
br i1 %72, label %86, label %73
73: ; preds = %63
%74 = call i32 @system(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %15
%75 = call i32 @stat(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %struct.stat* %8)
%76 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%77 = load i32, i32* %76
store i32 %77, i32* %16
%78 = load i32, i32* %10
%79 = call i32 @send(i32 %78, i32* %16, i32 4, i32 0)
%80 = load i32, i32* @O_RDONLY
%81 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %80)
store i32 %81, i32* %19
%82 = load i32, i32* %10
%83 = load i32, i32* %19
%84 = load i32, i32* %16
%85 = call i32 @sendfile(i32 %82, i32 %83, i32* null, i32 %84)
br label %189
86: ; preds = %63
%87 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%88 = call i32 @strcmp(i8* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%89 = icmp ne i32 %88, 0
br i1 %89, label %118, label %90
90: ; preds = %86
%91 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%92 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%93 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%94 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %91, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %92, i8* %93)
%95 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%96 = call i32 @stat(i8* %95, %struct.stat* %8)
%97 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%98 = load i32, i32* @O_RDONLY
%99 = call i32 (i8*, i32, ...) @open(i8* %97, i32 %98)
store i32 %99, i32* %19
%100 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%101 = load i32, i32* %100
store i32 %101, i32* %16
%102 = load i32, i32* %16
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %102)
%104 = load i32, i32* %19
%105 = icmp eq i32 %104, -1
br i1 %105, label %106, label %107
106: ; preds = %90
store i32 0, i32* %16
br label %107
107: ; preds = %106, %90
%108 = load i32, i32* %10
%109 = call i32 @send(i32 %108, i32* %16, i32 4, i32 0)
%110 = load i32, i32* %16
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %117
112: ; preds = %107
%113 = load i32, i32* %10
%114 = load i32, i32* %19
%115 = load i32, i32* %16
%116 = call i32 @sendfile(i32 %113, i32 %114, i32* null, i32 %115)
br label %117
117: ; preds = %112, %107
br label %188
118: ; preds = %86
%119 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%120 = call i32 @strcmp(i8* %119, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%121 = icmp ne i32 %120, 0
br i1 %121, label %167, label %122
122: ; preds = %118
store i32 0, i32* %20
%123 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i64 0, i64 0
%124 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%125 = call i32 @strlen(i8* %124)
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, i8* %123, i64 %126
%128 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%129 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %127, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %128)
%130 = load i32, i32* %10
%131 = call i32 (i32, ...) @recv(i32 %130, i32* %16, i64 4, i32 0)
store i32 1, i32* %15
br label %132
132: ; preds = %122, %151
%133 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%134 = load i32, i32* @O_CREAT
%135 = load i32, i32* @O_EXCL
%136 = or i32 %134, %135
%137 = load i32, i32* @O_WRONLY
%138 = or i32 %136, %137
%139 = call i32 (i8*, i32, ...) @open(i8* %133, i32 %138, i32 438)
store i32 %139, i32* %19
%140 = load i32, i32* %19
%141 = icmp eq i32 %140, -1
br i1 %141, label %142, label %150
142: ; preds = %132
%143 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%144 = getelementptr inbounds [20 x i8], [20 x i8]* %13, i64 0, i64 0
%145 = call i32 @strlen(i8* %144)
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i8, i8* %143, i64 %146
%148 = load i32, i32* %15
%149 = call i32 @sprintf(i8* %147, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32 %148)
br label %151
150: ; preds = %132
br label %152
151: ; preds = %142
br label %132
152: ; preds = %150
%153 = load i32, i32* %16
%154 = call i8* @malloc(i32 %153)
store i8* %154, i8** %22
%155 = load i32, i32* %10
%156 = load i8*, i8** %22
%157 = load i32, i32* %16
%158 = call i32 (i32, ...) @recv(i32 %155, i8* %156, i32 %157, i32 0)
%159 = load i32, i32* %19
%160 = load i8*, i8** %22
%161 = load i32, i32* %16
%162 = call i32 @write(i32 %159, i8* %160, i32 %161)
store i32 %162, i32* %20
%163 = load i32, i32* %19
%164 = call i32 @close(i32 %163)
%165 = load i32, i32* %10
%166 = call i32 @send(i32 %165, i32* %20, i32 4, i32 0)
br label %187
167: ; preds = %118
%168 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%169 = call i32 @strcmp(i8* %168, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%170 = icmp ne i32 %169, 0
br i1 %170, label %171, label %175
171: ; preds = %167
%172 = getelementptr inbounds [5 x i8], [5 x i8]* %12, i64 0, i64 0
%173 = call i32 @strcmp(i8* %172, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%174 = icmp ne i32 %173, 0
br i1 %174, label %186, label %175
175: ; preds = %171, %167
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.15, i64 0, i64 0))
%177 = call i32 @sleep(i32 1)
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%179 = call i32 @sleep(i32 1)
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%181 = call i32 @sleep(i32 1)
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
store i32 1, i32* %15
%183 = load i32, i32* %10
%184 = call i32 @send(i32 %183, i32* %15, i32 4, i32 0)
%185 = call i32 @exit(i32 0)
unreachable
186: ; preds = %171
br label %187
187: ; preds = %186, %152
br label %188
188: ; preds = %187, %117
br label %189
189: ; preds = %188, %73
br label %63
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.stat = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [23 x i8] c"Socket creation failed\00"
@.str.1 = [10 x i8] c"127.0.0.1\00"
@.str.2 = [14 x i8] c"Binding error\00"
@.str.3 = [14 x i8] c"Listen failed\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [3 x i8] c"ls\00"
@.str.6 = [23 x i8] c"ls |grep mp4>temps.txt\00"
@.str.7 = [10 x i8] c"temps.txt\00"
@O_RDONLY = global i32 0
@.str.8 = [4 x i8] c"get\00"
@.str.9 = [5 x i8] c"%s%s\00"
@.str.10 = [7 x i8] c"--%d--\00"
@.str.11 = [4 x i8] c"put\00"
@O_CREAT = global i32 0
@O_EXCL = global i32 0
@O_WRONLY = global i32 0
@.str.12 = [3 x i8] c"%d\00"
@.str.13 = [4 x i8] c"bye\00"
@.str.14 = [5 x i8] c"quit\00"
@.str.16 = [3 x i8] c"z \00"
@.str.17 = [4 x i8] c"zz \00"
@.str.18 = [5 x i8] c"zzz \00"
@str = [23 x i8] c"HYPE Server quitting..\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.sockaddr_in
%4 = alloca %struct.sockaddr_in
%5 = alloca %struct.stat
%6 = alloca [100 x i8]
%7 = alloca [5 x i8]
%8 = alloca [20 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = bitcast %struct.sockaddr_in* %3 to i8*
%14 = bitcast %struct.sockaddr_in* %4 to i8*
%15 = bitcast %struct.stat* %5 to i8*
%16 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%17 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%18 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%19 = bitcast i32* %9 to i8*
%20 = bitcast i32* %10 to i8*
%21 = bitcast i32* %11 to i8*
%22 = load i32, i32* @AF_INET
%23 = load i32, i32* @SOCK_STREAM
%24 = tail call i32 @socket(i32 %22, i32 %23, i32 0)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %29
26: ; preds = %2
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%28 = tail call i32 @exit(i32 1)
unreachable
29: ; preds = %2
%30 = load i32, i32* @AF_INET
%31 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 2
store i32 %30, i32* %31
%32 = getelementptr inbounds i8*, i8** %1, i64 1
%33 = load i8*, i8** %32
%34 = tail call i32 @atoi(i8* %33)
%35 = tail call i32 @htons(i32 %34)
%36 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 1
store i32 %35, i32* %36
%37 = tail call i32 @inet_addr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%38 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %3, i64 0, i32 0, i32 0
store i32 %37, i32* %38
%39 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%40 = call i32 @bind(i32 %24, %struct.sockaddr* %39, i32 12)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %45
42: ; preds = %29
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%44 = call i32 @exit(i32 1)
unreachable
45: ; preds = %29
%46 = call i32 @listen(i32 %24, i32 1)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%50 = call i32 @exit(i32 1)
unreachable
51: ; preds = %45
store i32 12, i32* %11
%52 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%53 = call i32 @accept(i32 %24, %struct.sockaddr* %52, i32* %11)
%54 = bitcast i32* %12 to i8*
%55 = getelementptr inbounds %struct.stat, %struct.stat* %5, i64 0, i32 0
br label %56
56: ; preds = %88, %51
%57 = call i32 (i32, ...) @recv(i32 %53, i8* %16, i32 100, i32 0)
%58 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %17)
%59 = call i32 @bcmp(i8* dereferenceable(3) %17, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i64 3)
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %70
61: ; preds = %56
%62 = call i32 @system(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %9
%63 = call i32 @stat(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %struct.stat* %5)
%64 = load i32, i32* %55
store i32 %64, i32* %10
%65 = call i32 @send(i32 %53, i32* %10, i32 4, i32 0)
%66 = load i32, i32* @O_RDONLY
%67 = call i32 (i8*, i32, ...) @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %66)
%68 = load i32, i32* %10
%69 = call i32 @sendfile(i32 %53, i32 %67, i32* null, i32 %68)
br label %88
70: ; preds = %56
%71 = call i32 @bcmp(i8* dereferenceable(4) %17, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i64 4)
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %89
73: ; preds = %70
%74 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %18, i8* %18)
%75 = call i32 @stat(i8* %18, %struct.stat* %5)
%76 = load i32, i32* @O_RDONLY
%77 = call i32 (i8*, i32, ...) @open(i8* %18, i32 %76)
%78 = load i32, i32* %55
store i32 %78, i32* %10
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %78)
%80 = icmp eq i32 %77, -1
br i1 %80, label %81, label %82
81: ; preds = %73
store i32 0, i32* %10
br label %82
82: ; preds = %81, %73
%83 = call i32 @send(i32 %53, i32* %10, i32 4, i32 0)
%84 = load i32, i32* %10
%85 = icmp eq i32 %84, 0
br i1 %85, label %88, label %86
86: ; preds = %82
%87 = call i32 @sendfile(i32 %53, i32 %77, i32* null, i32 %84)
br label %88
88: ; preds = %86, %82, %129, %117, %61
br label %56
89: ; preds = %70
%90 = call i32 @bcmp(i8* dereferenceable(4) %17, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i64 4)
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %126
92: ; preds = %89
store i32 0, i32* %12
%93 = call i32 @strlen(i8* %17)
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 %94
%96 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %95, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %18)
%97 = call i32 (i32, ...) @recv(i32 %53, i32* %10, i64 4, i32 0)
store i32 1, i32* %9
%98 = load i32, i32* @O_CREAT
%99 = load i32, i32* @O_EXCL
%100 = or i32 %99, %98
%101 = load i32, i32* @O_WRONLY
%102 = or i32 %100, %101
%103 = call i32 (i8*, i32, ...) @open(i8* %18, i32 %102, i32 438)
%104 = icmp eq i32 %103, -1
br i1 %104, label %105, label %117
105: ; preds = %92, %105
%106 = call i32 @strlen(i8* %18)
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 %107
%109 = call i32 @sprintf(i8* %108, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32 1)
%110 = load i32, i32* @O_CREAT
%111 = load i32, i32* @O_EXCL
%112 = or i32 %111, %110
%113 = load i32, i32* @O_WRONLY
%114 = or i32 %112, %113
%115 = call i32 (i8*, i32, ...) @open(i8* %18, i32 %114, i32 438)
%116 = icmp eq i32 %115, -1
br i1 %116, label %105, label %117
117: ; preds = %105, %92
%118 = phi i32 [ %103, %92 ], [ %115, %105 ]
%119 = load i32, i32* %10
%120 = call i8* @malloc(i32 %119)
%121 = call i32 (i32, ...) @recv(i32 %53, i8* %120, i32 %119, i32 0)
%122 = load i32, i32* %10
%123 = call i32 @write(i32 %118, i8* %120, i32 %122)
store i32 %123, i32* %12
%124 = call i32 @close(i32 %118)
%125 = call i32 @send(i32 %53, i32* %12, i32 4, i32 0)
br label %88
126: ; preds = %89
%127 = call i32 @bcmp(i8* dereferenceable(4) %17, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i64 4)
%128 = icmp eq i32 %127, 0
br i1 %128, label %132, label %129
129: ; preds = %126
%130 = call i32 @bcmp(i8* dereferenceable(5) %17, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i64 5)
%131 = icmp eq i32 %130, 0
br i1 %131, label %132, label %88
132: ; preds = %129, %126
%133 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%134 = call i32 @sleep(i32 1)
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%136 = call i32 @sleep(i32 1)
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%138 = call i32 @sleep(i32 1)
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
store i32 1, i32* %9
%140 = call i32 @send(i32 %53, i32* %9, i32 4, i32 0)
%141 = call i32 @exit(i32 0)
unreachable
}