#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*/ glCallList(int);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(double, double, double, double);
int /*<<< orphan*/ glScalef(double, double, double);
int /*<<< orphan*/ glTranslatef(double, double, double);
void draw(void) {
  glPushMatrix();
  glScalef(1.3, 1.3, 1.3);
  glRotatef(23.0, 1.0, 0.0, 0.0);
  glPushMatrix();
  glTranslatef(-0.75, -0.5, 0.0);
  glRotatef(270.0, 1.0, 0.0, 0.0);
  glCallList(2);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(-0.75, 0.5, 0.0);
  glRotatef(90.0, 1.0, 0.0, 0.0);
  glCallList(1);
  glPopMatrix();
  glPushMatrix();
  glTranslatef(0.75, 0.0, -1.0);
  glCallList(3);
  glPopMatrix();
  glPopMatrix();
}


x86 assembly (clang, -O0):
<draw>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xed5(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1040 <glScalef@plt>
movsd  0xeba(%rip),%xmm0
movsd  0xe8a(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   1080 <glRotatef@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xe78(%rip),%xmm0
movsd  0xe88(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1070 <glTranslatef@plt>
movsd  0xe70(%rip),%xmm0
movsd  0xe50(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   1080 <glRotatef@plt>
mov    $0x2,%edi
call   1060 <glCallList@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xe2d(%rip),%xmm0
movsd  0xe2d(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1070 <glTranslatef@plt>
movsd  0xe05(%rip),%xmm0
movsd  0xe05(%rip),%xmm1
xorps  %xmm3,%xmm3
movaps %xmm3,%xmm2
call   1080 <glRotatef@plt>
mov    $0x1,%edi
call   1060 <glCallList@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1050 <glPushMatrix@plt>
movsd  0xdc2(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  0xdbf(%rip),%xmm2
call   1070 <glTranslatef@plt>
mov    $0x3,%edi
call   1060 <glCallList@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw>:
push   %rax
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xe90(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1040 <glScalef@plt>
movsd  0xe85(%rip),%xmm0
movsd  0xe85(%rip),%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
call   1080 <glRotatef@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xe73(%rip),%xmm0
movsd  0xe73(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1070 <glTranslatef@plt>
movsd  0xe6b(%rip),%xmm0
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movsd  0xe45(%rip),%xmm1
call   1080 <glRotatef@plt>
mov    $0x2,%edi
call   1060 <glCallList@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xe40(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xe1d(%rip),%xmm0
call   1070 <glTranslatef@plt>
movsd  0xe30(%rip),%xmm0
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
movsd  0xdfa(%rip),%xmm1
call   1080 <glRotatef@plt>
mov    $0x1,%edi
call   1060 <glCallList@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1050 <glPushMatrix@plt>
movsd  0xe05(%rip),%xmm0
movsd  0xe05(%rip),%xmm2
xorps  %xmm1,%xmm1
call   1070 <glTranslatef@plt>
mov    $0x3,%edi
call   1060 <glCallList@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <glPopMatrix@plt>

LLVM IR (-O0):
define void @draw() {
%1 = call i32 (...) @glPushMatrix()
%2 = call i32 @glScalef(double 1.300000e+00, double 1.300000e+00, double 1.300000e+00)
%3 = call i32 @glRotatef(double 2.300000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%4 = call i32 (...) @glPushMatrix()
%5 = call i32 @glTranslatef(double -7.500000e-01, double -5.000000e-01, double 0.000000e+00)
%6 = call i32 @glRotatef(double 2.700000e+02, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = call i32 @glCallList(i32 2)
%8 = call i32 (...) @glPopMatrix()
%9 = call i32 (...) @glPushMatrix()
%10 = call i32 @glTranslatef(double -7.500000e-01, double 5.000000e-01, double 0.000000e+00)
%11 = call i32 @glRotatef(double 9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%12 = call i32 @glCallList(i32 1)
%13 = call i32 (...) @glPopMatrix()
%14 = call i32 (...) @glPushMatrix()
%15 = call i32 @glTranslatef(double 7.500000e-01, double 0.000000e+00, double -1.000000e+00)
%16 = call i32 @glCallList(i32 3)
%17 = call i32 (...) @glPopMatrix()
%18 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
define void @draw() {
%1 = tail call i32 (...) @glPushMatrix()
%2 = tail call i32 @glScalef(double 1.300000e+00, double 1.300000e+00, double 1.300000e+00)
%3 = tail call i32 @glRotatef(double 2.300000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%4 = tail call i32 (...) @glPushMatrix()
%5 = tail call i32 @glTranslatef(double -7.500000e-01, double -5.000000e-01, double 0.000000e+00)
%6 = tail call i32 @glRotatef(double 2.700000e+02, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = tail call i32 @glCallList(i32 2)
%8 = tail call i32 (...) @glPopMatrix()
%9 = tail call i32 (...) @glPushMatrix()
%10 = tail call i32 @glTranslatef(double -7.500000e-01, double 5.000000e-01, double 0.000000e+00)
%11 = tail call i32 @glRotatef(double 9.000000e+01, double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%12 = tail call i32 @glCallList(i32 1)
%13 = tail call i32 (...) @glPopMatrix()
%14 = tail call i32 (...) @glPushMatrix()
%15 = tail call i32 @glTranslatef(double 7.500000e-01, double 0.000000e+00, double -1.000000e+00)
%16 = tail call i32 @glCallList(i32 3)
%17 = tail call i32 (...) @glPopMatrix()
%18 = tail call i32 (...) @glPopMatrix()
ret void
}