#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*/ contactNumberRecvd(char *);
int /*<<< orphan*/ contactOfflineRecvd(char *);
int /*<<< orphan*/ contactOnlineRecvd(char *);
int /*<<< orphan*/ contactStatusRecvd(char *);
int /*<<< orphan*/ emailsUnreadRecvd(char *);
int /*<<< orphan*/ newChallangeRecvd(char *);
int /*<<< orphan*/ newContactGroupRecvd(char *);
int /*<<< orphan*/ newContactInfoRecvd(char *);
int /*<<< orphan*/ newSwitchBoardSessionRecvd(char *);
scalar_t__ strcmp(char *, char *);
int parseLine(char *l) {
  if (l != NULL) {
    if (strcmp(l, "SYN")) {
      contactNumberRecvd(l);
      return -1;
    } else if (strcmp(l, "LSG")) {
      newContactGroupRecvd(l);
    } else if (strcmp(l, "LST")) {
      newContactInfoRecvd(l);
    } else if (strcmp(l, "CHL")) {
      newChallangeRecvd(l);
    } else if (strcmp(l, "ILN")) {
      contactStatusRecvd(l);
    } else if (strcmp(l, "FLN")) {
      contactOfflineRecvd(l);
    } else if (strcmp(l, "NLN")) {
      contactOnlineRecvd(l);
    } else if (strcmp(l, "XFR")) {
      newSwitchBoardSessionRecvd(l);
    } else if (strcmp(l, "RNG")) {
      newSwitchBoardSessionRecvd(l);
    } else if (strcmp(l, "Inbox-Unread")) {
      emailsUnreadRecvd(l);
    }
  } else {
  }
  return 1;
}


x86 assembly (clang, -O0):
<parseLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     137b <parseLine+0x1db>
mov    -0x10(%rbp),%rdi
lea    0xe3e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     11e6 <parseLine+0x46>
mov    -0x10(%rbp),%rdi
call   10a0 <contactNumberRecvd@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1387 <parseLine+0x1e7>
mov    -0x10(%rbp),%rdi
lea    0xe13(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     120e <parseLine+0x6e>
mov    -0x10(%rbp),%rdi
call   1030 <newContactGroupRecvd@plt>
jmp    1371 <parseLine+0x1d1>
mov    -0x10(%rbp),%rdi
lea    0xdef(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1236 <parseLine+0x96>
mov    -0x10(%rbp),%rdi
call   1050 <newContactInfoRecvd@plt>
jmp    136c <parseLine+0x1cc>
mov    -0x10(%rbp),%rdi
lea    0xdcb(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     125e <parseLine+0xbe>
mov    -0x10(%rbp),%rdi
call   1080 <newChallangeRecvd@plt>
jmp    1367 <parseLine+0x1c7>
mov    -0x10(%rbp),%rdi
lea    0xda7(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1286 <parseLine+0xe6>
mov    -0x10(%rbp),%rdi
call   1040 <contactStatusRecvd@plt>
jmp    1362 <parseLine+0x1c2>
mov    -0x10(%rbp),%rdi
lea    0xd83(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12ae <parseLine+0x10e>
mov    -0x10(%rbp),%rdi
call   10c0 <contactOfflineRecvd@plt>
jmp    135d <parseLine+0x1bd>
mov    -0x10(%rbp),%rdi
lea    0xd5f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <parseLine+0x136>
mov    -0x10(%rbp),%rdi
call   1090 <contactOnlineRecvd@plt>
jmp    1358 <parseLine+0x1b8>
mov    -0x10(%rbp),%rdi
lea    0xd3b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12fe <parseLine+0x15e>
mov    -0x10(%rbp),%rdi
call   10b0 <newSwitchBoardSessionRecvd@plt>
jmp    1353 <parseLine+0x1b3>
mov    -0x10(%rbp),%rdi
lea    0xd17(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1326 <parseLine+0x186>
mov    -0x10(%rbp),%rdi
call   10b0 <newSwitchBoardSessionRecvd@plt>
jmp    134e <parseLine+0x1ae>
mov    -0x10(%rbp),%rdi
lea    0xcf3(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1349 <parseLine+0x1a9>
mov    -0x10(%rbp),%rdi
call   1060 <emailsUnreadRecvd@plt>
jmp    134e <parseLine+0x1ae>
jmp    1353 <parseLine+0x1b3>
jmp    1358 <parseLine+0x1b8>
jmp    135d <parseLine+0x1bd>
jmp    1362 <parseLine+0x1c2>
jmp    1367 <parseLine+0x1c7>
jmp    136c <parseLine+0x1cc>
jmp    1371 <parseLine+0x1d1>
jmp    1376 <parseLine+0x1d6>
jmp    1380 <parseLine+0x1e0>
jmp    1380 <parseLine+0x1e0>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseLine>:
push   %rbp
push   %rbx
push   %rax
mov    $0x1,%ebp
test   %rdi,%rdi
je     12c4 <parseLine+0x124>
mov    %rdi,%rbx
lea    0xe45(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     11d7 <parseLine+0x37>
mov    %rbx,%rdi
call   10a0 <contactNumberRecvd@plt>
mov    $0xffffffff,%ebp
jmp    12c4 <parseLine+0x124>
lea    0xe26(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     11f8 <parseLine+0x58>
mov    %rbx,%rdi
call   1030 <newContactGroupRecvd@plt>
jmp    12c4 <parseLine+0x124>
lea    0xe09(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1219 <parseLine+0x79>
mov    %rbx,%rdi
call   1050 <newContactInfoRecvd@plt>
jmp    12c4 <parseLine+0x124>
lea    0xdec(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     123a <parseLine+0x9a>
mov    %rbx,%rdi
call   1080 <newChallangeRecvd@plt>
jmp    12c4 <parseLine+0x124>
lea    0xdcf(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1258 <parseLine+0xb8>
mov    %rbx,%rdi
call   1040 <contactStatusRecvd@plt>
jmp    12c4 <parseLine+0x124>
lea    0xdb5(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1276 <parseLine+0xd6>
mov    %rbx,%rdi
call   10c0 <contactOfflineRecvd@plt>
jmp    12c4 <parseLine+0x124>
lea    0xd9b(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1294 <parseLine+0xf4>
mov    %rbx,%rdi
call   1090 <contactOnlineRecvd@plt>
jmp    12c4 <parseLine+0x124>
lea    0xd81(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    12bc <parseLine+0x11c>
lea    0xd71(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12cd <parseLine+0x12d>
mov    %rbx,%rdi
call   10b0 <newSwitchBoardSessionRecvd@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xd50(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12c4 <parseLine+0x124>
mov    %rbx,%rdi
call   1060 <emailsUnreadRecvd@plt>
jmp    12c4 <parseLine+0x124>

LLVM IR (-O0):
@.str = [4 x i8] c"SYN\00"
@.str.1 = [4 x i8] c"LSG\00"
@.str.2 = [4 x i8] c"LST\00"
@.str.3 = [4 x i8] c"CHL\00"
@.str.4 = [4 x i8] c"ILN\00"
@.str.5 = [4 x i8] c"FLN\00"
@.str.6 = [4 x i8] c"NLN\00"
@.str.7 = [4 x i8] c"XFR\00"
@.str.8 = [4 x i8] c"RNG\00"
@.str.9 = [13 x i8] c"Inbox-Unread\00"
define i32 @parseLine(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = icmp ne i8* %4, null
br i1 %5, label %6, label %86
6: ; preds = %1
%7 = load i8*, i8** %3
%8 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i8*, i8** %3
%12 = call i32 @contactNumberRecvd(i8* %11)
store i32 -1, i32* %2
br label %88
13: ; preds = %6
%14 = load i8*, i8** %3
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i8*, i8** %3
%19 = call i32 @newContactGroupRecvd(i8* %18)
br label %84
20: ; preds = %13
%21 = load i8*, i8** %3
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i8*, i8** %3
%26 = call i32 @newContactInfoRecvd(i8* %25)
br label %83
27: ; preds = %20
%28 = load i8*, i8** %3
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i8*, i8** %3
%33 = call i32 @newChallangeRecvd(i8* %32)
br label %82
34: ; preds = %27
%35 = load i8*, i8** %3
%36 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i8*, i8** %3
%40 = call i32 @contactStatusRecvd(i8* %39)
br label %81
41: ; preds = %34
%42 = load i8*, i8** %3
%43 = call i64 @strcmp(i8* %42, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load i8*, i8** %3
%47 = call i32 @contactOfflineRecvd(i8* %46)
br label %80
48: ; preds = %41
%49 = load i8*, i8** %3
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = load i8*, i8** %3
%54 = call i32 @contactOnlineRecvd(i8* %53)
br label %79
55: ; preds = %48
%56 = load i8*, i8** %3
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = load i8*, i8** %3
%61 = call i32 @newSwitchBoardSessionRecvd(i8* %60)
br label %78
62: ; preds = %55
%63 = load i8*, i8** %3
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = load i8*, i8** %3
%68 = call i32 @newSwitchBoardSessionRecvd(i8* %67)
br label %77
69: ; preds = %62
%70 = load i8*, i8** %3
%71 = call i64 @strcmp(i8* %70, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %69
%74 = load i8*, i8** %3
%75 = call i32 @emailsUnreadRecvd(i8* %74)
br label %76
76: ; preds = %73, %69
br label %77
77: ; preds = %76, %66
br label %78
78: ; preds = %77, %59
br label %79
79: ; preds = %78, %52
br label %80
80: ; preds = %79, %45
br label %81
81: ; preds = %80, %38
br label %82
82: ; preds = %81, %31
br label %83
83: ; preds = %82, %24
br label %84
84: ; preds = %83, %17
br label %85
85: ; preds = %84
br label %87
86: ; preds = %1
br label %87
87: ; preds = %86, %85
store i32 1, i32* %2
br label %88
88: ; preds = %87, %10
%89 = load i32, i32* %2
ret i32 %89
}

LLVM IR (-O2):
@.str = [4 x i8] c"SYN\00"
@.str.1 = [4 x i8] c"LSG\00"
@.str.2 = [4 x i8] c"LST\00"
@.str.3 = [4 x i8] c"CHL\00"
@.str.4 = [4 x i8] c"ILN\00"
@.str.5 = [4 x i8] c"FLN\00"
@.str.6 = [4 x i8] c"NLN\00"
@.str.7 = [4 x i8] c"XFR\00"
@.str.8 = [4 x i8] c"RNG\00"
@.str.9 = [13 x i8] c"Inbox-Unread\00"
define i32 @parseLine(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %53, label %3
3: ; preds = %1
%4 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @contactNumberRecvd(i8* %0)
br label %53
8: ; preds = %3
%9 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %8
%12 = tail call i32 @newContactGroupRecvd(i8* %0)
br label %53
13: ; preds = %8
%14 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %13
%17 = tail call i32 @newContactInfoRecvd(i8* %0)
br label %53
18: ; preds = %13
%19 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %18
%22 = tail call i32 @newChallangeRecvd(i8* %0)
br label %53
23: ; preds = %18
%24 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %23
%27 = tail call i32 @contactStatusRecvd(i8* %0)
br label %53
28: ; preds = %23
%29 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %28
%32 = tail call i32 @contactOfflineRecvd(i8* %0)
br label %53
33: ; preds = %28
%34 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %33
%37 = tail call i32 @contactOnlineRecvd(i8* %0)
br label %53
38: ; preds = %33
%39 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %38
%42 = tail call i32 @newSwitchBoardSessionRecvd(i8* %0)
br label %53
43: ; preds = %38
%44 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = tail call i32 @newSwitchBoardSessionRecvd(i8* %0)
br label %53
48: ; preds = %43
%49 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %53, label %51
51: ; preds = %48
%52 = tail call i32 @emailsUnreadRecvd(i8* %0)
br label %53
53: ; preds = %11, %21, %31, %41, %48, %51, %46, %36, %26, %16, %1, %6
%54 = phi i32 [ -1, %6 ], [ 1, %1 ], [ 1, %16 ], [ 1, %26 ], [ 1, %36 ], [ 1, %46 ], [ 1, %51 ], [ 1, %48 ], [ 1, %41 ], [ 1, %31 ], [ 1, %21 ], [ 1, %11 ]
ret i32 %54
}