#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*/ time_t;

/* Variables and functions */
int atoi(char *);
int do_query(int, int, char *);
int /*<<< orphan*/ done_query();
int fetch_total();
char *highlight(char *, char *, char *, char *);
int /*<<< orphan*/ init_query(int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ wfetch(char *, char *, char *);
int main(int argc, char **argv) {
  int i, j, k = 0, len;
  time_t timer;
  char cmd[1024];
  if (argc >= 2 && (!strcmp(argv[1], "-s") || !strcmp(argv[1], "-S"))) {
    k = 1;
  }
  if (argc < 4 && k == 0 || argc < 5 && k == 1) {
    printf("Syntax:  wQuery [-s] start length keyword\nExample: wQuery 0 100 "
           "测试\n");
    return 0;
  }
  cmd[0] = 0;
  for (i = 3 + k; i < argc; i++) {
    strcat(cmd, argv[i]);
    strcat(cmd, " ");
  }
  i = atoi(argv[1 + k]);
  j = atoi(argv[2 + k]);
  init_query(k, "", 0);
  len = do_query(i, j, cmd);
  printf("########## 关键字:%s 总数:%d 输出:%d-%d ##########\n", cmd,
         fetch_total(), i + 1, i + len);
  for (i = 0; i < len; i++) {
    char a1[200], a2[200], a3[200];
    wfetch(a1, a2, a3);
    printf("========== Result #%d ==========\n", i + 1);
    printf("ID: [%s]\nTitle: [%s]\nTag: [%s]\nContent: [%s]\n", a1, a2, a3,
           highlight(a1, cmd, "<B>", "</B>"));
  }
  done_query();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x6c0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x8(%rbp)
jl     120b <main+0x6b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe27(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     1204 <main+0x64>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe0d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    120b <main+0x6b>
movl   $0x1,-0x1c(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    121f <main+0x7f>
cmpl   $0x0,-0x1c(%rbp)
je     1233 <main+0x93>
cmpl   $0x5,-0x8(%rbp)
jge    124d <main+0xad>
cmpl   $0x1,-0x1c(%rbp)
jne    124d <main+0xad>
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1402 <main+0x262>
movb   $0x0,-0x430(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12a2 <main+0x102>
lea    -0x430(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   10b0 <strcat@plt>
lea    -0x430(%rbp),%rdi
lea    0xdbf(%rip),%rsi
call   10b0 <strcat@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    125d <main+0xbd>
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%edi
lea    0xdac(%rip),%rsi
xor    %edx,%edx
call   1060 <init_query@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    -0x430(%rbp),%rdx
call   1040 <do_query@plt>
mov    %eax,-0x20(%rbp)
lea    -0x430(%rbp),%rax
mov    %rax,-0x6a8(%rbp)
mov    $0x0,%al
call   1090 <fetch_total@plt>
mov    -0x6a8(%rbp),%rsi
mov    %eax,%edx
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    -0x14(%rbp),%r8d
add    -0x20(%rbp),%r8d
lea    0xd23(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13f4 <main+0x254>
lea    -0x500(%rbp),%rdi
lea    -0x5d0(%rbp),%rsi
lea    -0x6a0(%rbp),%rdx
call   1080 <wfetch@plt>
mov    -0x14(%rbp),%esi
add    $0x1,%esi
lea    0xd1d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x500(%rbp),%rax
mov    %rax,-0x6c0(%rbp)
lea    -0x5d0(%rbp),%rax
mov    %rax,-0x6b8(%rbp)
lea    -0x6a0(%rbp),%rax
mov    %rax,-0x6b0(%rbp)
lea    -0x500(%rbp),%rdi
lea    -0x430(%rbp),%rsi
lea    0xd27(%rip),%rdx
lea    0xd24(%rip),%rcx
call   10c0 <highlight@plt>
mov    -0x6c0(%rbp),%rsi
mov    -0x6b8(%rbp),%rdx
mov    -0x6b0(%rbp),%rcx
mov    %rax,%r8
lea    0xcce(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    133b <main+0x19b>
mov    $0x0,%al
call   1030 <done_query@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x6c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x678,%rsp
mov    %rsi,%r15
mov    %edi,%ebp
xor    %ecx,%ecx
mov    $0x1,%r12b
cmp    $0x2,%edi
jl     120f <main+0x5f>
mov    0x8(%r15),%rbx
lea    0xe25(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1202 <main+0x52>
lea    0xe15(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
xor    %ecx,%ecx
mov    $0x0,%r14d
test   %eax,%eax
jne    1212 <main+0x62>
mov    $0x1,%r14d
mov    $0x1,%cl
xor    %r12d,%r12d
jmp    1212 <main+0x62>
xor    %r14d,%r14d
cmp    $0x4,%ebp
setl   %dl
setle  %al
test   %r12b,%dl
jne    137e <main+0x1ce>
and    %cl,%al
jne    137e <main+0x1ce>
movb   $0x0,0x270(%rsp)
lea    0x3(%r14),%ebx
cmp    %ebp,%ebx
jge    1270 <main+0xc0>
mov    %ebp,%r13d
lea    0x270(%rsp),%rbp
lea    0xdb8(%rip),%r12
xchg   %ax,%ax
mov    (%r15,%rbx,8),%rsi
mov    %rbp,%rdi
call   10c0 <strcat@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   10c0 <strcat@plt>
add    $0x1,%rbx
cmp    %rbx,%r13
jne    1250 <main+0xa0>
mov    %r14d,%eax
mov    0x8(%r15,%rax,8),%rdi
call   10b0 <atoi@plt>
mov    %eax,%ebp
lea    0x2(%r14),%eax
mov    (%r15,%rax,8),%rdi
call   10b0 <atoi@plt>
mov    %eax,%ebx
lea    0xdad(%rip),%rsi
mov    %r14d,%edi
xor    %edx,%edx
call   1070 <init_query@plt>
lea    0x270(%rsp),%r15
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r15,%rdx
call   1050 <do_query@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   10a0 <fetch_total@plt>
lea    (%r14,%rbp,1),%r8d
add    $0x1,%ebp
lea    0xd3d(%rip),%rdi
mov    %r15,%rsi
mov    %eax,%edx
mov    %ebp,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
test   %r14d,%r14d
jle    1375 <main+0x1c5>
neg    %r14d
mov    $0x1,%ebx
lea    0x1a0(%rsp),%rbp
lea    0xd0(%rsp),%r15
mov    %rsp,%r12
lea    0xd61(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
call   1090 <wfetch@plt>
lea    0xd1e(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
lea    0x270(%rsp),%rsi
lea    0xd53(%rip),%rdx
lea    0xd50(%rip),%rcx
call   10d0 <highlight@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %rax,%r8
xor    %eax,%eax
call   1060 <printf@plt>
lea    (%r14,%rbx,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
cmp    $0x1,%eax
jne    1310 <main+0x160>
xor    %eax,%eax
call   1030 <done_query@plt>
jmp    138a <main+0x1da>
lea    0xd17(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x678,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"-s\00"
@.str.1 = [3 x i8] c"-S\00"
@.str.2 = [72 x i8] c"Syntax: wQuery [-s] start length keyword\0AExample: wQuery 0 100 \E6\B5\8B\E8\AF\95\0A\00"
@.str.3 = [2 x i8] c" \00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [59 x i8] c"########## \E5\85\B3\E9\94\AE\E5\AD\97:%s \E6\80\BB\E6\95\B0:%d \E8\BE\93\E5\87\BA:%d-%d ##########\0A\00"
@.str.6 = [34 x i8] c"========== Result #%d ==========\0A\00"
@.str.7 = [46 x i8] c"ID: [%s]\0ATitle: [%s]\0ATag: [%s]\0AContent: [%s]\0A\00"
@.str.8 = [4 x i8] c"<B>\00"
@.str.9 = [5 x i8] c"</B>\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [1024 x i8]
%12 = alloca [200 x i8]
%13 = alloca [200 x i8]
%14 = alloca [200 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
%15 = load i32, i32* %4
%16 = icmp sge i32 %15, 2
br i1 %16, label %17, label %30
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @strcmp(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %17
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %23, %17
store i32 1, i32* %8
br label %30
30: ; preds = %29, %23, %2
%31 = load i32, i32* %4
%32 = icmp slt i32 %31, 4
br i1 %32, label %33, label %36
33: ; preds = %30
%34 = load i32, i32* %8
%35 = icmp eq i32 %34, 0
br i1 %35, label %42, label %36
36: ; preds = %33, %30
%37 = load i32, i32* %4
%38 = icmp slt i32 %37, 5
br i1 %38, label %39, label %44
39: ; preds = %36
%40 = load i32, i32* %8
%41 = icmp eq i32 %40, 1
br i1 %41, label %42, label %44
42: ; preds = %39, %33
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %118
44: ; preds = %39, %36
%45 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
store i8 0, i8* %45
%46 = load i32, i32* %8
%47 = add nsw i32 3, %46
store i32 %47, i32* %6
br label %48
48: ; preds = %62, %44
%49 = load i32, i32* %6
%50 = load i32, i32* %4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %65
52: ; preds = %48
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%54 = load i8**, i8*** %5
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8*, i8** %54, i64 %56
%58 = load i8*, i8** %57
%59 = call i32 @strcat(i8* %53, i8* %58)
%60 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%61 = call i32 @strcat(i8* %60, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %62
62: ; preds = %52
%63 = load i32, i32* %6
%64 = add nsw i32 %63, 1
store i32 %64, i32* %6
br label %48
65: ; preds = %48
%66 = load i8**, i8*** %5
%67 = load i32, i32* %8
%68 = add nsw i32 1, %67
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8*, i8** %66, i64 %69
%71 = load i8*, i8** %70
%72 = call i32 @atoi(i8* %71)
store i32 %72, i32* %6
%73 = load i8**, i8*** %5
%74 = load i32, i32* %8
%75 = add nsw i32 2, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8*, i8** %73, i64 %76
%78 = load i8*, i8** %77
%79 = call i32 @atoi(i8* %78)
store i32 %79, i32* %7
%80 = load i32, i32* %8
%81 = call i32 @init_query(i32 %80, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i32 0)
%82 = load i32, i32* %6
%83 = load i32, i32* %7
%84 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%85 = call i32 @do_query(i32 %82, i32 %83, i8* %84)
store i32 %85, i32* %9
%86 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%87 = call i32 (...) @fetch_total()
%88 = load i32, i32* %6
%89 = add nsw i32 %88, 1
%90 = load i32, i32* %6
%91 = load i32, i32* %9
%92 = add nsw i32 %90, %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i8* %86, i32 %87, i32 %89, i32 %92)
store i32 0, i32* %6
br label %94
94: ; preds = %113, %65
%95 = load i32, i32* %6
%96 = load i32, i32* %9
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %116
98: ; preds = %94
%99 = getelementptr inbounds [200 x i8], [200 x i8]* %12, i64 0, i64 0
%100 = getelementptr inbounds [200 x i8], [200 x i8]* %13, i64 0, i64 0
%101 = getelementptr inbounds [200 x i8], [200 x i8]* %14, i64 0, i64 0
%102 = call i32 @wfetch(i8* %99, i8* %100, i8* %101)
%103 = load i32, i32* %6
%104 = add nsw i32 %103, 1
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %104)
%106 = getelementptr inbounds [200 x i8], [200 x i8]* %12, i64 0, i64 0
%107 = getelementptr inbounds [200 x i8], [200 x i8]* %13, i64 0, i64 0
%108 = getelementptr inbounds [200 x i8], [200 x i8]* %14, i64 0, i64 0
%109 = getelementptr inbounds [200 x i8], [200 x i8]* %12, i64 0, i64 0
%110 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%111 = call i8* @highlight(i8* %109, i8* %110, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0), i8* %106, i8* %107, i8* %108, i8* %111)
br label %113
113: ; preds = %98
%114 = load i32, i32* %6
%115 = add nsw i32 %114, 1
store i32 %115, i32* %6
br label %94
116: ; preds = %94
%117 = call i32 (...) @done_query()
store i32 0, i32* %3
br label %118
118: ; preds = %116, %42
%119 = load i32, i32* %3
ret i32 %119
}

LLVM IR (-O2):
@.str = [3 x i8] c"-s\00"
@.str.1 = [3 x i8] c"-S\00"
@.str.3 = [2 x i8] c" \00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [59 x i8] c"########## \E5\85\B3\E9\94\AE\E5\AD\97:%s \E6\80\BB\E6\95\B0:%d \E8\BE\93\E5\87\BA:%d-%d ##########\0A\00"
@.str.6 = [34 x i8] c"========== Result #%d ==========\0A\00"
@.str.7 = [46 x i8] c"ID: [%s]\0ATitle: [%s]\0ATag: [%s]\0AContent: [%s]\0A\00"
@.str.8 = [4 x i8] c"<B>\00"
@.str.9 = [5 x i8] c"</B>\00"
@str = [71 x i8] c"Syntax: wQuery [-s] start length keyword\0AExample: wQuery 0 100 \E6\B5\8B\E8\AF\95\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1024 x i8]
%4 = alloca [200 x i8]
%5 = alloca [200 x i8]
%6 = alloca [200 x i8]
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%8 = icmp sgt i32 %0, 1
br i1 %8, label %9, label %18
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %9
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %14, %9
br label %18
18: ; preds = %17, %14, %2
%19 = phi i1 [ false, %17 ], [ true, %14 ], [ true, %2 ]
%20 = phi i1 [ true, %17 ], [ false, %14 ], [ false, %2 ]
%21 = phi i32 [ 1, %17 ], [ 0, %14 ], [ 0, %2 ]
%22 = icmp slt i32 %0, 4
%23 = and i1 %22, %19
%24 = icmp slt i32 %0, 5
%25 = and i1 %24, %20
%26 = or i1 %23, %25
br i1 %26, label %27, label %29
27: ; preds = %18
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
br label %76
29: ; preds = %18
store i8 0, i8* %7
%30 = add nuw nsw i32 %21, 3
%31 = icmp slt i32 %30, %0
br i1 %31, label %32, label %44
32: ; preds = %29
%33 = add nuw nsw i32 %21, 3
%34 = zext i32 %33 to i64
%35 = zext i32 %0 to i64
br label %36
36: ; preds = %32, %36
%37 = phi i64 [ %34, %32 ], [ %42, %36 ]
%38 = getelementptr inbounds i8*, i8** %1, i64 %37
%39 = load i8*, i8** %38
%40 = call i32 @strcat(i8* %7, i8* %39)
%41 = call i32 @strcat(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%42 = add nuw nsw i64 %37, 1
%43 = icmp eq i64 %42, %35
br i1 %43, label %44, label %36
44: ; preds = %36, %29
%45 = add nuw nsw i32 %21, 1
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i8*, i8** %1, i64 %46
%48 = load i8*, i8** %47
%49 = call i32 @atoi(i8* %48)
%50 = or i32 %21, 2
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds i8*, i8** %1, i64 %51
%53 = load i8*, i8** %52
%54 = call i32 @atoi(i8* %53)
%55 = call i32 @init_query(i32 %21, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i32 0)
%56 = call i32 @do_query(i32 %49, i32 %54, i8* %7)
%57 = call i32 (...) @fetch_total()
%58 = add nsw i32 %49, 1
%59 = add nsw i32 %56, %49
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i8* %7, i32 %57, i32 %58, i32 %59)
%61 = icmp sgt i32 %56, 0
br i1 %61, label %62, label %74
62: ; preds = %44
%63 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%64 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%65 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
br label %66
66: ; preds = %62, %66
%67 = phi i32 [ 0, %62 ], [ %69, %66 ]
%68 = call i32 @wfetch(i8* %63, i8* %64, i8* %65)
%69 = add nuw nsw i32 %67, 1
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %69)
%71 = call i8* @highlight(i8* %63, i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0), i8* %63, i8* %64, i8* %65, i8* %71)
%73 = icmp eq i32 %69, %56
br i1 %73, label %74, label %66
74: ; preds = %66, %44
%75 = call i32 (...) @done_query()
br label %76
76: ; preds = %74, %27
ret i32 0
}