#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*/ line3d(int, int, int, int, int, int);
void draw_unit_cube() {
  line3d(-1., -1., -1., 1., -1., -1.);
  line3d(1., -1., -1., 1., 1., -1.);
  line3d(1., 1., -1., -1., 1., -1.);
  line3d(-1., 1., -1., -1., -1., -1.);
  line3d(-1., -1., 1., 1., -1., 1.);
  line3d(1., -1., 1., 1., 1., 1.);
  line3d(1., 1., 1., -1., 1., 1.);
  line3d(-1., 1., 1., -1., -1., 1.);
  line3d(1., 1., 1., 1., 1., -1.);
  line3d(-1., 1., 1., -1., 1., -1.);
  line3d(-1., -1., 1., -1., -1., -1.);
  line3d(1., -1., 1., 1., -1., -1.);
}


x86 assembly (clang, -O0):
<draw_unit_cube>:
push   %rbp
mov    %rsp,%rbp
mov    $0xffffffff,%r9d
mov    $0x1,%ecx
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%r8d
call   1030 <line3d@plt>
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r8d,%ecx
call   1030 <line3d@plt>
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
mov    %r8d,%edi
mov    %r8d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
call   1030 <line3d@plt>
mov    $0xffffffff,%r9d
mov    $0x1,%esi
mov    %r9d,%edi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
call   1030 <line3d@plt>
mov    $0xffffffff,%r8d
mov    $0x1,%r9d
mov    %r8d,%edi
mov    %r8d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
call   1030 <line3d@plt>
mov    $0x1,%r9d
mov    $0xffffffff,%esi
mov    %r9d,%edi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
call   1030 <line3d@plt>
mov    $0x1,%r9d
mov    $0xffffffff,%ecx
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%r8d
call   1030 <line3d@plt>
mov    $0xffffffff,%r8d
mov    $0x1,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r8d,%ecx
call   1030 <line3d@plt>
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
mov    %r8d,%edi
mov    %r8d,%esi
mov    %r8d,%edx
mov    %r8d,%ecx
call   1030 <line3d@plt>
mov    $0xffffffff,%r9d
mov    $0x1,%r8d
mov    %r9d,%edi
mov    %r8d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
call   1030 <line3d@plt>
mov    $0xffffffff,%r9d
mov    $0x1,%edx
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%ecx
mov    %r9d,%r8d
call   1030 <line3d@plt>
mov    $0x1,%ecx
mov    $0xffffffff,%r9d
mov    %ecx,%edi
mov    %r9d,%esi
mov    %ecx,%edx
mov    %r9d,%r8d
call   1030 <line3d@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_unit_cube>:
push   %rax
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
mov    $0x1,%ecx
mov    $0xffffffff,%r8d
mov    $0xffffffff,%r9d
call   1030 <line3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
call   1030 <line3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
mov    $0xffffffff,%ecx
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
call   1030 <line3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
mov    $0xffffffff,%ecx
mov    $0xffffffff,%r8d
mov    $0xffffffff,%r9d
call   1030 <line3d@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    $0xffffffff,%r8d
mov    $0x1,%r9d
call   1030 <line3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
call   1030 <line3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0xffffffff,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
call   1030 <line3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0xffffffff,%ecx
mov    $0xffffffff,%r8d
mov    $0x1,%r9d
call   1030 <line3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
call   1030 <line3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0xffffffff,%ecx
mov    $0x1,%r8d
mov    $0xffffffff,%r9d
call   1030 <line3d@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
mov    $0xffffffff,%ecx
mov    $0xffffffff,%r8d
mov    $0xffffffff,%r9d
call   1030 <line3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    $0xffffffff,%r8d
mov    $0xffffffff,%r9d
pop    %rax
jmp    1030 <line3d@plt>

LLVM IR (-O0):
define void @draw_unit_cube() {
%1 = call i32 @line3d(i32 -1, i32 -1, i32 -1, i32 1, i32 -1, i32 -1)
%2 = call i32 @line3d(i32 1, i32 -1, i32 -1, i32 1, i32 1, i32 -1)
%3 = call i32 @line3d(i32 1, i32 1, i32 -1, i32 -1, i32 1, i32 -1)
%4 = call i32 @line3d(i32 -1, i32 1, i32 -1, i32 -1, i32 -1, i32 -1)
%5 = call i32 @line3d(i32 -1, i32 -1, i32 1, i32 1, i32 -1, i32 1)
%6 = call i32 @line3d(i32 1, i32 -1, i32 1, i32 1, i32 1, i32 1)
%7 = call i32 @line3d(i32 1, i32 1, i32 1, i32 -1, i32 1, i32 1)
%8 = call i32 @line3d(i32 -1, i32 1, i32 1, i32 -1, i32 -1, i32 1)
%9 = call i32 @line3d(i32 1, i32 1, i32 1, i32 1, i32 1, i32 -1)
%10 = call i32 @line3d(i32 -1, i32 1, i32 1, i32 -1, i32 1, i32 -1)
%11 = call i32 @line3d(i32 -1, i32 -1, i32 1, i32 -1, i32 -1, i32 -1)
%12 = call i32 @line3d(i32 1, i32 -1, i32 1, i32 1, i32 -1, i32 -1)
ret void
}

LLVM IR (-O2):
define void @draw_unit_cube() {
%1 = tail call i32 @line3d(i32 -1, i32 -1, i32 -1, i32 1, i32 -1, i32 -1)
%2 = tail call i32 @line3d(i32 1, i32 -1, i32 -1, i32 1, i32 1, i32 -1)
%3 = tail call i32 @line3d(i32 1, i32 1, i32 -1, i32 -1, i32 1, i32 -1)
%4 = tail call i32 @line3d(i32 -1, i32 1, i32 -1, i32 -1, i32 -1, i32 -1)
%5 = tail call i32 @line3d(i32 -1, i32 -1, i32 1, i32 1, i32 -1, i32 1)
%6 = tail call i32 @line3d(i32 1, i32 -1, i32 1, i32 1, i32 1, i32 1)
%7 = tail call i32 @line3d(i32 1, i32 1, i32 1, i32 -1, i32 1, i32 1)
%8 = tail call i32 @line3d(i32 -1, i32 1, i32 1, i32 -1, i32 -1, i32 1)
%9 = tail call i32 @line3d(i32 1, i32 1, i32 1, i32 1, i32 1, i32 -1)
%10 = tail call i32 @line3d(i32 -1, i32 1, i32 1, i32 -1, i32 1, i32 -1)
%11 = tail call i32 @line3d(i32 -1, i32 -1, i32 1, i32 -1, i32 -1, i32 -1)
%12 = tail call i32 @line3d(i32 1, i32 -1, i32 1, i32 1, i32 -1, i32 -1)
ret void
}