#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*/ in;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ MD5(unsigned char const *, int /*<<< orphan*/,
                       unsigned char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ snprintf(char *, int, char *, ...);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, int);
int main() {
  FILE *fp = fopen("input", "r");
  char data[16];
  if (fp == NULL) {
    printf("could not open input file\n");
    return -1;
  }
  while (fscanf(fp, "%s", data) != EOF) {
    unsigned char digest[16];
    char out[33], in[33];
    int i, progress = 0;
    unsigned long long index = 0;
    while (progress < 8) {
      snprintf(in, sizeof(in), "%s%llu", data, index);
      MD5((unsigned const char *)in, strlen(in), digest);
      for (i = 0; i < 16; i++) {
        snprintf(out + (i * 2), 16 * 2, "%02x", digest[i]);
      }
      if (!strncmp(out, "00000", 5)) {
        printf("Digest of '%s' is '%s' - here we should use char '%c'\n", in,
               out, out[5]);
        progress++;
      }
      index++;
    }
  }
  fclose(fp);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe67(%rip),%rdi
lea    0xe66(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11ce <main+0x4e>
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    133c <main+0x1bc>
jmp    11d3 <main+0x53>
mov    -0x10(%rbp),%rdi
lea    -0x20(%rbp),%rdx
lea    0xe41(%rip),%rsi
call   1080 <fscanf@plt>
mov    0x2dfa(%rip),%rcx
cmp    (%rcx),%rax
je     132c <main+0x1ac>
movl   $0x0,-0x98(%rbp)
movq   $0x0,-0xa0(%rbp)
cmpl   $0x8,-0x98(%rbp)
jge    1327 <main+0x1a7>
lea    -0x90(%rbp),%rdi
lea    -0x20(%rbp),%rcx
mov    -0xa0(%rbp),%r8
mov    $0x21,%esi
lea    0xdef(%rip),%rdx
mov    $0x0,%al
call   1070 <snprintf@plt>
lea    -0x90(%rbp),%rax
mov    %rax,-0xa8(%rbp)
lea    -0x90(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xa8(%rbp),%rdi
mov    %eax,%esi
lea    -0x30(%rbp),%rdx
call   1090 <MD5@plt>
movl   $0x0,-0x94(%rbp)
cmpl   $0x10,-0x94(%rbp)
jge    12c6 <main+0x146>
lea    -0x60(%rbp),%rdi
mov    -0x94(%rbp),%eax
shl    $0x1,%eax
cltq
add    %rax,%rdi
movslq -0x94(%rbp),%rax
movzbl -0x30(%rbp,%rax,1),%ecx
mov    $0x20,%esi
lea    0xd82(%rip),%rdx
mov    $0x0,%al
call   1070 <snprintf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1274 <main+0xf4>
lea    -0x60(%rbp),%rdi
lea    0xd61(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1310 <main+0x190>
lea    -0x90(%rbp),%rsi
lea    -0x60(%rbp),%rdx
movsbl -0x5b(%rbp),%ecx
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
mov    -0xa0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xa0(%rbp)
jmp    120c <main+0x8c>
jmp    11d3 <main+0x53>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
lea    0xe5b(%rip),%rdi
lea    0xe5a(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     11e5 <main+0x55>
mov    %rax,%rbx
lea    0xe48(%rip),%rsi
lea    0x40(%rsp),%rdx
mov    %rax,%rdi
call   1090 <fscanf@plt>
mov    0x2e14(%rip),%rcx
cmp    (%rcx),%rax
jne    1205 <main+0x75>
mov    %rbx,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
jmp    11f6 <main+0x66>
lea    0xe68(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x50(%rsp),%rbp
lea    0x40(%rsp),%r14
lea    0xdfc(%rip),%r12
lea    0x10(%rsp),%r13
mov    %rbx,0x38(%rsp)
jmp    1253 <main+0xc3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x38(%rsp),%rbx
mov    %rbx,%rdi
lea    0xdc9(%rip),%rsi
mov    %r14,%rdx
call   1090 <fscanf@plt>
mov    0x2d9a(%rip),%rcx
cmp    (%rcx),%rax
je     11d9 <main+0x49>
xor    %r15d,%r15d
xor    %ebx,%ebx
jmp    1269 <main+0xd9>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r15
cmp    $0x8,%ebx
jge    1230 <main+0xa0>
mov    %rbp,%rdi
mov    $0x21,%esi
lea    0xd93(%rip),%rdx
mov    %r14,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   1080 <snprintf@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
mov    %rbp,%rdi
mov    %eax,%esi
mov    %rsp,%rdx
call   10a0 <MD5@plt>
movzbl (%rsp),%ecx
mov    %r13,%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x1(%rsp),%ecx
lea    0x12(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x2(%rsp),%ecx
lea    0x14(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x3(%rsp),%ecx
lea    0x16(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x4(%rsp),%ecx
lea    0x18(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x5(%rsp),%ecx
lea    0x1a(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x6(%rsp),%ecx
lea    0x1c(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x7(%rsp),%ecx
lea    0x1e(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x8(%rsp),%ecx
lea    0x20(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0x9(%rsp),%ecx
lea    0x22(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0xa(%rsp),%ecx
lea    0x24(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0xb(%rsp),%ecx
lea    0x26(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0xc(%rsp),%ecx
lea    0x28(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0xd(%rsp),%ecx
lea    0x2a(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0xe(%rsp),%ecx
lea    0x2c(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
movzbl 0xf(%rsp),%ecx
lea    0x2e(%rsp),%rdi
mov    $0x20,%esi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <snprintf@plt>
mov    %r13,%rdi
lea    0xbe6(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
jne    1260 <main+0xd0>
movsbl 0x15(%rsp),%ecx
lea    0xbce(%rip),%rdi
mov    %rbp,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%ebx
jmp    1260 <main+0xd0>

LLVM IR (-O0):
@.str = [6 x i8] c"input\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [27 x i8] c"could not open input file\0A\00"
@.str.3 = [3 x i8] c"%s\00"
@EOF = global i64 0
@.str.4 = [7 x i8] c"%s%llu\00"
@.str.5 = [5 x i8] c"%02x\00"
@.str.6 = [6 x i8] c"00000\00"
@.str.7 = [55 x i8] c"Digest of '%s' is '%s' - here we should use char '%c'\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [16 x i8]
%4 = alloca [16 x i8]
%5 = alloca [33 x i8]
%6 = alloca [33 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i64
store i32 0, i32* %1
%10 = call i32* @fopen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %10, i32** %2
%11 = load i32*, i32** %2
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %1
br label %74
15: ; preds = %0
br label %16
16: ; preds = %70, %15
%17 = load i32*, i32** %2
%18 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%19 = call i64 @fscanf(i32* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%20 = load i64, i64* @EOF
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %71
22: ; preds = %16
store i32 0, i32* %8
store i64 0, i64* %9
br label %23
23: ; preds = %67, %22
%24 = load i32, i32* %8
%25 = icmp slt i32 %24, 8
br i1 %25, label %26, label %70
26: ; preds = %23
%27 = getelementptr inbounds [33 x i8], [33 x i8]* %6, i64 0, i64 0
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%29 = load i64, i64* %9
%30 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %27, i32 33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %28, i64 %29)
%31 = getelementptr inbounds [33 x i8], [33 x i8]* %6, i64 0, i64 0
%32 = getelementptr inbounds [33 x i8], [33 x i8]* %6, i64 0, i64 0
%33 = call i32 @strlen(i8* %32)
%34 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%35 = call i32 @MD5(i8* %31, i32 %33, i8* %34)
store i32 0, i32* %7
br label %36
36: ; preds = %51, %26
%37 = load i32, i32* %7
%38 = icmp slt i32 %37, 16
br i1 %38, label %39, label %54
39: ; preds = %36
%40 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%41 = load i32, i32* %7
%42 = mul nsw i32 %41, 2
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %40, i64 %43
%45 = load i32, i32* %7
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 %46
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %44, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %49)
br label %51
51: ; preds = %39
%52 = load i32, i32* %7
%53 = add nsw i32 %52, 1
store i32 %53, i32* %7
br label %36
54: ; preds = %36
%55 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%56 = call i32 @strncmp(i8* %55, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 5)
%57 = icmp ne i32 %56, 0
br i1 %57, label %67, label %58
58: ; preds = %54
%59 = getelementptr inbounds [33 x i8], [33 x i8]* %6, i64 0, i64 0
%60 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 0
%61 = getelementptr inbounds [33 x i8], [33 x i8]* %5, i64 0, i64 5
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0), i8* %59, i8* %60, i32 %63)
%65 = load i32, i32* %8
%66 = add nsw i32 %65, 1
store i32 %66, i32* %8
br label %67
67: ; preds = %58, %54
%68 = load i64, i64* %9
%69 = add i64 %68, 1
store i64 %69, i64* %9
br label %23
70: ; preds = %23
br label %16
71: ; preds = %16
%72 = load i32*, i32** %2
%73 = call i32 @fclose(i32* %72)
store i32 0, i32* %1
br label %74
74: ; preds = %71, %13
%75 = load i32, i32* %1
ret i32 %75
}

LLVM IR (-O2):
@.str = [6 x i8] c"input\00"
@.str.1 = [2 x i8] c"r\00"
@.str.3 = [3 x i8] c"%s\00"
@EOF = global i64 0
@.str.4 = [7 x i8] c"%s%llu\00"
@.str.5 = [5 x i8] c"%02x\00"
@.str.6 = [6 x i8] c"00000\00"
@.str.7 = [55 x i8] c"Digest of '%s' is '%s' - here we should use char '%c'\0A\00"
@str = [26 x i8] c"could not open input file\00"
define i32 @main() {
%1 = alloca [16 x i8]
%2 = alloca [16 x i8]
%3 = alloca [33 x i8]
%4 = alloca [33 x i8]
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%7 = icmp eq i32* %5, null
br i1 %7, label %47, label %8
8: ; preds = %0
%9 = call i64 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %6)
%10 = load i64, i64* @EOF
%11 = icmp eq i64 %9, %10
br i1 %11, label %119, label %12
12: ; preds = %8
%13 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%14 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 0
%15 = getelementptr inbounds [33 x i8], [33 x i8]* %4, i64 0, i64 0
%16 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 5
%17 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 2
%18 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 1
%19 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 4
%20 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 2
%21 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 6
%22 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 3
%23 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 8
%24 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 4
%25 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 10
%26 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 5
%27 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 12
%28 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 6
%29 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 14
%30 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 7
%31 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 16
%32 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 8
%33 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 18
%34 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 9
%35 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 20
%36 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 10
%37 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 22
%38 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 11
%39 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 24
%40 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 12
%41 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 26
%42 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 13
%43 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 28
%44 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 14
%45 = getelementptr inbounds [33 x i8], [33 x i8]* %3, i64 0, i64 30
%46 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 15
br label %49
47: ; preds = %0
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
br label %121
49: ; preds = %12, %115
br label %50
50: ; preds = %49, %111
%51 = phi i64 [ 0, %49 ], [ %113, %111 ]
%52 = phi i32 [ 0, %49 ], [ %112, %111 ]
%53 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %15, i32 33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %6, i64 %51)
%54 = call i32 @strlen(i8* %15)
%55 = call i32 @MD5(i8* %15, i32 %54, i8* %13)
%56 = load i8, i8* %13
%57 = zext i8 %56 to i32
%58 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %14, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %57)
%59 = load i8, i8* %18
%60 = zext i8 %59 to i32
%61 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %17, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %60)
%62 = load i8, i8* %20
%63 = zext i8 %62 to i32
%64 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %19, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %63)
%65 = load i8, i8* %22
%66 = zext i8 %65 to i32
%67 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %21, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %66)
%68 = load i8, i8* %24
%69 = zext i8 %68 to i32
%70 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %23, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %69)
%71 = load i8, i8* %26
%72 = zext i8 %71 to i32
%73 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %25, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %72)
%74 = load i8, i8* %28
%75 = zext i8 %74 to i32
%76 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %27, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %75)
%77 = load i8, i8* %30
%78 = zext i8 %77 to i32
%79 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %29, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %78)
%80 = load i8, i8* %32
%81 = zext i8 %80 to i32
%82 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %31, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %81)
%83 = load i8, i8* %34
%84 = zext i8 %83 to i32
%85 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %33, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %84)
%86 = load i8, i8* %36
%87 = zext i8 %86 to i32
%88 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %35, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %87)
%89 = load i8, i8* %38
%90 = zext i8 %89 to i32
%91 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %37, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %90)
%92 = load i8, i8* %40
%93 = zext i8 %92 to i32
%94 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %39, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %93)
%95 = load i8, i8* %42
%96 = zext i8 %95 to i32
%97 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %41, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %96)
%98 = load i8, i8* %44
%99 = zext i8 %98 to i32
%100 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %43, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %99)
%101 = load i8, i8* %46
%102 = zext i8 %101 to i32
%103 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %45, i32 32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 %102)
%104 = call i32 @strncmp(i8* %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 5)
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %111
106: ; preds = %50
%107 = load i8, i8* %16
%108 = sext i8 %107 to i32
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0), i8* %15, i8* %14, i32 %108)
%110 = add nsw i32 %52, 1
br label %111
111: ; preds = %106, %50
%112 = phi i32 [ %52, %50 ], [ %110, %106 ]
%113 = add i64 %51, 1
%114 = icmp slt i32 %112, 8
br i1 %114, label %50, label %115
115: ; preds = %111
%116 = call i64 @fscanf(i32* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %6)
%117 = load i64, i64* @EOF
%118 = icmp eq i64 %116, %117
br i1 %118, label %119, label %49
119: ; preds = %115, %8
%120 = call i32 @fclose(i32* %5)
br label %121
121: ; preds = %119, %47
%122 = phi i32 [ -1, %47 ], [ 0, %119 ]
ret i32 %122
}