main(argc, argv) int argc;
char **argv;
{
  short val;
  winopen("moretxt2");
  unqdevice(262);
  qdevice(257);
  while (qread(&val) != 261)
    ;
  if (argc == 2)
    hfont(argv[1]);
  else
    hfont("futura.l");
  htextsize(0.03, 0.04);
  ortho2(0.0, 1.0, 0.0, 1.0);
  color(1);
  clear();
  drawstuff();
  htextang(45.0);
  drawstuff();
  htextang(160.0);
  drawstuff();
  htextang(270.0);
  drawstuff();
  htextang(0.0);
  drawstuff2();
  htextang(45.0);
  drawstuff2();
  htextang(160.0);
  drawstuff2();
  htextang(270.0);
  drawstuff2();
  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    0xe43(%rip),%rdi
mov    $0x0,%al
call   1090 <winopen@plt>
mov    $0x106,%edi
mov    $0x0,%al
call   1080 <unqdevice@plt>
mov    $0x101,%edi
mov    $0x0,%al
call   1050 <qdevice@plt>
lea    -0x12(%rbp),%rdi
mov    $0x0,%al
call   10d0 <qread@plt>
cmp    $0x105,%eax
je     1227 <main+0x57>
jmp    120c <main+0x3c>
cmpl   $0x2,-0x8(%rbp)
jne    1245 <main+0x75>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   10c0 <hfont@plt>
jmp    1253 <main+0x83>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   10c0 <hfont@plt>
movsd  0xdc5(%rip),%xmm0
movsd  0xdc5(%rip),%xmm1
mov    $0x2,%al
call   1030 <htextsize@plt>
xorps  %xmm2,%xmm2
movsd  0xda3(%rip),%xmm3
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
mov    $0x4,%al
call   1070 <ortho2@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   10b0 <color@plt>
mov    $0x0,%al
call   10e0 <clear@plt>
mov    $0x0,%al
call   10f0 <drawstuff@plt>
movsd  0xd6c(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   10f0 <drawstuff@plt>
movsd  0xd4e(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   10f0 <drawstuff@plt>
movsd  0xd30(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   10f0 <drawstuff@plt>
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   1040 <drawstuff2@plt>
movsd  0xd19(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   1040 <drawstuff2@plt>
movsd  0xcfb(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   1040 <drawstuff2@plt>
movsd  0xcdd(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   1040 <drawstuff2@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    0xe4c(%rip),%rdi
xor    %eax,%eax
call   1090 <winopen@plt>
mov    $0x106,%edi
xor    %eax,%eax
call   1080 <unqdevice@plt>
mov    $0x101,%edi
xor    %eax,%eax
call   1050 <qdevice@plt>
lea    0xe(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   10d0 <qread@plt>
cmp    $0x105,%eax
jne    1210 <main+0x40>
cmp    $0x2,%ebp
jne    122c <main+0x5c>
mov    0x8(%r14),%rdi
jmp    1233 <main+0x63>
lea    0xe06(%rip),%rdi
xor    %eax,%eax
call   10c0 <hfont@plt>
movsd  0xdbe(%rip),%xmm0
movsd  0xdbe(%rip),%xmm1
mov    $0x2,%al
call   1030 <htextsize@plt>
movsd  0xdb7(%rip),%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
movaps %xmm1,%xmm3
mov    $0x4,%al
call   1070 <ortho2@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   10b0 <color@plt>
xor    %eax,%eax
call   10e0 <clear@plt>
xor    %eax,%eax
call   10f0 <drawstuff@plt>
movsd  0xd8d(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   10f0 <drawstuff@plt>
movsd  0xd7f(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   10f0 <drawstuff@plt>
movsd  0xd71(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   10f0 <drawstuff@plt>
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1040 <drawstuff2@plt>
movsd  0xd3a(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1040 <drawstuff2@plt>
movsd  0xd2c(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1040 <drawstuff2@plt>
movsd  0xd1e(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1040 <drawstuff2@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 = [9 x i8] c"moretxt2\00"
@.str.1 = [9 x i8] c"futura.l\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i16
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @winopen to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i32, ...) bitcast (i32 (...)* @unqdevice to i32 (i32, ...)*)(i32 262)
%9 = call i32 (i32, ...) bitcast (i32 (...)* @qdevice to i32 (i32, ...)*)(i32 257)
br label %10
10: ; preds = %13, %2
%11 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %6)
%12 = icmp ne i32 %11, 261
br i1 %12, label %13, label %14
13: ; preds = %10
br label %10
14: ; preds = %10
%15 = load i32, i32* %4
%16 = icmp eq i32 %15, 2
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @hfont to i32 (i8*, ...)*)(i8* %20)
br label %24
22: ; preds = %14
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @hfont to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %24
24: ; preds = %22, %17
%25 = call i32 (double, double, ...) bitcast (i32 (...)* @htextsize to i32 (double, double, ...)*)(double 3.000000e-02, double 4.000000e-02)
%26 = 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)
%27 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 1)
%28 = call i32 (...) @clear()
%29 = call i32 (...) @drawstuff()
%30 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 4.500000e+01)
%31 = call i32 (...) @drawstuff()
%32 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 1.600000e+02)
%33 = call i32 (...) @drawstuff()
%34 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 2.700000e+02)
%35 = call i32 (...) @drawstuff()
%36 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 0.000000e+00)
%37 = call i32 (...) @drawstuff2()
%38 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 4.500000e+01)
%39 = call i32 (...) @drawstuff2()
%40 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 1.600000e+02)
%41 = call i32 (...) @drawstuff2()
%42 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 2.700000e+02)
%43 = call i32 (...) @drawstuff2()
%44 = call i32 (...) @gexit()
%45 = load i32, i32* %3
ret i32 %45
}

LLVM IR (-O2):
@.str = [9 x i8] c"moretxt2\00"
@.str.1 = [9 x i8] c"futura.l\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 (...)* @winopen to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @unqdevice to i32 (i32, ...)*)(i32 262)
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @qdevice to i32 (i32, ...)*)(i32 257)
br label %8
8: ; preds = %8, %2
%9 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %3)
%10 = icmp eq i32 %9, 261
br i1 %10, label %11, label %8
11: ; preds = %8
%12 = icmp eq i32 %0, 2
br i1 %12, label %13, label %16
13: ; preds = %11
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
br label %16
16: ; preds = %11, %13
%17 = phi i8* [ %15, %13 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), %11 ]
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @hfont to i32 (i8*, ...)*)(i8* %17)
%19 = call i32 (double, double, ...) bitcast (i32 (...)* @htextsize to i32 (double, double, ...)*)(double 3.000000e-02, double 4.000000e-02)
%20 = 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)
%21 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 1)
%22 = call i32 (...) @clear()
%23 = call i32 (...) @drawstuff()
%24 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 4.500000e+01)
%25 = call i32 (...) @drawstuff()
%26 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 1.600000e+02)
%27 = call i32 (...) @drawstuff()
%28 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 2.700000e+02)
%29 = call i32 (...) @drawstuff()
%30 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 0.000000e+00)
%31 = call i32 (...) @drawstuff2()
%32 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 4.500000e+01)
%33 = call i32 (...) @drawstuff2()
%34 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 1.600000e+02)
%35 = call i32 (...) @drawstuff2()
%36 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 2.700000e+02)
%37 = call i32 (...) @drawstuff2()
%38 = call i32 (...) @gexit()
ret i32 0
}