#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*/ print(char *, ...);
void print_json_str(const char *str) {
  print("\"");
  for (; *str != '\0'; ++str) {
    switch (*str) {
    case '\"':
      print("\\\"");
      break;
    case '\\':
      print("\\\\");
      break;
    case '/':
      print("\\/");
      break;
    case '\b':
      print("\\b");
      break;
    case '\f':
      print("\\f");
      break;
    case '\n':
      print("\\n");
      break;
    case '\r':
      print("\\r");
      break;
    case '\t':
      print("\\t");
      break;
    default:
      if (*str <= 0x1f) {
        print("\\u00");
        if (*str & 0x10) {
          print("1");
        } else {
          print("0");
        }
        switch (*str & 0xF) {
        case 0x0:
          print("0");
          break;
        case 0x1:
          print("1");
          break;
        case 0x2:
          print("2");
          break;
        case 0x3:
          print("3");
          break;
        case 0x4:
          print("4");
          break;
        case 0x5:
          print("5");
          break;
        case 0x6:
          print("6");
          break;
        case 0x7:
          print("7");
          break;
        case 0x8:
          print("8");
          break;
        case 0x9:
          print("9");
          break;
        case 0xA:
          print("A");
          break;
        case 0xB:
          print("B");
          break;
        case 0xC:
          print("C");
          break;
        case 0xD:
          print("D");
          break;
        case 0xE:
          print("E");
          break;
        case 0xF:
          print("F");
          break;
        }
      }
      print("%c", *str);
      break;
    }
  }
  print("\"");
}


x86 assembly (clang, -O0):
<print_json_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xf1e(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     143b <print_json_str+0x32b>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0xc(%rbp)
sub    $0x8,%eax
je     1202 <print_json_str+0xf2>
jmp    1152 <print_json_str+0x42>
mov    -0xc(%rbp),%eax
sub    $0x9,%eax
je     124e <print_json_str+0x13e>
jmp    1163 <print_json_str+0x53>
mov    -0xc(%rbp),%eax
sub    $0xa,%eax
je     1228 <print_json_str+0x118>
jmp    1174 <print_json_str+0x64>
mov    -0xc(%rbp),%eax
sub    $0xc,%eax
je     1215 <print_json_str+0x105>
jmp    1185 <print_json_str+0x75>
mov    -0xc(%rbp),%eax
sub    $0xd,%eax
je     123b <print_json_str+0x12b>
jmp    1196 <print_json_str+0x86>
mov    -0xc(%rbp),%eax
sub    $0x22,%eax
je     11c9 <print_json_str+0xb9>
jmp    11a7 <print_json_str+0x97>
mov    -0xc(%rbp),%eax
sub    $0x2f,%eax
je     11ef <print_json_str+0xdf>
jmp    11b8 <print_json_str+0xa8>
mov    -0xc(%rbp),%eax
sub    $0x5c,%eax
je     11dc <print_json_str+0xcc>
jmp    1261 <print_json_str+0x151>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1425 <print_json_str+0x315>
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1425 <print_json_str+0x315>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1425 <print_json_str+0x315>
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1425 <print_json_str+0x315>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1425 <print_json_str+0x315>
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1425 <print_json_str+0x315>
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1425 <print_json_str+0x315>
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1425 <print_json_str+0x315>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x1f,%eax
jg     1410 <print_json_str+0x300>
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     12a5 <print_json_str+0x195>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    12b3 <print_json_str+0x1a3>
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
and    $0xf,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0xf,%eax
ja     140b <print_json_str+0x2fb>
mov    -0x18(%rbp),%rax
lea    0xd29(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xd41(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xd0e(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xcdb(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xcb9(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xc97(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xc86(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    140b <print_json_str+0x2fb>
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    1410 <print_json_str+0x300>
mov    -0x8(%rbp),%rax
movsbl (%rax),%esi
lea    0xc5d(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
jmp    142a <print_json_str+0x31a>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    112a <print_json_str+0x1a>
lea    0xbff(%rip),%rdi
mov    $0x0,%al
call   1030 <print@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_json_str>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xfbc(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
mov    (%rbx),%al
test   %al,%al
je     122f <print_json_str+0x11f>
lea    0xf63(%rip),%r14
lea    0xfd7(%rip),%r12
lea    0xeb5(%rip),%r13
lea    0xf8e(%rip),%rbp
lea    0xf8d(%rip),%r15
jmp    1177 <print_json_str+0x67>
mov    %rbp,%rdi
xchg   %ax,%ax
xor    %eax,%eax
call   1030 <print@plt>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
je     122f <print_json_str+0x11f>
movsbl %al,%ecx
lea    -0x8(%rcx),%edx
cmp    $0x27,%edx
ja     1195 <print_json_str+0x85>
movslq 0x0(%r13,%rdx,4),%rcx
add    %r13,%rcx
jmp    *%rcx
lea    0xf56(%rip),%rdi
jmp    1160 <print_json_str+0x50>
cmp    $0x5c,%ecx
jne    11a3 <print_json_str+0x93>
lea    0xf42(%rip),%rdi
jmp    1160 <print_json_str+0x50>
cmp    $0x1f,%al
jg     11e5 <print_json_str+0xd5>
lea    0xf4a(%rip),%rdi
xor    %eax,%eax
call   1030 <print@plt>
testb  $0x10,(%rbx)
lea    0xf3e(%rip),%rdi
lea    0xf35(%rip),%rax
cmove  %rax,%rdi
xor    %eax,%eax
call   1030 <print@plt>
movzbl (%rbx),%eax
and    $0xf,%eax
movslq (%r14,%rax,4),%rdi
add    %r14,%rdi
xor    %eax,%eax
call   1030 <print@plt>
movsbl (%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <print@plt>
jmp    1167 <print_json_str+0x57>
lea    0xef7(%rip),%rdi
jmp    1160 <print_json_str+0x50>
lea    0xee5(%rip),%rdi
jmp    1160 <print_json_str+0x50>
lea    0xed6(%rip),%rdi
jmp    1160 <print_json_str+0x50>
lea    0xed0(%rip),%rdi
jmp    1160 <print_json_str+0x50>
mov    %r15,%rdi
jmp    1160 <print_json_str+0x50>
lea    0xeab(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <print@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\22\00"
@.str.1 = [3 x i8] c"\\\22\00"
@.str.2 = [3 x i8] c"\\\\\00"
@.str.3 = [3 x i8] c"\\/\00"
@.str.4 = [3 x i8] c"\\b\00"
@.str.5 = [3 x i8] c"\\f\00"
@.str.6 = [3 x i8] c"\\n\00"
@.str.7 = [3 x i8] c"\\r\00"
@.str.8 = [3 x i8] c"\\t\00"
@.str.9 = [5 x i8] c"\\u00\00"
@.str.10 = [2 x i8] c"1\00"
@.str.11 = [2 x i8] c"0\00"
@.str.12 = [2 x i8] c"2\00"
@.str.13 = [2 x i8] c"3\00"
@.str.14 = [2 x i8] c"4\00"
@.str.15 = [2 x i8] c"5\00"
@.str.16 = [2 x i8] c"6\00"
@.str.17 = [2 x i8] c"7\00"
@.str.18 = [2 x i8] c"8\00"
@.str.19 = [2 x i8] c"9\00"
@.str.20 = [2 x i8] c"A\00"
@.str.21 = [2 x i8] c"B\00"
@.str.22 = [2 x i8] c"C\00"
@.str.23 = [2 x i8] c"D\00"
@.str.24 = [2 x i8] c"E\00"
@.str.25 = [2 x i8] c"F\00"
@.str.26 = [3 x i8] c"%c\00"
define void @print_json_str(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %89, %1
%5 = load i8*, i8** %2
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %92
9: ; preds = %4
%10 = load i8*, i8** %2
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
switch i32 %12, label %29 [
i32 34, label %13
i32 92, label %15
i32 47, label %17
i32 8, label %19
i32 12, label %21
i32 10, label %23
i32 13, label %25
i32 9, label %27
]
13: ; preds = %9
%14 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %88
15: ; preds = %9
%16 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %88
17: ; preds = %9
%18 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %88
19: ; preds = %9
%20 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %88
21: ; preds = %9
%22 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %88
23: ; preds = %9
%24 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %88
25: ; preds = %9
%26 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %88
27: ; preds = %9
%28 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %88
29: ; preds = %9
%30 = load i8*, i8** %2
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp sle i32 %32, 31
br i1 %33, label %34, label %83
34: ; preds = %29
%35 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%36 = load i8*, i8** %2
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = and i32 %38, 16
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %34
%42 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %45
43: ; preds = %34
%44 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %45
45: ; preds = %43, %41
%46 = load i8*, i8** %2
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = and i32 %48, 15
switch i32 %49, label %82 [
i32 0, label %50
i32 1, label %52
i32 2, label %54
i32 3, label %56
i32 4, label %58
i32 5, label %60
i32 6, label %62
i32 7, label %64
i32 8, label %66
i32 9, label %68
i32 10, label %70
i32 11, label %72
i32 12, label %74
i32 13, label %76
i32 14, label %78
i32 15, label %80
]
50: ; preds = %45
%51 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %82
52: ; preds = %45
%53 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %82
54: ; preds = %45
%55 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %82
56: ; preds = %45
%57 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %82
58: ; preds = %45
%59 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
br label %82
60: ; preds = %45
%61 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %82
62: ; preds = %45
%63 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %82
64: ; preds = %45
%65 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
br label %82
66: ; preds = %45
%67 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
br label %82
68: ; preds = %45
%69 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
br label %82
70: ; preds = %45
%71 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
br label %82
72: ; preds = %45
%73 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
br label %82
74: ; preds = %45
%75 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
br label %82
76: ; preds = %45
%77 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
br label %82
78: ; preds = %45
%79 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
br label %82
80: ; preds = %45
%81 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
br label %82
82: ; preds = %45, %80, %78, %76, %74, %72, %70, %68, %66, %64, %62, %60, %58, %56, %54, %52, %50
br label %83
83: ; preds = %82, %29
%84 = load i8*, i8** %2
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0), i32 %86)
br label %88
88: ; preds = %83, %27, %25, %23, %21, %19, %17, %15, %13
br label %89
89: ; preds = %88
%90 = load i8*, i8** %2
%91 = getelementptr inbounds i8, i8* %90, i32 1
store i8* %91, i8** %2
br label %4
92: ; preds = %4
%93 = call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\22\00"
@.str.1 = [3 x i8] c"\\\22\00"
@.str.2 = [3 x i8] c"\\\\\00"
@.str.3 = [3 x i8] c"\\/\00"
@.str.4 = [3 x i8] c"\\b\00"
@.str.5 = [3 x i8] c"\\f\00"
@.str.6 = [3 x i8] c"\\n\00"
@.str.7 = [3 x i8] c"\\r\00"
@.str.8 = [3 x i8] c"\\t\00"
@.str.9 = [5 x i8] c"\\u00\00"
@.str.10 = [2 x i8] c"1\00"
@.str.11 = [2 x i8] c"0\00"
@.str.12 = [2 x i8] c"2\00"
@.str.13 = [2 x i8] c"3\00"
@.str.14 = [2 x i8] c"4\00"
@.str.15 = [2 x i8] c"5\00"
@.str.16 = [2 x i8] c"6\00"
@.str.17 = [2 x i8] c"7\00"
@.str.18 = [2 x i8] c"8\00"
@.str.19 = [2 x i8] c"9\00"
@.str.20 = [2 x i8] c"A\00"
@.str.21 = [2 x i8] c"B\00"
@.str.22 = [2 x i8] c"C\00"
@.str.23 = [2 x i8] c"D\00"
@.str.24 = [2 x i8] c"E\00"
@.str.25 = [2 x i8] c"F\00"
@.str.26 = [3 x i8] c"%c\00"
@reltable.print_json_str = [16 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.11 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.10 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.12 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.13 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.14 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.15 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.16 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.17 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.18 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.19 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.20 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.21 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.22 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.23 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.24 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.25 to i64), i64 ptrtoint ([16 x i32]* @reltable.print_json_str to i64)) to i32)]
define void @print_json_str(i8* nocapture %0) {
%2 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %48, label %5
5: ; preds = %1, %44
%6 = phi i8 [ %46, %44 ], [ %3, %1 ]
%7 = phi i8* [ %45, %44 ], [ %0, %1 ]
%8 = sext i8 %6 to i32
switch i32 %8, label %25 [
i32 34, label %9
i32 92, label %11
i32 47, label %13
i32 8, label %15
i32 12, label %17
i32 10, label %19
i32 13, label %21
i32 9, label %23
]
9: ; preds = %5
%10 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %44
11: ; preds = %5
%12 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %44
13: ; preds = %5
%14 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %44
15: ; preds = %5
%16 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %44
17: ; preds = %5
%18 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %44
19: ; preds = %5
%20 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %44
21: ; preds = %5
%22 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %44
23: ; preds = %5
%24 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %44
25: ; preds = %5
%26 = icmp slt i8 %6, 32
br i1 %26, label %27, label %40
27: ; preds = %25
%28 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%29 = load i8, i8* %7
%30 = and i8 %29, 16
%31 = icmp eq i8 %30, 0
%32 = select i1 %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0)
%33 = tail call i32 (i8*, ...) @print(i8* %32)
%34 = load i8, i8* %7
%35 = and i8 %34, 15
%36 = zext i8 %35 to i64
%37 = shl i64 %36, 2
%38 = call i8* @llvm.load.relative.i64(i8* bitcast ([16 x i32]* @reltable.print_json_str to i8*), i64 %37)
%39 = tail call i32 (i8*, ...) @print(i8* %38)
br label %40
40: ; preds = %27, %25
%41 = load i8, i8* %7
%42 = sext i8 %41 to i32
%43 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i64 0, i64 0), i32 %42)
br label %44
44: ; preds = %9, %11, %13, %15, %17, %19, %21, %23, %40
%45 = getelementptr inbounds i8, i8* %7, i64 1
%46 = load i8, i8* %45
%47 = icmp eq i8 %46, 0
br i1 %47, label %48, label %5
48: ; preds = %44, %1
%49 = tail call i32 (i8*, ...) @print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}