#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(float, float, float);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(float, float, float, float);
int /*<<< orphan*/ glTranslatef(float, float, float);
int /*<<< orphan*/ glutSolidCone(float, float, int, int);
int /*<<< orphan*/ glutSolidSphere(float, int, int);
void drawSnowMan() {
  glColor3f(1.0f, 1.0f, 1.0f);
  glTranslatef(0.0f, 0.75f, 0.0f);
  glutSolidSphere(0.75f, 20, 20);
  glTranslatef(0.0f, 1.0f, 0.0f);
  glutSolidSphere(0.25f, 20, 20);
  glPushMatrix();
  glColor3f(0.0f, 0.0f, 0.0f);
  glTranslatef(0.05f, 0.10f, 0.18f);
  glutSolidSphere(0.05f, 10, 10);
  glTranslatef(-0.1f, 0.0f, 0.0f);
  glutSolidSphere(0.05f, 10, 10);
  glPopMatrix();
  glColor3f(1.0f, 0.5f, 0.5f);
  glRotatef(0.0f, 1.0f, 0.0f, 0.0f);
  glutSolidCone(0.08f, 0.5f, 10, 2);
}


x86 assembly (clang, -O0):
<drawSnowMan>:
push   %rbp
mov    %rsp,%rbp
movss  0xe8c(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
xorps  %xmm2,%xmm2
movss  0xe8e(%rip),%xmm1
movaps %xmm2,%xmm0
call   1080 <glTranslatef@plt>
movss  0xe7e(%rip),%xmm0
mov    $0x14,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
xorps  %xmm2,%xmm2
movss  0xe4f(%rip),%xmm1
movaps %xmm2,%xmm0
call   1080 <glTranslatef@plt>
movss  0xe53(%rip),%xmm0
mov    $0x14,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
movss  0xe1a(%rip),%xmm0
movss  0xe1a(%rip),%xmm1
movss  0xe16(%rip),%xmm2
call   1080 <glTranslatef@plt>
movss  0xdfd(%rip),%xmm0
mov    $0xa,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
movss  0xded(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1080 <glTranslatef@plt>
movss  0xdd6(%rip),%xmm0
mov    $0xa,%esi
mov    %esi,%edi
call   1070 <glutSolidSphere@plt>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
movss  0xdb7(%rip),%xmm0
movss  0xdab(%rip),%xmm2
movaps %xmm2,%xmm1
call   1050 <glColor3f@plt>
xorps  %xmm3,%xmm3
movss  0xd9c(%rip),%xmm1
movaps %xmm3,%xmm0
movaps %xmm3,%xmm2
call   1090 <glRotatef@plt>
movss  0xd81(%rip),%xmm0
movss  0xd7d(%rip),%xmm1
mov    $0xa,%edi
mov    $0x2,%esi
call   1030 <glutSolidCone@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawSnowMan>:
push   %rax
movss  0xe87(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1050 <glColor3f@plt>
movss  0xe78(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
call   1080 <glTranslatef@plt>
movss  0xe65(%rip),%xmm0
mov    $0x14,%edi
mov    $0x14,%esi
call   1070 <glutSolidSphere@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movss  0xe44(%rip),%xmm1
call   1080 <glTranslatef@plt>
movss  0xe3f(%rip),%xmm0
mov    $0x14,%edi
mov    $0x14,%esi
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1050 <glColor3f@plt>
movss  0xe17(%rip),%xmm0
movss  0xe13(%rip),%xmm1
movss  0xe0f(%rip),%xmm2
call   1080 <glTranslatef@plt>
movss  0xdfa(%rip),%xmm0
mov    $0xa,%edi
mov    $0xa,%esi
call   1070 <glutSolidSphere@plt>
movss  0xdef(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1080 <glTranslatef@plt>
movss  0xdd0(%rip),%xmm0
mov    $0xa,%edi
mov    $0xa,%esi
call   1070 <glutSolidSphere@plt>
xor    %eax,%eax
call   1040 <glPopMatrix@plt>
movss  0xdc2(%rip),%xmm1
movss  0xd9e(%rip),%xmm0
movaps %xmm1,%xmm2
call   1050 <glColor3f@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movss  0xd85(%rip),%xmm1
call   1090 <glRotatef@plt>
movss  0xd98(%rip),%xmm0
movss  0xd8c(%rip),%xmm1
mov    $0xa,%edi
mov    $0x2,%esi
pop    %rax
jmp    1030 <glutSolidCone@plt>

LLVM IR (-O0):
define void @drawSnowMan() {
%1 = call i32 @glColor3f(float 1.000000e+00, float 1.000000e+00, float 1.000000e+00)
%2 = call i32 @glTranslatef(float 0.000000e+00, float 7.500000e-01, float 0.000000e+00)
%3 = call i32 @glutSolidSphere(float 7.500000e-01, i32 20, i32 20)
%4 = call i32 @glTranslatef(float 0.000000e+00, float 1.000000e+00, float 0.000000e+00)
%5 = call i32 @glutSolidSphere(float 2.500000e-01, i32 20, i32 20)
%6 = call i32 (...) @glPushMatrix()
%7 = call i32 @glColor3f(float 0.000000e+00, float 0.000000e+00, float 0.000000e+00)
%8 = call i32 @glTranslatef(float 0x3FA99999A0000000, float 0x3FB99999A0000000, float 0x3FC70A3D80000000)
%9 = call i32 @glutSolidSphere(float 0x3FA99999A0000000, i32 10, i32 10)
%10 = call i32 @glTranslatef(float 0xBFB99999A0000000, float 0.000000e+00, float 0.000000e+00)
%11 = call i32 @glutSolidSphere(float 0x3FA99999A0000000, i32 10, i32 10)
%12 = call i32 (...) @glPopMatrix()
%13 = call i32 @glColor3f(float 1.000000e+00, float 5.000000e-01, float 5.000000e-01)
%14 = call i32 @glRotatef(float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 0.000000e+00)
%15 = call i32 @glutSolidCone(float 0x3FB47AE140000000, float 5.000000e-01, i32 10, i32 2)
ret void
}

LLVM IR (-O2):
define void @drawSnowMan() {
%1 = tail call i32 @glColor3f(float 1.000000e+00, float 1.000000e+00, float 1.000000e+00)
%2 = tail call i32 @glTranslatef(float 0.000000e+00, float 7.500000e-01, float 0.000000e+00)
%3 = tail call i32 @glutSolidSphere(float 7.500000e-01, i32 20, i32 20)
%4 = tail call i32 @glTranslatef(float 0.000000e+00, float 1.000000e+00, float 0.000000e+00)
%5 = tail call i32 @glutSolidSphere(float 2.500000e-01, i32 20, i32 20)
%6 = tail call i32 (...) @glPushMatrix()
%7 = tail call i32 @glColor3f(float 0.000000e+00, float 0.000000e+00, float 0.000000e+00)
%8 = tail call i32 @glTranslatef(float 0x3FA99999A0000000, float 0x3FB99999A0000000, float 0x3FC70A3D80000000)
%9 = tail call i32 @glutSolidSphere(float 0x3FA99999A0000000, i32 10, i32 10)
%10 = tail call i32 @glTranslatef(float 0xBFB99999A0000000, float 0.000000e+00, float 0.000000e+00)
%11 = tail call i32 @glutSolidSphere(float 0x3FA99999A0000000, i32 10, i32 10)
%12 = tail call i32 (...) @glPopMatrix()
%13 = tail call i32 @glColor3f(float 1.000000e+00, float 5.000000e-01, float 5.000000e-01)
%14 = tail call i32 @glRotatef(float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float 0.000000e+00)
%15 = tail call i32 @glutSolidCone(float 0x3FB47AE140000000, float 5.000000e-01, i32 10, i32 2)
ret void
}