#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*/ create_drive_direct(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ create_drive_straight(int);
int /*<<< orphan*/ msleep(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ set_servo_position(int, int);
int /*<<< orphan*/ twoMotors(int, int);
void putHangers() {
  printf("Start putting hangers!\n");
  twoMotors(-100, 450);
  create_drive_straight(100);
  msleep(1835);
  create_drive_direct(0, 0);
  msleep(100);
  twoMotors(-100, 50);
  msleep(150);
  set_servo_position(3, 1);
  msleep(200);
  twoMotors(100, 250);
}


x86 assembly (clang, -O0):
<putHangers>:
push   %rbp
mov    %rsp,%rbp
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
mov    $0xffffff9c,%edi
mov    $0x1c2,%esi
call   1070 <twoMotors@plt>
mov    $0x64,%edi
call   1050 <create_drive_straight@plt>
mov    $0x72b,%edi
call   1030 <msleep@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1060 <create_drive_direct@plt>
mov    $0x64,%edi
call   1030 <msleep@plt>
mov    $0xffffff9c,%edi
mov    $0x32,%esi
call   1070 <twoMotors@plt>
mov    $0x96,%edi
call   1030 <msleep@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1080 <set_servo_position@plt>
mov    $0xc8,%edi
call   1030 <msleep@plt>
mov    $0x64,%edi
mov    $0xfa,%esi
call   1070 <twoMotors@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<putHangers>:
push   %rax
lea    0xe98(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffff9c,%edi
mov    $0x1c2,%esi
call   1070 <twoMotors@plt>
mov    $0x64,%edi
call   1050 <create_drive_straight@plt>
mov    $0x72b,%edi
call   1040 <msleep@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1060 <create_drive_direct@plt>
mov    $0x64,%edi
call   1040 <msleep@plt>
mov    $0xffffff9c,%edi
mov    $0x32,%esi
call   1070 <twoMotors@plt>
mov    $0x96,%edi
call   1040 <msleep@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1080 <set_servo_position@plt>
mov    $0xc8,%edi
call   1040 <msleep@plt>
mov    $0x64,%edi
mov    $0xfa,%esi
pop    %rax
jmp    1070 <twoMotors@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"Start putting hangers!\0A\00"
define void @putHangers() {
%1 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @twoMotors(i32 -100, i32 450)
%3 = call i32 @create_drive_straight(i32 100)
%4 = call i32 @msleep(i32 1835)
%5 = call i32 @create_drive_direct(i32 0, i32 0)
%6 = call i32 @msleep(i32 100)
%7 = call i32 @twoMotors(i32 -100, i32 50)
%8 = call i32 @msleep(i32 150)
%9 = call i32 @set_servo_position(i32 3, i32 1)
%10 = call i32 @msleep(i32 200)
%11 = call i32 @twoMotors(i32 100, i32 250)
ret void
}

LLVM IR (-O2):
@str = [23 x i8] c"Start putting hangers!\00"
define void @putHangers() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @twoMotors(i32 -100, i32 450)
%3 = tail call i32 @create_drive_straight(i32 100)
%4 = tail call i32 @msleep(i32 1835)
%5 = tail call i32 @create_drive_direct(i32 0, i32 0)
%6 = tail call i32 @msleep(i32 100)
%7 = tail call i32 @twoMotors(i32 -100, i32 50)
%8 = tail call i32 @msleep(i32 150)
%9 = tail call i32 @set_servo_position(i32 3, i32 1)
%10 = tail call i32 @msleep(i32 200)
%11 = tail call i32 @twoMotors(i32 100, i32 250)
ret void
}