void error(code) {
  extern line, xeof, *csym, nerror, fout;
  auto f;
  if (xeof | nerror == 20) {
    xeof = 1;
    return;
  }
  nerror = nerror + 1;
  xflush();
  f = fout;
  fout = 1;
  xwrite(code);
  xwrite(' ');
  if (code == 'rd' | code == 'un') {
    name(csym + 2);
    xwrite(' ');
  }
  printn(line);
  xwrite('\n');
  xflush();
  fout = f;
}


x86 assembly (clang, -O0):
<error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2e96(%rip),%rax
mov    (%rax),%eax
mov    0x2e6d(%rip),%rcx
cmpl   $0x14,(%rcx)
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
cmp    $0x0,%eax
je     1184 <error+0x44>
mov    0x2e6f(%rip),%rax
movl   $0x1,(%rax)
jmp    1249 <error+0x109>
mov    0x2e3d(%rip),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    0x2e31(%rip),%rax
mov    %ecx,(%rax)
mov    $0x0,%al
call   1050 <xflush@plt>
mov    0x2e29(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    0x2e1d(%rip),%rax
movl   $0x1,(%rax)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1040 <xwrite@plt>
mov    $0x20,%edi
mov    $0x0,%al
call   1040 <xwrite@plt>
cmpl   $0x7264,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x756e,-0x4(%rbp)
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
cmp    $0x0,%eax
je     121a <error+0xda>
mov    0x2dd8(%rip),%rax
mov    (%rax),%rdi
add    $0x8,%rdi
mov    $0x0,%al
call   1060 <name@plt>
mov    $0x20,%edi
mov    $0x0,%al
call   1040 <xwrite@plt>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
mov    $0x0,%al
call   1030 <printn@plt>
mov    $0xa,%edi
mov    $0x0,%al
call   1040 <xwrite@plt>
mov    $0x0,%al
call   1050 <xflush@plt>
mov    -0x8(%rbp),%ecx
mov    0x2d89(%rip),%rax
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<error>:
push   %rbp
push   %r14
push   %rbx
mov    0x2e9d(%rip),%rcx
mov    0x2e76(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
cmp    $0x14,%edx
sete   %sil
or     (%rcx),%esi
je     116c <error+0x2c>
movl   $0x1,(%rcx)
jmp    11f7 <error+0xb7>
mov    %edi,%ebx
add    $0x1,%edx
mov    %edx,(%rax)
xor    %eax,%eax
call   1050 <xflush@plt>
mov    0x2e4f(%rip),%r14
mov    (%r14),%ebp
movl   $0x1,(%r14)
mov    %ebx,%edi
xor    %eax,%eax
call   1040 <xwrite@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   1040 <xwrite@plt>
cmp    $0x756e,%ebx
je     11b0 <error+0x70>
cmp    $0x7264,%ebx
jne    11d1 <error+0x91>
mov    0x2e21(%rip),%rax
mov    (%rax),%rdi
add    $0x8,%rdi
xor    %eax,%eax
call   1060 <name@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   1040 <xwrite@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
call   1030 <printn@plt>
mov    $0xa,%edi
xor    %eax,%eax
call   1040 <xwrite@plt>
xor    %eax,%eax
call   1050 <xflush@plt>
mov    %ebp,(%r14)
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@xeof = external global i32
@nerror = external global i32
@fout = external global i32
@csym = external global i32*
@line = external global i32
define void @error(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* @xeof
%5 = load i32, i32* @nerror
%6 = icmp eq i32 %5, 20
%7 = zext i1 %6 to i32
%8 = or i32 %4, %7
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 1, i32* @xeof
br label %38
11: ; preds = %1
%12 = load i32, i32* @nerror
%13 = add nsw i32 %12, 1
store i32 %13, i32* @nerror
%14 = call i32 (...) @xflush()
%15 = load i32, i32* @fout
store i32 %15, i32* %3
store i32 1, i32* @fout
%16 = load i32, i32* %2
%17 = call i32 (i32, ...) bitcast (i32 (...)* @xwrite to i32 (i32, ...)*)(i32 %16)
%18 = call i32 (i32, ...) bitcast (i32 (...)* @xwrite to i32 (i32, ...)*)(i32 32)
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 29284
%21 = zext i1 %20 to i32
%22 = load i32, i32* %2
%23 = icmp eq i32 %22, 30062
%24 = zext i1 %23 to i32
%25 = or i32 %21, %24
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %11
%28 = load i32*, i32** @csym
%29 = getelementptr inbounds i32, i32* %28, i64 2
%30 = call i32 (i32*, ...) bitcast (i32 (...)* @name to i32 (i32*, ...)*)(i32* %29)
%31 = call i32 (i32, ...) bitcast (i32 (...)* @xwrite to i32 (i32, ...)*)(i32 32)
br label %32
32: ; preds = %27, %11
%33 = load i32, i32* @line
%34 = call i32 (i32, ...) bitcast (i32 (...)* @printn to i32 (i32, ...)*)(i32 %33)
%35 = call i32 (i32, ...) bitcast (i32 (...)* @xwrite to i32 (i32, ...)*)(i32 10)
%36 = call i32 (...) @xflush()
%37 = load i32, i32* %3
store i32 %37, i32* @fout
br label %38
38: ; preds = %32, %10
ret void
}

LLVM IR (-O2):
@xeof = external global i32
@nerror = external global i32
@fout = external global i32
@csym = external global i32*
@line = external global i32
define void @error(i32 %0) {
%2 = load i32, i32* @xeof
%3 = load i32, i32* @nerror
%4 = icmp eq i32 %3, 20
%5 = zext i1 %4 to i32
%6 = or i32 %2, %5
%7 = icmp eq i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %1
store i32 1, i32* @xeof
br label %25
9: ; preds = %1
%10 = add nsw i32 %3, 1
store i32 %10, i32* @nerror
%11 = tail call i32 (...) @xflush()
%12 = load i32, i32* @fout
store i32 1, i32* @fout
%13 = tail call i32 (i32, ...) bitcast (i32 (...)* @xwrite to i32 (i32, ...)*)(i32 %0)
%14 = tail call i32 (i32, ...) bitcast (i32 (...)* @xwrite to i32 (i32, ...)*)(i32 32)
switch i32 %0, label %20 [
i32 30062, label %15
i32 29284, label %15
]
15: ; preds = %9, %9
%16 = load i32*, i32** @csym
%17 = getelementptr inbounds i32, i32* %16, i64 2
%18 = tail call i32 (i32*, ...) bitcast (i32 (...)* @name to i32 (i32*, ...)*)(i32* %17)
%19 = tail call i32 (i32, ...) bitcast (i32 (...)* @xwrite to i32 (i32, ...)*)(i32 32)
br label %20
20: ; preds = %9, %15
%21 = load i32, i32* @line
%22 = tail call i32 (i32, ...) bitcast (i32 (...)* @printn to i32 (i32, ...)*)(i32 %21)
%23 = tail call i32 (i32, ...) bitcast (i32 (...)* @xwrite to i32 (i32, ...)*)(i32 10)
%24 = tail call i32 (...) @xflush()
store i32 %12, i32* @fout
br label %25
25: ; preds = %20, %8
ret void
}