#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__ iscntrl(unsigned char);
int /*<<< orphan*/ printf(char const *, ...);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char const *);
void sfpr_str_hex_print(const char *info, const char *buf, int len) {
  int i, len_info;
  char bufHex[100], bufChar[100];
  int byteOfGBK;
  printf(info);
  len_info = strlen(info);
  if (len_info > 0 && info[len_info - 1] != '\n')
    printf("\n");
  if (len_info == 0)
    printf("\n");
  strcpy(bufHex, "");
  strcpy(bufChar, "");
  byteOfGBK = 0;
  for (i = 0; i < len; i++) {
    unsigned char c = *(buf + i), byte1_gbk;
    if (0x02) {
      switch (byteOfGBK) {
      case 0:
      case 2:
        if (c >= 0xa1 && c <= 0xf7)
          byteOfGBK = 1;
        else
          byteOfGBK = 0;
        byte1_gbk = c;
        break;
      case 1:
        if (c >= 0xa1 && c <= 0xfe)
          byteOfGBK = 2;
        else
          byteOfGBK = 0;
        break;
      }
    }
    if ((i % 16 == 0) && i > 0) {
      printf("%s\t%s  \n", bufHex, bufChar);
      strcpy(bufHex, "");
      strcpy(bufChar, "");
      if (0x02) {
        if (byteOfGBK == 2)
          sprintf(bufChar, "%c", byte1_gbk);
      }
    }
    sprintf(bufHex, "%s%02X ", bufHex, c);
    sprintf(bufChar, "%s%c", bufChar, (iscntrl(c) ? '.' : c));
  }
  printf("%-48s\t%s\n", bufHex, bufChar);
}


x86 assembly (clang, -O0):
<sfpr_str_hex_print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    11af <sfpr_str_hex_print+0x5f>
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
je     11af <sfpr_str_hex_print+0x5f>
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
jne    11c7 <sfpr_str_hex_print+0x77>
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x80(%rbp),%rdi
lea    0xe36(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0xe23(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x0,-0xf4(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    140d <sfpr_str_hex_print+0x2bd>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0xf5(%rbp)
mov    -0xf4(%rbp),%eax
mov    %eax,-0xfc(%rbp)
test   %eax,%eax
je     1259 <sfpr_str_hex_print+0x109>
jmp    1231 <sfpr_str_hex_print+0xe1>
mov    -0xfc(%rbp),%eax
sub    $0x1,%eax
je     12a7 <sfpr_str_hex_print+0x157>
jmp    1245 <sfpr_str_hex_print+0xf5>
mov    -0xfc(%rbp),%eax
sub    $0x2,%eax
jne    12e9 <sfpr_str_hex_print+0x199>
jmp    1259 <sfpr_str_hex_print+0x109>
movzbl -0xf5(%rbp),%eax
cmp    $0xa1,%eax
jl     128c <sfpr_str_hex_print+0x13c>
movzbl -0xf5(%rbp),%eax
cmp    $0xf7,%eax
jg     128c <sfpr_str_hex_print+0x13c>
movl   $0x1,-0xf4(%rbp)
jmp    1296 <sfpr_str_hex_print+0x146>
movl   $0x0,-0xf4(%rbp)
mov    -0xf5(%rbp),%al
mov    %al,-0xf6(%rbp)
jmp    12e9 <sfpr_str_hex_print+0x199>
movzbl -0xf5(%rbp),%eax
cmp    $0xa1,%eax
jl     12da <sfpr_str_hex_print+0x18a>
movzbl -0xf5(%rbp),%eax
cmp    $0xfe,%eax
jg     12da <sfpr_str_hex_print+0x18a>
movl   $0x2,-0xf4(%rbp)
jmp    12e4 <sfpr_str_hex_print+0x194>
movl   $0x0,-0xf4(%rbp)
jmp    12e9 <sfpr_str_hex_print+0x199>
mov    -0x18(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1371 <sfpr_str_hex_print+0x221>
cmpl   $0x0,-0x18(%rbp)
jle    1371 <sfpr_str_hex_print+0x221>
lea    -0x80(%rbp),%rsi
lea    -0xf0(%rbp),%rdx
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x80(%rbp),%rdi
lea    0xcdd(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0xf0(%rbp),%rdi
lea    0xcca(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x2,-0xf4(%rbp)
jne    136c <sfpr_str_hex_print+0x21c>
lea    -0xf0(%rbp),%rdi
movzbl -0xf6(%rbp),%edx
lea    0xcae(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
jmp    1371 <sfpr_str_hex_print+0x221>
lea    -0x80(%rbp),%rdi
lea    -0x80(%rbp),%rdx
movzbl -0xf5(%rbp),%ecx
lea    0xc82(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
lea    -0xf0(%rbp),%rax
mov    %rax,-0x110(%rbp)
lea    -0xf0(%rbp),%rax
mov    %rax,-0x108(%rbp)
movzbl -0xf5(%rbp),%edi
call   1040 <iscntrl@plt>
cmp    $0x0,%rax
je     13d0 <sfpr_str_hex_print+0x280>
mov    $0x2e,%eax
mov    %eax,-0x114(%rbp)
jmp    13dd <sfpr_str_hex_print+0x28d>
movzbl -0xf5(%rbp),%eax
mov    %eax,-0x114(%rbp)
mov    -0x108(%rbp),%rdx
mov    -0x110(%rbp),%rdi
mov    -0x114(%rbp),%ecx
lea    0xc19(%rip),%rsi
mov    $0x0,%al
call   1070 <sprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11fb <sfpr_str_hex_print+0xab>
lea    -0x80(%rbp),%rsi
lea    -0xf0(%rbp),%rdx
lea    0xbf7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sfpr_str_hex_print>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %edx,%ebx
mov    %rsi,0x18(%rsp)
mov    %rdi,%rbp
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
test   %eax,%eax
jle    1342 <sfpr_str_hex_print+0x1e2>
add    $0xffffffff,%eax
cmpb   $0xa,0x0(%rbp,%rax,1)
je     11a6 <sfpr_str_hex_print+0x46>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe5b(%rip),%rbp
lea    0x90(%rsp),%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
lea    0x20(%rsp),%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
test   %ebx,%ebx
jle    1315 <sfpr_str_hex_print+0x1b5>
mov    %ebx,%eax
mov    %rax,0x10(%rsp)
lea    0x90(%rsp),%rbx
lea    0x20(%rsp),%rbp
lea    0xe1c(%rip),%r12
xor    %r14d,%r14d
xor    %r15d,%r15d
jmp    1251 <sfpr_str_hex_print+0xf1>
cs nopw 0x0(%rax,%rax,1)
nop
movzbl %cl,%r13d
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %r13d,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %r13d,%edi
call   1050 <iscntrl@plt>
test   %rax,%rax
mov    $0x2e,%eax
cmovne %eax,%r13d
mov    %rbp,%rdi
lea    0xddc(%rip),%rsi
mov    %rbp,%rdx
mov    %r13d,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
add    $0x1,%r14
cmp    %r14,0x10(%rsp)
je     1315 <sfpr_str_hex_print+0x1b5>
mov    0x18(%rsp),%rax
movzbl (%rax,%r14,1),%ecx
cmp    $0x2,%r15d
je     126c <sfpr_str_hex_print+0x10c>
cmp    $0x1,%r15d
je     1290 <sfpr_str_hex_print+0x130>
test   %r15d,%r15d
jne    127e <sfpr_str_hex_print+0x11e>
lea    0x5f(%rcx),%eax
xor    %r15d,%r15d
cmp    $0x57,%al
setb   %r15b
mov    %ecx,%eax
mov    %cl,0x7(%rsp)
test   %r14,%r14
jne    12a8 <sfpr_str_hex_print+0x148>
jmp    1200 <sfpr_str_hex_print+0xa0>
nopl   0x0(%rax,%rax,1)
lea    0x5f(%rcx),%eax
xor    %r15d,%r15d
cmp    $0x5e,%al
setb   %r15b
add    %r15d,%r15d
test   %r14,%r14
je     1200 <sfpr_str_hex_print+0xa0>
mov    %r14d,%eax
and    $0xf,%eax
test   %rax,%rax
jne    1200 <sfpr_str_hex_print+0xa0>
lea    0xd42(%rip),%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
mov    %rcx,0x8(%rsp)
call   1070 <printf@plt>
mov    %rbx,%rdi
mov    %rbx,%r13
lea    0xd2b(%rip),%rbx
mov    %rbx,%rsi
call   1040 <strcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r13,%rbx
call   1040 <strcpy@plt>
mov    0x8(%rsp),%rcx
cmp    $0x2,%r15d
jne    1200 <sfpr_str_hex_print+0xa0>
movzbl 0x7(%rsp),%eax
mov    %al,0x20(%rsp)
movb   $0x0,0x21(%rsp)
jmp    1200 <sfpr_str_hex_print+0xa0>
lea    0xcfa(%rip),%rdi
lea    0x90(%rsp),%rsi
lea    0x20(%rsp),%rdx
xor    %eax,%eax
call   1070 <printf@plt>
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
jne    11a6 <sfpr_str_hex_print+0x46>
jmp    119c <sfpr_str_hex_print+0x3c>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [9 x i8] c"%s\09%s \0A\00"
@.str.3 = [3 x i8] c"%c\00"
@.str.4 = [8 x i8] c"%s%02X \00"
@.str.5 = [5 x i8] c"%s%c\00"
@.str.6 = [10 x i8] c"%-48s\09%s\0A\00"
define void @sfpr_str_hex_print(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [100 x i8]
%10 = alloca [100 x i8]
%11 = alloca i32
%12 = alloca i8
%13 = alloca i8
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%14 = load i8*, i8** %4
%15 = call i32 (i8*, ...) @printf(i8* %14)
%16 = load i8*, i8** %4
%17 = call i32 @strlen(i8* %16)
store i32 %17, i32* %8
%18 = load i32, i32* %8
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %31
20: ; preds = %3
%21 = load i8*, i8** %4
%22 = load i32, i32* %8
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, i8* %21, i64 %24
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 10
br i1 %28, label %29, label %31
29: ; preds = %20
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %31
31: ; preds = %29, %20, %3
%32 = load i32, i32* %8
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
%37 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%38 = call i32 @strcpy(i8* %37, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%40 = call i32 @strcpy(i8* %39, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %11
store i32 0, i32* %7
br label %41
41: ; preds = %116, %36
%42 = load i32, i32* %7
%43 = load i32, i32* %6
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %119
45: ; preds = %41
%46 = load i8*, i8** %5
%47 = load i32, i32* %7
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, i8* %46, i64 %48
%50 = load i8, i8* %49
store i8 %50, i8* %12
%51 = load i32, i32* %11
switch i32 %51, label %75 [
i32 0, label %52
i32 2, label %52
i32 1, label %64
]
52: ; preds = %45, %45
%53 = load i8, i8* %12
%54 = zext i8 %53 to i32
%55 = icmp sge i32 %54, 161
br i1 %55, label %56, label %61
56: ; preds = %52
%57 = load i8, i8* %12
%58 = zext i8 %57 to i32
%59 = icmp sle i32 %58, 247
br i1 %59, label %60, label %61
60: ; preds = %56
store i32 1, i32* %11
br label %62
61: ; preds = %56, %52
store i32 0, i32* %11
br label %62
62: ; preds = %61, %60
%63 = load i8, i8* %12
store i8 %63, i8* %13
br label %75
64: ; preds = %45
%65 = load i8, i8* %12
%66 = zext i8 %65 to i32
%67 = icmp sge i32 %66, 161
br i1 %67, label %68, label %73
68: ; preds = %64
%69 = load i8, i8* %12
%70 = zext i8 %69 to i32
%71 = icmp sle i32 %70, 254
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 2, i32* %11
br label %74
73: ; preds = %68, %64
store i32 0, i32* %11
br label %74
74: ; preds = %73, %72
br label %75
75: ; preds = %45, %74, %62
%76 = load i32, i32* %7
%77 = srem i32 %76, 16
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %98
79: ; preds = %75
%80 = load i32, i32* %7
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %98
82: ; preds = %79
%83 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%84 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* %83, i8* %84)
%86 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%87 = call i32 @strcpy(i8* %86, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%88 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%89 = call i32 @strcpy(i8* %88, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%90 = load i32, i32* %11
%91 = icmp eq i32 %90, 2
br i1 %91, label %92, label %97
92: ; preds = %82
%93 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%94 = load i8, i8* %13
%95 = zext i8 %94 to i32
%96 = call i32 (i8*, i8*, ...) @sprintf(i8* %93, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %95)
br label %97
97: ; preds = %92, %82
br label %98
98: ; preds = %97, %79, %75
%99 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%100 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%101 = load i8, i8* %12
%102 = zext i8 %101 to i32
%103 = call i32 (i8*, i8*, ...) @sprintf(i8* %99, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %100, i32 %102)
%104 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%105 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%106 = load i8, i8* %12
%107 = call i64 @iscntrl(i8 zeroext %106)
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %98
br label %113
110: ; preds = %98
%111 = load i8, i8* %12
%112 = zext i8 %111 to i32
br label %113
113: ; preds = %110, %109
%114 = phi i32 [ 46, %109 ], [ %112, %110 ]
%115 = call i32 (i8*, i8*, ...) @sprintf(i8* %104, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %105, i32 %114)
br label %116
116: ; preds = %113
%117 = load i32, i32* %7
%118 = add nsw i32 %117, 1
store i32 %118, i32* %7
br label %41
119: ; preds = %41
%120 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%121 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %120, i8* %121)
ret void
}

LLVM IR (-O2):
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [9 x i8] c"%s\09%s \0A\00"
@.str.4 = [8 x i8] c"%s%02X \00"
@.str.5 = [5 x i8] c"%s%c\00"
@.str.6 = [10 x i8] c"%-48s\09%s\0A\00"
define void @sfpr_str_hex_print(i8* %0, i8* nocapture %1, i32 %2) {
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %0)
%9 = tail call i32 @strlen(i8* %0)
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %3
%12 = add nsw i32 %9, -1
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %0, i64 %13
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 10
br i1 %16, label %21, label %19
17: ; preds = %3
%18 = icmp eq i32 %9, 0
br i1 %18, label %19, label %21
19: ; preds = %17, %11
%20 = tail call i32 @putchar(i32 10)
br label %21
21: ; preds = %19, %11, %17
%22 = call i32 @strcpy(i8* %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%24 = icmp sgt i32 %2, 0
br i1 %24, label %25, label %64
25: ; preds = %21
%26 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 1
%27 = zext i32 %2 to i64
br label %28
28: ; preds = %25, %55
%29 = phi i64 [ 0, %25 ], [ %62, %55 ]
%30 = phi i8 [ undef, %25 ], [ %44, %55 ]
%31 = phi i32 [ 0, %25 ], [ %43, %55 ]
%32 = getelementptr inbounds i8, i8* %1, i64 %29
%33 = load i8, i8* %32
switch i32 %31, label %42 [
i32 0, label %34
i32 2, label %34
i32 1, label %38
]
34: ; preds = %28, %28
%35 = add i8 %33, 95
%36 = icmp ult i8 %35, 87
%37 = zext i1 %36 to i32
br label %42
38: ; preds = %28
%39 = add i8 %33, 95
%40 = icmp ult i8 %39, 94
%41 = select i1 %40, i32 2, i32 0
br label %42
42: ; preds = %38, %28, %34
%43 = phi i32 [ %31, %28 ], [ %37, %34 ], [ %41, %38 ]
%44 = phi i8 [ %30, %28 ], [ %33, %34 ], [ %30, %38 ]
%45 = and i64 %29, 15
%46 = icmp eq i64 %45, 0
%47 = icmp ne i64 %29, 0
%48 = and i1 %47, %46
br i1 %48, label %49, label %55
49: ; preds = %42
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* %6, i8* %7)
%51 = call i32 @strcpy(i8* %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%52 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%53 = icmp eq i32 %43, 2
br i1 %53, label %54, label %55
54: ; preds = %49
store i8 %44, i8* %7
store i8 0, i8* %26
br label %55
55: ; preds = %49, %54, %42
%56 = zext i8 %33 to i32
%57 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %6, i32 %56)
%58 = call i64 @iscntrl(i8 zeroext %33)
%59 = icmp eq i64 %58, 0
%60 = select i1 %59, i32 %56, i32 46
%61 = call i32 (i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %7, i32 %60)
%62 = add nuw nsw i64 %29, 1
%63 = icmp eq i64 %62, %27
br i1 %63, label %64, label %28
64: ; preds = %55, %21
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %6, i8* %7)
ret void
}