#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*/ Delay_ms(int);
int /*<<< orphan*/ Sound_Play(int, int);
void main() {
  do {
    Sound_Play(1109, 300 / 2);
    Sound_Play(987, 300 / 2);
    Sound_Play(1109, 300 / 2);
    Sound_Play(740, 2 * 300);
    Sound_Play(1174, 300 / 2);
    Sound_Play(1109, 300 / 2);
    Sound_Play(1174, 300 / 2);
    Sound_Play(1109, 300 / 2);
    Sound_Play(987, 2 * 300);
    Sound_Play(1174, 300 / 2);
    Sound_Play(1109, 300 / 2);
    Sound_Play(1174, 300 / 2);
    Sound_Play(740, 2 * 300);
    Sound_Play(987, 300 / 2);
    Sound_Play(880, 300 / 2);
    Sound_Play(987, 300 / 2);
    Sound_Play(880, 300 / 2);
    Sound_Play(831, 300 / 2);
    Sound_Play(987, 300 / 2);
    Sound_Play(880, 2 * 300);
    Sound_Play(831, 300 / 2);
    Sound_Play(880, 300 / 2);
    Sound_Play(987, 2 * 300);
    Sound_Play(880, 300 / 2);
    Sound_Play(987, 300 / 2);
    Sound_Play(1109, 300 / 2);
    Sound_Play(987, 300 / 2);
    Sound_Play(880, 300 / 2);
    Sound_Play(831, 300 / 2);
    Sound_Play(740, 2 * 300);
    Sound_Play(1174, 2 * 300);
    Sound_Play(1109, 2 * 300);
    Sound_Play(1109, 300);
    Sound_Play(1109, 300);
    Sound_Play(1174, 300);
    Sound_Play(1109, 300 / 2);
    Sound_Play(987, 300 / 2);
    Sound_Play(1109, 2 * 300);
    Delay_ms(1000);
  } while (1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
jmp    1129 <main+0x9>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x2e4,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x2e4,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x33f,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x33f,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x33f,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x2e4,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x12c,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x12c,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x12c,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x3e8,%edi
call   1040 <Delay_ms@plt>
mov    $0x1,%al
test   $0x1,%al
jne    1129 <main+0x9>
jmp    137c <main+0x25c>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x2e4,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x2e4,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x33f,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x33f,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x370,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x33f,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x2e4,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x12c,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x12c,%esi
call   1030 <Sound_Play@plt>
mov    $0x496,%edi
mov    $0x12c,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x3db,%edi
mov    $0x96,%esi
call   1030 <Sound_Play@plt>
mov    $0x455,%edi
mov    $0x258,%esi
call   1030 <Sound_Play@plt>
mov    $0x3e8,%edi
call   1040 <Delay_ms@plt>
jmp    1130 <main+0x10>

LLVM IR (-O0):
define void @main() {
br label %1
1: ; preds = %41, %0
%2 = call i32 @Sound_Play(i32 1109, i32 150)
%3 = call i32 @Sound_Play(i32 987, i32 150)
%4 = call i32 @Sound_Play(i32 1109, i32 150)
%5 = call i32 @Sound_Play(i32 740, i32 600)
%6 = call i32 @Sound_Play(i32 1174, i32 150)
%7 = call i32 @Sound_Play(i32 1109, i32 150)
%8 = call i32 @Sound_Play(i32 1174, i32 150)
%9 = call i32 @Sound_Play(i32 1109, i32 150)
%10 = call i32 @Sound_Play(i32 987, i32 600)
%11 = call i32 @Sound_Play(i32 1174, i32 150)
%12 = call i32 @Sound_Play(i32 1109, i32 150)
%13 = call i32 @Sound_Play(i32 1174, i32 150)
%14 = call i32 @Sound_Play(i32 740, i32 600)
%15 = call i32 @Sound_Play(i32 987, i32 150)
%16 = call i32 @Sound_Play(i32 880, i32 150)
%17 = call i32 @Sound_Play(i32 987, i32 150)
%18 = call i32 @Sound_Play(i32 880, i32 150)
%19 = call i32 @Sound_Play(i32 831, i32 150)
%20 = call i32 @Sound_Play(i32 987, i32 150)
%21 = call i32 @Sound_Play(i32 880, i32 600)
%22 = call i32 @Sound_Play(i32 831, i32 150)
%23 = call i32 @Sound_Play(i32 880, i32 150)
%24 = call i32 @Sound_Play(i32 987, i32 600)
%25 = call i32 @Sound_Play(i32 880, i32 150)
%26 = call i32 @Sound_Play(i32 987, i32 150)
%27 = call i32 @Sound_Play(i32 1109, i32 150)
%28 = call i32 @Sound_Play(i32 987, i32 150)
%29 = call i32 @Sound_Play(i32 880, i32 150)
%30 = call i32 @Sound_Play(i32 831, i32 150)
%31 = call i32 @Sound_Play(i32 740, i32 600)
%32 = call i32 @Sound_Play(i32 1174, i32 600)
%33 = call i32 @Sound_Play(i32 1109, i32 600)
%34 = call i32 @Sound_Play(i32 1109, i32 300)
%35 = call i32 @Sound_Play(i32 1109, i32 300)
%36 = call i32 @Sound_Play(i32 1174, i32 300)
%37 = call i32 @Sound_Play(i32 1109, i32 150)
%38 = call i32 @Sound_Play(i32 987, i32 150)
%39 = call i32 @Sound_Play(i32 1109, i32 600)
%40 = call i32 @Delay_ms(i32 1000)
br label %41
41: ; preds = %1
br i1 true, label %1, label %42
42: ; preds = %41
ret void
}

LLVM IR (-O2):
define void @main() {
br label %1
1: ; preds = %1, %0
%2 = tail call i32 @Sound_Play(i32 1109, i32 150)
%3 = tail call i32 @Sound_Play(i32 987, i32 150)
%4 = tail call i32 @Sound_Play(i32 1109, i32 150)
%5 = tail call i32 @Sound_Play(i32 740, i32 600)
%6 = tail call i32 @Sound_Play(i32 1174, i32 150)
%7 = tail call i32 @Sound_Play(i32 1109, i32 150)
%8 = tail call i32 @Sound_Play(i32 1174, i32 150)
%9 = tail call i32 @Sound_Play(i32 1109, i32 150)
%10 = tail call i32 @Sound_Play(i32 987, i32 600)
%11 = tail call i32 @Sound_Play(i32 1174, i32 150)
%12 = tail call i32 @Sound_Play(i32 1109, i32 150)
%13 = tail call i32 @Sound_Play(i32 1174, i32 150)
%14 = tail call i32 @Sound_Play(i32 740, i32 600)
%15 = tail call i32 @Sound_Play(i32 987, i32 150)
%16 = tail call i32 @Sound_Play(i32 880, i32 150)
%17 = tail call i32 @Sound_Play(i32 987, i32 150)
%18 = tail call i32 @Sound_Play(i32 880, i32 150)
%19 = tail call i32 @Sound_Play(i32 831, i32 150)
%20 = tail call i32 @Sound_Play(i32 987, i32 150)
%21 = tail call i32 @Sound_Play(i32 880, i32 600)
%22 = tail call i32 @Sound_Play(i32 831, i32 150)
%23 = tail call i32 @Sound_Play(i32 880, i32 150)
%24 = tail call i32 @Sound_Play(i32 987, i32 600)
%25 = tail call i32 @Sound_Play(i32 880, i32 150)
%26 = tail call i32 @Sound_Play(i32 987, i32 150)
%27 = tail call i32 @Sound_Play(i32 1109, i32 150)
%28 = tail call i32 @Sound_Play(i32 987, i32 150)
%29 = tail call i32 @Sound_Play(i32 880, i32 150)
%30 = tail call i32 @Sound_Play(i32 831, i32 150)
%31 = tail call i32 @Sound_Play(i32 740, i32 600)
%32 = tail call i32 @Sound_Play(i32 1174, i32 600)
%33 = tail call i32 @Sound_Play(i32 1109, i32 600)
%34 = tail call i32 @Sound_Play(i32 1109, i32 300)
%35 = tail call i32 @Sound_Play(i32 1109, i32 300)
%36 = tail call i32 @Sound_Play(i32 1174, i32 300)
%37 = tail call i32 @Sound_Play(i32 1109, i32 150)
%38 = tail call i32 @Sound_Play(i32 987, i32 150)
%39 = tail call i32 @Sound_Play(i32 1109, i32 600)
%40 = tail call i32 @Delay_ms(i32 1000)
br label %1
}