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

/* Variables and functions */
int EOF;
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ ferror(int /*<<< orphan*/);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int random();
int /*<<< orphan*/ srandom(int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
char *strerror(int /*<<< orphan*/);
int main(int argc, char **argv) {
  FILE *infile;
  int c, count, linestart;
  if (argc != 2) {
    fprintf(stderr, "Usage: setup file > data.c (file is typically glorkz)\n");
    exit(1);
  }
  if ((infile = fopen(argv[1], "r")) == NULL) {
    fprintf(stderr, "Can't read file %s: %s\n", argv[1], strerror(errno));
    exit(1);
  }
  puts("/*\n * data.c: created by setup from the ascii data file.");
  puts(" *      Jim Gillogly");
  puts(" *      Sterday, 6 Thrimidge S.R. 1993, 15:24");
  puts(" */");
  printf("\n\nchar data_file[] =\n{");
  srandom(1815622);
  count = 0;
  linestart = 1;
  while ((c = getc(infile)) != EOF) {
    if (linestart && c == ' ') {
      printf("0x%02x,", (unsigned int)('\t' ^ random()) & 0xFF);
      while ((c = getc(infile)) == ' ' && c != EOF)
        ;
      linestart = 0;
    }
    switch (c) {
    case '\t':
      linestart = 0;
      break;
    case '\n':
      linestart = 1;
      break;
    }
    if (count++ % 10 == 0)
      printf("\n\t");
    printf("0x%02x,", (unsigned int)(c ^ random()) & 0xFF);
  }
  puts("\n\t0\n};");
  fclose(infile);
  fflush(stdout);
  if (ferror(stdout)) {
    perror("error writing standard output");
    exit(1);
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1211 <main+0x41>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
lea    0xe00(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe17(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    127b <main+0xab>
mov    0x2d9e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    0x2d7e(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%rdx
mov    %rax,%rcx
lea    0xdcf(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
lea    0xdcf(%rip),%rdi
call   1040 <puts@plt>
lea    0xdfc(%rip),%rdi
call   1040 <puts@plt>
lea    0xe05(%rip),%rdi
call   1040 <puts@plt>
lea    0xe27(%rip),%rdi
call   1040 <puts@plt>
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1bb446,%edi
call   1030 <srandom@plt>
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <getc@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2d04(%rip),%rcx
cmp    (%rcx),%eax
je     13f7 <main+0x227>
cmpl   $0x0,-0x24(%rbp)
je     136a <main+0x19a>
cmpl   $0x20,-0x1c(%rbp)
jne    136a <main+0x19a>
mov    $0x0,%al
call   1090 <random@plt>
mov    %eax,%esi
xor    $0x9,%esi
and    $0xff,%esi
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x18(%rbp),%rdi
call   10f0 <getc@plt>
mov    %eax,%ecx
mov    %ecx,-0x1c(%rbp)
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x35(%rbp)
jne    134e <main+0x17e>
mov    -0x1c(%rbp),%eax
mov    0x2ca2(%rip),%rcx
cmp    (%rcx),%eax
setne  %al
mov    %al,-0x35(%rbp)
mov    -0x35(%rbp),%al
test   $0x1,%al
jne    135e <main+0x18e>
jmp    1363 <main+0x193>
jmp    1320 <main+0x150>
movl   $0x0,-0x24(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
sub    $0x9,%eax
je     138f <main+0x1bf>
jmp    137e <main+0x1ae>
mov    -0x3c(%rbp),%eax
sub    $0xa,%eax
je     139b <main+0x1cb>
jmp    13a2 <main+0x1d2>
movl   $0x0,-0x24(%rbp)
jmp    13a2 <main+0x1d2>
movl   $0x1,-0x24(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x20(%rbp)
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    13cc <main+0x1fc>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    $0x0,%al
call   1090 <random@plt>
mov    -0x40(%rbp),%esi
xor    %eax,%esi
and    $0xff,%esi
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    12d1 <main+0x101>
lea    0xcf5(%rip),%rdi
call   1040 <puts@plt>
mov    -0x18(%rbp),%rdi
call   1060 <fclose@plt>
mov    0x2bb5(%rip),%rax
mov    (%rax),%edi
call   10a0 <fflush@plt>
mov    0x2ba7(%rip),%rax
mov    (%rax),%edi
call   1050 <ferror@plt>
cmp    $0x0,%rax
je     1448 <main+0x278>
lea    0xcc1(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
xor    %edi,%edi
call   10d0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    1233 <main+0x63>
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
lea    0xe49(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
jne    1254 <main+0x84>
mov    0x2dd9(%rip),%rax
mov    (%rax),%ebx
mov    0x8(%rbp),%rbp
mov    0x2dc4(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
lea    0xe1f(%rip),%rsi
mov    %ebx,%edi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
lea    0xdbd(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    %rax,%rbx
lea    0xdf3(%rip),%rdi
call   1040 <puts@plt>
lea    0xe20(%rip),%rdi
call   1040 <puts@plt>
lea    0xe29(%rip),%rdi
call   1040 <puts@plt>
lea    0xe4b(%rip),%rdi
call   1040 <puts@plt>
lea    0xe43(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x1bb446,%edi
call   1030 <srandom@plt>
mov    %rbx,%rdi
call   10f0 <getc@plt>
mov    0x2d3a(%rip),%r12
cmp    (%r12),%eax
jne    12ed <main+0x11d>
lea    0xe38(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1060 <fclose@plt>
mov    0x2cf9(%rip),%rbx
mov    (%rbx),%edi
call   10a0 <fflush@plt>
mov    (%rbx),%edi
call   1050 <ferror@plt>
test   %rax,%rax
jne    13d3 <main+0x203>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    %eax,%ebp
mov    $0x1,%r15d
lea    0xdec(%rip),%r14
xor    %r13d,%r13d
jmp    1358 <main+0x188>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x1,%r15d
imul   $0xcccccccd,%r13d,%eax
ror    %eax
cmp    $0x19999999,%eax
jbe    13c0 <main+0x1f0>
add    $0x1,%r13d
xor    %eax,%eax
call   1090 <random@plt>
xor    %ebp,%eax
movzbl %al,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   10f0 <getc@plt>
mov    %eax,%ebp
cmp    (%r12),%eax
je     12b4 <main+0xe4>
test   %r15d,%r15d
je     1399 <main+0x1c9>
cmp    $0x20,%ebp
jne    1399 <main+0x1c9>
xor    %eax,%eax
call   1090 <random@plt>
movzbl %al,%esi
xor    $0x9,%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   10f0 <getc@plt>
mov    %eax,%ebp
xor    %r15d,%r15d
cmp    $0x20,%eax
jne    1399 <main+0x1c9>
cmpl   $0x20,(%r12)
jne    1380 <main+0x1b0>
cmp    $0xa,%ebp
je     1310 <main+0x140>
cmp    $0x9,%ebp
jne    1316 <main+0x146>
xor    %r15d,%r15d
jmp    1316 <main+0x146>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xd29(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    132a <main+0x15a>
lea    0xd20(%rip),%rdi
call   10c0 <perror@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [55 x i8] c"Usage: setup file > data.c (file is typically glorkz)\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [24 x i8] c"Can't read file %s: %s\0A\00"
@errno = global i32 0
@.str.3 = [57 x i8] c"/*\0A * data.c: created by setup from the ascii data file.\00"
@.str.4 = [21 x i8] c" * Jim Gillogly\00"
@.str.5 = [46 x i8] c" * Sterday, 6 Thrimidge S.R. 1993, 15:24\00"
@.str.6 = [4 x i8] c" */\00"
@.str.7 = [23 x i8] c"\0A\0Achar data_file[] =\0A{\00"
@EOF = global i32 0
@.str.8 = [8 x i8] c"0x%02x,\00"
@.str.9 = [3 x i8] c"\0A\09\00"
@.str.10 = [7 x i8] c"\0A\090\0A};\00"
@stdout = global i32 0
@.str.11 = [30 x i8] c"error writing standard output\00"
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 i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @exit(i32 1)
unreachable
16: ; preds = %2
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32* @fopen(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %20, i32** %6
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %31
22: ; preds = %16
%23 = load i32, i32* @stderr
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = load i32, i32* @errno
%28 = call i8* @strerror(i32 %27)
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %26, i8* %28)
%30 = call i32 @exit(i32 1)
unreachable
31: ; preds = %16
%32 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%33 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%34 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%35 = call i32 @puts(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%37 = call i32 @srandom(i32 1815622)
store i32 0, i32* %8
store i32 1, i32* %9
br label %38
38: ; preds = %77, %31
%39 = load i32*, i32** %6
%40 = call i32 @getc(i32* %39)
store i32 %40, i32* %7
%41 = load i32, i32* @EOF
%42 = icmp ne i32 %40, %41
br i1 %42, label %43, label %83
43: ; preds = %38
%44 = load i32, i32* %9
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %66
46: ; preds = %43
%47 = load i32, i32* %7
%48 = icmp eq i32 %47, 32
br i1 %48, label %49, label %66
49: ; preds = %46
%50 = call i32 (...) @random()
%51 = xor i32 9, %50
%52 = and i32 %51, 255
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %52)
br label %54
54: ; preds = %64, %49
%55 = load i32*, i32** %6
%56 = call i32 @getc(i32* %55)
store i32 %56, i32* %7
%57 = icmp eq i32 %56, 32
br i1 %57, label %58, label %62
58: ; preds = %54
%59 = load i32, i32* %7
%60 = load i32, i32* @EOF
%61 = icmp ne i32 %59, %60
br label %62
62: ; preds = %58, %54
%63 = phi i1 [ false, %54 ], [ %61, %58 ]
br i1 %63, label %64, label %65
64: ; preds = %62
br label %54
65: ; preds = %62
store i32 0, i32* %9
br label %66
66: ; preds = %65, %46, %43
%67 = load i32, i32* %7
switch i32 %67, label %70 [
i32 9, label %68
i32 10, label %69
]
68: ; preds = %66
store i32 0, i32* %9
br label %70
69: ; preds = %66
store i32 1, i32* %9
br label %70
70: ; preds = %66, %69, %68
%71 = load i32, i32* %8
%72 = add nsw i32 %71, 1
store i32 %72, i32* %8
%73 = srem i32 %71, 10
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %70
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
br label %77
77: ; preds = %75, %70
%78 = load i32, i32* %7
%79 = call i32 (...) @random()
%80 = xor i32 %78, %79
%81 = and i32 %80, 255
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %81)
br label %38
83: ; preds = %38
%84 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%85 = load i32*, i32** %6
%86 = call i32 @fclose(i32* %85)
%87 = load i32, i32* @stdout
%88 = call i32 @fflush(i32 %87)
%89 = load i32, i32* @stdout
%90 = call i64 @ferror(i32 %89)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %83
%93 = call i32 @perror(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%94 = call i32 @exit(i32 1)
unreachable
95: ; preds = %83
%96 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [55 x i8] c"Usage: setup file > data.c (file is typically glorkz)\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [24 x i8] c"Can't read file %s: %s\0A\00"
@errno = global i32 0
@.str.3 = [57 x i8] c"/*\0A * data.c: created by setup from the ascii data file.\00"
@.str.4 = [21 x i8] c" * Jim Gillogly\00"
@.str.5 = [46 x i8] c" * Sterday, 6 Thrimidge S.R. 1993, 15:24\00"
@.str.6 = [4 x i8] c" */\00"
@.str.7 = [23 x i8] c"\0A\0Achar data_file[] =\0A{\00"
@EOF = global i32 0
@.str.8 = [8 x i8] c"0x%02x,\00"
@.str.9 = [3 x i8] c"\0A\09\00"
@.str.10 = [7 x i8] c"\0A\090\0A};\00"
@stdout = global i32 0
@.str.11 = [30 x i8] c"error writing standard output\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32* @fopen(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %20
13: ; preds = %8
%14 = load i32, i32* @stderr
%15 = load i8*, i8** %9
%16 = load i32, i32* @errno
%17 = tail call i8* @strerror(i32 %16)
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %15, i8* %17)
%19 = tail call i32 @exit(i32 1)
unreachable
20: ; preds = %8
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%26 = tail call i32 @srandom(i32 1815622)
%27 = tail call i32 @getc(i32* %11)
%28 = load i32, i32* @EOF
%29 = icmp eq i32 %27, %28
br i1 %29, label %68, label %30
30: ; preds = %20, %60
%31 = phi i32 [ %65, %60 ], [ %27, %20 ]
%32 = phi i32 [ %54, %60 ], [ 1, %20 ]
%33 = phi i32 [ %55, %60 ], [ 0, %20 ]
%34 = icmp ne i32 %32, 0
%35 = icmp eq i32 %31, 32
%36 = and i1 %34, %35
br i1 %36, label %37, label %48
37: ; preds = %30
%38 = tail call i32 (...) @random()
%39 = and i32 %38, 255
%40 = xor i32 %39, 9
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %42, %37
%43 = tail call i32 @getc(i32* %11)
%44 = icmp eq i32 %43, 32
%45 = load i32, i32* @EOF
%46 = icmp ne i32 %45, 32
%47 = select i1 %44, i1 %46, i1 false
br i1 %47, label %42, label %48
48: ; preds = %42, %30
%49 = phi i32 [ %31, %30 ], [ %43, %42 ]
%50 = phi i32 [ %32, %30 ], [ 0, %42 ]
switch i32 %49, label %53 [
i32 9, label %51
i32 10, label %52
]
51: ; preds = %48
br label %53
52: ; preds = %48
br label %53
53: ; preds = %48, %52, %51
%54 = phi i32 [ %50, %48 ], [ 1, %52 ], [ 0, %51 ]
%55 = add nuw nsw i32 %33, 1
%56 = urem i32 %33, 10
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %53
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
br label %60
60: ; preds = %58, %53
%61 = tail call i32 (...) @random()
%62 = xor i32 %61, %49
%63 = and i32 %62, 255
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %63)
%65 = tail call i32 @getc(i32* %11)
%66 = load i32, i32* @EOF
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %30
68: ; preds = %60, %20
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%70 = tail call i32 @fclose(i32* %11)
%71 = load i32, i32* @stdout
%72 = tail call i32 @fflush(i32 %71)
%73 = load i32, i32* @stdout
%74 = tail call i64 @ferror(i32 %73)
%75 = icmp eq i64 %74, 0
br i1 %75, label %79, label %76
76: ; preds = %68
%77 = tail call i32 @perror(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%78 = tail call i32 @exit(i32 1)
unreachable
79: ; preds = %68
%80 = tail call i32 @exit(i32 0)
unreachable
}