#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_LINE_LOOP;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glPointSize(double);
int /*<<< orphan*/ glVertex2i(int, int);
void parallelepiped(int x1, int x2, int y1, int y2, int y3, int y4) {
  glColor3f(0.0, 0.0, 1.0);
  glPointSize(2.0);
  glBegin(GL_LINE_LOOP);
  glVertex2i(x1, y1);
  glVertex2i(x2, y3);
  glVertex2i(x2, y4);
  glVertex2i(x1, y2);
  glEnd();
}


x86 assembly (clang, -O0):
<parallelepiped>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
xorps  %xmm1,%xmm1
movsd  0xe91(%rip),%xmm2
movaps %xmm1,%xmm0
call   1050 <glColor3f@plt>
movsd  0xe79(%rip),%xmm0
call   1060 <glPointSize@plt>
mov    0x2e55(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <glVertex2i@plt>
mov    -0x8(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1030 <glVertex2i@plt>
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1030 <glVertex2i@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <glVertex2i@plt>
mov    $0x0,%al
call   1040 <glEnd@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parallelepiped>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r15d
mov    %r8d,%r12d
mov    %ecx,%r14d
mov    %edx,%r13d
mov    %esi,%ebp
mov    %edi,%ebx
movsd  0xe8d(%rip),%xmm2
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
call   1050 <glColor3f@plt>
movsd  0xe82(%rip),%xmm0
call   1060 <glPointSize@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%edi
call   1070 <glBegin@plt>
mov    %ebx,%edi
mov    %r13d,%esi
call   1030 <glVertex2i@plt>
mov    %ebp,%edi
mov    %r12d,%esi
call   1030 <glVertex2i@plt>
mov    %ebp,%edi
mov    %r15d,%esi
call   1030 <glVertex2i@plt>
mov    %ebx,%edi
mov    %r14d,%esi
call   1030 <glVertex2i@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <glEnd@plt>

LLVM IR (-O0):
@GL_LINE_LOOP = global i32 0
define void @parallelepiped(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%14 = call i32 @glPointSize(double 2.000000e+00)
%15 = load i32, i32* @GL_LINE_LOOP
%16 = call i32 @glBegin(i32 %15)
%17 = load i32, i32* %7
%18 = load i32, i32* %9
%19 = call i32 @glVertex2i(i32 %17, i32 %18)
%20 = load i32, i32* %8
%21 = load i32, i32* %11
%22 = call i32 @glVertex2i(i32 %20, i32 %21)
%23 = load i32, i32* %8
%24 = load i32, i32* %12
%25 = call i32 @glVertex2i(i32 %23, i32 %24)
%26 = load i32, i32* %7
%27 = load i32, i32* %10
%28 = call i32 @glVertex2i(i32 %26, i32 %27)
%29 = call i32 (...) @glEnd()
ret void
}

LLVM IR (-O2):
@GL_LINE_LOOP = global i32 0
define void @parallelepiped(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i32 @glColor3f(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%8 = tail call i32 @glPointSize(double 2.000000e+00)
%9 = load i32, i32* @GL_LINE_LOOP
%10 = tail call i32 @glBegin(i32 %9)
%11 = tail call i32 @glVertex2i(i32 %0, i32 %2)
%12 = tail call i32 @glVertex2i(i32 %1, i32 %4)
%13 = tail call i32 @glVertex2i(i32 %1, i32 %5)
%14 = tail call i32 @glVertex2i(i32 %0, i32 %3)
%15 = tail call i32 (...) @glEnd()
ret void
}