#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*/ dropCube();
int /*<<< orphan*/ lowerCube();
int /*<<< orphan*/ pause();
int /*<<< orphan*/ primeCube();
int /*<<< orphan*/ straight(int, int);
int /*<<< orphan*/ turnRight(int, int);
int /*<<< orphan*/ wait10Msec(int);
int /*<<< orphan*/ writeDebugStreamLine(char *);
void rightInnerCrate3() {
  writeDebugStreamLine("Crate 3");
  turnRight(75, 1800);
  straight(-75, 51);
  pause();
  turnRight(50, 2200);
  pause();
  straight(-75, 42);
  pause();
  primeCube();
  dropCube();
  straight(75, 6);
  lowerCube();
  wait10Msec(300);
}


x86 assembly (clang, -O0):
<rightInnerCrate3>:
push   %rbp
mov    %rsp,%rbp
lea    0xe75(%rip),%rdi
call   1040 <writeDebugStreamLine@plt>
mov    $0x4b,%edi
mov    $0x708,%esi
call   1070 <turnRight@plt>
mov    $0xffffffb5,%edi
mov    $0x33,%esi
call   1060 <straight@plt>
mov    $0x0,%al
call   1080 <pause@plt>
mov    $0x32,%edi
mov    $0x898,%esi
call   1070 <turnRight@plt>
mov    $0x0,%al
call   1080 <pause@plt>
mov    $0xffffffb5,%edi
mov    $0x2a,%esi
call   1060 <straight@plt>
mov    $0x0,%al
call   1080 <pause@plt>
mov    $0x0,%al
call   1050 <primeCube@plt>
mov    $0x0,%al
call   1030 <dropCube@plt>
mov    $0x4b,%edi
mov    $0x6,%esi
call   1060 <straight@plt>
mov    $0x0,%al
call   1090 <lowerCube@plt>
mov    $0x12c,%edi
call   10a0 <wait10Msec@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rightInnerCrate3>:
push   %rax
lea    0xe78(%rip),%rdi
call   1040 <writeDebugStreamLine@plt>
mov    $0x4b,%edi
mov    $0x708,%esi
call   1070 <turnRight@plt>
mov    $0xffffffb5,%edi
mov    $0x33,%esi
call   1060 <straight@plt>
xor    %eax,%eax
call   1080 <pause@plt>
mov    $0x32,%edi
mov    $0x898,%esi
call   1070 <turnRight@plt>
xor    %eax,%eax
call   1080 <pause@plt>
mov    $0xffffffb5,%edi
mov    $0x2a,%esi
call   1060 <straight@plt>
xor    %eax,%eax
call   1080 <pause@plt>
xor    %eax,%eax
call   1050 <primeCube@plt>
xor    %eax,%eax
call   1030 <dropCube@plt>
mov    $0x4b,%edi
mov    $0x6,%esi
call   1060 <straight@plt>
xor    %eax,%eax
call   1090 <lowerCube@plt>
mov    $0x12c,%edi
pop    %rax
jmp    10a0 <wait10Msec@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Crate 3\00"
define void @rightInnerCrate3() {
%1 = call i32 @writeDebugStreamLine(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @turnRight(i32 75, i32 1800)
%3 = call i32 @straight(i32 -75, i32 51)
%4 = call i32 (...) @pause()
%5 = call i32 @turnRight(i32 50, i32 2200)
%6 = call i32 (...) @pause()
%7 = call i32 @straight(i32 -75, i32 42)
%8 = call i32 (...) @pause()
%9 = call i32 (...) @primeCube()
%10 = call i32 (...) @dropCube()
%11 = call i32 @straight(i32 75, i32 6)
%12 = call i32 (...) @lowerCube()
%13 = call i32 @wait10Msec(i32 300)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"Crate 3\00"
define void @rightInnerCrate3() {
%1 = tail call i32 @writeDebugStreamLine(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @turnRight(i32 75, i32 1800)
%3 = tail call i32 @straight(i32 -75, i32 51)
%4 = tail call i32 (...) @pause()
%5 = tail call i32 @turnRight(i32 50, i32 2200)
%6 = tail call i32 (...) @pause()
%7 = tail call i32 @straight(i32 -75, i32 42)
%8 = tail call i32 (...) @pause()
%9 = tail call i32 (...) @primeCube()
%10 = tail call i32 (...) @dropCube()
%11 = tail call i32 @straight(i32 75, i32 6)
%12 = tail call i32 (...) @lowerCube()
%13 = tail call i32 @wait10Msec(i32 300)
ret void
}