#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*/ glColor3f(double, double, double);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(int, double, double, double);
int /*<<< orphan*/ glTranslatef(double, double, double);
int /*<<< orphan*/ glutSolidCube(double);
void rightWall() {
  glPushMatrix();
  glColor3f(1.0, 0.7, 0.0);
  glTranslatef(1, 0.5, -0.4);
  glRotatef(50, 0.0, 1.0, 0.0);
  glutSolidCube(1.0);
  glPopMatrix();
  glPushMatrix();
  glColor3f(1.0, 0.7, 0.0);
  glTranslatef(0.4, 0.5, 0.32);
  glRotatef(50, 0.0, 1.0, 0.0);
  glutSolidCube(1.0);
  glPopMatrix();
}


x86 assembly (clang, -O0):
<rightWall>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xe8d(%rip),%xmm0
movsd  0xea5(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1050 <glColor3f@plt>
movsd  0xe75(%rip),%xmm0
movsd  0xe7d(%rip),%xmm1
movsd  0xe8d(%rip),%xmm2
call   1070 <glTranslatef@plt>
mov    $0x32,%edi
xorps  %xmm2,%xmm2
movsd  0xe50(%rip),%xmm1
movaps %xmm2,%xmm0
call   1080 <glRotatef@plt>
movsd  0xe40(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xe25(%rip),%xmm0
movsd  0xe3d(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1050 <glColor3f@plt>
movsd  0xe15(%rip),%xmm0
movsd  0xe15(%rip),%xmm1
movsd  0xe15(%rip),%xmm2
call   1070 <glTranslatef@plt>
mov    $0x32,%edi
xorps  %xmm2,%xmm2
movsd  0xde8(%rip),%xmm1
movaps %xmm2,%xmm0
call   1080 <glRotatef@plt>
movsd  0xdd8(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rightWall>:
push   %rax
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xe90(%rip),%xmm0
movsd  0xe90(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1050 <glColor3f@plt>
movsd  0xe88(%rip),%xmm1
movsd  0xe88(%rip),%xmm2
movsd  0xe68(%rip),%xmm0
call   1070 <glTranslatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
mov    $0x32,%edi
movsd  0xe50(%rip),%xmm1
call   1080 <glRotatef@plt>
movsd  0xe43(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
xorps  %xmm2,%xmm2
movsd  0xe25(%rip),%xmm0
movsd  0xe25(%rip),%xmm1
call   1050 <glColor3f@plt>
movsd  0xe30(%rip),%xmm0
movsd  0xe30(%rip),%xmm2
movsd  0xe10(%rip),%xmm1
call   1070 <glTranslatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
mov    $0x32,%edi
movsd  0xde8(%rip),%xmm1
call   1080 <glRotatef@plt>
movsd  0xddb(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <glPopMatrix@plt>

LLVM IR (-O0):
define void @rightWall() {
%1 = call i32 (...) @glPushMatrix()
%2 = call i32 @glColor3f(double 1.000000e+00, double 0x3FE6666666666666, double 0.000000e+00)
%3 = call i32 @glTranslatef(double 1.000000e+00, double 5.000000e-01, double -4.000000e-01)
%4 = call i32 @glRotatef(i32 50, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%5 = call i32 @glutSolidCube(double 1.000000e+00)
%6 = call i32 (...) @glPopMatrix()
%7 = call i32 (...) @glPushMatrix()
%8 = call i32 @glColor3f(double 1.000000e+00, double 0x3FE6666666666666, double 0.000000e+00)
%9 = call i32 @glTranslatef(double 4.000000e-01, double 5.000000e-01, double 3.200000e-01)
%10 = call i32 @glRotatef(i32 50, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%11 = call i32 @glutSolidCube(double 1.000000e+00)
%12 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
define void @rightWall() {
%1 = tail call i32 (...) @glPushMatrix()
%2 = tail call i32 @glColor3f(double 1.000000e+00, double 0x3FE6666666666666, double 0.000000e+00)
%3 = tail call i32 @glTranslatef(double 1.000000e+00, double 5.000000e-01, double -4.000000e-01)
%4 = tail call i32 @glRotatef(i32 50, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%5 = tail call i32 @glutSolidCube(double 1.000000e+00)
%6 = tail call i32 (...) @glPopMatrix()
%7 = tail call i32 (...) @glPushMatrix()
%8 = tail call i32 @glColor3f(double 1.000000e+00, double 0x3FE6666666666666, double 0.000000e+00)
%9 = tail call i32 @glTranslatef(double 4.000000e-01, double 5.000000e-01, double 3.200000e-01)
%10 = tail call i32 @glRotatef(i32 50, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%11 = tail call i32 @glutSolidCube(double 1.000000e+00)
%12 = tail call i32 (...) @glPopMatrix()
ret void
}