#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ _(char *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(int /*<<< orphan*/, int /*<<< orphan*/ *);
void usage(FILE *stream) {
  fputs(_("Usage: rpcinfo [ -n portnum ] -u host prognum [ versnum ]\n"),
        stream);
  fputs(_("       rpcinfo [ -n portnum ] -t host prognum [ versnum ]\n"),
        stream);
  fputs(_("       rpcinfo -p [ host ]\n"), stream);
  fputs(_("       rpcinfo -b prognum versnum\n"), stream);
  fputs(_("       rpcinfo -d prognum versnum\n"), stream);
  fputc('\n', stream);
  fputs(_("For bug reporting instructions, please "
          "see:\n<http://www.gnu.org/software/libc/bugs.html>.\n"),
        stream);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputs@plt>
lea    0xee1(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputs@plt>
lea    0xf05(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputs@plt>
lea    0xf0a(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputs@plt>
lea    0xf16(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1040 <fputc@plt>
lea    0xf14(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%rsi
call   1030 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    %rbx,%rsi
call   1030 <fputs@plt>
lea    0xeea(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    %rbx,%rsi
call   1030 <fputs@plt>
lea    0xf0f(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    %rbx,%rsi
call   1030 <fputs@plt>
lea    0xf15(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    %rbx,%rsi
call   1030 <fputs@plt>
lea    0xf22(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    %rbx,%rsi
call   1030 <fputs@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
lea    0xf22(%rip),%rdi
call   1050 <_@plt>
mov    %eax,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@.str = [59 x i8] c"Usage: rpcinfo [ -n portnum ] -u host prognum [ versnum ]\0A\00"
@.str.1 = [59 x i8] c" rpcinfo [ -n portnum ] -t host prognum [ versnum ]\0A\00"
@.str.2 = [28 x i8] c" rpcinfo -p [ host ]\0A\00"
@.str.3 = [35 x i8] c" rpcinfo -b prognum versnum\0A\00"
@.str.4 = [35 x i8] c" rpcinfo -d prognum versnum\0A\00"
@.str.5 = [91 x i8] c"For bug reporting instructions, please see:\0A<http://www.gnu.org/software/libc/bugs.html>.\0A\00"
define void @usage(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = call i32 @_(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0))
%4 = load i32*, i32** %2
%5 = call i32 @fputs(i32 %3, i32* %4)
%6 = call i32 @_(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @fputs(i32 %6, i32* %7)
%9 = call i32 @_(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32*, i32** %2
%11 = call i32 @fputs(i32 %9, i32* %10)
%12 = call i32 @_(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%13 = load i32*, i32** %2
%14 = call i32 @fputs(i32 %12, i32* %13)
%15 = call i32 @_(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32*, i32** %2
%17 = call i32 @fputs(i32 %15, i32* %16)
%18 = load i32*, i32** %2
%19 = call i32 @fputc(i8 signext 10, i32* %18)
%20 = call i32 @_(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.5, i64 0, i64 0))
%21 = load i32*, i32** %2
%22 = call i32 @fputs(i32 %20, i32* %21)
ret void
}

LLVM IR (-O2):
@.str = [59 x i8] c"Usage: rpcinfo [ -n portnum ] -u host prognum [ versnum ]\0A\00"
@.str.1 = [59 x i8] c" rpcinfo [ -n portnum ] -t host prognum [ versnum ]\0A\00"
@.str.2 = [28 x i8] c" rpcinfo -p [ host ]\0A\00"
@.str.3 = [35 x i8] c" rpcinfo -b prognum versnum\0A\00"
@.str.4 = [35 x i8] c" rpcinfo -d prognum versnum\0A\00"
@.str.5 = [91 x i8] c"For bug reporting instructions, please see:\0A<http://www.gnu.org/software/libc/bugs.html>.\0A\00"
define void @usage(i32* %0) {
%2 = tail call i32 @_(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @fputs(i32 %2, i32* %0)
%4 = tail call i32 @_(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @fputs(i32 %4, i32* %0)
%6 = tail call i32 @_(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @fputs(i32 %6, i32* %0)
%8 = tail call i32 @_(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @fputs(i32 %8, i32* %0)
%10 = tail call i32 @_(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%11 = tail call i32 @fputs(i32 %10, i32* %0)
%12 = tail call i32 @fputc(i8 signext 10, i32* %0)
%13 = tail call i32 @_(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.5, i64 0, i64 0))
%14 = tail call i32 @fputs(i32 %13, i32* %0)
ret void
}