#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-smtpd - Manage cmail-smtpd 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\tSet verbosity level (0 - 4)\n");
  printf("\t--dbpath, -d <dbpath>\tSet master database path (Default: %s)\n",
         "/etc/cmail/databases/master.db3");
  printf("\t--help, -h\t\tDisplay this help message\n\n");
  printf("Commands:\n");
  printf("\tlist [<user>]\t\t\t\t\tList currently active entries, optionally "
         "filtered by <user>\n");
  printf("\tenable <user> [<router> [<router-argument>]]\tAdd <user> to smtpd "
         "ACL\n");
  printf("\tupdate <user> <router> [<router-argument>]\tUpdate the origination "
         "router for <user>\n");
  printf("\tdisable <user>\t\t\t\t\tDelete <user> from smtpd ACL\n");
  return 10;
}


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    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf65(%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    0x100a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1043(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xa,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xf61(%rip),%rdi
call   1030 <puts@plt>
lea    0xf80(%rip),%rdi
call   1030 <puts@plt>
lea    0xebd(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xec1(%rip),%rdi
lea    0xef9(%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    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1044(%rip),%rdi
call   1030 <puts@plt>
lea    0x108d(%rip),%rdi
call   1030 <puts@plt>
mov    $0xa,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [44 x i8] c"cmail-admin-smtpd - Manage cmail-smtpd 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 = [47 x i8] c"\09--verbosity, -v\09\09Set verbosity level (0 - 4)\0A\00"
@.str.5 = [63 x i8] c"\09--dbpath, -d <dbpath>\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\09Display this help message\0A\0A\00"
@.str.8 = [11 x i8] c"Commands:\0A\00"
@.str.9 = [81 x i8] c"\09list [<user>]\09\09\09\09\09List currently active entries, optionally filtered by <user>\0A\00"
@.str.10 = [71 x i8] c"\09enable <user> [<router> [<router-argument>]]\09Add <user> to smtpd ACL\0A\00"
@.str.11 = [86 x i8] c"\09update <user> <router> [<router-argument>]\09Update the origination router for <user>\0A\00"
@.str.12 = [50 x i8] c"\09disable <user>\09\09\09\09\09Delete <user> from smtpd ACL\0A\00"
define i32 @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 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 ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 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 ([81 x i8], [81 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0))
ret i32 10
}

LLVM IR (-O2):
@.str.2 = [45 x i8] c"Usage: %s <options> <commands> <arguments>\0A\0A\00"
@.str.5 = [63 x i8] c"\09--dbpath, -d <dbpath>\09Set master database path (Default: %s)\0A\00"
@.str.6 = [32 x i8] c"/etc/cmail/databases/master.db3\00"
@str = [43 x i8] c"cmail-admin-smtpd - Manage cmail-smtpd 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 = [46 x i8] c"\09--verbosity, -v\09\09Set verbosity level (0 - 4)\00"
@str.16 = [40 x i8] c"\09--help, -h\09\09Display this help message\0A\00"
@str.17 = [10 x i8] c"Commands:\00"
@str.18 = [80 x i8] c"\09list [<user>]\09\09\09\09\09List currently active entries, optionally filtered by <user>\00"
@str.19 = [70 x i8] c"\09enable <user> [<router> [<router-argument>]]\09Add <user> to smtpd ACL\00"
@str.20 = [85 x i8] c"\09update <user> <router> [<router-argument>]\09Update the origination router for <user>\00"
@str.21 = [49 x i8] c"\09disable <user>\09\09\09\09\09Delete <user> from smtpd ACL\00"
define i32 @usage(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 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 ([46 x i8], [46 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 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 ([80 x i8], [80 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.21, i64 0, i64 0))
ret i32 10
}