main(argc, argv) int argc;
char **argv;
{
  short val;
  vinit("mswin");
  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    0xe33(%rip),%rdi
mov    $0x0,%al
call   10d0 <vinit@plt>
lea    0xe2b(%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   10e0 <qread@plt>
cmp    $0x105,%eax
je     1245 <main+0x65>
jmp    122a <main+0x4a>
cmpl   $0x2,-0x8(%rbp)
jne    1263 <main+0x83>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   10c0 <hfont@plt>
jmp    1271 <main+0x91>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   10c0 <hfont@plt>
movsd  0xda7(%rip),%xmm0
movsd  0xda7(%rip),%xmm1
mov    $0x2,%al
call   1030 <htextsize@plt>
xorps  %xmm2,%xmm2
movsd  0xd85(%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   10f0 <clear@plt>
mov    $0x0,%al
call   1100 <drawstuff@plt>
movsd  0xd4e(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   1100 <drawstuff@plt>
movsd  0xd30(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   1100 <drawstuff@plt>
movsd  0xd12(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
mov    $0x0,%al
call   1100 <drawstuff@plt>
xorps  %xmm0,%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>
movsd  0xcbf(%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    0xe3c(%rip),%rdi
xor    %eax,%eax
call   10d0 <vinit@plt>
lea    0xe34(%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
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   10e0 <qread@plt>
cmp    $0x105,%eax
jne    1230 <main+0x50>
cmp    $0x2,%ebp
jne    124c <main+0x6c>
mov    0x8(%r14),%rdi
jmp    1253 <main+0x73>
lea    0xdec(%rip),%rdi
xor    %eax,%eax
call   10c0 <hfont@plt>
movsd  0xd9e(%rip),%xmm0
movsd  0xd9e(%rip),%xmm1
mov    $0x2,%al
call   1030 <htextsize@plt>
movsd  0xd97(%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   10f0 <clear@plt>
xor    %eax,%eax
call   1100 <drawstuff@plt>
movsd  0xd6d(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1100 <drawstuff@plt>
movsd  0xd5f(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1100 <drawstuff@plt>
movsd  0xd51(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1100 <drawstuff@plt>
xorps  %xmm0,%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1040 <drawstuff2@plt>
movsd  0xd1a(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1040 <drawstuff2@plt>
movsd  0xd0c(%rip),%xmm0
mov    $0x1,%al
call   10a0 <htextang@plt>
xor    %eax,%eax
call   1040 <drawstuff2@plt>
movsd  0xcfe(%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 = [6 x i8] c"mswin\00"
@.str.1 = [9 x i8] c"moretxt2\00"
@.str.2 = [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 (...)* @vinit to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @winopen to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i32, ...) bitcast (i32 (...)* @unqdevice to i32 (i32, ...)*)(i32 262)
%10 = call i32 (i32, ...) bitcast (i32 (...)* @qdevice to i32 (i32, ...)*)(i32 257)
br label %11
11: ; preds = %14, %2
%12 = call i32 (i16*, ...) bitcast (i32 (...)* @qread to i32 (i16*, ...)*)(i16* %6)
%13 = icmp ne i32 %12, 261
br i1 %13, label %14, label %15
14: ; preds = %11
br label %11
15: ; preds = %11
%16 = load i32, i32* %4
%17 = icmp eq i32 %16, 2
br i1 %17, label %18, label %23
18: ; preds = %15
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @hfont to i32 (i8*, ...)*)(i8* %21)
br label %25
23: ; preds = %15
%24 = 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 %25
25: ; preds = %23, %18
%26 = call i32 (double, double, ...) bitcast (i32 (...)* @htextsize to i32 (double, double, ...)*)(double 3.000000e-02, double 4.000000e-02)
%27 = 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)
%28 = call i32 (i32, ...) bitcast (i32 (...)* @color to i32 (i32, ...)*)(i32 1)
%29 = call i32 (...) @clear()
%30 = call i32 (...) @drawstuff()
%31 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 4.500000e+01)
%32 = call i32 (...) @drawstuff()
%33 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 1.600000e+02)
%34 = call i32 (...) @drawstuff()
%35 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 2.700000e+02)
%36 = call i32 (...) @drawstuff()
%37 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 0.000000e+00)
%38 = call i32 (...) @drawstuff2()
%39 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 4.500000e+01)
%40 = call i32 (...) @drawstuff2()
%41 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 1.600000e+02)
%42 = call i32 (...) @drawstuff2()
%43 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 2.700000e+02)
%44 = call i32 (...) @drawstuff2()
%45 = call i32 (...) @gexit()
%46 = load i32, i32* %3
ret i32 %46
}

LLVM IR (-O2):
@.str = [6 x i8] c"mswin\00"
@.str.1 = [9 x i8] c"moretxt2\00"
@.str.2 = [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 (...)* @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 ([9 x i8], [9 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 3.000000e-02, double 4.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 1)
%23 = call i32 (...) @clear()
%24 = call i32 (...) @drawstuff()
%25 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 4.500000e+01)
%26 = call i32 (...) @drawstuff()
%27 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 1.600000e+02)
%28 = call i32 (...) @drawstuff()
%29 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 2.700000e+02)
%30 = call i32 (...) @drawstuff()
%31 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 0.000000e+00)
%32 = call i32 (...) @drawstuff2()
%33 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 4.500000e+01)
%34 = call i32 (...) @drawstuff2()
%35 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 1.600000e+02)
%36 = call i32 (...) @drawstuff2()
%37 = call i32 (double, ...) bitcast (i32 (...)* @htextang to i32 (double, ...)*)(double 2.700000e+02)
%38 = call i32 (...) @drawstuff2()
%39 = call i32 (...) @gexit()
ret i32 0
}