#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_MODELVIEW;
int /*<<< orphan*/ glClear(int);
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ gluLookAt(int, double, int, int, double, int, double, double,
                             double);
void renderOpenGL(int x, int z) {
  glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  gluLookAt(x, 140.0, z + 120.0, x, 0.0, z, 0.0, 1.0, 0.0);
}


x86 assembly (clang, -O0):
<renderOpenGL>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    0x2e93(%rip),%rax
mov    (%rax),%edi
mov    0x2e72(%rip),%rax
or     (%rax),%edi
call   1040 <glClear@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
call   1050 <glMatrixMode@plt>
mov    $0x0,%al
call   1060 <glLoadIdentity@plt>
mov    -0x4(%rbp),%edi
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  0xe86(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
movsd  0xe60(%rip),%xmm0
xorps  %xmm4,%xmm4
movsd  0xe5d(%rip),%xmm3
movaps %xmm4,%xmm1
movaps %xmm4,%xmm2
call   1030 <gluLookAt@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<renderOpenGL>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    0x2e9a(%rip),%rax
mov    0x2e7b(%rip),%rcx
mov    (%rcx),%edi
or     (%rax),%edi
call   1040 <glClear@plt>
mov    0x2e7b(%rip),%rax
mov    (%rax),%edi
call   1050 <glMatrixMode@plt>
xor    %eax,%eax
call   1060 <glLoadIdentity@plt>
lea    0x78(%rbx),%esi
movsd  0xe82(%rip),%xmm0
movsd  0xe82(%rip),%xmm3
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm4,%xmm4
mov    %ebp,%edi
mov    %ebp,%edx
mov    %ebx,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <gluLookAt@plt>

LLVM IR (-O0):
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_MODELVIEW = global i32 0
define void @renderOpenGL(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%6 = load i32, i32* @GL_COLOR_BUFFER_BIT
%7 = or i32 %5, %6
%8 = call i32 @glClear(i32 %7)
%9 = load i32, i32* @GL_MODELVIEW
%10 = call i32 @glMatrixMode(i32 %9)
%11 = call i32 (...) @glLoadIdentity()
%12 = load i32, i32* %3
%13 = load i32, i32* %4
%14 = sitofp i32 %13 to double
%15 = fadd double %14, 1.200000e+02
%16 = fptosi double %15 to i32
%17 = load i32, i32* %3
%18 = load i32, i32* %4
%19 = call i32 @gluLookAt(i32 %12, double 1.400000e+02, i32 %16, i32 %17, double 0.000000e+00, i32 %18, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
ret void
}

LLVM IR (-O2):
@GL_DEPTH_BUFFER_BIT = global i32 0
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_MODELVIEW = global i32 0
define void @renderOpenGL(i32 %0, i32 %1) {
%3 = load i32, i32* @GL_DEPTH_BUFFER_BIT
%4 = load i32, i32* @GL_COLOR_BUFFER_BIT
%5 = or i32 %4, %3
%6 = tail call i32 @glClear(i32 %5)
%7 = load i32, i32* @GL_MODELVIEW
%8 = tail call i32 @glMatrixMode(i32 %7)
%9 = tail call i32 (...) @glLoadIdentity()
%10 = add i32 %1, 120
%11 = tail call i32 @gluLookAt(i32 %0, double 1.400000e+02, i32 %10, i32 %0, double 0.000000e+00, i32 %1, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
ret void
}