#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 */
char *basename(char *);
int /*<<< orphan*/ convert_message(char *);
int /*<<< orphan*/ convert_roomdata(char *);
int /*<<< orphan*/ convert_statistics(char *);
int /*<<< orphan*/ convert_userdata(char *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
scalar_t__ is_numeric(char *);
char *print_copyright(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strip_line(char *);
char *strrchr(char *, char);
int main(int argc, char **argv) {
  char buf[1024], *p;
  printf("%s", print_copyright(0, "bbs100_convert", buf, 1024));
  if (argc <= 1 || (argc > 1 && strcmp(argv[1], "--"))) {
    p = basename(argv[0]);
    printf("specify filenames on stdin\n"
           "typical usage is, from the bbs' basedir:\n"
           "\n");
    printf("find users -type f -print | %s --\n", p);
    printf("find rooms -type f -print | %s --\n", p);
    printf("echo etc/statistics | %s --\n\n", p);
    return 1;
  }
  while (fgets(buf, 1024, stdin) != NULL) {
    strip_line(buf);
    if (!*buf)
      continue;
    if ((p = strrchr(buf, '/')) == NULL)
      p = buf;
    else {
      p++;
      if (!*p)
        continue;
    }
    if (!strcmp(p, "UserData")) {
      convert_userdata(buf);
      continue;
    }
    if (!strcmp(p, "HomeData")) {
      convert_roomdata(buf);
      continue;
    }
    if (!strcmp(p, "MailData")) {
      convert_roomdata(buf);
      continue;
    }
    if (!strcmp(p, "RoomData")) {
      convert_roomdata(buf);
      continue;
    }
    if (is_numeric(p)) {
      convert_message(buf);
      continue;
    }
    if (!strcmp(p, "stats")) {
      convert_statistics(buf);
      continue;
    }
    printf("skipping %s\n", buf);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x410(%rbp),%rdx
xor    %edi,%edi
lea    0xe1a(%rip),%rsi
mov    $0x400,%ecx
call   10a0 <print_copyright@plt>
mov    %rax,%rsi
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jle    1236 <main+0x76>
cmpl   $0x1,-0x8(%rbp)
jle    12a2 <main+0xe2>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdeb(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12a2 <main+0xe2>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1080 <basename@plt>
mov    %rax,-0x418(%rbp)
lea    0xdc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x418(%rbp),%rsi
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x418(%rbp),%rsi
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x418(%rbp),%rsi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1478 <main+0x2b8>
jmp    12a7 <main+0xe7>
lea    -0x410(%rbp),%rdi
mov    0x2d33(%rip),%rax
mov    (%rax),%edx
mov    $0x400,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1471 <main+0x2b1>
lea    -0x410(%rbp),%rdi
call   1090 <strip_line@plt>
cmpb   $0x0,-0x410(%rbp)
jne    12e9 <main+0x129>
jmp    12a7 <main+0xe7>
lea    -0x410(%rbp),%rdi
mov    $0x2f,%esi
call   1050 <strrchr@plt>
mov    %rax,-0x418(%rbp)
cmp    $0x0,%rax
jne    131e <main+0x15e>
lea    -0x410(%rbp),%rax
mov    %rax,-0x418(%rbp)
jmp    134a <main+0x18a>
mov    -0x418(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1345 <main+0x185>
jmp    12a7 <main+0xe7>
jmp    134a <main+0x18a>
mov    -0x418(%rbp),%rdi
lea    0xd67(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1378 <main+0x1b8>
lea    -0x410(%rbp),%rdi
call   10e0 <convert_userdata@plt>
jmp    12a7 <main+0xe7>
mov    -0x418(%rbp),%rdi
lea    0xd42(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13a6 <main+0x1e6>
lea    -0x410(%rbp),%rdi
call   10b0 <convert_roomdata@plt>
jmp    12a7 <main+0xe7>
mov    -0x418(%rbp),%rdi
lea    0xd1d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13d4 <main+0x214>
lea    -0x410(%rbp),%rdi
call   10b0 <convert_roomdata@plt>
jmp    12a7 <main+0xe7>
mov    -0x418(%rbp),%rdi
lea    0xcf8(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1402 <main+0x242>
lea    -0x410(%rbp),%rdi
call   10b0 <convert_roomdata@plt>
jmp    12a7 <main+0xe7>
mov    -0x418(%rbp),%rdi
call   1030 <is_numeric@plt>
cmp    $0x0,%rax
je     1429 <main+0x269>
lea    -0x410(%rbp),%rdi
call   10c0 <convert_message@plt>
jmp    12a7 <main+0xe7>
mov    -0x418(%rbp),%rdi
lea    0xcac(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1457 <main+0x297>
lea    -0x410(%rbp),%rdi
call   10d0 <convert_statistics@plt>
jmp    12a7 <main+0xe7>
lea    -0x410(%rbp),%rsi
lea    0xc84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12a7 <main+0xe7>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x408,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe16(%rip),%rsi
mov    %rsp,%rdx
xor    %edi,%edi
mov    $0x400,%ecx
call   10b0 <print_copyright@plt>
lea    0xdfd(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x2,%ebp
jl     1227 <main+0x57>
mov    0x8(%rbx),%rdi
lea    0xdf5(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1288 <main+0xb8>
mov    (%rbx),%rdi
call   1090 <basename@plt>
mov    %rax,%rbx
lea    0xe77(%rip),%rdi
call   1030 <puts@plt>
lea    0xdd0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xde2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdf4(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%eax
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2d59(%rip),%r13
mov    0x0(%r13),%edx
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    $0x400,%esi
call   1070 <fgets@plt>
test   %rax,%rax
je     13cc <main+0x1fc>
lea    0xdc6(%rip),%r14
lea    0xdc8(%rip),%r15
lea    0xdca(%rip),%r12
jmp    12f2 <main+0x122>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdi
call   10c0 <convert_roomdata@plt>
mov    0x0(%r13),%edx
mov    %rbp,%rdi
mov    $0x400,%esi
call   1070 <fgets@plt>
test   %rax,%rax
je     13cc <main+0x1fc>
mov    %rbp,%rdi
call   10a0 <strip_line@plt>
cmpb   $0x0,(%rsp)
je     12d8 <main+0x108>
mov    %rbp,%rdi
mov    $0x2f,%esi
call   1060 <strrchr@plt>
mov    %rbp,%rbx
test   %rax,%rax
je     1322 <main+0x152>
cmpb   $0x0,0x1(%rax)
je     12d8 <main+0x108>
add    $0x1,%rax
mov    %rax,%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1388 <main+0x1b8>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12d0 <main+0x100>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12d0 <main+0x100>
mov    %rbx,%rdi
lea    0xd34(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12d0 <main+0x100>
mov    %rbx,%rdi
call   1040 <is_numeric@plt>
test   %rax,%rax
je     1395 <main+0x1c5>
mov    %rbp,%rdi
call   10d0 <convert_message@plt>
jmp    12d8 <main+0x108>
mov    %rbp,%rdi
call   10f0 <convert_userdata@plt>
jmp    12d8 <main+0x108>
mov    %rbx,%rdi
lea    0xcfe(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     13bf <main+0x1ef>
lea    0xcf3(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12d8 <main+0x108>
mov    %rbp,%rdi
call   10e0 <convert_statistics@plt>
jmp    12d8 <main+0x108>
xor    %eax,%eax
jmp    1276 <main+0xa6>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [15 x i8] c"bbs100_convert\00"
@.str.2 = [3 x i8] c"--\00"
@.str.3 = [70 x i8] c"specify filenames on stdin\0Atypical usage is, from the bbs' basedir:\0A\0A\00"
@.str.4 = [35 x i8] c"find users -type f -print | %s --\0A\00"
@.str.5 = [35 x i8] c"find rooms -type f -print | %s --\0A\00"
@.str.6 = [30 x i8] c"echo etc/statistics | %s --\0A\0A\00"
@stdin = global i32 0
@.str.7 = [9 x i8] c"UserData\00"
@.str.8 = [9 x i8] c"HomeData\00"
@.str.9 = [9 x i8] c"MailData\00"
@.str.10 = [9 x i8] c"RoomData\00"
@.str.11 = [6 x i8] c"stats\00"
@.str.12 = [13 x i8] c"skipping %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1024 x i8]
%7 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%9 = call i8* @print_copyright(i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %8, i32 1024)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = load i32, i32* %4
%12 = icmp sle i32 %11, 1
br i1 %12, label %22, label %13
13: ; preds = %2
%14 = load i32, i32* %4
%15 = icmp sgt i32 %14, 1
br i1 %15, label %16, label %34
16: ; preds = %13
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %34
22: ; preds = %16, %2
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 0
%25 = load i8*, i8** %24
%26 = call i8* @basename(i8* %25)
store i8* %26, i8** %7
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%28 = load i8*, i8** %7
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i8* %28)
%30 = load i8*, i8** %7
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i8* %30)
%32 = load i8*, i8** %7
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %32)
store i32 1, i32* %3
br label %107
34: ; preds = %16, %13
br label %35
35: ; preds = %103, %100, %93, %86, %79, %72, %65, %59, %46, %34
%36 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%37 = load i32, i32* @stdin
%38 = call i32* @fgets(i8* %36, i32 1024, i32 %37)
%39 = icmp ne i32* %38, null
br i1 %39, label %40, label %106
40: ; preds = %35
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%42 = call i32 @strip_line(i8* %41)
%43 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%44 = load i8, i8* %43
%45 = icmp ne i8 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %40
br label %35
47: ; preds = %40
%48 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%49 = call i8* @strrchr(i8* %48, i8 signext 47)
store i8* %49, i8** %7
%50 = icmp eq i8* %49, null
br i1 %50, label %51, label %53
51: ; preds = %47
%52 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
store i8* %52, i8** %7
br label %61
53: ; preds = %47
%54 = load i8*, i8** %7
%55 = getelementptr inbounds i8, i8* %54, i32 1
store i8* %55, i8** %7
%56 = load i8*, i8** %7
%57 = load i8, i8* %56
%58 = icmp ne i8 %57, 0
br i1 %58, label %60, label %59
59: ; preds = %53
br label %35
60: ; preds = %53
br label %61
61: ; preds = %60, %51
%62 = load i8*, i8** %7
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%64 = icmp ne i64 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %61
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%67 = call i32 @convert_userdata(i8* %66)
br label %35
68: ; preds = %61
%69 = load i8*, i8** %7
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%71 = icmp ne i64 %70, 0
br i1 %71, label %75, label %72
72: ; preds = %68
%73 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%74 = call i32 @convert_roomdata(i8* %73)
br label %35
75: ; preds = %68
%76 = load i8*, i8** %7
%77 = call i64 @strcmp(i8* %76, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%78 = icmp ne i64 %77, 0
br i1 %78, label %82, label %79
79: ; preds = %75
%80 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%81 = call i32 @convert_roomdata(i8* %80)
br label %35
82: ; preds = %75
%83 = load i8*, i8** %7
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%85 = icmp ne i64 %84, 0
br i1 %85, label %89, label %86
86: ; preds = %82
%87 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%88 = call i32 @convert_roomdata(i8* %87)
br label %35
89: ; preds = %82
%90 = load i8*, i8** %7
%91 = call i64 @is_numeric(i8* %90)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %89
%94 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%95 = call i32 @convert_message(i8* %94)
br label %35
96: ; preds = %89
%97 = load i8*, i8** %7
%98 = call i64 @strcmp(i8* %97, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%99 = icmp ne i64 %98, 0
br i1 %99, label %103, label %100
100: ; preds = %96
%101 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%102 = call i32 @convert_statistics(i8* %101)
br label %35
103: ; preds = %96
%104 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i8* %104)
br label %35
106: ; preds = %35
store i32 0, i32* %3
br label %107
107: ; preds = %106, %22
%108 = load i32, i32* %3
ret i32 %108
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [15 x i8] c"bbs100_convert\00"
@.str.2 = [3 x i8] c"--\00"
@.str.4 = [35 x i8] c"find users -type f -print | %s --\0A\00"
@.str.5 = [35 x i8] c"find rooms -type f -print | %s --\0A\00"
@.str.6 = [30 x i8] c"echo etc/statistics | %s --\0A\0A\00"
@stdin = global i32 0
@.str.7 = [9 x i8] c"UserData\00"
@.str.8 = [9 x i8] c"HomeData\00"
@.str.9 = [9 x i8] c"MailData\00"
@.str.10 = [9 x i8] c"RoomData\00"
@.str.11 = [6 x i8] c"stats\00"
@.str.12 = [13 x i8] c"skipping %s\0A\00"
@str = [69 x i8] c"specify filenames on stdin\0Atypical usage is, from the bbs' basedir:\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1024 x i8]
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%5 = call i8* @print_copyright(i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* %4, i32 1024)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = icmp slt i32 %0, 2
br i1 %7, label %17, label %8
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %8
%14 = load i32, i32* @stdin
%15 = call i32* @fgets(i8* %4, i32 1024, i32 %14)
%16 = icmp eq i32* %15, null
br i1 %16, label %72, label %24
17: ; preds = %8, %2
%18 = load i8*, i8** %1
%19 = call i8* @basename(i8* %18)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i8* %19)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i8* %19)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %19)
br label %72
24: ; preds = %13, %41
%25 = call i32 @strip_line(i8* %4)
%26 = load i8, i8* %4
%27 = icmp eq i8 %26, 0
br i1 %27, label %41, label %28
28: ; preds = %24
%29 = call i8* @strrchr(i8* %4, i8 signext 47)
%30 = icmp eq i8* %29, null
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = getelementptr inbounds i8, i8* %29, i64 1
%33 = load i8, i8* %32
%34 = icmp eq i8 %33, 0
br i1 %34, label %41, label %35
35: ; preds = %28, %31
%36 = phi i8* [ %32, %31 ], [ %4, %28 ]
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %35
%40 = call i32 @convert_userdata(i8* %4)
br label %41
41: ; preds = %39, %48, %53, %58, %63, %68, %70, %24, %31
%42 = load i32, i32* @stdin
%43 = call i32* @fgets(i8* %4, i32 1024, i32 %42)
%44 = icmp eq i32* %43, null
br i1 %44, label %72, label %24
45: ; preds = %35
%46 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 @convert_roomdata(i8* %4)
br label %41
50: ; preds = %45
%51 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 @convert_roomdata(i8* %4)
br label %41
55: ; preds = %50
%56 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @convert_roomdata(i8* %4)
br label %41
60: ; preds = %55
%61 = call i64 @is_numeric(i8* %36)
%62 = icmp eq i64 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %60
%64 = call i32 @convert_message(i8* %4)
br label %41
65: ; preds = %60
%66 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 @convert_statistics(i8* %4)
br label %41
70: ; preds = %65
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i8* %4)
br label %41
72: ; preds = %41, %13, %17
%73 = phi i32 [ 1, %17 ], [ 0, %13 ], [ 0, %41 ]
ret i32 %73
}