#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*/ SEEK_CUR;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fread(char *, int, int, int /*<<< orphan*/ *);
scalar_t__ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int main(void) {
  FILE *p;
  FILE *p1;
  p = fopen("./webFile.html", "r");
  if (p == NULL) {
    printf("打开文件出错！\n");
  }
  p1 = fopen("./title.txt", "w+");
  if (p == NULL) {
    printf("打开文件出错！\n");
  }
  char c;
  while (fread(&c, sizeof(char), 1, p)) {
    if (c == '"') {
      fread(&c, sizeof(char), 1, p);
      if (c == 't') {
        fread(&c, sizeof(char), 1, p);
        if (c == 'i') {
          fread(&c, sizeof(char), 1, p);
          if (c == 't') {
            if (0 != fseek(p, 20, SEEK_CUR)) {
              printf("fseek错误");
              break;
            }
            break;
          }
        }
      }
    }
  }
  c = '%';
  while (1) {
    fread(&c, 1, 1, p);
    if (c == '"') {
      fwrite("\t", 1, 1, p1);
      break;
    }
    fwrite(&c, 1, 1, p1);
  }
  c = '%';
  while (fread(&c, 1, 1, p)) {
    if (c == 'w') {
      fread(&c, 1, 1, p);
      if (c == 'o') {
        fread(&c, 1, 1, p);
        if (c == 'r') {
          if (0 != fseek(p, 13, SEEK_CUR)) {
            printf("fseek错误");
            break;
          }
          break;
        }
      }
    }
  }
  c = '%';
  while (1) {
    fread(&c, 1, 1, p);
    if (c == '"') {
      fwrite("\t", 1, 1, p1);
      break;
    }
    fwrite(&c, 1, 1, p1);
  }
  c = '%';
  while (fread(&c, 1, 1, p)) {
    if (c == 'd') {
      fread(&c, 1, 1, p);
      if (c == 'e') {
        fread(&c, 1, 1, p);
        if (c == 's') {
          if (0 != fseek(p, 19, SEEK_CUR)) {
            printf("fseek错误");
            break;
          }
          break;
        }
      }
    }
  }
  c = '%';
  while (1) {
    fread(&c, 1, 1, p);
    if (c == '"') {
      fwrite("\t", 1, 1, p1);
      break;
    }
    fwrite(&c, 1, 1, p1);
  }
  fclose(p);
  fclose(p1);
  printf("\ntitle.txt已生成\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe8a(%rip),%rdi
lea    0xe92(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    119d <main+0x3d>
lea    0xe79(%rip),%rdi
call   1050 <printf@plt>
lea    0xe84(%rip),%rdi
lea    0xe89(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11cb <main+0x6b>
lea    0xe4b(%rip),%rdi
call   1050 <printf@plt>
jmp    11d0 <main+0x70>
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x0,%rax
je     12ad <main+0x14d>
movsbl -0x19(%rbp),%eax
cmp    $0x22,%eax
jne    12a8 <main+0x148>
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x74,%eax
jne    12a3 <main+0x143>
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x69,%eax
jne    129e <main+0x13e>
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x74,%eax
jne    1299 <main+0x139>
mov    -0x10(%rbp),%rdi
mov    0x2d7f(%rip),%rax
mov    (%rax),%edx
mov    $0x14,%esi
call   1060 <fseek@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     1294 <main+0x134>
lea    0xdad(%rip),%rdi
call   1050 <printf@plt>
jmp    12ad <main+0x14d>
jmp    12ad <main+0x14d>
jmp    129e <main+0x13e>
jmp    12a3 <main+0x143>
jmp    12a8 <main+0x148>
jmp    11d0 <main+0x70>
movb   $0x25,-0x19(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x22,%eax
jne    12ee <main+0x18e>
mov    -0x18(%rbp),%rcx
lea    0xd66(%rip),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1080 <fwrite@plt>
jmp    1307 <main+0x1a7>
mov    -0x18(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1080 <fwrite@plt>
jmp    12b1 <main+0x151>
movb   $0x25,-0x19(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x0,%rax
je     13c2 <main+0x262>
movsbl -0x19(%rbp),%eax
cmp    $0x77,%eax
jne    13bd <main+0x25d>
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x6f,%eax
jne    13b8 <main+0x258>
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x72,%eax
jne    13b3 <main+0x253>
mov    -0x10(%rbp),%rdi
mov    0x2c65(%rip),%rax
mov    (%rax),%edx
mov    $0xd,%esi
call   1060 <fseek@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     13ae <main+0x24e>
lea    0xc93(%rip),%rdi
call   1050 <printf@plt>
jmp    13c2 <main+0x262>
jmp    13c2 <main+0x262>
jmp    13b8 <main+0x258>
jmp    13bd <main+0x25d>
jmp    130b <main+0x1ab>
movb   $0x25,-0x19(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x22,%eax
jne    1403 <main+0x2a3>
mov    -0x18(%rbp),%rcx
lea    0xc51(%rip),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1080 <fwrite@plt>
jmp    141c <main+0x2bc>
mov    -0x18(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1080 <fwrite@plt>
jmp    13c6 <main+0x266>
movb   $0x25,-0x19(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x0,%rax
je     14d7 <main+0x377>
movsbl -0x19(%rbp),%eax
cmp    $0x64,%eax
jne    14d2 <main+0x372>
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x65,%eax
jne    14cd <main+0x36d>
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x73,%eax
jne    14c8 <main+0x368>
mov    -0x10(%rbp),%rdi
mov    0x2b50(%rip),%rax
mov    (%rax),%edx
mov    $0x13,%esi
call   1060 <fseek@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
je     14c3 <main+0x363>
lea    0xb7e(%rip),%rdi
call   1050 <printf@plt>
jmp    14d7 <main+0x377>
jmp    14d7 <main+0x377>
jmp    14cd <main+0x36d>
jmp    14d2 <main+0x372>
jmp    1420 <main+0x2c0>
movb   $0x25,-0x19(%rbp)
mov    -0x10(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movsbl -0x19(%rbp),%eax
cmp    $0x22,%eax
jne    1518 <main+0x3b8>
mov    -0x18(%rbp),%rcx
lea    0xb3c(%rip),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1080 <fwrite@plt>
jmp    1531 <main+0x3d1>
mov    -0x18(%rbp),%rcx
lea    -0x19(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1080 <fwrite@plt>
jmp    14db <main+0x37b>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
lea    0xafb(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xe80(%rip),%rdi
lea    0xe88(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     11ac <main+0x3c>
lea    0xe76(%rip),%rdi
lea    0xe7b(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r14
jmp    11d9 <main+0x69>
lea    0xe8d(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0xe4f(%rip),%rdi
lea    0xe54(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r14
mov    %r15,%rdi
call   1030 <puts@plt>
lea    0xf(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     12a0 <main+0x130>
lea    0xf(%rsp),%r15
jmp    121e <main+0xae>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     12a0 <main+0x130>
cmpb   $0x22,0xf(%rsp)
jne    1200 <main+0x90>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
cmpb   $0x74,0xf(%rsp)
jne    1200 <main+0x90>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
cmpb   $0x69,0xf(%rsp)
jne    1200 <main+0x90>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
cmpb   $0x74,0xf(%rsp)
jne    1200 <main+0x90>
mov    0x2d68(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x14,%esi
call   1080 <fseek@plt>
test   %rax,%rax
je     12a0 <main+0x130>
lea    0xd85(%rip),%rdi
call   1060 <printf@plt>
movb   $0x25,0xf(%rsp)
lea    0xf(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
mov    0xf(%rsp),%al
cmp    $0x22,%al
je     12f9 <main+0x189>
lea    0xf(%rsp),%r15
nopl   0x0(%rax)
movsbl %al,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
movzbl 0xf(%rsp),%eax
cmp    $0x22,%al
jne    12d0 <main+0x160>
mov    $0x9,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
movb   $0x25,0xf(%rsp)
lea    0xf(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     13c0 <main+0x250>
lea    0xf(%rsp),%r15
jmp    135a <main+0x1ea>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     13c0 <main+0x250>
cmpb   $0x77,0xf(%rsp)
jne    1340 <main+0x1d0>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
cmpb   $0x6f,0xf(%rsp)
jne    1340 <main+0x1d0>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
cmpb   $0x72,0xf(%rsp)
jne    1340 <main+0x1d0>
mov    0x2c48(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0xd,%esi
call   1080 <fseek@plt>
test   %rax,%rax
je     13c0 <main+0x250>
lea    0xc65(%rip),%rdi
call   1060 <printf@plt>
movb   $0x25,0xf(%rsp)
lea    0xf(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
mov    0xf(%rsp),%al
cmp    $0x22,%al
je     1419 <main+0x2a9>
lea    0xf(%rsp),%r15
nopl   0x0(%rax)
movsbl %al,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
movzbl 0xf(%rsp),%eax
cmp    $0x22,%al
jne    13f0 <main+0x280>
mov    $0x9,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
movb   $0x25,0xf(%rsp)
lea    0xf(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     14e0 <main+0x370>
lea    0xf(%rsp),%r15
jmp    147a <main+0x30a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
test   %rax,%rax
je     14e0 <main+0x370>
cmpb   $0x64,0xf(%rsp)
jne    1460 <main+0x2f0>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
cmpb   $0x65,0xf(%rsp)
jne    1460 <main+0x2f0>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
cmpb   $0x73,0xf(%rsp)
jne    1460 <main+0x2f0>
mov    0x2b28(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x13,%esi
call   1080 <fseek@plt>
test   %rax,%rax
je     14e0 <main+0x370>
lea    0xb45(%rip),%rdi
call   1060 <printf@plt>
movb   $0x25,0xf(%rsp)
lea    0xf(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
mov    0xf(%rsp),%al
cmp    $0x22,%al
je     1539 <main+0x3c9>
lea    0xf(%rsp),%r15
nopl   0x0(%rax)
movsbl %al,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fread@plt>
movzbl 0xf(%rsp),%eax
cmp    $0x22,%al
jne    1510 <main+0x3a0>
mov    $0x9,%edi
mov    %r14,%rsi
call   1070 <fputc@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
lea    0xacf(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [15 x i8] c"./webFile.html\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [23 x i8] c"\E6\89\93\E5\BC\80\E6\96\87\E4\BB\B6\E5\87\BA\E9\94\99\EF\BC\81\0A\00"
@.str.3 = [12 x i8] c"./title.txt\00"
@.str.4 = [3 x i8] c"w+\00"
@SEEK_CUR = global i32 0
@.str.5 = [12 x i8] c"fseek\E9\94\99\E8\AF\AF\00"
@.str.6 = [2 x i8] c"\09\00"
@.str.7 = [21 x i8] c"\0Atitle.txt\E5\B7\B2\E7\94\9F\E6\88\90\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i8
store i32 0, i32* %1
%5 = 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* %5, i32** %2
%6 = load i32*, i32** %2
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
br label %10
10: ; preds = %8, %0
%11 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %11, i32** %3
%12 = load i32*, i32** %2
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
br label %16
16: ; preds = %14, %10
br label %17
17: ; preds = %54, %16
%18 = load i32*, i32** %2
%19 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %55
21: ; preds = %17
%22 = load i8, i8* %4
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 34
br i1 %24, label %25, label %54
25: ; preds = %21
%26 = load i32*, i32** %2
%27 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %26)
%28 = load i8, i8* %4
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 116
br i1 %30, label %31, label %53
31: ; preds = %25
%32 = load i32*, i32** %2
%33 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %32)
%34 = load i8, i8* %4
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 105
br i1 %36, label %37, label %52
37: ; preds = %31
%38 = load i32*, i32** %2
%39 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %38)
%40 = load i8, i8* %4
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 116
br i1 %42, label %43, label %51
43: ; preds = %37
%44 = load i32*, i32** %2
%45 = load i32, i32* @SEEK_CUR
%46 = call i64 @fseek(i32* %44, i32 20, i32 %45)
%47 = icmp ne i64 0, %46
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %55
50: ; preds = %43
br label %55
51: ; preds = %37
br label %52
52: ; preds = %51, %31
br label %53
53: ; preds = %52, %25
br label %54
54: ; preds = %53, %21
br label %17
55: ; preds = %50, %48, %17
store i8 37, i8* %4
br label %56
56: ; preds = %55, %65
%57 = load i32*, i32** %2
%58 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %57)
%59 = load i8, i8* %4
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 34
br i1 %61, label %62, label %65
62: ; preds = %56
%63 = load i32*, i32** %3
%64 = call i32 @fwrite(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 1, i32* %63)
br label %68
65: ; preds = %56
%66 = load i32*, i32** %3
%67 = call i32 @fwrite(i8* %4, i32 1, i32 1, i32* %66)
br label %56
68: ; preds = %62
store i8 37, i8* %4
br label %69
69: ; preds = %99, %68
%70 = load i32*, i32** %2
%71 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %70)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %100
73: ; preds = %69
%74 = load i8, i8* %4
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 119
br i1 %76, label %77, label %99
77: ; preds = %73
%78 = load i32*, i32** %2
%79 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %78)
%80 = load i8, i8* %4
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 111
br i1 %82, label %83, label %98
83: ; preds = %77
%84 = load i32*, i32** %2
%85 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %84)
%86 = load i8, i8* %4
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %87, 114
br i1 %88, label %89, label %97
89: ; preds = %83
%90 = load i32*, i32** %2
%91 = load i32, i32* @SEEK_CUR
%92 = call i64 @fseek(i32* %90, i32 13, i32 %91)
%93 = icmp ne i64 0, %92
br i1 %93, label %94, label %96
94: ; preds = %89
%95 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %100
96: ; preds = %89
br label %100
97: ; preds = %83
br label %98
98: ; preds = %97, %77
br label %99
99: ; preds = %98, %73
br label %69
100: ; preds = %96, %94, %69
store i8 37, i8* %4
br label %101
101: ; preds = %100, %110
%102 = load i32*, i32** %2
%103 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %102)
%104 = load i8, i8* %4
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %105, 34
br i1 %106, label %107, label %110
107: ; preds = %101
%108 = load i32*, i32** %3
%109 = call i32 @fwrite(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 1, i32* %108)
br label %113
110: ; preds = %101
%111 = load i32*, i32** %3
%112 = call i32 @fwrite(i8* %4, i32 1, i32 1, i32* %111)
br label %101
113: ; preds = %107
store i8 37, i8* %4
br label %114
114: ; preds = %144, %113
%115 = load i32*, i32** %2
%116 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %115)
%117 = icmp ne i64 %116, 0
br i1 %117, label %118, label %145
118: ; preds = %114
%119 = load i8, i8* %4
%120 = sext i8 %119 to i32
%121 = icmp eq i32 %120, 100
br i1 %121, label %122, label %144
122: ; preds = %118
%123 = load i32*, i32** %2
%124 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %123)
%125 = load i8, i8* %4
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 101
br i1 %127, label %128, label %143
128: ; preds = %122
%129 = load i32*, i32** %2
%130 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %129)
%131 = load i8, i8* %4
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %132, 115
br i1 %133, label %134, label %142
134: ; preds = %128
%135 = load i32*, i32** %2
%136 = load i32, i32* @SEEK_CUR
%137 = call i64 @fseek(i32* %135, i32 19, i32 %136)
%138 = icmp ne i64 0, %137
br i1 %138, label %139, label %141
139: ; preds = %134
%140 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %145
141: ; preds = %134
br label %145
142: ; preds = %128
br label %143
143: ; preds = %142, %122
br label %144
144: ; preds = %143, %118
br label %114
145: ; preds = %141, %139, %114
store i8 37, i8* %4
br label %146
146: ; preds = %145, %155
%147 = load i32*, i32** %2
%148 = call i64 @fread(i8* %4, i32 1, i32 1, i32* %147)
%149 = load i8, i8* %4
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 34
br i1 %151, label %152, label %155
152: ; preds = %146
%153 = load i32*, i32** %3
%154 = call i32 @fwrite(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 1, i32* %153)
br label %158
155: ; preds = %146
%156 = load i32*, i32** %3
%157 = call i32 @fwrite(i8* %4, i32 1, i32 1, i32* %156)
br label %146
158: ; preds = %152
%159 = load i32*, i32** %2
%160 = call i32 @fclose(i32* %159)
%161 = load i32*, i32** %3
%162 = call i32 @fclose(i32* %161)
%163 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"./webFile.html\00"
@.str.1 = [2 x i8] c"r\00"
@.str.3 = [12 x i8] c"./title.txt\00"
@.str.4 = [3 x i8] c"w+\00"
@SEEK_CUR = global i32 0
@.str.5 = [12 x i8] c"fseek\E9\94\99\E8\AF\AF\00"
@str = [20 x i8] c"\0Atitle.txt\E5\B7\B2\E7\94\9F\E6\88\90\00"
@str.9 = [22 x i8] c"\E6\89\93\E5\BC\80\E6\96\87\E4\BB\B6\E5\87\BA\E9\94\99\EF\BC\81\00"
define i32 @main() {
%1 = alloca i8
%2 = 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))
%3 = icmp eq i32* %2, null
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %10
6: ; preds = %0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.9, i64 0, i64 0))
%8 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.9, i64 0, i64 0))
br label %10
10: ; preds = %4, %6
%11 = phi i32* [ %8, %6 ], [ %5, %4 ]
%12 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%13 = icmp eq i64 %12, 0
br i1 %13, label %38, label %14
14: ; preds = %10, %35
%15 = load i8, i8* %1
%16 = icmp eq i8 %15, 34
br i1 %16, label %17, label %35
17: ; preds = %14
%18 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%19 = load i8, i8* %1
%20 = icmp eq i8 %19, 116
br i1 %20, label %21, label %35
21: ; preds = %17
%22 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%23 = load i8, i8* %1
%24 = icmp eq i8 %23, 105
br i1 %24, label %25, label %35
25: ; preds = %21
%26 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%27 = load i8, i8* %1
%28 = icmp eq i8 %27, 116
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = load i32, i32* @SEEK_CUR
%31 = tail call i64 @fseek(i32* %2, i32 20, i32 %30)
%32 = icmp eq i64 %31, 0
br i1 %32, label %38, label %33
33: ; preds = %29
%34 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %38
35: ; preds = %17, %25, %21, %14
%36 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %14
38: ; preds = %35, %10, %29, %33
store i8 37, i8* %1
%39 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%40 = load i8, i8* %1
%41 = icmp eq i8 %40, 34
br i1 %41, label %42, label %46
42: ; preds = %46, %38
%43 = tail call i32 @fputc(i32 9, i32* %11)
store i8 37, i8* %1
%44 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%45 = icmp eq i64 %44, 0
br i1 %45, label %73, label %53
46: ; preds = %38, %46
%47 = phi i8 [ %51, %46 ], [ %40, %38 ]
%48 = sext i8 %47 to i32
%49 = tail call i32 @fputc(i32 %48, i32* %11)
%50 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%51 = load i8, i8* %1
%52 = icmp eq i8 %51, 34
br i1 %52, label %42, label %46
53: ; preds = %42, %70
%54 = load i8, i8* %1
%55 = icmp eq i8 %54, 119
br i1 %55, label %56, label %70
56: ; preds = %53
%57 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%58 = load i8, i8* %1
%59 = icmp eq i8 %58, 111
br i1 %59, label %60, label %70
60: ; preds = %56
%61 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%62 = load i8, i8* %1
%63 = icmp eq i8 %62, 114
br i1 %63, label %64, label %70
64: ; preds = %60
%65 = load i32, i32* @SEEK_CUR
%66 = tail call i64 @fseek(i32* %2, i32 13, i32 %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %73, label %68
68: ; preds = %64
%69 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %73
70: ; preds = %56, %60, %53
%71 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %53
73: ; preds = %70, %42, %64, %68
store i8 37, i8* %1
%74 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%75 = load i8, i8* %1
%76 = icmp eq i8 %75, 34
br i1 %76, label %77, label %81
77: ; preds = %81, %73
%78 = tail call i32 @fputc(i32 9, i32* %11)
store i8 37, i8* %1
%79 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%80 = icmp eq i64 %79, 0
br i1 %80, label %108, label %88
81: ; preds = %73, %81
%82 = phi i8 [ %86, %81 ], [ %75, %73 ]
%83 = sext i8 %82 to i32
%84 = tail call i32 @fputc(i32 %83, i32* %11)
%85 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%86 = load i8, i8* %1
%87 = icmp eq i8 %86, 34
br i1 %87, label %77, label %81
88: ; preds = %77, %105
%89 = load i8, i8* %1
%90 = icmp eq i8 %89, 100
br i1 %90, label %91, label %105
91: ; preds = %88
%92 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%93 = load i8, i8* %1
%94 = icmp eq i8 %93, 101
br i1 %94, label %95, label %105
95: ; preds = %91
%96 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%97 = load i8, i8* %1
%98 = icmp eq i8 %97, 115
br i1 %98, label %99, label %105
99: ; preds = %95
%100 = load i32, i32* @SEEK_CUR
%101 = tail call i64 @fseek(i32* %2, i32 19, i32 %100)
%102 = icmp eq i64 %101, 0
br i1 %102, label %108, label %103
103: ; preds = %99
%104 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %108
105: ; preds = %91, %95, %88
%106 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %88
108: ; preds = %105, %77, %99, %103
store i8 37, i8* %1
%109 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%110 = load i8, i8* %1
%111 = icmp eq i8 %110, 34
br i1 %111, label %112, label %117
112: ; preds = %117, %108
%113 = tail call i32 @fputc(i32 9, i32* %11)
%114 = tail call i32 @fclose(i32* %2)
%115 = tail call i32 @fclose(i32* %11)
%116 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret i32 0
117: ; preds = %108, %117
%118 = phi i8 [ %122, %117 ], [ %110, %108 ]
%119 = sext i8 %118 to i32
%120 = tail call i32 @fputc(i32 %119, i32* %11)
%121 = call i64 @fread(i8* %1, i32 1, i32 1, i32* %2)
%122 = load i8, i8* %1
%123 = icmp eq i8 %122, 34
br i1 %123, label %112, label %117
}