#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int getchar();
int /*<<< orphan*/ stdout;
void help() {
  if (1) {
    fprintf(
        stdout,
        "CSubNet\n"
        "\n"
        "Usage:\n"
        "Help: CSubNet -h\n"
        "Train: CSubNet -t [OPTIONS] <training-data.csv> <input-columns> "
        "<output.net>\n"
        "Re-Train: CSubNet -r [OPTIONS] <old.net> <new-training-data.csv> "
        "<output.net>\n"
        "Execute: CSubNet -e [OPTIONS] <old.net> <new-data.csv> <output.csv>\n"
        "\n"
        "Options:\n"
        "Rounds: -r=n\n"
        "Layer Sizes: -s=v,w,x,y,z\n"
        "Label Columns: -l=x\n"
        "Portion: -p=n\n"
        "Algorithm: -a=[anneal,evolve,gradient,swarm,backprop]\n");
    fflush(stdout);
  }
  if (1) {
    fprintf(stdout, "Press enter to continue.\n");
    fflush(stdout);
  };
  int _ch = 0;
  while (_ch == 0)
    _ch = getchar();
  ;
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%edi
lea    0xeb8(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%edi
lea    0x101f(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    119e <help+0x6e>
mov    $0x0,%al
call   1030 <getchar@plt>
mov    %eax,-0x4(%rbp)
jmp    1185 <help+0x55>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    0x2ea8(%rip),%rbx
mov    (%rbx),%edi
lea    0xebf(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%edi
call   1050 <fflush@plt>
mov    (%rbx),%edi
lea    0x1034(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%edi
call   1050 <fflush@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1030 <getchar@plt>
test   %eax,%eax
je     1170 <help+0x40>
pop    %rbx
ret

LLVM IR (-O0):
@stdout = global i32 0
@.str = [394 x i8] c"CSubNet\0A\0AUsage:\0AHelp: CSubNet -h\0ATrain: CSubNet -t [OPTIONS] <training-data.csv> <input-columns> <output.net>\0ARe-Train: CSubNet -r [OPTIONS] <old.net> <new-training-data.csv> <output.net>\0AExecute: CSubNet -e [OPTIONS] <old.net> <new-data.csv> <output.csv>\0A\0AOptions:\0ARounds: -r=n\0ALayer Sizes: -s=v,w,x,y,z\0ALabel Columns: -l=x\0APortion: -p=n\0AAlgorithm: -a=[anneal,evolve,gradient,swarm,backprop]\0A\00"
@.str.1 = [26 x i8] c"Press enter to continue.\0A\00"
define void @help() {
%1 = alloca i32
%2 = load i32, i32* @stdout
%3 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([394 x i8], [394 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stdout
%5 = call i32 @fflush(i32 %4)
%6 = load i32, i32* @stdout
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stdout
%9 = call i32 @fflush(i32 %8)
store i32 0, i32* %1
br label %10
10: ; preds = %13, %0
%11 = load i32, i32* %1
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 (...) @getchar()
store i32 %14, i32* %1
br label %10
15: ; preds = %10
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [394 x i8] c"CSubNet\0A\0AUsage:\0AHelp: CSubNet -h\0ATrain: CSubNet -t [OPTIONS] <training-data.csv> <input-columns> <output.net>\0ARe-Train: CSubNet -r [OPTIONS] <old.net> <new-training-data.csv> <output.net>\0AExecute: CSubNet -e [OPTIONS] <old.net> <new-data.csv> <output.csv>\0A\0AOptions:\0ARounds: -r=n\0ALayer Sizes: -s=v,w,x,y,z\0ALabel Columns: -l=x\0APortion: -p=n\0AAlgorithm: -a=[anneal,evolve,gradient,swarm,backprop]\0A\00"
@.str.1 = [26 x i8] c"Press enter to continue.\0A\00"
define void @help() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([394 x i8], [394 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = tail call i32 @fflush(i32 %3)
%5 = load i32, i32* @stdout
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = tail call i32 @fflush(i32 %7)
br label %9
9: ; preds = %0, %9
%10 = tail call i32 (...) @getchar()
%11 = icmp eq i32 %10, 0
br i1 %11, label %9, label %12
12: ; preds = %9
ret void
}