#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 */
typedef double GLfloat;

/* Variables and functions */
int /*<<< orphan*/ GL_COLOR_BUFFER_BIT;
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3fv(double *);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glRasterPos2i(int, int);
int /*<<< orphan*/ printString(char *);
void display(void) {
  GLfloat white[3] = {1.0, 1.0, 1.0};
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3fv(white);
  glRasterPos2i(20, 60);
  printString("THE QUICK BROWN FOX JUMPS");
  glRasterPos2i(20, 40);
  printString("OVER A LAZY DOG");
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xea1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe9e(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe9b(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
lea    -0x20(%rbp),%rdi
call   1040 <glColor3fv@plt>
mov    $0x14,%edi
mov    $0x3c,%esi
call   1070 <glRasterPos2i@plt>
lea    0xe72(%rip),%rdi
call   1050 <printString@plt>
mov    $0x14,%edi
mov    $0x28,%esi
call   1070 <glRasterPos2i@plt>
lea    0xe71(%rip),%rdi
call   1050 <printString@plt>
mov    $0x0,%al
call   1060 <glFlush@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
sub    $0x18,%rsp
mov    0xeb5(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xe99(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    0x2e6e(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
mov    %rsp,%rdi
call   1040 <glColor3fv@plt>
mov    $0x14,%edi
mov    $0x3c,%esi
call   1070 <glRasterPos2i@plt>
lea    0xe81(%rip),%rdi
call   1050 <printString@plt>
mov    $0x14,%edi
mov    $0x28,%esi
call   1070 <glRasterPos2i@plt>
lea    0xe80(%rip),%rdi
call   1050 <printString@plt>
xor    %eax,%eax
call   1060 <glFlush@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.display.white = [3 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@GL_COLOR_BUFFER_BIT = global i32 0
@.str = [26 x i8] c"THE QUICK BROWN FOX JUMPS\00"
@.str.1 = [16 x i8] c"OVER A LAZY DOG\00"
define void @display() {
%1 = alloca [3 x double]
%2 = bitcast [3 x double]* %1 to i8*
%3 = load i32, i32* @GL_COLOR_BUFFER_BIT
%4 = call i32 @glClear(i32 %3)
%5 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%6 = call i32 @glColor3fv(double* %5)
%7 = call i32 @glRasterPos2i(i32 20, i32 60)
%8 = call i32 @printString(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @glRasterPos2i(i32 20, i32 40)
%10 = call i32 @printString(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@__const.display.white = [3 x double] [double 1.000000e+00, double 1.000000e+00, double 1.000000e+00]
@GL_COLOR_BUFFER_BIT = global i32 0
@.str = [26 x i8] c"THE QUICK BROWN FOX JUMPS\00"
@.str.1 = [16 x i8] c"OVER A LAZY DOG\00"
define void @display() {
%1 = alloca [3 x double]
%2 = bitcast [3 x double]* %1 to i8*
%3 = load i32, i32* @GL_COLOR_BUFFER_BIT
%4 = tail call i32 @glClear(i32 %3)
%5 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%6 = call i32 @glColor3fv(double* %5)
%7 = call i32 @glRasterPos2i(i32 20, i32 60)
%8 = call i32 @printString(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @glRasterPos2i(i32 20, i32 40)
%10 = call i32 @printString(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (...) @glFlush()
ret void
}