#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*/ AppendFiles(char *, float);
char *malloc(int);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ wprintf(char *);
void EditConfigNetworkTrainGood() {
  char *dir = malloc(256);
  wprintf(L"Set dirrectory with good train files (Up-to 255 symbols): ");
  while (!scanf("%s", dir))
    ;
  AppendFiles(dir, -1.0f);
}


x86 assembly (clang, -O0):
<EditConfigNetworkTrainGood>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,-0x8(%rbp)
lea    0xea7(%rip),%rdi
call   1050 <wprintf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf83(%rip),%rdi
call   1060 <scanf@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1187 <EditConfigNetworkTrainGood+0x47>
jmp    118c <EditConfigNetworkTrainGood+0x4c>
jmp    1162 <EditConfigNetworkTrainGood+0x22>
mov    -0x8(%rbp),%rdi
movss  0xe68(%rip),%xmm0
call   1030 <AppendFiles@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EditConfigNetworkTrainGood>:
push   %r14
push   %rbx
push   %rax
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
lea    0xeac(%rip),%rdi
call   1050 <wprintf@plt>
lea    0xf8c(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
test   %eax,%eax
je     1170 <EditConfigNetworkTrainGood+0x30>
movss  0xe79(%rip),%xmm0
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <AppendFiles@plt>

LLVM IR (-O0):
@.str = [59 x i32] [i32 83, i32 101, i32 116, i32 32, i32 100, i32 105, i32 114, i32 114, i32 101, i32 99, i32 116, i32 111, i32 114, i32 121, i32 32, i32 119, i32 105, i32 116, i32 104, i32 32, i32 103, i32 111, i32 111, i32 100, i32 32, i32 116, i32 114, i32 97, i32 105, i32 110, i32 32, i32 102, i32 105, i32 108, i32 101, i32 115, i32 32, i32 40, i32 85, i32 112, i32 45, i32 116, i32 111, i32 32, i32 50, i32 53, i32 53, i32 32, i32 115, i32 121, i32 109, i32 98, i32 111, i32 108, i32 115, i32 41, i32 58, i32 32, i32 0]
@.str.1 = [3 x i8] c"%s\00"
define void @EditConfigNetworkTrainGood() {
%1 = alloca i8*
%2 = call i8* @malloc(i32 256)
store i8* %2, i8** %1
%3 = call i32 @wprintf(i8* bitcast ([59 x i32]* @.str to i8*))
br label %4
4: ; preds = %9, %0
%5 = load i8*, i8** %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
br i1 %8, label %9, label %10
9: ; preds = %4
br label %4
10: ; preds = %4
%11 = load i8*, i8** %1
%12 = call i32 @AppendFiles(i8* %11, float -1.000000e+00)
ret void
}

LLVM IR (-O2):
@.str = [59 x i32] [i32 83, i32 101, i32 116, i32 32, i32 100, i32 105, i32 114, i32 114, i32 101, i32 99, i32 116, i32 111, i32 114, i32 121, i32 32, i32 119, i32 105, i32 116, i32 104, i32 32, i32 103, i32 111, i32 111, i32 100, i32 32, i32 116, i32 114, i32 97, i32 105, i32 110, i32 32, i32 102, i32 105, i32 108, i32 101, i32 115, i32 32, i32 40, i32 85, i32 112, i32 45, i32 116, i32 111, i32 32, i32 50, i32 53, i32 53, i32 32, i32 115, i32 121, i32 109, i32 98, i32 111, i32 108, i32 115, i32 41, i32 58, i32 32, i32 0]
@.str.1 = [3 x i8] c"%s\00"
define void @EditConfigNetworkTrainGood() {
%1 = tail call dereferenceable_or_null(256) i8* @malloc(i32 256)
%2 = tail call i32 @wprintf(i8* bitcast ([59 x i32]* @.str to i8*))
br label %3
3: ; preds = %3, %0
%4 = tail call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%5 = icmp eq i32 %4, 0
br i1 %5, label %3, label %6
6: ; preds = %3
%7 = tail call i32 @AppendFiles(i8* %1, float -1.000000e+00)
ret void
}