#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void usage(int exit_code) {
  printf("Usage: ll [OPTION]\nA program that prints linked lists\n\n"
         "  -v, --verbose\t\trun the program verbosely\n"
         "  -h, --help\t\tprint this help message and exit\n"
         "  -V, --version\t\tprint the program version and exit\n"
         "  -p, --print\t\tprint all links in the linked list\n"
         "      --first\t\tprint the first link in the list\n"
         "      --rest\t\tprint all links minus the first one\n"
         "      --nth=LINK\tprint the link specified, if the option is more "
         "than the number of links then"
         "\n\t\t\tthis prints the last link\n"
         "      --list=LIST\tuse numbers given to make list, this assumes you "
         "want --print\n"
         "      --input=IN_FILE\twill make list from file or from stdin if "
         "IN_FILE == -\n"
         "      --input=OUT_FILE\twill write output to file\n\n");
  exit(exit_code);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [677 x i8] c"Usage: ll [OPTION]\0AA program that prints linked lists\0A\0A -v, --verbose\09\09run the program verbosely\0A -h, --help\09\09print this help message and exit\0A -V, --version\09\09print the program version and exit\0A -p, --print\09\09print all links in the linked list\0A --first\09\09print the first link in the list\0A --rest\09\09print all links minus the first one\0A --nth=LINK\09print the link specified, if the option is more than the number of links then\0A\09\09\09this prints the last link\0A --list=LIST\09use numbers given to make list, this assumes you want --print\0A --input=IN_FILE\09will make list from file or from stdin if IN_FILE == -\0A --input=OUT_FILE\09will write output to file\0A\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([677 x i8], [677 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = call i32 @exit(i32 %4)
unreachable
}

LLVM IR (-O2):
@str = [676 x i8] c"Usage: ll [OPTION]\0AA program that prints linked lists\0A\0A -v, --verbose\09\09run the program verbosely\0A -h, --help\09\09print this help message and exit\0A -V, --version\09\09print the program version and exit\0A -p, --print\09\09print all links in the linked list\0A --first\09\09print the first link in the list\0A --rest\09\09print all links minus the first one\0A --nth=LINK\09print the link specified, if the option is more than the number of links then\0A\09\09\09this prints the last link\0A --list=LIST\09use numbers given to make list, this assumes you want --print\0A --input=IN_FILE\09will make list from file or from stdin if IN_FILE == -\0A --input=OUT_FILE\09will write output to file\0A\00"
define void @usage(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([676 x i8], [676 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 %0)
unreachable
}