#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*/ motor(int, int);
int /*<<< orphan*/ msleep(int);
int main() {
  motor(0, 95);
  motor(2, 100);
  msleep(2500);
  motor(0, 100);
  motor(2, 0);
  msleep(800);
  motor(0, 30);
  motor(2, 100);
  msleep(7000);
  motor(0, 95);
  motor(2, 100);
  msleep(4500);
  ao();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
mov    $0x5f,%esi
call   1030 <motor@plt>
mov    $0x2,%edi
mov    $0x64,%esi
call   1030 <motor@plt>
mov    $0x9c4,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x64,%esi
call   1030 <motor@plt>
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <motor@plt>
mov    $0x320,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x1e,%esi
call   1030 <motor@plt>
mov    $0x2,%edi
mov    $0x64,%esi
call   1030 <motor@plt>
mov    $0x1b58,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x5f,%esi
call   1030 <motor@plt>
mov    $0x2,%edi
mov    $0x64,%esi
call   1030 <motor@plt>
mov    $0x1194,%edi
call   1040 <msleep@plt>
mov    $0x0,%al
call   1050 <ao@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
mov    $0x5f,%esi
call   1030 <motor@plt>
mov    $0x2,%edi
mov    $0x64,%esi
call   1030 <motor@plt>
mov    $0x9c4,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x64,%esi
call   1030 <motor@plt>
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <motor@plt>
mov    $0x320,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x1e,%esi
call   1030 <motor@plt>
mov    $0x2,%edi
mov    $0x64,%esi
call   1030 <motor@plt>
mov    $0x1b58,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
mov    $0x5f,%esi
call   1030 <motor@plt>
mov    $0x2,%edi
mov    $0x64,%esi
call   1030 <motor@plt>
mov    $0x1194,%edi
call   1040 <msleep@plt>
xor    %eax,%eax
call   1050 <ao@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @motor(i32 0, i32 95)
%3 = call i32 @motor(i32 2, i32 100)
%4 = call i32 @msleep(i32 2500)
%5 = call i32 @motor(i32 0, i32 100)
%6 = call i32 @motor(i32 2, i32 0)
%7 = call i32 @msleep(i32 800)
%8 = call i32 @motor(i32 0, i32 30)
%9 = call i32 @motor(i32 2, i32 100)
%10 = call i32 @msleep(i32 7000)
%11 = call i32 @motor(i32 0, i32 95)
%12 = call i32 @motor(i32 2, i32 100)
%13 = call i32 @msleep(i32 4500)
%14 = call i32 (...) @ao()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @motor(i32 0, i32 95)
%2 = tail call i32 @motor(i32 2, i32 100)
%3 = tail call i32 @msleep(i32 2500)
%4 = tail call i32 @motor(i32 0, i32 100)
%5 = tail call i32 @motor(i32 2, i32 0)
%6 = tail call i32 @msleep(i32 800)
%7 = tail call i32 @motor(i32 0, i32 30)
%8 = tail call i32 @motor(i32 2, i32 100)
%9 = tail call i32 @msleep(i32 7000)
%10 = tail call i32 @motor(i32 0, i32 95)
%11 = tail call i32 @motor(i32 2, i32 100)
%12 = tail call i32 @msleep(i32 4500)
%13 = tail call i32 (...) @ao()
ret i32 0
}