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

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void print_search_usage(char *progname) {
  fprintf(stderr,
          "\nThe program loads <index> and then executes over it the\n");
  fprintf(stderr,
          "queries it receives from the standard input. The standard\n");
  fprintf(stderr, "input comes in the format of the files written by \n");
  fprintf(stderr, "genpatterns or genintervals.\n");
  fprintf(stderr, "%s reports on the standard error time statistics\n",
          progname);
  fprintf(stderr, "regarding to running the queries.\n\n");
  fprintf(stderr,
          "Usage:  %s <index> <type> <numPatts> <repetitions> [V] "
          "[search_opts] < patt_file\n",
          progname);
  fprintf(stderr, "\n\t<type>   denotes the type of queries:\n");
  fprintf(stderr, "\t         %c <numListsToExtract><iterations per list>\n",
          ('E'));
  fprintf(
      stderr,
      "\t             Extracts the values of the lists: memory is allocated\n");
  fprintf(stderr, "\t         %c <numListsToExtract><iterations per list>\n",
          ('e'));
  fprintf(stderr, "\t             Extracts the values of the lists: memory is "
                  "reserved only once.\n");
  fprintf(stderr, "\t         %c <numFrases><iterations per frase>\n", ('I'));
  fprintf(stderr, "\t             Intersection of two lists (diff. opts. "
                  "depending on [search_opts])\n");
  fprintf(stderr, "\t         %c <numFrases><iterations per frase>\n", ('N'));
  fprintf(stderr, "\t             Intersection of n lists (diff. opts. "
                  "depending on [search_opts])\n");
  fprintf(stderr,
          "\n\t[V]      with this option it reports on the standard output\n");
  fprintf(stderr,
          "\t         the results of the queries. The results file might be\n");
  fprintf(stderr,
          "\t         compared with a trusted one by the compare program.\n\n");
}


x86 assembly (clang, -O0):
<print_search_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
lea    0xef7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
lea    0xf1b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e78(%rip),%rax
mov    (%rax),%edi
lea    0xf38(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xf3b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e46(%rip),%rax
mov    (%rax),%edi
lea    0xf56(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xf5f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
lea    0xf9a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dfd(%rip),%rax
mov    (%rax),%edi
lea    0xfac(%rip),%rsi
mov    $0x45,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
lea    0xfc7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dca(%rip),%rax
mov    (%rax),%edi
lea    0xf79(%rip),%rsi
mov    $0x65,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
lea    0xfd9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d97(%rip),%rax
mov    (%rax),%edi
lea    0x1011(%rip),%rsi
mov    $0x49,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d7b(%rip),%rax
mov    (%rax),%edi
lea    0x1025(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d64(%rip),%rax
mov    (%rax),%edi
lea    0xfde(%rip),%rsi
mov    $0x4e,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d48(%rip),%rax
mov    (%rax),%edi
lea    0x1044(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d31(%rip),%rax
mov    (%rax),%edi
lea    0x107d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d1a(%rip),%rax
mov    (%rax),%edi
lea    0x10a5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
lea    0x10cf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_search_usage>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    0x2ec2(%rip),%rbx
mov    (%rbx),%edi
lea    0xed9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf03(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf2e(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf52(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf60(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7f(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf93(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfeb(%rip),%r14
mov    %r14,%rsi
mov    $0x45,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x100a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
mov    $0x65,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x102e(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x106d(%rip),%r14
mov    %r14,%rsi
mov    $0x49,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1085(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
mov    $0x4e,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10b6(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10f6(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1125(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1156(%rip),%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [58 x i8] c"\0AThe program loads <index> and then executes over it the\0A\00"
@.str.1 = [59 x i8] c"queries it receives from the standard input. The standard\0A\00"
@.str.2 = [52 x i8] c"input comes in the format of the files written by \0A\00"
@.str.3 = [30 x i8] c"genpatterns or genintervals.\0A\00"
@.str.4 = [50 x i8] c"%s reports on the standard error time statistics\0A\00"
@.str.5 = [36 x i8] c"regarding to running the queries.\0A\0A\00"
@.str.6 = [82 x i8] c"Usage: %s <index> <type> <numPatts> <repetitions> [V] [search_opts] < patt_file\0A\00"
@.str.7 = [41 x i8] c"\0A\09<type> denotes the type of queries:\0A\00"
@.str.8 = [55 x i8] c"\09 %c <numListsToExtract><iterations per list>\0A\00"
@.str.9 = [69 x i8] c"\09 Extracts the values of the lists: memory is allocated\0A\00"
@.str.10 = [79 x i8] c"\09 Extracts the values of the lists: memory is reserved only once.\0A\00"
@.str.11 = [48 x i8] c"\09 %c <numFrases><iterations per frase>\0A\00"
@.str.12 = [82 x i8] c"\09 Intersection of two lists (diff. opts. depending on [search_opts])\0A\00"
@.str.13 = [80 x i8] c"\09 Intersection of n lists (diff. opts. depending on [search_opts])\0A\00"
@.str.14 = [63 x i8] c"\0A\09[V] with this option it reports on the standard output\0A\00"
@.str.15 = [65 x i8] c"\09 the results of the queries. The results file might be\0A\00"
@.str.16 = [64 x i8] c"\09 compared with a trusted one by the compare program.\0A\0A\00"
define void @print_search_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = load i8*, i8** %2
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), i8* %12)
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = load i8*, i8** %2
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0), i8* %17)
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 69)
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 101)
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.10, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i32 73)
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.12, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i32 78)
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [58 x i8] c"\0AThe program loads <index> and then executes over it the\0A\00"
@.str.1 = [59 x i8] c"queries it receives from the standard input. The standard\0A\00"
@.str.2 = [52 x i8] c"input comes in the format of the files written by \0A\00"
@.str.3 = [30 x i8] c"genpatterns or genintervals.\0A\00"
@.str.4 = [50 x i8] c"%s reports on the standard error time statistics\0A\00"
@.str.5 = [36 x i8] c"regarding to running the queries.\0A\0A\00"
@.str.6 = [82 x i8] c"Usage: %s <index> <type> <numPatts> <repetitions> [V] [search_opts] < patt_file\0A\00"
@.str.7 = [41 x i8] c"\0A\09<type> denotes the type of queries:\0A\00"
@.str.8 = [55 x i8] c"\09 %c <numListsToExtract><iterations per list>\0A\00"
@.str.9 = [69 x i8] c"\09 Extracts the values of the lists: memory is allocated\0A\00"
@.str.10 = [79 x i8] c"\09 Extracts the values of the lists: memory is reserved only once.\0A\00"
@.str.11 = [48 x i8] c"\09 %c <numFrases><iterations per frase>\0A\00"
@.str.12 = [82 x i8] c"\09 Intersection of two lists (diff. opts. depending on [search_opts])\0A\00"
@.str.13 = [80 x i8] c"\09 Intersection of n lists (diff. opts. depending on [search_opts])\0A\00"
@.str.14 = [63 x i8] c"\0A\09[V] with this option it reports on the standard output\0A\00"
@.str.15 = [65 x i8] c"\09 the results of the queries. The results file might be\0A\00"
@.str.16 = [64 x i8] c"\09 compared with a trusted one by the compare program.\0A\0A\00"
define void @print_search_usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 69)
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 101)
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.10, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i32 73)
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.12, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i32 78)
%32 = load i32, i32* @stderr
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.13, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%38 = load i32, i32* @stderr
%39 = tail call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.16, i64 0, i64 0))
ret void
}