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

/* Variables and functions */
int /*<<< orphan*/ snprintf(char *, int, char *, unsigned int, unsigned int);
int /*<<< orphan*/ system(char *);
int main(int argc, char *argv[]) {
  for (register unsigned int cont = 1; cont < 5; cont++) {
    for (register unsigned int cont1 = 1; cont1 < 5; cont1++) {
      char type[1024];
      snprintf(type, 1024, "aplay -q ~/Projetos/MIDI/Software/Tones/%d%d.wav",
               cont, cont1);
      system(type);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jae    11a7 <main+0x87>
movl   $0x1,-0x18(%rbp)
cmpl   $0x5,-0x18(%rbp)
jae    1194 <main+0x74>
lea    -0x420(%rbp),%rdi
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    $0x400,%esi
lea    0xe8b(%rip),%rdx
call   1040 <snprintf@plt>
lea    -0x420(%rbp),%rdi
call   1030 <system@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1151 <main+0x31>
jmp    1199 <main+0x79>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1140 <main+0x20>
mov    -0x4(%rbp),%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x408,%rsp
lea    0xecf(%rip),%r14
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
mov    $0x1,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
mov    $0x2,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
mov    $0x3,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
mov    $0x4,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x2,%ecx
mov    $0x1,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x2,%ecx
mov    $0x2,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x2,%ecx
mov    $0x3,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x2,%ecx
mov    $0x4,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x3,%ecx
mov    $0x1,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x3,%ecx
mov    $0x2,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x3,%ecx
mov    $0x3,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x3,%ecx
mov    $0x4,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x4,%ecx
mov    $0x1,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x4,%ecx
mov    $0x2,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x4,%ecx
mov    $0x3,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x4,%ecx
mov    $0x4,%r8d
call   1040 <snprintf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x408,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [49 x i8] c"aplay -q ~/Projetos/MIDI/Software/Tones/%d%d.wav\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 [1024 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
br label %9
9: ; preds = %27, %2
%10 = load i32, i32* %6
%11 = icmp ult i32 %10, 5
br i1 %11, label %12, label %30
12: ; preds = %9
store i32 1, i32* %7
br label %13
13: ; preds = %23, %12
%14 = load i32, i32* %7
%15 = icmp ult i32 %14, 5
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%18 = load i32, i32* %6
%19 = load i32, i32* %7
%20 = call i32 @snprintf(i8* %17, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 %18, i32 %19)
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%22 = call i32 @system(i8* %21)
br label %23
23: ; preds = %16
%24 = load i32, i32* %7
%25 = add i32 %24, 1
store i32 %25, i32* %7
br label %13
26: ; preds = %13
br label %27
27: ; preds = %26
%28 = load i32, i32* %6
%29 = add i32 %28, 1
store i32 %29, i32* %6
br label %9
30: ; preds = %9
%31 = load i32, i32* %3
ret i32 %31
}

LLVM IR (-O2):
@.str = [49 x i8] c"aplay -q ~/Projetos/MIDI/Software/Tones/%d%d.wav\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1024 x i8]
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%5 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 1, i32 1)
%6 = call i32 @system(i8* %4)
%7 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 1, i32 2)
%8 = call i32 @system(i8* %4)
%9 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 1, i32 3)
%10 = call i32 @system(i8* %4)
%11 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 1, i32 4)
%12 = call i32 @system(i8* %4)
%13 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 2, i32 1)
%14 = call i32 @system(i8* %4)
%15 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 2, i32 2)
%16 = call i32 @system(i8* %4)
%17 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 2, i32 3)
%18 = call i32 @system(i8* %4)
%19 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 2, i32 4)
%20 = call i32 @system(i8* %4)
%21 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 3, i32 1)
%22 = call i32 @system(i8* %4)
%23 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 3, i32 2)
%24 = call i32 @system(i8* %4)
%25 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 3, i32 3)
%26 = call i32 @system(i8* %4)
%27 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 3, i32 4)
%28 = call i32 @system(i8* %4)
%29 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 4, i32 1)
%30 = call i32 @system(i8* %4)
%31 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 4, i32 2)
%32 = call i32 @system(i8* %4)
%33 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 4, i32 3)
%34 = call i32 @system(i8* %4)
%35 = call i32 @snprintf(i8* %4, i32 1024, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i32 4, i32 4)
%36 = call i32 @system(i8* %4)
ret i32 0
}