#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*/ GL_LINE_LOOP;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3d(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glVertex2d(double, double);
void iscrtaj(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3d(0.0, 0.0, 0.0);
  glBegin(GL_LINE_LOOP);
  glVertex2d(-8.0, -4.0);
  glVertex2d(-8.0, 4.0);
  glVertex2d(8.0, -4.0);
  glVertex2d(8.0, 4.0);
  glEnd();
  glFlush();
}


x86 assembly (clang, -O0):
<iscrtaj>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1050 <glColor3d@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
call   1080 <glBegin@plt>
movsd  0xe82(%rip),%xmm0
movsd  0xe72(%rip),%xmm1
call   1070 <glVertex2d@plt>
movsd  0xe6d(%rip),%xmm0
movsd  0xe55(%rip),%xmm1
call   1070 <glVertex2d@plt>
movsd  0xe40(%rip),%xmm0
movsd  0xe48(%rip),%xmm1
call   1070 <glVertex2d@plt>
movsd  0xe2b(%rip),%xmm0
movsd  0xe2b(%rip),%xmm1
call   1070 <glVertex2d@plt>
mov    $0x0,%al
call   1040 <glEnd@plt>
mov    $0x0,%al
call   1060 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscrtaj>:
push   %rax
mov    0x2e70(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1050 <glColor3d@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
call   1080 <glBegin@plt>
movsd  0xe6d(%rip),%xmm0
movsd  0xe6d(%rip),%xmm1
call   1070 <glVertex2d@plt>
movsd  0xe68(%rip),%xmm1
movsd  0xe50(%rip),%xmm0
call   1070 <glVertex2d@plt>
movsd  0xe5b(%rip),%xmm0
movsd  0xe43(%rip),%xmm1
call   1070 <glVertex2d@plt>
movsd  0xe46(%rip),%xmm0
movsd  0xe36(%rip),%xmm1
call   1070 <glVertex2d@plt>
xor    %eax,%eax
call   1040 <glEnd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_LINE_LOOP = global i32 0
define void @iscrtaj() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%4 = load i32, i32* @GL_LINE_LOOP
%5 = call i32 @glBegin(i32 %4)
%6 = call i32 @glVertex2d(double -8.000000e+00, double -4.000000e+00)
%7 = call i32 @glVertex2d(double -8.000000e+00, double 4.000000e+00)
%8 = call i32 @glVertex2d(double 8.000000e+00, double -4.000000e+00)
%9 = call i32 @glVertex2d(double 8.000000e+00, double 4.000000e+00)
%10 = call i32 (...) @glEnd()
%11 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_LINE_LOOP = global i32 0
define void @iscrtaj() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = tail call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%4 = load i32, i32* @GL_LINE_LOOP
%5 = tail call i32 @glBegin(i32 %4)
%6 = tail call i32 @glVertex2d(double -8.000000e+00, double -4.000000e+00)
%7 = tail call i32 @glVertex2d(double -8.000000e+00, double 4.000000e+00)
%8 = tail call i32 @glVertex2d(double 8.000000e+00, double -4.000000e+00)
%9 = tail call i32 @glVertex2d(double 8.000000e+00, double 4.000000e+00)
%10 = tail call i32 (...) @glEnd()
%11 = tail call i32 (...) @glFlush()
ret void
}