#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 *);
int /*<<< orphan*/ pversion();
void usage() {
  pversion();
  printf("usage: addpath [-bcw] [-df] [-e VAR] [-p VAR] elem ...\n");
  printf("\tOnly one of bcw should be specified.  Default is detected by\n");
  printf("\texamining $SHELL.\n");
  printf("\t-b\temit Bourne style path.  e.g. 'a:b:c:...'\n");
  printf("\t-c\temit Csh style path.  e.g. 'a b c ...'\n");
  printf("\t-w\temit Windows style path.  e.g. 'a;b;c;...'\n");
  printf("\t-d\tforce new elements in even if they are Duplicates\n");
  printf("\t-e\tonly do it if environment variable env_var is defined.\n");
  printf("\t-f\tprepend elements at Front of path. (default: at end)\n");
  printf("\t-p VAR\tuse VAR for path rather than PATH.\n");
  printf("\t-s\tprint a command that you could \"source\".\n");
  printf("\t-x\tcheck for existence of each element before adding.\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <pversion@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
call   1030 <printf@plt>
lea    0xf78(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
call   1030 <printf@plt>
lea    0xff7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
call   1030 <printf@plt>
lea    0x1045(%rip),%rdi
call   1030 <printf@plt>
lea    0x1067(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
xor    %eax,%eax
call   1040 <pversion@plt>
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xf76(%rip),%rdi
call   1030 <puts@plt>
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc3(%rip),%rdi
call   1030 <puts@plt>
lea    0xff2(%rip),%rdi
call   1030 <puts@plt>
lea    0x101f(%rip),%rdi
call   1030 <puts@plt>
lea    0x103e(%rip),%rdi
call   1030 <puts@plt>
lea    0x105f(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [56 x i8] c"usage: addpath [-bcw] [-df] [-e VAR] [-p VAR] elem ...\0A\00"
@.str.1 = [63 x i8] c"\09Only one of bcw should be specified. Default is detected by\0A\00"
@.str.2 = [20 x i8] c"\09examining $SHELL.\0A\00"
@.str.3 = [47 x i8] c"\09-b\09emit Bourne style path. e.g. 'a:b:c:...'\0A\00"
@.str.4 = [44 x i8] c"\09-c\09emit Csh style path. e.g. 'a b c ...'\0A\00"
@.str.5 = [48 x i8] c"\09-w\09emit Windows style path. e.g. 'a;b;c;...'\0A\00"
@.str.6 = [55 x i8] c"\09-d\09force new elements in even if they are Duplicates\0A\00"
@.str.7 = [60 x i8] c"\09-e\09only do it if environment variable env_var is defined.\0A\00"
@.str.8 = [58 x i8] c"\09-f\09prepend elements at Front of path. (default: at end)\0A\00"
@.str.9 = [44 x i8] c"\09-p VAR\09use VAR for path rather than PATH.\0A\00"
@.str.10 = [46 x i8] c"\09-s\09print a command that you could \22source\22.\0A\00"
@.str.11 = [56 x i8] c"\09-x\09check for existence of each element before adding.\0A\00"
define void @usage() {
%1 = call i32 (...) @pversion()
%2 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [55 x i8] c"usage: addpath [-bcw] [-df] [-e VAR] [-p VAR] elem ...\00"
@str.12 = [62 x i8] c"\09Only one of bcw should be specified. Default is detected by\00"
@str.13 = [19 x i8] c"\09examining $SHELL.\00"
@str.14 = [46 x i8] c"\09-b\09emit Bourne style path. e.g. 'a:b:c:...'\00"
@str.15 = [43 x i8] c"\09-c\09emit Csh style path. e.g. 'a b c ...'\00"
@str.16 = [47 x i8] c"\09-w\09emit Windows style path. e.g. 'a;b;c;...'\00"
@str.17 = [54 x i8] c"\09-d\09force new elements in even if they are Duplicates\00"
@str.18 = [59 x i8] c"\09-e\09only do it if environment variable env_var is defined.\00"
@str.19 = [57 x i8] c"\09-f\09prepend elements at Front of path. (default: at end)\00"
@str.20 = [43 x i8] c"\09-p VAR\09use VAR for path rather than PATH.\00"
@str.21 = [45 x i8] c"\09-s\09print a command that you could \22source\22.\00"
@str.22 = [55 x i8] c"\09-x\09check for existence of each element before adding.\00"
define void @usage() {
%1 = tail call i32 (...) @pversion()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.22, i64 0, i64 0))
ret void
}