#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_LINES;
int /*<<< orphan*/ GL_MODELVIEW;
int /*<<< orphan*/ elipsa(double, double);
int /*<<< orphan*/ glBegin(int /*<<< orphan*/);
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3d(double, double, double);
int /*<<< orphan*/ glEnd();
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glLoadIdentity();
int /*<<< orphan*/ glMatrixMode(int /*<<< orphan*/);
int /*<<< orphan*/ glRotated(double, double, double, double);
int /*<<< orphan*/ glScaled(double, double, double);
int /*<<< orphan*/ glTranslated(double, double, double);
int /*<<< orphan*/ glVertex2d(double, double);
void iscrtaj(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  glColor3d(0.0, 0.0, 0.0);
  glBegin(GL_LINES);
  glVertex2d(-10.0, 0.0);
  glVertex2d(10.0, 0.0);
  glVertex2d(0.0, -10.0);
  glVertex2d(0.0, 10.0);
  glEnd();
  glTranslated(4.0, 0.0, 0.0);
  glRotated(-30.0, 0.0, 0.0, 1.0);
  glColor3d(1.0, 0.0, 0.0);
  elipsa(6.0, 3.0);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  glRotated(-30.0, 0.0, 0.0, 1.0);
  glTranslated(4.0, 0.0, 0.0);
  glColor3d(0.0, 0.0, 1.0);
  elipsa(6.0, 3.0);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  glScaled(-1.0, 1.0, 1.0);
  glTranslated(3.0, 0.0, 0.0);
  glRotated(75.0, 0.0, 0.0, 1.0);
  glColor3d(0.0, 1.0, 0.0);
  elipsa(4.0, 1.0);
  glFlush();
}


x86 assembly (clang, -O0):
<iscrtaj>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e05(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
mov    0x2e07(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0x0,%al
call   1060 <glLoadIdentity@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
call   1080 <glColor3d@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%edi
call   10d0 <glBegin@plt>
movsd  0xe35(%rip),%xmm0
xorps  %xmm1,%xmm1
call   10b0 <glVertex2d@plt>
movsd  0xe1d(%rip),%xmm0
xorps  %xmm1,%xmm1
call   10b0 <glVertex2d@plt>
xorps  %xmm0,%xmm0
movsd  0xe12(%rip),%xmm1
call   10b0 <glVertex2d@plt>
xorps  %xmm0,%xmm0
movsd  0xdfa(%rip),%xmm1
call   10b0 <glVertex2d@plt>
mov    $0x0,%al
call   1050 <glEnd@plt>
movsd  0xdae(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10c0 <glTranslated@plt>
movsd  0xdcb(%rip),%xmm0
xorps  %xmm2,%xmm2
movsd  0xd98(%rip),%xmm3
movaps %xmm2,%xmm1
call   10e0 <glRotated@plt>
movsd  0xd88(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1080 <glColor3d@plt>
movsd  0xd95(%rip),%xmm0
movsd  0xd7d(%rip),%xmm1
call   1070 <elipsa@plt>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0x0,%al
call   1060 <glLoadIdentity@plt>
movsd  0xd73(%rip),%xmm0
xorps  %xmm2,%xmm2
movsd  0xd40(%rip),%xmm3
movaps %xmm2,%xmm1
call   10e0 <glRotated@plt>
movsd  0xd28(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10c0 <glTranslated@plt>
xorps  %xmm1,%xmm1
movsd  0xd1a(%rip),%xmm2
movaps %xmm1,%xmm0
call   1080 <glColor3d@plt>
movsd  0xd2a(%rip),%xmm0
movsd  0xd12(%rip),%xmm1
call   1070 <elipsa@plt>
mov    0x2cce(%rip),%rax
mov    (%rax),%edi
call   1040 <glMatrixMode@plt>
mov    $0x0,%al
call   1060 <glLoadIdentity@plt>
movsd  0xcf8(%rip),%xmm0
movsd  0xcd8(%rip),%xmm2
movaps %xmm2,%xmm1
call   10a0 <glScaled@plt>
movsd  0xcd8(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   10c0 <glTranslated@plt>
movsd  0xcbd(%rip),%xmm0
xorps  %xmm2,%xmm2
movsd  0xcaa(%rip),%xmm3
movaps %xmm2,%xmm1
call   10e0 <glRotated@plt>
xorps  %xmm2,%xmm2
movsd  0xc97(%rip),%xmm1
movaps %xmm2,%xmm0
call   1080 <glColor3d@plt>
movsd  0xc7f(%rip),%xmm0
movsd  0xc7f(%rip),%xmm1
call   1070 <elipsa@plt>
mov    $0x0,%al
call   1090 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscrtaj>:
push   %rbx
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
mov    0x2e0a(%rip),%rbx
mov    (%rbx),%edi
call   1040 <glMatrixMode@plt>
xor    %eax,%eax
call   1060 <glLoadIdentity@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1080 <glColor3d@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
call   10d0 <glBegin@plt>
movsd  0xdf8(%rip),%xmm0
xorps  %xmm1,%xmm1
call   10b0 <glVertex2d@plt>
movsd  0xdf0(%rip),%xmm0
xorps  %xmm1,%xmm1
call   10b0 <glVertex2d@plt>
xorps  %xmm0,%xmm0
movsd  0xdd5(%rip),%xmm1
call   10b0 <glVertex2d@plt>
xorps  %xmm0,%xmm0
movsd  0xdcd(%rip),%xmm1
call   10b0 <glVertex2d@plt>
xor    %eax,%eax
call   1050 <glEnd@plt>
movsd  0xdc1(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   10c0 <glTranslated@plt>
movsd  0xdb6(%rip),%xmm0
movsd  0xdb6(%rip),%xmm3
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   10e0 <glRotated@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xd9d(%rip),%xmm0
call   1080 <glColor3d@plt>
movsd  0xd98(%rip),%xmm0
movsd  0xd98(%rip),%xmm1
call   1070 <elipsa@plt>
mov    (%rbx),%edi
call   1040 <glMatrixMode@plt>
xor    %eax,%eax
call   1060 <glLoadIdentity@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xd5f(%rip),%xmm0
movsd  0xd5f(%rip),%xmm3
call   10e0 <glRotated@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xd3c(%rip),%xmm0
call   10c0 <glTranslated@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xd39(%rip),%xmm2
call   1080 <glColor3d@plt>
movsd  0xd34(%rip),%xmm0
movsd  0xd34(%rip),%xmm1
call   1070 <elipsa@plt>
mov    (%rbx),%edi
call   1040 <glMatrixMode@plt>
xor    %eax,%eax
call   1060 <glLoadIdentity@plt>
movsd  0xd21(%rip),%xmm0
movsd  0xd01(%rip),%xmm1
movaps %xmm1,%xmm2
call   10a0 <glScaled@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xcfb(%rip),%xmm0
call   10c0 <glTranslated@plt>
movsd  0xcfe(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
movsd  0xcd0(%rip),%xmm3
call   10e0 <glRotated@plt>
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movsd  0xcbd(%rip),%xmm1
call   1080 <glColor3d@plt>
movsd  0xca0(%rip),%xmm0
movsd  0xca8(%rip),%xmm1
call   1070 <elipsa@plt>
xor    %eax,%eax
pop    %rbx
jmp    1090 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_MODELVIEW = global i32 0
@GL_LINES = global i32 0
define void @iscrtaj() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = load i32, i32* @GL_MODELVIEW
%4 = call i32 @glMatrixMode(i32 %3)
%5 = call i32 (...) @glLoadIdentity()
%6 = call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = load i32, i32* @GL_LINES
%8 = call i32 @glBegin(i32 %7)
%9 = call i32 @glVertex2d(double -1.000000e+01, double 0.000000e+00)
%10 = call i32 @glVertex2d(double 1.000000e+01, double 0.000000e+00)
%11 = call i32 @glVertex2d(double 0.000000e+00, double -1.000000e+01)
%12 = call i32 @glVertex2d(double 0.000000e+00, double 1.000000e+01)
%13 = call i32 (...) @glEnd()
%14 = call i32 @glTranslated(double 4.000000e+00, double 0.000000e+00, double 0.000000e+00)
%15 = call i32 @glRotated(double -3.000000e+01, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%16 = call i32 @glColor3d(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%17 = call i32 @elipsa(double 6.000000e+00, double 3.000000e+00)
%18 = load i32, i32* @GL_MODELVIEW
%19 = call i32 @glMatrixMode(i32 %18)
%20 = call i32 (...) @glLoadIdentity()
%21 = call i32 @glRotated(double -3.000000e+01, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%22 = call i32 @glTranslated(double 4.000000e+00, double 0.000000e+00, double 0.000000e+00)
%23 = call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%24 = call i32 @elipsa(double 6.000000e+00, double 3.000000e+00)
%25 = load i32, i32* @GL_MODELVIEW
%26 = call i32 @glMatrixMode(i32 %25)
%27 = call i32 (...) @glLoadIdentity()
%28 = call i32 @glScaled(double -1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%29 = call i32 @glTranslated(double 3.000000e+00, double 0.000000e+00, double 0.000000e+00)
%30 = call i32 @glRotated(double 7.500000e+01, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%31 = call i32 @glColor3d(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%32 = call i32 @elipsa(double 4.000000e+00, double 1.000000e+00)
%33 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
@GL_MODELVIEW = global i32 0
@GL_LINES = global i32 0
define void @iscrtaj() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = load i32, i32* @GL_MODELVIEW
%4 = tail call i32 @glMatrixMode(i32 %3)
%5 = tail call i32 (...) @glLoadIdentity()
%6 = tail call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%7 = load i32, i32* @GL_LINES
%8 = tail call i32 @glBegin(i32 %7)
%9 = tail call i32 @glVertex2d(double -1.000000e+01, double 0.000000e+00)
%10 = tail call i32 @glVertex2d(double 1.000000e+01, double 0.000000e+00)
%11 = tail call i32 @glVertex2d(double 0.000000e+00, double -1.000000e+01)
%12 = tail call i32 @glVertex2d(double 0.000000e+00, double 1.000000e+01)
%13 = tail call i32 (...) @glEnd()
%14 = tail call i32 @glTranslated(double 4.000000e+00, double 0.000000e+00, double 0.000000e+00)
%15 = tail call i32 @glRotated(double -3.000000e+01, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%16 = tail call i32 @glColor3d(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%17 = tail call i32 @elipsa(double 6.000000e+00, double 3.000000e+00)
%18 = load i32, i32* @GL_MODELVIEW
%19 = tail call i32 @glMatrixMode(i32 %18)
%20 = tail call i32 (...) @glLoadIdentity()
%21 = tail call i32 @glRotated(double -3.000000e+01, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%22 = tail call i32 @glTranslated(double 4.000000e+00, double 0.000000e+00, double 0.000000e+00)
%23 = tail call i32 @glColor3d(double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%24 = tail call i32 @elipsa(double 6.000000e+00, double 3.000000e+00)
%25 = load i32, i32* @GL_MODELVIEW
%26 = tail call i32 @glMatrixMode(i32 %25)
%27 = tail call i32 (...) @glLoadIdentity()
%28 = tail call i32 @glScaled(double -1.000000e+00, double 1.000000e+00, double 1.000000e+00)
%29 = tail call i32 @glTranslated(double 3.000000e+00, double 0.000000e+00, double 0.000000e+00)
%30 = tail call i32 @glRotated(double 7.500000e+01, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00)
%31 = tail call i32 @glColor3d(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00)
%32 = tail call i32 @elipsa(double 4.000000e+00, double 1.000000e+00)
%33 = tail call i32 (...) @glFlush()
ret void
}