#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__ json_getBoolean(char *, int, int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
void test_json_getBoolean() {
  puts("Test json_getBoolean");
  puts("======================================================================="
       "=========");
  char *str[100] = {"abcfalseabc", "0ee", "true", "false", "tabc",
                    "fabc",        "",    "t",    "f"};
  int i, startIndex, endIndex;
  for (i = 0; str[i] != NULL; i++) {
    startIndex = 0;
    if (json_getBoolean(str[i], startIndex, &endIndex) == 0) {
      printf("%d. %s [%d..%d] is boolean\n\n", i + 1, str[i], startIndex,
             endIndex);
    } else {
      printf("%d. %s is not boolean\n\n", i + 1, str[i]);
    }
  }
  char *s = str[0];
  startIndex = 3;
  if (json_getBoolean(s, startIndex, &endIndex) == 0) {
    printf("%s [%d..%d] is boolean\n\n", s, startIndex, endIndex);
  } else {
    printf("%s [%d..] is not boolean\n\n", s, startIndex);
  }
  puts("======================================================================="
       "=========\n");
}


x86 assembly (clang, -O0):
<test_json_getBoolean>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
lea    -0x320(%rbp),%rdi
lea    0x298f(%rip),%rsi
mov    $0x320,%edx
call   1060 <memcpy@plt>
movl   $0x0,-0x324(%rbp)
movslq -0x324(%rbp),%rax
cmpq   $0x0,-0x320(%rbp,%rax,8)
je     1247 <test_json_getBoolean+0x107>
movl   $0x0,-0x328(%rbp)
movslq -0x324(%rbp),%rax
mov    -0x320(%rbp,%rax,8),%rdi
ff
mov    -0x328(%rbp),%esi
lea    -0x32c(%rbp),%rdx
call   1050 <json_getBoolean@plt>
cmp    $0x0,%rax
jne    1208 <test_json_getBoolean+0xc8>
mov    -0x324(%rbp),%esi
add    $0x1,%esi
movslq -0x324(%rbp),%rax
mov    -0x320(%rbp,%rax,8),%rdx
ff
mov    -0x328(%rbp),%ecx
mov    -0x32c(%rbp),%r8d
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    122e <test_json_getBoolean+0xee>
mov    -0x324(%rbp),%esi
add    $0x1,%esi
movslq -0x324(%rbp),%rax
mov    -0x320(%rbp,%rax,8),%rdx
ff
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1233 <test_json_getBoolean+0xf3>
mov    -0x324(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x324(%rbp)
jmp    1185 <test_json_getBoolean+0x45>
mov    -0x320(%rbp),%rax
mov    %rax,-0x338(%rbp)
movl   $0x3,-0x328(%rbp)
mov    -0x338(%rbp),%rdi
mov    -0x328(%rbp),%esi
lea    -0x32c(%rbp),%rdx
call   1050 <json_getBoolean@plt>
cmp    $0x0,%rax
jne    12a8 <test_json_getBoolean+0x168>
mov    -0x338(%rbp),%rsi
mov    -0x328(%rbp),%edx
mov    -0x32c(%rbp),%ecx
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c3 <test_json_getBoolean+0x183>
mov    -0x338(%rbp),%rsi
mov    -0x328(%rbp),%edx
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe15(%rip),%rdi
call   1030 <puts@plt>
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_json_getBoolean>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
lea    0xed1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     117d <test_json_getBoolean+0x4d>
lea    0xf44(%rip),%rdi
lea    0xef7(%rip),%rdx
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    119e <test_json_getBoolean+0x6e>
mov    0x4(%rsp),%r8d
lea    0xf06(%rip),%rdi
lea    0xed6(%rip),%rdx
mov    $0x1,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecd(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     11d2 <test_json_getBoolean+0xa2>
lea    0xeef(%rip),%rdi
lea    0xeae(%rip),%rdx
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    11f3 <test_json_getBoolean+0xc3>
mov    0x4(%rsp),%r8d
lea    0xeb1(%rip),%rdi
lea    0xe8d(%rip),%rdx
mov    $0x2,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7c(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     1227 <test_json_getBoolean+0xf7>
lea    0xe9a(%rip),%rdi
lea    0xe5d(%rip),%rdx
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1248 <test_json_getBoolean+0x118>
mov    0x4(%rsp),%r8d
lea    0xe5c(%rip),%rdi
lea    0xe3c(%rip),%rdx
mov    $0x3,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe2c(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     127c <test_json_getBoolean+0x14c>
lea    0xe45(%rip),%rdi
lea    0xe0d(%rip),%rdx
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    129d <test_json_getBoolean+0x16d>
mov    0x4(%rsp),%r8d
lea    0xe07(%rip),%rdi
lea    0xdec(%rip),%rdx
mov    $0x4,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xddd(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     12d1 <test_json_getBoolean+0x1a1>
lea    0xdf0(%rip),%rdi
lea    0xdbe(%rip),%rdx
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12f2 <test_json_getBoolean+0x1c2>
mov    0x4(%rsp),%r8d
lea    0xdb2(%rip),%rdi
lea    0xd9d(%rip),%rdx
mov    $0x5,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd8d(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     1326 <test_json_getBoolean+0x1f6>
lea    0xd9b(%rip),%rdi
lea    0xd6e(%rip),%rdx
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1347 <test_json_getBoolean+0x217>
mov    0x4(%rsp),%r8d
lea    0xd5d(%rip),%rdi
lea    0xd4d(%rip),%rdx
mov    $0x6,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd5d(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     137b <test_json_getBoolean+0x24b>
lea    0xd46(%rip),%rdi
lea    0xd3e(%rip),%rdx
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    139c <test_json_getBoolean+0x26c>
mov    0x4(%rsp),%r8d
lea    0xd08(%rip),%rdi
lea    0xd1d(%rip),%rdx
mov    $0x7,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xce8(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     13d0 <test_json_getBoolean+0x2a0>
lea    0xcf1(%rip),%rdi
lea    0xcc9(%rip),%rdx
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    13f1 <test_json_getBoolean+0x2c1>
mov    0x4(%rsp),%r8d
lea    0xcb3(%rip),%rdi
lea    0xca8(%rip),%rdx
mov    $0x8,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc95(%rip),%rdi
lea    0x4(%rsp),%rdx
xor    %esi,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     1425 <test_json_getBoolean+0x2f5>
lea    0xc9c(%rip),%rdi
lea    0xc76(%rip),%rdx
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1446 <test_json_getBoolean+0x316>
mov    0x4(%rsp),%r8d
lea    0xc5e(%rip),%rdi
lea    0xc55(%rip),%rdx
mov    $0x9,%esi
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc19(%rip),%rdi
lea    0x4(%rsp),%rdx
mov    $0x3,%esi
call   1050 <json_getBoolean@plt>
test   %rax,%rax
je     147d <test_json_getBoolean+0x34d>
lea    0xc5c(%rip),%rdi
lea    0xbf7(%rip),%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    149b <test_json_getBoolean+0x36b>
mov    0x4(%rsp),%ecx
lea    0xc0b(%rip),%rdi
lea    0xbd7(%rip),%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc3d(%rip),%rdi
call   1030 <puts@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Test json_getBoolean\00"
@.str.1 = [81 x i8] c"================================================================================\00"
@.str.2 = [12 x i8] c"abcfalseabc\00"
@.str.3 = [4 x i8] c"0ee\00"
@.str.4 = [5 x i8] c"true\00"
@.str.5 = [6 x i8] c"false\00"
@.str.6 = [5 x i8] c"tabc\00"
@.str.7 = [5 x i8] c"fabc\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [2 x i8] c"t\00"
@.str.10 = [2 x i8] c"f\00"
@__const.test_json_getBoolean.str = <{ [9 x i8*], [91 x i8*] }> <{ [9 x i8*] [i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i32 0, i32 0)], [91 x i8*] zeroinitializer }>
@.str.11 = [29 x i8] c"%d. %s [%d..%d] is boolean\0A\0A\00"
@.str.12 = [24 x i8] c"%d. %s is not boolean\0A\0A\00"
@.str.13 = [25 x i8] c"%s [%d..%d] is boolean\0A\0A\00"
@.str.14 = [27 x i8] c"%s [%d..] is not boolean\0A\0A\00"
@.str.15 = [82 x i8] c"================================================================================\0A\00"
define void @test_json_getBoolean() {
%1 = alloca [100 x i8*]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0))
%8 = bitcast [100 x i8*]* %1 to i8*
store i32 0, i32* %2
br label %9
9: ; preds = %42, %0
%10 = load i32, i32* %2
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [100 x i8*], [100 x i8*]* %1, i64 0, i64 %11
%13 = load i8*, i8** %12
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %45
15: ; preds = %9
store i32 0, i32* %3
%16 = load i32, i32* %2
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i8*], [100 x i8*]* %1, i64 0, i64 %17
%19 = load i8*, i8** %18
%20 = load i32, i32* %3
%21 = call i64 @json_getBoolean(i8* %19, i32 %20, i32* %4)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %15
%24 = load i32, i32* %2
%25 = add nsw i32 %24, 1
%26 = load i32, i32* %2
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i8*], [100 x i8*]* %1, i64 0, i64 %27
%29 = load i8*, i8** %28
%30 = load i32, i32* %3
%31 = load i32, i32* %4
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 %25, i8* %29, i32 %30, i32 %31)
br label %41
33: ; preds = %15
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
%36 = load i32, i32* %2
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [100 x i8*], [100 x i8*]* %1, i64 0, i64 %37
%39 = load i8*, i8** %38
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %35, i8* %39)
br label %41
41: ; preds = %33, %23
br label %42
42: ; preds = %41
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %9
45: ; preds = %9
%46 = getelementptr inbounds [100 x i8*], [100 x i8*]* %1, i64 0, i64 0
%47 = load i8*, i8** %46
store i8* %47, i8** %5
store i32 3, i32* %3
%48 = load i8*, i8** %5
%49 = load i32, i32* %3
%50 = call i64 @json_getBoolean(i8* %48, i32 %49, i32* %4)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %45
%53 = load i8*, i8** %5
%54 = load i32, i32* %3
%55 = load i32, i32* %4
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i8* %53, i32 %54, i32 %55)
br label %61
57: ; preds = %45
%58 = load i8*, i8** %5
%59 = load i32, i32* %3
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i8* %58, i32 %59)
br label %61
61: ; preds = %57, %52
%62 = call i32 @puts(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Test json_getBoolean\00"
@.str.1 = [81 x i8] c"================================================================================\00"
@.str.2 = [12 x i8] c"abcfalseabc\00"
@.str.3 = [4 x i8] c"0ee\00"
@.str.4 = [5 x i8] c"true\00"
@.str.5 = [6 x i8] c"false\00"
@.str.6 = [5 x i8] c"tabc\00"
@.str.7 = [5 x i8] c"fabc\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [2 x i8] c"t\00"
@.str.10 = [2 x i8] c"f\00"
@.str.11 = [29 x i8] c"%d. %s [%d..%d] is boolean\0A\0A\00"
@.str.12 = [24 x i8] c"%d. %s is not boolean\0A\0A\00"
@.str.13 = [25 x i8] c"%s [%d..%d] is boolean\0A\0A\00"
@.str.14 = [27 x i8] c"%s [%d..] is not boolean\0A\0A\00"
@.str.15 = [82 x i8] c"================================================================================\0A\00"
define void @test_json_getBoolean() {
%1 = alloca i32
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0))
%4 = bitcast i32* %1 to i8*
%5 = call i64 @json_getBoolean(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 0, i32* %1)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = load i32, i32* %1
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 %8)
br label %12
10: ; preds = %0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
br label %12
12: ; preds = %7, %10
%13 = call i64 @json_getBoolean(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 0, i32* %1)
%14 = icmp eq i64 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %12
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
br label %20
17: ; preds = %12
%18 = load i32, i32* %1
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 %18)
br label %20
20: ; preds = %17, %15
%21 = call i64 @json_getBoolean(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 0, i32* %1)
%22 = icmp eq i64 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %28
25: ; preds = %20
%26 = load i32, i32* %1
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 %26)
br label %28
28: ; preds = %25, %23
%29 = call i64 @json_getBoolean(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 0, i32* %1)
%30 = icmp eq i64 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %28
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %36
33: ; preds = %28
%34 = load i32, i32* %1
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 %34)
br label %36
36: ; preds = %33, %31
%37 = call i64 @json_getBoolean(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 0, i32* %1)
%38 = icmp eq i64 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %44
41: ; preds = %36
%42 = load i32, i32* %1
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 0, i32 %42)
br label %44
44: ; preds = %41, %39
%45 = call i64 @json_getBoolean(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 0, i32* %1)
%46 = icmp eq i64 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %44
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %52
49: ; preds = %44
%50 = load i32, i32* %1
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 0, i32 %50)
br label %52
52: ; preds = %49, %47
%53 = call i64 @json_getBoolean(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i32 0, i32* %1)
%54 = icmp eq i64 %53, 0
br i1 %54, label %57, label %55
55: ; preds = %52
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 7, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
br label %60
57: ; preds = %52
%58 = load i32, i32* %1
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 7, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 %58)
br label %60
60: ; preds = %57, %55
%61 = call i64 @json_getBoolean(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i32 0, i32* %1)
%62 = icmp eq i64 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %60
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %68
65: ; preds = %60
%66 = load i32, i32* %1
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i32 0, i32 %66)
br label %68
68: ; preds = %65, %63
%69 = call i64 @json_getBoolean(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), i32 0, i32* %1)
%70 = icmp eq i64 %69, 0
br i1 %70, label %73, label %71
71: ; preds = %68
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %76
73: ; preds = %68
%74 = load i32, i32* %1
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), i32 0, i32 %74)
br label %76
76: ; preds = %73, %71
%77 = call i64 @json_getBoolean(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 3, i32* %1)
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = load i32, i32* %1
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 3, i32 %80)
br label %84
82: ; preds = %76
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 3)
br label %84
84: ; preds = %82, %79
%85 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @.str.15, i64 0, i64 0))
ret void
}