main(argc, argv) int argc;
char **argv;
{
  int i;
  float x;
  short val;
  vinit("mswin");
  winopen("moretxt");
  unqdevice(262);
  qdevice(257);
  while (qread(&val) != 261)
    ;
  if (argc == 2)
    hfont(argv[1]);
  else
    hfont("futura.l");
  htextsize(0.05, 0.05);
  ortho2(0.0, 1.0, 0.0, 1.0);
  color(0);
  clear();
  drawgrid();
  hboxtext(0.1, 0.4, 0.8, 0.1, "{This is Some text] | $");
  qread(&val);
  color(0);
  clear();
  drawgrid();
  hcentertext(1);
  hboxtext(0.5, 0.5, 0.8, 0.1, "{This is Some Centered text] | $");
  hcentertext(0);
  qread(&val);
  color(0);
  clear();
  pushmatrix();
  translate(0.5, 0.5, 0.0);
  rotate(900, 'z');
  translate(-0.5, -0.5, 0.0);
  drawgrid();
  popmatrix();
  hcentertext(1);
  htextang(90.0);
  hboxtext(0.5, 0.5, 0.8, 0.1, "{This is Some Rotated Centered text] | $");
  hcentertext(0);
  htextang(0.0);
  qread(&val);
  color(0);
  clear();
  drawgrid();
  hfixedwidth(1);
  hboxtext(0.1, 0.5, 0.8, 0.1, "{This is Some Fixedwidth text] | $");
  qread(&val);
  color(0);
  clear();
  drawgrid();
  hcentertext(1);
  color(1);
  move2(0.5, 0.5);
  hcharstr("{This is Some Cent.Fixedwidth text] | $");
  hcentertext(0);
  qread(&val);
  color(0);
  clear();
  drawgrid();
  color(1);
  move2(0.9, 0.4);
  hrightjustify(1);
  hfixedwidth(0);
  hcharstr("{This is Some Right Justified text] | $");
  qread(&val);
  color(0);
  clear();
  drawgrid();
  hboxfit(0.8, 0.1, 8);
  hfixedwidth(1);
  hleftjustify(1);
  move2(0.1, 0.4);
  hcharstr("ABCDefgh");
  move2(0.1, 0.5);
  hcharstr("IJKLmnop");
  qread(&val);
  gexit();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xd9b(%rip),%rdi
mov    $0x0,%al
call   1150 <vinit@plt>
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   10d0 <winopen@plt>
mov    $0x106,%edi
mov    $0x0,%al
call   10c0 <unqdevice@plt>
mov    $0x101,%edi
mov    $0x0,%al
call   1050 <qdevice@plt>
lea    -0x1a(%rbp),%rdi
mov    $0x0,%al
call   1170 <qread@plt>
cmp    $0x105,%eax
je     12f5 <main+0x65>
jmp    12da <main+0x4a>
cmpl   $0x2,-0x8(%rbp)
jne    1313 <main+0x83>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   1110 <hfont@plt>
jmp    1321 <main+0x91>
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1110 <hfont@plt>
movsd  0xd17(%rip),%xmm1
movaps %xmm1,%xmm0
mov    $0x2,%al
call   1030 <htextsize@plt>
xorps  %xmm2,%xmm2
movsd  0xcfa(%rip),%xmm3
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
mov    $0x4,%al
call   1070 <ortho2@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1100 <color@plt>
mov    $0x0,%al
call   1180 <clear@plt>
mov    $0x0,%al
call   11b0 <drawgrid@plt>
movsd  0xc96(%rip),%xmm3
movsd  0xc9e(%rip),%xmm1
movsd  0xc9e(%rip),%xmm2
lea    0xcde(%rip),%rdi
movaps %xmm3,%xmm0
mov    $0x4,%al
call   1080 <hboxtext@plt>
lea    -0x1a(%rbp),%rdi
mov    $0x0,%al
call   1170 <qread@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1100 <color@plt>
mov    $0x0,%al
call   1180 <clear@plt>
mov    $0x0,%al
call   11b0 <drawgrid@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   10b0 <hcentertext@plt>
movsd  0xc47(%rip),%xmm1
movsd  0xc4f(%rip),%xmm2
movsd  0xc2f(%rip),%xmm3
lea    0xc9f(%rip),%rdi
movaps %xmm1,%xmm0
mov    $0x4,%al
call   1080 <hboxtext@plt>
xor    %edi,%edi
mov    $0x0,%al
call   10b0 <hcentertext@plt>
lea    -0x1a(%rbp),%rdi
mov    $0x0,%al
call   1170 <qread@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1100 <color@plt>
mov    $0x0,%al
call   1180 <clear@plt>
mov    $0x0,%al
call   1190 <pushmatrix@plt>
movsd  0xbf3(%rip),%xmm1
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm0
mov    $0x3,%al
call   1160 <translate@plt>
mov    $0x384,%edi
mov    $0x7a,%esi
mov    $0x0,%al
call   10f0 <rotate@plt>
movsd  0xbf5(%rip),%xmm1
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm0
mov    $0x3,%al
call   1160 <translate@plt>
mov    $0x0,%al
call   11b0 <drawgrid@plt>
mov    $0x0,%al
call   1040 <popmatrix@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   10b0 <hcentertext@plt>
movsd  0xbbe(%rip),%xmm0
mov    $0x1,%al
call   10e0 <htextang@plt>
movsd  0xb8f(%rip),%xmm1
movsd  0xb97(%rip),%xmm2
movsd  0xb77(%rip),%xmm3
lea    0xc08(%rip),%rdi
movaps %xmm1,%xmm0
mov    $0x4,%al
call   1080 <hboxtext@plt>
xor    %edi,%edi
mov    $0x0,%al
call   10b0 <hcentertext@plt>
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   10e0 <htextang@plt>
lea    -0x1a(%rbp),%rdi
mov    $0x0,%al
call   1170 <qread@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1100 <color@plt>
mov    $0x0,%al
call   1180 <clear@plt>
mov    $0x0,%al
call   11b0 <drawgrid@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   11a0 <hfixedwidth@plt>
movsd  0xb1d(%rip),%xmm3
movsd  0xb1d(%rip),%xmm1
movsd  0xb25(%rip),%xmm2
lea    0xbc7(%rip),%rdi
movaps %xmm3,%xmm0
mov    $0x4,%al
call   1080 <hboxtext@plt>
lea    -0x1a(%rbp),%rdi
mov    $0x0,%al
call   1170 <qread@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1100 <color@plt>
mov    $0x0,%al
call   1180 <clear@plt>
mov    $0x0,%al
call   11b0 <drawgrid@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   10b0 <hcentertext@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1100 <color@plt>
movsd  0xac2(%rip),%xmm1
movaps %xmm1,%xmm0
mov    $0x2,%al
call   1130 <move2@plt>
lea    0xb8d(%rip),%rdi
mov    $0x0,%al
call   1090 <hcharstr@plt>
xor    %edi,%edi
mov    $0x0,%al
call   10b0 <hcentertext@plt>
lea    -0x1a(%rbp),%rdi
mov    $0x0,%al
call   1170 <qread@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1100 <color@plt>
mov    $0x0,%al
call   1180 <clear@plt>
mov    $0x0,%al
call   11b0 <drawgrid@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1100 <color@plt>
movsd  0xa83(%rip),%xmm0
movsd  0xa6b(%rip),%xmm1
mov    $0x2,%al
call   1130 <move2@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1140 <hrightjustify@plt>
xor    %edi,%edi
mov    $0x0,%al
call   11a0 <hfixedwidth@plt>
lea    0xb44(%rip),%rdi
mov    $0x0,%al
call   1090 <hcharstr@plt>
lea    -0x1a(%rbp),%rdi
mov    $0x0,%al
call   1170 <qread@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1100 <color@plt>
mov    $0x0,%al
call   1180 <clear@plt>
mov    $0x0,%al
call   11b0 <drawgrid@plt>
movsd  0xa1f(%rip),%xmm0
movsd  0x9ff(%rip),%xmm1
mov    $0x8,%edi
mov    $0x2,%al
call   10a0 <hboxfit@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   11a0 <hfixedwidth@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1120 <hleftjustify@plt>
movsd  0x9d3(%rip),%xmm0
movsd  0x9db(%rip),%xmm1
mov    $0x2,%al
call   1130 <move2@plt>
lea    0xaf1(%rip),%rdi
mov    $0x0,%al
call   1090 <hcharstr@plt>
movsd  0x9ae(%rip),%xmm0
movsd  0x9ae(%rip),%xmm1
mov    $0x2,%al
call   1130 <move2@plt>
lea    0xad5(%rip),%rdi
mov    $0x0,%al
call   1090 <hcharstr@plt>
lea    -0x1a(%rbp),%rdi
mov    $0x0,%al
call   1170 <qread@plt>
mov    $0x0,%al
call   1060 <gexit@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xda4(%rip),%rdi
xor    %eax,%eax
call   1150 <vinit@plt>
lea    0xd9c(%rip),%rdi
xor    %eax,%eax
call   10d0 <winopen@plt>
mov    $0x106,%edi
xor    %eax,%eax
call   10c0 <unqdevice@plt>
mov    $0x101,%edi
xor    %eax,%eax
call   1050 <qdevice@plt>
lea    0xe(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   1170 <qread@plt>
cmp    $0x105,%eax
jne    12e0 <main+0x50>
cmp    $0x2,%ebp
jne    12fc <main+0x6c>
mov    0x8(%r14),%rdi
jmp    1303 <main+0x73>
lea    0xd53(%rip),%rdi
xor    %eax,%eax
call   1110 <hfont@plt>
movsd  0xcee(%rip),%xmm0
movaps %xmm0,%xmm1
mov    $0x2,%al
call   1030 <htextsize@plt>
movsd  0xce4(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm3
mov    $0x4,%al
call   1070 <ortho2@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1100 <color@plt>
xor    %eax,%eax
call   1180 <clear@plt>
xor    %eax,%eax
call   11b0 <drawgrid@plt>
lea    0xd0d(%rip),%rdi
movsd  0xcb6(%rip),%xmm1
movsd  0xcb6(%rip),%xmm2
movsd  0xcb6(%rip),%xmm0
movaps %xmm0,%xmm3
mov    $0x4,%al
call   1080 <hboxtext@plt>
lea    0xe(%rsp),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1170 <qread@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1100 <color@plt>
xor    %eax,%eax
call   1180 <clear@plt>
xor    %eax,%eax
call   11b0 <drawgrid@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   10b0 <hcentertext@plt>
lea    0xcca(%rip),%rdi
movsd  0xc73(%rip),%xmm0
movaps %xmm0,%xmm1
movsd  0xc58(%rip),%xmm2
movsd  0xc58(%rip),%xmm3
mov    $0x4,%al
call   1080 <hboxtext@plt>
xor    %edi,%edi
xor    %eax,%eax
call   10b0 <hcentertext@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1170 <qread@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1100 <color@plt>
xor    %eax,%eax
call   1180 <clear@plt>
xor    %eax,%eax
call   1190 <pushmatrix@plt>
xorps  %xmm2,%xmm2
movsd  0xc24(%rip),%xmm0
movaps %xmm0,%xmm1
mov    $0x3,%al
call   1160 <translate@plt>
mov    $0x384,%edi
mov    $0x7a,%esi
xor    %eax,%eax
call   10f0 <rotate@plt>
movsd  0xc09(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm0,%xmm1
mov    $0x3,%al
call   1160 <translate@plt>
xor    %eax,%eax
call   11b0 <drawgrid@plt>
xor    %eax,%eax
call   1040 <popmatrix@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   10b0 <hcentertext@plt>
movsd  0xbe2(%rip),%xmm0
mov    $0x1,%al
call   10e0 <htextang@plt>
lea    0xc34(%rip),%rdi
movsd  0xbbc(%rip),%xmm0
movaps %xmm0,%xmm1
movsd  0xba1(%rip),%xmm2
movsd  0xba1(%rip),%xmm3
mov    $0x4,%al
call   1080 <hboxtext@plt>
xor    %edi,%edi
xor    %eax,%eax
call   10b0 <hcentertext@plt>
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   10e0 <htextang@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1170 <qread@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1100 <color@plt>
xor    %eax,%eax
call   1180 <clear@plt>
xor    %eax,%eax
call   11b0 <drawgrid@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   11a0 <hfixedwidth@plt>
lea    0xbf4(%rip),%rdi
movsd  0xb4b(%rip),%xmm0
movsd  0xb4b(%rip),%xmm1
movsd  0xb33(%rip),%xmm2
movaps %xmm0,%xmm3
mov    $0x4,%al
call   1080 <hboxtext@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1170 <qread@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1100 <color@plt>
xor    %eax,%eax
call   1180 <clear@plt>
xor    %eax,%eax
call   11b0 <drawgrid@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   10b0 <hcentertext@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1100 <color@plt>
movsd  0xaf8(%rip),%xmm0
movaps %xmm0,%xmm1
mov    $0x2,%al
call   1130 <move2@plt>
lea    0xba3(%rip),%rdi
xor    %eax,%eax
call   1090 <hcharstr@plt>
xor    %edi,%edi
xor    %eax,%eax
call   10b0 <hcentertext@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1170 <qread@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1100 <color@plt>
xor    %eax,%eax
call   1180 <clear@plt>
xor    %eax,%eax
call   11b0 <drawgrid@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1100 <color@plt>
movsd  0xaba(%rip),%xmm0
movsd  0xa82(%rip),%xmm1
mov    $0x2,%al
call   1130 <move2@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1140 <hrightjustify@plt>
xor    %edi,%edi
xor    %eax,%eax
call   11a0 <hfixedwidth@plt>
lea    0xb5b(%rip),%rdi
xor    %eax,%eax
call   1090 <hcharstr@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1170 <qread@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1100 <color@plt>
xor    %eax,%eax
call   1180 <clear@plt>
xor    %eax,%eax
call   11b0 <drawgrid@plt>
movsd  0xa37(%rip),%xmm0
movsd  0xa37(%rip),%xmm1
mov    $0x8,%edi
mov    $0x2,%al
call   10a0 <hboxfit@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   11a0 <hfixedwidth@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1120 <hleftjustify@plt>
movsd  0xa0b(%rip),%xmm0
movsd  0x9f3(%rip),%xmm1
mov    $0x2,%al
call   1130 <move2@plt>
lea    0xb09(%rip),%rdi
xor    %eax,%eax
call   1090 <hcharstr@plt>
movsd  0x9e6(%rip),%xmm0
movsd  0x9e6(%rip),%xmm1
mov    $0x2,%al
call   1130 <move2@plt>
lea    0xaed(%rip),%rdi
xor    %eax,%eax
call   1090 <hcharstr@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1170 <qread@plt>
xor    %eax,%eax
call   1060 <gexit@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"mswin\00"
@.str.1 = [8 x i8] c"moretxt\00"
@.str.2 = [9 x i8] c"futura.l\00"
@.str.3 = [24 x i8] c"{This is Some text] | $\00"
@.str.4 = [33 x i8] c"{This is Some Centered text] | $\00"
@.str.5 = [41 x i8] c"{This is Some Rotated Centered text] | $\00"
@.str.6 = [35 x i8] c"{This is Some Fixedwidth text] | $\00"
@.str.7 = [40 x i8] c"{This is Some Cent.Fixedwidth text] | $\00"
@.str.8 = [40 x i8] c"{This is Some Right Justified text] | $\00"
@.str.9 = [9 x i8] c"ABCDefgh\00"
@.str.10 = [9 x i8] c"IJKLmnop\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
%8 = alloca i16
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @vinit to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @winopen to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i32, ...) bitcast (i32 (...)* @unqdevice to i32 (i32, ...)*)(i32 262)
%12 = call i32 (i32, ...) bitcast (i32 (...)* @qdevice to i32 (i32, ...)*)(i32 257)
br label %13
13: ; preds = %16, %2
%14 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %8)
%15 = icmp ne i32 %14, 261
br i1 %15, label %16, label %17
16: ; preds = %13
br label %13
17: ; preds = %13
%18 = load i32, i32* %4
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @hfont to i32 (i8*, ...)*)(i8* %23)
br label %27
25: ; preds = %17
%26 = call i32 (i8*, ...) bitcast (i32 (...)* @hfont to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
br label %27
27: ; preds = %25, %20
%28 = call i32 (double, double, ...) bitcast (i32 (...)* @htextsize to i32 (double, double, ...)*)(double 5.000000e-02, double 5.000000e-02)
%29 = call i32 (double, double, double, double, ...) bitcast (i32 (...)* @ortho2 to i32 (double, double, double, double, ...)*)(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%30 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%31 = call i32 (...) @clear()
%32 = call i32 (...) @drawgrid()
%33 = call i32 (double, double, double, double, i8*, ...) bitcast (i32 (...)* @hboxtext to i32 (double, double, double, double, i8*, ...)*)(double 1.000000e-01, double 4.000000e-01, double 8.000000e-01, double 1.000000e-01, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%34 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %8)
%35 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%36 = call i32 (...) @clear()
%37 = call i32 (...) @drawgrid()
%38 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 1)
%39 = call i32 (double, double, double, double, i8*, ...) bitcast (i32 (...)* @hboxtext to i32 (double, double, double, double, i8*, ...)*)(double 5.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e-01, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%40 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 0)
%41 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %8)
%42 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%43 = call i32 (...) @clear()
%44 = call i32 (...) @pushmatrix()
%45 = call i32 (double, double, double, ...) bitcast (i32 (...)* @translate to i32 (double, double, double, ...)*)(double 5.000000e-01, double 5.000000e-01, double 0.000000e+00)
%46 = call i32 (i32, i32, ...) bitcast (i32 (...)* @rotate to i32 (i32, i32, ...)*)(i32 900, i32 122)
%47 = call i32 (double, double, double, ...) bitcast (i32 (...)* @translate to i32 (double, double, double, ...)*)(double -5.000000e-01, double -5.000000e-01, double 0.000000e+00)
%48 = call i32 (...) @drawgrid()
%49 = call i32 (...) @popmatrix()
%50 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 1)
%51 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 9.000000e+01)
%52 = call i32 (double, double, double, double, i8*, ...) bitcast (i32 (...)* @hboxtext to i32 (double, double, double, double, i8*, ...)*)(double 5.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e-01, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%53 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 0)
%54 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 0.000000e+00)
%55 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %8)
%56 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%57 = call i32 (...) @clear()
%58 = call i32 (...) @drawgrid()
%59 = call i32 (i32, ...) bitcast (i32 (...)* @hfixedwidth to i32 (i32, ...)*)(i32 1)
%60 = call i32 (double, double, double, double, i8*, ...) bitcast (i32 (...)* @hboxtext to i32 (double, double, double, double, i8*, ...)*)(double 1.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e-01, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%61 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %8)
%62 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%63 = call i32 (...) @clear()
%64 = call i32 (...) @drawgrid()
%65 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 1)
%66 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 1)
%67 = call i32 (double, double, ...) bitcast (i32 (...)* @move2 to i32 (double, double, ...)*)(double 5.000000e-01, double 5.000000e-01)
%68 = call i32 (i8*, ...) bitcast (i32 (...)* @hcharstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%69 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 0)
%70 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %8)
%71 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%72 = call i32 (...) @clear()
%73 = call i32 (...) @drawgrid()
%74 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 1)
%75 = call i32 (double, double, ...) bitcast (i32 (...)* @move2 to i32 (double, double, ...)*)(double 9.000000e-01, double 4.000000e-01)
%76 = call i32 (i32, ...) bitcast (i32 (...)* @hrightjustify to i32 (i32, ...)*)(i32 1)
%77 = call i32 (i32, ...) bitcast (i32 (...)* @hfixedwidth to i32 (i32, ...)*)(i32 0)
%78 = call i32 (i8*, ...) bitcast (i32 (...)* @hcharstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
%79 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %8)
%80 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%81 = call i32 (...) @clear()
%82 = call i32 (...) @drawgrid()
%83 = call i32 (double, double, i32, ...) bitcast (i32 (...)* @hboxfit to i32 (double, double, i32, ...)*)(double 8.000000e-01, double 1.000000e-01, i32 8)
%84 = call i32 (i32, ...) bitcast (i32 (...)* @hfixedwidth to i32 (i32, ...)*)(i32 1)
%85 = call i32 (i32, ...) bitcast (i32 (...)* @hleftjustify to i32 (i32, ...)*)(i32 1)
%86 = call i32 (double, double, ...) bitcast (i32 (...)* @move2 to i32 (double, double, ...)*)(double 1.000000e-01, double 4.000000e-01)
%87 = call i32 (i8*, ...) bitcast (i32 (...)* @hcharstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%88 = call i32 (double, double, ...) bitcast (i32 (...)* @move2 to i32 (double, double, ...)*)(double 1.000000e-01, double 5.000000e-01)
%89 = call i32 (i8*, ...) bitcast (i32 (...)* @hcharstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%90 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %8)
%91 = call i32 (...) @gexit()
%92 = load i32, i32* %3
ret i32 %92
}

LLVM IR (-O2):
@.str = [6 x i8] c"mswin\00"
@.str.1 = [8 x i8] c"moretxt\00"
@.str.2 = [9 x i8] c"futura.l\00"
@.str.3 = [24 x i8] c"{This is Some text] | $\00"
@.str.4 = [33 x i8] c"{This is Some Centered text] | $\00"
@.str.5 = [41 x i8] c"{This is Some Rotated Centered text] | $\00"
@.str.6 = [35 x i8] c"{This is Some Fixedwidth text] | $\00"
@.str.7 = [40 x i8] c"{This is Some Cent.Fixedwidth text] | $\00"
@.str.8 = [40 x i8] c"{This is Some Right Justified text] | $\00"
@.str.9 = [9 x i8] c"ABCDefgh\00"
@.str.10 = [9 x i8] c"IJKLmnop\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i16
%4 = bitcast i16* %3 to i8*
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @vinit to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @winopen to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @unqdevice to i32 (i32, ...)*)(i32 262)
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @qdevice to i32 (i32, ...)*)(i32 257)
br label %9
9: ; preds = %9, %2
%10 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%11 = icmp eq i32 %10, 261
br i1 %11, label %12, label %9
12: ; preds = %9
%13 = icmp eq i32 %0, 2
br i1 %13, label %14, label %17
14: ; preds = %12
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
br label %17
17: ; preds = %12, %14
%18 = phi i8* [ %16, %14 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %12 ]
%19 = call i32 (i8*, ...) bitcast (i32 (...)* @hfont to i32 (i8*, ...)*)(i8* %18)
%20 = call i32 (double, double, ...) bitcast (i32 (...)* @htextsize to i32 (double, double, ...)*)(double 5.000000e-02, double 5.000000e-02)
%21 = call i32 (double, double, double, double, ...) bitcast (i32 (...)* @ortho2 to i32 (double, double, double, double, ...)*)(double 0.000000e+00, double 1.000000e+00, double 0.000000e+00, double 1.000000e+00)
%22 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%23 = call i32 (...) @clear()
%24 = call i32 (...) @drawgrid()
%25 = call i32 (double, double, double, double, i8*, ...) bitcast (i32 (...)* @hboxtext to i32 (double, double, double, double, i8*, ...)*)(double 1.000000e-01, double 4.000000e-01, double 8.000000e-01, double 1.000000e-01, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%26 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%27 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%28 = call i32 (...) @clear()
%29 = call i32 (...) @drawgrid()
%30 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 1)
%31 = call i32 (double, double, double, double, i8*, ...) bitcast (i32 (...)* @hboxtext to i32 (double, double, double, double, i8*, ...)*)(double 5.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e-01, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%32 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 0)
%33 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%34 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%35 = call i32 (...) @clear()
%36 = call i32 (...) @pushmatrix()
%37 = call i32 (double, double, double, ...) bitcast (i32 (...)* @translate to i32 (double, double, double, ...)*)(double 5.000000e-01, double 5.000000e-01, double 0.000000e+00)
%38 = call i32 (i32, i32, ...) bitcast (i32 (...)* @rotate to i32 (i32, i32, ...)*)(i32 900, i32 122)
%39 = call i32 (double, double, double, ...) bitcast (i32 (...)* @translate to i32 (double, double, double, ...)*)(double -5.000000e-01, double -5.000000e-01, double 0.000000e+00)
%40 = call i32 (...) @drawgrid()
%41 = call i32 (...) @popmatrix()
%42 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 1)
%43 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 9.000000e+01)
%44 = call i32 (double, double, double, double, i8*, ...) bitcast (i32 (...)* @hboxtext to i32 (double, double, double, double, i8*, ...)*)(double 5.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e-01, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%45 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 0)
%46 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 0.000000e+00)
%47 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%48 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%49 = call i32 (...) @clear()
%50 = call i32 (...) @drawgrid()
%51 = call i32 (i32, ...) bitcast (i32 (...)* @hfixedwidth to i32 (i32, ...)*)(i32 1)
%52 = call i32 (double, double, double, double, i8*, ...) bitcast (i32 (...)* @hboxtext to i32 (double, double, double, double, i8*, ...)*)(double 1.000000e-01, double 5.000000e-01, double 8.000000e-01, double 1.000000e-01, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%53 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%54 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%55 = call i32 (...) @clear()
%56 = call i32 (...) @drawgrid()
%57 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 1)
%58 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 1)
%59 = call i32 (double, double, ...) bitcast (i32 (...)* @move2 to i32 (double, double, ...)*)(double 5.000000e-01, double 5.000000e-01)
%60 = call i32 (i8*, ...) bitcast (i32 (...)* @hcharstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%61 = call i32 (i32, ...) bitcast (i32 (...)* @hcentertext to i32 (i32, ...)*)(i32 0)
%62 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%63 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%64 = call i32 (...) @clear()
%65 = call i32 (...) @drawgrid()
%66 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 1)
%67 = call i32 (double, double, ...) bitcast (i32 (...)* @move2 to i32 (double, double, ...)*)(double 9.000000e-01, double 4.000000e-01)
%68 = call i32 (i32, ...) bitcast (i32 (...)* @hrightjustify to i32 (i32, ...)*)(i32 1)
%69 = call i32 (i32, ...) bitcast (i32 (...)* @hfixedwidth to i32 (i32, ...)*)(i32 0)
%70 = call i32 (i8*, ...) bitcast (i32 (...)* @hcharstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
%71 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%72 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 0)
%73 = call i32 (...) @clear()
%74 = call i32 (...) @drawgrid()
%75 = call i32 (double, double, i32, ...) bitcast (i32 (...)* @hboxfit to i32 (double, double, i32, ...)*)(double 8.000000e-01, double 1.000000e-01, i32 8)
%76 = call i32 (i32, ...) bitcast (i32 (...)* @hfixedwidth to i32 (i32, ...)*)(i32 1)
%77 = call i32 (i32, ...) bitcast (i32 (...)* @hleftjustify to i32 (i32, ...)*)(i32 1)
%78 = call i32 (double, double, ...) bitcast (i32 (...)* @move2 to i32 (double, double, ...)*)(double 1.000000e-01, double 4.000000e-01)
%79 = call i32 (i8*, ...) bitcast (i32 (...)* @hcharstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%80 = call i32 (double, double, ...) bitcast (i32 (...)* @move2 to i32 (double, double, ...)*)(double 1.000000e-01, double 5.000000e-01)
%81 = call i32 (i8*, ...) bitcast (i32 (...)* @hcharstr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%82 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%83 = call i32 (...) @gexit()
ret i32 0
}