#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("Let's slalom!\n");
  mav(0, 1000);
  mav(2, 980);
  msleep(1400);
  mav(0, 1000);
  mav(2, 490);
  msleep(2650);
  mav(0, 1000);
  mav(2, 980);
  msleep(750);
  mav(0, 000);
  mav(2, 1000);
  msleep(1750);
  mav(0, 600);
  mav(2, 1000);
  msleep(2850);
  mav(0, 1000);
  mav(2, 500);
  msleep(7750);
  mav(0, 1000);
  mav(2, 980);
  msleep(7000);
  ao();
  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    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3d4,%esi
call   1050 <mav@plt>
mov    $0x578,%edi
call   1030 <msleep@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x1ea,%esi
call   1050 <mav@plt>
mov    $0xa5a,%edi
call   1030 <msleep@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3d4,%esi
call   1050 <mav@plt>
mov    $0x2ee,%edi
call   1030 <msleep@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x6d6,%edi
call   1030 <msleep@plt>
xor    %edi,%edi
mov    $0x258,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0xb22,%edi
call   1030 <msleep@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x1f4,%esi
call   1050 <mav@plt>
mov    $0x1e46,%edi
call   1030 <msleep@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3d4,%esi
call   1050 <mav@plt>
mov    $0x1b58,%edi
call   1030 <msleep@plt>
mov    $0x0,%al
call   1060 <ao@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    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3d4,%esi
call   1050 <mav@plt>
mov    $0x578,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x1ea,%esi
call   1050 <mav@plt>
mov    $0xa5a,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3d4,%esi
call   1050 <mav@plt>
mov    $0x2ee,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x6d6,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x258,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0xb22,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x1f4,%esi
call   1050 <mav@plt>
mov    $0x1e46,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x3e8,%esi
call   1050 <mav@plt>
mov    $0x2,%edi
mov    $0x3d4,%esi
call   1050 <mav@plt>
mov    $0x1b58,%edi
call   1040 <msleep@plt>
xor    %eax,%eax
call   1060 <ao@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Let's slalom!\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @mav(i32 0, i32 1000)
%4 = call i32 @mav(i32 2, i32 980)
%5 = call i32 @msleep(i32 1400)
%6 = call i32 @mav(i32 0, i32 1000)
%7 = call i32 @mav(i32 2, i32 490)
%8 = call i32 @msleep(i32 2650)
%9 = call i32 @mav(i32 0, i32 1000)
%10 = call i32 @mav(i32 2, i32 980)
%11 = call i32 @msleep(i32 750)
%12 = call i32 @mav(i32 0, i32 0)
%13 = call i32 @mav(i32 2, i32 1000)
%14 = call i32 @msleep(i32 1750)
%15 = call i32 @mav(i32 0, i32 600)
%16 = call i32 @mav(i32 2, i32 1000)
%17 = call i32 @msleep(i32 2850)
%18 = call i32 @mav(i32 0, i32 1000)
%19 = call i32 @mav(i32 2, i32 500)
%20 = call i32 @msleep(i32 7750)
%21 = call i32 @mav(i32 0, i32 1000)
%22 = call i32 @mav(i32 2, i32 980)
%23 = call i32 @msleep(i32 7000)
%24 = call i32 (...) @ao()
ret i32 0
}

LLVM IR (-O2):
@str = [14 x i8] c"Let's slalom!\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @mav(i32 0, i32 1000)
%3 = tail call i32 @mav(i32 2, i32 980)
%4 = tail call i32 @msleep(i32 1400)
%5 = tail call i32 @mav(i32 0, i32 1000)
%6 = tail call i32 @mav(i32 2, i32 490)
%7 = tail call i32 @msleep(i32 2650)
%8 = tail call i32 @mav(i32 0, i32 1000)
%9 = tail call i32 @mav(i32 2, i32 980)
%10 = tail call i32 @msleep(i32 750)
%11 = tail call i32 @mav(i32 0, i32 0)
%12 = tail call i32 @mav(i32 2, i32 1000)
%13 = tail call i32 @msleep(i32 1750)
%14 = tail call i32 @mav(i32 0, i32 600)
%15 = tail call i32 @mav(i32 2, i32 1000)
%16 = tail call i32 @msleep(i32 2850)
%17 = tail call i32 @mav(i32 0, i32 1000)
%18 = tail call i32 @mav(i32 2, i32 500)
%19 = tail call i32 @msleep(i32 7750)
%20 = tail call i32 @mav(i32 0, i32 1000)
%21 = tail call i32 @mav(i32 2, i32 980)
%22 = tail call i32 @msleep(i32 7000)
%23 = tail call i32 (...) @ao()
ret i32 0
}