#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*/ shortusage();
void usage(void) {
  shortusage();
  printf(
      "  Outputs a path containing all path-entries on the command line, in\n");
  printf("    the order given, with duplicates removed.\n");
  printf("  Known types are 'exec' (for $PATH) and 'man' (for $MANPATH).\n");
  printf(
      "  The magic path-entry '%%current' expands to the current value from\n");
  printf("    the environment.\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <shortusage@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
xor    %eax,%eax
call   1050 <shortusage@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
lea    0xf62(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9d(%rip),%rdi
call   1040 <printf@plt>
lea    0xf89(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [70 x i8] c" Outputs a path containing all path-entries on the command line, in\0A\00"
@.str.1 = [47 x i8] c" the order given, with duplicates removed.\0A\00"
@.str.2 = [64 x i8] c" Known types are 'exec' (for $PATH) and 'man' (for $MANPATH).\0A\00"
@.str.3 = [70 x i8] c" The magic path-entry '%%current' expands to the current value from\0A\00"
@.str.4 = [22 x i8] c" the environment.\0A\00"
define void @usage() {
%1 = call i32 (...) @shortusage()
%2 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.3 = [70 x i8] c" The magic path-entry '%%current' expands to the current value from\0A\00"
@str = [69 x i8] c" Outputs a path containing all path-entries on the command line, in\00"
@str.5 = [46 x i8] c" the order given, with duplicates removed.\00"
@str.6 = [63 x i8] c" Known types are 'exec' (for $PATH) and 'man' (for $MANPATH).\00"
@str.7 = [21 x i8] c" the environment.\00"
define void @usage() {
%1 = tail call i32 (...) @shortusage()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.6, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.7, i64 0, i64 0))
ret void
}