#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 **createStringArray();
int /*<<< orphan*/ destroyStringArray(char **);
scalar_t__ isLabel(char *);
int /*<<< orphan*/ splitString(char *, char **, int *);
scalar_t__ strcmp(char *, char *);
int branch_3_check(char *line) {
  char **splitted = createStringArray();
  int n = 0;
  splitString(line, splitted, &n);
  if (n == 3) {
    if (strcmp(splitted[0], "mov") == 0 && strcmp(splitted[1], "r0") == 0 &&
        strcmp(splitted[2], "#0") == 0) {
      destroyStringArray(splitted);
      return 1;
    }
    if (strcmp(splitted[0], "cmp") == 0 && strcmp(splitted[1], "r0") == 0 &&
        strcmp(splitted[2], "#100") == 0) {
      destroyStringArray(splitted);
      return 1;
    }
  }
  if (n == 4) {
    if (strcmp(splitted[0], "add") == 0 && strcmp(splitted[1], "r0") == 0 &&
        strcmp(splitted[2], "r0") == 0 && strcmp(splitted[3], "#1") == 0) {
      destroyStringArray(splitted);
      return 1;
    }
    if (strcmp(splitted[0], "add") == 0 && strcmp(splitted[1], "r5") == 0 &&
        strcmp(splitted[2], "r5") == 0 && strcmp(splitted[3], "#1") == 0) {
      destroyStringArray(splitted);
      return 1;
    }
  }
  if (isLabel(splitted[0])) {
    destroyStringArray(splitted);
    return 1;
  }
  if (n == 2) {
    if (strcmp(splitted[0], "blt") == 0 || strcmp(splitted[0], "bge") == 0 ||
        strcmp(splitted[0], "bne") == 0 || strcmp(splitted[0], "beq") == 0 ||
        strcmp(splitted[0], "b") == 0) {
      destroyStringArray(splitted);
      return 1;
    }
  }
  destroyStringArray(splitted);
  return 0;
}


x86 assembly (clang, -O0):
<branch_3_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1070 <createStringArray@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   1030 <splitString@plt>
cmpl   $0x3,-0x1c(%rbp)
jne    126a <branch_3_check+0x11a>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xe69(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11f7 <branch_3_check+0xa7>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11f7 <branch_3_check+0xa7>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe34(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11f7 <branch_3_check+0xa7>
mov    -0x18(%rbp),%rdi
call   1050 <destroyStringArray@plt>
movl   $0x1,-0x4(%rbp)
jmp    1481 <branch_3_check+0x331>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xe05(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1265 <branch_3_check+0x115>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xde1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1265 <branch_3_check+0x115>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdcd(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1265 <branch_3_check+0x115>
mov    -0x18(%rbp),%rdi
call   1050 <destroyStringArray@plt>
movl   $0x1,-0x4(%rbp)
jmp    1481 <branch_3_check+0x331>
jmp    126a <branch_3_check+0x11a>
cmpl   $0x4,-0x1c(%rbp)
jne    1391 <branch_3_check+0x241>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xd91(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1300 <branch_3_check+0x1b0>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd64(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1300 <branch_3_check+0x1b0>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd46(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1300 <branch_3_check+0x1b0>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xd3b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1300 <branch_3_check+0x1b0>
mov    -0x18(%rbp),%rdi
call   1050 <destroyStringArray@plt>
movl   $0x1,-0x4(%rbp)
jmp    1481 <branch_3_check+0x331>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xd05(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    138c <branch_3_check+0x23c>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcee(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    138c <branch_3_check+0x23c>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcd0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    138c <branch_3_check+0x23c>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xcaf(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    138c <branch_3_check+0x23c>
mov    -0x18(%rbp),%rdi
call   1050 <destroyStringArray@plt>
movl   $0x1,-0x4(%rbp)
jmp    1481 <branch_3_check+0x331>
jmp    1391 <branch_3_check+0x241>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1060 <isLabel@plt>
cmp    $0x0,%rax
je     13bc <branch_3_check+0x26c>
mov    -0x18(%rbp),%rdi
call   1050 <destroyStringArray@plt>
movl   $0x1,-0x4(%rbp)
jmp    1481 <branch_3_check+0x331>
cmpl   $0x2,-0x1c(%rbp)
jne    1471 <branch_3_check+0x321>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xc49(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1457 <branch_3_check+0x307>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xc30(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1457 <branch_3_check+0x307>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xc17(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1457 <branch_3_check+0x307>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xbfe(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1457 <branch_3_check+0x307>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xbe5(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    146c <branch_3_check+0x31c>
mov    -0x18(%rbp),%rdi
call   1050 <destroyStringArray@plt>
movl   $0x1,-0x4(%rbp)
jmp    1481 <branch_3_check+0x331>
jmp    1471 <branch_3_check+0x321>
mov    -0x18(%rbp),%rdi
call   1050 <destroyStringArray@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<branch_3_check>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbp
xor    %eax,%eax
call   1070 <createStringArray@plt>
mov    %rax,%rbx
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%rdx
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <splitString@plt>
mov    0x4(%rsp),%eax
cmp    $0x3,%eax
jne    120d <branch_3_check+0xbd>
mov    (%rbx),%rdi
lea    0xe71(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    11c7 <branch_3_check+0x77>
mov    0x8(%rbx),%rdi
lea    0xe60(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    11c7 <branch_3_check+0x77>
mov    0x10(%rbx),%rdi
lea    0xe4e(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1345 <branch_3_check+0x1f5>
mov    (%rbx),%rdi
lea    0xe39(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    1209 <branch_3_check+0xb9>
mov    0x8(%rbx),%rdi
lea    0xe1e(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    1209 <branch_3_check+0xb9>
mov    0x10(%rbx),%rdi
lea    0xe13(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1345 <branch_3_check+0x1f5>
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
jne    12c4 <branch_3_check+0x174>
mov    (%rbx),%rdi
lea    0xdf3(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    126d <branch_3_check+0x11d>
mov    0x8(%rbx),%rdi
lea    0xdcf(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    126d <branch_3_check+0x11d>
mov    0x10(%rbx),%rdi
lea    0xdba(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    126d <branch_3_check+0x11d>
mov    0x18(%rbx),%rdi
lea    0xdb8(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1345 <branch_3_check+0x1f5>
mov    (%rbx),%rdi
lea    0xd9c(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    12c4 <branch_3_check+0x174>
mov    0x8(%rbx),%rdi
lea    0xd8e(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    12c4 <branch_3_check+0x174>
mov    0x10(%rbx),%rdi
lea    0xd79(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
jne    12c4 <branch_3_check+0x174>
mov    0x18(%rbx),%rdi
lea    0xd61(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1345 <branch_3_check+0x1f5>
mov    (%rbx),%rdi
call   1060 <isLabel@plt>
mov    $0x1,%ebp
test   %rax,%rax
jne    134a <branch_3_check+0x1fa>
cmpl   $0x2,0x4(%rsp)
jne    1341 <branch_3_check+0x1f1>
mov    (%rbx),%rdi
lea    0xd36(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     134a <branch_3_check+0x1fa>
mov    (%rbx),%rdi
lea    0xd26(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     134a <branch_3_check+0x1fa>
mov    (%rbx),%rdi
lea    0xd16(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     134a <branch_3_check+0x1fa>
mov    (%rbx),%rdi
lea    0xd06(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     134a <branch_3_check+0x1fa>
mov    (%rbx),%rdi
lea    0xcf6(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     134a <branch_3_check+0x1fa>
xor    %ebp,%ebp
jmp    134a <branch_3_check+0x1fa>
mov    $0x1,%ebp
mov    %rbx,%rdi
call   1050 <destroyStringArray@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"mov\00"
@.str.1 = [3 x i8] c"r0\00"
@.str.2 = [3 x i8] c"\00"
@.str.3 = [4 x i8] c"cmp\00"
@.str.4 = [5 x i8] c"\00"
@.str.5 = [4 x i8] c"add\00"
@.str.6 = [3 x i8] c"\00"
@.str.7 = [3 x i8] c"r5\00"
@.str.8 = [4 x i8] c"blt\00"
@.str.9 = [4 x i8] c"bge\00"
@.str.10 = [4 x i8] c"bne\00"
@.str.11 = [4 x i8] c"beq\00"
@.str.12 = [2 x i8] c"b\00"
define i32 @branch_3_check(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8**
%5 = alloca i32
store i8* %0, i8** %3
%6 = call i8** (...) @createStringArray()
store i8** %6, i8*** %4
store i32 0, i32* %5
%7 = load i8*, i8** %3
%8 = load i8**, i8*** %4
%9 = call i32 @splitString(i8* %7, i8** %8, i32* %5)
%10 = load i32, i32* %5
%11 = icmp eq i32 %10, 3
br i1 %11, label %12, label %55
12: ; preds = %1
%13 = load i8**, i8*** %4
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %33
18: ; preds = %12
%19 = load i8**, i8*** %4
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %33
24: ; preds = %18
%25 = load i8**, i8*** %4
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = load i8*, i8** %26
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load i8**, i8*** %4
%32 = call i32 @destroyStringArray(i8** %31)
store i32 1, i32* %2
br label %162
33: ; preds = %24, %18, %12
%34 = load i8**, i8*** %4
%35 = getelementptr inbounds i8*, i8** %34, i64 0
%36 = load i8*, i8** %35
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %54
39: ; preds = %33
%40 = load i8**, i8*** %4
%41 = getelementptr inbounds i8*, i8** %40, i64 1
%42 = load i8*, i8** %41
%43 = call i64 @strcmp(i8* %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %54
45: ; preds = %39
%46 = load i8**, i8*** %4
%47 = getelementptr inbounds i8*, i8** %46, i64 2
%48 = load i8*, i8** %47
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %45
%52 = load i8**, i8*** %4
%53 = call i32 @destroyStringArray(i8** %52)
store i32 1, i32* %2
br label %162
54: ; preds = %45, %39, %33
br label %55
55: ; preds = %54, %1
%56 = load i32, i32* %5
%57 = icmp eq i32 %56, 4
br i1 %57, label %58, label %113
58: ; preds = %55
%59 = load i8**, i8*** %4
%60 = getelementptr inbounds i8*, i8** %59, i64 0
%61 = load i8*, i8** %60
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %85
64: ; preds = %58
%65 = load i8**, i8*** %4
%66 = getelementptr inbounds i8*, i8** %65, i64 1
%67 = load i8*, i8** %66
%68 = call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %85
70: ; preds = %64
%71 = load i8**, i8*** %4
%72 = getelementptr inbounds i8*, i8** %71, i64 2
%73 = load i8*, i8** %72
%74 = call i64 @strcmp(i8* %73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %85
76: ; preds = %70
%77 = load i8**, i8*** %4
%78 = getelementptr inbounds i8*, i8** %77, i64 3
%79 = load i8*, i8** %78
%80 = call i64 @strcmp(i8* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %85
82: ; preds = %76
%83 = load i8**, i8*** %4
%84 = call i32 @destroyStringArray(i8** %83)
store i32 1, i32* %2
br label %162
85: ; preds = %76, %70, %64, %58
%86 = load i8**, i8*** %4
%87 = getelementptr inbounds i8*, i8** %86, i64 0
%88 = load i8*, i8** %87
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %112
91: ; preds = %85
%92 = load i8**, i8*** %4
%93 = getelementptr inbounds i8*, i8** %92, i64 1
%94 = load i8*, i8** %93
%95 = call i64 @strcmp(i8* %94, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %112
97: ; preds = %91
%98 = load i8**, i8*** %4
%99 = getelementptr inbounds i8*, i8** %98, i64 2
%100 = load i8*, i8** %99
%101 = call i64 @strcmp(i8* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %112
103: ; preds = %97
%104 = load i8**, i8*** %4
%105 = getelementptr inbounds i8*, i8** %104, i64 3
%106 = load i8*, i8** %105
%107 = call i64 @strcmp(i8* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %103
%110 = load i8**, i8*** %4
%111 = call i32 @destroyStringArray(i8** %110)
store i32 1, i32* %2
br label %162
112: ; preds = %103, %97, %91, %85
br label %113
113: ; preds = %112, %55
%114 = load i8**, i8*** %4
%115 = getelementptr inbounds i8*, i8** %114, i64 0
%116 = load i8*, i8** %115
%117 = call i64 @isLabel(i8* %116)
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %113
%120 = load i8**, i8*** %4
%121 = call i32 @destroyStringArray(i8** %120)
store i32 1, i32* %2
br label %162
122: ; preds = %113
%123 = load i32, i32* %5
%124 = icmp eq i32 %123, 2
br i1 %124, label %125, label %159
125: ; preds = %122
%126 = load i8**, i8*** %4
%127 = getelementptr inbounds i8*, i8** %126, i64 0
%128 = load i8*, i8** %127
%129 = call i64 @strcmp(i8* %128, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %155, label %131
131: ; preds = %125
%132 = load i8**, i8*** %4
%133 = getelementptr inbounds i8*, i8** %132, i64 0
%134 = load i8*, i8** %133
%135 = call i64 @strcmp(i8* %134, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%136 = icmp eq i64 %135, 0
br i1 %136, label %155, label %137
137: ; preds = %131
%138 = load i8**, i8*** %4
%139 = getelementptr inbounds i8*, i8** %138, i64 0
%140 = load i8*, i8** %139
%141 = call i64 @strcmp(i8* %140, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%142 = icmp eq i64 %141, 0
br i1 %142, label %155, label %143
143: ; preds = %137
%144 = load i8**, i8*** %4
%145 = getelementptr inbounds i8*, i8** %144, i64 0
%146 = load i8*, i8** %145
%147 = call i64 @strcmp(i8* %146, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%148 = icmp eq i64 %147, 0
br i1 %148, label %155, label %149
149: ; preds = %143
%150 = load i8**, i8*** %4
%151 = getelementptr inbounds i8*, i8** %150, i64 0
%152 = load i8*, i8** %151
%153 = call i64 @strcmp(i8* %152, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%154 = icmp eq i64 %153, 0
br i1 %154, label %155, label %158
155: ; preds = %149, %143, %137, %131, %125
%156 = load i8**, i8*** %4
%157 = call i32 @destroyStringArray(i8** %156)
store i32 1, i32* %2
br label %162
158: ; preds = %149
br label %159
159: ; preds = %158, %122
%160 = load i8**, i8*** %4
%161 = call i32 @destroyStringArray(i8** %160)
store i32 0, i32* %2
br label %162
162: ; preds = %159, %155, %119, %109, %82, %51, %30
%163 = load i32, i32* %2
ret i32 %163
}

LLVM IR (-O2):
@.str = [4 x i8] c"mov\00"
@.str.1 = [3 x i8] c"r0\00"
@.str.2 = [3 x i8] c"\00"
@.str.3 = [4 x i8] c"cmp\00"
@.str.4 = [5 x i8] c"\00"
@.str.5 = [4 x i8] c"add\00"
@.str.6 = [3 x i8] c"\00"
@.str.7 = [3 x i8] c"r5\00"
@.str.8 = [4 x i8] c"blt\00"
@.str.9 = [4 x i8] c"bge\00"
@.str.10 = [4 x i8] c"bne\00"
@.str.11 = [4 x i8] c"beq\00"
@.str.12 = [2 x i8] c"b\00"
define i32 @branch_3_check(i8* %0) {
%2 = alloca i32
%3 = tail call i8** (...) @createStringArray()
%4 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%5 = call i32 @splitString(i8* %0, i8** %3, i32* %2)
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 3
br i1 %7, label %8, label %38
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %8
%13 = getelementptr inbounds i8*, i8** %3, i64 1
%14 = load i8*, i8** %13
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = getelementptr inbounds i8*, i8** %3, i64 2
%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 eq i64 %20, 0
br i1 %21, label %107, label %22
22: ; preds = %17, %12, %8
%23 = load i8*, i8** %3
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %36
26: ; preds = %22
%27 = getelementptr inbounds i8*, i8** %3, i64 1
%28 = load i8*, i8** %27
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %26
%32 = getelementptr inbounds i8*, i8** %3, i64 2
%33 = load i8*, i8** %32
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %107, label %36
36: ; preds = %31, %26, %22
%37 = load i32, i32* %2
br label %38
38: ; preds = %36, %1
%39 = phi i32 [ %37, %36 ], [ %6, %1 ]
%40 = icmp eq i32 %39, 4
br i1 %40, label %41, label %79
41: ; preds = %38
%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 eq i64 %43, 0
br i1 %44, label %45, label %60
45: ; preds = %41
%46 = getelementptr inbounds i8*, i8** %3, i64 1
%47 = load i8*, i8** %46
%48 = call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %60
50: ; preds = %45
%51 = getelementptr inbounds i8*, i8** %3, i64 2
%52 = load i8*, i8** %51
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %50
%56 = getelementptr inbounds i8*, i8** %3, i64 3
%57 = load i8*, i8** %56
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %107, label %60
60: ; preds = %55, %50, %45, %41
%61 = load i8*, i8** %3
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %79
64: ; preds = %60
%65 = getelementptr inbounds i8*, i8** %3, i64 1
%66 = load i8*, i8** %65
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %79
69: ; preds = %64
%70 = getelementptr inbounds i8*, i8** %3, i64 2
%71 = load i8*, i8** %70
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %79
74: ; preds = %69
%75 = getelementptr inbounds i8*, i8** %3, i64 3
%76 = load i8*, i8** %75
%77 = call i64 @strcmp(i8* %76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %107, label %79
79: ; preds = %60, %64, %69, %74, %38
%80 = load i8*, i8** %3
%81 = call i64 @isLabel(i8* %80)
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %107
83: ; preds = %79
%84 = load i32, i32* %2
%85 = icmp eq i32 %84, 2
br i1 %85, label %86, label %106
86: ; preds = %83
%87 = load i8*, i8** %3
%88 = call i64 @strcmp(i8* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %107, label %90
90: ; preds = %86
%91 = load i8*, i8** %3
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %107, label %94
94: ; preds = %90
%95 = load i8*, i8** %3
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %107, label %98
98: ; preds = %94
%99 = load i8*, i8** %3
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %107, label %102
102: ; preds = %98
%103 = load i8*, i8** %3
%104 = call i64 @strcmp(i8* %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %107, label %106
106: ; preds = %102, %83
br label %107
107: ; preds = %86, %90, %94, %98, %102, %79, %74, %55, %31, %17, %106
%108 = phi i32 [ 0, %106 ], [ 1, %17 ], [ 1, %31 ], [ 1, %55 ], [ 1, %74 ], [ 1, %79 ], [ 1, %102 ], [ 1, %98 ], [ 1, %94 ], [ 1, %90 ], [ 1, %86 ]
%109 = call i32 @destroyStringArray(i8** %3)
ret i32 %108
}