#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 */
char *applet(char *const);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
void usage(FILE *f, char *const arg0) {
  fprintf(f,
          "Usage: %s [OPTIONS] STRINGS...\n"
          "\n"
          "strtonargv(1) splits strings to a list of words.\n"
          "\n"
          "The separators are defined by environment variables. CFS "
          "splits strings into\nwords. Words are expanded using the "
          "first character of IFS.\n"
          "\n"
          "Options:\n"
          " --count                Count only.\n"
          " -h or --help           Display this message.\n"
          " -V or --version        Display the version.\n"
          "\n"
          "Environment Variables:\n"
          " CFS                    Common Field Separator to split\n"
          "                        strings into words [default=' ']\n"
          " IFS                    Internal Field Separator to.\n"
          "                        expands words [default=' \\t\\n']\n"
          "",
          applet(arg0));
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <applet@plt>
mov    -0x18(%rbp),%rdi
mov    %rax,%rdx
lea    0xeb1(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1030 <applet@plt>
lea    0xecd(%rip),%rsi
mov    %rbx,%rdi
mov    %rax,%rdx
pop    %rbx
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@.str = [603 x i8] c"Usage: %s [OPTIONS] STRINGS...\0A\0Astrtonargv(1) splits strings to a list of words.\0A\0AThe separators are defined by environment variables. CFS splits strings into\0Awords. Words are expanded using the first character of IFS.\0A\0AOptions:\0A --count Count only.\0A -h or --help Display this message.\0A -V or --version Display the version.\0A\0AEnvironment Variables:\0A CFS Common Field Separator to split\0A strings into words [default=' ']\0A IFS Internal Field Separator to.\0A expands words [default=' \\t\\n']\0A\00"
define void @usage(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = call i8* @applet(i8* %6)
%8 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([603 x i8], [603 x i8]* @.str, i64 0, i64 0), i8* %7)
ret void
}

LLVM IR (-O2):
@.str = [603 x i8] c"Usage: %s [OPTIONS] STRINGS...\0A\0Astrtonargv(1) splits strings to a list of words.\0A\0AThe separators are defined by environment variables. CFS splits strings into\0Awords. Words are expanded using the first character of IFS.\0A\0AOptions:\0A --count Count only.\0A -h or --help Display this message.\0A -V or --version Display the version.\0A\0AEnvironment Variables:\0A CFS Common Field Separator to split\0A strings into words [default=' ']\0A IFS Internal Field Separator to.\0A expands words [default=' \\t\\n']\0A\00"
define void @usage(i32* nocapture %0, i8* %1) {
%3 = tail call i8* @applet(i8* %1)
%4 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([603 x i8], [603 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}