#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*/ rotateRobot(double);
int /*<<< orphan*/ stopRobot();
int /*<<< orphan*/ wait10Msec(int);
void testRotation() {
  rotateRobot(3.14159265358979323846 / 2);
  stopRobot();
  wait10Msec(100);
  rotateRobot(3.14159265358979323846 / 2);
  stopRobot();
  wait10Msec(100);
  rotateRobot(3.14159265358979323846 / 2);
  stopRobot();
  wait10Msec(100);
  rotateRobot(3.14159265358979323846 / 2);
  stopRobot();
  wait10Msec(100);
  rotateRobot(-3.14159265358979323846 / 2);
  stopRobot();
  wait10Msec(100);
  rotateRobot(-3.14159265358979323846 / 2);
  stopRobot();
  wait10Msec(100);
  rotateRobot(-3.14159265358979323846 / 2);
  stopRobot();
  wait10Msec(100);
  rotateRobot(-3.14159265358979323846 / 2);
  stopRobot();
  wait10Msec(100);
}


x86 assembly (clang, -O0):
<testRotation>:
push   %rbp
mov    %rsp,%rbp
movsd  0xecc(%rip),%xmm0
call   1040 <rotateRobot@plt>
mov    $0x0,%al
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xeae(%rip),%xmm0
call   1040 <rotateRobot@plt>
mov    $0x0,%al
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe90(%rip),%xmm0
call   1040 <rotateRobot@plt>
mov    $0x0,%al
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe72(%rip),%xmm0
call   1040 <rotateRobot@plt>
mov    $0x0,%al
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe4c(%rip),%xmm0
call   1040 <rotateRobot@plt>
mov    $0x0,%al
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe2e(%rip),%xmm0
call   1040 <rotateRobot@plt>
mov    $0x0,%al
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe10(%rip),%xmm0
call   1040 <rotateRobot@plt>
mov    $0x0,%al
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xdf2(%rip),%xmm0
call   1040 <rotateRobot@plt>
mov    $0x0,%al
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<testRotation>:
push   %rax
movsd  0xec7(%rip),%xmm0
call   1040 <rotateRobot@plt>
xor    %eax,%eax
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xea9(%rip),%xmm0
call   1040 <rotateRobot@plt>
xor    %eax,%eax
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe8b(%rip),%xmm0
call   1040 <rotateRobot@plt>
xor    %eax,%eax
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe6d(%rip),%xmm0
call   1040 <rotateRobot@plt>
xor    %eax,%eax
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe57(%rip),%xmm0
call   1040 <rotateRobot@plt>
xor    %eax,%eax
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe39(%rip),%xmm0
call   1040 <rotateRobot@plt>
xor    %eax,%eax
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xe1b(%rip),%xmm0
call   1040 <rotateRobot@plt>
xor    %eax,%eax
call   1030 <stopRobot@plt>
mov    $0x64,%edi
call   1050 <wait10Msec@plt>
movsd  0xdfd(%rip),%xmm0
call   1040 <rotateRobot@plt>
xor    %eax,%eax
call   1030 <stopRobot@plt>
mov    $0x64,%edi
pop    %rax
jmp    1050 <wait10Msec@plt>

LLVM IR (-O0):
define void @testRotation() {
%1 = call i32 @rotateRobot(double 0x3FF921FB54442D18)
%2 = call i32 (...) @stopRobot()
%3 = call i32 @wait10Msec(i32 100)
%4 = call i32 @rotateRobot(double 0x3FF921FB54442D18)
%5 = call i32 (...) @stopRobot()
%6 = call i32 @wait10Msec(i32 100)
%7 = call i32 @rotateRobot(double 0x3FF921FB54442D18)
%8 = call i32 (...) @stopRobot()
%9 = call i32 @wait10Msec(i32 100)
%10 = call i32 @rotateRobot(double 0x3FF921FB54442D18)
%11 = call i32 (...) @stopRobot()
%12 = call i32 @wait10Msec(i32 100)
%13 = call i32 @rotateRobot(double 0xBFF921FB54442D18)
%14 = call i32 (...) @stopRobot()
%15 = call i32 @wait10Msec(i32 100)
%16 = call i32 @rotateRobot(double 0xBFF921FB54442D18)
%17 = call i32 (...) @stopRobot()
%18 = call i32 @wait10Msec(i32 100)
%19 = call i32 @rotateRobot(double 0xBFF921FB54442D18)
%20 = call i32 (...) @stopRobot()
%21 = call i32 @wait10Msec(i32 100)
%22 = call i32 @rotateRobot(double 0xBFF921FB54442D18)
%23 = call i32 (...) @stopRobot()
%24 = call i32 @wait10Msec(i32 100)
ret void
}

LLVM IR (-O2):
define void @testRotation() {
%1 = tail call i32 @rotateRobot(double 0x3FF921FB54442D18)
%2 = tail call i32 (...) @stopRobot()
%3 = tail call i32 @wait10Msec(i32 100)
%4 = tail call i32 @rotateRobot(double 0x3FF921FB54442D18)
%5 = tail call i32 (...) @stopRobot()
%6 = tail call i32 @wait10Msec(i32 100)
%7 = tail call i32 @rotateRobot(double 0x3FF921FB54442D18)
%8 = tail call i32 (...) @stopRobot()
%9 = tail call i32 @wait10Msec(i32 100)
%10 = tail call i32 @rotateRobot(double 0x3FF921FB54442D18)
%11 = tail call i32 (...) @stopRobot()
%12 = tail call i32 @wait10Msec(i32 100)
%13 = tail call i32 @rotateRobot(double 0xBFF921FB54442D18)
%14 = tail call i32 (...) @stopRobot()
%15 = tail call i32 @wait10Msec(i32 100)
%16 = tail call i32 @rotateRobot(double 0xBFF921FB54442D18)
%17 = tail call i32 (...) @stopRobot()
%18 = tail call i32 @wait10Msec(i32 100)
%19 = tail call i32 @rotateRobot(double 0xBFF921FB54442D18)
%20 = tail call i32 (...) @stopRobot()
%21 = tail call i32 @wait10Msec(i32 100)
%22 = tail call i32 @rotateRobot(double 0xBFF921FB54442D18)
%23 = tail call i32 (...) @stopRobot()
%24 = tail call i32 @wait10Msec(i32 100)
ret void
}