#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_FAILURE;
int /*<<< orphan*/ _exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int display_usage(void) {
  printf(
      "Usage: myar [-OPTION] archive-file files...\n\n"
      "Examples:\n"
      " myar -q archive foo bar  # Create or append archive from files foo and "
      "bar\n"
      " myar -x archive foo bar  # Extract files foo and bar from archive\n"
      " myar -d archive foo bar  # Delete files foo and bard from archive\n\n"
      "Commands:\n"
      " -A 	quickly append all regular files in current directory\n\n"
      " -d 	delete named files form archive\n\n"
      " -q 	quickly append named files to archive\n\n"
      " -t 	print concise table of contents of the archive\n\n"
      " -v 	print verbose table of contents of archive\n\n"
      " -x 	extract named files from archive\n\n");
  _exit(EXIT_FAILURE);
  return 0;
}


x86 assembly (clang, -O0):
<display_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1030 <_exit@plt>

x86 assembly (clang, -O2):
<display_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
mov    0x2eac(%rip),%rax
mov    (%rax),%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
@.str = [560 x i8] c"Usage: myar [-OPTION] archive-file files...\0A\0AExamples:\0A myar -q archive foo bar # Create or append archive from files foo and bar\0A myar -x archive foo bar # Extract files foo and bar from archive\0A myar -d archive foo bar # Delete files foo and bard from archive\0A\0ACommands:\0A -A \09quickly append all regular files in current directory\0A\0A -d \09delete named files form archive\0A\0A -q \09quickly append named files to archive\0A\0A -t \09print concise table of contents of the archive\0A\0A -v \09print verbose table of contents of archive\0A\0A -x \09extract named files from archive\0A\0A\00"
@EXIT_FAILURE = global i32 0
define i32 @display_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([560 x i8], [560 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @EXIT_FAILURE
%3 = call i32 @_exit(i32 %2)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@str = [559 x i8] c"Usage: myar [-OPTION] archive-file files...\0A\0AExamples:\0A myar -q archive foo bar # Create or append archive from files foo and bar\0A myar -x archive foo bar # Extract files foo and bar from archive\0A myar -d archive foo bar # Delete files foo and bard from archive\0A\0ACommands:\0A -A \09quickly append all regular files in current directory\0A\0A -d \09delete named files form archive\0A\0A -q \09quickly append named files to archive\0A\0A -t \09print concise table of contents of the archive\0A\0A -v \09print verbose table of contents of archive\0A\0A -x \09extract named files from archive\0A\00"
define i32 @display_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([559 x i8], [559 x i8]* @str, i64 0, i64 0))
%2 = load i32, i32* @EXIT_FAILURE
%3 = tail call i32 @_exit(i32 %2)
unreachable
}