#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*/ ao();
int /*<<< orphan*/ mav(int, int);
int /*<<< orphan*/ msleep(int);
int /*<<< orphan*/ printf(char *);
int main() {
  printf("every budy dance now "
         "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
         "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
         "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
         "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
         "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
  mav(0, 500);
  mav(2, 1000);
  msleep(5000);
  ao();
  mav(2, 1000);
  mav(0, 1000);
  msleep(1000);
  ao();
  mav(2, -1000);
  mav(0, -1000);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
mov    $0x1f4,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x1388,%edi
call   1030 <msleep@plt>
mov    $0x0,%al
call   1060 <ao@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x3e8,%edi
call   1030 <msleep@plt>
mov    $0x0,%al
call   1060 <ao@plt>
mov    $0x2,%edi
mov    $0xfffffc18,%esi
call   1050 <mav@plt>
xor    %edi,%edi
mov    $0xfffffc18,%esi
call   1050 <mav@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
mov    $0x1f4,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x1388,%edi
call   1040 <msleep@plt>
xor    %eax,%eax
call   1060 <ao@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x3e8,%edi
call   1040 <msleep@plt>
xor    %eax,%eax
call   1060 <ao@plt>
mov    $0x2,%edi
mov    $0xfffffc18,%esi
call   1050 <mav@plt>
xor    %edi,%edi
mov    $0xfffffc18,%esi
call   1050 <mav@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [335 x i8] c"every budy dance now !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([335 x i8], [335 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @mav(i32 0, i32 500)
%4 = call i32 @mav(i32 2, i32 1000)
%5 = call i32 @msleep(i32 5000)
%6 = call i32 (...) @ao()
%7 = call i32 @mav(i32 2, i32 1000)
%8 = call i32 @mav(i32 0, i32 1000)
%9 = call i32 @msleep(i32 1000)
%10 = call i32 (...) @ao()
%11 = call i32 @mav(i32 2, i32 -1000)
%12 = call i32 @mav(i32 0, i32 -1000)
ret i32 0
}

LLVM IR (-O2):
@str = [334 x i8] c"every budy dance now !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([334 x i8], [334 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @mav(i32 0, i32 500)
%3 = tail call i32 @mav(i32 2, i32 1000)
%4 = tail call i32 @msleep(i32 5000)
%5 = tail call i32 (...) @ao()
%6 = tail call i32 @mav(i32 2, i32 1000)
%7 = tail call i32 @mav(i32 0, i32 1000)
%8 = tail call i32 @msleep(i32 1000)
%9 = tail call i32 (...) @ao()
%10 = tail call i32 @mav(i32 2, i32 -1000)
%11 = tail call i32 @mav(i32 0, i32 -1000)
ret i32 0
}