#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*/ glScalef(double, double, double);
int /*<<< orphan*/ glTranslatef(double, double, double);
int /*<<< orphan*/ glutSolidCube(double);
int /*<<< orphan*/ glutSolidIcosahedron();
int /*<<< orphan*/ glutSolidSphere(double, int, int);
void drawView(int drawCenterObject) {
  glPushMatrix();
  glTranslatef(5.0, 0.0, -8.0);
  glRotatef(-45, 1.0, 0.0, 1.0);
  glColor3f(0.0, 1.0, 0.0);
  glutSolidCube(2.0);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(-5.0, 0.0, -8.0);
  glRotatef(45, 1.0, 0.0, 1.0);
  glColor3f(1.0, 0.0, 0.0);
  glutSolidCube(6.0);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(-7.0, 0.0, 0.0);
  glColor3f(0.0, 0.0, 1.0);
  glutSolidCube(5.0);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(7.0, 0.0, 0.0);
  glRotatef(30, 1.0, 1.0, 0.0);
  glColor3f(0.0, 1.0, 1.0);
  glutSolidCube(5.0);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(0.0, 0.0, 10.0);
  glColor3f(1.0, 1.0, 0.0);
  glutSolidSphere(7.0, 8, 8);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(0.0, 5.0, 0.0);
  glColor3f(1.0, 1.0, 1.0);
  glutSolidSphere(2.0, 8, 8);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(0.0, -6.0, 0.0);
  glColor3f(1.0, 0.0, 1.0);
  glutSolidSphere(4.0, 8, 8);
  glPopMatrix();
  if (drawCenterObject) {
    glPushMatrix();
    glScalef(3.0, 3.0, 3.0);
    glColor3f(1.0, 1.0, 1.0);
    glutSolidIcosahedron();
    glPopMatrix();
  }
}


x86 assembly (clang, -O0):
<drawView>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xe76(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xe9b(%rip),%xmm2
call   10a0 <glTranslatef@plt>
mov    $0xffffffd3,%edi
movsd  0xe41(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   10b0 <glRotatef@plt>
xorps  %xmm2,%xmm2
movsd  0xe2b(%rip),%xmm1
movaps %xmm2,%xmm0
call   1050 <glColor3f@plt>
movsd  0xe2b(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xe40(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xe3d(%rip),%xmm2
call   10a0 <glTranslatef@plt>
mov    $0x2d,%edi
movsd  0xde3(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   10b0 <glRotatef@plt>
movsd  0xdd0(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
movsd  0xdf5(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xdd2(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10a0 <glTranslatef@plt>
xorps  %xmm1,%xmm1
movsd  0xd8c(%rip),%xmm2
movaps %xmm1,%xmm0
call   1050 <glColor3f@plt>
movsd  0xd94(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xd81(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10a0 <glTranslatef@plt>
mov    $0x1e,%edi
movsd  0xd49(%rip),%xmm1
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm0
call   10b0 <glRotatef@plt>
xorps  %xmm0,%xmm0
movsd  0xd33(%rip),%xmm2
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
movsd  0xd3b(%rip),%xmm0
call   1030 <glutSolidCube@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
xorps  %xmm1,%xmm1
movsd  0xd2d(%rip),%xmm2
movaps %xmm1,%xmm0
call   10a0 <glTranslatef@plt>
movsd  0xcf5(%rip),%xmm1
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm0
call   1050 <glColor3f@plt>
movsd  0xd02(%rip),%xmm0
mov    $0x8,%esi
mov    %esi,%edi
call   1080 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
xorps  %xmm2,%xmm2
movsd  0xcd5(%rip),%xmm1
movaps %xmm2,%xmm0
call   10a0 <glTranslatef@plt>
movsd  0xcad(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
movsd  0xcaa(%rip),%xmm0
mov    $0x8,%esi
mov    %esi,%edi
call   1080 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
xorps  %xmm2,%xmm2
movsd  0xc7d(%rip),%xmm1
movaps %xmm2,%xmm0
call   10a0 <glTranslatef@plt>
movsd  0xc65(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1050 <glColor3f@plt>
movsd  0xc4a(%rip),%xmm0
mov    $0x8,%esi
mov    %esi,%edi
call   1080 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
cmpl   $0x0,-0x4(%rbp)
je     140e <drawView+0x27e>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xc76(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1060 <glScalef@plt>
movsd  0xc13(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
mov    $0x0,%al
call   1090 <glutSolidIcosahedron@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawView>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xe5e(%rip),%xmm0
movsd  0xe5e(%rip),%xmm2
xorps  %xmm1,%xmm1
call   10a0 <glTranslatef@plt>
movsd  0xe56(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    $0xffffffd3,%edi
movaps %xmm0,%xmm2
call   10b0 <glRotatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xe38(%rip),%xmm1
call   1050 <glColor3f@plt>
movsd  0xe33(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xe20(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xdfd(%rip),%xmm2
call   10a0 <glTranslatef@plt>
xorps  %xmm1,%xmm1
mov    $0x2d,%edi
movsd  0xdf0(%rip),%xmm0
movaps %xmm0,%xmm2
call   10b0 <glRotatef@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xdda(%rip),%xmm0
call   1050 <glColor3f@plt>
movsd  0xde5(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xdd2(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   10a0 <glTranslatef@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xd99(%rip),%xmm2
call   1050 <glColor3f@plt>
movsd  0xd7c(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xd99(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   10a0 <glTranslatef@plt>
xorps  %xmm2,%xmm2
mov    $0x1e,%edi
movsd  0xd56(%rip),%xmm0
movaps %xmm0,%xmm1
call   10b0 <glRotatef@plt>
xorps  %xmm0,%xmm0
movsd  0xd43(%rip),%xmm1
movaps %xmm1,%xmm2
call   1050 <glColor3f@plt>
movsd  0xd23(%rip),%xmm0
call   1030 <glutSolidCube@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xd48(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   10a0 <glTranslatef@plt>
xorps  %xmm2,%xmm2
movsd  0xd02(%rip),%xmm0
movaps %xmm0,%xmm1
call   1050 <glColor3f@plt>
movsd  0xd1a(%rip),%xmm0
mov    $0x8,%edi
mov    $0x8,%esi
call   1080 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xcb7(%rip),%xmm1
call   10a0 <glTranslatef@plt>
movsd  0xcba(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1050 <glColor3f@plt>
movsd  0xcaf(%rip),%xmm0
mov    $0x8,%edi
mov    $0x8,%esi
call   1080 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xcba(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
call   10a0 <glTranslatef@plt>
xorps  %xmm1,%xmm1
movsd  0xc6c(%rip),%xmm0
movaps %xmm0,%xmm2
call   1050 <glColor3f@plt>
movsd  0xc9c(%rip),%xmm0
mov    $0x8,%edi
mov    $0x8,%esi
call   1080 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
test   %ebx,%ebx
je     140a <drawView+0x27a>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xc7b(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1060 <glScalef@plt>
movsd  0xc20(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1050 <glColor3f@plt>
xor    %eax,%eax
call   1090 <glutSolidIcosahedron@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <glPopMatrix@plt>
pop    %rbx
ret

LLVM IR (-O0):
define void @drawView(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @glPushMatrix()
%4 = call i32 @glTranslatef(double 5.000000e+00, double 0.000000e+00, double -8.000000e+00)
%5 = call i32 @glRotatef(i32 -45, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%6 = call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%7 = call i32 @glutSolidCube(double 2.000000e+00)
%8 = call i32 (...) @glPopMatrix()
%9 = call i32 (...) @glPushMatrix()
%10 = call i32 @glTranslatef(double -5.000000e+00, double 0.000000e+00, double -8.000000e+00)
%11 = call i32 @glRotatef(i32 45, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%12 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%13 = call i32 @glutSolidCube(double 6.000000e+00)
%14 = call i32 (...) @glPopMatrix()
%15 = call i32 (...) @glPushMatrix()
%16 = call i32 @glTranslatef(double -7.000000e+00, double 0.000000e+00, double 0.000000e+00)
%17 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%18 = call i32 @glutSolidCube(double 5.000000e+00)
%19 = call i32 (...) @glPopMatrix()
%20 = call i32 (...) @glPushMatrix()
%21 = call i32 @glTranslatef(double 7.000000e+00, double 0.000000e+00, double 0.000000e+00)
%22 = call i32 @glRotatef(i32 30, double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%23 = call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 1.000000e+00)
%24 = call i32 @glutSolidCube(double 5.000000e+00)
%25 = call i32 (...) @glPopMatrix()
%26 = call i32 (...) @glPushMatrix()
%27 = call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double 1.000000e+01)
%28 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%29 = call i32 @glutSolidSphere(double 7.000000e+00, i32 8, i32 8)
%30 = call i32 (...) @glPopMatrix()
%31 = call i32 (...) @glPushMatrix()
%32 = call i32 @glTranslatef(double 0.000000e+00, double 5.000000e+00, double 0.000000e+00)
%33 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%34 = call i32 @glutSolidSphere(double 2.000000e+00, i32 8, i32 8)
%35 = call i32 (...) @glPopMatrix()
%36 = call i32 (...) @glPushMatrix()
%37 = call i32 @glTranslatef(double 0.000000e+00, double -6.000000e+00, double 0.000000e+00)
%38 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%39 = call i32 @glutSolidSphere(double 4.000000e+00, i32 8, i32 8)
%40 = call i32 (...) @glPopMatrix()
%41 = load i32, i32* %2
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %1
%44 = call i32 (...) @glPushMatrix()
%45 = call i32 @glScalef(double 3.000000e+00, double 3.000000e+00, double 3.000000e+00)
%46 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%47 = call i32 (...) @glutSolidIcosahedron()
%48 = call i32 (...) @glPopMatrix()
br label %49
49: ; preds = %43, %1
ret void
}

LLVM IR (-O2):
define void @drawView(i32 %0) {
%2 = tail call i32 (...) @glPushMatrix()
%3 = tail call i32 @glTranslatef(double 5.000000e+00, double 0.000000e+00, double -8.000000e+00)
%4 = tail call i32 @glRotatef(i32 -45, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%5 = tail call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%6 = tail call i32 @glutSolidCube(double 2.000000e+00)
%7 = tail call i32 (...) @glPopMatrix()
%8 = tail call i32 (...) @glPushMatrix()
%9 = tail call i32 @glTranslatef(double -5.000000e+00, double 0.000000e+00, double -8.000000e+00)
%10 = tail call i32 @glRotatef(i32 45, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%11 = tail call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%12 = tail call i32 @glutSolidCube(double 6.000000e+00)
%13 = tail call i32 (...) @glPopMatrix()
%14 = tail call i32 (...) @glPushMatrix()
%15 = tail call i32 @glTranslatef(double -7.000000e+00, double 0.000000e+00, double 0.000000e+00)
%16 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%17 = tail call i32 @glutSolidCube(double 5.000000e+00)
%18 = tail call i32 (...) @glPopMatrix()
%19 = tail call i32 (...) @glPushMatrix()
%20 = tail call i32 @glTranslatef(double 7.000000e+00, double 0.000000e+00, double 0.000000e+00)
%21 = tail call i32 @glRotatef(i32 30, double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%22 = tail call i32 @glColor3f(double 0.000000e+00, double 1.000000e+00, double 1.000000e+00)
%23 = tail call i32 @glutSolidCube(double 5.000000e+00)
%24 = tail call i32 (...) @glPopMatrix()
%25 = tail call i32 (...) @glPushMatrix()
%26 = tail call i32 @glTranslatef(double 0.000000e+00, double 0.000000e+00, double 1.000000e+01)
%27 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 0.000000e+00)
%28 = tail call i32 @glutSolidSphere(double 7.000000e+00, i32 8, i32 8)
%29 = tail call i32 (...) @glPopMatrix()
%30 = tail call i32 (...) @glPushMatrix()
%31 = tail call i32 @glTranslatef(double 0.000000e+00, double 5.000000e+00, double 0.000000e+00)
%32 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%33 = tail call i32 @glutSolidSphere(double 2.000000e+00, i32 8, i32 8)
%34 = tail call i32 (...) @glPopMatrix()
%35 = tail call i32 (...) @glPushMatrix()
%36 = tail call i32 @glTranslatef(double 0.000000e+00, double -6.000000e+00, double 0.000000e+00)
%37 = tail call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%38 = tail call i32 @glutSolidSphere(double 4.000000e+00, i32 8, i32 8)
%39 = tail call i32 (...) @glPopMatrix()
%40 = icmp eq i32 %0, 0
br i1 %40, label %47, label %41
41: ; preds = %1
%42 = tail call i32 (...) @glPushMatrix()
%43 = tail call i32 @glScalef(double 3.000000e+00, double 3.000000e+00, double 3.000000e+00)
%44 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%45 = tail call i32 (...) @glutSolidIcosahedron()
%46 = tail call i32 (...) @glPopMatrix()
br label %47
47: ; preds = %41, %1
ret void
}