#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*/ printf(char *, ...);
int usage(char *fn) {
  printf("cmail-admin-popd - Manage cmail-popd ACL\n");
  printf("This program is part of the cmail administration toolkit\n");
  printf("Usage: %s <options> <commands> <arguments>\n\n", fn);
  printf("Basic options:\n");
  printf("\t--verbosity, -v\t\t\tSet verbosity level (0 - 4)\n");
  printf("\t--dbpath, -d <dbpath>\t\tSet master database path (Default: %s)\n",
         "/etc/cmail/databases/master.db3");
  printf("\t--help, -h\t\t\tDisplay this help message\n");
  printf("Commands:\n");
  printf("\tenable <user>\t\tAdd the user to the ACL\n");
  printf("\tdisable <user>\t\tRemove the user from the ACL\n");
  printf("\tunlock <user>\t\tUnlock the maildrop, use in emergencies only!\n");
  printf("\tlist [<filter>]\t\tList all active users, optionally filter by "
         "<filter>\n");
  return 1;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
lea    0xf9d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1003(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1034(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xf62(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7f(%rip),%rdi
call   1030 <puts@plt>
lea    0xebd(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9e(%rip),%rdi
call   1030 <puts@plt>
lea    0xec1(%rip),%rdi
lea    0xefa(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfac(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1004(%rip),%rdi
call   1030 <puts@plt>
lea    0x1036(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [42 x i8] c"cmail-admin-popd - Manage cmail-popd ACL\0A\00"
@.str.1 = [58 x i8] c"This program is part of the cmail administration toolkit\0A\00"
@.str.2 = [45 x i8] c"Usage: %s <options> <commands> <arguments>\0A\0A\00"
@.str.3 = [16 x i8] c"Basic options:\0A\00"
@.str.4 = [48 x i8] c"\09--verbosity, -v\09\09\09Set verbosity level (0 - 4)\0A\00"
@.str.5 = [64 x i8] c"\09--dbpath, -d <dbpath>\09\09Set master database path (Default: %s)\0A\00"
@.str.6 = [32 x i8] c"/etc/cmail/databases/master.db3\00"
@.str.7 = [41 x i8] c"\09--help, -h\09\09\09Display this help message\0A\00"
@.str.8 = [11 x i8] c"Commands:\0A\00"
@.str.9 = [41 x i8] c"\09enable <user>\09\09Add the user to the ACL\0A\00"
@.str.10 = [47 x i8] c"\09disable <user>\09\09Remove the user from the ACL\0A\00"
@.str.11 = [63 x i8] c"\09unlock <user>\09\09Unlock the maildrop, use in emergencies only!\0A\00"
@.str.12 = [72 x i8] c"\09list [<filter>]\09\09List all active users, optionally filter by <filter>\0A\00"
define i32 @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
%5 = load i8*, i8** %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str.2 = [45 x i8] c"Usage: %s <options> <commands> <arguments>\0A\0A\00"
@.str.5 = [64 x i8] c"\09--dbpath, -d <dbpath>\09\09Set master database path (Default: %s)\0A\00"
@.str.6 = [32 x i8] c"/etc/cmail/databases/master.db3\00"
@str = [41 x i8] c"cmail-admin-popd - Manage cmail-popd ACL\00"
@str.13 = [57 x i8] c"This program is part of the cmail administration toolkit\00"
@str.14 = [15 x i8] c"Basic options:\00"
@str.15 = [47 x i8] c"\09--verbosity, -v\09\09\09Set verbosity level (0 - 4)\00"
@str.16 = [40 x i8] c"\09--help, -h\09\09\09Display this help message\00"
@str.17 = [10 x i8] c"Commands:\00"
@str.18 = [40 x i8] c"\09enable <user>\09\09Add the user to the ACL\00"
@str.19 = [46 x i8] c"\09disable <user>\09\09Remove the user from the ACL\00"
@str.20 = [62 x i8] c"\09unlock <user>\09\09Unlock the maildrop, use in emergencies only!\00"
@str.21 = [71 x i8] c"\09list [<filter>]\09\09List all active users, optionally filter by <filter>\00"
define i32 @usage(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.21, i64 0, i64 0))
ret i32 1
}