#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stdout;
void show_help() {
  fprintf(stdout, "\nUsage:\n");
  fprintf(stdout, "    authprogs [-c <config>] [-l <log_path|stdout|stderr>] "
                  "[-e <log_level>] [-v] [-h]\n\n");
  fprintf(stdout, "    where:\n");
  fprintf(stdout, "        %-2s %-25s  %s", "-c", "config",
          "configuration file path\n");
  fprintf(stdout, "        %-2s %-25s  %s", "-l", "log_path|stdout|stderr",
          "log file path, stdout or stderr\n");
  fprintf(stdout, "        %-2s %-25s  %s", "-e", "log_level",
          "log level (0-quiet, 1-error, 2-denied commands, 3-allowed commands, "
          "4-debug, 5-trace)\n");
  fprintf(stdout, "        %-2s %-25s  %s", "-v", "", "show version\n");
  fprintf(stdout, "        %-2s %-25s  %s", "-h", "", "show help\n");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xece(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
lea    0xf0e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
lea    0xf03(%rip),%rsi
lea    0xf13(%rip),%rdx
lea    0xf0f(%rip),%rcx
lea    0xf0f(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%edi
lea    0xed7(%rip),%rsi
lea    0xf0a(%rip),%rdx
lea    0xf06(%rip),%rcx
lea    0xf16(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e28(%rip),%rax
mov    (%rax),%edi
lea    0xeab(%rip),%rsi
lea    0xf19(%rip),%rdx
lea    0xf15(%rip),%rcx
lea    0xf18(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%edi
lea    0xe7f(%rip),%rsi
lea    0xf51(%rip),%rdx
lea    0xe64(%rip),%rcx
lea    0xf46(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dd0(%rip),%rax
mov    (%rax),%edi
lea    0xe53(%rip),%rsi
lea    0xf36(%rip),%rdx
lea    0xe38(%rip),%rcx
lea    0xf2b(%rip),%r8
mov    $0x0,%al
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %r15
push   %r14
push   %rbx
mov    0x2ec4(%rip),%rbx
mov    (%rbx),%edi
lea    0xedb(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed4(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf1b(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf17(%rip),%r15
lea    0xf27(%rip),%rdx
lea    0xf23(%rip),%rcx
lea    0xf23(%rip),%r8
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf29(%rip),%rdx
lea    0xf25(%rip),%rcx
lea    0xf35(%rip),%r8
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf43(%rip),%rdx
lea    0xf3f(%rip),%rcx
lea    0xf42(%rip),%r8
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf86(%rip),%rdx
lea    0xe99(%rip),%r14
lea    0xf7b(%rip),%r8
mov    %r15,%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf73(%rip),%rdx
lea    0xf6f(%rip),%r8
mov    %r15,%rsi
mov    %r14,%rcx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [9 x i8] c"\0AUsage:\0A\00"
@.str.1 = [87 x i8] c" authprogs [-c <config>] [-l <log_path|stdout|stderr>] [-e <log_level>] [-v] [-h]\0A\0A\00"
@.str.2 = [12 x i8] c" where:\0A\00"
@.str.3 = [23 x i8] c" %-2s %-25s %s\00"
@.str.4 = [3 x i8] c"-c\00"
@.str.5 = [7 x i8] c"config\00"
@.str.6 = [25 x i8] c"configuration file path\0A\00"
@.str.7 = [3 x i8] c"-l\00"
@.str.8 = [23 x i8] c"log_path|stdout|stderr\00"
@.str.9 = [33 x i8] c"log file path, stdout or stderr\0A\00"
@.str.10 = [3 x i8] c"-e\00"
@.str.11 = [10 x i8] c"log_level\00"
@.str.12 = [87 x i8] c"log level (0-quiet, 1-error, 2-denied commands, 3-allowed commands, 4-debug, 5-trace)\0A\00"
@.str.13 = [3 x i8] c"-v\00"
@.str.14 = [1 x i8] zeroinitializer
@.str.15 = [14 x i8] c"show version\0A\00"
@.str.16 = [3 x i8] c"-h\00"
@.str.17 = [11 x i8] c"show help\0A\00"
define void @show_help() {
%1 = load i32, i32* @stdout
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.12, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [9 x i8] c"\0AUsage:\0A\00"
@.str.1 = [87 x i8] c" authprogs [-c <config>] [-l <log_path|stdout|stderr>] [-e <log_level>] [-v] [-h]\0A\0A\00"
@.str.2 = [12 x i8] c" where:\0A\00"
@.str.3 = [23 x i8] c" %-2s %-25s %s\00"
@.str.4 = [3 x i8] c"-c\00"
@.str.5 = [7 x i8] c"config\00"
@.str.6 = [25 x i8] c"configuration file path\0A\00"
@.str.7 = [3 x i8] c"-l\00"
@.str.8 = [23 x i8] c"log_path|stdout|stderr\00"
@.str.9 = [33 x i8] c"log file path, stdout or stderr\0A\00"
@.str.10 = [3 x i8] c"-e\00"
@.str.11 = [10 x i8] c"log_level\00"
@.str.12 = [87 x i8] c"log level (0-quiet, 1-error, 2-denied commands, 3-allowed commands, 4-debug, 5-trace)\0A\00"
@.str.13 = [3 x i8] c"-v\00"
@.str.14 = [1 x i8] zeroinitializer
@.str.15 = [14 x i8] c"show version\0A\00"
@.str.16 = [3 x i8] c"-h\00"
@.str.17 = [11 x i8] c"show help\0A\00"
define void @show_help() {
%1 = load i32, i32* @stdout
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.12, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
ret void
}