#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 addrinfo {
  int /*<<< orphan*/ ai_addrlen;
  int /*<<< orphan*/ ai_addr;
  scalar_t__ ai_protocol;
  int /*<<< orphan*/ ai_socktype;
  int /*<<< orphan*/ ai_family;
  struct addrinfo *ai_next;
  scalar_t__ ai_flags;
};

/* Variables and functions */
int /*<<< orphan*/ AF_UNSPEC;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ F_SETFL;
int /*<<< orphan*/ O_NONBLOCK;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ close(int);
int connect(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ dup2(int, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fcntl(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ freeaddrinfo(struct addrinfo *);
char *gai_strerror(int);
int getaddrinfo(char const *, char const *, struct addrinfo *,
                struct addrinfo **);
char *malloc(int /*<<< orphan*/);
int /*<<< orphan*/ memset(struct addrinfo *, int /*<<< orphan*/, int);
int /*<<< orphan*/ send(int, char *, size_t, int /*<<< orphan*/);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, scalar_t__);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char const *);
size_t strlen(char const *);
void RedirectToNetwork(const char *userid) {
  struct addrinfo hints;
  struct addrinfo *result;
  const char *hostname = "statistics.abridgegame.org";
  const char *port = "5432";
  memset(&hints, 0, sizeof(struct addrinfo));
  hints.ai_family = AF_UNSPEC;
  hints.ai_socktype = SOCK_STREAM;
  hints.ai_flags = 0;
  hints.ai_protocol = 0;
  int s = getaddrinfo(hostname, port, &hints, &result);
  if (s != 0) {
    fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(s));
    exit(EXIT_FAILURE);
  }
  for (struct addrinfo *rp = result; rp != NULL; rp = rp->ai_next) {
    int sfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol);
    if (sfd == -1)
      continue;
    if (connect(sfd, rp->ai_addr, rp->ai_addrlen) != -1) {
      freeaddrinfo(result);
      fcntl(sfd, F_SETFL, O_NONBLOCK);
      char *buffer = malloc(strlen(userid) + 3);
      strcpy(buffer, userid);
      buffer[strlen(userid)] = '\n';
      buffer[strlen(userid) + 1] = 0;
      send(sfd, buffer, strlen(buffer), 0);
      dup2(sfd, 1);
      free(buffer);
      return;
    }
    close(sfd);
  }
  fprintf(stderr, "Could not connect\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<RedirectToNetwork>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xdea(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xdfa(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   10a0 <memset@plt>
mov    0x2da4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    0x2d78(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
call   1100 <getaddrinfo@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
je     12b5 <RedirectToNetwork+0xb5>
mov    0x2d4a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x4c(%rbp),%edi
call   1090 <gai_strerror@plt>
mov    -0x6c(%rbp),%edi
mov    %rax,%rdx
lea    0xd80(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2d0a(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    -0x38(%rbp),%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     1400 <RedirectToNetwork+0x200>
mov    -0x58(%rbp),%rax
mov    0x14(%rax),%edi
mov    -0x58(%rbp),%rax
mov    0x10(%rax),%esi
mov    -0x58(%rbp),%rax
mov    0x8(%rax),%rdx
call   1120 <socket@plt>
mov    %eax,-0x5c(%rbp)
cmpl   $0xffffffff,-0x5c(%rbp)
jne    12f5 <RedirectToNetwork+0xf5>
jmp    13ef <RedirectToNetwork+0x1ef>
mov    -0x5c(%rbp),%edi
mov    -0x58(%rbp),%rax
mov    0x4(%rax),%esi
mov    -0x58(%rbp),%rax
mov    (%rax),%edx
call   10f0 <connect@plt>
cmp    $0xffffffff,%eax
je     13e7 <RedirectToNetwork+0x1e7>
mov    -0x38(%rbp),%rdi
call   1110 <freeaddrinfo@plt>
mov    -0x5c(%rbp),%edi
mov    0x2ca2(%rip),%rax
mov    (%rax),%esi
mov    0x2cb9(%rip),%rax
mov    (%rax),%edx
call   1050 <fcntl@plt>
mov    -0x8(%rbp),%rdi
call   1060 <strlen@plt>
add    $0x3,%rax
mov    %eax,%edi
call   10d0 <malloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x68(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <strlen@plt>
mov    %rax,%rcx
mov    -0x90(%rbp),%rax
movb   $0xa,(%rax,%rcx,1)
mov    -0x68(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <strlen@plt>
mov    %rax,%rcx
mov    -0x88(%rbp),%rax
movb   $0x0,0x1(%rax,%rcx,1)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x68(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x7c(%rbp),%edi
mov    -0x78(%rbp),%rsi
mov    %rax,%rdx
xor    %ecx,%ecx
call   1080 <send@plt>
mov    -0x5c(%rbp),%edi
mov    $0x1,%esi
call   1070 <dup2@plt>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
add    $0x90,%rsp
pop    %rbp
ret
mov    -0x5c(%rbp),%edi
call   10b0 <close@plt>
mov    -0x58(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x58(%rbp)
jmp    12bd <RedirectToNetwork+0xbd>
mov    0x2bc9(%rip),%rax
mov    (%rax),%edi
lea    0xc21(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2b9a(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>

x86 assembly (clang, -O2):
<RedirectToNetwork>:
push   %rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %rdi,%r14
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   10a0 <memset@plt>
mov    0x2dba(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x1c(%rsp)
mov    0x2d8d(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x18(%rsp)
movq   $0x0,0x28(%rsp)
movq   $0x0,0x10(%rsp)
lea    0xdae(%rip),%rdi
lea    0xdc2(%rip),%rsi
mov    %rsp,%rcx
mov    %rbx,%rdx
call   1100 <getaddrinfo@plt>
test   %eax,%eax
jne    1364 <RedirectToNetwork+0x164>
mov    (%rsp),%rbx
jmp    1284 <RedirectToNetwork+0x84>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x18(%rbx),%rbx
test   %rbx,%rbx
je     133f <RedirectToNetwork+0x13f>
mov    0x14(%rbx),%edi
mov    0x10(%rbx),%esi
mov    0x8(%rbx),%rdx
call   1120 <socket@plt>
cmp    $0xffffffff,%eax
je     1280 <RedirectToNetwork+0x80>
mov    %eax,%ebp
mov    (%rbx),%edx
mov    0x4(%rbx),%esi
mov    %eax,%edi
call   10f0 <connect@plt>
cmp    $0xffffffff,%eax
jne    12bd <RedirectToNetwork+0xbd>
mov    %ebp,%edi
call   10b0 <close@plt>
jmp    1280 <RedirectToNetwork+0x80>
mov    (%rsp),%rdi
call   1110 <freeaddrinfo@plt>
mov    0x2cfb(%rip),%rax
mov    (%rax),%esi
mov    0x2d12(%rip),%rax
mov    (%rax),%edx
mov    %ebp,%edi
call   1050 <fcntl@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
lea    0x3(%rax),%edi
call   10d0 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
movw   $0xa,(%rbx,%rax,1)
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %rax,%rdx
xor    %ecx,%ecx
call   1080 <send@plt>
mov    %ebp,%edi
mov    $0x1,%esi
call   1070 <dup2@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    0x2c8a(%rip),%rax
mov    (%rax),%edi
lea    0xce2(%rip),%rsi
xor    %eax,%eax
call   10c0 <fprintf@plt>
mov    0x2c5b(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    0x2c65(%rip),%rcx
mov    (%rcx),%ebx
mov    %eax,%edi
call   1090 <gai_strerror@plt>
lea    0xca5(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   10c0 <fprintf@plt>
jmp    1356 <RedirectToNetwork+0x156>

LLVM IR (-O0):
%struct.addrinfo = type { i32, i32, i64, i32, i32, %struct.addrinfo*, i64 }
@.str = [27 x i8] c"statistics.abridgegame.org\00"
@.str.1 = [5 x i8] c"5432\00"
@AF_UNSPEC = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str.2 = [17 x i8] c"getaddrinfo: %s\0A\00"
@EXIT_FAILURE = global i32 0
@F_SETFL = global i32 0
@O_NONBLOCK = global i32 0
@.str.3 = [19 x i8] c"Could not connect\0A\00"
define void @RedirectToNetwork(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.addrinfo
%4 = alloca %struct.addrinfo*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca %struct.addrinfo*
%9 = alloca i32
%10 = alloca i8*
store i8* %0, i8** %2
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8** %5
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %6
%11 = call i32 @memset(%struct.addrinfo* %3, i32 0, i32 40)
%12 = load i32, i32* @AF_UNSPEC
%13 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i32 0, i32 4
store i32 %12, i32* %13
%14 = load i32, i32* @SOCK_STREAM
%15 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i32 0, i32 3
store i32 %14, i32* %15
%16 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i32 0, i32 6
store i64 0, i64* %16
%17 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %3, i32 0, i32 2
store i64 0, i64* %17
%18 = load i8*, i8** %5
%19 = load i8*, i8** %6
%20 = call i32 @getaddrinfo(i8* %18, i8* %19, %struct.addrinfo* %3, %struct.addrinfo** %4)
store i32 %20, i32* %7
%21 = load i32, i32* %7
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %1
%24 = load i32, i32* @stderr
%25 = load i32, i32* %7
%26 = call i8* @gai_strerror(i32 %25)
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %1
%31 = load %struct.addrinfo*, %struct.addrinfo** %4
store %struct.addrinfo* %31, %struct.addrinfo** %8
br label %32
32: ; preds = %95, %30
%33 = load %struct.addrinfo*, %struct.addrinfo** %8
%34 = icmp ne %struct.addrinfo* %33, null
br i1 %34, label %35, label %99
35: ; preds = %32
%36 = load %struct.addrinfo*, %struct.addrinfo** %8
%37 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %36, i32 0, i32 4
%38 = load i32, i32* %37
%39 = load %struct.addrinfo*, %struct.addrinfo** %8
%40 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %39, i32 0, i32 3
%41 = load i32, i32* %40
%42 = load %struct.addrinfo*, %struct.addrinfo** %8
%43 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %42, i32 0, i32 2
%44 = load i64, i64* %43
%45 = call i32 @socket(i32 %38, i32 %41, i64 %44)
store i32 %45, i32* %9
%46 = load i32, i32* %9
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %49
48: ; preds = %35
br label %95
49: ; preds = %35
%50 = load i32, i32* %9
%51 = load %struct.addrinfo*, %struct.addrinfo** %8
%52 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %51, i32 0, i32 1
%53 = load i32, i32* %52
%54 = load %struct.addrinfo*, %struct.addrinfo** %8
%55 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %54, i32 0, i32 0
%56 = load i32, i32* %55
%57 = call i32 @connect(i32 %50, i32 %53, i32 %56)
%58 = icmp ne i32 %57, -1
br i1 %58, label %59, label %92
59: ; preds = %49
%60 = load %struct.addrinfo*, %struct.addrinfo** %4
%61 = call i32 @freeaddrinfo(%struct.addrinfo* %60)
%62 = load i32, i32* %9
%63 = load i32, i32* @F_SETFL
%64 = load i32, i32* @O_NONBLOCK
%65 = call i32 @fcntl(i32 %62, i32 %63, i32 %64)
%66 = load i8*, i8** %2
%67 = call i64 @strlen(i8* %66)
%68 = add i64 %67, 3
%69 = trunc i64 %68 to i32
%70 = call i8* @malloc(i32 %69)
store i8* %70, i8** %10
%71 = load i8*, i8** %10
%72 = load i8*, i8** %2
%73 = call i32 @strcpy(i8* %71, i8* %72)
%74 = load i8*, i8** %10
%75 = load i8*, i8** %2
%76 = call i64 @strlen(i8* %75)
%77 = getelementptr inbounds i8, i8* %74, i64 %76
store i8 10, i8* %77
%78 = load i8*, i8** %10
%79 = load i8*, i8** %2
%80 = call i64 @strlen(i8* %79)
%81 = add i64 %80, 1
%82 = getelementptr inbounds i8, i8* %78, i64 %81
store i8 0, i8* %82
%83 = load i32, i32* %9
%84 = load i8*, i8** %10
%85 = load i8*, i8** %10
%86 = call i64 @strlen(i8* %85)
%87 = call i32 @send(i32 %83, i8* %84, i64 %86, i32 0)
%88 = load i32, i32* %9
%89 = call i32 @dup2(i32 %88, i32 1)
%90 = load i8*, i8** %10
%91 = call i32 @free(i8* %90)
ret void
92: ; preds = %49
%93 = load i32, i32* %9
%94 = call i32 @close(i32 %93)
br label %95
95: ; preds = %92, %48
%96 = load %struct.addrinfo*, %struct.addrinfo** %8
%97 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %96, i32 0, i32 5
%98 = load %struct.addrinfo*, %struct.addrinfo** %97
store %struct.addrinfo* %98, %struct.addrinfo** %8
br label %32
99: ; preds = %32
%100 = load i32, i32* @stderr
%101 = call i32 (i32, i8*, ...) @fprintf(i32 %100, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%102 = load i32, i32* @EXIT_FAILURE
%103 = call i32 @exit(i32 %102)
unreachable
}

LLVM IR (-O2):
%struct.addrinfo = type { i32, i32, i64, i32, i32, %struct.addrinfo*, i64 }
@.str = [27 x i8] c"statistics.abridgegame.org\00"
@.str.1 = [5 x i8] c"5432\00"
@AF_UNSPEC = global i32 0
@SOCK_STREAM = global i32 0
@stderr = global i32 0
@.str.2 = [17 x i8] c"getaddrinfo: %s\0A\00"
@EXIT_FAILURE = global i32 0
@F_SETFL = global i32 0
@O_NONBLOCK = global i32 0
@.str.3 = [19 x i8] c"Could not connect\0A\00"
define void @RedirectToNetwork(i8* %0) {
%2 = alloca %struct.addrinfo
%3 = alloca %struct.addrinfo*
%4 = bitcast %struct.addrinfo* %2 to i8*
%5 = bitcast %struct.addrinfo** %3 to i8*
%6 = call i32 @memset(%struct.addrinfo* %2, i32 0, i32 40)
%7 = load i32, i32* @AF_UNSPEC
%8 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i64 0, i32 4
store i32 %7, i32* %8
%9 = load i32, i32* @SOCK_STREAM
%10 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i64 0, i32 3
store i32 %9, i32* %10
%11 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i64 0, i32 6
store i64 0, i64* %11
%12 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %2, i64 0, i32 2
store i64 0, i64* %12
%13 = call i32 @getaddrinfo(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), %struct.addrinfo* %2, %struct.addrinfo** %3)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %1
%16 = load %struct.addrinfo*, %struct.addrinfo** %3
%17 = icmp eq %struct.addrinfo* %16, null
br i1 %17, label %47, label %24
18: ; preds = %1
%19 = load i32, i32* @stderr
%20 = call i8* @gai_strerror(i32 %13)
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %20)
%22 = load i32, i32* @EXIT_FAILURE
%23 = call i32 @exit(i32 %22)
unreachable
24: ; preds = %15, %43
%25 = phi %struct.addrinfo* [ %45, %43 ], [ %16, %15 ]
%26 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %25, i64 0, i32 4
%27 = load i32, i32* %26
%28 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %25, i64 0, i32 3
%29 = load i32, i32* %28
%30 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %25, i64 0, i32 2
%31 = load i64, i64* %30
%32 = call i32 @socket(i32 %27, i32 %29, i64 %31)
%33 = icmp eq i32 %32, -1
br i1 %33, label %43, label %34
34: ; preds = %24
%35 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %25, i64 0, i32 1
%36 = load i32, i32* %35
%37 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %25, i64 0, i32 0
%38 = load i32, i32* %37
%39 = call i32 @connect(i32 %32, i32 %36, i32 %38)
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %52
41: ; preds = %34
%42 = call i32 @close(i32 %32)
br label %43
43: ; preds = %41, %24
%44 = getelementptr inbounds %struct.addrinfo, %struct.addrinfo* %25, i64 0, i32 5
%45 = load %struct.addrinfo*, %struct.addrinfo** %44
%46 = icmp eq %struct.addrinfo* %45, null
br i1 %46, label %47, label %24
47: ; preds = %43, %15
%48 = load i32, i32* @stderr
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%50 = load i32, i32* @EXIT_FAILURE
%51 = call i32 @exit(i32 %50)
unreachable
52: ; preds = %34
%53 = load %struct.addrinfo*, %struct.addrinfo** %3
%54 = call i32 @freeaddrinfo(%struct.addrinfo* %53)
%55 = load i32, i32* @F_SETFL
%56 = load i32, i32* @O_NONBLOCK
%57 = call i32 @fcntl(i32 %32, i32 %55, i32 %56)
%58 = call i64 @strlen(i8* dereferenceable(1) %0)
%59 = trunc i64 %58 to i32
%60 = add i32 %59, 3
%61 = call i8* @malloc(i32 %60)
%62 = call i32 @strcpy(i8* %61, i8* %0)
%63 = call i64 @strlen(i8* dereferenceable(1) %0)
%64 = getelementptr inbounds i8, i8* %61, i64 %63
store i8 10, i8* %64
%65 = add i64 %63, 1
%66 = getelementptr inbounds i8, i8* %61, i64 %65
store i8 0, i8* %66
%67 = call i64 @strlen(i8* dereferenceable(1) %61)
%68 = call i32 @send(i32 %32, i8* %61, i64 %67, i32 0)
%69 = call i32 @dup2(i32 %32, i32 1)
%70 = call i32 @free(i8* %61)
ret void
}