#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*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
char *getprogname();
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "usage: %s %s\n", getprogname(),
          "[-d domain] [-q] [-p passwdfile] [-g groupfile]");
  fprintf(stderr, "       %s  %s", getprogname(),
          "[-g groupfile] [-h hostfile] [-m netidfile]");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <getprogname@plt>
mov    -0x8(%rbp),%edi
mov    %rax,%rdx
lea    0xea8(%rip),%rsi
lea    0xeaf(%rip),%rcx
call   1040 <fprintf@plt>
mov    0x2e75(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getprogname@plt>
mov    -0x4(%rbp),%edi
mov    %rax,%rdx
lea    0xeba(%rip),%rsi
lea    0xec1(%rip),%rcx
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    0x2ea5(%rip),%r14
mov    (%r14),%ebx
xor    %eax,%eax
call   1030 <getprogname@plt>
lea    0xeb4(%rip),%rsi
lea    0xebb(%rip),%rcx
mov    %ebx,%edi
mov    %rax,%rdx
call   1040 <fprintf@plt>
mov    (%r14),%ebx
xor    %eax,%eax
call   1030 <getprogname@plt>
lea    0xed0(%rip),%rsi
lea    0xed7(%rip),%rcx
mov    %ebx,%edi
mov    %rax,%rdx
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [14 x i8] c"usage: %s %s\0A\00"
@.str.1 = [48 x i8] c"[-d domain] [-q] [-p passwdfile] [-g groupfile]\00"
@.str.2 = [14 x i8] c" %s %s\00"
@.str.3 = [44 x i8] c"[-g groupfile] [-h hostfile] [-m netidfile]\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i8* (...) @getprogname()
%3 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %2, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = call i8* (...) @getprogname()
%6 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %5, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [14 x i8] c"usage: %s %s\0A\00"
@.str.1 = [48 x i8] c"[-d domain] [-q] [-p passwdfile] [-g groupfile]\00"
@.str.2 = [14 x i8] c" %s %s\00"
@.str.3 = [44 x i8] c"[-g groupfile] [-h hostfile] [-m netidfile]\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i8* (...) @getprogname()
%3 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %2, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i8* (...) @getprogname()
%6 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %5, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
}