#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 TYPE_2__ {
  int /*<<< orphan*/ s_addr;
};
struct sockaddr_in {
  int /*<<< orphan*/ sin_port;
  TYPE_1__ sin_addr;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
struct hostent {
  scalar_t__ *h_addr_list;
};
typedef int /*<<< orphan*/ serv_addr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int atoi(char *);
int /*<<< orphan*/ close(int);
int connect(int, struct sockaddr *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
struct hostent *gethostbyname(char *);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ memset(struct sockaddr_in *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int recv(int, ...);
int /*<<< orphan*/ scanf(char *, int *);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
int write(int, int *, int);
int main(int argc, char *argv[]) {
  int sockfd, portno, status, i, score[2];
  struct sockaddr_in serv_addr;
  struct hostent *server;
  char board[52];
  if (argc < 3) {
    fprintf(stderr, "usage %s hostname port\n", argv[0]);
    exit(0);
  }
  portno = atoi(argv[2]);
  sockfd = socket(AF_INET, SOCK_STREAM, 0);
  if (sockfd < 0) {
    perror("ERROR opening socket");
    exit(1);
  }
  server = gethostbyname(argv[1]);
  if (server == NULL) {
    fprintf(stderr, "ERROR, no such host\n");
    exit(0);
  }
  memset(&serv_addr, 0, sizeof(serv_addr));
  serv_addr.sin_family = AF_INET;
  strcpy((char *)server->h_addr_list[0], (char *)&serv_addr.sin_addr.s_addr);
  serv_addr.sin_port = htons(portno);
  status = connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr));
  if (status < 0) {
    perror("Error connecting to server:");
    exit(1);
  }
  int in[2];
  printf("Welcome to the game!\n");
  int flag = 0;
  int flag2 = 0;
  printf("\n");
  for (;;) {
    status = recv(sockfd, board, sizeof(char) * 53, 0);
    if (status <= 0)
      flag2 = 1;
    status = recv(sockfd, &score[0], sizeof(int), 0);
    if (status <= 0)
      flag2 = 1;
    status = recv(sockfd, &score[1], sizeof(int), 0);
    if (status <= 0)
      flag2 = 1;
    if (flag2 == 1)
      score[1] = 14;
    if (score[0] == 14)
      break;
    if (score[1] == 14)
      break;
    if (score[0] == 13 && score[1] == 13)
      break;
    if (flag == 0) {
      printf("Current Board:");
      for (i = 0; i < 52; ++i)
        printf(".");
      printf("\n");
    }
    if (flag == 1)
      printf("Current Board: %s\n", board);
    flag = 1;
    printf("Current Score: (You) %d, %d\n", score[0], score[1]);
    printf("\n\nNote: entering already matched numbers is a lost guess.\n");
    printf("Enter your first guess [0-51]:\n");
    scanf("%d", &in[0]);
    while (in[0] < 0 || in[0] > 51) {
      printf("Invalid input, try again.\n");
      scanf("%d", &in[0]);
    }
    printf("Enter your second guess [0-51]\n");
    scanf("%d", &in[1]);
    while (in[1] < 0 || in[1] > 51 || in[0] == in[1]) {
      printf("Invalid input, try again.\n");
      scanf("%d", &in[1]);
    }
    status = write(sockfd, in, sizeof(int) * 2);
    if (status < 0) {
      perror("read error");
      exit(1);
    }
  }
  if (score[0] == 14)
    printf("Congratulations! You win!\n");
  else if (score[1] == 14)
    printf("Sorry, you lost :(\n");
  else
    printf("The game was a draw, better luck next time.\n");
  close(sockfd);
  exit(1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    1238 <main+0x48>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdd6(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
mov    0x2d78(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1110 <socket@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1284 <main+0x94>
lea    0xda3(%rip),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10a0 <gethostbyname@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    12be <main+0xce>
mov    0x2d31(%rip),%rax
mov    (%rax),%edi
lea    0xd7d(%rip),%rsi
mov    $0x0,%al
call   10b0 <fprintf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
lea    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1080 <memset@plt>
mov    0x2d13(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rdi
lea    -0x38(%rbp),%rsi
add    $0x4,%rsi
call   1040 <strcpy@plt>
mov    -0x18(%rbp),%edi
call   1060 <htons@plt>
mov    %eax,-0x38(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x38(%rbp),%rsi
mov    $0xc,%edx
call   1100 <connect@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    1330 <main+0x140>
lea    0xd21(%rip),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x8c(%rbp)
movl   $0x0,-0x90(%rbp)
lea    0xd19(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x80(%rbp),%rsi
mov    $0x35,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <recv@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jg     138c <main+0x19c>
movl   $0x1,-0x90(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x28(%rbp),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <recv@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jg     13b8 <main+0x1c8>
movl   $0x1,-0x90(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x28(%rbp),%rsi
add    $0x4,%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <recv@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jg     13e8 <main+0x1f8>
movl   $0x1,-0x90(%rbp)
cmpl   $0x1,-0x90(%rbp)
jne    13fc <main+0x20c>
movl   $0xe,-0x24(%rbp)
cmpl   $0xe,-0x28(%rbp)
jne    140b <main+0x21b>
jmp    1630 <main+0x440>
cmpl   $0xe,-0x24(%rbp)
jne    141a <main+0x22a>
jmp    1630 <main+0x440>
cmpl   $0xd,-0x28(%rbp)
jne    1433 <main+0x243>
cmpl   $0xd,-0x24(%rbp)
jne    1433 <main+0x243>
jmp    1630 <main+0x440>
cmpl   $0x0,-0x8c(%rbp)
jne    1489 <main+0x299>
lea    0xc2d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x34,-0x20(%rbp)
jge    147b <main+0x28b>
lea    0xc1d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1455 <main+0x265>
lea    0xbf0(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
cmpl   $0x1,-0x8c(%rbp)
jne    14a8 <main+0x2b8>
lea    -0x80(%rbp),%rsi
lea    0xbe4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x8c(%rbp)
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xbd9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xbe8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xc15(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x88(%rbp),%rsi
lea    0xc20(%rip),%rdi
call   10c0 <scanf@plt>
mov    $0x1,%al
cmpl   $0x0,-0x88(%rbp)
mov    %al,-0x91(%rbp)
jl     151a <main+0x32a>
cmpl   $0x33,-0x88(%rbp)
setg   %al
mov    %al,-0x91(%rbp)
mov    -0x91(%rbp),%al
test   $0x1,%al
jne    152d <main+0x33d>
jmp    1553 <main+0x363>
lea    0xbdf(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x88(%rbp),%rsi
lea    0xbc7(%rip),%rdi
call   10c0 <scanf@plt>
jmp    14f5 <main+0x305>
lea    0xbd4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x88(%rbp),%rsi
add    $0x4,%rsi
lea    0xb9d(%rip),%rdi
call   10c0 <scanf@plt>
mov    $0x1,%al
cmpl   $0x0,-0x84(%rbp)
mov    %al,-0x92(%rbp)
jl     15b7 <main+0x3c7>
mov    $0x1,%al
cmpl   $0x33,-0x84(%rbp)
mov    %al,-0x92(%rbp)
jg     15b7 <main+0x3c7>
mov    -0x88(%rbp),%eax
cmp    -0x84(%rbp),%eax
sete   %al
mov    %al,-0x92(%rbp)
mov    -0x92(%rbp),%al
test   $0x1,%al
jne    15ca <main+0x3da>
jmp    15f4 <main+0x404>
lea    0xb42(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x88(%rbp),%rsi
add    $0x4,%rsi
lea    0xb26(%rip),%rdi
call   10c0 <scanf@plt>
jmp    1578 <main+0x388>
mov    -0x14(%rbp),%edi
lea    -0x88(%rbp),%rsi
mov    $0x8,%edx
call   1050 <write@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    162b <main+0x43b>
lea    0xb32(%rip),%rdi
call   10d0 <perror@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
jmp    1360 <main+0x170>
cmpl   $0xe,-0x28(%rbp)
jne    164d <main+0x45d>
lea    0xb18(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    167d <main+0x48d>
cmpl   $0xe,-0x24(%rbp)
jne    166a <main+0x47a>
lea    0xb16(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1678 <main+0x488>
lea    0xb17(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    167d <main+0x48d>
mov    -0x14(%rbp),%edi
call   1090 <close@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
jg     1247 <main+0x37>
mov    0x2dab(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xdc7(%rip),%rsi
xor    %eax,%eax
call   10d0 <fprintf@plt>
xor    %edi,%edi
call   1110 <exit@plt>
mov    0x10(%rbx),%rdi
call   1100 <atoi@plt>
mov    %eax,%r14d
mov    0x2d8e(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x2d6c(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1130 <socket@plt>
test   %eax,%eax
jns    1287 <main+0x77>
lea    0xda0(%rip),%rdi
call   10f0 <perror@plt>
mov    $0x1,%edi
call   1110 <exit@plt>
mov    %eax,%r12d
mov    0x8(%rbx),%rdi
call   10c0 <gethostbyname@plt>
test   %rax,%rax
jne    12b6 <main+0xa6>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
lea    0xd85(%rip),%rsi
xor    %eax,%eax
call   10d0 <fprintf@plt>
xor    %edi,%edi
call   1110 <exit@plt>
mov    %rax,%rbx
lea    0x20(%rsp),%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   10a0 <memset@plt>
mov    0x0(%rbp),%eax
mov    %eax,0x28(%rsp)
mov    (%rbx),%rax
mov    (%rax),%rdi
lea    0x24(%rsp),%rsi
call   1050 <strcpy@plt>
mov    %r14d,%edi
call   1080 <htons@plt>
mov    %eax,0x20(%rsp)
mov    %r12d,%edi
mov    %r15,%rsi
mov    $0xc,%edx
call   1120 <connect@plt>
test   %eax,%eax
jns    1310 <main+0x100>
lea    0xd37(%rip),%rdi
jmp    1278 <main+0x68>
lea    0xd94(%rip),%rdi
call   1060 <puts@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x1,%dl
lea    0xd6e(%rip),%r14
lea    0xe02(%rip),%r13
xor    %ecx,%ecx
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
mov    %edx,0x14(%rsp)
mov    %ecx,0x18(%rsp)
mov    $0x35,%edx
mov    %r12d,%edi
lea    0x30(%rsp),%rsi
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <recv@plt>
mov    %eax,0x1c(%rsp)
mov    $0x4,%edx
mov    %r12d,%edi
lea    0xc(%rsp),%rsi
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <recv@plt>
mov    %eax,%ebp
mov    $0x4,%edx
mov    %r12d,%ebx
mov    %r12d,%edi
lea    0x10(%rsp),%rsi
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <recv@plt>
cmpl   $0x0,0x1c(%rsp)
mov    $0x1,%ecx
cmovle %ecx,%r15d
test   %ebp,%ebp
cmovle %ecx,%r15d
test   %eax,%eax
cmovle %ecx,%r15d
cmp    $0x1,%r15d
je     150a <main+0x2fa>
mov    0xc(%rsp),%ecx
mov    0x10(%rsp),%eax
cmp    $0xe,%ecx
je     1522 <main+0x312>
cmp    $0xe,%eax
je     1522 <main+0x312>
cmp    $0xd,%ecx
jne    13df <main+0x1cf>
cmp    $0xd,%eax
je     1547 <main+0x337>
testb  $0x1,0x14(%rsp)
mov    %ebx,%r12d
lea    0x8(%rsp),%rbx
je     1429 <main+0x219>
lea    0xc69(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0x34,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x2e,%edi
call   1040 <putchar@plt>
add    $0xffffffff,%ebp
jne    1410 <main+0x200>
mov    $0xa,%edi
call   1040 <putchar@plt>
testb  $0x1,0x18(%rsp)
je     1443 <main+0x233>
lea    0xc36(%rip),%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x10(%rsp),%edx
lea    0xc2e(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xc60(%rip),%rdi
call   1060 <puts@plt>
lea    0xc8e(%rip),%rdi
call   1060 <puts@plt>
mov    %r14,%rdi
lea    0x4(%rsp),%rbp
mov    %rbp,%rsi
call   10e0 <scanf@plt>
cmpl   $0x34,0x4(%rsp)
jb     14aa <main+0x29a>
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1060 <puts@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
call   10e0 <scanf@plt>
cmpl   $0x33,0x4(%rsp)
ja     1490 <main+0x280>
lea    0xc68(%rip),%rdi
jmp    14c3 <main+0x2b3>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
call   1060 <puts@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   10e0 <scanf@plt>
mov    0x8(%rsp),%eax
cmp    $0x33,%eax
ja     14c0 <main+0x2b0>
cmp    %eax,0x4(%rsp)
je     14c0 <main+0x2b0>
mov    %r12d,%edi
mov    %rbp,%rsi
mov    $0x8,%edx
call   1070 <write@plt>
mov    $0x1,%cl
xor    %edx,%edx
test   %eax,%eax
jns    1340 <main+0x130>
lea    0xb9b(%rip),%rdi
jmp    1278 <main+0x68>
movl   $0xe,0x10(%rsp)
cmpl   $0xe,0xc(%rsp)
jne    153e <main+0x32e>
lea    0xc71(%rip),%rdi
jmp    154e <main+0x33e>
lea    0xc68(%rip),%rdx
lea    0xc22(%rip),%rdi
cmp    $0xe,%ecx
cmove  %rdx,%rdi
je     154e <main+0x33e>
cmp    $0xe,%eax
jne    154e <main+0x33e>
lea    0xc39(%rip),%rdi
jmp    154e <main+0x33e>
lea    0xc04(%rip),%rdi
call   1060 <puts@plt>
mov    %ebx,%edi
call   10b0 <close@plt>
mov    $0x1,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i64* }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [24 x i8] c"usage %s hostname port\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [21 x i8] c"ERROR opening socket\00"
@.str.2 = [21 x i8] c"ERROR, no such host\0A\00"
@.str.3 = [28 x i8] c"Error connecting to server:\00"
@.str.4 = [22 x i8] c"Welcome to the game!\0A\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [15 x i8] c"Current Board:\00"
@.str.7 = [2 x i8] c".\00"
@.str.8 = [19 x i8] c"Current Board: %s\0A\00"
@.str.9 = [29 x i8] c"Current Score: (You) %d, %d\0A\00"
@.str.10 = [59 x i8] c"\0A\0ANote: entering already matched numbers is a lost guess.\0A\00"
@.str.11 = [32 x i8] c"Enter your first guess [0-51]:\0A\00"
@.str.12 = [3 x i8] c"%d\00"
@.str.13 = [27 x i8] c"Invalid input, try again.\0A\00"
@.str.14 = [32 x i8] c"Enter your second guess [0-51]\0A\00"
@.str.15 = [11 x i8] c"read error\00"
@.str.16 = [27 x i8] c"Congratulations! You win!\0A\00"
@.str.17 = [20 x i8] c"Sorry, you lost :(\0A\00"
@.str.18 = [45 x i8] c"The game was a draw, better luck next time.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [2 x i32]
%11 = alloca %struct.sockaddr_in
%12 = alloca %struct.hostent*
%13 = alloca [52 x i8]
%14 = alloca [2 x i32]
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 3
br i1 %18, label %19, label %26
19: ; preds = %2
%20 = load i32, i32* @stderr
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %23)
%25 = call i32 @exit(i32 0)
unreachable
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 2
%29 = load i8*, i8** %28
%30 = call i32 @atoi(i8* %29)
store i32 %30, i32* %7
%31 = load i32, i32* @AF_INET
%32 = load i32, i32* @SOCK_STREAM
%33 = call i32 @socket(i32 %31, i32 %32, i32 0)
store i32 %33, i32* %6
%34 = load i32, i32* %6
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %26
%37 = call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%38 = call i32 @exit(i32 1)
unreachable
39: ; preds = %26
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = call %struct.hostent* @gethostbyname(i8* %42)
store %struct.hostent* %43, %struct.hostent** %12
%44 = load %struct.hostent*, %struct.hostent** %12
%45 = icmp eq %struct.hostent* %44, null
br i1 %45, label %46, label %50
46: ; preds = %39
%47 = load i32, i32* @stderr
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%49 = call i32 @exit(i32 0)
unreachable
50: ; preds = %39
%51 = call i32 @memset(%struct.sockaddr_in* %11, i32 0, i32 12)
%52 = load i32, i32* @AF_INET
%53 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 2
store i32 %52, i32* %53
%54 = load %struct.hostent*, %struct.hostent** %12
%55 = getelementptr inbounds %struct.hostent, %struct.hostent* %54, i32 0, i32 0
%56 = load i64*, i64** %55
%57 = getelementptr inbounds i64, i64* %56, i64 0
%58 = load i64, i64* %57
%59 = inttoptr i64 %58 to i8*
%60 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 1
%61 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %60, i32 0, i32 0
%62 = bitcast i32* %61 to i8*
%63 = call i32 @strcpy(i8* %59, i8* %62)
%64 = load i32, i32* %7
%65 = call i32 @htons(i32 %64)
%66 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %11, i32 0, i32 0
store i32 %65, i32* %66
%67 = load i32, i32* %6
%68 = bitcast %struct.sockaddr_in* %11 to %struct.sockaddr*
%69 = call i32 @connect(i32 %67, %struct.sockaddr* %68, i32 12)
store i32 %69, i32* %8
%70 = load i32, i32* %8
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %50
%73 = call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%74 = call i32 @exit(i32 1)
unreachable
75: ; preds = %50
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %15
store i32 0, i32* %16
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %78
78: ; preds = %201, %75
%79 = load i32, i32* %6
%80 = getelementptr inbounds [52 x i8], [52 x i8]* %13, i64 0, i64 0
%81 = call i32 (i32, ...) @recv(i32 %79, i8* %80, i64 53, i32 0)
store i32 %81, i32* %8
%82 = load i32, i32* %8
%83 = icmp sle i32 %82, 0
br i1 %83, label %84, label %85
84: ; preds = %78
store i32 1, i32* %16
br label %85
85: ; preds = %84, %78
%86 = load i32, i32* %6
%87 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%88 = call i32 (i32, ...) @recv(i32 %86, i32* %87, i64 4, i32 0)
store i32 %88, i32* %8
%89 = load i32, i32* %8
%90 = icmp sle i32 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %85
store i32 1, i32* %16
br label %92
92: ; preds = %91, %85
%93 = load i32, i32* %6
%94 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%95 = call i32 (i32, ...) @recv(i32 %93, i32* %94, i64 4, i32 0)
store i32 %95, i32* %8
%96 = load i32, i32* %8
%97 = icmp sle i32 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %92
store i32 1, i32* %16
br label %99
99: ; preds = %98, %92
%100 = load i32, i32* %16
%101 = icmp eq i32 %100, 1
br i1 %101, label %102, label %104
102: ; preds = %99
%103 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
store i32 14, i32* %103
br label %104
104: ; preds = %102, %99
%105 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%106 = load i32, i32* %105
%107 = icmp eq i32 %106, 14
br i1 %107, label %108, label %109
108: ; preds = %104
br label %202
109: ; preds = %104
%110 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%111 = load i32, i32* %110
%112 = icmp eq i32 %111, 14
br i1 %112, label %113, label %114
113: ; preds = %109
br label %202
114: ; preds = %109
%115 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%116 = load i32, i32* %115
%117 = icmp eq i32 %116, 13
br i1 %117, label %118, label %123
118: ; preds = %114
%119 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%120 = load i32, i32* %119
%121 = icmp eq i32 %120, 13
br i1 %121, label %122, label %123
122: ; preds = %118
br label %202
123: ; preds = %118, %114
%124 = load i32, i32* %15
%125 = icmp eq i32 %124, 0
br i1 %125, label %126, label %138
126: ; preds = %123
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %9
br label %128
128: ; preds = %133, %126
%129 = load i32, i32* %9
%130 = icmp slt i32 %129, 52
br i1 %130, label %131, label %136
131: ; preds = %128
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %133
133: ; preds = %131
%134 = load i32, i32* %9
%135 = add nsw i32 %134, 1
store i32 %135, i32* %9
br label %128
136: ; preds = %128
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %138
138: ; preds = %136, %123
%139 = load i32, i32* %15
%140 = icmp eq i32 %139, 1
br i1 %140, label %141, label %144
141: ; preds = %138
%142 = getelementptr inbounds [52 x i8], [52 x i8]* %13, i64 0, i64 0
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %142)
br label %144
144: ; preds = %141, %138
store i32 1, i32* %15
%145 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%146 = load i32, i32* %145
%147 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%148 = load i32, i32* %147
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 %146, i32 %148)
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0))
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%152 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 0
%153 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %152)
br label %154
154: ; preds = %164, %144
%155 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 0
%156 = load i32, i32* %155
%157 = icmp slt i32 %156, 0
br i1 %157, label %162, label %158
158: ; preds = %154
%159 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 0
%160 = load i32, i32* %159
%161 = icmp sgt i32 %160, 51
br label %162
162: ; preds = %158, %154
%163 = phi i1 [ true, %154 ], [ %161, %158 ]
br i1 %163, label %164, label %168
164: ; preds = %162
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%166 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 0
%167 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %166)
br label %154
168: ; preds = %162
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0))
%170 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 1
%171 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %170)
br label %172
172: ; preds = %188, %168
%173 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 1
%174 = load i32, i32* %173
%175 = icmp slt i32 %174, 0
br i1 %175, label %186, label %176
176: ; preds = %172
%177 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 1
%178 = load i32, i32* %177
%179 = icmp sgt i32 %178, 51
br i1 %179, label %186, label %180
180: ; preds = %176
%181 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 0
%182 = load i32, i32* %181
%183 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 1
%184 = load i32, i32* %183
%185 = icmp eq i32 %182, %184
br label %186
186: ; preds = %180, %176, %172
%187 = phi i1 [ true, %176 ], [ true, %172 ], [ %185, %180 ]
br i1 %187, label %188, label %192
188: ; preds = %186
%189 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%190 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 1
%191 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %190)
br label %172
192: ; preds = %186
%193 = load i32, i32* %6
%194 = getelementptr inbounds [2 x i32], [2 x i32]* %14, i64 0, i64 0
%195 = call i32 @write(i32 %193, i32* %194, i32 8)
store i32 %195, i32* %8
%196 = load i32, i32* %8
%197 = icmp slt i32 %196, 0
br i1 %197, label %198, label %201
198: ; preds = %192
%199 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0))
%200 = call i32 @exit(i32 1)
unreachable
201: ; preds = %192
br label %78
202: ; preds = %122, %113, %108
%203 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%204 = load i32, i32* %203
%205 = icmp eq i32 %204, 14
br i1 %205, label %206, label %208
206: ; preds = %202
%207 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.16, i64 0, i64 0))
br label %217
208: ; preds = %202
%209 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%210 = load i32, i32* %209
%211 = icmp eq i32 %210, 14
br i1 %211, label %212, label %214
212: ; preds = %208
%213 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0))
br label %216
214: ; preds = %208
%215 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0))
br label %216
216: ; preds = %214, %212
br label %217
217: ; preds = %216, %206
%218 = load i32, i32* %6
%219 = call i32 @close(i32 %218)
%220 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i64* }
%struct.sockaddr = type { i32 }
@stderr = global i32 0
@.str = [24 x i8] c"usage %s hostname port\0A\00"
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str.1 = [21 x i8] c"ERROR opening socket\00"
@.str.2 = [21 x i8] c"ERROR, no such host\0A\00"
@.str.3 = [28 x i8] c"Error connecting to server:\00"
@.str.6 = [15 x i8] c"Current Board:\00"
@.str.8 = [19 x i8] c"Current Board: %s\0A\00"
@.str.9 = [29 x i8] c"Current Score: (You) %d, %d\0A\00"
@.str.12 = [3 x i8] c"%d\00"
@.str.15 = [11 x i8] c"read error\00"
@str = [21 x i8] c"Welcome to the game!\00"
@str.19 = [58 x i8] c"\0A\0ANote: entering already matched numbers is a lost guess.\00"
@str.20 = [31 x i8] c"Enter your first guess [0-51]:\00"
@str.21 = [31 x i8] c"Enter your second guess [0-51]\00"
@str.23 = [26 x i8] c"Invalid input, try again.\00"
@str.24 = [44 x i8] c"The game was a draw, better luck next time.\00"
@str.25 = [19 x i8] c"Sorry, you lost :(\00"
@str.26 = [26 x i8] c"Congratulations! You win!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [2 x i32]
%4 = alloca %struct.sockaddr_in
%5 = alloca [52 x i8]
%6 = alloca [2 x i32]
%7 = bitcast [2 x i32]* %3 to i8*
%8 = bitcast %struct.sockaddr_in* %4 to i8*
%9 = getelementptr inbounds [52 x i8], [52 x i8]* %5, i64 0, i64 0
%10 = icmp slt i32 %0, 3
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = load i8*, i8** %1
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = tail call i32 @exit(i32 0)
unreachable
16: ; preds = %2
%17 = getelementptr inbounds i8*, i8** %1, i64 2
%18 = load i8*, i8** %17
%19 = tail call i32 @atoi(i8* %18)
%20 = load i32, i32* @AF_INET
%21 = load i32, i32* @SOCK_STREAM
%22 = tail call i32 @socket(i32 %20, i32 %21, i32 0)
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %16
%25 = tail call i32 @perror(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%26 = tail call i32 @exit(i32 1)
unreachable
27: ; preds = %16
%28 = getelementptr inbounds i8*, i8** %1, i64 1
%29 = load i8*, i8** %28
%30 = tail call %struct.hostent* @gethostbyname(i8* %29)
%31 = icmp eq %struct.hostent* %30, null
br i1 %31, label %32, label %36
32: ; preds = %27
%33 = load i32, i32* @stderr
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%35 = tail call i32 @exit(i32 0)
unreachable
36: ; preds = %27
%37 = call i32 @memset(%struct.sockaddr_in* %4, i32 0, i32 12)
%38 = load i32, i32* @AF_INET
%39 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i32 %38, i32* %39
%40 = getelementptr inbounds %struct.hostent, %struct.hostent* %30, i64 0, i32 0
%41 = load i64*, i64** %40
%42 = load i64, i64* %41
%43 = inttoptr i64 %42 to i8*
%44 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1, i32 0
%45 = bitcast i32* %44 to i8*
%46 = call i32 @strcpy(i8* %43, i8* %45)
%47 = call i32 @htons(i32 %19)
%48 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0
store i32 %47, i32* %48
%49 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%50 = call i32 @connect(i32 %22, %struct.sockaddr* %49, i32 12)
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %36
%53 = call i32 @perror(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %36
%56 = bitcast [2 x i32]* %6 to i8*
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%58 = call i32 @putchar(i32 10)
%59 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%60 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%61 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%62 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
br label %63
63: ; preds = %133, %55
%64 = phi i1 [ false, %133 ], [ true, %55 ]
%65 = phi i1 [ true, %133 ], [ false, %55 ]
%66 = phi i32 [ %75, %133 ], [ 0, %55 ]
%67 = call i32 (i32, ...) @recv(i32 %22, i8* %9, i64 53, i32 0)
%68 = icmp slt i32 %67, 1
%69 = call i32 (i32, ...) @recv(i32 %22, i32* %59, i64 4, i32 0)
%70 = icmp slt i32 %69, 1
%71 = call i32 (i32, ...) @recv(i32 %22, i32* %60, i64 4, i32 0)
%72 = icmp slt i32 %71, 1
%73 = select i1 %72, i1 true, i1 %70
%74 = select i1 %73, i1 true, i1 %68
%75 = select i1 %74, i32 1, i32 %66
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %80
77: ; preds = %63
store i32 14, i32* %60
%78 = load i32, i32* %59
%79 = icmp eq i32 %78, 14
br i1 %79, label %144, label %143
80: ; preds = %63
%81 = load i32, i32* %60
%82 = load i32, i32* %59
%83 = icmp eq i32 %82, 14
%84 = icmp eq i32 %81, 14
%85 = select i1 %83, i1 true, i1 %84
br i1 %85, label %139, label %86
86: ; preds = %80
%87 = icmp eq i32 %82, 13
%88 = icmp eq i32 %81, 13
%89 = select i1 %87, i1 %88, i1 false
br i1 %89, label %144, label %90
90: ; preds = %86
br i1 %64, label %91, label %100
91: ; preds = %90
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
br label %93
93: ; preds = %91, %93
%94 = phi i32 [ 0, %91 ], [ %96, %93 ]
%95 = call i32 @putchar(i32 46)
%96 = add nuw nsw i32 %94, 1
%97 = icmp eq i32 %96, 52
br i1 %97, label %98, label %93
98: ; preds = %93
%99 = call i32 @putchar(i32 10)
br label %100
100: ; preds = %98, %90
br i1 %65, label %101, label %103
101: ; preds = %100
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* %9)
br label %103
103: ; preds = %101, %100
%104 = load i32, i32* %59
%105 = load i32, i32* %60
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 %104, i32 %105)
%107 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.19, i64 0, i64 0))
%108 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.20, i64 0, i64 0))
%109 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %61)
%110 = load i32, i32* %61
%111 = icmp ugt i32 %110, 51
br i1 %111, label %112, label %117
112: ; preds = %103, %112
%113 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.23, i64 0, i64 0))
%114 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %61)
%115 = load i32, i32* %61
%116 = icmp ugt i32 %115, 51
br i1 %116, label %112, label %117
117: ; preds = %112, %103
%118 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.21, i64 0, i64 0))
%119 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %62)
%120 = load i32, i32* %62
%121 = icmp ugt i32 %120, 51
%122 = load i32, i32* %61
%123 = icmp eq i32 %122, %120
%124 = select i1 %121, i1 true, i1 %123
br i1 %124, label %125, label %133
125: ; preds = %117, %125
%126 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.23, i64 0, i64 0))
%127 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %62)
%128 = load i32, i32* %62
%129 = icmp ugt i32 %128, 51
%130 = load i32, i32* %61
%131 = icmp eq i32 %130, %128
%132 = select i1 %129, i1 true, i1 %131
br i1 %132, label %125, label %133
133: ; preds = %125, %117
%134 = call i32 @write(i32 %22, i32* %61, i32 8)
%135 = icmp slt i32 %134, 0
br i1 %135, label %136, label %63
136: ; preds = %133
%137 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0))
%138 = call i32 @exit(i32 1)
unreachable
139: ; preds = %80
%140 = xor i1 %84, true
%141 = select i1 %83, i1 true, i1 %140
%142 = select i1 %83, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @str.26, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @str.24, i64 0, i64 0)
br i1 %141, label %144, label %143
143: ; preds = %139, %77
br label %144
144: ; preds = %86, %139, %77, %143
%145 = phi i8* [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.25, i64 0, i64 0), %143 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.26, i64 0, i64 0), %77 ], [ %142, %139 ], [ getelementptr inbounds ([44 x i8], [44 x i8]* @str.24, i64 0, i64 0), %86 ]
%146 = call i32 @puts(i8* dereferenceable(1) %145)
%147 = call i32 @close(i32 %22)
%148 = call i32 @exit(i32 1)
unreachable
}