#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 */

/* Variables and functions */
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int /*<<< orphan*/ snprintf(char *, int, char *, double);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strlen(char *);
double strtod(char *, int /*<<< orphan*/ *);
char *strtok(char *, char const *);
int /*<<< orphan*/ write(int, char *, int /*<<< orphan*/);
void process(int sock) {
  int n;
  int BUFSIZE = 1024;
  char buf[BUFSIZE];
  char *userInput;
  if (n < 0) {
    perror("ERROR writing to socket");
    exit(1);
  }
  bzero(buf, BUFSIZE);
  n = read(sock, buf, BUFSIZE);
  if (n < 0) {
    perror("ERROR reading from socket");
    exit(1);
  }
  userInput = buf;
  printf("Received message: %s\n", userInput);
  const char s[2] = " ";
  char *token;
  char *arg_1;
  char *arg_2;
  char *arg_3;
  token = strtok(userInput, s);
  arg_1 = token;
  printf(" %s\n", arg_1);
  token = strtok(NULL, s);
  arg_2 = token;
  printf(" %s\n", arg_2);
  token = strtok(NULL, s);
  arg_3 = token;
  printf(" %s\n", arg_3);
  char reply[50];
  double a;
  char *error;
  if (strcmp(arg_1, "lbs") == 0 && strcmp(arg_2, "kg") == 0) {
    a = strtod(arg_3, NULL) / 2.2;
    printf(" %f\n", a);
    snprintf(reply, 50, "%f\n", a);
    write(sock, reply, strlen(reply));
  } else if (strcmp(arg_1, "kg") == 0 && strcmp(arg_2, "lbs") == 0) {
    a = strtod(arg_3, NULL) * 2.2;
    snprintf(reply, 50, "%f\n", a);
    write(sock, reply, strlen(reply));
  } else {
    error = "Invalid Input";
    write(sock, error, strlen(error));
  }
  close(sock);
}


x86 assembly (clang, -O0):
<process>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x400,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    121e <process+0x5e>
lea    0xdf9(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0xa8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   10d0 <bzero@plt>
mov    -0xa8(%rbp),%rsi
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%edx
call   1090 <read@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1262 <process+0xa2>
lea    0xdcd(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    -0xa8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xdca(%rip),%ax
mov    %ax,-0x2a(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x2a(%rbp),%rsi
call   10c0 <strtok@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rsi
lea    0xd9d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x2a(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10c0 <strtok@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rsi
lea    0xd72(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x2a(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10c0 <strtok@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rsi
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x40(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13d2 <process+0x212>
mov    -0x48(%rbp),%rdi
lea    0xd26(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13d2 <process+0x212>
mov    -0x50(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <strtod@plt>
movsd  0xcac(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
lea    0xcea(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    -0x90(%rbp),%rdi
movsd  -0x98(%rbp),%xmm0
ff
mov    $0x32,%esi
lea    0xcc9(%rip),%rdx
call   1070 <snprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0xb4(%rbp)
lea    -0x90(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    -0x90(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xb4(%rbp),%edi
mov    -0xb0(%rbp),%rsi
mov    %eax,%edx
call   1040 <write@plt>
jmp    14cd <process+0x30d>
mov    -0x40(%rbp),%rdi
lea    0xc79(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1483 <process+0x2c3>
mov    -0x48(%rbp),%rdi
lea    0xc5b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1483 <process+0x2c3>
mov    -0x50(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <strtod@plt>
movsd  0xbe5(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
lea    -0x90(%rbp),%rdi
movsd  -0x98(%rbp),%xmm0
ff
mov    $0x32,%esi
lea    0xc18(%rip),%rdx
call   1070 <snprintf@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc4(%rbp)
lea    -0x90(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    -0x90(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xc4(%rbp),%edi
mov    -0xc0(%rbp),%rsi
mov    %eax,%edx
call   1040 <write@plt>
jmp    14c8 <process+0x308>
lea    0xbd4(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xd4(%rbp)
mov    -0xa0(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0xa0(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xd4(%rbp),%edi
mov    -0xd0(%rbp),%rsi
mov    %eax,%edx
call   1040 <write@plt>
jmp    14cd <process+0x30d>
mov    -0x4(%rbp),%edi
call   1080 <close@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<process>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x450,%rsp
mov    %edi,%r14d
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x400,%esi
call   10d0 <bzero@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
call   1090 <read@plt>
test   %eax,%eax
js     136f <process+0x1af>
lea    0xe1f(%rip),%rdi
lea    0x50(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
movw   $0x20,0x6(%rsp)
lea    0x6(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   10c0 <strtok@plt>
mov    %rax,%rbp
lea    0xe00(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
mov    %r15,%rsi
call   10c0 <strtok@plt>
mov    %rax,%r12
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
mov    %r15,%rsi
call   10c0 <strtok@plt>
mov    %rax,%r15
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdbd(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    129c <process+0xdc>
lea    0xdad(%rip),%rsi
mov    %r12,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     12f8 <process+0x138>
lea    0xd99(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    12c4 <process+0x104>
lea    0xd81(%rip),%rsi
mov    %r12,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     133f <process+0x17f>
lea    0xd79(%rip),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %r14d,%edi
call   1080 <close@plt>
add    $0x450,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r15,%rdi
xor    %esi,%esi
call   1030 <strtod@plt>
divsd  0xcf6(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xd28(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd1b(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x32,%esi
movsd  0x8(%rsp),%xmm0
call   1070 <snprintf@plt>
jmp    12cb <process+0x10b>
mov    %r15,%rdi
xor    %esi,%esi
call   1030 <strtod@plt>
mulsd  0xcaf(%rip),%xmm0
lea    0xce8(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x32,%esi
call   1070 <snprintf@plt>
jmp    12cb <process+0x10b>
lea    0xc92(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"ERROR writing to socket\00"
@.str.1 = [26 x i8] c"ERROR reading from socket\00"
@.str.2 = [22 x i8] c"Received message: %s\0A\00"
@__const.process.s = [2 x i8] c" \00"
@.str.3 = [5 x i8] c" %s\0A\00"
@.str.4 = [4 x i8] c"lbs\00"
@.str.5 = [3 x i8] c"kg\00"
@.str.6 = [5 x i8] c" %f\0A\00"
@.str.7 = [4 x i8] c"%f\0A\00"
@.str.8 = [14 x i8] c"Invalid Input\00"
define void @process(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca [2 x i8]
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca [50 x i8]
%14 = alloca double
%15 = alloca i8*
store i32 %0, i32* %2
store i32 1024, i32* %4
%16 = load i32, i32* %4
%17 = zext i32 %16 to i64
%18 = call i8* @llvm.stacksave()
store i8* %18, i8** %5
%19 = alloca i8, i64 %17
store i64 %17, i64* %6
%20 = load i32, i32* %3
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %1
%23 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %1
%26 = load i32, i32* %4
%27 = call i32 @bzero(i8* %19, i32 %26)
%28 = load i32, i32* %2
%29 = load i32, i32* %4
%30 = call i32 @read(i32 %28, i8* %19, i32 %29)
store i32 %30, i32* %3
%31 = load i32, i32* %3
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %25
%34 = call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %25
store i8* %19, i8** %7
%37 = load i8*, i8** %7
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %37)
%39 = bitcast [2 x i8]* %8 to i8*
%40 = load i8*, i8** %7
%41 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%42 = call i8* @strtok(i8* %40, i8* %41)
store i8* %42, i8** %9
%43 = load i8*, i8** %9
store i8* %43, i8** %10
%44 = load i8*, i8** %10
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%47 = call i8* @strtok(i8* null, i8* %46)
store i8* %47, i8** %9
%48 = load i8*, i8** %9
store i8* %48, i8** %11
%49 = load i8*, i8** %11
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %49)
%51 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%52 = call i8* @strtok(i8* null, i8* %51)
store i8* %52, i8** %9
%53 = load i8*, i8** %9
store i8* %53, i8** %12
%54 = load i8*, i8** %12
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %54)
%56 = load i8*, i8** %10
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %77
59: ; preds = %36
%60 = load i8*, i8** %11
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %77
63: ; preds = %59
%64 = load i8*, i8** %12
%65 = call double @strtod(i8* %64, i32* null)
%66 = fdiv double %65, 2.200000e+00
store double %66, double* %14
%67 = load double, double* %14
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), double %67)
%69 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%70 = load double, double* %14
%71 = call i32 @snprintf(i8* %69, i32 50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %70)
%72 = load i32, i32* %2
%73 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%74 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%75 = call i32 @strlen(i8* %74)
%76 = call i32 @write(i32 %72, i8* %73, i32 %75)
br label %104
77: ; preds = %59, %36
%78 = load i8*, i8** %10
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %97
81: ; preds = %77
%82 = load i8*, i8** %11
%83 = call i64 @strcmp(i8* %82, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %97
85: ; preds = %81
%86 = load i8*, i8** %12
%87 = call double @strtod(i8* %86, i32* null)
%88 = fmul double %87, 2.200000e+00
store double %88, double* %14
%89 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%90 = load double, double* %14
%91 = call i32 @snprintf(i8* %89, i32 50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %90)
%92 = load i32, i32* %2
%93 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%94 = getelementptr inbounds [50 x i8], [50 x i8]* %13, i64 0, i64 0
%95 = call i32 @strlen(i8* %94)
%96 = call i32 @write(i32 %92, i8* %93, i32 %95)
br label %103
97: ; preds = %81, %77
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i8** %15
%98 = load i32, i32* %2
%99 = load i8*, i8** %15
%100 = load i8*, i8** %15
%101 = call i32 @strlen(i8* %100)
%102 = call i32 @write(i32 %98, i8* %99, i32 %101)
br label %103
103: ; preds = %97, %85
br label %104
104: ; preds = %103, %63
%105 = load i32, i32* %2
%106 = call i32 @close(i32 %105)
%107 = load i8*, i8** %5
ret void
}

LLVM IR (-O2):
@.str.1 = [26 x i8] c"ERROR reading from socket\00"
@.str.2 = [22 x i8] c"Received message: %s\0A\00"
@.str.3 = [5 x i8] c" %s\0A\00"
@.str.4 = [4 x i8] c"lbs\00"
@.str.5 = [3 x i8] c"kg\00"
@.str.6 = [5 x i8] c" %f\0A\00"
@.str.7 = [4 x i8] c"%f\0A\00"
@.str.8 = [14 x i8] c"Invalid Input\00"
define void @process(i32 %0) {
%2 = alloca i16
%3 = alloca [50 x i8]
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%6 = call i32 @bzero(i8* %5, i32 1024)
%7 = call i32 @read(i32 %0, i8* %5, i32 1024)
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = tail call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %1
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%14 = bitcast i16* %2 to i8*
store i16 32, i16* %2
%15 = call i8* @strtok(i8* %5, i8* %14)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %15)
%17 = call i8* @strtok(i8* null, i8* %14)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %17)
%19 = call i8* @strtok(i8* null, i8* %14)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %19)
%21 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%22 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %34
24: ; preds = %12
%25 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %34
27: ; preds = %24
%28 = call double @strtod(i8* nocapture %19, i32* null)
%29 = fdiv double %28, 2.200000e+00
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), double %29)
%31 = call i32 @snprintf(i8* %21, i32 50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %29)
%32 = call i32 @strlen(i8* %21)
%33 = call i32 @write(i32 %0, i8* %21, i32 %32)
br label %49
34: ; preds = %24, %12
%35 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %46
37: ; preds = %34
%38 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %46
40: ; preds = %37
%41 = call double @strtod(i8* nocapture %19, i32* null)
%42 = fmul double %41, 2.200000e+00
%43 = call i32 @snprintf(i8* %21, i32 50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), double %42)
%44 = call i32 @strlen(i8* %21)
%45 = call i32 @write(i32 %0, i8* %21, i32 %44)
br label %49
46: ; preds = %37, %34
%47 = call i32 @strlen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%48 = call i32 @write(i32 %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %47)
br label %49
49: ; preds = %40, %46, %27
%50 = call i32 @close(i32 %0)
ret void
}