#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*/ bar(int /*<<< orphan*/, int /*<<< orphan*/, int, int);
int /*<<< orphan*/ bar3d(int, int, int, int, int, int);
int /*<<< orphan*/ circle(int, int, int);
int /*<<< orphan*/ cleardevice();
int /*<<< orphan*/ getch();
int getmaxx();
int getmaxy();
int /*<<< orphan*/ graphdefaults();
int /*<<< orphan*/ initgraph(int *, int *, char *);
int /*<<< orphan*/ line(int /*<<< orphan*/, int, int, int);
int /*<<< orphan*/ outtextxy(int, int, char *);
int /*<<< orphan*/ rectangle(int /*<<< orphan*/, int /*<<< orphan*/, int, int);
int /*<<< orphan*/ setcolor(int);
int /*<<< orphan*/ setlinestyle(int, int /*<<< orphan*/, int);
int /*<<< orphan*/ setusercharsize(int, int, int, int);
int /*<<< orphan*/ setviewport(int, int, int, int, int);
void main(int argc, char **argv) {
  int graphdriver, graphmode;
  graphdriver = 11;
  graphmode = 2;
  initgraph(&graphdriver, &graphmode, "");
  setviewport(0, 0, getmaxx() / 2, getmaxy() / 2, 0);
  rectangle(0, 0, getmaxx() / 2, getmaxy() / 2);
  outtextxy(275, 10, "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
  setusercharsize(5, 2, 7, 3);
  setviewport(0, 0, getmaxx() / 2, getmaxy() / 2, 0);
  line(0, 0, getmaxx(), getmaxy());
  getch();
  setviewport(getmaxx() / 2, getmaxy() / 2, getmaxx(), getmaxy(), 1);
  setlinestyle(3, 0, 3);
  line(0, 0, getmaxx(), getmaxy());
  setviewport(0, 0, getmaxx(), getmaxy(), 1);
  circle(150, 150, 200);
  setviewport(0, 0, 300, 300, 1);
  setlinestyle(0, 0, 1);
  line(0, getmaxy(), getmaxx(), 0);
  setviewport(0, 0, getmaxx(), getmaxy(), 1);
  bar(0, 0, getmaxx(), getmaxy() / 10);
  setcolor(4);
  outtextxy(10, 10, "HELLO WORLD");
  cleardevice();
  bar(0, 0, getmaxx(), getmaxy() / 10);
  setcolor(1);
  outtextxy(50, 20, "HELLO WORLD");
  graphdefaults();
  circle(320, 240, 100);
  bar3d(10, 50, 30, 100, 20, 1);
  setviewport(getmaxx() / 2, getmaxy() / 2, getmaxx(), getmaxy(), 0);
  circle(0, 0, 20);
  setviewport(0, 0, 160, 120, 1);
  setcolor(2);
  outtextxy(50, 100, "ABCDEFGHIJKLMONPQRSTUVWXYZ");
  getch();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xb,-0x14(%rbp)
movl   $0x2,-0x18(%rbp)
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    0xdfa(%rip),%rdx
call   1040 <initgraph@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x58(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x58(%rbp),%edx
mov    %eax,%ecx
xor    %r8d,%r8d
mov    %r8d,%edi
mov    %r8d,%esi
call   10b0 <setviewport@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x54(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x54(%rbp),%edx
mov    %eax,%ecx
xor    %esi,%esi
mov    %esi,%edi
call   1060 <rectangle@plt>
mov    $0x113,%edi
mov    $0xa,%esi
lea    0xd5b(%rip),%rdx
call   1080 <outtextxy@plt>
mov    $0x5,%edi
mov    $0x2,%esi
mov    $0x7,%edx
mov    $0x3,%ecx
call   1030 <setusercharsize@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x50(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0x50(%rbp),%edx
mov    %eax,%ecx
xor    %r8d,%r8d
mov    %r8d,%edi
mov    %r8d,%esi
call   10b0 <setviewport@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    %eax,-0x4c(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    -0x4c(%rbp),%edx
mov    %eax,%ecx
xor    %esi,%esi
mov    %esi,%edi
call   1110 <line@plt>
mov    $0x0,%al
call   10f0 <getch@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x48(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x44(%rbp)
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    %eax,-0x40(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    -0x48(%rbp),%edi
mov    -0x44(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    %eax,%ecx
mov    $0x1,%r8d
call   10b0 <setviewport@plt>
mov    $0x3,%edx
xor    %esi,%esi
mov    %edx,%edi
call   10a0 <setlinestyle@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    %eax,-0x3c(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    -0x3c(%rbp),%edx
mov    %eax,%ecx
xor    %esi,%esi
mov    %esi,%edi
call   1110 <line@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    %eax,-0x38(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    -0x38(%rbp),%edx
mov    %eax,%ecx
xor    %esi,%esi
mov    $0x1,%r8d
mov    %esi,%edi
call   10b0 <setviewport@plt>
mov    $0x96,%esi
mov    $0xc8,%edx
mov    %esi,%edi
call   10c0 <circle@plt>
xor    %esi,%esi
mov    $0x12c,%ecx
mov    $0x1,%r8d
mov    %esi,%edi
mov    %ecx,%edx
call   10b0 <setviewport@plt>
xor    %esi,%esi
mov    $0x1,%edx
mov    %esi,%edi
call   10a0 <setlinestyle@plt>
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    %eax,-0x34(%rbp)
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    -0x34(%rbp),%esi
mov    %eax,%edx
xor    %ecx,%ecx
mov    %ecx,%edi
call   1110 <line@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    %eax,-0x30(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    -0x30(%rbp),%edx
mov    %eax,%ecx
xor    %esi,%esi
mov    $0x1,%r8d
mov    %esi,%edi
call   10b0 <setviewport@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    %eax,-0x2c(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x2c(%rbp),%edx
mov    %eax,%ecx
xor    %esi,%esi
mov    %esi,%edi
call   1070 <bar@plt>
mov    $0x4,%edi
call   1120 <setcolor@plt>
mov    $0xa,%esi
lea    0xbab(%rip),%rdx
mov    %esi,%edi
call   1080 <outtextxy@plt>
mov    $0x0,%al
call   1050 <cleardevice@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x28(%rbp),%edx
mov    %eax,%ecx
xor    %esi,%esi
mov    %esi,%edi
call   1070 <bar@plt>
mov    $0x1,%edi
call   1120 <setcolor@plt>
mov    $0x32,%edi
mov    $0x14,%esi
lea    0xb5b(%rip),%rdx
call   1080 <outtextxy@plt>
mov    $0x0,%al
call   10d0 <graphdefaults@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x64,%edx
call   10c0 <circle@plt>
mov    $0xa,%edi
mov    $0x32,%esi
mov    $0x1e,%edx
mov    $0x64,%ecx
mov    $0x14,%r8d
mov    $0x1,%r9d
call   1100 <bar3d@plt>
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   10e0 <getmaxx@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1090 <getmaxy@plt>
mov    -0x24(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    %eax,%ecx
xor    %r8d,%r8d
call   10b0 <setviewport@plt>
xor    %esi,%esi
mov    $0x14,%edx
mov    %esi,%edi
call   10c0 <circle@plt>
xor    %esi,%esi
mov    $0xa0,%edx
mov    $0x78,%ecx
mov    $0x1,%r8d
mov    %esi,%edi
call   10b0 <setviewport@plt>
mov    $0x2,%edi
call   1120 <setcolor@plt>
mov    $0x32,%edi
mov    $0x64,%esi
lea    0xa98(%rip),%rdx
call   1080 <outtextxy@plt>
mov    $0x0,%al
call   10f0 <getch@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
movl   $0xb,0xc(%rsp)
movl   $0x2,0x8(%rsp)
lea    0xe07(%rip),%rdx
lea    0xc(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1040 <initgraph@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
shr    $0x1f,%ebx
add    %eax,%ebx
sar    %ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
xor    %r8d,%r8d
call   10b0 <setviewport@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
shr    $0x1f,%ebx
add    %eax,%ebx
sar    %ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
call   1060 <rectangle@plt>
lea    0xd72(%rip),%rdx
mov    $0x113,%edi
mov    $0xa,%esi
call   1080 <outtextxy@plt>
mov    $0x5,%edi
mov    $0x2,%esi
mov    $0x7,%edx
mov    $0x3,%ecx
call   1030 <setusercharsize@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
shr    $0x1f,%ebx
add    %eax,%ebx
sar    %ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
xor    %r8d,%r8d
call   10b0 <setviewport@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
mov    %eax,%ecx
call   1110 <line@plt>
xor    %eax,%eax
call   10f0 <getch@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
shr    $0x1f,%ebx
add    %eax,%ebx
sar    %ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
sar    %ebp
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1090 <getmaxy@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r14d,%edx
mov    %eax,%ecx
mov    $0x1,%r8d
call   10b0 <setviewport@plt>
mov    $0x3,%edi
xor    %esi,%esi
mov    $0x3,%edx
call   10a0 <setlinestyle@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
mov    %eax,%ecx
call   1110 <line@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
mov    %eax,%ecx
mov    $0x1,%r8d
call   10b0 <setviewport@plt>
mov    $0x96,%edi
mov    $0x96,%esi
mov    $0xc8,%edx
call   10c0 <circle@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x12c,%edx
mov    $0x12c,%ecx
mov    $0x1,%r8d
call   10b0 <setviewport@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%edx
call   10a0 <setlinestyle@plt>
xor    %eax,%eax
call   1090 <getmaxy@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10e0 <getmaxx@plt>
xor    %edi,%edi
mov    %ebx,%esi
mov    %eax,%edx
xor    %ecx,%ecx
call   1110 <line@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
mov    %eax,%ecx
mov    $0x1,%r8d
call   10b0 <setviewport@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x22,%rcx
add    %eax,%ecx
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
call   1070 <bar@plt>
mov    $0x4,%edi
call   1120 <setcolor@plt>
lea    0xbc0(%rip),%rbx
mov    $0xa,%edi
mov    $0xa,%esi
mov    %rbx,%rdx
call   1080 <outtextxy@plt>
xor    %eax,%eax
call   1050 <cleardevice@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1090 <getmaxy@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rax
shr    $0x3f,%rax
sar    $0x22,%rcx
add    %eax,%ecx
xor    %edi,%edi
xor    %esi,%esi
mov    %ebp,%edx
call   1070 <bar@plt>
mov    $0x1,%edi
call   1120 <setcolor@plt>
mov    $0x32,%edi
mov    $0x14,%esi
mov    %rbx,%rdx
call   1080 <outtextxy@plt>
xor    %eax,%eax
call   10d0 <graphdefaults@plt>
mov    $0x140,%edi
mov    $0xf0,%esi
mov    $0x64,%edx
call   10c0 <circle@plt>
mov    $0xa,%edi
mov    $0x32,%esi
mov    $0x1e,%edx
mov    $0x64,%ecx
mov    $0x14,%r8d
mov    $0x1,%r9d
call   1100 <bar3d@plt>
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%ebx
shr    $0x1f,%ebx
add    %eax,%ebx
sar    %ebx
xor    %eax,%eax
call   1090 <getmaxy@plt>
mov    %eax,%ebp
shr    $0x1f,%ebp
add    %eax,%ebp
sar    %ebp
xor    %eax,%eax
call   10e0 <getmaxx@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1090 <getmaxy@plt>
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r14d,%edx
mov    %eax,%ecx
xor    %r8d,%r8d
call   10b0 <setviewport@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x14,%edx
call   10c0 <circle@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xa0,%edx
mov    $0x78,%ecx
mov    $0x1,%r8d
call   10b0 <setviewport@plt>
mov    $0x2,%edi
call   1120 <setcolor@plt>
lea    0xaac(%rip),%rdx
mov    $0x32,%edi
mov    $0x64,%esi
call   1080 <outtextxy@plt>
xor    %eax,%eax
call   10f0 <getch@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [27 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZ\00"
@.str.2 = [12 x i8] c"HELLO WORLD\00"
@.str.3 = [27 x i8] c"ABCDEFGHIJKLMONPQRSTUVWXYZ\00"
define void @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
store i32 11, i32* %5
store i32 2, i32* %6
%7 = call i32 @initgraph(i32* %5, i32* %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @getmaxx()
%9 = sdiv i32 %8, 2
%10 = call i32 (...) @getmaxy()
%11 = sdiv i32 %10, 2
%12 = call i32 @setviewport(i32 0, i32 0, i32 %9, i32 %11, i32 0)
%13 = call i32 (...) @getmaxx()
%14 = sdiv i32 %13, 2
%15 = call i32 (...) @getmaxy()
%16 = sdiv i32 %15, 2
%17 = call i32 @rectangle(i32 0, i32 0, i32 %14, i32 %16)
%18 = call i32 @outtextxy(i32 275, i32 10, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @setusercharsize(i32 5, i32 2, i32 7, i32 3)
%20 = call i32 (...) @getmaxx()
%21 = sdiv i32 %20, 2
%22 = call i32 (...) @getmaxy()
%23 = sdiv i32 %22, 2
%24 = call i32 @setviewport(i32 0, i32 0, i32 %21, i32 %23, i32 0)
%25 = call i32 (...) @getmaxx()
%26 = call i32 (...) @getmaxy()
%27 = call i32 @line(i32 0, i32 0, i32 %25, i32 %26)
%28 = call i32 (...) @getch()
%29 = call i32 (...) @getmaxx()
%30 = sdiv i32 %29, 2
%31 = call i32 (...) @getmaxy()
%32 = sdiv i32 %31, 2
%33 = call i32 (...) @getmaxx()
%34 = call i32 (...) @getmaxy()
%35 = call i32 @setviewport(i32 %30, i32 %32, i32 %33, i32 %34, i32 1)
%36 = call i32 @setlinestyle(i32 3, i32 0, i32 3)
%37 = call i32 (...) @getmaxx()
%38 = call i32 (...) @getmaxy()
%39 = call i32 @line(i32 0, i32 0, i32 %37, i32 %38)
%40 = call i32 (...) @getmaxx()
%41 = call i32 (...) @getmaxy()
%42 = call i32 @setviewport(i32 0, i32 0, i32 %40, i32 %41, i32 1)
%43 = call i32 @circle(i32 150, i32 150, i32 200)
%44 = call i32 @setviewport(i32 0, i32 0, i32 300, i32 300, i32 1)
%45 = call i32 @setlinestyle(i32 0, i32 0, i32 1)
%46 = call i32 (...) @getmaxy()
%47 = call i32 (...) @getmaxx()
%48 = call i32 @line(i32 0, i32 %46, i32 %47, i32 0)
%49 = call i32 (...) @getmaxx()
%50 = call i32 (...) @getmaxy()
%51 = call i32 @setviewport(i32 0, i32 0, i32 %49, i32 %50, i32 1)
%52 = call i32 (...) @getmaxx()
%53 = call i32 (...) @getmaxy()
%54 = sdiv i32 %53, 10
%55 = call i32 @bar(i32 0, i32 0, i32 %52, i32 %54)
%56 = call i32 @setcolor(i32 4)
%57 = call i32 @outtextxy(i32 10, i32 10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%58 = call i32 (...) @cleardevice()
%59 = call i32 (...) @getmaxx()
%60 = call i32 (...) @getmaxy()
%61 = sdiv i32 %60, 10
%62 = call i32 @bar(i32 0, i32 0, i32 %59, i32 %61)
%63 = call i32 @setcolor(i32 1)
%64 = call i32 @outtextxy(i32 50, i32 20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%65 = call i32 (...) @graphdefaults()
%66 = call i32 @circle(i32 320, i32 240, i32 100)
%67 = call i32 @bar3d(i32 10, i32 50, i32 30, i32 100, i32 20, i32 1)
%68 = call i32 (...) @getmaxx()
%69 = sdiv i32 %68, 2
%70 = call i32 (...) @getmaxy()
%71 = sdiv i32 %70, 2
%72 = call i32 (...) @getmaxx()
%73 = call i32 (...) @getmaxy()
%74 = call i32 @setviewport(i32 %69, i32 %71, i32 %72, i32 %73, i32 0)
%75 = call i32 @circle(i32 0, i32 0, i32 20)
%76 = call i32 @setviewport(i32 0, i32 0, i32 160, i32 120, i32 1)
%77 = call i32 @setcolor(i32 2)
%78 = call i32 @outtextxy(i32 50, i32 100, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%79 = call i32 (...) @getch()
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [27 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZ\00"
@.str.2 = [12 x i8] c"HELLO WORLD\00"
@.str.3 = [27 x i8] c"ABCDEFGHIJKLMONPQRSTUVWXYZ\00"
define void @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
store i32 11, i32* %3
store i32 2, i32* %4
%7 = call i32 @initgraph(i32* %3, i32* %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @getmaxx()
%9 = sdiv i32 %8, 2
%10 = call i32 (...) @getmaxy()
%11 = sdiv i32 %10, 2
%12 = call i32 @setviewport(i32 0, i32 0, i32 %9, i32 %11, i32 0)
%13 = call i32 (...) @getmaxx()
%14 = sdiv i32 %13, 2
%15 = call i32 (...) @getmaxy()
%16 = sdiv i32 %15, 2
%17 = call i32 @rectangle(i32 0, i32 0, i32 %14, i32 %16)
%18 = call i32 @outtextxy(i32 275, i32 10, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @setusercharsize(i32 5, i32 2, i32 7, i32 3)
%20 = call i32 (...) @getmaxx()
%21 = sdiv i32 %20, 2
%22 = call i32 (...) @getmaxy()
%23 = sdiv i32 %22, 2
%24 = call i32 @setviewport(i32 0, i32 0, i32 %21, i32 %23, i32 0)
%25 = call i32 (...) @getmaxx()
%26 = call i32 (...) @getmaxy()
%27 = call i32 @line(i32 0, i32 0, i32 %25, i32 %26)
%28 = call i32 (...) @getch()
%29 = call i32 (...) @getmaxx()
%30 = sdiv i32 %29, 2
%31 = call i32 (...) @getmaxy()
%32 = sdiv i32 %31, 2
%33 = call i32 (...) @getmaxx()
%34 = call i32 (...) @getmaxy()
%35 = call i32 @setviewport(i32 %30, i32 %32, i32 %33, i32 %34, i32 1)
%36 = call i32 @setlinestyle(i32 3, i32 0, i32 3)
%37 = call i32 (...) @getmaxx()
%38 = call i32 (...) @getmaxy()
%39 = call i32 @line(i32 0, i32 0, i32 %37, i32 %38)
%40 = call i32 (...) @getmaxx()
%41 = call i32 (...) @getmaxy()
%42 = call i32 @setviewport(i32 0, i32 0, i32 %40, i32 %41, i32 1)
%43 = call i32 @circle(i32 150, i32 150, i32 200)
%44 = call i32 @setviewport(i32 0, i32 0, i32 300, i32 300, i32 1)
%45 = call i32 @setlinestyle(i32 0, i32 0, i32 1)
%46 = call i32 (...) @getmaxy()
%47 = call i32 (...) @getmaxx()
%48 = call i32 @line(i32 0, i32 %46, i32 %47, i32 0)
%49 = call i32 (...) @getmaxx()
%50 = call i32 (...) @getmaxy()
%51 = call i32 @setviewport(i32 0, i32 0, i32 %49, i32 %50, i32 1)
%52 = call i32 (...) @getmaxx()
%53 = call i32 (...) @getmaxy()
%54 = sdiv i32 %53, 10
%55 = call i32 @bar(i32 0, i32 0, i32 %52, i32 %54)
%56 = call i32 @setcolor(i32 4)
%57 = call i32 @outtextxy(i32 10, i32 10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%58 = call i32 (...) @cleardevice()
%59 = call i32 (...) @getmaxx()
%60 = call i32 (...) @getmaxy()
%61 = sdiv i32 %60, 10
%62 = call i32 @bar(i32 0, i32 0, i32 %59, i32 %61)
%63 = call i32 @setcolor(i32 1)
%64 = call i32 @outtextxy(i32 50, i32 20, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%65 = call i32 (...) @graphdefaults()
%66 = call i32 @circle(i32 320, i32 240, i32 100)
%67 = call i32 @bar3d(i32 10, i32 50, i32 30, i32 100, i32 20, i32 1)
%68 = call i32 (...) @getmaxx()
%69 = sdiv i32 %68, 2
%70 = call i32 (...) @getmaxy()
%71 = sdiv i32 %70, 2
%72 = call i32 (...) @getmaxx()
%73 = call i32 (...) @getmaxy()
%74 = call i32 @setviewport(i32 %69, i32 %71, i32 %72, i32 %73, i32 0)
%75 = call i32 @circle(i32 0, i32 0, i32 20)
%76 = call i32 @setviewport(i32 0, i32 0, i32 160, i32 120, i32 1)
%77 = call i32 @setcolor(i32 2)
%78 = call i32 @outtextxy(i32 50, i32 100, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
%79 = call i32 (...) @getch()
ret void
}