#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 */
unsigned int EXIT_SUCCESS;
int /*<<< orphan*/ exit(unsigned int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *const);
int /*<<< orphan*/ puts(char const *const);
int /*<<< orphan*/ stderr;
void usage(unsigned int status) {
  const char *const info =
      "Usage: egghead [OPTION]... [FILE]...\n"
      "A GNU-compliant brainfuck interpreter.\n\n"
      "   --strict     Interpreter only recognizes valid brainfuck commands.\n"
      "   --help       Display help message.\n"
      "   --license    Display license information.\n\n"
      "With no FILE, or when FILE is -, reads standard input.\n\n"
      "For more information, see the Egghead manpage (man egghead).";
  if (status == EXIT_SUCCESS)
    puts(info);
  else
    fprintf(stderr, "%s\n", info);
  exit(status);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xebe(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2e88(%rip),%rcx
cmp    (%rcx),%eax
jne    1169 <usage+0x39>
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
jmp    1185 <usage+0x55>
mov    0x2e70(%rip),%rax
mov    (%rax),%edi
lea    0xfe3(%rip),%rsi
lea    0xe80(%rip),%rdx
call   1040 <fprintf@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
mov    0x2e9e(%rip),%rax
cmp    %edi,(%rax)
jne    1151 <usage+0x21>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
lea    0xffb(%rip),%rsi
lea    0xe98(%rip),%rdx
call   1040 <fprintf@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [348 x i8] c"Usage: egghead [OPTION]... [FILE]...\0AA GNU-compliant brainfuck interpreter.\0A\0A --strict Interpreter only recognizes valid brainfuck commands.\0A --help Display help message.\0A --license Display license information.\0A\0AWith no FILE, or when FILE is -, reads standard input.\0A\0AFor more information, see the Egghead manpage (man egghead).\00"
@EXIT_SUCCESS = global i32 0
@stderr = global i32 0
@.str.1 = [4 x i8] c"%s\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
store i8* getelementptr inbounds ([348 x i8], [348 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = load i32, i32* %2
%5 = load i32, i32* @EXIT_SUCCESS
%6 = icmp eq i32 %4, %5
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @puts(i8* getelementptr inbounds ([348 x i8], [348 x i8]* @.str, i32 0, i32 0))
br label %12
9: ; preds = %1
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([348 x i8], [348 x i8]* @.str, i32 0, i32 0))
br label %12
12: ; preds = %9, %7
%13 = load i32, i32* %2
%14 = call i32 @exit(i32 %13)
unreachable
}

LLVM IR (-O2):
@.str = [348 x i8] c"Usage: egghead [OPTION]... [FILE]...\0AA GNU-compliant brainfuck interpreter.\0A\0A --strict Interpreter only recognizes valid brainfuck commands.\0A --help Display help message.\0A --license Display license information.\0A\0AWith no FILE, or when FILE is -, reads standard input.\0A\0AFor more information, see the Egghead manpage (man egghead).\00"
@EXIT_SUCCESS = global i32 0
@stderr = global i32 0
@.str.1 = [4 x i8] c"%s\0A\00"
define void @usage(i32 %0) {
%2 = load i32, i32* @EXIT_SUCCESS
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([348 x i8], [348 x i8]* @.str, i64 0, i64 0))
br label %9
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([348 x i8], [348 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %6, %4
%10 = tail call i32 @exit(i32 %0)
unreachable
}