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

/* Forward declarations */

/* Type definitions */
struct sockaddr_in {
  int /*<<< orphan*/ sin_addr;
  int /*<<< orphan*/ sin_port;
  int /*<<< orphan*/ sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int socklen_t;
typedef int /*<<< orphan*/ saddr;
typedef int /*<<< orphan*/ caddr;

/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ PF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOMAXCONN;
int accept(int, struct sockaddr *, int *);
int bind(int, struct sockaddr *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ do_echo(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int, char *,
                           char *);
int /*<<< orphan*/ htons(int);
int /*<<< orphan*/ inet_aton(char *, int /*<<< orphan*/ *);
int listen(int, int /*<<< orphan*/);
int /*<<< orphan*/ memset(struct sockaddr_in *, int, int);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int main(void) {
  int connfd;
  int listenfd;
  socklen_t len;
  struct sockaddr_in saddr;
  struct sockaddr_in caddr;
  memset(&saddr, 0x00, sizeof(saddr));
  memset(&caddr, 0x00, sizeof(caddr));
  if ((listenfd = socket(PF_INET, SOCK_STREAM, 0)) == -1)
    do {
      fprintf(stderr, "[%s][%d]:%s %s\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/"
              "master/apue/day11/echosvr.c",
              48, "socket", strerror(errno));
      exit(EXIT_FAILURE);
    } while (0);
  saddr.sin_family = AF_INET;
  saddr.sin_port = htons(10000);
  inet_aton("192.168.0.200", &saddr.sin_addr);
  len = sizeof(saddr);
  if (bind(listenfd, (struct sockaddr *)&saddr, len) == -1)
    do {
      fprintf(stderr, "[%s][%d]:%s %s\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/"
              "master/apue/day11/echosvr.c",
              55, "bind", strerror(errno));
      exit(EXIT_FAILURE);
    } while (0);
  if (listen(listenfd, SOMAXCONN) == -1)
    do {
      fprintf(stderr, "[%s][%d]:%s %s\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/"
              "master/apue/day11/echosvr.c",
              58, "listen", strerror(errno));
      exit(EXIT_FAILURE);
    } while (0);
  len = sizeof(caddr);
  connfd = accept(listenfd, (struct sockaddr *)&caddr, &len);
  if (connfd == -1)
    do {
      fprintf(stderr, "[%s][%d]:%s %s\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/"
              "master/apue/day11/echosvr.c",
              62, "accept", strerror(errno));
      exit(EXIT_FAILURE);
    } while (0);
  do_echo(connfd);
  close(connfd);
  close(listenfd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    0x2dc2(%rip),%rax
mov    (%rax),%edi
mov    0x2dc9(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
mov    %eax,-0xc(%rbp)
cmp    $0xffffffff,%eax
jne    1266 <main+0xa6>
jmp    1219 <main+0x59>
mov    0x2db8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    0x2d94(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x34(%rbp),%edi
mov    %rax,%r9
lea    0xdc0(%rip),%rsi
lea    0xdc9(%rip),%rdx
mov    $0x30,%ecx
lea    0xe53(%rip),%r8
call   1070 <fprintf@plt>
mov    0x2d51(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    0x2d7b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    $0x2710,%edi
call   1040 <htons@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xe23(%rip),%rdi
call   1080 <inet_aton@plt>
movl   $0xc,-0x10(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%edx
call   10a0 <bind@plt>
cmp    $0xffffffff,%eax
jne    1300 <main+0x140>
jmp    12b3 <main+0xf3>
mov    0x2d1e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
mov    0x2cfa(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x38(%rbp),%edi
mov    %rax,%r9
lea    0xd26(%rip),%rsi
lea    0xd2f(%rip),%rdx
mov    $0x37,%ecx
lea    0xdce(%rip),%r8
call   1070 <fprintf@plt>
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    -0xc(%rbp),%edi
mov    0x2cc6(%rip),%rax
mov    (%rax),%esi
call   1090 <listen@plt>
cmp    $0xffffffff,%eax
jne    136c <main+0x1ac>
jmp    131f <main+0x15f>
mov    0x2cb2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    0x2c8e(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x3c(%rbp),%edi
mov    %rax,%r9
lea    0xcba(%rip),%rsi
lea    0xcc3(%rip),%rdx
mov    $0x3a,%ecx
lea    0xd67(%rip),%r8
call   1070 <fprintf@plt>
mov    0x2c4b(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
movl   $0xc,-0x10(%rbp)
mov    -0xc(%rbp),%edi
lea    -0x30(%rbp),%rsi
lea    -0x10(%rbp),%rdx
call   10b0 <accept@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    13e2 <main+0x222>
jmp    1395 <main+0x1d5>
mov    0x2c3c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
mov    0x2c18(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
mov    -0x40(%rbp),%edi
mov    %rax,%r9
lea    0xc44(%rip),%rsi
lea    0xc4d(%rip),%rdx
mov    $0x3e,%ecx
lea    0xcf8(%rip),%r8
call   1070 <fprintf@plt>
mov    0x2bd5(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>
mov    -0x8(%rbp),%edi
call   1030 <do_echo@plt>
mov    -0x8(%rbp),%edi
call   1060 <close@plt>
mov    -0xc(%rbp),%edi
call   1060 <close@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
lea    0x18(%rsp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
mov    0x2dd0(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   10e0 <socket@plt>
cmp    $0xffffffff,%eax
je     12ae <main+0xee>
mov    %eax,%ebx
mov    0x2dd5(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x10(%rsp)
mov    $0x2710,%edi
call   1040 <htons@plt>
mov    %eax,0xc(%rsp)
lea    0xe7f(%rip),%rdi
lea    0x8(%rsp),%rbp
mov    %rbp,%rsi
call   1080 <inet_aton@plt>
mov    %ebx,%edi
mov    %rbp,%rsi
mov    $0xc,%edx
call   10a0 <bind@plt>
cmp    $0xffffffff,%eax
je     12e6 <main+0x126>
mov    0x2d76(%rip),%rax
mov    (%rax),%esi
mov    %ebx,%edi
call   1090 <listen@plt>
cmp    $0xffffffff,%eax
je     131b <main+0x15b>
movl   $0xc,0x4(%rsp)
lea    0x18(%rsp),%rsi
lea    0x4(%rsp),%rdx
mov    %ebx,%edi
call   10b0 <accept@plt>
cmp    $0xffffffff,%eax
je     1350 <main+0x190>
mov    %eax,%ebp
mov    %eax,%edi
call   1030 <do_echo@plt>
mov    %ebp,%edi
call   1060 <close@plt>
mov    %ebx,%edi
call   1060 <close@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret
mov    0x2d23(%rip),%rax
mov    (%rax),%ebx
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xd34(%rip),%rsi
lea    0xd3d(%rip),%rdx
lea    0xdcc(%rip),%r8
mov    %ebx,%edi
mov    $0x30,%ecx
jmp    1383 <main+0x1c3>
mov    0x2ceb(%rip),%rax
mov    (%rax),%ebx
mov    0x2cca(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xcfc(%rip),%rsi
lea    0xd05(%rip),%rdx
lea    0xda9(%rip),%r8
mov    %ebx,%edi
mov    $0x37,%ecx
jmp    1383 <main+0x1c3>
mov    0x2cb6(%rip),%rax
mov    (%rax),%ebx
mov    0x2c95(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xcc7(%rip),%rsi
lea    0xcd0(%rip),%rdx
lea    0xd79(%rip),%r8
mov    %ebx,%edi
mov    $0x3a,%ecx
jmp    1383 <main+0x1c3>
mov    0x2c81(%rip),%rax
mov    (%rax),%ebx
mov    0x2c60(%rip),%rax
mov    (%rax),%edi
call   10d0 <strerror@plt>
lea    0xc92(%rip),%rsi
lea    0xc9b(%rip),%rdx
lea    0xd4b(%rip),%r8
mov    %ebx,%edi
mov    $0x3e,%ecx
mov    %rax,%r9
call   1070 <fprintf@plt>
mov    0x2c1e(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str = [16 x i8] c"[%s][%d]:%s %s\0A\00"
@.str.1 = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/master/apue/day11/echosvr.c\00"
@.str.2 = [7 x i8] c"socket\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
@AF_INET = global i32 0
@.str.3 = [14 x i8] c"192.168.0.200\00"
@.str.4 = [5 x i8] c"bind\00"
@SOMAXCONN = global i32 0
@.str.5 = [7 x i8] c"listen\00"
@.str.6 = [7 x i8] c"accept\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.sockaddr_in
%6 = alloca %struct.sockaddr_in
store i32 0, i32* %1
%7 = call i32 @memset(%struct.sockaddr_in* %5, i32 0, i32 12)
%8 = call i32 @memset(%struct.sockaddr_in* %6, i32 0, i32 12)
%9 = load i32, i32* @PF_INET
%10 = load i32, i32* @SOCK_STREAM
%11 = call i32 @socket(i32 %9, i32 %10, i32 0)
store i32 %11, i32* %3
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %22
13: ; preds = %0
br label %14
14: ; preds = %13
%15 = load i32, i32* @stderr
%16 = load i32, i32* @errno
%17 = call i8* @strerror(i32 %16)
%18 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %17)
%19 = load i32, i32* @EXIT_FAILURE
%20 = call i32 @exit(i32 %19)
unreachable
21: ; No predecessors!
br label %22
22: ; preds = %21, %0
%23 = load i32, i32* @AF_INET
%24 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 2
store i32 %23, i32* %24
%25 = call i32 @htons(i32 10000)
%26 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 1
store i32 %25, i32* %26
%27 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %5, i32 0, i32 0
%28 = call i32 @inet_aton(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32* %27)
store i32 12, i32* %4
%29 = load i32, i32* %3
%30 = bitcast %struct.sockaddr_in* %5 to %struct.sockaddr*
%31 = load i32, i32* %4
%32 = call i32 @bind(i32 %29, %struct.sockaddr* %30, i32 %31)
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %43
34: ; preds = %22
br label %35
35: ; preds = %34
%36 = load i32, i32* @stderr
%37 = load i32, i32* @errno
%38 = call i8* @strerror(i32 %37)
%39 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %38)
%40 = load i32, i32* @EXIT_FAILURE
%41 = call i32 @exit(i32 %40)
unreachable
42: ; No predecessors!
br label %43
43: ; preds = %42, %22
%44 = load i32, i32* %3
%45 = load i32, i32* @SOMAXCONN
%46 = call i32 @listen(i32 %44, i32 %45)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %57
48: ; preds = %43
br label %49
49: ; preds = %48
%50 = load i32, i32* @stderr
%51 = load i32, i32* @errno
%52 = call i8* @strerror(i32 %51)
%53 = call i32 @fprintf(i32 %50, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 58, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %52)
%54 = load i32, i32* @EXIT_FAILURE
%55 = call i32 @exit(i32 %54)
unreachable
56: ; No predecessors!
br label %57
57: ; preds = %56, %43
store i32 12, i32* %4
%58 = load i32, i32* %3
%59 = bitcast %struct.sockaddr_in* %6 to %struct.sockaddr*
%60 = call i32 @accept(i32 %58, %struct.sockaddr* %59, i32* %4)
store i32 %60, i32* %2
%61 = load i32, i32* %2
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %72
63: ; preds = %57
br label %64
64: ; preds = %63
%65 = load i32, i32* @stderr
%66 = load i32, i32* @errno
%67 = call i8* @strerror(i32 %66)
%68 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 62, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %67)
%69 = load i32, i32* @EXIT_FAILURE
%70 = call i32 @exit(i32 %69)
unreachable
71: ; No predecessors!
br label %72
72: ; preds = %71, %57
%73 = load i32, i32* %2
%74 = call i32 @do_echo(i32 %73)
%75 = load i32, i32* %2
%76 = call i32 @close(i32 %75)
%77 = load i32, i32* %3
%78 = call i32 @close(i32 %77)
ret i32 0
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr = type { i32 }
@PF_INET = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str = [16 x i8] c"[%s][%d]:%s %s\0A\00"
@.str.1 = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/drsin/linuxCoreLearn/refs/heads/master/apue/day11/echosvr.c\00"
@.str.2 = [7 x i8] c"socket\00"
@errno = global i32 0
@EXIT_FAILURE = global i32 0
@AF_INET = global i32 0
@.str.3 = [14 x i8] c"192.168.0.200\00"
@.str.4 = [5 x i8] c"bind\00"
@SOMAXCONN = global i32 0
@.str.5 = [7 x i8] c"listen\00"
@.str.6 = [7 x i8] c"accept\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.sockaddr_in
%3 = alloca %struct.sockaddr_in
%4 = bitcast i32* %1 to i8*
%5 = bitcast %struct.sockaddr_in* %2 to i8*
%6 = bitcast %struct.sockaddr_in* %3 to i8*
%7 = call i32 @memset(%struct.sockaddr_in* %2, i32 0, i32 12)
%8 = call i32 @memset(%struct.sockaddr_in* %3, i32 0, i32 12)
%9 = load i32, i32* @PF_INET
%10 = load i32, i32* @SOCK_STREAM
%11 = call i32 @socket(i32 %9, i32 %10, i32 0)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %20
13: ; preds = %0
%14 = load i32, i32* @stderr
%15 = load i32, i32* @errno
%16 = call i8* @strerror(i32 %15)
%17 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %16)
%18 = load i32, i32* @EXIT_FAILURE
%19 = call i32 @exit(i32 %18)
unreachable
20: ; preds = %0
%21 = load i32, i32* @AF_INET
%22 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 2
store i32 %21, i32* %22
%23 = call i32 @htons(i32 10000)
%24 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 1
store i32 %23, i32* %24
%25 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %2, i64 0, i32 0
%26 = call i32 @inet_aton(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32* %25)
%27 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%28 = call i32 @bind(i32 %11, %struct.sockaddr* %27, i32 12)
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %37
30: ; preds = %20
%31 = load i32, i32* @stderr
%32 = load i32, i32* @errno
%33 = call i8* @strerror(i32 %32)
%34 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %33)
%35 = load i32, i32* @EXIT_FAILURE
%36 = call i32 @exit(i32 %35)
unreachable
37: ; preds = %20
%38 = load i32, i32* @SOMAXCONN
%39 = call i32 @listen(i32 %11, i32 %38)
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %48
41: ; preds = %37
%42 = load i32, i32* @stderr
%43 = load i32, i32* @errno
%44 = call i8* @strerror(i32 %43)
%45 = call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 58, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %44)
%46 = load i32, i32* @EXIT_FAILURE
%47 = call i32 @exit(i32 %46)
unreachable
48: ; preds = %37
store i32 12, i32* %1
%49 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%50 = call i32 @accept(i32 %11, %struct.sockaddr* %49, i32* %1)
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %59
52: ; preds = %48
%53 = load i32, i32* @stderr
%54 = load i32, i32* @errno
%55 = call i8* @strerror(i32 %54)
%56 = call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.1, i64 0, i64 0), i32 62, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %55)
%57 = load i32, i32* @EXIT_FAILURE
%58 = call i32 @exit(i32 %57)
unreachable
59: ; preds = %48
%60 = call i32 @do_echo(i32 %50)
%61 = call i32 @close(i32 %50)
%62 = call i32 @close(i32 %11)
ret i32 0
}