#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 */
scalar_t__ Convert2MapGMT(char *, char *);
int EOF;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int fscanf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stdin;
main(int argc, char *argv[]) {
  int istat;
  int c;
  char fn_nlloc_stat[100];
  char fn_out[100];
  while (1) {
    if ((istat = fscanf(stdin, "%s", fn_nlloc_stat)) != 1 || istat == EOF)
      break;
    if ((istat = fscanf(stdin, "%s", fn_out)) != 1 || istat == EOF)
      break;
    printf("Processing file: %s\n", fn_nlloc_stat);
    if (Convert2MapGMT(fn_nlloc_stat, fn_out) < 0)
      break;
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
lea    -0x80(%rbp),%rdx
lea    0xe93(%rip),%rsi
call   1040 <fscanf@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x1,%eax
jne    1190 <main+0x50>
mov    -0x14(%rbp),%eax
mov    0x2e58(%rip),%rcx
cmp    (%rcx),%eax
jne    1195 <main+0x55>
jmp    1208 <main+0xc8>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
lea    -0xf0(%rbp),%rdx
lea    0xe54(%rip),%rsi
call   1040 <fscanf@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x1,%eax
jne    11cf <main+0x8f>
mov    -0x14(%rbp),%eax
mov    0x2e19(%rip),%rcx
cmp    (%rcx),%eax
jne    11d4 <main+0x94>
jmp    1208 <main+0xc8>
lea    -0x80(%rbp),%rsi
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
lea    -0x80(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
call   1050 <Convert2MapGMT@plt>
cmp    $0x0,%rax
jge    1203 <main+0xc3>
jmp    1208 <main+0xc8>
jmp    1159 <main+0x19>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    0x2e90(%rip),%r13
lea    0xea1(%rip),%r14
lea    0x70(%rsp),%rbx
mov    0x2e75(%rip),%rbp
mov    %rsp,%r15
lea    0xe8e(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x0(%r13),%edi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <fscanf@plt>
cmp    $0x1,%eax
jne    11cf <main+0x8f>
cmpl   $0x1,0x0(%rbp)
je     11cf <main+0x8f>
mov    0x0(%r13),%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   1040 <fscanf@plt>
cmp    $0x1,%eax
jne    11cf <main+0x8f>
cmpl   $0x1,0x0(%rbp)
je     11cf <main+0x8f>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <Convert2MapGMT@plt>
test   %rax,%rax
jns    1180 <main+0x40>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@stdin = global i32 0
@.str = [3 x i8] c"%s\00"
@EOF = global i32 0
@.str.1 = [21 x i8] c"Processing file: %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [100 x i8]
%9 = alloca [100 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %10
10: ; preds = %2, %38
%11 = load i32, i32* @stdin
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%13 = call i32 @fscanf(i32 %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %12)
store i32 %13, i32* %6
%14 = icmp ne i32 %13, 1
br i1 %14, label %19, label %15
15: ; preds = %10
%16 = load i32, i32* %6
%17 = load i32, i32* @EOF
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %15, %10
br label %39
20: ; preds = %15
%21 = load i32, i32* @stdin
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%23 = call i32 @fscanf(i32 %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %22)
store i32 %23, i32* %6
%24 = icmp ne i32 %23, 1
br i1 %24, label %29, label %25
25: ; preds = %20
%26 = load i32, i32* %6
%27 = load i32, i32* @EOF
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %25, %20
br label %39
30: ; preds = %25
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%32 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %31)
%33 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%35 = call i64 @Convert2MapGMT(i8* %33, i8* %34)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %30
br label %39
38: ; preds = %30
br label %10
39: ; preds = %37, %29, %19
%40 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [3 x i8] c"%s\00"
@EOF = global i32 0
@.str.1 = [21 x i8] c"Processing file: %s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
br label %7
7: ; preds = %21, %2
%8 = load i32, i32* @stdin
%9 = call i32 @fscanf(i32 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%10 = icmp ne i32 %9, 1
%11 = load i32, i32* @EOF
%12 = icmp eq i32 %11, 1
%13 = select i1 %10, i1 true, i1 %12
br i1 %13, label %25, label %14
14: ; preds = %7
%15 = load i32, i32* @stdin
%16 = call i32 @fscanf(i32 %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %6)
%17 = icmp ne i32 %16, 1
%18 = load i32, i32* @EOF
%19 = icmp eq i32 %18, 1
%20 = select i1 %17, i1 true, i1 %19
br i1 %20, label %25, label %21
21: ; preds = %14
%22 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%23 = call i64 @Convert2MapGMT(i8* %5, i8* %6)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %7
25: ; preds = %21, %14, %7
%26 = call i32 @exit(i32 0)
unreachable
}