#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*/ printf(char *);
scalar_t__ strcmp(char const *, char *);
int main(void) {
  FILE *f = fopen("file.txt", "w");
  int i, j, k;
  int number;
  if (f == NULL) {
    printf("Error opening file!\n");
  }
  const char *mel[8] = {"do", "re", "mi", "fa", "so", "la", "si", "doh"};
  const char *aiueo[5] = {"A", "I", "U", "E", "O"};
  char *conso[10] = {"", "K", "S", "T", "N", "H", "M", "Y", "R", "W"};
  for (k = 0; k < 8; k++) {
    for (i = 0; i < 10; i++) {
      for (j = 0; j < 5; j++) {
        number = (k + 1) * 100 + i * 5 + j;
        fprintf(f, "%d : '%s%s%s', ", number, conso[i], aiueo[j], mel[k]);
      }
    }
    fprintf(f, "\n");
  }
  for (k = 0; k < 8; k++) {
    for (i = 0; i < 10; i++) {
      for (j = 0; j < 5; j++) {
        if ((strcmp(aiueo[j], "I") == 0) && (strcmp(conso[i], "Y") == 0)) {
          printf("YI!");
        } else if ((strcmp(aiueo[j], "E") == 0) &&
                   (strcmp(conso[i], "Y") == 0)) {
          printf("YE!");
        } else if ((strcmp(aiueo[j], "U") == 0) &&
                   (strcmp(conso[i], "W") == 0)) {
          printf("WU!");
        } else {
          fprintf(f, "<audio id=%s%s%s> <source src=vocal/%s%s%s.wav></audio> ",
                  conso[i], aiueo[j], mel[k], conso[i], aiueo[j], mel[k]);
        }
      }
      fprintf(f, "\n");
    }
  }
  fclose(f);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe77(%rip),%rdi
lea    0xe79(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11b0 <main+0x40>
lea    0xe60(%rip),%rdi
call   1040 <printf@plt>
lea    -0x60(%rbp),%rdi
lea    0x2bd5(%rip),%rsi
mov    $0x40,%edx
call   1080 <memcpy@plt>
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1050 <memset@plt>
lea    0xe5a(%rip),%rax
mov    %rax,-0x90(%rbp)
lea    0xe4e(%rip),%rax
mov    %rax,-0x88(%rbp)
lea    0xe42(%rip),%rax
mov    %rax,-0x80(%rbp)
lea    0xe39(%rip),%rax
mov    %rax,-0x78(%rbp)
lea    0xe30(%rip),%rax
mov    %rax,-0x70(%rbp)
lea    -0xe0(%rbp),%rdi
lea    0x2bad(%rip),%rsi
mov    $0x50,%edx
call   1080 <memcpy@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x8,-0x1c(%rbp)
jge    12ec <main+0x17c>
movl   $0x0,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    12cc <main+0x15c>
movl   $0x0,-0x18(%rbp)
cmpl   $0x5,-0x18(%rbp)
jge    12b9 <main+0x149>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
imul   $0x64,%eax,%eax
imul   $0x5,-0x14(%rbp),%ecx
add    %ecx,%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%edx
movslq -0x14(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%rcx
ff
movslq -0x18(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%r8
ff
movslq -0x1c(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%r9
lea    0xdb1(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1256 <main+0xe6>
jmp    12be <main+0x14e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1245 <main+0xd5>
mov    -0x10(%rbp),%rdi
lea    0xd47(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1234 <main+0xc4>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x8,-0x1c(%rbp)
jge    14cb <main+0x35b>
movl   $0x0,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    14b8 <main+0x348>
movl   $0x0,-0x18(%rbp)
cmpl   $0x5,-0x18(%rbp)
jge    1498 <main+0x328>
movslq -0x18(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%rdi
ff
lea    0xd09(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1374 <main+0x204>
movslq -0x14(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%rdi
ff
lea    0xcfb(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1374 <main+0x204>
lea    0xcfb(%rip),%rdi
call   1040 <printf@plt>
jmp    1485 <main+0x315>
movslq -0x18(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%rdi
ff
lea    0xcb8(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13c9 <main+0x259>
movslq -0x14(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%rdi
ff
lea    0xca6(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13c9 <main+0x259>
lea    0xcaa(%rip),%rdi
call   1040 <printf@plt>
jmp    1480 <main+0x310>
movslq -0x18(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%rdi
ff
lea    0xc61(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    141e <main+0x2ae>
movslq -0x14(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%rdi
ff
lea    0xc55(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    141e <main+0x2ae>
lea    0xc59(%rip),%rdi
call   1040 <printf@plt>
jmp    147b <main+0x30b>
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%rdx
ff
movslq -0x18(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%rcx
ff
movslq -0x1c(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%r8
movslq -0x14(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%r9
ff
movslq -0x18(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%r10
ff
movslq -0x1c(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rax
lea    0xc06(%rip),%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    1480 <main+0x310>
jmp    1485 <main+0x315>
jmp    148a <main+0x31a>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1315 <main+0x1a5>
mov    -0x10(%rbp),%rdi
lea    0xb7b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1304 <main+0x194>
jmp    14bd <main+0x34d>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12f3 <main+0x183>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xe7b(%rip),%rdi
lea    0xe7d(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r13
test   %rax,%rax
jne    11a5 <main+0x35>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
lea    0xe78(%rip),%rax
mov    %rax,0x20(%rsp)
lea    0xe6e(%rip),%rax
mov    %rax,0x28(%rsp)
lea    0xe64(%rip),%rax
mov    %rax,0x30(%rsp)
lea    0xe5a(%rip),%rax
mov    %rax,0x38(%rsp)
lea    0xe50(%rip),%rax
mov    %rax,0x40(%rsp)
xor    %eax,%eax
xor    %ecx,%ecx
mov    %r13,0x8(%rsp)
mov    0x8(%rsp),%r12
nop
mov    %rax,(%rsp)
lea    0x2b95(%rip),%rax
mov    %rcx,0x10(%rsp)
mov    (%rax,%rcx,8),%rax
mov    %rax,0x18(%rsp)
mov    $0xffffffffffffffce,%rbp
lea    0x2bb9(%rip),%rbx
nopw   0x0(%rax,%rax,1)
mov    (%rbx),%r13
mov    (%rsp),%r15
lea    (%r15,%rbp,1),%edx
add    $0x96,%edx
mov    %r12,%rdi
lea    0xe05(%rip),%rsi
mov    %r13,%rcx
lea    0xddf(%rip),%r8
mov    0x18(%rsp),%r14
mov    %r14,%r9
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    (%r15,%rbp,1),%edx
add    $0x97,%edx
mov    %r12,%rdi
lea    0xdd8(%rip),%rsi
mov    %r13,%rcx
lea    0xdb4(%rip),%r8
mov    %r14,%r9
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    (%r15,%rbp,1),%edx
add    $0x98,%edx
mov    %r12,%rdi
lea    0xdb0(%rip),%rsi
mov    %r13,%rcx
lea    0xd8e(%rip),%r8
mov    %r14,%r9
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    (%r15,%rbp,1),%edx
add    $0x99,%edx
mov    %r12,%rdi
lea    0xd88(%rip),%rsi
mov    %r13,%rcx
lea    0xd68(%rip),%r8
mov    %r14,%r9
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    (%r15,%rbp,1),%edx
add    $0x9a,%edx
mov    %r12,%rdi
lea    0xd60(%rip),%rsi
mov    %r13,%rcx
lea    0xd42(%rip),%r8
mov    %r14,%r9
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x8,%rbx
add    $0x5,%rbp
jne    1220 <main+0xb0>
mov    $0xa,%edi
mov    0x8(%rsp),%r13
mov    %r13,%rsi
call   1060 <fputc@plt>
mov    0x10(%rsp),%rcx
add    $0x1,%rcx
mov    (%rsp),%rdx
add    $0x64,%rdx
cmp    $0x8,%rcx
mov    %rdx,%rax
jne    11f0 <main+0x80>
lea    0x2a97(%rip),%rbp
xor    %eax,%eax
mov    %rax,(%rsp)
jmp    1369 <main+0x1f9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rsp),%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,(%rsp)
cmp    $0x8,%rcx
je     148c <main+0x31c>
xor    %r14d,%r14d
jmp    1387 <main+0x217>
xchg   %ax,%ax
mov    $0xa,%edi
mov    %r13,%rsi
call   1060 <fputc@plt>
add    $0x1,%r14
cmp    $0xa,%r14
je     1350 <main+0x1e0>
xor    %ebx,%ebx
jmp    13cb <main+0x25b>
nopl   0x0(%rax,%rax,1)
lea    0x29f9(%rip),%rax
mov    (%rsp),%rcx
mov    (%rax,%rcx,8),%r8
mov    %r13,%rdi
lea    0xcb3(%rip),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %r15,%r9
xor    %eax,%eax
push   %r8
push   %r12
call   1080 <fprintf@plt>
add    $0x10,%rsp
add    $0x1,%rbx
cmp    $0x5,%rbx
je     1370 <main+0x200>
mov    0x20(%rsp,%rbx,8),%r12
mov    %r12,%rdi
lea    0xc4c(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    13fa <main+0x28a>
mov    0x0(%rbp,%r14,8),%rdi
lea    0xc4a(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     146a <main+0x2fa>
mov    %r12,%rdi
lea    0xc26(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1424 <main+0x2b4>
mov    0x0(%rbp,%r14,8),%rdi
lea    0xc20(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147b <main+0x30b>
mov    %r12,%rdi
lea    0xbfa(%rip),%rsi
call   1070 <strcmp@plt>
mov    0x0(%rbp,%r14,8),%r15
test   %rax,%rax
jne    1390 <main+0x220>
mov    %r15,%rdi
lea    0xbf3(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1390 <main+0x220>
lea    0xbf8(%rip),%rdi
call   1050 <printf@plt>
jmp    13c1 <main+0x251>
lea    0xbdf(%rip),%rdi
call   1050 <printf@plt>
jmp    13c1 <main+0x251>
lea    0xbd2(%rip),%rdi
call   1050 <printf@plt>
jmp    13c1 <main+0x251>
mov    %r13,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"file.txt\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [21 x i8] c"Error opening file!\0A\00"
@.str.3 = [3 x i8] c"do\00"
@.str.4 = [3 x i8] c"re\00"
@.str.5 = [3 x i8] c"mi\00"
@.str.6 = [3 x i8] c"fa\00"
@.str.7 = [3 x i8] c"so\00"
@.str.8 = [3 x i8] c"la\00"
@.str.9 = [3 x i8] c"si\00"
@.str.10 = [4 x i8] c"doh\00"
@__const.main.mel = [8 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0)]
@.str.11 = [2 x i8] c"A\00"
@.str.12 = [2 x i8] c"I\00"
@.str.13 = [2 x i8] c"U\00"
@.str.14 = [2 x i8] c"E\00"
@.str.15 = [2 x i8] c"O\00"
@.str.16 = [1 x i8] zeroinitializer
@.str.17 = [2 x i8] c"K\00"
@.str.18 = [2 x i8] c"S\00"
@.str.19 = [2 x i8] c"T\00"
@.str.20 = [2 x i8] c"N\00"
@.str.21 = [2 x i8] c"H\00"
@.str.22 = [2 x i8] c"M\00"
@.str.23 = [2 x i8] c"Y\00"
@.str.24 = [2 x i8] c"R\00"
@.str.25 = [2 x i8] c"W\00"
@__const.main.conso = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i32 0, i32 0)]
@.str.26 = [16 x i8] c"%d : '%s%s%s', \00"
@.str.27 = [2 x i8] c"\0A\00"
@.str.28 = [4 x i8] c"YI!\00"
@.str.29 = [4 x i8] c"YE!\00"
@.str.30 = [4 x i8] c"WU!\00"
@.str.31 = [57 x i8] c"<audio id=%s%s%s> <source src=vocal/%s%s%s.wav></audio> \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [8 x i8*]
%8 = alloca [5 x i8*]
%9 = alloca [10 x i8*]
store i32 0, i32* %1
%10 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 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 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %13, %0
%16 = bitcast [8 x i8*]* %7 to i8*
%17 = bitcast [5 x i8*]* %8 to i8*
%18 = bitcast i8* %17 to [5 x i8*]*
%19 = getelementptr inbounds [5 x i8*], [5 x i8*]* %18, i32 0, i32 0
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i32 0, i32 0), i8** %19
%20 = getelementptr inbounds [5 x i8*], [5 x i8*]* %18, i32 0, i32 1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8** %20
%21 = getelementptr inbounds [5 x i8*], [5 x i8*]* %18, i32 0, i32 2
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i32 0, i32 0), i8** %21
%22 = getelementptr inbounds [5 x i8*], [5 x i8*]* %18, i32 0, i32 3
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0), i8** %22
%23 = getelementptr inbounds [5 x i8*], [5 x i8*]* %18, i32 0, i32 4
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8** %23
%24 = bitcast [10 x i8*]* %9 to i8*
store i32 0, i32* %5
br label %25
25: ; preds = %70, %15
%26 = load i32, i32* %5
%27 = icmp slt i32 %26, 8
br i1 %27, label %28, label %73
28: ; preds = %25
store i32 0, i32* %3
br label %29
29: ; preds = %64, %28
%30 = load i32, i32* %3
%31 = icmp slt i32 %30, 10
br i1 %31, label %32, label %67
32: ; preds = %29
store i32 0, i32* %4
br label %33
33: ; preds = %60, %32
%34 = load i32, i32* %4
%35 = icmp slt i32 %34, 5
br i1 %35, label %36, label %63
36: ; preds = %33
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
%39 = mul nsw i32 %38, 100
%40 = load i32, i32* %3
%41 = mul nsw i32 %40, 5
%42 = add nsw i32 %39, %41
%43 = load i32, i32* %4
%44 = add nsw i32 %42, %43
store i32 %44, i32* %6
%45 = load i32*, i32** %2
%46 = load i32, i32* %6
%47 = load i32, i32* %3
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 %48
%50 = load i8*, i8** %49
%51 = load i32, i32* %4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [5 x i8*], [5 x i8*]* %8, i64 0, i64 %52
%54 = load i8*, i8** %53
%55 = load i32, i32* %5
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [8 x i8*], [8 x i8*]* %7, i64 0, i64 %56
%58 = load i8*, i8** %57
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i32 %46, i8* %50, i8* %54, i8* %58)
br label %60
60: ; preds = %36
%61 = load i32, i32* %4
%62 = add nsw i32 %61, 1
store i32 %62, i32* %4
br label %33
63: ; preds = %33
br label %64
64: ; preds = %63
%65 = load i32, i32* %3
%66 = add nsw i32 %65, 1
store i32 %66, i32* %3
br label %29
67: ; preds = %29
%68 = load i32*, i32** %2
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0))
br label %70
70: ; preds = %67
%71 = load i32, i32* %5
%72 = add nsw i32 %71, 1
store i32 %72, i32* %5
br label %25
73: ; preds = %25
store i32 0, i32* %5
br label %74
74: ; preds = %173, %73
%75 = load i32, i32* %5
%76 = icmp slt i32 %75, 8
br i1 %76, label %77, label %176
77: ; preds = %74
store i32 0, i32* %3
br label %78
78: ; preds = %169, %77
%79 = load i32, i32* %3
%80 = icmp slt i32 %79, 10
br i1 %80, label %81, label %172
81: ; preds = %78
store i32 0, i32* %4
br label %82
82: ; preds = %163, %81
%83 = load i32, i32* %4
%84 = icmp slt i32 %83, 5
br i1 %84, label %85, label %166
85: ; preds = %82
%86 = load i32, i32* %4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [5 x i8*], [5 x i8*]* %8, i64 0, i64 %87
%89 = load i8*, i8** %88
%90 = call i64 @strcmp(i8* %89, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %101
92: ; preds = %85
%93 = load i32, i32* %3
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 %94
%96 = load i8*, i8** %95
%97 = call i64 @strcmp(i8* %96, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %92
%100 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
br label %162
101: ; preds = %92, %85
%102 = load i32, i32* %4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [5 x i8*], [5 x i8*]* %8, i64 0, i64 %103
%105 = load i8*, i8** %104
%106 = call i64 @strcmp(i8* %105, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %117
108: ; preds = %101
%109 = load i32, i32* %3
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 %110
%112 = load i8*, i8** %111
%113 = call i64 @strcmp(i8* %112, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%114 = icmp eq i64 %113, 0
br i1 %114, label %115, label %117
115: ; preds = %108
%116 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %161
117: ; preds = %108, %101
%118 = load i32, i32* %4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [5 x i8*], [5 x i8*]* %8, i64 0, i64 %119
%121 = load i8*, i8** %120
%122 = call i64 @strcmp(i8* %121, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %133
124: ; preds = %117
%125 = load i32, i32* %3
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 %126
%128 = load i8*, i8** %127
%129 = call i64 @strcmp(i8* %128, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %131, label %133
131: ; preds = %124
%132 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
br label %160
133: ; preds = %124, %117
%134 = load i32*, i32** %2
%135 = load i32, i32* %3
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 %136
%138 = load i8*, i8** %137
%139 = load i32, i32* %4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [5 x i8*], [5 x i8*]* %8, i64 0, i64 %140
%142 = load i8*, i8** %141
%143 = load i32, i32* %5
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [8 x i8*], [8 x i8*]* %7, i64 0, i64 %144
%146 = load i8*, i8** %145
%147 = load i32, i32* %3
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 %148
%150 = load i8*, i8** %149
%151 = load i32, i32* %4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [5 x i8*], [5 x i8*]* %8, i64 0, i64 %152
%154 = load i8*, i8** %153
%155 = load i32, i32* %5
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [8 x i8*], [8 x i8*]* %7, i64 0, i64 %156
%158 = load i8*, i8** %157
%159 = call i32 (i32*, i8*, ...) @fprintf(i32* %134, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.31, i64 0, i64 0), i8* %138, i8* %142, i8* %146, i8* %150, i8* %154, i8* %158)
br label %160
160: ; preds = %133, %131
br label %161
161: ; preds = %160, %115
br label %162
162: ; preds = %161, %99
br label %163
163: ; preds = %162
%164 = load i32, i32* %4
%165 = add nsw i32 %164, 1
store i32 %165, i32* %4
br label %82
166: ; preds = %82
%167 = load i32*, i32** %2
%168 = call i32 (i32*, i8*, ...) @fprintf(i32* %167, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0))
br label %169
169: ; preds = %166
%170 = load i32, i32* %3
%171 = add nsw i32 %170, 1
store i32 %171, i32* %3
br label %78
172: ; preds = %78
br label %173
173: ; preds = %172
%174 = load i32, i32* %5
%175 = add nsw i32 %174, 1
store i32 %175, i32* %5
br label %74
176: ; preds = %74
%177 = load i32*, i32** %2
%178 = call i32 @fclose(i32* %177)
%179 = load i32, i32* %1
ret i32 %179
}

LLVM IR (-O2):
@.str = [9 x i8] c"file.txt\00"
@.str.1 = [2 x i8] c"w\00"
@.str.3 = [3 x i8] c"do\00"
@.str.4 = [3 x i8] c"re\00"
@.str.5 = [3 x i8] c"mi\00"
@.str.6 = [3 x i8] c"fa\00"
@.str.7 = [3 x i8] c"so\00"
@.str.8 = [3 x i8] c"la\00"
@.str.9 = [3 x i8] c"si\00"
@.str.10 = [4 x i8] c"doh\00"
@__const.main.mel = [8 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0)]
@.str.11 = [2 x i8] c"A\00"
@.str.12 = [2 x i8] c"I\00"
@.str.13 = [2 x i8] c"U\00"
@.str.14 = [2 x i8] c"E\00"
@.str.15 = [2 x i8] c"O\00"
@.str.16 = [1 x i8] zeroinitializer
@.str.17 = [2 x i8] c"K\00"
@.str.18 = [2 x i8] c"S\00"
@.str.19 = [2 x i8] c"T\00"
@.str.20 = [2 x i8] c"N\00"
@.str.21 = [2 x i8] c"H\00"
@.str.22 = [2 x i8] c"M\00"
@.str.23 = [2 x i8] c"Y\00"
@.str.24 = [2 x i8] c"R\00"
@.str.25 = [2 x i8] c"W\00"
@__const.main.conso = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i32 0, i32 0)]
@.str.26 = [16 x i8] c"%d : '%s%s%s', \00"
@.str.28 = [4 x i8] c"YI!\00"
@.str.29 = [4 x i8] c"YE!\00"
@.str.30 = [4 x i8] c"WU!\00"
@.str.31 = [57 x i8] c"<audio id=%s%s%s> <source src=vocal/%s%s%s.wav></audio> \00"
@str = [20 x i8] c"Error opening file!\00"
define i32 @main() {
%1 = alloca [5 x i8*]
%2 = tail call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
%7 = bitcast [5 x i8*]* %1 to i8*
%8 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 0
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 2
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 3
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 4
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8** %12
br label %13
13: ; preds = %6, %41
%14 = phi i64 [ 0, %6 ], [ %43, %41 ]
%15 = mul nuw nsw i64 %14, 100
%16 = add nuw nsw i64 %15, 100
%17 = getelementptr inbounds [8 x i8*], [8 x i8*]* @__const.main.mel, i64 0, i64 %14
%18 = load i8*, i8** %17
br label %19
19: ; preds = %13, %19
%20 = phi i64 [ 0, %13 ], [ %39, %19 ]
%21 = mul nuw nsw i64 %20, 5
%22 = add nuw nsw i64 %16, %21
%23 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.conso, i64 0, i64 %20
%24 = load i8*, i8** %23
%25 = trunc i64 %22 to i32
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i32 %25, i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* %18)
%27 = trunc i64 %22 to i32
%28 = add i32 %27, 1
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i32 %28, i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0), i8* %18)
%30 = trunc i64 %22 to i32
%31 = add i32 %30, 2
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i32 %31, i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* %18)
%33 = trunc i64 %22 to i32
%34 = add i32 %33, 3
%35 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i32 %34, i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0), i8* %18)
%36 = trunc i64 %22 to i32
%37 = add i32 %36, 4
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i32 %37, i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* %18)
%39 = add nuw nsw i64 %20, 1
%40 = icmp eq i64 %39, 10
br i1 %40, label %41, label %19
41: ; preds = %19
%42 = tail call i32 @fputc(i32 10, i32* %2)
%43 = add nuw nsw i64 %14, 1
%44 = icmp eq i64 %43, 8
br i1 %44, label %45, label %13
45: ; preds = %41, %91
%46 = phi i64 [ %92, %91 ], [ 0, %41 ]
%47 = getelementptr inbounds [8 x i8*], [8 x i8*]* @__const.main.mel, i64 0, i64 %46
br label %48
48: ; preds = %45, %87
%49 = phi i64 [ 0, %45 ], [ %89, %87 ]
%50 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.conso, i64 0, i64 %49
br label %51
51: ; preds = %48, %84
%52 = phi i64 [ 0, %48 ], [ %85, %84 ]
%53 = getelementptr inbounds [5 x i8*], [5 x i8*]* %1, i64 0, i64 %52
%54 = load i8*, i8** %53
%55 = tail call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %63
57: ; preds = %51
%58 = load i8*, i8** %50
%59 = tail call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
br label %84
63: ; preds = %57, %51
%64 = tail call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %72
66: ; preds = %63
%67 = load i8*, i8** %50
%68 = tail call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i64 0, i64 0))
br label %84
72: ; preds = %66, %63
%73 = tail call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
%75 = load i8*, i8** %50
br i1 %74, label %76, label %81
76: ; preds = %72
%77 = tail call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
br label %84
81: ; preds = %72, %76
%82 = load i8*, i8** %47
%83 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.31, i64 0, i64 0), i8* %75, i8* %54, i8* %82, i8* %75, i8* %54, i8* %82)
br label %84
84: ; preds = %61, %79, %81, %70
%85 = add nuw nsw i64 %52, 1
%86 = icmp eq i64 %85, 5
br i1 %86, label %87, label %51
87: ; preds = %84
%88 = tail call i32 @fputc(i32 10, i32* %2)
%89 = add nuw nsw i64 %49, 1
%90 = icmp eq i64 %89, 10
br i1 %90, label %91, label %48
91: ; preds = %87
%92 = add nuw nsw i64 %46, 1
%93 = icmp eq i64 %92, 8
br i1 %93, label %94, label %45
94: ; preds = %91
%95 = tail call i32 @fclose(i32* %2)
ret i32 0
}