#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*/ printf(char *);
void printHelp() {
  printf("-----------------------------------------------------\n");
  printf("How to use this program.\n");
  printf("\n");
  printf("One of the following arguments is required:\n");
  printf("  -c|create  (creates MLP BPNN model and saves it)\n");
  printf("  -t|train   (trains existing model and saves it)\n");
  printf("  -r|run     (runs existing model against data set)\n");
  printf("  -v|view    (prints an existing model's information)\n");
  printf("  -n|nmn     (generates N-M-N encoder dataset)\n");
  printf("\n");
  printf("The following arguments are optional:\n");
  printf("  -h|help          (prints this help message)\n");
  printf("  -s|seed  <seed>  (specify PRN seed to repeat results)\n");
  printf("  -e|error <0-1>   (use classification error threshold as "
         "convergence)\n");
  printf("  -show_learn      (show learing results in real time)\n");
  printf("  -show_model      (show network model)\n");
  printf("  -add|additive    (additional training to existing weights)\n");
  printf("  -xor             (creates XOR model - trains only 1 epoch)\n");
  printf("\n");
  printf("(C)reate command syntax:\n");
  printf("  -c <name> <layers> <I> <H> <O>\n");
  printf("     <name>     = filename to use for model file\n");
  printf("     <layers>   = # of total layers including Input & Output\n");
  printf("     <I>        = # of nodes in Input Layer\n");
  printf("     <H>        = # of nodes in Hidden Layers\n");
  printf("     <O>        = # of nodes in Output Layer\n");
  printf("\n");
  printf("(T)rain command syntax:\n");
  printf("  -t <name> <dataset> <epochs> <learning> <eta> <alpha>\n");
  printf("     <name>     = filename of model\n");
  printf("     <dataset>  = filename of training data\n");
  printf("     <epochs>   = max # of epochs to run training\n");
  printf("     <learning> = 0|1|2 for GD,GDM,RPROP respectively\n");
  printf("     <eta>      = learning rate (0-?)\n");
  printf("     <alpha>    = momentum rate (0-1) (GDM only)\n");
  printf("\n");
  printf("(R)un command syntax:\n");
  printf("  -r <name> <dataset>\n");
  printf("     <name>     = filename of model file\n");
  printf("     <dataset>  = filename of test data\n");
  printf("\n");
  printf("(V)iew command syntax:\n");
  printf("  -v <name>\n");
  printf("     <name>     = filename of model file\n");
  printf("\n");
  printf("(N)MN command syntax:\n");
  printf("  -n <name> <N> <patterns>\n");
  printf("     <name>     = filename of dataset\n");
  printf("     <N>        = number of nodes in Input & Output layer (w/out "
         "bias)\n");
  printf("     <patterns> = number of test patterns to generate\n");
  printf("\n");
  printf("Note that you do not have to account for bias nodes,\n");
  printf("  they will be added-in automatically.  So passing 2\n");
  printf("  for the # of input nodes will ultimately result in\n");
  printf("  3 nodes with the bias node.\n");
  printf("Note that momentum rate (alpha) is only used for GDM\n");
  printf("  training method.\n");
  printf("Note the PRN seed effects anything randomized, such\n");
  printf("  as the initial weights, selection of patterns, etc.,\n");
  printf("  so the exact same model and training can be duplicated\n");
  printf("  by using the same PRN.\n");
  printf("\n");
  printf("Example Usage:\n");
  printf("  > program -c m1 4 2 8 5\n");
  printf("  > program -c m2 4 2 3 5 -s 91768385\n");
  printf("  > program -t m2 CinS500_train.csv 5000 0 1.0 0\n");
  printf("  > program -t m2 CinS500_train2.csv 2000 0 0.85 0 -add\n");
  printf("  > program -r m2 CinS500_test.csv\n");
  printf("  > program -v m1\n");
  printf("  > program -h\n");
  printf("-----------------------------------------------------\n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <printf@plt>
lea    0x146b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf82(%rip),%rdi
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1417(%rip),%rdi
call   1030 <printf@plt>
lea    0xfee(%rip),%rdi
call   1030 <printf@plt>
lea    0x1009(%rip),%rdi
call   1030 <printf@plt>
lea    0x102c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1059(%rip),%rdi
call   1030 <printf@plt>
lea    0x1095(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c1(%rip),%rdi
call   1030 <printf@plt>
lea    0x10de(%rip),%rdi
call   1030 <printf@plt>
lea    0x1110(%rip),%rdi
call   1030 <printf@plt>
lea    0x13ab(%rip),%rdi
call   1030 <printf@plt>
lea    0x1136(%rip),%rdi
call   1030 <printf@plt>
lea    0x1144(%rip),%rdi
call   1030 <printf@plt>
lea    0x115a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1180(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b2(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d3(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f6(%rip),%rdi
call   1030 <printf@plt>
lea    0x134b(%rip),%rdi
call   1030 <printf@plt>
lea    0x120c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1219(%rip),%rdi
call   1030 <printf@plt>
lea    0x1246(%rip),%rdi
call   1030 <printf@plt>
lea    0x125f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1280(%rip),%rdi
call   1030 <printf@plt>
lea    0x12a7(%rip),%rdi
call   1030 <printf@plt>
lea    0x12d2(%rip),%rdi
call   1030 <printf@plt>
lea    0x12ed(%rip),%rdi
call   1030 <printf@plt>
lea    0x12df(%rip),%rdi
call   1030 <printf@plt>
lea    0x1307(%rip),%rdi
call   1030 <printf@plt>
lea    0x1312(%rip),%rdi
call   1030 <printf@plt>
lea    0x131d(%rip),%rdi
call   1030 <printf@plt>
lea    0x133b(%rip),%rdi
call   1030 <printf@plt>
lea    0x12a3(%rip),%rdi
call   1030 <printf@plt>
lea    0x134c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1358(%rip),%rdi
call   1030 <printf@plt>
lea    0x12e1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1273(%rip),%rdi
call   1030 <printf@plt>
lea    0x1341(%rip),%rdi
call   1030 <printf@plt>
lea    0x134c(%rip),%rdi
call   1030 <printf@plt>
lea    0x135c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1377(%rip),%rdi
call   1030 <printf@plt>
lea    0x13b3(%rip),%rdi
call   1030 <printf@plt>
lea    0x122b(%rip),%rdi
call   1030 <printf@plt>
lea    0x13d2(%rip),%rdi
call   1030 <printf@plt>
lea    0x13fc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1426(%rip),%rdi
call   1030 <printf@plt>
lea    0x1450(%rip),%rdi
call   1030 <printf@plt>
lea    0x1463(%rip),%rdi
call   1030 <printf@plt>
lea    0x148d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1495(%rip),%rdi
call   1030 <printf@plt>
lea    0x14be(%rip),%rdi
call   1030 <printf@plt>
lea    0x14ea(%rip),%rdi
call   1030 <printf@plt>
lea    0x1518(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a7(%rip),%rdi
call   1030 <printf@plt>
lea    0x151a(%rip),%rdi
call   1030 <printf@plt>
lea    0x151e(%rip),%rdi
call   1030 <printf@plt>
lea    0x152d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1548(%rip),%rdi
call   1030 <printf@plt>
lea    0x156e(%rip),%rdi
call   1030 <printf@plt>
lea    0x159b(%rip),%rdi
call   1030 <printf@plt>
lea    0x15b3(%rip),%rdi
call   1030 <printf@plt>
lea    0x15ba(%rip),%rdi
call   1030 <printf@plt>
lea    0xb9d(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %r14
push   %rbx
push   %rax
lea    0x1884(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xec6(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xec9(%rip),%rdi
call   1040 <puts@plt>
lea    0xee9(%rip),%rdi
call   1040 <puts@plt>
lea    0xf10(%rip),%rdi
call   1040 <puts@plt>
lea    0xf36(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf88(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfa1(%rip),%rdi
call   1040 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1040 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1040 <puts@plt>
lea    0x1009(%rip),%rdi
call   1040 <puts@plt>
lea    0x1044(%rip),%rdi
call   1040 <puts@plt>
lea    0x106f(%rip),%rdi
call   1040 <puts@plt>
lea    0x108b(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bc(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10e3(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1105(%rip),%rdi
call   1040 <puts@plt>
lea    0x112a(%rip),%rdi
call   1040 <puts@plt>
lea    0x115b(%rip),%rdi
call   1040 <puts@plt>
lea    0x117b(%rip),%rdi
call   1040 <puts@plt>
lea    0x119d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x11b4(%rip),%rdi
call   1040 <puts@plt>
lea    0x11c0(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ec(%rip),%rdi
call   1040 <puts@plt>
lea    0x1204(%rip),%rdi
call   1040 <puts@plt>
lea    0x1224(%rip),%rdi
call   1040 <puts@plt>
lea    0x124a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1274(%rip),%rdi
call   1040 <puts@plt>
lea    0x128e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x12a9(%rip),%rdi
call   1040 <puts@plt>
lea    0x12b3(%rip),%rdi
call   1040 <puts@plt>
lea    0x1308(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x12ae(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x12c0(%rip),%rdi
call   1040 <puts@plt>
lea    0x12cb(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x12e2(%rip),%rdi
call   1040 <puts@plt>
lea    0x12ec(%rip),%rdi
call   1040 <puts@plt>
lea    0x12fb(%rip),%rdi
call   1040 <puts@plt>
lea    0x1315(%rip),%rdi
call   1040 <puts@plt>
lea    0x1350(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1370(%rip),%rdi
call   1040 <puts@plt>
lea    0x1399(%rip),%rdi
call   1040 <puts@plt>
lea    0x13c2(%rip),%rdi
call   1040 <puts@plt>
lea    0x13eb(%rip),%rdi
call   1040 <puts@plt>
lea    0x13fd(%rip),%rdi
call   1040 <puts@plt>
lea    0x1426(%rip),%rdi
call   1040 <puts@plt>
lea    0x142d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1455(%rip),%rdi
call   1040 <puts@plt>
lea    0x1480(%rip),%rdi
call   1040 <puts@plt>
lea    0x14ad(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x14b0(%rip),%rdi
call   1040 <puts@plt>
lea    0x14b3(%rip),%rdi
call   1040 <puts@plt>
lea    0x14c1(%rip),%rdi
call   1040 <puts@plt>
lea    0x14db(%rip),%rdi
call   1040 <puts@plt>
lea    0x1500(%rip),%rdi
call   1040 <puts@plt>
lea    0x152c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1543(%rip),%rdi
call   1040 <puts@plt>
lea    0x1549(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"-----------------------------------------------------\0A\00"
@.str.1 = [26 x i8] c"How to use this program.\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [45 x i8] c"One of the following arguments is required:\0A\00"
@.str.4 = [52 x i8] c" -c|create (creates MLP BPNN model and saves it)\0A\00"
@.str.5 = [51 x i8] c" -t|train (trains existing model and saves it)\0A\00"
@.str.6 = [53 x i8] c" -r|run (runs existing model against data set)\0A\00"
@.str.7 = [55 x i8] c" -v|view (prints an existing model's information)\0A\00"
@.str.8 = [48 x i8] c" -n|nmn (generates N-M-N encoder dataset)\0A\00"
@.str.9 = [39 x i8] c"The following arguments are optional:\0A\00"
@.str.10 = [47 x i8] c" -h|help (prints this help message)\0A\00"
@.str.11 = [57 x i8] c" -s|seed <seed> (specify PRN seed to repeat results)\0A\00"
@.str.12 = [72 x i8] c" -e|error <0-1> (use classification error threshold as convergence)\0A\00"
@.str.13 = [56 x i8] c" -show_learn (show learing results in real time)\0A\00"
@.str.14 = [41 x i8] c" -show_model (show network model)\0A\00"
@.str.15 = [62 x i8] c" -add|additive (additional training to existing weights)\0A\00"
@.str.16 = [62 x i8] c" -xor (creates XOR model - trains only 1 epoch)\0A\00"
@.str.17 = [26 x i8] c"(C)reate command syntax:\0A\00"
@.str.18 = [34 x i8] c" -c <name> <layers> <I> <H> <O>\0A\00"
@.str.19 = [50 x i8] c" <name> = filename to use for model file\0A\00"
@.str.20 = [62 x i8] c" <layers> = # of total layers including Input & Output\0A\00"
@.str.21 = [45 x i8] c" <I> = # of nodes in Input Layer\0A\00"
@.str.22 = [47 x i8] c" <H> = # of nodes in Hidden Layers\0A\00"
@.str.23 = [46 x i8] c" <O> = # of nodes in Output Layer\0A\00"
@.str.24 = [25 x i8] c"(T)rain command syntax:\0A\00"
@.str.25 = [57 x i8] c" -t <name> <dataset> <epochs> <learning> <eta> <alpha>\0A\00"
@.str.26 = [37 x i8] c" <name> = filename of model\0A\00"
@.str.27 = [45 x i8] c" <dataset> = filename of training data\0A\00"
@.str.28 = [51 x i8] c" <epochs> = max # of epochs to run training\0A\00"
@.str.29 = [55 x i8] c" <learning> = 0|1|2 for GD,GDM,RPROP respectively\0A\00"
@.str.30 = [39 x i8] c" <eta> = learning rate (0-?)\0A\00"
@.str.31 = [50 x i8] c" <alpha> = momentum rate (0-1) (GDM only)\0A\00"
@.str.32 = [23 x i8] c"(R)un command syntax:\0A\00"
@.str.33 = [23 x i8] c" -r <name> <dataset>\0A\00"
@.str.34 = [42 x i8] c" <name> = filename of model file\0A\00"
@.str.35 = [41 x i8] c" <dataset> = filename of test data\0A\00"
@.str.36 = [24 x i8] c"(V)iew command syntax:\0A\00"
@.str.37 = [13 x i8] c" -v <name>\0A\00"
@.str.38 = [23 x i8] c"(N)MN command syntax:\0A\00"
@.str.39 = [28 x i8] c" -n <name> <N> <patterns>\0A\00"
@.str.40 = [39 x i8] c" <name> = filename of dataset\0A\00"
@.str.41 = [72 x i8] c" <N> = number of nodes in Input & Output layer (w/out bias)\0A\00"
@.str.42 = [55 x i8] c" <patterns> = number of test patterns to generate\0A\00"
@.str.43 = [54 x i8] c"Note that you do not have to account for bias nodes,\0A\00"
@.str.44 = [54 x i8] c" they will be added-in automatically. So passing 2\0A\00"
@.str.45 = [54 x i8] c" for the # of input nodes will ultimately result in\0A\00"
@.str.46 = [31 x i8] c" 3 nodes with the bias node.\0A\00"
@.str.47 = [54 x i8] c"Note that momentum rate (alpha) is only used for GDM\0A\00"
@.str.48 = [20 x i8] c" training method.\0A\00"
@.str.49 = [53 x i8] c"Note the PRN seed effects anything randomized, such\0A\00"
@.str.50 = [56 x i8] c" as the initial weights, selection of patterns, etc.,\0A\00"
@.str.51 = [58 x i8] c" so the exact same model and training can be duplicated\0A\00"
@.str.52 = [26 x i8] c" by using the same PRN.\0A\00"
@.str.53 = [16 x i8] c"Example Usage:\0A\00"
@.str.54 = [27 x i8] c" > program -c m1 4 2 8 5\0A\00"
@.str.55 = [39 x i8] c" > program -c m2 4 2 3 5 -s 91768385\0A\00"
@.str.56 = [50 x i8] c" > program -t m2 CinS500_train.csv 5000 0 1.0 0\0A\00"
@.str.57 = [57 x i8] c" > program -t m2 CinS500_train2.csv 2000 0 0.85 0 -add\0A\00"
@.str.58 = [36 x i8] c" > program -r m2 CinS500_test.csv\0A\00"
@.str.59 = [19 x i8] c" > program -v m1\0A\00"
@.str.60 = [16 x i8] c" > program -h\0A\00"
define void @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.14, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.15, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.16, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.18, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.19, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.20, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.21, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.22, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.24, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.25, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.26, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.27, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.28, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.29, i64 0, i64 0))
%34 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.30, i64 0, i64 0))
%35 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.31, i64 0, i64 0))
%36 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%37 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.32, i64 0, i64 0))
%38 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0))
%39 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.34, i64 0, i64 0))
%40 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.35, i64 0, i64 0))
%41 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%42 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.36, i64 0, i64 0))
%43 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.37, i64 0, i64 0))
%44 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.34, i64 0, i64 0))
%45 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%46 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.38, i64 0, i64 0))
%47 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.39, i64 0, i64 0))
%48 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.40, i64 0, i64 0))
%49 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.41, i64 0, i64 0))
%50 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.42, i64 0, i64 0))
%51 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%52 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.43, i64 0, i64 0))
%53 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.44, i64 0, i64 0))
%54 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.45, i64 0, i64 0))
%55 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.46, i64 0, i64 0))
%56 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.47, i64 0, i64 0))
%57 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.48, i64 0, i64 0))
%58 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.49, i64 0, i64 0))
%59 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.50, i64 0, i64 0))
%60 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.51, i64 0, i64 0))
%61 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.52, i64 0, i64 0))
%62 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%63 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.53, i64 0, i64 0))
%64 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.54, i64 0, i64 0))
%65 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.55, i64 0, i64 0))
%66 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.56, i64 0, i64 0))
%67 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.57, i64 0, i64 0))
%68 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.58, i64 0, i64 0))
%69 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.59, i64 0, i64 0))
%70 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.60, i64 0, i64 0))
%71 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str.61 = [25 x i8] c"How to use this program.\00"
@str.62 = [44 x i8] c"One of the following arguments is required:\00"
@str.63 = [51 x i8] c" -c|create (creates MLP BPNN model and saves it)\00"
@str.64 = [50 x i8] c" -t|train (trains existing model and saves it)\00"
@str.65 = [52 x i8] c" -r|run (runs existing model against data set)\00"
@str.66 = [54 x i8] c" -v|view (prints an existing model's information)\00"
@str.67 = [47 x i8] c" -n|nmn (generates N-M-N encoder dataset)\00"
@str.68 = [38 x i8] c"The following arguments are optional:\00"
@str.69 = [46 x i8] c" -h|help (prints this help message)\00"
@str.70 = [56 x i8] c" -s|seed <seed> (specify PRN seed to repeat results)\00"
@str.71 = [71 x i8] c" -e|error <0-1> (use classification error threshold as convergence)\00"
@str.72 = [55 x i8] c" -show_learn (show learing results in real time)\00"
@str.73 = [40 x i8] c" -show_model (show network model)\00"
@str.74 = [61 x i8] c" -add|additive (additional training to existing weights)\00"
@str.75 = [61 x i8] c" -xor (creates XOR model - trains only 1 epoch)\00"
@str.76 = [25 x i8] c"(C)reate command syntax:\00"
@str.77 = [33 x i8] c" -c <name> <layers> <I> <H> <O>\00"
@str.78 = [49 x i8] c" <name> = filename to use for model file\00"
@str.79 = [61 x i8] c" <layers> = # of total layers including Input & Output\00"
@str.80 = [44 x i8] c" <I> = # of nodes in Input Layer\00"
@str.81 = [46 x i8] c" <H> = # of nodes in Hidden Layers\00"
@str.82 = [45 x i8] c" <O> = # of nodes in Output Layer\00"
@str.83 = [24 x i8] c"(T)rain command syntax:\00"
@str.84 = [56 x i8] c" -t <name> <dataset> <epochs> <learning> <eta> <alpha>\00"
@str.85 = [36 x i8] c" <name> = filename of model\00"
@str.86 = [44 x i8] c" <dataset> = filename of training data\00"
@str.87 = [50 x i8] c" <epochs> = max # of epochs to run training\00"
@str.88 = [54 x i8] c" <learning> = 0|1|2 for GD,GDM,RPROP respectively\00"
@str.89 = [38 x i8] c" <eta> = learning rate (0-?)\00"
@str.90 = [49 x i8] c" <alpha> = momentum rate (0-1) (GDM only)\00"
@str.91 = [22 x i8] c"(R)un command syntax:\00"
@str.92 = [22 x i8] c" -r <name> <dataset>\00"
@str.94 = [40 x i8] c" <dataset> = filename of test data\00"
@str.95 = [23 x i8] c"(V)iew command syntax:\00"
@str.96 = [12 x i8] c" -v <name>\00"
@str.97 = [41 x i8] c" <name> = filename of model file\00"
@str.98 = [22 x i8] c"(N)MN command syntax:\00"
@str.99 = [27 x i8] c" -n <name> <N> <patterns>\00"
@str.100 = [38 x i8] c" <name> = filename of dataset\00"
@str.101 = [71 x i8] c" <N> = number of nodes in Input & Output layer (w/out bias)\00"
@str.102 = [54 x i8] c" <patterns> = number of test patterns to generate\00"
@str.103 = [53 x i8] c"Note that you do not have to account for bias nodes,\00"
@str.104 = [53 x i8] c" they will be added-in automatically. So passing 2\00"
@str.105 = [53 x i8] c" for the # of input nodes will ultimately result in\00"
@str.106 = [30 x i8] c" 3 nodes with the bias node.\00"
@str.107 = [53 x i8] c"Note that momentum rate (alpha) is only used for GDM\00"
@str.108 = [19 x i8] c" training method.\00"
@str.109 = [52 x i8] c"Note the PRN seed effects anything randomized, such\00"
@str.110 = [55 x i8] c" as the initial weights, selection of patterns, etc.,\00"
@str.111 = [57 x i8] c" so the exact same model and training can be duplicated\00"
@str.112 = [25 x i8] c" by using the same PRN.\00"
@str.113 = [15 x i8] c"Example Usage:\00"
@str.114 = [26 x i8] c" > program -c m1 4 2 8 5\00"
@str.115 = [38 x i8] c" > program -c m2 4 2 3 5 -s 91768385\00"
@str.116 = [49 x i8] c" > program -t m2 CinS500_train.csv 5000 0 1.0 0\00"
@str.117 = [56 x i8] c" > program -t m2 CinS500_train2.csv 2000 0 0.85 0 -add\00"
@str.118 = [35 x i8] c" > program -r m2 CinS500_test.csv\00"
@str.119 = [18 x i8] c" > program -v m1\00"
@str.120 = [15 x i8] c" > program -h\00"
@str.121 = [54 x i8] c"-----------------------------------------------------\00"
define void @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.121, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.61, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.62, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.63, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.64, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.65, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.66, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.67, i64 0, i64 0))
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.68, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.69, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.70, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.71, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.72, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.73, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.74, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.75, i64 0, i64 0))
%19 = tail call i32 @putchar(i32 10)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.76, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.77, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.78, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.79, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.80, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.81, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.82, i64 0, i64 0))
%27 = tail call i32 @putchar(i32 10)
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.83, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.84, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.85, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.86, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.87, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.88, i64 0, i64 0))
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.89, i64 0, i64 0))
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.90, i64 0, i64 0))
%36 = tail call i32 @putchar(i32 10)
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.91, i64 0, i64 0))
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.92, i64 0, i64 0))
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.97, i64 0, i64 0))
%40 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.94, i64 0, i64 0))
%41 = tail call i32 @putchar(i32 10)
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.95, i64 0, i64 0))
%43 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.96, i64 0, i64 0))
%44 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.97, i64 0, i64 0))
%45 = tail call i32 @putchar(i32 10)
%46 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.98, i64 0, i64 0))
%47 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.99, i64 0, i64 0))
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.100, i64 0, i64 0))
%49 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.101, i64 0, i64 0))
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.102, i64 0, i64 0))
%51 = tail call i32 @putchar(i32 10)
%52 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.103, i64 0, i64 0))
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.104, i64 0, i64 0))
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.105, i64 0, i64 0))
%55 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.106, i64 0, i64 0))
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.107, i64 0, i64 0))
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.108, i64 0, i64 0))
%58 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.109, i64 0, i64 0))
%59 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.110, i64 0, i64 0))
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.111, i64 0, i64 0))
%61 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.112, i64 0, i64 0))
%62 = tail call i32 @putchar(i32 10)
%63 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.113, i64 0, i64 0))
%64 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.114, i64 0, i64 0))
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.115, i64 0, i64 0))
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.116, i64 0, i64 0))
%67 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.117, i64 0, i64 0))
%68 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.118, i64 0, i64 0))
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.119, i64 0, i64 0))
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.120, i64 0, i64 0))
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.121, i64 0, i64 0))
ret void
}