#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-permissions - Manage permissions for the cmail web panel\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("\tgrant <user> <permissions>\t\t\tGrant permissions to a user\n");
  printf("\trevoke <user> [<permission> [, <permission>]] \trevokes the given "
         "permission or all permissions if no permission is given from the "
         "user\n");
  printf("\tlist [<user>]\t\t\t\t list all permissions or permissions of the "
         "given user (or like the user expression)\n");
  printf("\trlist <permission>\t\t\t\t list all users like the given "
         "permission\n");
  printf(
      "\tdelete user <delete>\t\t\t\t delete the user delegation from user\n");
  printf("\tdelete expression <delete>\t\t\t delete the address space "
         "delegation from user\n");
  printf("\tdelegate user <user> <delegated>\t delegates a user to the given "
         "<user>\n");
  printf("\tdelegate address <user> <expression>\t delegates the given address "
         "space to the user\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    0xf15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
lea    0xfb9(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1010(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x108b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1119(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x114b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x118b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11c6(%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    0xf9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xebd(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfba(%rip),%rdi
call   1030 <puts@plt>
lea    0xec1(%rip),%rdi
lea    0xefa(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e7(%rip),%rdi
call   1030 <puts@plt>
lea    0x111c(%rip),%rdi
call   1030 <puts@plt>
lea    0x114f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1190(%rip),%rdi
call   1030 <puts@plt>
lea    0x11cc(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [70 x i8] c"cmail-admin-permissions - Manage permissions for the cmail web panel\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 = [59 x i8] c"\09grant <user> <permissions>\09\09\09Grant permissions to a user\0A\00"
@.str.10 = [137 x i8] c"\09revoke <user> [<permission> [, <permission>]] \09revokes the given permission or all permissions if no permission is given from the user\0A\00"
@.str.11 = [104 x i8] c"\09list [<user>]\09\09\09\09 list all permissions or permissions of the given user (or like the user expression)\0A\00"
@.str.12 = [66 x i8] c"\09rlist <permission>\09\09\09\09 list all users like the given permission\0A\00"
@.str.13 = [64 x i8] c"\09delete user <delete>\09\09\09\09 delete the user delegation from user\0A\00"
@.str.14 = [78 x i8] c"\09delete expression <delete>\09\09\09 delete the address space delegation from user\0A\00"
@.str.15 = [73 x i8] c"\09delegate user <user> <delegated>\09 delegates a user to the given <user>\0A\00"
@.str.16 = [86 x i8] c"\09delegate address <user> <expression>\09 delegates the given address space to the user\0A\00"
define i32 @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 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 ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.16, 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 = [69 x i8] c"cmail-admin-permissions - Manage permissions for the cmail web panel\00"
@str.17 = [57 x i8] c"This program is part of the cmail administration toolkit\00"
@str.18 = [15 x i8] c"Basic options:\00"
@str.19 = [47 x i8] c"\09--verbosity, -v\09\09\09Set verbosity level (0 - 4)\00"
@str.20 = [40 x i8] c"\09--help, -h\09\09\09Display this help message\00"
@str.21 = [10 x i8] c"Commands:\00"
@str.22 = [58 x i8] c"\09grant <user> <permissions>\09\09\09Grant permissions to a user\00"
@str.23 = [136 x i8] c"\09revoke <user> [<permission> [, <permission>]] \09revokes the given permission or all permissions if no permission is given from the user\00"
@str.24 = [103 x i8] c"\09list [<user>]\09\09\09\09 list all permissions or permissions of the given user (or like the user expression)\00"
@str.25 = [65 x i8] c"\09rlist <permission>\09\09\09\09 list all users like the given permission\00"
@str.26 = [63 x i8] c"\09delete user <delete>\09\09\09\09 delete the user delegation from user\00"
@str.27 = [77 x i8] c"\09delete expression <delete>\09\09\09 delete the address space delegation from user\00"
@str.28 = [72 x i8] c"\09delegate user <user> <delegated>\09 delegates a user to the given <user>\00"
@str.29 = [85 x i8] c"\09delegate address <user> <expression>\09 delegates the given address space to the user\00"
define i32 @usage(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.17, 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.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.19, 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.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([136 x i8], [136 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.26, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.27, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.28, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.29, i64 0, i64 0))
ret i32 1
}