#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 *, ...);
void usage(void) {
  extern const char *__progname;
  printf("Usage: %s [OPTIONS] directory [src dst range]\n\n", __progname);
  printf("  -u, --uid                      convert uids in directory\n");
  printf("  -g, --gid                      convert gids in directory\n");
  printf(
      "  -b, --both                     convert uids and gids in directory\n");
  printf("  -r, --range                    find min,max uid/gid used in "
         "directory\n");
  printf("  -v, --verbose                  increate verbosity\n\n");
  printf("Note this program always recursively walks all of directory.\n");
  printf("If -u,-g, or -b is given, then [src dst range] are required to "
         "convert the \n");
  printf("ids within the range [src..src+range] to [dst..dst+range].\n\n");
  printf("Examples:\n");
  printf("  %s -r /path/to/directory                # show min/max uid/gid\n",
         __progname);
  printf("  %s -b /path/to/directory 0 100000 500   # map uids and gids up\n",
         __progname);
  printf("  %s -u /path/to/directory 100000 0 500   # map the uids back down\n",
         __progname);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ebd(%rip),%rax
mov    (%rax),%rsi
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1062(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1091(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%rsi
lea    0x1084(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e0f(%rip),%rax
mov    (%rax),%rsi
lea    0x10ae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%rsi
lea    0x10d8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2eb0(%rip),%rbx
mov    (%rbx),%rsi
lea    0xece(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1016(%rip),%rdi
call   1030 <puts@plt>
lea    0x104e(%rip),%rdi
call   1030 <puts@plt>
lea    0x108a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b3(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1124(%rip),%rdi
call   1030 <puts@plt>
lea    0x1154(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%rsi
lea    0xe81(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rsi
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%rsi
lea    0xee3(%rip),%rdi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [48 x i8] c"Usage: %s [OPTIONS] directory [src dst range]\0A\0A\00"
@__progname = external global i8*
@.str.1 = [60 x i8] c" -u, --uid convert uids in directory\0A\00"
@.str.2 = [60 x i8] c" -g, --gid convert gids in directory\0A\00"
@.str.3 = [69 x i8] c" -b, --both convert uids and gids in directory\0A\00"
@.str.4 = [73 x i8] c" -r, --range find min,max uid/gid used in directory\0A\00"
@.str.5 = [54 x i8] c" -v, --verbose increate verbosity\0A\0A\00"
@.str.6 = [62 x i8] c"Note this program always recursively walks all of directory.\0A\00"
@.str.7 = [77 x i8] c"If -u,-g, or -b is given, then [src dst range] are required to convert the \0A\00"
@.str.8 = [61 x i8] c"ids within the range [src..src+range] to [dst..dst+range].\0A\0A\00"
@.str.9 = [11 x i8] c"Examples:\0A\00"
@.str.10 = [66 x i8] c" %s -r /path/to/directory # show min/max uid/gid\0A\00"
@.str.11 = [66 x i8] c" %s -b /path/to/directory 0 100000 500 # map uids and gids up\0A\00"
@.str.12 = [68 x i8] c" %s -u /path/to/directory 100000 0 500 # map the uids back down\0A\00"
define void @usage() {
%1 = load i8*, i8** @__progname
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%12 = load i8*, i8** @__progname
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0), i8* %12)
%14 = load i8*, i8** @__progname
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0), i8* %14)
%16 = load i8*, i8** @__progname
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0), i8* %16)
ret void
}

LLVM IR (-O2):
@.str = [48 x i8] c"Usage: %s [OPTIONS] directory [src dst range]\0A\0A\00"
@__progname = external global i8*
@.str.10 = [66 x i8] c" %s -r /path/to/directory # show min/max uid/gid\0A\00"
@.str.11 = [66 x i8] c" %s -b /path/to/directory 0 100000 500 # map uids and gids up\0A\00"
@.str.12 = [68 x i8] c" %s -u /path/to/directory 100000 0 500 # map the uids back down\0A\00"
@str = [59 x i8] c" -u, --uid convert uids in directory\00"
@str.13 = [59 x i8] c" -g, --gid convert gids in directory\00"
@str.14 = [68 x i8] c" -b, --both convert uids and gids in directory\00"
@str.15 = [72 x i8] c" -r, --range find min,max uid/gid used in directory\00"
@str.16 = [53 x i8] c" -v, --verbose increate verbosity\0A\00"
@str.17 = [61 x i8] c"Note this program always recursively walks all of directory.\00"
@str.18 = [76 x i8] c"If -u,-g, or -b is given, then [src dst range] are required to convert the \00"
@str.19 = [60 x i8] c"ids within the range [src..src+range] to [dst..dst+range].\0A\00"
@str.20 = [10 x i8] c"Examples:\00"
define void @usage() {
%1 = load i8*, i8** @__progname
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.20, i64 0, i64 0))
%12 = load i8*, i8** @__progname
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0), i8* %12)
%14 = load i8*, i8** @__progname
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0), i8* %14)
%16 = load i8*, i8** @__progname
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0), i8* %16)
ret void
}