#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);
int /*<<< orphan*/ printf(char *, ...);
void usage(char *wrong) {
  if (wrong)
    printf("Wrong option '%s' or option argument missing\n\n", wrong);
  printf("Usage: redis-stat <type> ... options ...\n\n"
         "Statistic types:\n"
         " overview (default)   Print general information about a Redis "
         "instance.\n"
         " latency              Measure Redis server latency.\n"
         "\n"
         "Options:\n"
         " host <hostname>      Server hostname (default 127.0.0.1)\n"
         " port <hostname>      Server port (default 6379)\n"
         " delay <milliseconds> Delay between requests (default: 1000 ms, 1 "
         "second).\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1149 <usage+0x29>
mov    -0x8(%rbp),%rsi
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
test   %rdi,%rdi
je     1147 <usage+0x17>
mov    %rdi,%rsi
lea    0xec0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [47 x i8] c"Wrong option '%s' or option argument missing\0A\0A\00"
@.str.1 = [376 x i8] c"Usage: redis-stat <type> ... options ...\0A\0AStatistic types:\0A overview (default) Print general information about a Redis instance.\0A latency Measure Redis server latency.\0A\0AOptions:\0A host <hostname> Server hostname (default 127.0.0.1)\0A port <hostname> Server port (default 6379)\0A delay <milliseconds> Delay between requests (default: 1000 ms, 1 second).\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %8
8: ; preds = %5, %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([376 x i8], [376 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [47 x i8] c"Wrong option '%s' or option argument missing\0A\0A\00"
@str = [375 x i8] c"Usage: redis-stat <type> ... options ...\0A\0AStatistic types:\0A overview (default) Print general information about a Redis instance.\0A latency Measure Redis server latency.\0A\0AOptions:\0A host <hostname> Server hostname (default 127.0.0.1)\0A port <hostname> Server port (default 6379)\0A delay <milliseconds> Delay between requests (default: 1000 ms, 1 second).\00"
define void @usage(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %5
5: ; preds = %3, %1
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([375 x i8], [375 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
}