#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 */
typedef int /*<<< orphan*/ string;
typedef int /*<<< orphan*/ result;
typedef int /*<<< orphan*/ readBuf;
typedef int /*<<< orphan*/ buffer;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ LOG_ERR;
int /*<<< orphan*/ LOG_INFO;
scalar_t__ Readline(int, char *, int);
int /*<<< orphan*/ Writen(int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ char2hex(char *, char *, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ logIT(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ mkstemp(char *);
int /*<<< orphan*/ readCmdFile(char *, char *, int *, char *);
int /*<<< orphan*/ remove(char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *);
int /*<<< orphan*/ strlen(char *);
char *strstr(char *, char *);
int rawModus(int socketfd, char *device) {
  char readBuf[4096];
  char string[256];
  char tmpfile[] = "/tmp/vitotmp-XXXXXX";
  FILE *filePtr;
  char result[4096];
  int resultLen;
  if (!mkstemp(tmpfile)) {
    if (!mkstemp(tmpfile)) {
      logIT(LOG_ERR, "%s", "Fehler Erzeugung mkstemp");
      return (0);
    }
  }
  filePtr = fopen(tmpfile, "w+");
  if (!filePtr) {
    logIT(LOG_ERR, "Kann Tmp File %s nicht anlegen", tmpfile);
    return (0);
  }
  logIT(LOG_INFO, "Raw Modus: Temp Datei: %s", tmpfile);
  while (Readline(socketfd, readBuf, sizeof(readBuf))) {
    if (strstr(readBuf, "END") == readBuf) {
      fclose(filePtr);
      resultLen = sizeof(result);
      readCmdFile(tmpfile, result, &resultLen, device);
      if (resultLen) {
        char buffer[4096];
        bzero(buffer, sizeof(buffer));
        char2hex(buffer, result, resultLen);
        snprintf(string, sizeof(string), "Result: %s\n", buffer);
        Writen(socketfd, string, strlen(string));
      }
      remove(tmpfile);
      return (1);
    }
    logIT(LOG_INFO, "Raw: Gelesen: %s", readBuf);
    if (fputs(readBuf, filePtr) == EOF) {
      logIT(LOG_ERR, "%s", "Fehler beim schreiben tmp Datei");
    } else {
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<rawModus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3160,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xe07(%rip),%rax
mov    %rax,-0x1130(%rbp)
mov    0xe01(%rip),%rax
mov    %rax,-0x1128(%rbp)
mov    0xdfc(%rip),%eax
mov    %eax,-0x1120(%rbp)
lea    -0x1130(%rbp),%rdi
call   10a0 <mkstemp@plt>
cmp    $0x0,%eax
jne    1271 <rawModus+0x91>
lea    -0x1130(%rbp),%rdi
call   10a0 <mkstemp@plt>
cmp    $0x0,%eax
jne    126c <rawModus+0x8c>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edi
lea    0xe12(%rip),%rsi
lea    0xdb9(%rip),%rdx
call   10f0 <logIT@plt>
movl   $0x0,-0x4(%rbp)
jmp    1468 <rawModus+0x288>
jmp    1271 <rawModus+0x91>
lea    -0x1130(%rbp),%rdi
lea    0xdae(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x1138(%rbp)
cmpq   $0x0,-0x1138(%rbp)
jne    12c1 <rawModus+0xe1>
mov    0x2d28(%rip),%rax
mov    (%rax),%edi
lea    -0x1130(%rbp),%rdx
lea    0xd80(%rip),%rsi
call   10f0 <logIT@plt>
movl   $0x0,-0x4(%rbp)
jmp    1468 <rawModus+0x288>
mov    0x2d10(%rip),%rax
mov    (%rax),%edi
lea    -0x1130(%rbp),%rdx
lea    0xd77(%rip),%rsi
call   10f0 <logIT@plt>
mov    -0x8(%rbp),%edi
lea    -0x1010(%rbp),%rsi
mov    $0x1000,%edx
call   1090 <Readline@plt>
cmp    $0x0,%rax
je     1461 <rawModus+0x281>
lea    -0x1010(%rbp),%rdi
lea    0xd60(%rip),%rsi
call   1100 <strstr@plt>
lea    -0x1010(%rbp),%rcx
cmp    %rcx,%rax
jne    13f7 <rawModus+0x217>
mov    -0x1138(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x1000,-0x2144(%rbp)
lea    -0x1130(%rbp),%rdi
lea    -0x2140(%rbp),%rsi
mov    -0x10(%rbp),%rcx
lea    -0x2144(%rbp),%rdx
call   10b0 <readCmdFile@plt>
cmpl   $0x0,-0x2144(%rbp)
je     13df <rawModus+0x1ff>
lea    -0x3150(%rbp),%rdi
mov    $0x1000,%esi
call   10d0 <bzero@plt>
lea    -0x3150(%rbp),%rdi
lea    -0x2140(%rbp),%rsi
mov    -0x2144(%rbp),%edx
call   1030 <char2hex@plt>
lea    -0x1110(%rbp),%rdi
lea    -0x3150(%rbp),%rcx
mov    $0x100,%esi
lea    0xcca(%rip),%rdx
call   1070 <snprintf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x315c(%rbp)
lea    -0x1110(%rbp),%rax
mov    %rax,-0x3158(%rbp)
lea    -0x1110(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0x315c(%rbp),%edi
mov    -0x3158(%rbp),%rsi
mov    %eax,%edx
call   10e0 <Writen@plt>
lea    -0x1130(%rbp),%rdi
call   1040 <remove@plt>
movl   $0x1,-0x4(%rbp)
jmp    1468 <rawModus+0x288>
mov    0x2bda(%rip),%rax
mov    (%rax),%edi
lea    -0x1010(%rbp),%rdx
lea    0xc6b(%rip),%rsi
call   10f0 <logIT@plt>
lea    -0x1010(%rbp),%rdi
mov    -0x1138(%rbp),%rsi
call   1080 <fputs@plt>
mov    0x2bbb(%rip),%rcx
cmp    (%rcx),%rax
jne    1457 <rawModus+0x277>
mov    0x2b8b(%rip),%rax
mov    (%rax),%edi
lea    0xc20(%rip),%rsi
lea    0xc3d(%rip),%rdx
call   10f0 <logIT@plt>
jmp    145c <rawModus+0x27c>
jmp    145c <rawModus+0x27c>
jmp    12dd <rawModus+0xfd>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x3160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rawModus>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x3138,%rsp
mov    %rsi,%rbx
mov    %edi,%r12d
movaps 0xe02(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movl   $0x585858,0x20(%rsp)
lea    0x10(%rsp),%rdi
call   10b0 <mkstemp@plt>
test   %eax,%eax
jne    122b <rawModus+0x4b>
lea    0x10(%rsp),%rdi
call   10b0 <mkstemp@plt>
test   %eax,%eax
je     13dc <rawModus+0x1fc>
lea    0xdfb(%rip),%rsi
lea    0x10(%rsp),%rdi
call   10d0 <fopen@plt>
test   %rax,%rax
je     1325 <rawModus+0x145>
mov    %rax,%r13
mov    0x2d89(%rip),%rax
mov    (%rax),%edi
lea    0xdf7(%rip),%rsi
lea    0x10(%rsp),%rdx
call   1100 <logIT@plt>
lea    0x1130(%rsp),%rsi
mov    %r12d,%edi
mov    $0x1000,%edx
call   10a0 <Readline@plt>
xor    %ecx,%ecx
test   %rax,%rax
je     13fa <rawModus+0x21a>
mov    %rbx,0x28(%rsp)
lea    0xddb(%rip),%rbp
lea    0x1130(%rsp),%rbx
lea    0xddc(%rip),%r14
mov    0x2d44(%rip),%r15
jmp    12c9 <rawModus+0xe9>
cs nopw 0x0(%rax,%rax,1)
mov    %r12d,%edi
mov    %rbx,%rsi
mov    $0x1000,%edx
call   10a0 <Readline@plt>
test   %rax,%rax
je     13f8 <rawModus+0x218>
mov    %rbp,%rdi
call   1070 <strlen@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %rax,%rdx
call   1050 <strncmp@plt>
test   %eax,%eax
je     133f <rawModus+0x15f>
mov    0x2cee(%rip),%rax
mov    (%rax),%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1100 <logIT@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1090 <fputs@plt>
cmp    (%r15),%rax
jne    12b0 <rawModus+0xd0>
mov    0x2cba(%rip),%rax
mov    (%rax),%edi
lea    0xd4f(%rip),%rsi
lea    0xd6c(%rip),%rdx
call   1100 <logIT@plt>
jmp    12b0 <rawModus+0xd0>
mov    0x2c9c(%rip),%rax
mov    (%rax),%edi
lea    0xcfb(%rip),%rsi
lea    0x10(%rsp),%rdx
jmp    13f3 <rawModus+0x213>
mov    %r13,%rdi
call   1060 <fclose@plt>
movl   $0x1000,0xc(%rsp)
lea    0x10(%rsp),%rdi
lea    0x130(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    0x28(%rsp),%rcx
call   10c0 <readCmdFile@plt>
mov    0xc(%rsp),%ebx
test   %ebx,%ebx
je     13cb <rawModus+0x1eb>
lea    0x2130(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x1000,%esi
call   10e0 <bzero@plt>
lea    0x130(%rsp),%rsi
mov    %rbp,%rdi
mov    %ebx,%edx
call   1030 <char2hex@plt>
lea    0xccc(%rip),%rdx
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %rbp,%rcx
call   1080 <snprintf@plt>
mov    %rbx,%rdi
call   1070 <strlen@plt>
mov    %r12d,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   10f0 <Writen@plt>
lea    0x10(%rsp),%rdi
call   1040 <remove@plt>
mov    $0x1,%ecx
jmp    13fa <rawModus+0x21a>
mov    0x2be5(%rip),%rax
mov    (%rax),%edi
lea    0xc7a(%rip),%rsi
lea    0xc21(%rip),%rdx
call   1100 <logIT@plt>
xor    %ecx,%ecx
mov    %ecx,%eax
add    $0x3138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.rawModus.tmpfile = [20 x i8] c"/tmp/vitotmp-XXXXXX\00"
@LOG_ERR = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [25 x i8] c"Fehler Erzeugung mkstemp\00"
@.str.2 = [3 x i8] c"w+\00"
@.str.3 = [31 x i8] c"Kann Tmp File %s nicht anlegen\00"
@LOG_INFO = global i32 0
@.str.4 = [26 x i8] c"Raw Modus: Temp Datei: %s\00"
@.str.5 = [4 x i8] c"END\00"
@.str.6 = [12 x i8] c"Result: %s\0A\00"
@.str.7 = [17 x i8] c"Raw: Gelesen: %s\00"
@EOF = global i64 0
@.str.8 = [32 x i8] c"Fehler beim schreiben tmp Datei\00"
define i32 @rawModus(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca [4096 x i8]
%7 = alloca [256 x i8]
%8 = alloca [20 x i8]
%9 = alloca i32*
%10 = alloca [4096 x i8]
%11 = alloca i32
%12 = alloca [4096 x i8]
store i32 %0, i32* %4
store i8* %1, i8** %5
%13 = bitcast [20 x i8]* %8 to i8*
%14 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%15 = call i32 @mkstemp(i8* %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %25, label %17
17: ; preds = %2
%18 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%19 = call i32 @mkstemp(i8* %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %17
%22 = load i32, i32* @LOG_ERR
%23 = call i32 @logIT(i32 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %90
24: ; preds = %17
br label %25
25: ; preds = %24, %2
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %27, i32** %9
%28 = load i32*, i32** %9
%29 = icmp ne i32* %28, null
br i1 %29, label %34, label %30
30: ; preds = %25
%31 = load i32, i32* @LOG_ERR
%32 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%33 = call i32 @logIT(i32 %31, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %32)
store i32 0, i32* %3
br label %90
34: ; preds = %25
%35 = load i32, i32* @LOG_INFO
%36 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%37 = call i32 @logIT(i32 %35, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %36)
br label %38
38: ; preds = %88, %34
%39 = load i32, i32* %4
%40 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%41 = call i64 @Readline(i32 %39, i8* %40, i32 4096)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %89
43: ; preds = %38
%44 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%45 = call i8* @strstr(i8* %44, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%46 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%47 = icmp eq i8* %45, %46
br i1 %47, label %48, label %75
48: ; preds = %43
%49 = load i32*, i32** %9
%50 = call i32 @fclose(i32* %49)
store i32 4096, i32* %11
%51 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%52 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%53 = load i8*, i8** %5
%54 = call i32 @readCmdFile(i8* %51, i8* %52, i32* %11, i8* %53)
%55 = load i32, i32* %11
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %72
57: ; preds = %48
%58 = getelementptr inbounds [4096 x i8], [4096 x i8]* %12, i64 0, i64 0
%59 = call i32 @bzero(i8* %58, i32 4096)
%60 = getelementptr inbounds [4096 x i8], [4096 x i8]* %12, i64 0, i64 0
%61 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%62 = load i32, i32* %11
%63 = call i32 @char2hex(i8* %60, i8* %61, i32 %62)
%64 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%65 = getelementptr inbounds [4096 x i8], [4096 x i8]* %12, i64 0, i64 0
%66 = call i32 @snprintf(i8* %64, i32 256, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %65)
%67 = load i32, i32* %4
%68 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%69 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%70 = call i32 @strlen(i8* %69)
%71 = call i32 @Writen(i32 %67, i8* %68, i32 %70)
br label %72
72: ; preds = %57, %48
%73 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%74 = call i32 @remove(i8* %73)
store i32 1, i32* %3
br label %90
75: ; preds = %43
%76 = load i32, i32* @LOG_INFO
%77 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%78 = call i32 @logIT(i32 %76, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %77)
%79 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%80 = load i32*, i32** %9
%81 = call i64 @fputs(i8* %79, i32* %80)
%82 = load i64, i64* @EOF
%83 = icmp eq i64 %81, %82
br i1 %83, label %84, label %87
84: ; preds = %75
%85 = load i32, i32* @LOG_ERR
%86 = call i32 @logIT(i32 %85, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
br label %88
87: ; preds = %75
br label %88
88: ; preds = %87, %84
br label %38
89: ; preds = %38
store i32 0, i32* %3
br label %90
90: ; preds = %89, %72, %30, %21
%91 = load i32, i32* %3
ret i32 %91
}

LLVM IR (-O2):
@__const.rawModus.tmpfile = [20 x i8] c"/tmp/vitotmp-XXXXXX\00"
@LOG_ERR = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [25 x i8] c"Fehler Erzeugung mkstemp\00"
@.str.2 = [3 x i8] c"w+\00"
@.str.3 = [31 x i8] c"Kann Tmp File %s nicht anlegen\00"
@LOG_INFO = global i32 0
@.str.4 = [26 x i8] c"Raw Modus: Temp Datei: %s\00"
@.str.5 = [4 x i8] c"END\00"
@.str.6 = [12 x i8] c"Result: %s\0A\00"
@.str.7 = [17 x i8] c"Raw: Gelesen: %s\00"
@EOF = global i64 0
@.str.8 = [32 x i8] c"Fehler beim schreiben tmp Datei\00"
define i32 @rawModus(i32 %0, i8* %1) {
%3 = alloca [4096 x i8]
%4 = alloca [256 x i8]
%5 = alloca [20 x i8]
%6 = alloca [4096 x i8]
%7 = alloca i32
%8 = alloca [4096 x i8]
%9 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%13 = bitcast i32* %7 to i8*
%14 = call i32 @mkstemp(i8* %11)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %22
16: ; preds = %2
%17 = call i32 @mkstemp(i8* %11)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, i32* @LOG_ERR
%21 = call i32 @logIT(i32 %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
br label %63
22: ; preds = %16, %2
%23 = call i32* @fopen(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load i32, i32* @LOG_ERR
%27 = call i32 @logIT(i32 %26, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %11)
br label %63
28: ; preds = %22
%29 = load i32, i32* @LOG_INFO
%30 = call i32 @logIT(i32 %29, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %11)
%31 = call i64 @Readline(i32 %0, i8* %9, i32 4096)
%32 = icmp eq i64 %31, 0
br i1 %32, label %63, label %33
33: ; preds = %28, %60
%34 = call i64 bitcast (i32 (i8*)* @strlen to i64 (i8*)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%35 = call i32 @strncmp(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i64 %34)
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = call i32 @fclose(i32* %23)
store i32 4096, i32* %7
%39 = call i32 @readCmdFile(i8* %11, i8* %12, i32* %7, i8* %1)
%40 = load i32, i32* %7
%41 = icmp eq i32 %40, 0
br i1 %41, label %49, label %42
42: ; preds = %37
%43 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%44 = call i32 @bzero(i8* %43, i32 4096)
%45 = call i32 @char2hex(i8* %43, i8* %12, i32 %40)
%46 = call i32 @snprintf(i8* %10, i32 256, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %43)
%47 = call i32 @strlen(i8* %10)
%48 = call i32 @Writen(i32 %0, i8* %10, i32 %47)
br label %49
49: ; preds = %42, %37
%50 = call i32 @remove(i8* %11)
br label %63
51: ; preds = %33
%52 = load i32, i32* @LOG_INFO
%53 = call i32 @logIT(i32 %52, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* %9)
%54 = call i64 @fputs(i8* %9, i32* %23)
%55 = load i64, i64* @EOF
%56 = icmp eq i64 %54, %55
br i1 %56, label %57, label %60
57: ; preds = %51
%58 = load i32, i32* @LOG_ERR
%59 = call i32 @logIT(i32 %58, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0))
br label %60
60: ; preds = %51, %57
%61 = call i64 @Readline(i32 %0, i8* %9, i32 4096)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %33
63: ; preds = %60, %28, %49, %25, %19
%64 = phi i32 [ 1, %49 ], [ 0, %25 ], [ 0, %19 ], [ 0, %28 ], [ 0, %60 ]
ret i32 %64
}