#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*/ GL_COLOR_BUFFER_BIT;
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ printw(double, double, int /*<<< orphan*/, char *, char *);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  printw(-0.9, 0.3, 0, "%s", "printw helps you print characters");
  printw(-0.4, -0.3, 0, "%s", "on an OpenGL window...");
  glFlush();
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xec6(%rip),%xmm0
movsd  0xec6(%rip),%xmm1
xor    %edi,%edi
lea    0xec5(%rip),%rsi
lea    0xec1(%rip),%rdx
call   1050 <printw@plt>
movsd  0xe91(%rip),%xmm0
movsd  0xe91(%rip),%xmm1
xor    %edi,%edi
lea    0xea0(%rip),%rsi
lea    0xebe(%rip),%rdx
call   1050 <printw@plt>
mov    $0x0,%al
call   1040 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rbx
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
lea    0xeda(%rip),%rbx
lea    0xed6(%rip),%rdx
movsd  0xeab(%rip),%xmm0
movsd  0xeab(%rip),%xmm1
xor    %edi,%edi
mov    %rbx,%rsi
call   1050 <printw@plt>
lea    0xed7(%rip),%rdx
movsd  0xe9a(%rip),%xmm0
movsd  0xe9a(%rip),%xmm1
xor    %edi,%edi
mov    %rbx,%rsi
call   1050 <printw@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [34 x i8] c"printw helps you print characters\00"
@.str.2 = [23 x i8] c"on an OpenGL window...\00"
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 @printw(double -9.000000e-01, double 3.000000e-01, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printw(double -4.000000e-01, double -3.000000e-01, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [34 x i8] c"printw helps you print characters\00"
@.str.2 = [23 x i8] c"on an OpenGL window...\00"
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = tail call i32 @printw(double -9.000000e-01, double 3.000000e-01, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printw(double -4.000000e-01, double -3.000000e-01, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (...) @glFlush()
ret void
}