#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*/ glColor3d(int, int, int);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(double, double, double, double);
int /*<<< orphan*/ glTranslated(double, double, double);
int /*<<< orphan*/ glutSolidCone(double, double, int, int);
int /*<<< orphan*/ glutSolidSphere(double, int, int);
void drawSnowMan() {
  glColor3d(1, 1, 1);
  glPushMatrix();
  glTranslated(-2.9, 0.35, -7);
  glutSolidSphere(0.55, 200, 200);
  glPopMatrix();
  glPushMatrix();
  glTranslated(-2.9, -0.77, -7);
  glutSolidSphere(0.95, 200, 200);
  glPopMatrix();
  glPushMatrix();
  glTranslated(-2.9, 1.1, -7);
  glutSolidSphere(0.3, 200, 200);
  glPopMatrix();
  glColor3d(0, 0, 0);
  glPushMatrix();
  glTranslated(-2.70, 1.08, -6.5);
  glutSolidSphere(0.05, 200, 200);
  glPopMatrix();
  glPushMatrix();
  glTranslated(-2.90, 1.08, -6.5);
  glutSolidSphere(0.05, 200, 200);
  glPopMatrix();
  glColor3d(1, 0, 0);
  glPushMatrix();
  glTranslated(-2.77, 0.9, -6.5);
  glRotatef(340.0, 1.0, 1.5, 0.0);
  glutSolidCone(0.08, 0.2, 10, 2);
  glPopMatrix();
}


x86 assembly (clang, -O0):
<drawSnowMan>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1050 <glColor3d@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xeb7(%rip),%xmm0
movsd  0xef7(%rip),%xmm1
movsd  0xecf(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xeda(%rip),%xmm0
mov    $0xc8,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xe78(%rip),%xmm0
movsd  0xea8(%rip),%xmm1
movsd  0xe90(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xe8b(%rip),%xmm0
mov    $0xc8,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xe39(%rip),%xmm0
movsd  0xe51(%rip),%xmm1
movsd  0xe51(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xe34(%rip),%xmm0
mov    $0xc8,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1050 <glColor3d@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xdff(%rip),%xmm0
movsd  0xdef(%rip),%xmm1
movsd  0xdcf(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xdca(%rip),%xmm0
mov    $0xc8,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xdb0(%rip),%xmm0
movsd  0xdb0(%rip),%xmm1
movsd  0xd90(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xd8b(%rip),%xmm0
mov    $0xc8,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
mov    $0x1,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1050 <glColor3d@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
movsd  0xd43(%rip),%xmm0
movsd  0xd43(%rip),%xmm1
movsd  0xd43(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xd0e(%rip),%xmm0
movsd  0xd0e(%rip),%xmm1
movsd  0xd0e(%rip),%xmm2
xorps  %xmm3,%xmm3
call   1090 <glRotatef@plt>
movsd  0xcde(%rip),%xmm0
movsd  0xcde(%rip),%xmm1
mov    $0xa,%edi
mov    $0x2,%esi
call   1030 <glutSolidCone@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawSnowMan>:
push   %rax
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   1050 <glColor3d@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xe6c(%rip),%xmm0
movsd  0xe6c(%rip),%xmm1
movsd  0xe6c(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xe67(%rip),%xmm0
mov    $0xc8,%edi
mov    $0xc8,%esi
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xe4a(%rip),%xmm1
movsd  0xe22(%rip),%xmm0
movsd  0xe2a(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xe35(%rip),%xmm0
mov    $0xc8,%edi
mov    $0xc8,%esi
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xe18(%rip),%xmm1
movsd  0xde0(%rip),%xmm0
movsd  0xde8(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xe03(%rip),%xmm0
mov    $0xc8,%edi
mov    $0xc8,%esi
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <glColor3d@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xddb(%rip),%xmm0
movsd  0xddb(%rip),%xmm1
movsd  0xddb(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xdd6(%rip),%xmm0
mov    $0xc8,%edi
mov    $0xc8,%esi
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xd59(%rip),%xmm0
movsd  0xd99(%rip),%xmm1
movsd  0xd99(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xd94(%rip),%xmm0
mov    $0xc8,%edi
mov    $0xc8,%esi
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
mov    $0x1,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <glColor3d@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
movsd  0xd69(%rip),%xmm0
movsd  0xd69(%rip),%xmm1
movsd  0xd49(%rip),%xmm2
call   1080 <glTranslated@plt>
movsd  0xd5c(%rip),%xmm0
movsd  0xd5c(%rip),%xmm1
movsd  0xd5c(%rip),%xmm2
xorps  %xmm3,%xmm3
call   1090 <glRotatef@plt>
movsd  0xd54(%rip),%xmm0
movsd  0xd54(%rip),%xmm1
mov    $0xa,%edi
mov    $0x2,%esi
call   1030 <glutSolidCone@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <glPopMatrix@plt>

LLVM IR (-O0):
define void @drawSnowMan() {
%1 = call i32 @glColor3d(i32 1, i32 1, i32 1)
%2 = call i32 (...) @glPushMatrix()
%3 = call i32 @glTranslated(double -2.900000e+00, double 3.500000e-01, double -7.000000e+00)
%4 = call i32 @glutSolidSphere(double 5.500000e-01, i32 200, i32 200)
%5 = call i32 (...) @glPopMatrix()
%6 = call i32 (...) @glPushMatrix()
%7 = call i32 @glTranslated(double -2.900000e+00, double -7.700000e-01, double -7.000000e+00)
%8 = call i32 @glutSolidSphere(double 0x3FEE666666666666, i32 200, i32 200)
%9 = call i32 (...) @glPopMatrix()
%10 = call i32 (...) @glPushMatrix()
%11 = call i32 @glTranslated(double -2.900000e+00, double 1.100000e+00, double -7.000000e+00)
%12 = call i32 @glutSolidSphere(double 3.000000e-01, i32 200, i32 200)
%13 = call i32 (...) @glPopMatrix()
%14 = call i32 @glColor3d(i32 0, i32 0, i32 0)
%15 = call i32 (...) @glPushMatrix()
%16 = call i32 @glTranslated(double -2.700000e+00, double 1.080000e+00, double -6.500000e+00)
%17 = call i32 @glutSolidSphere(double 5.000000e-02, i32 200, i32 200)
%18 = call i32 (...) @glPopMatrix()
%19 = call i32 (...) @glPushMatrix()
%20 = call i32 @glTranslated(double -2.900000e+00, double 1.080000e+00, double -6.500000e+00)
%21 = call i32 @glutSolidSphere(double 5.000000e-02, i32 200, i32 200)
%22 = call i32 (...) @glPopMatrix()
%23 = call i32 @glColor3d(i32 1, i32 0, i32 0)
%24 = call i32 (...) @glPushMatrix()
%25 = call i32 @glTranslated(double -2.770000e+00, double 9.000000e-01, double -6.500000e+00)
%26 = call i32 @glRotatef(double 3.400000e+02, double 1.000000e+00, double 1.500000e+00, double 0.000000e+00)
%27 = call i32 @glutSolidCone(double 8.000000e-02, double 2.000000e-01, i32 10, i32 2)
%28 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
define void @drawSnowMan() {
%1 = tail call i32 @glColor3d(i32 1, i32 1, i32 1)
%2 = tail call i32 (...) @glPushMatrix()
%3 = tail call i32 @glTranslated(double -2.900000e+00, double 3.500000e-01, double -7.000000e+00)
%4 = tail call i32 @glutSolidSphere(double 5.500000e-01, i32 200, i32 200)
%5 = tail call i32 (...) @glPopMatrix()
%6 = tail call i32 (...) @glPushMatrix()
%7 = tail call i32 @glTranslated(double -2.900000e+00, double -7.700000e-01, double -7.000000e+00)
%8 = tail call i32 @glutSolidSphere(double 0x3FEE666666666666, i32 200, i32 200)
%9 = tail call i32 (...) @glPopMatrix()
%10 = tail call i32 (...) @glPushMatrix()
%11 = tail call i32 @glTranslated(double -2.900000e+00, double 1.100000e+00, double -7.000000e+00)
%12 = tail call i32 @glutSolidSphere(double 3.000000e-01, i32 200, i32 200)
%13 = tail call i32 (...) @glPopMatrix()
%14 = tail call i32 @glColor3d(i32 0, i32 0, i32 0)
%15 = tail call i32 (...) @glPushMatrix()
%16 = tail call i32 @glTranslated(double -2.700000e+00, double 1.080000e+00, double -6.500000e+00)
%17 = tail call i32 @glutSolidSphere(double 5.000000e-02, i32 200, i32 200)
%18 = tail call i32 (...) @glPopMatrix()
%19 = tail call i32 (...) @glPushMatrix()
%20 = tail call i32 @glTranslated(double -2.900000e+00, double 1.080000e+00, double -6.500000e+00)
%21 = tail call i32 @glutSolidSphere(double 5.000000e-02, i32 200, i32 200)
%22 = tail call i32 (...) @glPopMatrix()
%23 = tail call i32 @glColor3d(i32 1, i32 0, i32 0)
%24 = tail call i32 (...) @glPushMatrix()
%25 = tail call i32 @glTranslated(double -2.770000e+00, double 9.000000e-01, double -6.500000e+00)
%26 = tail call i32 @glRotatef(double 3.400000e+02, double 1.000000e+00, double 1.500000e+00, double 0.000000e+00)
%27 = tail call i32 @glutSolidCone(double 8.000000e-02, double 2.000000e-01, i32 10, i32 2)
%28 = tail call i32 (...) @glPopMatrix()
ret void
}