#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*/ haveSomeFun();
int /*<<< orphan*/ moveWheel(int, int);
int /*<<< orphan*/ moveWheels(int);
int /*<<< orphan*/ printMessage();
int /*<<< orphan*/ shakeWheel(int);
int /*<<< orphan*/ shakeWheels();
int /*<<< orphan*/ turnYourselfAround(int);
int doTheHokeyPokey() {
  moveWheel(1, 3);
  moveWheel(-1, 3);
  moveWheel(1, 3);
  shakeWheel(3);
  turnYourselfAround(3);
  printMessage();
  haveSomeFun();
  haveSomeFun();
  moveWheel(1, 1);
  moveWheel(-1, 1);
  moveWheel(1, 1);
  shakeWheel(1);
  turnYourselfAround(1);
  printMessage();
  haveSomeFun();
  haveSomeFun();
  moveWheels(1);
  moveWheels(-1);
  moveWheels(1);
  shakeWheels();
  turnYourselfAround(1);
  printMessage();
  return 0;
}


x86 assembly (clang, -O0):
<doTheHokeyPokey>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
mov    $0x3,%esi
call   1090 <moveWheel@plt>
mov    $0xffffffff,%edi
mov    $0x3,%esi
call   1090 <moveWheel@plt>
mov    $0x1,%edi
mov    $0x3,%esi
call   1090 <moveWheel@plt>
mov    $0x3,%edi
call   1080 <shakeWheel@plt>
mov    $0x3,%edi
call   1030 <turnYourselfAround@plt>
mov    $0x0,%al
call   1070 <printMessage@plt>
mov    $0x0,%al
call   1050 <haveSomeFun@plt>
mov    $0x0,%al
call   1050 <haveSomeFun@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1090 <moveWheel@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1090 <moveWheel@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1090 <moveWheel@plt>
mov    $0x1,%edi
call   1080 <shakeWheel@plt>
mov    $0x1,%edi
call   1030 <turnYourselfAround@plt>
mov    $0x0,%al
call   1070 <printMessage@plt>
mov    $0x0,%al
call   1050 <haveSomeFun@plt>
mov    $0x0,%al
call   1050 <haveSomeFun@plt>
mov    $0x1,%edi
call   1060 <moveWheels@plt>
mov    $0xffffffff,%edi
call   1060 <moveWheels@plt>
mov    $0x1,%edi
call   1060 <moveWheels@plt>
mov    $0x0,%al
call   1040 <shakeWheels@plt>
mov    $0x1,%edi
call   1030 <turnYourselfAround@plt>
mov    $0x0,%al
call   1070 <printMessage@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<doTheHokeyPokey>:
push   %rax
mov    $0x1,%edi
mov    $0x3,%esi
call   1090 <moveWheel@plt>
mov    $0xffffffff,%edi
mov    $0x3,%esi
call   1090 <moveWheel@plt>
mov    $0x1,%edi
mov    $0x3,%esi
call   1090 <moveWheel@plt>
mov    $0x3,%edi
call   1080 <shakeWheel@plt>
mov    $0x3,%edi
call   1030 <turnYourselfAround@plt>
xor    %eax,%eax
call   1070 <printMessage@plt>
xor    %eax,%eax
call   1050 <haveSomeFun@plt>
xor    %eax,%eax
call   1050 <haveSomeFun@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1090 <moveWheel@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
call   1090 <moveWheel@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1090 <moveWheel@plt>
mov    $0x1,%edi
call   1080 <shakeWheel@plt>
mov    $0x1,%edi
call   1030 <turnYourselfAround@plt>
xor    %eax,%eax
call   1070 <printMessage@plt>
xor    %eax,%eax
call   1050 <haveSomeFun@plt>
xor    %eax,%eax
call   1050 <haveSomeFun@plt>
mov    $0x1,%edi
call   1060 <moveWheels@plt>
mov    $0xffffffff,%edi
call   1060 <moveWheels@plt>
mov    $0x1,%edi
call   1060 <moveWheels@plt>
xor    %eax,%eax
call   1040 <shakeWheels@plt>
mov    $0x1,%edi
call   1030 <turnYourselfAround@plt>
xor    %eax,%eax
call   1070 <printMessage@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @doTheHokeyPokey() {
%1 = call i32 @moveWheel(i32 1, i32 3)
%2 = call i32 @moveWheel(i32 -1, i32 3)
%3 = call i32 @moveWheel(i32 1, i32 3)
%4 = call i32 @shakeWheel(i32 3)
%5 = call i32 @turnYourselfAround(i32 3)
%6 = call i32 (...) @printMessage()
%7 = call i32 (...) @haveSomeFun()
%8 = call i32 (...) @haveSomeFun()
%9 = call i32 @moveWheel(i32 1, i32 1)
%10 = call i32 @moveWheel(i32 -1, i32 1)
%11 = call i32 @moveWheel(i32 1, i32 1)
%12 = call i32 @shakeWheel(i32 1)
%13 = call i32 @turnYourselfAround(i32 1)
%14 = call i32 (...) @printMessage()
%15 = call i32 (...) @haveSomeFun()
%16 = call i32 (...) @haveSomeFun()
%17 = call i32 @moveWheels(i32 1)
%18 = call i32 @moveWheels(i32 -1)
%19 = call i32 @moveWheels(i32 1)
%20 = call i32 (...) @shakeWheels()
%21 = call i32 @turnYourselfAround(i32 1)
%22 = call i32 (...) @printMessage()
ret i32 0
}

LLVM IR (-O2):
define i32 @doTheHokeyPokey() {
%1 = tail call i32 @moveWheel(i32 1, i32 3)
%2 = tail call i32 @moveWheel(i32 -1, i32 3)
%3 = tail call i32 @moveWheel(i32 1, i32 3)
%4 = tail call i32 @shakeWheel(i32 3)
%5 = tail call i32 @turnYourselfAround(i32 3)
%6 = tail call i32 (...) @printMessage()
%7 = tail call i32 (...) @haveSomeFun()
%8 = tail call i32 (...) @haveSomeFun()
%9 = tail call i32 @moveWheel(i32 1, i32 1)
%10 = tail call i32 @moveWheel(i32 -1, i32 1)
%11 = tail call i32 @moveWheel(i32 1, i32 1)
%12 = tail call i32 @shakeWheel(i32 1)
%13 = tail call i32 @turnYourselfAround(i32 1)
%14 = tail call i32 (...) @printMessage()
%15 = tail call i32 (...) @haveSomeFun()
%16 = tail call i32 (...) @haveSomeFun()
%17 = tail call i32 @moveWheels(i32 1)
%18 = tail call i32 @moveWheels(i32 -1)
%19 = tail call i32 @moveWheels(i32 1)
%20 = tail call i32 (...) @shakeWheels()
%21 = tail call i32 @turnYourselfAround(i32 1)
%22 = tail call i32 (...) @printMessage()
ret i32 0
}