#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr, "Usage: mpool_t [-bhHilMnsv] [-m size] [-p number] "
                        "[-P size] [-S seed] [-t times]\n");
  (void)fprintf(stderr, "  -b              set MPOOL_FLAG_BEST_FIT\n"
                        "  -h              set MPOOL_FLAG_NO_FREE\n"
                        "  -H              use system heap not mpool\n"
                        "  -i              turn on interactive mode\n"
                        "  -l              log memory transactions\n"
                        "  -M              max number pages in mpool\n"
                        "  -n              set MPOOL_FLAG_NO_FREE\n"
                        "  -s              use sbrk instead of mmap\n"
                        "  -v              enable verbose messages\n"
                        "  -m size         maximum allocation to test\n"
                        "  -p max-pnts     number of pointers to test\n"
                        "  -S seed-rand    seed for random function\n"
                        "  -t interations  number of iterations to run\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xf09(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf13(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [82 x i8] c"Usage: mpool_t [-bhHilMnsv] [-m size] [-p number] [-P size] [-S seed] [-t times]\0A\00"
@.str.1 = [562 x i8] c" -b set MPOOL_FLAG_BEST_FIT\0A -h set MPOOL_FLAG_NO_FREE\0A -H use system heap not mpool\0A -i turn on interactive mode\0A -l log memory transactions\0A -M max number pages in mpool\0A -n set MPOOL_FLAG_NO_FREE\0A -s use sbrk instead of mmap\0A -v enable verbose messages\0A -m size maximum allocation to test\0A -p max-pnts number of pointers to test\0A -S seed-rand seed for random function\0A -t interations number of iterations to run\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([562 x i8], [562 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [82 x i8] c"Usage: mpool_t [-bhHilMnsv] [-m size] [-p number] [-P size] [-S seed] [-t times]\0A\00"
@.str.1 = [562 x i8] c" -b set MPOOL_FLAG_BEST_FIT\0A -h set MPOOL_FLAG_NO_FREE\0A -H use system heap not mpool\0A -i turn on interactive mode\0A -l log memory transactions\0A -M max number pages in mpool\0A -n set MPOOL_FLAG_NO_FREE\0A -s use sbrk instead of mmap\0A -v enable verbose messages\0A -m size maximum allocation to test\0A -p max-pnts number of pointers to test\0A -S seed-rand seed for random function\0A -t interations number of iterations to run\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([562 x i8], [562 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
}