#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__ cg_create(char *);
int /*<<< orphan*/ cg_destroy(char *);
scalar_t__ cg_enter_current(char const *);
char *cg_name(char const *, char *);
scalar_t__ cg_read_strcmp(char *, char *, char *);
int /*<<< orphan*/ free(char *);
int test_cgcore_populated(const char *root) {
  int ret = 1;
  char *cg_test_a = NULL, *cg_test_b = NULL;
  char *cg_test_c = NULL, *cg_test_d = NULL;
  cg_test_a = cg_name(root, "cg_test_a");
  cg_test_b = cg_name(root, "cg_test_a/cg_test_b");
  cg_test_c = cg_name(root, "cg_test_a/cg_test_b/cg_test_c");
  cg_test_d = cg_name(root, "cg_test_a/cg_test_b/cg_test_d");
  if (!cg_test_a || !cg_test_b || !cg_test_c || !cg_test_d)
    goto cleanup;
  if (cg_create(cg_test_a))
    goto cleanup;
  if (cg_create(cg_test_b))
    goto cleanup;
  if (cg_create(cg_test_c))
    goto cleanup;
  if (cg_create(cg_test_d))
    goto cleanup;
  if (cg_enter_current(cg_test_c))
    goto cleanup;
  if (cg_read_strcmp(cg_test_a, "cgroup.events", "populated 1\n"))
    goto cleanup;
  if (cg_read_strcmp(cg_test_b, "cgroup.events", "populated 1\n"))
    goto cleanup;
  if (cg_read_strcmp(cg_test_c, "cgroup.events", "populated 1\n"))
    goto cleanup;
  if (cg_read_strcmp(cg_test_d, "cgroup.events", "populated 0\n"))
    goto cleanup;
  if (cg_enter_current(root))
    goto cleanup;
  if (cg_read_strcmp(cg_test_a, "cgroup.events", "populated 0\n"))
    goto cleanup;
  if (cg_read_strcmp(cg_test_b, "cgroup.events", "populated 0\n"))
    goto cleanup;
  if (cg_read_strcmp(cg_test_c, "cgroup.events", "populated 0\n"))
    goto cleanup;
  if (cg_read_strcmp(cg_test_d, "cgroup.events", "populated 0\n"))
    goto cleanup;
  ret = 0;
cleanup:
  if (cg_test_d)
    cg_destroy(cg_test_d);
  if (cg_test_c)
    cg_destroy(cg_test_c);
  if (cg_test_b)
    cg_destroy(cg_test_b);
  if (cg_test_a)
    cg_destroy(cg_test_a);
  free(cg_test_d);
  free(cg_test_c);
  free(cg_test_b);
  free(cg_test_a);
  return ret;
}


x86 assembly (clang, -O0):
<test_cgcore_populated>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe62(%rip),%rsi
call   1050 <cg_name@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe58(%rip),%rsi
call   1050 <cg_name@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe58(%rip),%rsi
call   1050 <cg_name@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe62(%rip),%rsi
call   1050 <cg_name@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     120f <test_cgcore_populated+0xaf>
cmpq   $0x0,-0x20(%rbp)
je     120f <test_cgcore_populated+0xaf>
cmpq   $0x0,-0x28(%rbp)
je     120f <test_cgcore_populated+0xaf>
cmpq   $0x0,-0x30(%rbp)
jne    1214 <test_cgcore_populated+0xb4>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x18(%rbp),%rdi
call   1060 <cg_create@plt>
cmp    $0x0,%rax
je     122c <test_cgcore_populated+0xcc>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x20(%rbp),%rdi
call   1060 <cg_create@plt>
cmp    $0x0,%rax
je     1244 <test_cgcore_populated+0xe4>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x28(%rbp),%rdi
call   1060 <cg_create@plt>
cmp    $0x0,%rax
je     125c <test_cgcore_populated+0xfc>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x30(%rbp),%rdi
call   1060 <cg_create@plt>
cmp    $0x0,%rax
je     1274 <test_cgcore_populated+0x114>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x28(%rbp),%rdi
call   1080 <cg_enter_current@plt>
cmp    $0x0,%rax
je     128c <test_cgcore_populated+0x12c>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x18(%rbp),%rdi
lea    0xdc3(%rip),%rsi
lea    0xdca(%rip),%rdx
call   1070 <cg_read_strcmp@plt>
cmp    $0x0,%rax
je     12b2 <test_cgcore_populated+0x152>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x20(%rbp),%rdi
lea    0xd9d(%rip),%rsi
lea    0xda4(%rip),%rdx
call   1070 <cg_read_strcmp@plt>
cmp    $0x0,%rax
je     12d8 <test_cgcore_populated+0x178>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x28(%rbp),%rdi
lea    0xd77(%rip),%rsi
lea    0xd7e(%rip),%rdx
call   1070 <cg_read_strcmp@plt>
cmp    $0x0,%rax
je     12fe <test_cgcore_populated+0x19e>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x30(%rbp),%rdi
lea    0xd51(%rip),%rsi
lea    0xd65(%rip),%rdx
call   1070 <cg_read_strcmp@plt>
cmp    $0x0,%rax
je     1324 <test_cgcore_populated+0x1c4>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x8(%rbp),%rdi
call   1080 <cg_enter_current@plt>
cmp    $0x0,%rax
je     133c <test_cgcore_populated+0x1dc>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x18(%rbp),%rdi
lea    0xd13(%rip),%rsi
lea    0xd27(%rip),%rdx
call   1070 <cg_read_strcmp@plt>
cmp    $0x0,%rax
je     1362 <test_cgcore_populated+0x202>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x20(%rbp),%rdi
lea    0xced(%rip),%rsi
lea    0xd01(%rip),%rdx
call   1070 <cg_read_strcmp@plt>
cmp    $0x0,%rax
je     1388 <test_cgcore_populated+0x228>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x28(%rbp),%rdi
lea    0xcc7(%rip),%rsi
lea    0xcdb(%rip),%rdx
call   1070 <cg_read_strcmp@plt>
cmp    $0x0,%rax
je     13ae <test_cgcore_populated+0x24e>
jmp    13db <test_cgcore_populated+0x27b>
mov    -0x30(%rbp),%rdi
lea    0xca1(%rip),%rsi
lea    0xcb5(%rip),%rdx
call   1070 <cg_read_strcmp@plt>
cmp    $0x0,%rax
je     13d4 <test_cgcore_populated+0x274>
jmp    13db <test_cgcore_populated+0x27b>
movl   $0x0,-0xc(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     13ef <test_cgcore_populated+0x28f>
mov    -0x30(%rbp),%rdi
call   1030 <cg_destroy@plt>
cmpq   $0x0,-0x28(%rbp)
je     1403 <test_cgcore_populated+0x2a3>
mov    -0x28(%rbp),%rdi
call   1030 <cg_destroy@plt>
cmpq   $0x0,-0x20(%rbp)
je     1417 <test_cgcore_populated+0x2b7>
mov    -0x20(%rbp),%rdi
call   1030 <cg_destroy@plt>
cmpq   $0x0,-0x18(%rbp)
je     142b <test_cgcore_populated+0x2cb>
mov    -0x18(%rbp),%rdi
call   1030 <cg_destroy@plt>
mov    -0x30(%rbp),%rdi
call   1040 <free@plt>
mov    -0x28(%rbp),%rdi
call   1040 <free@plt>
mov    -0x20(%rbp),%rdi
call   1040 <free@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
mov    -0xc(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_cgcore_populated>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbp
lea    0xe8b(%rip),%rsi
call   1050 <cg_name@plt>
mov    %rax,%rbx
lea    0xe86(%rip),%rsi
mov    %rbp,%rdi
call   1050 <cg_name@plt>
mov    %rax,%r14
lea    0xe88(%rip),%rsi
mov    %rbp,%rdi
call   1050 <cg_name@plt>
mov    %rax,%r15
lea    0xe94(%rip),%rsi
mov    %rbp,%rdi
call   1050 <cg_name@plt>
mov    %rax,%r13
mov    $0x1,%r12d
test   %rbx,%rbx
je     1328 <test_cgcore_populated+0x1c8>
test   %r14,%r14
je     1328 <test_cgcore_populated+0x1c8>
test   %r15,%r15
je     1328 <test_cgcore_populated+0x1c8>
test   %r13,%r13
je     1328 <test_cgcore_populated+0x1c8>
mov    %rbx,%rdi
call   1060 <cg_create@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
mov    %r14,%rdi
call   1060 <cg_create@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
mov    %r15,%rdi
call   1060 <cg_create@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
mov    %r13,%rdi
call   1060 <cg_create@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
mov    %r15,%rdi
call   1080 <cg_enter_current@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
lea    0xe21(%rip),%rsi
lea    0xe28(%rip),%rdx
mov    %rbx,%rdi
call   1070 <cg_read_strcmp@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
lea    0xe02(%rip),%rsi
lea    0xe09(%rip),%rdx
mov    %r14,%rdi
call   1070 <cg_read_strcmp@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
lea    0xde3(%rip),%rsi
lea    0xdea(%rip),%rdx
mov    %r15,%rdi
call   1070 <cg_read_strcmp@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
lea    0xdc4(%rip),%rsi
lea    0xdd8(%rip),%rdx
mov    %r13,%rdi
call   1070 <cg_read_strcmp@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
mov    %rbp,%rdi
call   1080 <cg_enter_current@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
lea    0xd9c(%rip),%rsi
lea    0xdb0(%rip),%rdx
mov    %rbx,%rdi
call   1070 <cg_read_strcmp@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
lea    0xd81(%rip),%rsi
lea    0xd95(%rip),%rdx
mov    %r14,%rdi
call   1070 <cg_read_strcmp@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
lea    0xd66(%rip),%rsi
lea    0xd7a(%rip),%rdx
mov    %r15,%rdi
call   1070 <cg_read_strcmp@plt>
test   %rax,%rax
jne    1328 <test_cgcore_populated+0x1c8>
lea    0xd4b(%rip),%rsi
lea    0xd5f(%rip),%rdx
mov    %r13,%rdi
call   1070 <cg_read_strcmp@plt>
xor    %r12d,%r12d
test   %rax,%rax
setne  %r12b
test   %r13,%r13
je     1335 <test_cgcore_populated+0x1d5>
mov    %r13,%rdi
call   1030 <cg_destroy@plt>
test   %r15,%r15
je     1342 <test_cgcore_populated+0x1e2>
mov    %r15,%rdi
call   1030 <cg_destroy@plt>
test   %r14,%r14
je     134f <test_cgcore_populated+0x1ef>
mov    %r14,%rdi
call   1030 <cg_destroy@plt>
test   %rbx,%rbx
je     135c <test_cgcore_populated+0x1fc>
mov    %rbx,%rdi
call   1030 <cg_destroy@plt>
mov    %r13,%rdi
call   1040 <free@plt>
mov    %r15,%rdi
call   1040 <free@plt>
mov    %r14,%rdi
call   1040 <free@plt>
mov    %rbx,%rdi
call   1040 <free@plt>
mov    %r12d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"cg_test_a\00"
@.str.1 = [20 x i8] c"cg_test_a/cg_test_b\00"
@.str.2 = [30 x i8] c"cg_test_a/cg_test_b/cg_test_c\00"
@.str.3 = [30 x i8] c"cg_test_a/cg_test_b/cg_test_d\00"
@.str.4 = [14 x i8] c"cgroup.events\00"
@.str.5 = [13 x i8] c"populated 1\0A\00"
@.str.6 = [13 x i8] c"populated 0\0A\00"
define i32 @test_cgcore_populated(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
store i8* %0, i8** %2
store i32 1, i32* %3
store i8* null, i8** %4
store i8* null, i8** %5
store i8* null, i8** %6
store i8* null, i8** %7
%8 = load i8*, i8** %2
%9 = call i8* @cg_name(i8* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i8* %9, i8** %4
%10 = load i8*, i8** %2
%11 = call i8* @cg_name(i8* %10, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
store i8* %11, i8** %5
%12 = load i8*, i8** %2
%13 = call i8* @cg_name(i8* %12, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
store i8* %13, i8** %6
%14 = load i8*, i8** %2
%15 = call i8* @cg_name(i8* %14, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
store i8* %15, i8** %7
%16 = load i8*, i8** %4
%17 = icmp ne i8* %16, null
br i1 %17, label %18, label %27
18: ; preds = %1
%19 = load i8*, i8** %5
%20 = icmp ne i8* %19, null
br i1 %20, label %21, label %27
21: ; preds = %18
%22 = load i8*, i8** %6
%23 = icmp ne i8* %22, null
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i8*, i8** %7
%26 = icmp ne i8* %25, null
br i1 %26, label %28, label %27
27: ; preds = %24, %21, %18, %1
br label %99
28: ; preds = %24
%29 = load i8*, i8** %4
%30 = call i64 @cg_create(i8* %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
br label %99
33: ; preds = %28
%34 = load i8*, i8** %5
%35 = call i64 @cg_create(i8* %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
br label %99
38: ; preds = %33
%39 = load i8*, i8** %6
%40 = call i64 @cg_create(i8* %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
br label %99
43: ; preds = %38
%44 = load i8*, i8** %7
%45 = call i64 @cg_create(i8* %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
br label %99
48: ; preds = %43
%49 = load i8*, i8** %6
%50 = call i64 @cg_enter_current(i8* %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
br label %99
53: ; preds = %48
%54 = load i8*, i8** %4
%55 = call i64 @cg_read_strcmp(i8* %54, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
br label %99
58: ; preds = %53
%59 = load i8*, i8** %5
%60 = call i64 @cg_read_strcmp(i8* %59, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %58
br label %99
63: ; preds = %58
%64 = load i8*, i8** %6
%65 = call i64 @cg_read_strcmp(i8* %64, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %63
br label %99
68: ; preds = %63
%69 = load i8*, i8** %7
%70 = call i64 @cg_read_strcmp(i8* %69, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %68
br label %99
73: ; preds = %68
%74 = load i8*, i8** %2
%75 = call i64 @cg_enter_current(i8* %74)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %78
77: ; preds = %73
br label %99
78: ; preds = %73
%79 = load i8*, i8** %4
%80 = call i64 @cg_read_strcmp(i8* %79, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %78
br label %99
83: ; preds = %78
%84 = load i8*, i8** %5
%85 = call i64 @cg_read_strcmp(i8* %84, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %83
br label %99
88: ; preds = %83
%89 = load i8*, i8** %6
%90 = call i64 @cg_read_strcmp(i8* %89, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %88
br label %99
93: ; preds = %88
%94 = load i8*, i8** %7
%95 = call i64 @cg_read_strcmp(i8* %94, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%96 = icmp ne i64 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %93
br label %99
98: ; preds = %93
store i32 0, i32* %3
br label %99
99: ; preds = %98, %97, %92, %87, %82, %77, %72, %67, %62, %57, %52, %47, %42, %37, %32, %27
%100 = load i8*, i8** %7
%101 = icmp ne i8* %100, null
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load i8*, i8** %7
%104 = call i32 @cg_destroy(i8* %103)
br label %105
105: ; preds = %102, %99
%106 = load i8*, i8** %6
%107 = icmp ne i8* %106, null
br i1 %107, label %108, label %111
108: ; preds = %105
%109 = load i8*, i8** %6
%110 = call i32 @cg_destroy(i8* %109)
br label %111
111: ; preds = %108, %105
%112 = load i8*, i8** %5
%113 = icmp ne i8* %112, null
br i1 %113, label %114, label %117
114: ; preds = %111
%115 = load i8*, i8** %5
%116 = call i32 @cg_destroy(i8* %115)
br label %117
117: ; preds = %114, %111
%118 = load i8*, i8** %4
%119 = icmp ne i8* %118, null
br i1 %119, label %120, label %123
120: ; preds = %117
%121 = load i8*, i8** %4
%122 = call i32 @cg_destroy(i8* %121)
br label %123
123: ; preds = %120, %117
%124 = load i8*, i8** %7
%125 = call i32 @free(i8* %124)
%126 = load i8*, i8** %6
%127 = call i32 @free(i8* %126)
%128 = load i8*, i8** %5
%129 = call i32 @free(i8* %128)
%130 = load i8*, i8** %4
%131 = call i32 @free(i8* %130)
%132 = load i32, i32* %3
ret i32 %132
}

LLVM IR (-O2):
@.str = [10 x i8] c"cg_test_a\00"
@.str.1 = [20 x i8] c"cg_test_a/cg_test_b\00"
@.str.2 = [30 x i8] c"cg_test_a/cg_test_b/cg_test_c\00"
@.str.3 = [30 x i8] c"cg_test_a/cg_test_b/cg_test_d\00"
@.str.4 = [14 x i8] c"cgroup.events\00"
@.str.5 = [13 x i8] c"populated 1\0A\00"
@.str.6 = [13 x i8] c"populated 0\0A\00"
define i32 @test_cgcore_populated(i8* %0) {
%2 = tail call i8* @cg_name(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = tail call i8* @cg_name(i8* %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i8* @cg_name(i8* %0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i8* @cg_name(i8* %0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%6 = icmp ne i8* %2, null
%7 = icmp ne i8* %3, null
%8 = select i1 %6, i1 %7, i1 false
%9 = icmp ne i8* %4, null
%10 = select i1 %8, i1 %9, i1 false
%11 = icmp ne i8* %5, null
%12 = select i1 %10, i1 %11, i1 false
br i1 %12, label %13, label %56
13: ; preds = %1
%14 = tail call i64 @cg_create(i8* %2)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %56
16: ; preds = %13
%17 = tail call i64 @cg_create(i8* %3)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %56
19: ; preds = %16
%20 = tail call i64 @cg_create(i8* %4)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %56
22: ; preds = %19
%23 = tail call i64 @cg_create(i8* %5)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %56
25: ; preds = %22
%26 = tail call i64 @cg_enter_current(i8* %4)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %56
28: ; preds = %25
%29 = tail call i64 @cg_read_strcmp(i8* %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %56
31: ; preds = %28
%32 = tail call i64 @cg_read_strcmp(i8* %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %56
34: ; preds = %31
%35 = tail call i64 @cg_read_strcmp(i8* %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %56
37: ; preds = %34
%38 = tail call i64 @cg_read_strcmp(i8* %5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %56
40: ; preds = %37
%41 = tail call i64 @cg_enter_current(i8* %0)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %56
43: ; preds = %40
%44 = tail call i64 @cg_read_strcmp(i8* %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %56
46: ; preds = %43
%47 = tail call i64 @cg_read_strcmp(i8* %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %56
49: ; preds = %46
%50 = tail call i64 @cg_read_strcmp(i8* %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %49
%53 = tail call i64 @cg_read_strcmp(i8* %5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%54 = icmp ne i64 %53, 0
%55 = zext i1 %54 to i32
br label %56
56: ; preds = %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %1
%57 = phi i32 [ 1, %13 ], [ 1, %16 ], [ 1, %19 ], [ 1, %22 ], [ 1, %25 ], [ 1, %28 ], [ 1, %31 ], [ 1, %34 ], [ 1, %37 ], [ 1, %40 ], [ 1, %43 ], [ 1, %46 ], [ 1, %49 ], [ 1, %1 ], [ %55, %52 ]
br i1 %11, label %58, label %60
58: ; preds = %56
%59 = tail call i32 @cg_destroy(i8* %5)
br label %60
60: ; preds = %58, %56
br i1 %9, label %61, label %63
61: ; preds = %60
%62 = tail call i32 @cg_destroy(i8* %4)
br label %63
63: ; preds = %61, %60
br i1 %7, label %64, label %66
64: ; preds = %63
%65 = tail call i32 @cg_destroy(i8* %3)
br label %66
66: ; preds = %64, %63
br i1 %6, label %67, label %69
67: ; preds = %66
%68 = tail call i32 @cg_destroy(i8* %2)
br label %69
69: ; preds = %67, %66
%70 = tail call i32 @free(i8* %5)
%71 = tail call i32 @free(i8* %4)
%72 = tail call i32 @free(i8* %3)
%73 = tail call i32 @free(i8* %2)
ret i32 %57
}