#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 /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int strlen(char *);
void main() {
  FILE *fp;
  char szLine[50] = {0};
  char szName[] = "Adol";
  int health = 100, gold = 75;
  int length = 0;
  int i = 0;
  fp = fopen("Stats.txt", "w");
  if (fp == 0) {
    printf("ERROR: Could not create Stats.txt!\n");
    return;
  }
  sprintf(szLine, "Player: %s", szName);
  length = strlen(szLine);
  for (i = 0; i < length; i++) {
    fputc(szLine[i], fp);
  }
  fputc('\n', fp);
  sprintf(szLine, "Health: %d", health);
  length = strlen(szLine);
  for (i = 0; i < length; i++) {
    fputc(szLine[i], fp);
  }
  fputc('\n', fp);
  sprintf(szLine, "Gold: %d", gold);
  length = strlen(szLine);
  for (i = 0; i < length; i++) {
    fputc(szLine[i], fp);
  }
  fputc('\n', fp);
  fputc('\n', fp);
  sprintf(szLine, "Player: %s", szName);
  fputs(szLine, fp);
  fputc('\n', fp);
  sprintf(szLine, "Health: %d", health);
  fputs(szLine, fp);
  fputc('\n', fp);
  sprintf(szLine, "Gold: %d", gold);
  fputs(szLine, fp);
  fprintf(fp, "\n\n");
  fprintf(fp, "Player: %s\n", szName);
  fprintf(fp, "Health: %d\n", health);
  fprintf(fp, "Gold: %d\n", gold);
  fclose(fp);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1070 <memset@plt>
mov    0xe52(%rip),%eax
mov    %eax,-0x45(%rbp)
mov    0xe4d(%rip),%al
mov    %al,-0x41(%rbp)
movl   $0x64,-0x4c(%rbp)
movl   $0x4b,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
lea    0xe28(%rip),%rdi
lea    0xe2b(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1209 <main+0x79>
lea    0xe12(%rip),%rdi
call   1050 <printf@plt>
jmp    1422 <main+0x292>
lea    -0x40(%rbp),%rdi
lea    -0x45(%rbp),%rdx
lea    0xe1d(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    1260 <main+0xd0>
movslq -0x58(%rbp),%rax
mov    -0x40(%rbp,%rax,1),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1080 <fputc@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1232 <main+0xa2>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1080 <fputc@plt>
lea    -0x40(%rbp),%rdi
mov    -0x4c(%rbp),%edx
lea    0xdc4(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    12c4 <main+0x134>
movslq -0x58(%rbp),%rax
mov    -0x40(%rbp,%rax,1),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1080 <fputc@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1296 <main+0x106>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1080 <fputc@plt>
lea    -0x40(%rbp),%rdi
mov    -0x50(%rbp),%edx
lea    0xd6b(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    1328 <main+0x198>
movslq -0x58(%rbp),%rax
mov    -0x40(%rbp,%rax,1),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1080 <fputc@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    12fa <main+0x16a>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1080 <fputc@plt>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1080 <fputc@plt>
lea    -0x40(%rbp),%rdi
lea    -0x45(%rbp),%rdx
lea    0xce2(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x40(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1060 <fputs@plt>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1080 <fputc@plt>
lea    -0x40(%rbp),%rdi
mov    -0x4c(%rbp),%edx
lea    0xcbd(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x40(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1060 <fputs@plt>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1080 <fputc@plt>
lea    -0x40(%rbp),%rdi
mov    -0x50(%rbp),%edx
lea    0xc98(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x40(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1060 <fputs@plt>
mov    -0x8(%rbp),%rdi
lea    0xc82(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0x45(%rbp),%rdx
lea    0xc6f(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x4c(%rbp),%edx
lea    0xc66(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x50(%rbp),%edx
lea    0xc5d(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x48,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x0,0x40(%rsp)
movb   $0x0,0xc(%rsp)
movl   $0x6c6f6441,0x8(%rsp)
6c
lea    0xe3d(%rip),%rdi
lea    0xe40(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     13d2 <main+0x242>
mov    %rax,%r12
lea    0xe2a(%rip),%rsi
lea    0x10(%rsp),%r14
lea    0x8(%rsp),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %r14,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    1226 <main+0x96>
mov    %eax,%r14d
xor    %ebx,%ebx
nopl   0x0(%rax)
movsbl 0x10(%rsp,%rbx,1),%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1210 <main+0x80>
mov    $0xa,%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
lea    0xde2(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x64,%edx
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %r14,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    1276 <main+0xe6>
mov    %eax,%r14d
xor    %ebx,%ebx
nop
movsbl 0x10(%rsp,%rbx,1),%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1260 <main+0xd0>
mov    $0xa,%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
lea    0xd9d(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x4b,%edx
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %r14,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    12c6 <main+0x136>
mov    %eax,%r14d
xor    %ebx,%ebx
nop
movsbl 0x10(%rsp,%rbx,1),%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    12b0 <main+0x120>
mov    $0xa,%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
mov    $0xa,%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
lea    0xd2a(%rip),%rsi
lea    0x10(%rsp),%r15
lea    0x8(%rsp),%r14
mov    %r15,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <fputs@plt>
mov    $0xa,%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
lea    0xcff(%rip),%rsi
mov    %r15,%rdi
mov    $0x64,%edx
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <fputs@plt>
mov    $0xa,%edi
mov    %r12,%rsi
call   1070 <fputc@plt>
lea    0xcdc(%rip),%rsi
mov    %r15,%rdi
mov    $0x4b,%edx
xor    %eax,%eax
call   10a0 <sprintf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <fputs@plt>
lea    0xcc4(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   10b0 <fwrite@plt>
lea    0xcae(%rip),%rsi
mov    %r12,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xca6(%rip),%rsi
mov    %r12,%rdi
mov    $0x64,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xc9c(%rip),%rsi
mov    %r12,%rdi
mov    $0x4b,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %r12,%rdi
call   1040 <fclose@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
lea    0xc7c(%rip),%rdi
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <puts@plt>

LLVM IR (-O0):
@__const.main.szName = [5 x i8] c"Adol\00"
@.str = [10 x i8] c"Stats.txt\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [36 x i8] c"ERROR: Could not create Stats.txt!\0A\00"
@.str.3 = [11 x i8] c"Player: %s\00"
@.str.4 = [11 x i8] c"Health: %d\00"
@.str.5 = [9 x i8] c"Gold: %d\00"
@.str.6 = [3 x i8] c"\0A\0A\00"
@.str.7 = [12 x i8] c"Player: %s\0A\00"
@.str.8 = [12 x i8] c"Health: %d\0A\00"
@.str.9 = [10 x i8] c"Gold: %d\0A\00"
define void @main() {
%1 = alloca i32*
%2 = alloca [50 x i8]
%3 = alloca [5 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast [50 x i8]* %2 to i8*
%9 = bitcast [5 x i8]* %3 to i8*
store i32 100, i32* %4
store i32 75, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
%10 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 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** %1
%11 = load i32*, i32** %1
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
br label %119
15: ; preds = %0
%16 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%17 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%18 = call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %17)
%19 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%20 = call i32 @strlen(i8* %19)
store i32 %20, i32* %6
store i32 0, i32* %7
br label %21
21: ; preds = %32, %15
%22 = load i32, i32* %7
%23 = load i32, i32* %6
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %35
25: ; preds = %21
%26 = load i32, i32* %7
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 %27
%29 = load i8, i8* %28
%30 = load i32*, i32** %1
%31 = call i32 @fputc(i8 signext %29, i32* %30)
br label %32
32: ; preds = %25
%33 = load i32, i32* %7
%34 = add nsw i32 %33, 1
store i32 %34, i32* %7
br label %21
35: ; preds = %21
%36 = load i32*, i32** %1
%37 = call i32 @fputc(i8 signext 10, i32* %36)
%38 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%39 = load i32, i32* %4
%40 = call i32 (i8*, i8*, ...) @sprintf(i8* %38, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%42 = call i32 @strlen(i8* %41)
store i32 %42, i32* %6
store i32 0, i32* %7
br label %43
43: ; preds = %54, %35
%44 = load i32, i32* %7
%45 = load i32, i32* %6
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %57
47: ; preds = %43
%48 = load i32, i32* %7
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 %49
%51 = load i8, i8* %50
%52 = load i32*, i32** %1
%53 = call i32 @fputc(i8 signext %51, i32* %52)
br label %54
54: ; preds = %47
%55 = load i32, i32* %7
%56 = add nsw i32 %55, 1
store i32 %56, i32* %7
br label %43
57: ; preds = %43
%58 = load i32*, i32** %1
%59 = call i32 @fputc(i8 signext 10, i32* %58)
%60 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%61 = load i32, i32* %5
%62 = call i32 (i8*, i8*, ...) @sprintf(i8* %60, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %61)
%63 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%64 = call i32 @strlen(i8* %63)
store i32 %64, i32* %6
store i32 0, i32* %7
br label %65
65: ; preds = %76, %57
%66 = load i32, i32* %7
%67 = load i32, i32* %6
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %79
69: ; preds = %65
%70 = load i32, i32* %7
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 %71
%73 = load i8, i8* %72
%74 = load i32*, i32** %1
%75 = call i32 @fputc(i8 signext %73, i32* %74)
br label %76
76: ; preds = %69
%77 = load i32, i32* %7
%78 = add nsw i32 %77, 1
store i32 %78, i32* %7
br label %65
79: ; preds = %65
%80 = load i32*, i32** %1
%81 = call i32 @fputc(i8 signext 10, i32* %80)
%82 = load i32*, i32** %1
%83 = call i32 @fputc(i8 signext 10, i32* %82)
%84 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%85 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%86 = call i32 (i8*, i8*, ...) @sprintf(i8* %84, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %85)
%87 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%88 = load i32*, i32** %1
%89 = call i32 @fputs(i8* %87, i32* %88)
%90 = load i32*, i32** %1
%91 = call i32 @fputc(i8 signext 10, i32* %90)
%92 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%93 = load i32, i32* %4
%94 = call i32 (i8*, i8*, ...) @sprintf(i8* %92, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %93)
%95 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%96 = load i32*, i32** %1
%97 = call i32 @fputs(i8* %95, i32* %96)
%98 = load i32*, i32** %1
%99 = call i32 @fputc(i8 signext 10, i32* %98)
%100 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%101 = load i32, i32* %5
%102 = call i32 (i8*, i8*, ...) @sprintf(i8* %100, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %101)
%103 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%104 = load i32*, i32** %1
%105 = call i32 @fputs(i8* %103, i32* %104)
%106 = load i32*, i32** %1
%107 = call i32 (i32*, i8*, ...) @fprintf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%108 = load i32*, i32** %1
%109 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%110 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %109)
%111 = load i32*, i32** %1
%112 = load i32, i32* %4
%113 = call i32 (i32*, i8*, ...) @fprintf(i32* %111, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %112)
%114 = load i32*, i32** %1
%115 = load i32, i32* %5
%116 = call i32 (i32*, i8*, ...) @fprintf(i32* %114, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i32 %115)
%117 = load i32*, i32** %1
%118 = call i32 @fclose(i32* %117)
br label %119
119: ; preds = %79, %13
ret void
}

LLVM IR (-O2):
@__const.main.szName = [5 x i8] c"Adol\00"
@.str = [10 x i8] c"Stats.txt\00"
@.str.1 = [2 x i8] c"w\00"
@.str.3 = [11 x i8] c"Player: %s\00"
@.str.4 = [11 x i8] c"Health: %d\00"
@.str.5 = [9 x i8] c"Gold: %d\00"
@.str.6 = [3 x i8] c"\0A\0A\00"
@.str.7 = [12 x i8] c"Player: %s\0A\00"
@.str.8 = [12 x i8] c"Health: %d\0A\00"
@.str.9 = [10 x i8] c"Gold: %d\0A\00"
@str = [35 x i8] c"ERROR: Could not create Stats.txt!\00"
define void @main() {
%1 = alloca [50 x i8]
%2 = alloca [5 x i8]
%3 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
br label %66
9: ; preds = %0
%10 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%11 = call i32 @strlen(i8* %3)
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = zext i32 %11 to i64
br label %15
15: ; preds = %13, %15
%16 = phi i64 [ 0, %13 ], [ %20, %15 ]
%17 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 %16
%18 = load i8, i8* %17
%19 = call i32 @fputc(i8 signext %18, i32* %5)
%20 = add nuw nsw i64 %16, 1
%21 = icmp eq i64 %20, %14
br i1 %21, label %22, label %15
22: ; preds = %15, %9
%23 = call i32 @fputc(i8 signext 10, i32* %5)
%24 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 100)
%25 = call i32 @strlen(i8* %3)
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %36
27: ; preds = %22
%28 = zext i32 %25 to i64
br label %29
29: ; preds = %27, %29
%30 = phi i64 [ 0, %27 ], [ %34, %29 ]
%31 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = call i32 @fputc(i8 signext %32, i32* %5)
%34 = add nuw nsw i64 %30, 1
%35 = icmp eq i64 %34, %28
br i1 %35, label %36, label %29
36: ; preds = %29, %22
%37 = call i32 @fputc(i8 signext 10, i32* %5)
%38 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 75)
%39 = call i32 @strlen(i8* %3)
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %50
41: ; preds = %36
%42 = zext i32 %39 to i64
br label %43
43: ; preds = %41, %43
%44 = phi i64 [ 0, %41 ], [ %48, %43 ]
%45 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 %44
%46 = load i8, i8* %45
%47 = call i32 @fputc(i8 signext %46, i32* %5)
%48 = add nuw nsw i64 %44, 1
%49 = icmp eq i64 %48, %42
br i1 %49, label %50, label %43
50: ; preds = %43, %36
%51 = call i32 @fputc(i8 signext 10, i32* %5)
%52 = call i32 @fputc(i8 signext 10, i32* %5)
%53 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%54 = call i32 @fputs(i8* %3, i32* %5)
%55 = call i32 @fputc(i8 signext 10, i32* %5)
%56 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 100)
%57 = call i32 @fputs(i8* %3, i32* %5)
%58 = call i32 @fputc(i8 signext 10, i32* %5)
%59 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 75)
%60 = call i32 @fputs(i8* %3, i32* %5)
%61 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i64 2, i64 1, i32* %5)
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %4)
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 100)
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i32 75)
%65 = call i32 @fclose(i32* %5)
br label %66
66: ; preds = %50, %7
ret void
}