#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void usage(const char *s, FILE *f) {
  fprintf(f, "usage: %s [OPTION]... [SYSTEM]\n", s);
  fprintf(f, "interject that SYSTEM is really GNU/SYSTEM\n\n");
  fprintf(f, "\t--description=DESC\n\t\tLinux is the kernel: DESC\n");
  fprintf(f, "\t--defined=DEF\n\t\tfull OS as defined by DEF\n");
  fprintf(f, "\t--developed=DEV\n\t\tthe GNU system, developed by DEV\n");
  fprintf(f, "\t--gnu=GNU\n\t\tset the proper system prefix\n");
  fprintf(f, "\t-h, --head\n\t\tprint only the first sentence\n");
  fprintf(f, "\t-H, --help\n\t\tdisplay this help text and exit\n");
  fprintf(f, "\t--kernel=KERN\n\t\tLinux is the KERN\n");
  fprintf(f, "\t--operating=OPER\n\t\tLinux is not an OPER unto itself\n");
  fprintf(f, "\t--os=OSYS\n\t\tcomrpising a full OSYS as defined by\n");
  fprintf(f, "\t--useful=USE\n\t\tfully functioning GNU system made "
             "useful by the USE\n");
  fprintf(f, "\t-v, --version\n\t\tdisplay version information and exit\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xed1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xedf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xefa(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf19(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf33(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf56(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf6f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf8a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfa7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfb9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfdd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xffe(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0x1031(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rdx
lea    0xed2(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xee1(%rip),%rdi
mov    $0x2c,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xef5(%rip),%rdi
mov    $0x30,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf0d(%rip),%rdi
mov    $0x2b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf20(%rip),%rdi
mov    $0x34,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf3c(%rip),%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf4e(%rip),%rdi
mov    $0x2c,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf62(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf78(%rip),%rdi
mov    $0x23,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf83(%rip),%rdi
mov    $0x35,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfa0(%rip),%rdi
mov    $0x32,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfba(%rip),%rdi
mov    $0x44,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfe6(%rip),%rdi
mov    $0x36,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"usage: %s [OPTION]... [SYSTEM]\0A\00"
@.str.1 = [45 x i8] c"interject that SYSTEM is really GNU/SYSTEM\0A\0A\00"
@.str.2 = [49 x i8] c"\09--description=DESC\0A\09\09Linux is the kernel: DESC\0A\00"
@.str.3 = [44 x i8] c"\09--defined=DEF\0A\09\09full OS as defined by DEF\0A\00"
@.str.4 = [53 x i8] c"\09--developed=DEV\0A\09\09the GNU system, developed by DEV\0A\00"
@.str.5 = [43 x i8] c"\09--gnu=GNU\0A\09\09set the proper system prefix\0A\00"
@.str.6 = [45 x i8] c"\09-h, --head\0A\09\09print only the first sentence\0A\00"
@.str.7 = [47 x i8] c"\09-H, --help\0A\09\09display this help text and exit\0A\00"
@.str.8 = [36 x i8] c"\09--kernel=KERN\0A\09\09Linux is the KERN\0A\00"
@.str.9 = [54 x i8] c"\09--operating=OPER\0A\09\09Linux is not an OPER unto itself\0A\00"
@.str.10 = [51 x i8] c"\09--os=OSYS\0A\09\09comrpising a full OSYS as defined by\0A\00"
@.str.11 = [69 x i8] c"\09--useful=USE\0A\09\09fully functioning GNU system made useful by the USE\0A\00"
@.str.12 = [55 x i8] c"\09-v, --version\0A\09\09display version information and exit\0A\00"
define void @usage(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %4
%6 = load i8*, i8** %3
%7 = call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32*, i32** %4
%9 = call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32*, i32** %4
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %10, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32*, i32** %4
%13 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32*, i32** %4
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32*, i32** %4
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %16, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32*, i32** %4
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
%20 = load i32*, i32** %4
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%22 = load i32*, i32** %4
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
%24 = load i32*, i32** %4
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0))
%26 = load i32*, i32** %4
%27 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%28 = load i32*, i32** %4
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.11, i64 0, i64 0))
%30 = load i32*, i32** %4
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"usage: %s [OPTION]... [SYSTEM]\0A\00"
@.str.1 = [45 x i8] c"interject that SYSTEM is really GNU/SYSTEM\0A\0A\00"
@.str.2 = [49 x i8] c"\09--description=DESC\0A\09\09Linux is the kernel: DESC\0A\00"
@.str.3 = [44 x i8] c"\09--defined=DEF\0A\09\09full OS as defined by DEF\0A\00"
@.str.4 = [53 x i8] c"\09--developed=DEV\0A\09\09the GNU system, developed by DEV\0A\00"
@.str.5 = [43 x i8] c"\09--gnu=GNU\0A\09\09set the proper system prefix\0A\00"
@.str.6 = [45 x i8] c"\09-h, --head\0A\09\09print only the first sentence\0A\00"
@.str.7 = [47 x i8] c"\09-H, --help\0A\09\09display this help text and exit\0A\00"
@.str.8 = [36 x i8] c"\09--kernel=KERN\0A\09\09Linux is the KERN\0A\00"
@.str.9 = [54 x i8] c"\09--operating=OPER\0A\09\09Linux is not an OPER unto itself\0A\00"
@.str.10 = [51 x i8] c"\09--os=OSYS\0A\09\09comrpising a full OSYS as defined by\0A\00"
@.str.11 = [69 x i8] c"\09--useful=USE\0A\09\09fully functioning GNU system made useful by the USE\0A\00"
@.str.12 = [55 x i8] c"\09-v, --version\0A\09\09display version information and exit\0A\00"
define void @usage(i8* %0, i32* nocapture %1) {
%3 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i64 44, i64 1, i32* %1)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), i64 48, i64 1, i32* %1)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), i64 43, i64 1, i32* %1)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i64 52, i64 1, i32* %1)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i64 42, i64 1, i32* %1)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0), i64 44, i64 1, i32* %1)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i64 46, i64 1, i32* %1)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0), i64 35, i64 1, i32* %1)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.9, i64 0, i64 0), i64 53, i64 1, i32* %1)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0), i64 50, i64 1, i32* %1)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.11, i64 0, i64 0), i64 68, i64 1, i32* %1)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0), i64 54, i64 1, i32* %1)
ret void
}