#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 */
void cutils_fmtc_repr(char *buffer, size_t buffer_size, const char *string,
                      size_t string_size) {
  static const char special_chr[] = {'\\', '\n', '\t', '\r', '\v',
                                     '\a', '\b', '\f', '\'', '\0'};
  static const char *escaped_chr[] = {"\\\\", "\\n", "\\t", "\\r", "\\v",
                                      "\\a",  "\\b", "\\f", "\\'", "\\0"};
  static const char special_str[] = {'\\', '\n', '\t', '\r', '\v',
                                     '\a', '\b', '\f', '"'};
  static const char *escaped_str[] = {"\\\\", "\\n", "\\t", "\\r", "\\v",
                                      "\\a",  "\\b", "\\f", "\\\""};
  static const size_t spec_chr_len = sizeof special_chr;
  static const size_t spec_str_len = sizeof special_str;
  if (buffer_size < 5)
    return;
  char chr;
  size_t i, j;
  if (string_size == 1) {
    j = 0;
    chr = *string;
    buffer[j++] = '\'';
    for (i = 0; i < spec_chr_len; i++)
      if (chr == special_chr[i]) {
        buffer[j++] = escaped_chr[i][0];
        buffer[j++] = escaped_chr[i][1];
        goto Close_Quote;
      }
    buffer[j++] = chr;
  Close_Quote:
    buffer[j++] = '\'';
    buffer[j] = '\0';
  } else {
    size_t k = 0;
    buffer[k++] = '"';
    for (i = 0; i < string_size && k < (buffer_size - 4); i++) {
      chr = string[i];
      for (j = 0; j < spec_str_len; j++)
        if (chr == special_str[j]) {
          buffer[k++] = escaped_str[j][0];
          buffer[k++] = escaped_str[j][1];
          goto Next_Char;
        }
      buffer[k++] = chr;
    Next_Char:;
    }
    buffer[k++] = '"';
    buffer[k] = '\0';
  }
}


x86 assembly (clang, -O0):
<cutils_fmtc_repr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
cmpq   $0x5,-0x10(%rbp)
jae    1124 <cutils_fmtc_repr+0x24>
jmp    1387 <cutils_fmtc_repr+0x287>
cmpq   $0x1,-0x20(%rbp)
jne    1230 <cutils_fmtc_repr+0x130>
movq   $0x0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x21(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x38(%rbp)
movb   $0x27,(%rax,%rcx,1)
movq   $0x0,-0x30(%rbp)
cmpq   $0xa,-0x30(%rbp)
jae    11ef <cutils_fmtc_repr+0xef>
movsbl -0x21(%rbp),%eax
mov    -0x30(%rbp),%rdx
lea    0xe87(%rip),%rcx
movsbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
jne    11d9 <cutils_fmtc_repr+0xd9>
mov    -0x30(%rbp),%rcx
lea    0x2ea0(%rip),%rax
mov    (%rax,%rcx,8),%rax
mov    (%rax),%dl
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x38(%rbp)
mov    %dl,(%rax,%rcx,1)
mov    -0x30(%rbp),%rcx
lea    0x2e79(%rip),%rax
mov    (%rax,%rcx,8),%rax
mov    0x1(%rax),%dl
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x38(%rbp)
mov    %dl,(%rax,%rcx,1)
jmp    1208 <cutils_fmtc_repr+0x108>
jmp    11de <cutils_fmtc_repr+0xde>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    115f <cutils_fmtc_repr+0x5f>
mov    -0x21(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x38(%rbp)
mov    %dl,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x38(%rbp)
movb   $0x27,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
jmp    1387 <cutils_fmtc_repr+0x287>
movq   $0x0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x40(%rbp)
movb   $0x22,(%rax,%rcx,1)
movq   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%rcx
xor    %eax,%eax
cmp    -0x20(%rbp),%rcx
mov    %al,-0x41(%rbp)
jae    127f <cutils_fmtc_repr+0x17f>
mov    -0x40(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x4,%rcx
cmp    %rcx,%rax
setb   %al
mov    %al,-0x41(%rbp)
mov    -0x41(%rbp),%al
test   $0x1,%al
jne    128f <cutils_fmtc_repr+0x18f>
jmp    1364 <cutils_fmtc_repr+0x264>
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x21(%rbp)
movq   $0x0,-0x38(%rbp)
cmpq   $0x9,-0x38(%rbp)
jae    1335 <cutils_fmtc_repr+0x235>
movsbl -0x21(%rbp),%eax
mov    -0x38(%rbp),%rdx
lea    0xd4b(%rip),%rcx
movsbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
jne    131f <cutils_fmtc_repr+0x21f>
mov    -0x38(%rbp),%rcx
lea    0x2daa(%rip),%rax
mov    (%rax,%rcx,8),%rax
mov    (%rax),%dl
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x40(%rbp)
mov    %dl,(%rax,%rcx,1)
mov    -0x38(%rbp),%rcx
lea    0x2d83(%rip),%rax
mov    (%rax,%rcx,8),%rax
mov    0x1(%rax),%dl
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x40(%rbp)
mov    %dl,(%rax,%rcx,1)
jmp    134e <cutils_fmtc_repr+0x24e>
jmp    1324 <cutils_fmtc_repr+0x224>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    12a5 <cutils_fmtc_repr+0x1a5>
mov    -0x21(%rbp),%dl
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x40(%rbp)
mov    %dl,(%rax,%rcx,1)
jmp    1353 <cutils_fmtc_repr+0x253>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    1257 <cutils_fmtc_repr+0x157>
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x40(%rbp)
movb   $0x22,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
mov    -0x40(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
pop    %rbp
ret

x86 assembly (clang, -O2):
<cutils_fmtc_repr>:
cmp    $0x5,%rsi
jb     1289 <cutils_fmtc_repr+0x189>
push   %rbp
push   %r15
push   %r14
push   %rbx
cmp    $0x1,%rcx
jne    114d <cutils_fmtc_repr+0x4d>
movzbl (%rdx),%ecx
movb   $0x27,(%rdi)
mov    $0x2,%r9d
mov    $0x1,%edx
cmp    $0x5c,%rcx
ja     1273 <cutils_fmtc_repr+0x173>
xor    %eax,%eax
lea    0x101e(%rip),%rsi
movslq (%rsi,%rcx,4),%rbp
add    %rsi,%rbp
jmp    *%rbp
mov    $0x9,%eax
jmp    1255 <cutils_fmtc_repr+0x155>
movb   $0x22,(%rdi)
mov    $0x22,%r8b
mov    $0x1,%r9d
test   %rcx,%rcx
je     1279 <cutils_fmtc_repr+0x179>
add    $0xfffffffffffffffc,%rsi
cmp    $0x2,%rsi
jb     1279 <cutils_fmtc_repr+0x179>
mov    $0x1,%r15d
lea    0xe83(%rip),%r10
lea    0x2c7c(%rip),%r11
mov    $0x1,%r9d
nopw   0x0(%rax,%rax,1)
movzbl -0x1(%rdx,%r15,1),%ebx
lea    -0x7(%rbx),%ebp
cmp    $0x55,%bpl
ja     1203 <cutils_fmtc_repr+0x103>
movzbl %bpl,%ebp
movslq (%r10,%rbp,4),%rbp
add    %r10,%rbp
xor    %r14d,%r14d
jmp    *%rbp
mov    $0x5,%r14d
jmp    11f0 <cutils_fmtc_repr+0xf0>
mov    $0x6,%r14d
jmp    11f0 <cutils_fmtc_repr+0xf0>
mov    $0x2,%r14d
jmp    11f0 <cutils_fmtc_repr+0xf0>
mov    $0x1,%r14d
jmp    11f0 <cutils_fmtc_repr+0xf0>
mov    $0x4,%r14d
jmp    11f0 <cutils_fmtc_repr+0xf0>
mov    $0x7,%r14d
jmp    11f0 <cutils_fmtc_repr+0xf0>
mov    $0x3,%r14d
jmp    11f0 <cutils_fmtc_repr+0xf0>
mov    $0x8,%r14d
nopl   (%rax)
mov    (%r11,%r14,8),%rbx
movzbl (%rbx),%eax
mov    %al,(%rdi,%r9,1)
add    $0x1,%r9
movzbl 0x1(%rbx),%ebx
mov    %bl,(%rdi,%r9,1)
add    $0x1,%r9
cmp    %rcx,%r15
jae    1279 <cutils_fmtc_repr+0x179>
add    $0x1,%r15
cmp    %rsi,%r9
jb     1190 <cutils_fmtc_repr+0x90>
jmp    1279 <cutils_fmtc_repr+0x179>
mov    $0x5,%eax
jmp    1255 <cutils_fmtc_repr+0x155>
mov    $0x6,%eax
jmp    1255 <cutils_fmtc_repr+0x155>
mov    $0x2,%eax
jmp    1255 <cutils_fmtc_repr+0x155>
mov    $0x1,%eax
jmp    1255 <cutils_fmtc_repr+0x155>
mov    $0x4,%eax
jmp    1255 <cutils_fmtc_repr+0x155>
mov    $0x7,%eax
jmp    1255 <cutils_fmtc_repr+0x155>
mov    $0x3,%eax
jmp    1255 <cutils_fmtc_repr+0x155>
mov    $0x8,%eax
lea    0x2b54(%rip),%rcx
mov    (%rcx,%rax,8),%rax
mov    (%rax),%cl
mov    %cl,0x1(%rdi)
mov    0x1(%rax),%cl
mov    $0x3,%r9d
mov    $0x2,%edx
mov    %cl,(%rdi,%rdx,1)
mov    $0x27,%r8b
mov    %r8b,(%rdi,%r9,1)
movb   $0x0,0x1(%rdi,%r9,1)
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@cutils_fmtc_repr.special_chr = internal constant [10 x i8] c"\\\0A\09\0D\0B\07\08\0C'\00"
@cutils_fmtc_repr.escaped_chr = internal global [10 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0)]
@.str = [3 x i8] c"\\\\\00"
@.str.1 = [3 x i8] c"\\n\00"
@.str.2 = [3 x i8] c"\\t\00"
@.str.3 = [3 x i8] c"\\r\00"
@.str.4 = [3 x i8] c"\\v\00"
@.str.5 = [3 x i8] c"\\a\00"
@.str.6 = [3 x i8] c"\\b\00"
@.str.7 = [3 x i8] c"\\f\00"
@.str.8 = [3 x i8] c"\\'\00"
@.str.9 = [3 x i8] c"\\0\00"
@cutils_fmtc_repr.special_str = internal constant [9 x i8] c"\\\0A\09\0D\0B\07\08\0C\22"
@cutils_fmtc_repr.escaped_str = internal global [9 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0)]
@.str.10 = [3 x i8] c"\\\22\00"
@cutils_fmtc_repr.spec_chr_len = internal constant i64 10
@cutils_fmtc_repr.spec_str_len = internal constant i64 9
define void @cutils_fmtc_repr(i8* %0, i64 %1, i8* %2, i64 %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i8
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
store i8* %0, i8** %5
store i64 %1, i64* %6
store i8* %2, i8** %7
store i64 %3, i64* %8
%13 = load i64, i64* %6
%14 = icmp ult i64 %13, 5
br i1 %14, label %15, label %16
15: ; preds = %4
br label %147
16: ; preds = %4
%17 = load i64, i64* %8
%18 = icmp eq i64 %17, 1
br i1 %18, label %19, label %74
19: ; preds = %16
store i64 0, i64* %11
%20 = load i8*, i8** %7
%21 = load i8, i8* %20
store i8 %21, i8* %9
%22 = load i8*, i8** %5
%23 = load i64, i64* %11
%24 = add i64 %23, 1
store i64 %24, i64* %11
%25 = getelementptr inbounds i8, i8* %22, i64 %23
store i8 39, i8* %25
store i64 0, i64* %10
br label %26
26: ; preds = %57, %19
%27 = load i64, i64* %10
%28 = icmp ult i64 %27, 10
br i1 %28, label %29, label %60
29: ; preds = %26
%30 = load i8, i8* %9
%31 = sext i8 %30 to i32
%32 = load i64, i64* %10
%33 = getelementptr inbounds [10 x i8], [10 x i8]* @cutils_fmtc_repr.special_chr, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %31, %35
br i1 %36, label %37, label %56
37: ; preds = %29
%38 = load i64, i64* %10
%39 = getelementptr inbounds [10 x i8*], [10 x i8*]* @cutils_fmtc_repr.escaped_chr, i64 0, i64 %38
%40 = load i8*, i8** %39
%41 = getelementptr inbounds i8, i8* %40, i64 0
%42 = load i8, i8* %41
%43 = load i8*, i8** %5
%44 = load i64, i64* %11
%45 = add i64 %44, 1
store i64 %45, i64* %11
%46 = getelementptr inbounds i8, i8* %43, i64 %44
store i8 %42, i8* %46
%47 = load i64, i64* %10
%48 = getelementptr inbounds [10 x i8*], [10 x i8*]* @cutils_fmtc_repr.escaped_chr, i64 0, i64 %47
%49 = load i8*, i8** %48
%50 = getelementptr inbounds i8, i8* %49, i64 1
%51 = load i8, i8* %50
%52 = load i8*, i8** %5
%53 = load i64, i64* %11
%54 = add i64 %53, 1
store i64 %54, i64* %11
%55 = getelementptr inbounds i8, i8* %52, i64 %53
store i8 %51, i8* %55
br label %66
56: ; preds = %29
br label %57
57: ; preds = %56
%58 = load i64, i64* %10
%59 = add i64 %58, 1
store i64 %59, i64* %10
br label %26
60: ; preds = %26
%61 = load i8, i8* %9
%62 = load i8*, i8** %5
%63 = load i64, i64* %11
%64 = add i64 %63, 1
store i64 %64, i64* %11
%65 = getelementptr inbounds i8, i8* %62, i64 %63
store i8 %61, i8* %65
br label %66
66: ; preds = %60, %37
%67 = load i8*, i8** %5
%68 = load i64, i64* %11
%69 = add i64 %68, 1
store i64 %69, i64* %11
%70 = getelementptr inbounds i8, i8* %67, i64 %68
store i8 39, i8* %70
%71 = load i8*, i8** %5
%72 = load i64, i64* %11
%73 = getelementptr inbounds i8, i8* %71, i64 %72
store i8 0, i8* %73
br label %147
74: ; preds = %16
store i64 0, i64* %12
%75 = load i8*, i8** %5
%76 = load i64, i64* %12
%77 = add i64 %76, 1
store i64 %77, i64* %12
%78 = getelementptr inbounds i8, i8* %75, i64 %76
store i8 34, i8* %78
store i64 0, i64* %10
br label %79
79: ; preds = %136, %74
%80 = load i64, i64* %10
%81 = load i64, i64* %8
%82 = icmp ult i64 %80, %81
br i1 %82, label %83, label %88
83: ; preds = %79
%84 = load i64, i64* %12
%85 = load i64, i64* %6
%86 = sub i64 %85, 4
%87 = icmp ult i64 %84, %86
br label %88
88: ; preds = %83, %79
%89 = phi i1 [ false, %79 ], [ %87, %83 ]
br i1 %89, label %90, label %139
90: ; preds = %88
%91 = load i8*, i8** %7
%92 = load i64, i64* %10
%93 = getelementptr inbounds i8, i8* %91, i64 %92
%94 = load i8, i8* %93
store i8 %94, i8* %9
store i64 0, i64* %11
br label %95
95: ; preds = %126, %90
%96 = load i64, i64* %11
%97 = icmp ult i64 %96, 9
br i1 %97, label %98, label %129
98: ; preds = %95
%99 = load i8, i8* %9
%100 = sext i8 %99 to i32
%101 = load i64, i64* %11
%102 = getelementptr inbounds [9 x i8], [9 x i8]* @cutils_fmtc_repr.special_str, i64 0, i64 %101
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %100, %104
br i1 %105, label %106, label %125
106: ; preds = %98
%107 = load i64, i64* %11
%108 = getelementptr inbounds [9 x i8*], [9 x i8*]* @cutils_fmtc_repr.escaped_str, i64 0, i64 %107
%109 = load i8*, i8** %108
%110 = getelementptr inbounds i8, i8* %109, i64 0
%111 = load i8, i8* %110
%112 = load i8*, i8** %5
%113 = load i64, i64* %12
%114 = add i64 %113, 1
store i64 %114, i64* %12
%115 = getelementptr inbounds i8, i8* %112, i64 %113
store i8 %111, i8* %115
%116 = load i64, i64* %11
%117 = getelementptr inbounds [9 x i8*], [9 x i8*]* @cutils_fmtc_repr.escaped_str, i64 0, i64 %116
%118 = load i8*, i8** %117
%119 = getelementptr inbounds i8, i8* %118, i64 1
%120 = load i8, i8* %119
%121 = load i8*, i8** %5
%122 = load i64, i64* %12
%123 = add i64 %122, 1
store i64 %123, i64* %12
%124 = getelementptr inbounds i8, i8* %121, i64 %122
store i8 %120, i8* %124
br label %135
125: ; preds = %98
br label %126
126: ; preds = %125
%127 = load i64, i64* %11
%128 = add i64 %127, 1
store i64 %128, i64* %11
br label %95
129: ; preds = %95
%130 = load i8, i8* %9
%131 = load i8*, i8** %5
%132 = load i64, i64* %12
%133 = add i64 %132, 1
store i64 %133, i64* %12
%134 = getelementptr inbounds i8, i8* %131, i64 %132
store i8 %130, i8* %134
br label %135
135: ; preds = %129, %106
br label %136
136: ; preds = %135
%137 = load i64, i64* %10
%138 = add i64 %137, 1
store i64 %138, i64* %10
br label %79
139: ; preds = %88
%140 = load i8*, i8** %5
%141 = load i64, i64* %12
%142 = add i64 %141, 1
store i64 %142, i64* %12
%143 = getelementptr inbounds i8, i8* %140, i64 %141
store i8 34, i8* %143
%144 = load i8*, i8** %5
%145 = load i64, i64* %12
%146 = getelementptr inbounds i8, i8* %144, i64 %145
store i8 0, i8* %146
br label %147
147: ; preds = %15, %139, %66
ret void
}

LLVM IR (-O2):
@cutils_fmtc_repr.escaped_chr = internal unnamed_addr constant [10 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0)]
@.str = [3 x i8] c"\\\\\00"
@.str.1 = [3 x i8] c"\\n\00"
@.str.2 = [3 x i8] c"\\t\00"
@.str.3 = [3 x i8] c"\\r\00"
@.str.4 = [3 x i8] c"\\v\00"
@.str.5 = [3 x i8] c"\\a\00"
@.str.6 = [3 x i8] c"\\b\00"
@.str.7 = [3 x i8] c"\\f\00"
@.str.8 = [3 x i8] c"\\'\00"
@.str.9 = [3 x i8] c"\\0\00"
@cutils_fmtc_repr.escaped_str = internal unnamed_addr constant [9 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0)]
@.str.10 = [3 x i8] c"\\\22\00"
define void @cutils_fmtc_repr(i8* nocapture writeonly %0, i64 %1, i8* nocapture %2, i64 %3) {
%5 = icmp ult i64 %1, 5
br i1 %5, label %74, label %6
6: ; preds = %4
%7 = icmp eq i64 %3, 1
br i1 %7, label %8, label %32
8: ; preds = %6
%9 = load i8, i8* %2
store i8 39, i8* %0
switch i8 %9, label %27 [
i8 92, label %19
i8 10, label %10
i8 9, label %11
i8 13, label %12
i8 11, label %13
i8 7, label %14
i8 8, label %15
i8 12, label %16
i8 39, label %17
i8 0, label %18
]
10: ; preds = %8
br label %19
11: ; preds = %8
br label %19
12: ; preds = %8
br label %19
13: ; preds = %8
br label %19
14: ; preds = %8
br label %19
15: ; preds = %8
br label %19
16: ; preds = %8
br label %19
17: ; preds = %8
br label %19
18: ; preds = %8
br label %19
19: ; preds = %8, %18, %17, %16, %15, %14, %13, %12, %11, %10
%20 = phi i64 [ 0, %8 ], [ 1, %10 ], [ 2, %11 ], [ 3, %12 ], [ 4, %13 ], [ 5, %14 ], [ 6, %15 ], [ 7, %16 ], [ 8, %17 ], [ 9, %18 ]
%21 = getelementptr inbounds [10 x i8*], [10 x i8*]* @cutils_fmtc_repr.escaped_chr, i64 0, i64 %20
%22 = load i8*, i8** %21
%23 = load i8, i8* %22
%24 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %23, i8* %24
%25 = getelementptr inbounds i8, i8* %22, i64 1
%26 = load i8, i8* %25
br label %27
27: ; preds = %8, %19
%28 = phi i64 [ 2, %19 ], [ 1, %8 ]
%29 = phi i8 [ %26, %19 ], [ %9, %8 ]
%30 = phi i64 [ 3, %19 ], [ 2, %8 ]
%31 = getelementptr inbounds i8, i8* %0, i64 %28
store i8 %29, i8* %31
br label %68
32: ; preds = %6
store i8 34, i8* %0
%33 = add i64 %1, -4
%34 = icmp ne i64 %3, 0
%35 = icmp ugt i64 %33, 1
%36 = and i1 %34, %35
br i1 %36, label %37, label %68
37: ; preds = %32, %59
%38 = phi i64 [ %63, %59 ], [ 1, %32 ]
%39 = phi i64 [ %64, %59 ], [ 0, %32 ]
%40 = getelementptr inbounds i8, i8* %2, i64 %39
%41 = load i8, i8* %40
switch i8 %41, label %59 [
i8 92, label %50
i8 10, label %42
i8 9, label %43
i8 13, label %44
i8 11, label %45
i8 7, label %46
i8 8, label %47
i8 12, label %48
i8 34, label %49
]
42: ; preds = %37
br label %50
43: ; preds = %37
br label %50
44: ; preds = %37
br label %50
45: ; preds = %37
br label %50
46: ; preds = %37
br label %50
47: ; preds = %37
br label %50
48: ; preds = %37
br label %50
49: ; preds = %37
br label %50
50: ; preds = %37, %49, %48, %47, %46, %45, %44, %43, %42
%51 = phi i64 [ 0, %37 ], [ 1, %42 ], [ 2, %43 ], [ 3, %44 ], [ 4, %45 ], [ 5, %46 ], [ 6, %47 ], [ 7, %48 ], [ 8, %49 ]
%52 = getelementptr inbounds [9 x i8*], [9 x i8*]* @cutils_fmtc_repr.escaped_str, i64 0, i64 %51
%53 = load i8*, i8** %52
%54 = load i8, i8* %53
%55 = add nuw i64 %38, 1
%56 = getelementptr inbounds i8, i8* %0, i64 %38
store i8 %54, i8* %56
%57 = getelementptr inbounds i8, i8* %53, i64 1
%58 = load i8, i8* %57
br label %59
59: ; preds = %37, %50
%60 = phi i64 [ %55, %50 ], [ %38, %37 ]
%61 = phi i8 [ %58, %50 ], [ %41, %37 ]
%62 = getelementptr inbounds i8, i8* %0, i64 %60
store i8 %61, i8* %62
%63 = add i64 %60, 1
%64 = add nuw i64 %39, 1
%65 = icmp ult i64 %64, %3
%66 = icmp ult i64 %63, %33
%67 = select i1 %65, i1 %66, i1 false
br i1 %67, label %37, label %68
68: ; preds = %59, %32, %27
%69 = phi i64 [ %30, %27 ], [ 1, %32 ], [ %63, %59 ]
%70 = phi i8 [ 39, %27 ], [ 34, %32 ], [ 34, %59 ]
%71 = add i64 %69, 1
%72 = getelementptr inbounds i8, i8* %0, i64 %69
store i8 %70, i8* %72
%73 = getelementptr inbounds i8, i8* %0, i64 %71
store i8 0, i8* %73
br label %74
74: ; preds = %68, %4
ret void
}