#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 */
void abort();
scalar_t__ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  ((fprintf(stderr,
            "usage: %s [option ...] [file ...]"
            "\n  -a  show all files"
            "\n  -I  do not open directories"
            "\n  -c  print stats"
            "\n  -M  use mtime instead of ctime"
            "\n  -G  do not group directories first"
            "\n  -r  reverse sort"
            "\n  -s  sort by file size"
            "\n  -t  sort by mtime/ctime"
            "\n  -1  list one file per line"
            "\n  -g  show output in grid, by columns (default)"
            "\n  -x  show output in grid, by lines"
            "\n  -m  print file modes"
            "\n  -u  print user and group info (automatic)"
            "\n  -U  print user and group info (always)"
            "\n  -d  print relative modification time"
            "\n  -D  print absolute modification time"
            "\n  -z  print file size"
            "\n  -y  print symlink target"
            "\n  -F  do not print type indicator"
            "\n  -l  long format (equivalent to -1mudzy)"
            "\n  -?  show this help"
            "\n",
            "lsc") >= 0
        ? (void)0
        : abort()));
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
lea    0x1175(%rip),%rdx
call   1040 <fprintf@plt>
cmp    $0x0,%rax
jl     114f <usage+0x2f>
jmp    1154 <usage+0x34>
call   1030 <abort@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
lea    0x1178(%rip),%rdx
call   1040 <fprintf@plt>
test   %rax,%rax
js     1144 <usage+0x24>
pop    %rax
ret
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [688 x i8] c"usage: %s [option ...] [file ...]\0A -a show all files\0A -I do not open directories\0A -c print stats\0A -M use mtime instead of ctime\0A -G do not group directories first\0A -r reverse sort\0A -s sort by file size\0A -t sort by mtime/ctime\0A -1 list one file per line\0A -g show output in grid, by columns (default)\0A -x show output in grid, by lines\0A -m print file modes\0A -u print user and group info (automatic)\0A -U print user and group info (always)\0A -d print relative modification time\0A -D print absolute modification time\0A -z print file size\0A -y print symlink target\0A -F do not print type indicator\0A -l long format (equivalent to -1mudzy)\0A -? show this help\0A\00"
@.str.1 = [4 x i8] c"lsc\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i64 @fprintf(i32 %1, i8* getelementptr inbounds ([688 x i8], [688 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp sge i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
br label %7
5: ; preds = %0
unreachable
6: ; No predecessors!
br label %7
7: ; preds = %6, %4
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [688 x i8] c"usage: %s [option ...] [file ...]\0A -a show all files\0A -I do not open directories\0A -c print stats\0A -M use mtime instead of ctime\0A -G do not group directories first\0A -r reverse sort\0A -s sort by file size\0A -t sort by mtime/ctime\0A -1 list one file per line\0A -g show output in grid, by columns (default)\0A -x show output in grid, by lines\0A -m print file modes\0A -u print user and group info (automatic)\0A -U print user and group info (always)\0A -d print relative modification time\0A -D print absolute modification time\0A -z print file size\0A -y print symlink target\0A -F do not print type indicator\0A -l long format (equivalent to -1mudzy)\0A -? show this help\0A\00"
@.str.1 = [4 x i8] c"lsc\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i64 @fprintf(i32 %1, i8* getelementptr inbounds ([688 x i8], [688 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp sgt i64 %2, -1
br i1 %3, label %5, label %4
4: ; preds = %0
tail call void @abort()
unreachable
5: ; preds = %0
ret void
}