#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void printUsage(void) {
  fputs("Usage:  "
        "isin"
        " [test_val1] ([test_val..N])\n  Tests input from stdin (minus "
        "trailing newline) against a list of values,\n   given as commandline "
        "arguments.\n\n",
        stderr);
  fputs("  Options:\n\n     --sau-help\t\t\tPrint this message.\n     "
        "--sau-version\t\tPrint version and license information.\n\n",
        stderr);
  fputs("isin  - returns 0 (true) if string read from stdin matches one of the "
        "provided arguments.\n",
        stderr);
  fputs("      * returns 1 (false) if string read from stdin does NOT match "
        "one of the provided arguments.\n",
        stderr);
  fputs("      X returns > 127 if an error was encountered that prevented a "
        "valid test from occuring.\n",
        stderr);
  fputs("\nExample:\techo \"$arg\" | "
        "isin"
        "  '-s' '--something'\n\n",
        stderr);
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0xf61(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xfbb(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
lea    0x1001(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0x104f(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
lea    0x1098(%rip),%rdi
call   1030 <fputs@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%esi
lea    0xedf(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf6b(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfcc(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1019(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x106e(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x10be(%rip),%rdi
pop    %rbx
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@.str = [154 x i8] c"Usage: isin [test_val1] ([test_val..N])\0A Tests input from stdin (minus trailing newline) against a list of values,\0A given as commandline arguments.\0A\0A\00"
@stderr = global i32 0
@.str.1 = [111 x i8] c" Options:\0A\0A --sau-help\09\09\09Print this message.\0A --sau-version\09\09Print version and license information.\0A\0A\00"
@.str.2 = [91 x i8] c"isin - returns 0 (true) if string read from stdin matches one of the provided arguments.\0A\00"
@.str.3 = [99 x i8] c" * returns 1 (false) if string read from stdin does NOT match one of the provided arguments.\0A\00"
@.str.4 = [94 x i8] c" X returns > 127 if an error was encountered that prevented a valid test from occuring.\0A\00"
@.str.5 = [51 x i8] c"\0AExample:\09echo \22$arg\22 | isin '-s' '--something'\0A\0A\00"
define void @printUsage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = call i32 @fputs(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = call i32 @fputs(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = call i32 @fputs(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = call i32 @fputs(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0), i32 %11)
ret void
}

LLVM IR (-O2):
@.str = [154 x i8] c"Usage: isin [test_val1] ([test_val..N])\0A Tests input from stdin (minus trailing newline) against a list of values,\0A given as commandline arguments.\0A\0A\00"
@stderr = global i32 0
@.str.1 = [111 x i8] c" Options:\0A\0A --sau-help\09\09\09Print this message.\0A --sau-version\09\09Print version and license information.\0A\0A\00"
@.str.2 = [91 x i8] c"isin - returns 0 (true) if string read from stdin matches one of the provided arguments.\0A\00"
@.str.3 = [99 x i8] c" * returns 1 (false) if string read from stdin does NOT match one of the provided arguments.\0A\00"
@.str.4 = [94 x i8] c" X returns > 127 if an error was encountered that prevented a valid test from occuring.\0A\00"
@.str.5 = [51 x i8] c"\0AExample:\09echo \22$arg\22 | isin '-s' '--something'\0A\0A\00"
define void @printUsage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0), i32 %11)
ret void
}