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

/* Variables and functions */
int /*<<< orphan*/ EX_IOERR;
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ fileno(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int read(int, scalar_t__ *, int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, int);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ write(int /*<<< orphan*/, scalar_t__ *, int);
void print_pgm_image(int f, u_int32_t n, u_char *image, u_int32_t nr,
                     u_int32_t nc, char *basename, int r_flag) {
  int c, ilen, i, j;
  FILE *fp;
  char pname[72];
  u_char w;
  ilen = nr * nc;
  c = read(f, image, ilen);
  if (c < 0) {
    fprintf(stderr, "read image %u: %s\n", n, strerror(errno));
    exit(EX_IOERR);
  }
  snprintf(pname, 72, "%s-%d.pgm", basename, n);
  fp = fopen(pname, "w");
  if (fp == NULL) {
    fprintf(stderr, "fopen(%s): %s", pname, strerror(errno));
    exit(EX_IOERR);
  }
  fprintf(fp, "P5\n");
  fprintf(fp, "# %s\n", pname);
  fprintf(fp, "%u %u\n", nr, nc);
  fprintf(fp, "255\n");
  fflush(fp);
  for (i = 0; i < nr; i++) {
    for (j = 0; j < nc; j++) {
      w = *(image + j + (i * nc));
      if (r_flag) {
        w = 255 - w;
      }
      write(fileno(fp), &w, 1);
    }
    fprintf(fp, "\n");
  }
  fprintf(fp, "\n");
  fclose(fp);
  return;
}


x86 assembly (clang, -O0):
<print_pgm_image>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%edx
call   1060 <read@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    123d <print_pgm_image+0x9d>
mov    0x2de8(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0x98(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0x98(%rbp),%rdi
mov    -0x8c(%rbp),%edx
mov    %rax,%rcx
lea    0xdd8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2db2(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
lea    -0x80(%rbp),%rdi
mov    -0x20(%rbp),%rcx
mov    -0x8(%rbp),%r8d
mov    $0x48,%esi
lea    0xdbe(%rip),%rdx
call   1050 <snprintf@plt>
lea    -0x80(%rbp),%rdi
lea    0xdb8(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    12d0 <print_pgm_image+0x130>
mov    0x2d58(%rip),%rax
movslq (%rax),%rax
mov    %rax,-0xa8(%rbp)
lea    -0x80(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    0x2d34(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
mov    -0xa8(%rbp),%rdi
mov    -0xa0(%rbp),%rdx
mov    %rax,%rcx
lea    0xd64(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2d1f(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x38(%rbp),%rdi
lea    0xd52(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    -0x80(%rbp),%rdx
lea    0xd40(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xd2e(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xd23(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%rdi
call   1090 <fflush@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13dc <print_pgm_image+0x23c>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13bc <print_pgm_image+0x21c>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x2c(%rbp),%ecx
imul   -0x18(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x88(%rbp)
cmpl   $0x0,0x10(%rbp)
je     1392 <print_pgm_image+0x1f2>
mov    $0xff,%eax
sub    -0x88(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x38(%rbp),%rdi
call   1080 <fileno@plt>
mov    %eax,%edi
lea    -0x88(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1345 <print_pgm_image+0x1a5>
mov    -0x38(%rbp),%rdi
lea    0xc7a(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1332 <print_pgm_image+0x192>
mov    -0x38(%rbp),%rdi
lea    0xc5a(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_pgm_image>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9,%r13
mov    %ecx,%r15d
mov    %rdx,%rbx
mov    %esi,%r12d
mov    %r8d,0xc(%rsp)
mov    %r8d,%edx
imul   %ecx,%edx
mov    %rbx,%rsi
call   1070 <read@plt>
test   %eax,%eax
js     136e <print_pgm_image+0x1ae>
lea    0xe17(%rip),%rdx
lea    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x48,%esi
mov    %r13,%rcx
mov    %r12d,%r8d
call   1050 <snprintf@plt>
lea    0xe02(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     139f <print_pgm_image+0x1df>
mov    %rax,%rbp
lea    0xdf7(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   10d0 <fwrite@plt>
lea    0xde2(%rip),%rsi
lea    0x30(%rsp),%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xdd2(%rip),%rsi
mov    %rbp,%rdi
mov    %r15d,%edx
mov    0xc(%rsp),%ecx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xdc1(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   10d0 <fwrite@plt>
mov    %rbp,%rdi
call   10a0 <fflush@plt>
test   %r15d,%r15d
jle    134a <print_pgm_image+0x18a>
mov    0xb0(%rsp),%r12d
mov    0xc(%rsp),%eax
movslq %eax,%rcx
mov    %r15d,%edx
mov    %rdx,0x10(%rsp)
mov    %eax,%r14d
shl    $0x3,%rcx
mov    %rcx,0x18(%rsp)
xor    %eax,%eax
lea    0x28(%rsp),%r15
jmp    12f2 <print_pgm_image+0x132>
nopl   0x0(%rax)
mov    $0xa,%edi
mov    %rbp,%rsi
call   1060 <fputc@plt>
mov    0x20(%rsp),%rax
add    $0x1,%rax
add    0x18(%rsp),%rbx
cmp    0x10(%rsp),%rax
je     134a <print_pgm_image+0x18a>
mov    %rax,0x20(%rsp)
cmpl   $0x0,0xc(%rsp)
jle    12d0 <print_pgm_image+0x110>
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rbx,%r13,8),%rax
mov    $0xff,%ecx
sub    %rax,%rcx
test   %r12d,%r12d
cmove  %rax,%rcx
mov    %rcx,0x28(%rsp)
mov    %rbp,%rdi
call   1090 <fileno@plt>
mov    %eax,%edi
mov    %r15,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
add    $0x1,%r13
cmp    %r13,%r14
jne    1310 <print_pgm_image+0x150>
jmp    12d0 <print_pgm_image+0x110>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1060 <fputc@plt>
mov    %rbp,%rdi
call   1040 <fclose@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c63(%rip),%rax
movslq (%rax),%rbx
mov    0x2c51(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
lea    0xc73(%rip),%rsi
mov    %rbx,%rdi
mov    %r12d,%edx
mov    %rax,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    13d0 <print_pgm_image+0x210>
mov    0x2c32(%rip),%rax
movslq (%rax),%rbx
mov    0x2c20(%rip),%rax
mov    (%rax),%edi
call   10e0 <strerror@plt>
lea    0xc61(%rip),%rsi
lea    0x30(%rsp),%rdx
mov    %rbx,%rdi
mov    %rax,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x2c11(%rip),%rax
mov    (%rax),%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [19 x i8] c"read image %u: %s\0A\00"
@errno = global i32 0
@EX_IOERR = global i32 0
@.str.1 = [10 x i8] c"%s-%d.pgm\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [14 x i8] c"fopen(%s): %s\00"
@.str.4 = [4 x i8] c"P5\0A\00"
@.str.5 = [6 x i8] c"# %s\0A\00"
@.str.6 = [7 x i8] c"%u %u\0A\00"
@.str.7 = [5 x i8] c"255\0A\00"
@.str.8 = [2 x i8] c"\0A\00"
define void @print_pgm_image(i32 %0, i32 %1, i64* %2, i32 %3, i32 %4, i8* %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32*
%20 = alloca [72 x i8]
%21 = alloca i64
store i32 %0, i32* %8
store i32 %1, i32* %9
store i64* %2, i64** %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i8* %5, i8** %13
store i32 %6, i32* %14
%22 = load i32, i32* %11
%23 = load i32, i32* %12
%24 = mul nsw i32 %22, %23
store i32 %24, i32* %16
%25 = load i32, i32* %8
%26 = load i64*, i64** %10
%27 = load i32, i32* %16
%28 = call i32 @read(i32 %25, i64* %26, i32 %27)
store i32 %28, i32* %15
%29 = load i32, i32* %15
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %41
31: ; preds = %7
%32 = load i32, i32* @stderr
%33 = sext i32 %32 to i64
%34 = inttoptr i64 %33 to i32*
%35 = load i32, i32* %9
%36 = load i32, i32* @errno
%37 = call i8* @strerror(i32 %36)
%38 = call i32 (i32*, i8*, ...) @fprintf(i32* %34, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %35, i8* %37)
%39 = load i32, i32* @EX_IOERR
%40 = call i32 @exit(i32 %39)
unreachable
41: ; preds = %7
%42 = getelementptr inbounds [72 x i8], [72 x i8]* %20, i64 0, i64 0
%43 = load i8*, i8** %13
%44 = load i32, i32* %9
%45 = call i32 @snprintf(i8* %42, i32 72, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %43, i32 %44)
%46 = getelementptr inbounds [72 x i8], [72 x i8]* %20, i64 0, i64 0
%47 = call i32* @fopen(i8* %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %47, i32** %19
%48 = load i32*, i32** %19
%49 = icmp eq i32* %48, null
br i1 %49, label %50, label %60
50: ; preds = %41
%51 = load i32, i32* @stderr
%52 = sext i32 %51 to i64
%53 = inttoptr i64 %52 to i32*
%54 = getelementptr inbounds [72 x i8], [72 x i8]* %20, i64 0, i64 0
%55 = load i32, i32* @errno
%56 = call i8* @strerror(i32 %55)
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %54, i8* %56)
%58 = load i32, i32* @EX_IOERR
%59 = call i32 @exit(i32 %58)
unreachable
60: ; preds = %41
%61 = load i32*, i32** %19
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%63 = load i32*, i32** %19
%64 = getelementptr inbounds [72 x i8], [72 x i8]* %20, i64 0, i64 0
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* %64)
%66 = load i32*, i32** %19
%67 = load i32, i32* %11
%68 = load i32, i32* %12
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %67, i32 %68)
%70 = load i32*, i32** %19
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%72 = load i32*, i32** %19
%73 = call i32 @fflush(i32* %72)
store i32 0, i32* %17
br label %74
74: ; preds = %109, %60
%75 = load i32, i32* %17
%76 = load i32, i32* %11
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %112
78: ; preds = %74
store i32 0, i32* %18
br label %79
79: ; preds = %103, %78
%80 = load i32, i32* %18
%81 = load i32, i32* %12
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %106
83: ; preds = %79
%84 = load i64*, i64** %10
%85 = load i32, i32* %18
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i64, i64* %84, i64 %86
%88 = load i32, i32* %17
%89 = load i32, i32* %12
%90 = mul nsw i32 %88, %89
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i64, i64* %87, i64 %91
%93 = load i64, i64* %92
store i64 %93, i64* %21
%94 = load i32, i32* %14
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %83
%97 = load i64, i64* %21
%98 = sub nsw i64 255, %97
store i64 %98, i64* %21
br label %99
99: ; preds = %96, %83
%100 = load i32*, i32** %19
%101 = call i32 @fileno(i32* %100)
%102 = call i32 @write(i32 %101, i64* %21, i32 1)
br label %103
103: ; preds = %99
%104 = load i32, i32* %18
%105 = add nsw i32 %104, 1
store i32 %105, i32* %18
br label %79
106: ; preds = %79
%107 = load i32*, i32** %19
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %107, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %109
109: ; preds = %106
%110 = load i32, i32* %17
%111 = add nsw i32 %110, 1
store i32 %111, i32* %17
br label %74
112: ; preds = %74
%113 = load i32*, i32** %19
%114 = call i32 (i32*, i8*, ...) @fprintf(i32* %113, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%115 = load i32*, i32** %19
%116 = call i32 @fclose(i32* %115)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [19 x i8] c"read image %u: %s\0A\00"
@errno = global i32 0
@EX_IOERR = global i32 0
@.str.1 = [10 x i8] c"%s-%d.pgm\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [14 x i8] c"fopen(%s): %s\00"
@.str.4 = [4 x i8] c"P5\0A\00"
@.str.5 = [6 x i8] c"# %s\0A\00"
@.str.6 = [7 x i8] c"%u %u\0A\00"
@.str.7 = [5 x i8] c"255\0A\00"
define void @print_pgm_image(i32 %0, i32 %1, i64* nocapture %2, i32 %3, i32 %4, i8* %5, i32 %6) {
%8 = alloca [72 x i8]
%9 = alloca i64
%10 = getelementptr inbounds [72 x i8], [72 x i8]* %8, i64 0, i64 0
%11 = bitcast i64* %9 to i8*
%12 = mul nsw i32 %4, %3
%13 = tail call i32 @read(i32 %0, i64* %2, i32 %12)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %7
%16 = load i32, i32* @stderr
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i32*
%19 = load i32, i32* @errno
%20 = tail call i8* @strerror(i32 %19)
%21 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %1, i8* %20)
%22 = load i32, i32* @EX_IOERR
%23 = tail call i32 @exit(i32 %22)
unreachable
24: ; preds = %7
%25 = call i32 @snprintf(i8* %10, i32 72, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %5, i32 %1)
%26 = call i32* @fopen(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %37
28: ; preds = %24
%29 = load i32, i32* @stderr
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to i32*
%32 = load i32, i32* @errno
%33 = call i8* @strerror(i32 %32)
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* %10, i8* %33)
%35 = load i32, i32* @EX_IOERR
%36 = call i32 @exit(i32 %35)
unreachable
37: ; preds = %24
%38 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64 3, i64 1, i32* %26)
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* %10)
%40 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %3, i32 %4)
%41 = call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i64 4, i64 1, i32* %26)
%42 = call i32 @fflush(i32* %26)
%43 = icmp sgt i32 %3, 0
br i1 %43, label %44, label %69
44: ; preds = %37
%45 = icmp sgt i32 %4, 0
%46 = icmp eq i32 %6, 0
%47 = sext i32 %4 to i64
%48 = zext i32 %3 to i64
%49 = zext i32 %4 to i64
br label %50
50: ; preds = %44, %65
%51 = phi i64 [ 0, %44 ], [ %67, %65 ]
br i1 %45, label %52, label %65
52: ; preds = %50
%53 = mul nsw i64 %51, %47
%54 = getelementptr inbounds i64, i64* %2, i64 %53
br label %55
55: ; preds = %52, %55
%56 = phi i64 [ 0, %52 ], [ %63, %55 ]
%57 = getelementptr inbounds i64, i64* %54, i64 %56
%58 = load i64, i64* %57
%59 = sub nsw i64 255, %58
%60 = select i1 %46, i64 %58, i64 %59
store i64 %60, i64* %9
%61 = call i32 @fileno(i32* %26)
%62 = call i32 @write(i32 %61, i64* %9, i32 1)
%63 = add nuw nsw i64 %56, 1
%64 = icmp eq i64 %63, %49
br i1 %64, label %65, label %55
65: ; preds = %55, %50
%66 = call i32 @fputc(i32 10, i32* %26)
%67 = add nuw nsw i64 %51, 1
%68 = icmp eq i64 %67, %48
br i1 %68, label %69, label %50
69: ; preds = %65, %37
%70 = call i32 @fputc(i32 10, i32* %26)
%71 = call i32 @fclose(i32* %26)
ret void
}