#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*/ writeVerbose(int, char *, ...);
void showUsage() {
  writeVerbose(1, "%s (%s) %s :: %s\n", "wrapper.mod", "2.0",
               "JoMo-Kun <jmk@foofus.net>", "Generic Wrapper Module");
  writeVerbose(1, "Available module options:");
  writeVerbose(1, "  TYPE:? (SINGLE, STDIN)");
  writeVerbose(1, "    Option sets type of script being called by module. See "
                  "included sample scripts");
  writeVerbose(1, "    for ideas how to use this module.");
  writeVerbose(1, "");
  writeVerbose(1, "    SINGLE: Script expects all user input comes from "
                  "original command line.");
  writeVerbose(1, "    STDIN:  Host and user information passed to script via "
                  "command line.");
  writeVerbose(1,
               "            Passwords to test are passed via STDIN to script.");
  writeVerbose(1, " ");
  writeVerbose(1, "  PROG:? ");
  writeVerbose(1, "    Option for setting path to executable file.");
  writeVerbose(1, "");
  writeVerbose(1, "  ARGS:? ");
  writeVerbose(1, "    Option for setting executable parameters. The following "
                  "substitutions can be used:");
  writeVerbose(1, "    %H:  Replaced with target IP address.");
  writeVerbose(1, "    %U:  Replaced with username to test.");
  writeVerbose(1, "    %P:  Replaced with password to test.");
  writeVerbose(1, "");
  writeVerbose(1, "Usage example: \'-M wrapper -m TYPE:SINGLE -m PROG:./foo.pl "
                  "-m ARGS:\"-h %H -u %U -p %P\"\'");
  writeVerbose(1, "Usage example: \'-M wrapper -m TYPE:STDIN  -m PROG:./bar.pl "
                  "-m ARGS:\"--host %H --user %U\"\'");
}


x86 assembly (clang, -O0):
<showUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
lea    0xee0(%rip),%rsi
lea    0xeeb(%rip),%rdx
lea    0xef0(%rip),%rcx
lea    0xeed(%rip),%r8
lea    0xf00(%rip),%r9
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf04(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf0b(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf11(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf51(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xe76(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf51(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf8a(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xfc0(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xff3(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xfd8(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xfcf(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xdf1(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xfd9(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xfd0(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x1014(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x102b(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x1041(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xd7f(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x1044(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x1089(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showUsage>:
push   %rbx
lea    0xee8(%rip),%rsi
lea    0xef3(%rip),%rdx
lea    0xef8(%rip),%rcx
lea    0xef5(%rip),%r8
lea    0xf08(%rip),%r9
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf0c(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf13(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf19(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf59(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xe7e(%rip),%rbx
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf56(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf8f(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xfc5(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xff8(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xfdd(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xfd4(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xfe2(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xfd9(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x101d(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x1034(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x104a(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x1051(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x1096(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <writeVerbose@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"%s (%s) %s :: %s\0A\00"
@.str.1 = [12 x i8] c"wrapper.mod\00"
@.str.2 = [4 x i8] c"2.0\00"
@.str.3 = [26 x i8] c"JoMo-Kun <jmk@foofus.net>\00"
@.str.4 = [23 x i8] c"Generic Wrapper Module\00"
@.str.5 = [26 x i8] c"Available module options:\00"
@.str.6 = [25 x i8] c" TYPE:? (SINGLE, STDIN)\00"
@.str.7 = [83 x i8] c" Option sets type of script being called by module. See included sample scripts\00"
@.str.8 = [38 x i8] c" for ideas how to use this module.\00"
@.str.9 = [1 x i8] zeroinitializer
@.str.10 = [76 x i8] c" SINGLE: Script expects all user input comes from original command line.\00"
@.str.11 = [73 x i8] c" STDIN: Host and user information passed to script via command line.\00"
@.str.12 = [62 x i8] c" Passwords to test are passed via STDIN to script.\00"
@.str.13 = [2 x i8] c" \00"
@.str.14 = [10 x i8] c" PROG:? \00"
@.str.15 = [48 x i8] c" Option for setting path to executable file.\00"
@.str.16 = [10 x i8] c" ARGS:? \00"
@.str.17 = [87 x i8] c" Option for setting executable parameters. The following substitutions can be used:\00"
@.str.18 = [42 x i8] c" %H: Replaced with target IP address.\00"
@.str.19 = [41 x i8] c" %U: Replaced with username to test.\00"
@.str.20 = [41 x i8] c" %P: Replaced with password to test.\00"
@.str.21 = [88 x i8] c"Usage example: '-M wrapper -m TYPE:SINGLE -m PROG:./foo.pl -m ARGS:\22-h %H -u %U -p %P\22'\00"
@.str.22 = [90 x i8] c"Usage example: '-M wrapper -m TYPE:STDIN -m PROG:./bar.pl -m ARGS:\22--host %H --user %U\22'\00"
define void @showUsage() {
%1 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%2 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%3 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%4 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%6 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.10, i64 0, i64 0))
%8 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.11, i64 0, i64 0))
%9 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0))
%10 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%11 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%12 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.15, i64 0, i64 0))
%13 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%15 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.17, i64 0, i64 0))
%16 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0))
%17 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0))
%18 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.20, i64 0, i64 0))
%19 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%20 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.21, i64 0, i64 0))
%21 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.22, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%s (%s) %s :: %s\0A\00"
@.str.1 = [12 x i8] c"wrapper.mod\00"
@.str.2 = [4 x i8] c"2.0\00"
@.str.3 = [26 x i8] c"JoMo-Kun <jmk@foofus.net>\00"
@.str.4 = [23 x i8] c"Generic Wrapper Module\00"
@.str.5 = [26 x i8] c"Available module options:\00"
@.str.6 = [25 x i8] c" TYPE:? (SINGLE, STDIN)\00"
@.str.7 = [83 x i8] c" Option sets type of script being called by module. See included sample scripts\00"
@.str.8 = [38 x i8] c" for ideas how to use this module.\00"
@.str.9 = [1 x i8] zeroinitializer
@.str.10 = [76 x i8] c" SINGLE: Script expects all user input comes from original command line.\00"
@.str.11 = [73 x i8] c" STDIN: Host and user information passed to script via command line.\00"
@.str.12 = [62 x i8] c" Passwords to test are passed via STDIN to script.\00"
@.str.13 = [2 x i8] c" \00"
@.str.14 = [10 x i8] c" PROG:? \00"
@.str.15 = [48 x i8] c" Option for setting path to executable file.\00"
@.str.16 = [10 x i8] c" ARGS:? \00"
@.str.17 = [87 x i8] c" Option for setting executable parameters. The following substitutions can be used:\00"
@.str.18 = [42 x i8] c" %H: Replaced with target IP address.\00"
@.str.19 = [41 x i8] c" %U: Replaced with username to test.\00"
@.str.20 = [41 x i8] c" %P: Replaced with password to test.\00"
@.str.21 = [88 x i8] c"Usage example: '-M wrapper -m TYPE:SINGLE -m PROG:./foo.pl -m ARGS:\22-h %H -u %U -p %P\22'\00"
@.str.22 = [90 x i8] c"Usage example: '-M wrapper -m TYPE:STDIN -m PROG:./bar.pl -m ARGS:\22--host %H --user %U\22'\00"
define void @showUsage() {
%1 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%2 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%3 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%4 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%6 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.11, i64 0, i64 0))
%9 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0))
%10 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%11 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%12 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.15, i64 0, i64 0))
%13 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%14 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%15 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.17, i64 0, i64 0))
%16 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.18, i64 0, i64 0))
%17 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0))
%18 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.20, i64 0, i64 0))
%19 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%20 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.21, i64 0, i64 0))
%21 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.22, i64 0, i64 0))
ret void
}