#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*/ drawFace();
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(int, int, int, int /*<<< orphan*/);
void drawBox(void) {
  glPushMatrix();
  drawFace();
  glRotatef(90, 1, 0, 0);
  drawFace();
  glRotatef(90, 1, 0, 0);
  drawFace();
  glRotatef(90, 1, 0, 0);
  drawFace();
  glPopMatrix();
  glPushMatrix();
  glRotatef(90, 0, 1, 0);
  drawFace();
  glRotatef(180, 0, 1, 0);
  drawFace();
  glPopMatrix();
}


x86 assembly (clang, -O0):
<drawBox>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <glPushMatrix@plt>
mov    $0x0,%al
call   1050 <drawFace@plt>
mov    $0x5a,%edi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1060 <glRotatef@plt>
mov    $0x0,%al
call   1050 <drawFace@plt>
mov    $0x5a,%edi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1060 <glRotatef@plt>
mov    $0x0,%al
call   1050 <drawFace@plt>
mov    $0x5a,%edi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1060 <glRotatef@plt>
mov    $0x0,%al
call   1050 <drawFace@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
mov    $0x0,%al
call   1040 <glPushMatrix@plt>
mov    $0x5a,%edi
xor    %ecx,%ecx
mov    $0x1,%edx
mov    %ecx,%esi
call   1060 <glRotatef@plt>
mov    $0x0,%al
call   1050 <drawFace@plt>
mov    $0xb4,%edi
xor    %ecx,%ecx
mov    $0x1,%edx
mov    %ecx,%esi
call   1060 <glRotatef@plt>
mov    $0x0,%al
call   1050 <drawFace@plt>
mov    $0x0,%al
call   1030 <glPopMatrix@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawBox>:
push   %rax
xor    %eax,%eax
call   1040 <glPushMatrix@plt>
xor    %eax,%eax
call   1050 <drawFace@plt>
mov    $0x5a,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1060 <glRotatef@plt>
xor    %eax,%eax
call   1050 <drawFace@plt>
mov    $0x5a,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1060 <glRotatef@plt>
xor    %eax,%eax
call   1050 <drawFace@plt>
mov    $0x5a,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1060 <glRotatef@plt>
xor    %eax,%eax
call   1050 <drawFace@plt>
xor    %eax,%eax
call   1030 <glPopMatrix@plt>
xor    %eax,%eax
call   1040 <glPushMatrix@plt>
mov    $0x5a,%edi
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1060 <glRotatef@plt>
xor    %eax,%eax
call   1050 <drawFace@plt>
mov    $0xb4,%edi
xor    %esi,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
call   1060 <glRotatef@plt>
xor    %eax,%eax
call   1050 <drawFace@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <glPopMatrix@plt>

LLVM IR (-O0):
define void @drawBox() {
%1 = call i32 (...) @glPushMatrix()
%2 = call i32 (...) @drawFace()
%3 = call i32 @glRotatef(i32 90, i32 1, i32 0, i32 0)
%4 = call i32 (...) @drawFace()
%5 = call i32 @glRotatef(i32 90, i32 1, i32 0, i32 0)
%6 = call i32 (...) @drawFace()
%7 = call i32 @glRotatef(i32 90, i32 1, i32 0, i32 0)
%8 = call i32 (...) @drawFace()
%9 = call i32 (...) @glPopMatrix()
%10 = call i32 (...) @glPushMatrix()
%11 = call i32 @glRotatef(i32 90, i32 0, i32 1, i32 0)
%12 = call i32 (...) @drawFace()
%13 = call i32 @glRotatef(i32 180, i32 0, i32 1, i32 0)
%14 = call i32 (...) @drawFace()
%15 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
define void @drawBox() {
%1 = tail call i32 (...) @glPushMatrix()
%2 = tail call i32 (...) @drawFace()
%3 = tail call i32 @glRotatef(i32 90, i32 1, i32 0, i32 0)
%4 = tail call i32 (...) @drawFace()
%5 = tail call i32 @glRotatef(i32 90, i32 1, i32 0, i32 0)
%6 = tail call i32 (...) @drawFace()
%7 = tail call i32 @glRotatef(i32 90, i32 1, i32 0, i32 0)
%8 = tail call i32 (...) @drawFace()
%9 = tail call i32 (...) @glPopMatrix()
%10 = tail call i32 (...) @glPushMatrix()
%11 = tail call i32 @glRotatef(i32 90, i32 0, i32 1, i32 0)
%12 = tail call i32 (...) @drawFace()
%13 = tail call i32 @glRotatef(i32 180, i32 0, i32 1, i32 0)
%14 = tail call i32 (...) @drawFace()
%15 = tail call i32 (...) @glPopMatrix()
ret void
}