#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 conf_usage(const char *progname) {
  printf("Usage: %s [option] <kconfig-file>\n", progname);
  printf("[option] is _one_ of the following:\n");
  printf("  --listnewconfig         List new options\n");
  printf("  --oldaskconfig          Start a new configuration using a "
         "line-oriented program\n");
  printf("  --oldconfig             Update a configuration using a provided "
         ".config as base\n");
  printf("  --silentoldconfig       Same as oldconfig, but quietly, "
         "additionally update deps\n");
  printf("  --oldnoconfig           Same as silentoldconfig but set new "
         "symbols to no\n");
  printf(
      "  --defconfig <file>      New config with default defined in <file>\n");
  printf("  --savedefconfig <file>  Save the minimal current configuration to "
         "<file>\n");
  printf("  --allnoconfig           New config where all options are answered "
         "with no\n");
  printf("  --allyesconfig          New config where all options are answered "
         "with yes\n");
  printf("  --allmodconfig          New config where all options are answered "
         "with mod\n");
  printf(
      "  --alldefconfig          New config with all symbols set to default\n");
  printf("  --randconfig            New config with random answer to all "
         "options\n");
}


x86 assembly (clang, -O0):
<conf_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1032(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1069(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1126(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1166(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x119e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conf_usage>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
lea    0xf21(%rip),%rdi
call   1030 <puts@plt>
lea    0xf67(%rip),%rdi
call   1030 <puts@plt>
lea    0xfad(%rip),%rdi
call   1030 <puts@plt>
lea    0xff4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1034(%rip),%rdi
call   1030 <puts@plt>
lea    0x106c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ab(%rip),%rdi
call   1030 <puts@plt>
lea    0x10eb(%rip),%rdi
call   1030 <puts@plt>
lea    0x112c(%rip),%rdi
call   1030 <puts@plt>
lea    0x116d(%rip),%rdi
call   1030 <puts@plt>
lea    0x11a6(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"Usage: %s [option] <kconfig-file>\0A\00"
@.str.1 = [37 x i8] c"[option] is _one_ of the following:\0A\00"
@.str.2 = [44 x i8] c" --listnewconfig List new options\0A\00"
@.str.3 = [83 x i8] c" --oldaskconfig Start a new configuration using a line-oriented program\0A\00"
@.str.4 = [83 x i8] c" --oldconfig Update a configuration using a provided .config as base\0A\00"
@.str.5 = [84 x i8] c" --silentoldconfig Same as oldconfig, but quietly, additionally update deps\0A\00"
@.str.6 = [77 x i8] c" --oldnoconfig Same as silentoldconfig but set new symbols to no\0A\00"
@.str.7 = [69 x i8] c" --defconfig <file> New config with default defined in <file>\0A\00"
@.str.8 = [76 x i8] c" --savedefconfig <file> Save the minimal current configuration to <file>\0A\00"
@.str.9 = [77 x i8] c" --allnoconfig New config where all options are answered with no\0A\00"
@.str.10 = [78 x i8] c" --allyesconfig New config where all options are answered with yes\0A\00"
@.str.11 = [78 x i8] c" --allmodconfig New config where all options are answered with mod\0A\00"
@.str.12 = [70 x i8] c" --alldefconfig New config with all symbols set to default\0A\00"
@.str.13 = [72 x i8] c" --randconfig New config with random answer to all options\0A\00"
define void @conf_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"Usage: %s [option] <kconfig-file>\0A\00"
@str = [36 x i8] c"[option] is _one_ of the following:\00"
@str.14 = [43 x i8] c" --listnewconfig List new options\00"
@str.15 = [82 x i8] c" --oldaskconfig Start a new configuration using a line-oriented program\00"
@str.16 = [82 x i8] c" --oldconfig Update a configuration using a provided .config as base\00"
@str.17 = [83 x i8] c" --silentoldconfig Same as oldconfig, but quietly, additionally update deps\00"
@str.18 = [76 x i8] c" --oldnoconfig Same as silentoldconfig but set new symbols to no\00"
@str.19 = [68 x i8] c" --defconfig <file> New config with default defined in <file>\00"
@str.20 = [75 x i8] c" --savedefconfig <file> Save the minimal current configuration to <file>\00"
@str.21 = [76 x i8] c" --allnoconfig New config where all options are answered with no\00"
@str.22 = [77 x i8] c" --allyesconfig New config where all options are answered with yes\00"
@str.23 = [77 x i8] c" --allmodconfig New config where all options are answered with mod\00"
@str.24 = [69 x i8] c" --alldefconfig New config with all symbols set to default\00"
@str.25 = [71 x i8] c" --randconfig New config with random answer to all options\00"
define void @conf_usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.23, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.24, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.25, i64 0, i64 0))
ret void
}