#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*/ draw_field(int /*<<< orphan*/);
int /*<<< orphan*/ draw_info(int /*<<< orphan*/);
int /*<<< orphan*/ draw_stat(int /*<<< orphan*/);
int /*<<< orphan*/ get_parms_addr();
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glutSwapBuffers();
void draw_all(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glPushMatrix();
  glColor3f(1.0, 1.0, 1.0);
  draw_field(get_parms_addr());
  draw_stat(get_parms_addr());
  draw_info(get_parms_addr());
  glPopMatrix();
  glutSwapBuffers();
}


x86 assembly (clang, -O0):
<draw_all>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
mov    $0x0,%al
call   10b0 <glPushMatrix@plt>
movsd  0xe4f(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1080 <glColor3f@plt>
mov    $0x0,%al
call   1060 <get_parms_addr@plt>
mov    %eax,%edi
call   1040 <draw_field@plt>
mov    $0x0,%al
call   1060 <get_parms_addr@plt>
mov    %eax,%edi
call   10a0 <draw_stat@plt>
mov    $0x0,%al
call   1060 <get_parms_addr@plt>
mov    %eax,%edi
call   1090 <draw_info@plt>
mov    $0x0,%al
call   1070 <glPopMatrix@plt>
mov    $0x0,%al
call   1050 <glutSwapBuffers@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_all>:
push   %rax
mov    0x2e48(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
xor    %eax,%eax
call   10b0 <glPushMatrix@plt>
movsd  0xe52(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1080 <glColor3f@plt>
xor    %eax,%eax
call   1060 <get_parms_addr@plt>
mov    %eax,%edi
call   1040 <draw_field@plt>
xor    %eax,%eax
call   1060 <get_parms_addr@plt>
mov    %eax,%edi
call   10a0 <draw_stat@plt>
xor    %eax,%eax
call   1060 <get_parms_addr@plt>
mov    %eax,%edi
call   1090 <draw_info@plt>
xor    %eax,%eax
call   1070 <glPopMatrix@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <glutSwapBuffers@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @draw_all() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 (...) @glPushMatrix()
%4 = call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%5 = call i32 (...) @get_parms_addr()
%6 = call i32 @draw_field(i32 %5)
%7 = call i32 (...) @get_parms_addr()
%8 = call i32 @draw_stat(i32 %7)
%9 = call i32 (...) @get_parms_addr()
%10 = call i32 @draw_info(i32 %9)
%11 = call i32 (...) @glPopMatrix()
%12 = call i32 (...) @glutSwapBuffers()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @draw_all() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = tail call i32 (...) @glPushMatrix()
%4 = tail call i32 @glColor3f(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%5 = tail call i32 (...) @get_parms_addr()
%6 = tail call i32 @draw_field(i32 %5)
%7 = tail call i32 (...) @get_parms_addr()
%8 = tail call i32 @draw_stat(i32 %7)
%9 = tail call i32 (...) @get_parms_addr()
%10 = tail call i32 @draw_info(i32 %9)
%11 = tail call i32 (...) @glPopMatrix()
%12 = tail call i32 (...) @glutSwapBuffers()
ret void
}