#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*/ error(char *, ...);
int /*<<< orphan*/ exit(int);
void show_usage(const char *progname, int exitcode) {
  error(
      "USAGE: %s [-d] [-a <apps directory>] {-o <out file>] [<Kconfig root>]\n",
      progname);
  error("       %s [-h]\n\n", progname);
  error("Where:\n\n");
  error("\t-a : Select relative path to the apps/ directory. Theis path is "
        "relative\n");
  error("\t     to the <Kconfig directory>.  Default: ../apps\n");
  error("\t-o : Send output to <out file>.  Default: Output goes to stdout\n");
  error("\t-d : Enable debug output\n");
  error("\t-h : Prints this message and exits\n");
  error(
      "\t<Kconfig root> is the directory containing the root Kconfig file.\n");
  error("\t     Default <Kconfig directory>: .\n");
  exit(exitcode);
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
mov    -0x8(%rbp),%rsi
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
lea    0xf36(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
lea    0xf5d(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
lea    0xf91(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
lea    0xf9e(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
lea    0xfb5(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
lea    0xfeb(%rip),%rdi
mov    $0x0,%al
call   1030 <error@plt>
mov    -0xc(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<show_usage>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xed1(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xf07(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xf07(%rip),%rdi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xf02(%rip),%rdi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xf3f(%rip),%rdi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xf66(%rip),%rdi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xf9a(%rip),%rdi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xfa7(%rip),%rdi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xfbe(%rip),%rdi
xor    %eax,%eax
call   1030 <error@plt>
lea    0xff4(%rip),%rdi
xor    %eax,%eax
call   1030 <error@plt>
mov    %ebp,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [71 x i8] c"USAGE: %s [-d] [-a <apps directory>] {-o <out file>] [<Kconfig root>]\0A\00"
@.str.1 = [17 x i8] c" %s [-h]\0A\0A\00"
@.str.2 = [9 x i8] c"Where:\0A\0A\00"
@.str.3 = [75 x i8] c"\09-a : Select relative path to the apps/ directory. Theis path is relative\0A\00"
@.str.4 = [53 x i8] c"\09 to the <Kconfig directory>. Default: ../apps\0A\00"
@.str.5 = [66 x i8] c"\09-o : Send output to <out file>. Default: Output goes to stdout\0A\00"
@.str.6 = [27 x i8] c"\09-d : Enable debug output\0A\00"
@.str.7 = [37 x i8] c"\09-h : Prints this message and exits\0A\00"
@.str.8 = [68 x i8] c"\09<Kconfig root> is the directory containing the root Kconfig file.\0A\00"
@.str.9 = [38 x i8] c"\09 Default <Kconfig directory>: .\0A\00"
define void @show_usage(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i8*, i8** %3
%8 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%16 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%17 = load i32, i32* %4
%18 = call i32 @exit(i32 %17)
unreachable
}

LLVM IR (-O2):
@.str = [71 x i8] c"USAGE: %s [-d] [-a <apps directory>] {-o <out file>] [<Kconfig root>]\0A\00"
@.str.1 = [17 x i8] c" %s [-h]\0A\0A\00"
@.str.2 = [9 x i8] c"Where:\0A\0A\00"
@.str.3 = [75 x i8] c"\09-a : Select relative path to the apps/ directory. Theis path is relative\0A\00"
@.str.4 = [53 x i8] c"\09 to the <Kconfig directory>. Default: ../apps\0A\00"
@.str.5 = [66 x i8] c"\09-o : Send output to <out file>. Default: Output goes to stdout\0A\00"
@.str.6 = [27 x i8] c"\09-d : Enable debug output\0A\00"
@.str.7 = [37 x i8] c"\09-h : Prints this message and exits\0A\00"
@.str.8 = [68 x i8] c"\09<Kconfig root> is the directory containing the root Kconfig file.\0A\00"
@.str.9 = [38 x i8] c"\09 Default <Kconfig directory>: .\0A\00"
define void @show_usage(i8* %0, i32 %1) {
%3 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%5 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @error(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 @exit(i32 %1)
unreachable
}