#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*/ VECTOR_3D_init(int, int, int);
int /*<<< orphan*/ gl_line(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/, int /*<<< orphan*/);
void gl_unit_box() {
  gl_line(VECTOR_3D_init(0, 0, 0), VECTOR_3D_init(1, 0, 0),
          VECTOR_3D_init(0, 0, 1), VECTOR_3D_init(0, 0, 1), 0, 0);
  gl_line(VECTOR_3D_init(0, 0, 0), VECTOR_3D_init(0, 1, 0),
          VECTOR_3D_init(0, 1, 0), VECTOR_3D_init(0, 1, 0), 0, 0);
  gl_line(VECTOR_3D_init(0, 0, 0), VECTOR_3D_init(0, 0, 1),
          VECTOR_3D_init(1, 0, 0), VECTOR_3D_init(1, 0, 0), 0, 0);
}


x86 assembly (clang, -O0):
<gl_unit_box>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0x24(%rbp)
mov    $0x1,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0x20(%rbp)
xor    %esi,%esi
mov    $0x1,%edx
mov    %esi,%edi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0x1c(%rbp)
xor    %esi,%esi
mov    $0x1,%edx
mov    %esi,%edi
call   1030 <VECTOR_3D_init@plt>
mov    -0x24(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    %eax,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
call   1040 <gl_line@plt>
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0x18(%rbp)
xor    %edx,%edx
mov    $0x1,%esi
mov    %edx,%edi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0x14(%rbp)
xor    %edx,%edx
mov    $0x1,%esi
mov    %edx,%edi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0x10(%rbp)
xor    %edx,%edx
mov    $0x1,%esi
mov    %edx,%edi
call   1030 <VECTOR_3D_init@plt>
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    %eax,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
call   1040 <gl_line@plt>
xor    %edx,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0xc(%rbp)
xor    %esi,%esi
mov    $0x1,%edx
mov    %esi,%edi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0x8(%rbp)
mov    $0x1,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1030 <VECTOR_3D_init@plt>
mov    %eax,-0x4(%rbp)
mov    $0x1,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1030 <VECTOR_3D_init@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    %eax,%ecx
xor    %r9d,%r9d
mov    %r9d,%r8d
call   1040 <gl_line@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gl_unit_box>:
push   %rbp
push   %r14
push   %rbx
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%r14d
mov    $0x1,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%ebp
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%ebx
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %r14d,%edi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1040 <gl_line@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%r14d
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%ebp
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%ebx
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %r14d,%edi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1040 <gl_line@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%r14d
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%ebp
mov    $0x1,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %eax,%ebx
mov    $0x1,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <VECTOR_3D_init@plt>
mov    %r14d,%edi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <gl_line@plt>

LLVM IR (-O0):
define void @gl_unit_box() {
%1 = call i32 @VECTOR_3D_init(i32 0, i32 0, i32 0)
%2 = call i32 @VECTOR_3D_init(i32 1, i32 0, i32 0)
%3 = call i32 @VECTOR_3D_init(i32 0, i32 0, i32 1)
%4 = call i32 @VECTOR_3D_init(i32 0, i32 0, i32 1)
%5 = call i32 @gl_line(i32 %1, i32 %2, i32 %3, i32 %4, i32 0, i32 0)
%6 = call i32 @VECTOR_3D_init(i32 0, i32 0, i32 0)
%7 = call i32 @VECTOR_3D_init(i32 0, i32 1, i32 0)
%8 = call i32 @VECTOR_3D_init(i32 0, i32 1, i32 0)
%9 = call i32 @VECTOR_3D_init(i32 0, i32 1, i32 0)
%10 = call i32 @gl_line(i32 %6, i32 %7, i32 %8, i32 %9, i32 0, i32 0)
%11 = call i32 @VECTOR_3D_init(i32 0, i32 0, i32 0)
%12 = call i32 @VECTOR_3D_init(i32 0, i32 0, i32 1)
%13 = call i32 @VECTOR_3D_init(i32 1, i32 0, i32 0)
%14 = call i32 @VECTOR_3D_init(i32 1, i32 0, i32 0)
%15 = call i32 @gl_line(i32 %11, i32 %12, i32 %13, i32 %14, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @gl_unit_box() {
%1 = tail call i32 @VECTOR_3D_init(i32 0, i32 0, i32 0)
%2 = tail call i32 @VECTOR_3D_init(i32 1, i32 0, i32 0)
%3 = tail call i32 @VECTOR_3D_init(i32 0, i32 0, i32 1)
%4 = tail call i32 @VECTOR_3D_init(i32 0, i32 0, i32 1)
%5 = tail call i32 @gl_line(i32 %1, i32 %2, i32 %3, i32 %4, i32 0, i32 0)
%6 = tail call i32 @VECTOR_3D_init(i32 0, i32 0, i32 0)
%7 = tail call i32 @VECTOR_3D_init(i32 0, i32 1, i32 0)
%8 = tail call i32 @VECTOR_3D_init(i32 0, i32 1, i32 0)
%9 = tail call i32 @VECTOR_3D_init(i32 0, i32 1, i32 0)
%10 = tail call i32 @gl_line(i32 %6, i32 %7, i32 %8, i32 %9, i32 0, i32 0)
%11 = tail call i32 @VECTOR_3D_init(i32 0, i32 0, i32 0)
%12 = tail call i32 @VECTOR_3D_init(i32 0, i32 0, i32 1)
%13 = tail call i32 @VECTOR_3D_init(i32 1, i32 0, i32 0)
%14 = tail call i32 @VECTOR_3D_init(i32 1, i32 0, i32 0)
%15 = tail call i32 @gl_line(i32 %11, i32 %12, i32 %13, i32 %14, i32 0, i32 0)
ret void
}