#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int main(void) {
  int i, j, pl;
  FILE *gbk = fopen("gbk-table.html", "w");
  if (!gbk)
    return 1;
  fputs("<html lang=zh-cn>\n <head>\n  <meta http-equiv=\"Content-Type\" "
        "content=\"text/html;charset=x-gbk\">\n  <title>GBK</title>\n"
        "  <style>.unused { background: #ccc; }"
        " table { float: left; }</style>\n"
        " </head>\n <body>\n"
        "  <table><caption>ASCII/CNS-Roman</caption>\n"
        "   <tr><th>  ",
        gbk);
  for (i = 0; i < 16; i++) {
    fprintf(gbk, "<th>%X", i);
  }
  for (i = 32; i < 128; i++) {
    if (0 == (i & 0x0F)) {
      fprintf(gbk, "\n   <tr><th>%02X", i);
    }
    fprintf(gbk, "<td%s>%c", (127 == i) ? " class=unused" : "", (char)i);
  }
  fputs("\n  </table>\n", gbk);
  for (i = 0x81; i <= 0xFE; i++) {
    fprintf(
        gbk,
        "  <table><caption>Multibyte: GBK (Lead %X)</caption>\n   <tr><th> ",
        i);
    for (j = 0; j < 16; j++) {
      fprintf(gbk, "<th>%X", j);
    }
    for (j = 0x40; j < 0x100; j++) {
      if (0 == (j & 0x0F)) {
        fprintf(gbk, "\n   <tr><th>%02X", j);
      }
      if (0x7F == j || j > 0xFE) {
        fputs("<td class=unused>&nbsp;", gbk);
      } else {
        fprintf(gbk, "<td>%c%c", (char)i, (char)j);
      }
    }
    fputs("\n  </table>\n", gbk);
  }
  fputs("\n </body>\n</html>\n", gbk);
  fclose(gbk);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    0xeb2(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    117d <main+0x3d>
movl   $0x1,-0x4(%rbp)
jmp    1381 <main+0x241>
mov    -0x18(%rbp),%rsi
lea    0xe89(%rip),%rdi
call   1040 <fputs@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x10,-0x8(%rbp)
jge    11c1 <main+0x81>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xf6a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1194 <main+0x54>
movl   $0x20,-0x8(%rbp)
cmpl   $0x80,-0x8(%rbp)
jge    123c <main+0xfc>
mov    -0x8(%rbp),%ecx
and    $0xf,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
jne    11fa <main+0xba>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xf2a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    $0x7f,%ecx
lea    0xf44(%rip),%rdx
lea    0xf23(%rip),%rax
cmp    %esi,%ecx
cmove  %rax,%rdx
mov    -0x8(%rbp),%eax
movsbl %al,%ecx
lea    0xf07(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11c8 <main+0x88>
mov    -0x18(%rbp),%rsi
lea    0xefe(%rip),%rdi
call   1040 <fputs@plt>
movl   $0x81,-0x8(%rbp)
cmpl   $0xfe,-0x8(%rbp)
jg     1361 <main+0x221>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xee4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x10,-0xc(%rbp)
jge    12a9 <main+0x169>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xe82(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    127c <main+0x13c>
movl   $0x40,-0xc(%rbp)
cmpl   $0x100,-0xc(%rbp)
jge    1343 <main+0x203>
mov    -0xc(%rbp),%ecx
and    $0xf,%ecx
xor    %eax,%eax
cmp    %ecx,%eax
jne    12e2 <main+0x1a2>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xe42(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x7f,%eax
cmp    -0xc(%rbp),%eax
je     12fd <main+0x1bd>
cmpl   $0xfe,-0xc(%rbp)
jle    1312 <main+0x1d2>
mov    -0x18(%rbp),%rsi
lea    0xe8c(%rip),%rdi
call   1040 <fputs@plt>
jmp    1330 <main+0x1f0>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%eax
movsbl %al,%edx
mov    -0xc(%rbp),%eax
movsbl %al,%ecx
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1335 <main+0x1f5>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12b0 <main+0x170>
mov    -0x18(%rbp),%rsi
lea    0xdf7(%rip),%rdi
call   1040 <fputs@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1253 <main+0x113>
mov    -0x18(%rbp),%rsi
lea    0xe49(%rip),%rdi
call   1040 <fputs@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xeae(%rip),%rdi
lea    0xeb6(%rip),%rsi
call   1050 <fopen@plt>
test   %rax,%rax
je     1557 <main+0x417>
mov    %rax,%rbx
lea    0xea0(%rip),%rdi
mov    $0x104,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1060 <fwrite@plt>
lea    0xf8c(%rip),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x5,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x6,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x7,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xa,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xb,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xc,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xd,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xe,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xf,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x20,%ebp
lea    0xe6a(%rip),%r14
lea    0xe7d(%rip),%r12
lea    0xe90(%rip),%r13
lea    0xe66(%rip),%r15
jmp    12f4 <main+0x1b4>
nopw   0x0(%rax,%rax,1)
cmp    $0x7f,%ebp
mov    %r13,%rdx
cmove  %r12,%rdx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebp
cmp    $0x80,%ebp
je     130b <main+0x1cb>
test   $0xf,%bpl
jne    12d0 <main+0x190>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    12d0 <main+0x190>
lea    0xe33(%rip),%rdi
mov    $0xc,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    $0x81,%r15d
lea    0xdec(%rip),%rbp
jmp    136a <main+0x22a>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xc,%esi
mov    $0x1,%edx
lea    0xdf4(%rip),%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
add    $0x1,%r15d
cmp    $0xff,%r15d
je     1532 <main+0x3f2>
mov    %rbx,%rdi
lea    0xdde(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%r14
lea    0xd8b(%rip),%rbp
mov    %rbp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x5,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x6,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x7,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x9,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xa,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xb,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xc,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xd,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xe,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r14,%rbp
mov    $0xf,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
movsbl %r15b,%r13d
mov    $0x40,%r12d
mov    $0x40000000,%r14d
jmp    14f1 <main+0x3b1>
nopw   0x0(%rax,%rax,1)
mov    $0x17,%esi
mov    $0x1,%edx
lea    0xcc3(%rip),%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
add    $0x1,%r12d
add    $0x1000000,%r14d
cmp    $0x100,%r12d
je     1340 <main+0x200>
test   $0xf,%r12b
jne    1507 <main+0x3c7>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r12d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
cmp    $0x7f,%r12d
je     14c0 <main+0x380>
cmp    $0xff,%r12d
jae    14c0 <main+0x380>
mov    %r14d,%ecx
sar    $0x18,%ecx
mov    %rbx,%rdi
lea    0xc86(%rip),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    14d9 <main+0x399>
lea    0xc7c(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
jmp    155c <main+0x41c>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"gbk-table.html\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [261 x i8] c"<html lang=zh-cn>\0A <head>\0A <meta http-equiv=\22Content-Type\22 content=\22text/html;charset=x-gbk\22>\0A <title>GBK</title>\0A <style>.unused { background: #ccc; } table { float: left; }</style>\0A </head>\0A <body>\0A <table><caption>ASCII/CNS-Roman</caption>\0A <tr><th> \00"
@.str.3 = [7 x i8] c"<th>%X\00"
@.str.4 = [17 x i8] c"\0A <tr><th>%02X\00"
@.str.5 = [9 x i8] c"<td%s>%c\00"
@.str.6 = [14 x i8] c" class=unused\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [13 x i8] c"\0A </table>\0A\00"
@.str.9 = [66 x i8] c" <table><caption>Multibyte: GBK (Lead %X)</caption>\0A <tr><th> \00"
@.str.10 = [24 x i8] c"<td class=unused>&nbsp;\00"
@.str.11 = [9 x i8] c"<td>%c%c\00"
@.str.12 = [19 x i8] c"\0A </body>\0A</html>\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
store i32 0, i32* %1
%6 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %6, i32** %5
%7 = load i32*, i32** %5
%8 = icmp ne i32* %7, null
br i1 %8, label %10, label %9
9: ; preds = %0
store i32 1, i32* %1
br label %113
10: ; preds = %0
%11 = load i32*, i32** %5
%12 = call i32 @fputs(i8* getelementptr inbounds ([261 x i8], [261 x i8]* @.str.2, i64 0, i64 0), i32* %11)
store i32 0, i32* %2
br label %13
13: ; preds = %20, %10
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, 16
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load i32*, i32** %5
%18 = load i32, i32* %2
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %18)
br label %20
20: ; preds = %16
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 1
store i32 %22, i32* %2
br label %13
23: ; preds = %13
store i32 32, i32* %2
br label %24
24: ; preds = %45, %23
%25 = load i32, i32* %2
%26 = icmp slt i32 %25, 128
br i1 %26, label %27, label %48
27: ; preds = %24
%28 = load i32, i32* %2
%29 = and i32 %28, 15
%30 = icmp eq i32 0, %29
br i1 %30, label %31, label %35
31: ; preds = %27
%32 = load i32*, i32** %5
%33 = load i32, i32* %2
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %33)
br label %35
35: ; preds = %31, %27
%36 = load i32*, i32** %5
%37 = load i32, i32* %2
%38 = icmp eq i32 127, %37
%39 = zext i1 %38 to i64
%40 = select i1 %38, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%41 = load i32, i32* %2
%42 = trunc i32 %41 to i8
%43 = sext i8 %42 to i32
%44 = call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %40, i32 %43)
br label %45
45: ; preds = %35
%46 = load i32, i32* %2
%47 = add nsw i32 %46, 1
store i32 %47, i32* %2
br label %24
48: ; preds = %24
%49 = load i32*, i32** %5
%50 = call i32 @fputs(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32* %49)
store i32 129, i32* %2
br label %51
51: ; preds = %105, %48
%52 = load i32, i32* %2
%53 = icmp sle i32 %52, 254
br i1 %53, label %54, label %108
54: ; preds = %51
%55 = load i32*, i32** %5
%56 = load i32, i32* %2
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.9, i64 0, i64 0), i32 %56)
store i32 0, i32* %3
br label %58
58: ; preds = %65, %54
%59 = load i32, i32* %3
%60 = icmp slt i32 %59, 16
br i1 %60, label %61, label %68
61: ; preds = %58
%62 = load i32*, i32** %5
%63 = load i32, i32* %3
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %63)
br label %65
65: ; preds = %61
%66 = load i32, i32* %3
%67 = add nsw i32 %66, 1
store i32 %67, i32* %3
br label %58
68: ; preds = %58
store i32 64, i32* %3
br label %69
69: ; preds = %99, %68
%70 = load i32, i32* %3
%71 = icmp slt i32 %70, 256
br i1 %71, label %72, label %102
72: ; preds = %69
%73 = load i32, i32* %3
%74 = and i32 %73, 15
%75 = icmp eq i32 0, %74
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = load i32*, i32** %5
%78 = load i32, i32* %3
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %78)
br label %80
80: ; preds = %76, %72
%81 = load i32, i32* %3
%82 = icmp eq i32 127, %81
br i1 %82, label %86, label %83
83: ; preds = %80
%84 = load i32, i32* %3
%85 = icmp sgt i32 %84, 254
br i1 %85, label %86, label %89
86: ; preds = %83, %80
%87 = load i32*, i32** %5
%88 = call i32 @fputs(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i32* %87)
br label %98
89: ; preds = %83
%90 = load i32*, i32** %5
%91 = load i32, i32* %2
%92 = trunc i32 %91 to i8
%93 = sext i8 %92 to i32
%94 = load i32, i32* %3
%95 = trunc i32 %94 to i8
%96 = sext i8 %95 to i32
%97 = call i32 (i32*, i8*, ...) @fprintf(i32* %90, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %93, i32 %96)
br label %98
98: ; preds = %89, %86
br label %99
99: ; preds = %98
%100 = load i32, i32* %3
%101 = add nsw i32 %100, 1
store i32 %101, i32* %3
br label %69
102: ; preds = %69
%103 = load i32*, i32** %5
%104 = call i32 @fputs(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32* %103)
br label %105
105: ; preds = %102
%106 = load i32, i32* %2
%107 = add nsw i32 %106, 1
store i32 %107, i32* %2
br label %51
108: ; preds = %51
%109 = load i32*, i32** %5
%110 = call i32 @fputs(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i32* %109)
%111 = load i32*, i32** %5
%112 = call i32 @fclose(i32* %111)
store i32 0, i32* %1
br label %113
113: ; preds = %108, %9
%114 = load i32, i32* %1
ret i32 %114
}

LLVM IR (-O2):
@.str = [15 x i8] c"gbk-table.html\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [261 x i8] c"<html lang=zh-cn>\0A <head>\0A <meta http-equiv=\22Content-Type\22 content=\22text/html;charset=x-gbk\22>\0A <title>GBK</title>\0A <style>.unused { background: #ccc; } table { float: left; }</style>\0A </head>\0A <body>\0A <table><caption>ASCII/CNS-Roman</caption>\0A <tr><th> \00"
@.str.3 = [7 x i8] c"<th>%X\00"
@.str.4 = [17 x i8] c"\0A <tr><th>%02X\00"
@.str.5 = [9 x i8] c"<td%s>%c\00"
@.str.6 = [14 x i8] c" class=unused\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [13 x i8] c"\0A </table>\0A\00"
@.str.9 = [66 x i8] c" <table><caption>Multibyte: GBK (Lead %X)</caption>\0A <tr><th> \00"
@.str.10 = [24 x i8] c"<td class=unused>&nbsp;\00"
@.str.11 = [9 x i8] c"<td>%c%c\00"
@.str.12 = [19 x i8] c"\0A </body>\0A</html>\0A\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = icmp eq i32* %1, null
br i1 %2, label %82, label %3
3: ; preds = %0
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([261 x i8], [261 x i8]* @.str.2, i64 0, i64 0), i64 260, i64 1, i32* %1)
%5 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 0)
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 1)
%7 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 2)
%8 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 3)
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 4)
%10 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 5)
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%12 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 7)
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 8)
%14 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 9)
%15 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 10)
%16 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 11)
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 12)
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 13)
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 14)
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 15)
br label %21
21: ; preds = %3, %27
%22 = phi i32 [ %31, %27 ], [ 32, %3 ]
%23 = and i32 %22, 15
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %22)
br label %27
27: ; preds = %25, %21
%28 = icmp eq i32 %22, 127
%29 = select i1 %28, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %29, i32 %22)
%31 = add nuw nsw i32 %22, 1
%32 = icmp eq i32 %31, 128
br i1 %32, label %33, label %21
33: ; preds = %27
%34 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i64 12, i64 1, i32* %1)
br label %35
35: ; preds = %33, %75
%36 = phi i32 [ 129, %33 ], [ %77, %75 ]
%37 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.9, i64 0, i64 0), i32 %36)
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 0)
%39 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 1)
%40 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 2)
%41 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 3)
%42 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 4)
%43 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 5)
%44 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%45 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 7)
%46 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 8)
%47 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 9)
%48 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 10)
%49 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 11)
%50 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 12)
%51 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 13)
%52 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 14)
%53 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 15)
%54 = shl i32 %36, 24
%55 = ashr exact i32 %54, 24
br label %56
56: ; preds = %35, %72
%57 = phi i32 [ 64, %35 ], [ %73, %72 ]
%58 = and i32 %57, 15
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %57)
br label %62
62: ; preds = %60, %56
%63 = icmp eq i32 %57, 127
%64 = icmp ugt i32 %57, 254
%65 = or i1 %63, %64
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = tail call i64 @fwrite(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i64 23, i64 1, i32* %1)
br label %72
68: ; preds = %62
%69 = shl nuw i32 %57, 24
%70 = ashr exact i32 %69, 24
%71 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %55, i32 %70)
br label %72
72: ; preds = %66, %68
%73 = add nuw nsw i32 %57, 1
%74 = icmp eq i32 %73, 256
br i1 %74, label %75, label %56
75: ; preds = %72
%76 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i64 12, i64 1, i32* %1)
%77 = add nuw nsw i32 %36, 1
%78 = icmp eq i32 %77, 255
br i1 %78, label %79, label %35
79: ; preds = %75
%80 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i64 18, i64 1, i32* %1)
%81 = tail call i32 @fclose(i32* %1)
br label %82
82: ; preds = %0, %79
%83 = phi i32 [ 0, %79 ], [ 1, %0 ]
ret i32 %83
}