#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*/ Tone1();
int /*<<< orphan*/ Tone2();
int /*<<< orphan*/ Tone3();
void Melody() {
  Tone1();
  Tone2();
  Tone3();
  Tone3();
  Tone1();
  Tone2();
  Tone3();
  Tone3();
  Tone1();
  Tone2();
  Tone3();
  Tone1();
  Tone2();
  Tone3();
  Tone3();
  Tone1();
  Tone2();
  Tone3();
  Tone3();
  Tone3();
  Tone2();
  Tone2();
  Tone1();
}


x86 assembly (clang, -O0):
<Melody>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <Tone1@plt>
mov    $0x0,%al
call   1030 <Tone2@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1040 <Tone1@plt>
mov    $0x0,%al
call   1030 <Tone2@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1040 <Tone1@plt>
mov    $0x0,%al
call   1030 <Tone2@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1040 <Tone1@plt>
mov    $0x0,%al
call   1030 <Tone2@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1040 <Tone1@plt>
mov    $0x0,%al
call   1030 <Tone2@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1050 <Tone3@plt>
mov    $0x0,%al
call   1030 <Tone2@plt>
mov    $0x0,%al
call   1030 <Tone2@plt>
mov    $0x0,%al
call   1040 <Tone1@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Melody>:
push   %rax
xor    %eax,%eax
call   1040 <Tone1@plt>
xor    %eax,%eax
call   1030 <Tone2@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1040 <Tone1@plt>
xor    %eax,%eax
call   1030 <Tone2@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1040 <Tone1@plt>
xor    %eax,%eax
call   1030 <Tone2@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1040 <Tone1@plt>
xor    %eax,%eax
call   1030 <Tone2@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1040 <Tone1@plt>
xor    %eax,%eax
call   1030 <Tone2@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1050 <Tone3@plt>
xor    %eax,%eax
call   1030 <Tone2@plt>
xor    %eax,%eax
call   1030 <Tone2@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <Tone1@plt>

LLVM IR (-O0):
define void @Melody() {
%1 = call i32 (...) @Tone1()
%2 = call i32 (...) @Tone2()
%3 = call i32 (...) @Tone3()
%4 = call i32 (...) @Tone3()
%5 = call i32 (...) @Tone1()
%6 = call i32 (...) @Tone2()
%7 = call i32 (...) @Tone3()
%8 = call i32 (...) @Tone3()
%9 = call i32 (...) @Tone1()
%10 = call i32 (...) @Tone2()
%11 = call i32 (...) @Tone3()
%12 = call i32 (...) @Tone1()
%13 = call i32 (...) @Tone2()
%14 = call i32 (...) @Tone3()
%15 = call i32 (...) @Tone3()
%16 = call i32 (...) @Tone1()
%17 = call i32 (...) @Tone2()
%18 = call i32 (...) @Tone3()
%19 = call i32 (...) @Tone3()
%20 = call i32 (...) @Tone3()
%21 = call i32 (...) @Tone2()
%22 = call i32 (...) @Tone2()
%23 = call i32 (...) @Tone1()
ret void
}

LLVM IR (-O2):
define void @Melody() {
%1 = tail call i32 (...) @Tone1()
%2 = tail call i32 (...) @Tone2()
%3 = tail call i32 (...) @Tone3()
%4 = tail call i32 (...) @Tone3()
%5 = tail call i32 (...) @Tone1()
%6 = tail call i32 (...) @Tone2()
%7 = tail call i32 (...) @Tone3()
%8 = tail call i32 (...) @Tone3()
%9 = tail call i32 (...) @Tone1()
%10 = tail call i32 (...) @Tone2()
%11 = tail call i32 (...) @Tone3()
%12 = tail call i32 (...) @Tone1()
%13 = tail call i32 (...) @Tone2()
%14 = tail call i32 (...) @Tone3()
%15 = tail call i32 (...) @Tone3()
%16 = tail call i32 (...) @Tone1()
%17 = tail call i32 (...) @Tone2()
%18 = tail call i32 (...) @Tone3()
%19 = tail call i32 (...) @Tone3()
%20 = tail call i32 (...) @Tone3()
%21 = tail call i32 (...) @Tone2()
%22 = tail call i32 (...) @Tone2()
%23 = tail call i32 (...) @Tone1()
ret void
}