#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 GL_COLOR_BUFFER_BIT;
int GL_DEPTH_BUFFER_BIT;
int /*<<< orphan*/ GL_FILL;
int /*<<< orphan*/ glClear(int);
int /*<<< orphan*/ glEvalMesh2(int /*<<< orphan*/, int /*<<< orphan*/, int,
                               int /*<<< orphan*/, int);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glRotatef(double, double, double, double);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  glPushMatrix();
  glRotatef(85.0, 1.0, 1.0, 1.0);
  glEvalMesh2(GL_FILL, 0, 20, 0, 20);
  glPopMatrix();
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
mov    0x2e74(%rip),%rax
or     (%rax),%edi
call   1030 <glClear@plt>
mov    $0x0,%al
call   1070 <glPushMatrix@plt>
movsd  0xe76(%rip),%xmm0
movsd  0xe76(%rip),%xmm3
movaps %xmm3,%xmm1
movaps %xmm3,%xmm2
call   1080 <glRotatef@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%edi
xor    %ecx,%ecx
mov    $0x14,%r8d
mov    %ecx,%esi
mov    %r8d,%edx
call   1040 <glEvalMesh2@plt>
mov    $0x0,%al
call   1050 <glPopMatrix@plt>
mov    $0x0,%al
call   1060 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e70(%rip),%rax
mov    0x2e79(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
call   1030 <glClear@plt>
xor    %eax,%eax
call   1070 <glPushMatrix@plt>
movsd  0xe79(%rip),%xmm0
movsd  0xe79(%rip),%xmm1
movaps %xmm1,%xmm2
movaps %xmm1,%xmm3
call   1080 <glRotatef@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
mov    $0x14,%edx
xor    %ecx,%ecx
mov    $0x14,%r8d
call   1040 <glEvalMesh2@plt>
xor    %eax,%eax
call   1050 <glPopMatrix@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_FILL = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%3 = or i32 %1, %2
%4 = call i32 @glClear(i32 %3)
%5 = call i32 (...) @glPushMatrix()
%6 = call i32 @glRotatef(double 8.500000e+01, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%7 = load i32, i32* @GL_FILL
%8 = call i32 @glEvalMesh2(i32 %7, i32 0, i32 20, i32 0, i32 20)
%9 = call i32 (...) @glPopMatrix()
%10 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_FILL = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%3 = or i32 %2, %1
%4 = tail call i32 @glClear(i32 %3)
%5 = tail call i32 (...) @glPushMatrix()
%6 = tail call i32 @glRotatef(double 8.500000e+01, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%7 = load i32, i32* @GL_FILL
%8 = tail call i32 @glEvalMesh2(i32 %7, i32 0, i32 20, i32 0, i32 20)
%9 = tail call i32 (...) @glPopMatrix()
%10 = tail call i32 (...) @glFlush()
ret void
}