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

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgetpos(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
int /*<<< orphan*/ fsetpos(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
long ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ putchar(int);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int main() {
  FILE *fd;
  int ch;
  fpos_t p1;
  long d1;
  char buf[100];
  if (!(fd = fopen("mytext.txt", "r+"))) {
    fprintf(stderr, "cannot open file\n");
    exit(0);
  }
  while (!feof(fd)) {
    ch = fgetc(fd);
    printf("%c:ascii %d\n", ch, ch);
  }
  rewind(fd);
  puts("\n----------------------------------------------");
  while ((ch = fgetc(fd)) != '\n') {
    ;
  }
  fgetpos(fd, &p1);
  do {
    ch = fgetc(fd);
    putchar(ch);
  } while (ch != '\n');
  fsetpos(fd, &p1);
  do {
    ch = fgetc(fd);
    putchar(ch);
  } while (ch != '\n');
  puts("\n----------------------------------------------");
  d1 = ftell(fd);
  rewind(fd);
  ch = fgetc(fd);
  putchar(ch);
  ch = fgetc(fd);
  putchar(ch);
  puts("\n----------------------------------------------");
  fseek(fd, d1, SEEK_SET);
  puts("\n----------------------------------------------");
  rewind(fd);
  fgets(buf, 96, fd);
  puts(buf);
  puts("\n----------------------------------------------");
  fseek(fd, 0, SEEK_END);
  fputs(buf, fd);
  rewind(fd);
  puts("\nThe new file:");
  while (!feof(fd)) {
    putchar(ch = fgetc(fd));
    puts("\n----------------------------------------------");
    puts("\n**END**");
  }
  fclose(fd);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xde7(%rip),%rdi
lea    0xdeb(%rip),%rsi
call   1100 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    124f <main+0x4f>
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
lea    0xdcb(%rip),%rsi
call   10c0 <fprintf@plt>
xor    %edi,%edi
call   1120 <exit@plt>
jmp    1254 <main+0x54>
mov    -0x10(%rbp),%rdi
call   10e0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1272 <main+0x72>
jmp    1295 <main+0x95>
mov    -0x10(%rbp),%rdi
call   10a0 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xd95(%rip),%rdi
call   1060 <printf@plt>
jmp    1254 <main+0x54>
mov    -0x10(%rbp),%rdi
call   1080 <rewind@plt>
lea    0xd88(%rip),%rdi
call   1040 <puts@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <fgetc@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xa,%eax
je     12c4 <main+0xc4>
jmp    12aa <main+0xaa>
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1070 <fgetpos@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <putchar@plt>
cmpl   $0xa,-0x14(%rbp)
jne    12d1 <main+0xd1>
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1110 <fsetpos@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <putchar@plt>
cmpl   $0xa,-0x14(%rbp)
jne    12fc <main+0xfc>
lea    0xd0c(%rip),%rdi
call   1040 <puts@plt>
mov    -0x10(%rbp),%rdi
call   10d0 <ftell@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1080 <rewind@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <fgetc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <putchar@plt>
lea    0xcc2(%rip),%rdi
call   1040 <puts@plt>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    0x2c51(%rip),%rax
mov    (%rax),%edx
call   10f0 <fseek@plt>
lea    0xca0(%rip),%rdi
call   1040 <puts@plt>
mov    -0x10(%rbp),%rdi
call   1080 <rewind@plt>
lea    -0x90(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0x60,%esi
call   10b0 <fgets@plt>
lea    -0x90(%rbp),%rdi
call   1040 <puts@plt>
lea    0xc6a(%rip),%rdi
call   1040 <puts@plt>
mov    -0x10(%rbp),%rdi
mov    0x2c15(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10f0 <fseek@plt>
lea    -0x90(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <fputs@plt>
mov    -0x10(%rbp),%rdi
call   1080 <rewind@plt>
lea    0xc5f(%rip),%rdi
call   1040 <puts@plt>
mov    -0x10(%rbp),%rdi
call   10e0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1421 <main+0x221>
jmp    1451 <main+0x251>
mov    -0x10(%rbp),%rdi
call   10a0 <fgetc@plt>
mov    %eax,%edi
mov    %edi,-0x14(%rbp)
call   1030 <putchar@plt>
lea    0xbf2(%rip),%rdi
call   1040 <puts@plt>
lea    0xc25(%rip),%rdi
call   1040 <puts@plt>
jmp    1403 <main+0x203>
mov    -0x10(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x78,%rsp
lea    0xdef(%rip),%rdi
lea    0xdf3(%rip),%rsi
call   1100 <fopen@plt>
test   %rax,%rax
je     1410 <main+0x210>
mov    %rax,%rbx
mov    %rax,%rdi
call   10e0 <feof@plt>
test   %eax,%eax
jne    1260 <main+0x60>
lea    0xde4(%rip),%r14
nopl   0x0(%rax)
mov    %rbx,%rdi
call   10a0 <fgetc@plt>
mov    %r14,%rdi
mov    %eax,%esi
mov    %eax,%edx
call   1060 <printf@plt>
mov    %rbx,%rdi
call   10e0 <feof@plt>
test   %eax,%eax
je     1240 <main+0x40>
mov    %rbx,%rdi
call   1080 <rewind@plt>
lea    0xdbe(%rip),%rdi
call   1040 <puts@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
call   10a0 <fgetc@plt>
cmp    $0xa,%eax
jne    1280 <main+0x80>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <fgetpos@plt>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   10a0 <fgetc@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1030 <putchar@plt>
cmp    $0xa,%ebp
jne    12a0 <main+0xa0>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1110 <fsetpos@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
call   10a0 <fgetc@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1030 <putchar@plt>
cmp    $0xa,%ebp
jne    12d0 <main+0xd0>
lea    0xd40(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   10d0 <ftell@plt>
mov    %rax,%r15
mov    %rbx,%rdi
call   1080 <rewind@plt>
mov    %rbx,%rdi
call   10a0 <fgetc@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   10a0 <fgetc@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    0x2c9b(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    %r15,%rsi
call   10f0 <fseek@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1080 <rewind@plt>
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x60,%esi
mov    %rbx,%rdx
call   10b0 <fgets@plt>
mov    %rbp,%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    0x2c6a(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   10f0 <fseek@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <fputs@plt>
mov    %rbx,%rdi
call   1080 <rewind@plt>
lea    0xcb9(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   10e0 <feof@plt>
test   %eax,%eax
jne    13fb <main+0x1fb>
lea    0xc71(%rip),%r14
lea    0xca9(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
call   10a0 <fgetc@plt>
mov    %eax,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   10e0 <feof@plt>
test   %eax,%eax
je     13d0 <main+0x1d0>
mov    %rbx,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bc1(%rip),%rax
mov    (%rax),%edi
lea    0xbee(%rip),%rsi
call   10c0 <fprintf@plt>
xor    %edi,%edi
call   1120 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"mytext.txt\00"
@.str.1 = [3 x i8] c"r+\00"
@stderr = global i32 0
@.str.2 = [18 x i8] c"cannot open file\0A\00"
@.str.3 = [13 x i8] c"%c:ascii %d\0A\00"
@.str.4 = [48 x i8] c"\0A----------------------------------------------\00"
@SEEK_SET = global i32 0
@SEEK_END = global i32 0
@.str.5 = [15 x i8] c"\0AThe new file:\00"
@.str.6 = [9 x i8] c"\0A**END**\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
%6 = alloca [100 x i8]
store i32 0, i32* %1
%7 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %7, i32** %2
%8 = icmp ne i32* %7, null
br i1 %8, label %13, label %9
9: ; preds = %0
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @exit(i32 0)
unreachable
13: ; preds = %0
br label %14
14: ; preds = %19, %13
%15 = load i32*, i32** %2
%16 = call i32 @feof(i32* %15)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %25
19: ; preds = %14
%20 = load i32*, i32** %2
%21 = call i32 @fgetc(i32* %20)
store i32 %21, i32* %3
%22 = load i32, i32* %3
%23 = load i32, i32* %3
%24 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %22, i32 %23)
br label %14
25: ; preds = %14
%26 = load i32*, i32** %2
%27 = call i32 @rewind(i32* %26)
%28 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
br label %29
29: ; preds = %33, %25
%30 = load i32*, i32** %2
%31 = call i32 @fgetc(i32* %30)
store i32 %31, i32* %3
%32 = icmp ne i32 %31, 10
br i1 %32, label %33, label %34
33: ; preds = %29
br label %29
34: ; preds = %29
%35 = load i32*, i32** %2
%36 = call i32 @fgetpos(i32* %35, i32* %4)
br label %37
37: ; preds = %42, %34
%38 = load i32*, i32** %2
%39 = call i32 @fgetc(i32* %38)
store i32 %39, i32* %3
%40 = load i32, i32* %3
%41 = call i32 @putchar(i32 %40)
br label %42
42: ; preds = %37
%43 = load i32, i32* %3
%44 = icmp ne i32 %43, 10
br i1 %44, label %37, label %45
45: ; preds = %42
%46 = load i32*, i32** %2
%47 = call i32 @fsetpos(i32* %46, i32* %4)
br label %48
48: ; preds = %53, %45
%49 = load i32*, i32** %2
%50 = call i32 @fgetc(i32* %49)
store i32 %50, i32* %3
%51 = load i32, i32* %3
%52 = call i32 @putchar(i32 %51)
br label %53
53: ; preds = %48
%54 = load i32, i32* %3
%55 = icmp ne i32 %54, 10
br i1 %55, label %48, label %56
56: ; preds = %53
%57 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%58 = load i32*, i32** %2
%59 = call i64 @ftell(i32* %58)
store i64 %59, i64* %5
%60 = load i32*, i32** %2
%61 = call i32 @rewind(i32* %60)
%62 = load i32*, i32** %2
%63 = call i32 @fgetc(i32* %62)
store i32 %63, i32* %3
%64 = load i32, i32* %3
%65 = call i32 @putchar(i32 %64)
%66 = load i32*, i32** %2
%67 = call i32 @fgetc(i32* %66)
store i32 %67, i32* %3
%68 = load i32, i32* %3
%69 = call i32 @putchar(i32 %68)
%70 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%71 = load i32*, i32** %2
%72 = load i64, i64* %5
%73 = load i32, i32* @SEEK_SET
%74 = call i32 @fseek(i32* %71, i64 %72, i32 %73)
%75 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%76 = load i32*, i32** %2
%77 = call i32 @rewind(i32* %76)
%78 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%79 = load i32*, i32** %2
%80 = call i32 @fgets(i8* %78, i32 96, i32* %79)
%81 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%82 = call i32 @puts(i8* %81)
%83 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%84 = load i32*, i32** %2
%85 = load i32, i32* @SEEK_END
%86 = call i32 @fseek(i32* %84, i64 0, i32 %85)
%87 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%88 = load i32*, i32** %2
%89 = call i32 @fputs(i8* %87, i32* %88)
%90 = load i32*, i32** %2
%91 = call i32 @rewind(i32* %90)
%92 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
br label %93
93: ; preds = %98, %56
%94 = load i32*, i32** %2
%95 = call i32 @feof(i32* %94)
%96 = icmp ne i32 %95, 0
%97 = xor i1 %96, true
br i1 %97, label %98, label %104
98: ; preds = %93
%99 = load i32*, i32** %2
%100 = call i32 @fgetc(i32* %99)
store i32 %100, i32* %3
%101 = call i32 @putchar(i32 %100)
%102 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%103 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
br label %93
104: ; preds = %93
%105 = load i32*, i32** %2
%106 = call i32 @fclose(i32* %105)
%107 = load i32, i32* %1
ret i32 %107
}

LLVM IR (-O2):
@.str = [11 x i8] c"mytext.txt\00"
@.str.1 = [3 x i8] c"r+\00"
@stderr = global i32 0
@.str.2 = [18 x i8] c"cannot open file\0A\00"
@.str.3 = [13 x i8] c"%c:ascii %d\0A\00"
@.str.4 = [48 x i8] c"\0A----------------------------------------------\00"
@SEEK_SET = global i32 0
@SEEK_END = global i32 0
@.str.5 = [15 x i8] c"\0AThe new file:\00"
@.str.6 = [9 x i8] c"\0A**END**\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i8]
%3 = bitcast i32* %1 to i8*
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = tail call i32 @feof(i32* %5)
%9 = icmp eq i32 %8, 0
br i1 %9, label %14, label %19
10: ; preds = %0
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @exit(i32 0)
unreachable
14: ; preds = %7, %14
%15 = tail call i32 @fgetc(i32* %5)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %15, i32 %15)
%17 = tail call i32 @feof(i32* %5)
%18 = icmp eq i32 %17, 0
br i1 %18, label %14, label %19
19: ; preds = %14, %7
%20 = tail call i32 @rewind(i32* %5)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
br label %22
22: ; preds = %22, %19
%23 = tail call i32 @fgetc(i32* %5)
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %22
25: ; preds = %22
%26 = call i32 @fgetpos(i32* %5, i32* %1)
br label %27
27: ; preds = %27, %25
%28 = tail call i32 @fgetc(i32* %5)
%29 = tail call i32 @putchar(i32 %28)
%30 = icmp eq i32 %28, 10
br i1 %30, label %31, label %27
31: ; preds = %27
%32 = call i32 @fsetpos(i32* %5, i32* %1)
br label %33
33: ; preds = %33, %31
%34 = call i32 @fgetc(i32* %5)
%35 = call i32 @putchar(i32 %34)
%36 = icmp eq i32 %34, 10
br i1 %36, label %37, label %33
37: ; preds = %33
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%39 = call i64 @ftell(i32* %5)
%40 = call i32 @rewind(i32* %5)
%41 = call i32 @fgetc(i32* %5)
%42 = call i32 @putchar(i32 %41)
%43 = call i32 @fgetc(i32* %5)
%44 = call i32 @putchar(i32 %43)
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%46 = load i32, i32* @SEEK_SET
%47 = call i32 @fseek(i32* %5, i64 %39, i32 %46)
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%49 = call i32 @rewind(i32* %5)
%50 = call i32 @fgets(i8* %4, i32 96, i32* %5)
%51 = call i32 @puts(i8* %4)
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%53 = load i32, i32* @SEEK_END
%54 = call i32 @fseek(i32* %5, i64 0, i32 %53)
%55 = call i32 @fputs(i8* %4, i32* %5)
%56 = call i32 @rewind(i32* %5)
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%58 = call i32 @feof(i32* %5)
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %67
60: ; preds = %37, %60
%61 = call i32 @fgetc(i32* %5)
%62 = call i32 @putchar(i32 %61)
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%65 = call i32 @feof(i32* %5)
%66 = icmp eq i32 %65, 0
br i1 %66, label %60, label %67
67: ; preds = %60, %37
%68 = call i32 @fclose(i32* %5)
ret i32 0
}