#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*/ writeDebugStreamLine(char *);
void leftInnerCrate2() {
  writeDebugStreamLine("Crate 2");
  turnRight(-75, 1800);
  straight(75, 49);
  pause();
  turnRight(-50, 2200);
  pause();
  primeCube();
  straight(75, 54);
  pause();
  dropCube();
  straight(-50, 20);
  lowerCube();
  straight(50, 5);
}


x86 assembly (clang, -O0):
<leftInnerCrate2>:
push   %rbp
mov    %rsp,%rbp
lea    0xe85(%rip),%rdi
call   1040 <writeDebugStreamLine@plt>
mov    $0xffffffb5,%edi
mov    $0x708,%esi
call   1070 <turnRight@plt>
mov    $0x4b,%edi
mov    $0x31,%esi
call   1060 <straight@plt>
mov    $0x0,%al
call   1080 <pause@plt>
mov    $0xffffffce,%edi
mov    $0x898,%esi
call   1070 <turnRight@plt>
mov    $0x0,%al
call   1080 <pause@plt>
mov    $0x0,%al
call   1050 <primeCube@plt>
mov    $0x4b,%edi
mov    $0x36,%esi
call   1060 <straight@plt>
mov    $0x0,%al
call   1080 <pause@plt>
mov    $0x0,%al
call   1030 <dropCube@plt>
mov    $0xffffffce,%edi
mov    $0x14,%esi
call   1060 <straight@plt>
mov    $0x0,%al
call   1090 <lowerCube@plt>
mov    $0x32,%edi
mov    $0x5,%esi
call   1060 <straight@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<leftInnerCrate2>:
push   %rax
lea    0xe88(%rip),%rdi
call   1040 <writeDebugStreamLine@plt>
mov    $0xffffffb5,%edi
mov    $0x708,%esi
call   1070 <turnRight@plt>
mov    $0x4b,%edi
mov    $0x31,%esi
call   1060 <straight@plt>
xor    %eax,%eax
call   1080 <pause@plt>
mov    $0xffffffce,%edi
mov    $0x898,%esi
call   1070 <turnRight@plt>
xor    %eax,%eax
call   1080 <pause@plt>
xor    %eax,%eax
call   1050 <primeCube@plt>
mov    $0x4b,%edi
mov    $0x36,%esi
call   1060 <straight@plt>
xor    %eax,%eax
call   1080 <pause@plt>
xor    %eax,%eax
call   1030 <dropCube@plt>
mov    $0xffffffce,%edi
mov    $0x14,%esi
call   1060 <straight@plt>
xor    %eax,%eax
call   1090 <lowerCube@plt>
mov    $0x32,%edi
mov    $0x5,%esi
pop    %rax
jmp    1060 <straight@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Crate 2\00"
define void @leftInnerCrate2() {
%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 49)
%4 = call i32 (...) @pause()
%5 = call i32 @turnRight(i32 -50, i32 2200)
%6 = call i32 (...) @pause()
%7 = call i32 (...) @primeCube()
%8 = call i32 @straight(i32 75, i32 54)
%9 = call i32 (...) @pause()
%10 = call i32 (...) @dropCube()
%11 = call i32 @straight(i32 -50, i32 20)
%12 = call i32 (...) @lowerCube()
%13 = call i32 @straight(i32 50, i32 5)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"Crate 2\00"
define void @leftInnerCrate2() {
%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 49)
%4 = tail call i32 (...) @pause()
%5 = tail call i32 @turnRight(i32 -50, i32 2200)
%6 = tail call i32 (...) @pause()
%7 = tail call i32 (...) @primeCube()
%8 = tail call i32 @straight(i32 75, i32 54)
%9 = tail call i32 (...) @pause()
%10 = tail call i32 (...) @dropCube()
%11 = tail call i32 @straight(i32 -50, i32 20)
%12 = tail call i32 (...) @lowerCube()
%13 = tail call i32 @straight(i32 50, i32 5)
ret void
}