#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
void showHelp(const char *zArgv0) {
  printf("Usage: %s [options] DATABASE ...\n", zArgv0);
  printf("Read databases into an in-memory filesystem.  Run test SQL as "
         "specified\n"
         "by command-line arguments or from\n"
         "\n"
         "    SELECT group_concat(sql) FROM autoexec;\n"
         "\n"
         "Options:\n"
         "  --help              Show this help text\n"
         "  -q|--quiet          Reduced output\n"
         "  --limit-mem N       Limit memory used by test SQLite instances to "
         "N bytes\n"
         "  --limit-vdbe        Panic if any test runs for more than 100,000 "
         "cycles\n"
         "  --no-lookaside      Disable the lookaside memory allocator\n"
         "  --timeout N         Timeout after N seconds.\n"
         "  --trace             Show the results of each SQL command\n"
         "  -v|--verbose        Increased output.  Repeat for more output.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<showHelp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<showHelp>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Usage: %s [options] DATABASE ...\0A\00"
@.str.1 = [623 x i8] c"Read databases into an in-memory filesystem. Run test SQL as specified\0Aby command-line arguments or from\0A\0A SELECT group_concat(sql) FROM autoexec;\0A\0AOptions:\0A --help Show this help text\0A -q|--quiet Reduced output\0A --limit-mem N Limit memory used by test SQLite instances to N bytes\0A --limit-vdbe Panic if any test runs for more than 100,000 cycles\0A --no-lookaside Disable the lookaside memory allocator\0A --timeout N Timeout after N seconds.\0A --trace Show the results of each SQL command\0A -v|--verbose Increased output. Repeat for more output.\0A\00"
define void @showHelp(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([623 x i8], [623 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [34 x i8] c"Usage: %s [options] DATABASE ...\0A\00"
@str = [622 x i8] c"Read databases into an in-memory filesystem. Run test SQL as specified\0Aby command-line arguments or from\0A\0A SELECT group_concat(sql) FROM autoexec;\0A\0AOptions:\0A --help Show this help text\0A -q|--quiet Reduced output\0A --limit-mem N Limit memory used by test SQLite instances to N bytes\0A --limit-vdbe Panic if any test runs for more than 100,000 cycles\0A --no-lookaside Disable the lookaside memory allocator\0A --timeout N Timeout after N seconds.\0A --trace Show the results of each SQL command\0A -v|--verbose Increased output. Repeat for more output.\00"
define void @showHelp(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([622 x i8], [622 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @exit(i32 0)
unreachable
}