#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_POLYGON;
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3d(double, double, double);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glPointSize(int);
int /*<<< orphan*/ glVertex3d(int, int, int);
int /*<<< orphan*/ kula(int, int, int);
void wyswietl(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glPointSize(50);
  glColor3d(0.0, 0.0, 0.0);
  kula(-1, -1, -1);
  glColor3d(1.0, 0.0, 0.0);
  kula(1, -1, -1);
  glColor3d(0.0, 1.0, 0.0);
  kula(-1, 1, -1);
  glColor3d(1.0, 0.7, 0.0);
  kula(1, 1, -1);
  glColor3d(0.0, 0.0, 1.0);
  kula(-1, -1, 1);
  glColor3d(1.0, 0.0, 1.0);
  kula(1, -1, 1);
  glColor3d(0.0, 1.0, 1.0);
  kula(-1, 1, 1);
  glColor3d(1.0, 1.0, 1.0);
  kula(1, 1, 1);
  glColor3f(1.0, 0.0, 0.0);
  glBegin(GL_POLYGON);
  glVertex3d(-1, -1, -1);
  glVertex3d(1, -1, -1);
  glVertex3d(1, 1, -1);
  glVertex3d(-1, 1, -1);
  glVertex3d(-1, 1, 1);
  glVertex3d(1, 1, 1);
  glVertex3d(1, -1, 1);
  glVertex3d(-1, -1, 1);
  glVertex3d(-1, -1, -1);
  glVertex3d(-1, 1, -1);
  glVertex3d(-1, -1, 1);
  glVertex3d(-1, 1, 1);
  glVertex3d(1, 1, 1);
  glVertex3d(1, 1, -1);
  glVertex3d(1, -1, 1);
  glVertex3d(1, -1, -1);
  glEnd();
  glFlush();
}


x86 assembly (clang, -O0):
<wyswietl>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
mov    $0x32,%edi
call   1090 <glPointSize@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1070 <glColor3d@plt>
mov    $0xffffffff,%edx
mov    %edx,%edi
mov    %edx,%esi
call   10a0 <kula@plt>
movsd  0xe30(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1070 <glColor3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%edx
mov    %edx,%esi
call   10a0 <kula@plt>
xorps  %xmm2,%xmm2
movsd  0xe09(%rip),%xmm1
movaps %xmm2,%xmm0
call   1070 <glColor3d@plt>
mov    $0xffffffff,%edx
mov    $0x1,%esi
mov    %edx,%edi
call   10a0 <kula@plt>
movsd  0xde8(%rip),%xmm0
movsd  0xde8(%rip),%xmm1
xorps  %xmm2,%xmm2
call   1070 <glColor3d@plt>
mov    $0x1,%esi
mov    $0xffffffff,%edx
mov    %esi,%edi
call   10a0 <kula@plt>
xorps  %xmm1,%xmm1
movsd  0xdbc(%rip),%xmm2
movaps %xmm1,%xmm0
call   1070 <glColor3d@plt>
mov    $0xffffffff,%esi
mov    $0x1,%edx
mov    %esi,%edi
call   10a0 <kula@plt>
movsd  0xd9b(%rip),%xmm2
xorps  %xmm1,%xmm1
movaps %xmm2,%xmm0
call   1070 <glColor3d@plt>
mov    $0x1,%edx
mov    $0xffffffff,%esi
mov    %edx,%edi
call   10a0 <kula@plt>
xorps  %xmm0,%xmm0
movsd  0xd74(%rip),%xmm2
movaps %xmm2,%xmm1
call   1070 <glColor3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%edx
mov    %edx,%esi
call   10a0 <kula@plt>
movsd  0xd53(%rip),%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1070 <glColor3d@plt>
mov    $0x1,%edx
mov    %edx,%edi
mov    %edx,%esi
call   10a0 <kula@plt>
movsd  0xd32(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1060 <glColor3f@plt>
mov    0x2d18(%rip),%rax
mov    (%rax),%edi
call   10b0 <glBegin@plt>
mov    $0xffffffff,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%edx
mov    %edx,%esi
call   1040 <glVertex3d@plt>
mov    $0x1,%esi
mov    $0xffffffff,%edx
mov    %esi,%edi
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edx
mov    $0x1,%esi
mov    %edx,%edi
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%edx
mov    %edx,%esi
call   1040 <glVertex3d@plt>
mov    $0x1,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1040 <glVertex3d@plt>
mov    $0x1,%edx
mov    $0xffffffff,%esi
mov    %edx,%edi
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%esi
mov    $0x1,%edx
mov    %esi,%edi
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edx
mov    $0x1,%esi
mov    %edx,%edi
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%esi
mov    $0x1,%edx
mov    %esi,%edi
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%edx
mov    %edx,%esi
call   1040 <glVertex3d@plt>
mov    $0x1,%edx
mov    %edx,%edi
mov    %edx,%esi
call   1040 <glVertex3d@plt>
mov    $0x1,%esi
mov    $0xffffffff,%edx
mov    %esi,%edi
call   1040 <glVertex3d@plt>
mov    $0x1,%edx
mov    $0xffffffff,%esi
mov    %edx,%edi
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%edx
mov    %edx,%esi
call   1040 <glVertex3d@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
mov    $0x0,%al
call   1080 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<wyswietl>:
push   %rax
mov    0x2e40(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
mov    $0x32,%edi
call   1090 <glPointSize@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1070 <glColor3d@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
call   10a0 <kula@plt>
movsd  0xe2d(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1070 <glColor3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
call   10a0 <kula@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xe00(%rip),%xmm1
call   1070 <glColor3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   10a0 <kula@plt>
movsd  0xde7(%rip),%xmm1
xorps  %xmm2,%xmm2
movsd  0xdd4(%rip),%xmm0
call   1070 <glColor3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   10a0 <kula@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xdad(%rip),%xmm2
call   1070 <glColor3d@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
call   10a0 <kula@plt>
xorps  %xmm1,%xmm1
movsd  0xd89(%rip),%xmm0
movaps %xmm0,%xmm2
call   1070 <glColor3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
call   10a0 <kula@plt>
xorps  %xmm0,%xmm0
movsd  0xd62(%rip),%xmm1
movaps %xmm1,%xmm2
call   1070 <glColor3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   10a0 <kula@plt>
movsd  0xd3e(%rip),%xmm0
movaps %xmm0,%xmm1
movaps %xmm0,%xmm2
call   1070 <glColor3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   10a0 <kula@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xd11(%rip),%xmm0
call   1060 <glColor3f@plt>
mov    0x2cfd(%rip),%rax
mov    (%rax),%edi
call   10b0 <glBegin@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
call   1040 <glVertex3d@plt>
mov    $0xffffffff,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0x1,%edx
call   1040 <glVertex3d@plt>
mov    $0x1,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
call   1040 <glVertex3d@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_POLYGON = global i32 0
define void @wyswietl() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 @glPointSize(i32 50)
%4 = call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%5 = call i32 @kula(i32 -1, i32 -1, i32 -1)
%6 = call i32 @glColor3d(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = call i32 @kula(i32 1, i32 -1, i32 -1)
%8 = call i32 @glColor3d(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%9 = call i32 @kula(i32 -1, i32 1, i32 -1)
%10 = call i32 @glColor3d(double 1.000000e+00, double 0x3FE6666666666666, double 0.000000e+00)
%11 = call i32 @kula(i32 1, i32 1, i32 -1)
%12 = call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%13 = call i32 @kula(i32 -1, i32 -1, i32 1)
%14 = call i32 @glColor3d(double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%15 = call i32 @kula(i32 1, i32 -1, i32 1)
%16 = call i32 @glColor3d(double 0.000000e+00, double 1.000000e+00, double 1.000000e+00)
%17 = call i32 @kula(i32 -1, i32 1, i32 1)
%18 = call i32 @glColor3d(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%19 = call i32 @kula(i32 1, i32 1, i32 1)
%20 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%21 = load i32, i32* @GL_POLYGON
%22 = call i32 @glBegin(i32 %21)
%23 = call i32 @glVertex3d(i32 -1, i32 -1, i32 -1)
%24 = call i32 @glVertex3d(i32 1, i32 -1, i32 -1)
%25 = call i32 @glVertex3d(i32 1, i32 1, i32 -1)
%26 = call i32 @glVertex3d(i32 -1, i32 1, i32 -1)
%27 = call i32 @glVertex3d(i32 -1, i32 1, i32 1)
%28 = call i32 @glVertex3d(i32 1, i32 1, i32 1)
%29 = call i32 @glVertex3d(i32 1, i32 -1, i32 1)
%30 = call i32 @glVertex3d(i32 -1, i32 -1, i32 1)
%31 = call i32 @glVertex3d(i32 -1, i32 -1, i32 -1)
%32 = call i32 @glVertex3d(i32 -1, i32 1, i32 -1)
%33 = call i32 @glVertex3d(i32 -1, i32 -1, i32 1)
%34 = call i32 @glVertex3d(i32 -1, i32 1, i32 1)
%35 = call i32 @glVertex3d(i32 1, i32 1, i32 1)
%36 = call i32 @glVertex3d(i32 1, i32 1, i32 -1)
%37 = call i32 @glVertex3d(i32 1, i32 -1, i32 1)
%38 = call i32 @glVertex3d(i32 1, i32 -1, i32 -1)
%39 = call i32 (...) @glEnd()
%40 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_POLYGON = global i32 0
define void @wyswietl() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = tail call i32 @glPointSize(i32 50)
%4 = tail call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%5 = tail call i32 @kula(i32 -1, i32 -1, i32 -1)
%6 = tail call i32 @glColor3d(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = tail call i32 @kula(i32 1, i32 -1, i32 -1)
%8 = tail call i32 @glColor3d(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%9 = tail call i32 @kula(i32 -1, i32 1, i32 -1)
%10 = tail call i32 @glColor3d(double 1.000000e+00, double 0x3FE6666666666666, double 0.000000e+00)
%11 = tail call i32 @kula(i32 1, i32 1, i32 -1)
%12 = tail call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%13 = tail call i32 @kula(i32 -1, i32 -1, i32 1)
%14 = tail call i32 @glColor3d(double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%15 = tail call i32 @kula(i32 1, i32 -1, i32 1)
%16 = tail call i32 @glColor3d(double 0.000000e+00, double 1.000000e+00, double 1.000000e+00)
%17 = tail call i32 @kula(i32 -1, i32 1, i32 1)
%18 = tail call i32 @glColor3d(double 1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%19 = tail call i32 @kula(i32 1, i32 1, i32 1)
%20 = tail call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%21 = load i32, i32* @GL_POLYGON
%22 = tail call i32 @glBegin(i32 %21)
%23 = tail call i32 @glVertex3d(i32 -1, i32 -1, i32 -1)
%24 = tail call i32 @glVertex3d(i32 1, i32 -1, i32 -1)
%25 = tail call i32 @glVertex3d(i32 1, i32 1, i32 -1)
%26 = tail call i32 @glVertex3d(i32 -1, i32 1, i32 -1)
%27 = tail call i32 @glVertex3d(i32 -1, i32 1, i32 1)
%28 = tail call i32 @glVertex3d(i32 1, i32 1, i32 1)
%29 = tail call i32 @glVertex3d(i32 1, i32 -1, i32 1)
%30 = tail call i32 @glVertex3d(i32 -1, i32 -1, i32 1)
%31 = tail call i32 @glVertex3d(i32 -1, i32 -1, i32 -1)
%32 = tail call i32 @glVertex3d(i32 -1, i32 1, i32 -1)
%33 = tail call i32 @glVertex3d(i32 -1, i32 -1, i32 1)
%34 = tail call i32 @glVertex3d(i32 -1, i32 1, i32 1)
%35 = tail call i32 @glVertex3d(i32 1, i32 1, i32 1)
%36 = tail call i32 @glVertex3d(i32 1, i32 1, i32 -1)
%37 = tail call i32 @glVertex3d(i32 1, i32 -1, i32 1)
%38 = tail call i32 @glVertex3d(i32 1, i32 -1, i32 -1)
%39 = tail call i32 (...) @glEnd()
%40 = tail call i32 (...) @glFlush()
ret void
}