#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__ is_utf8_str(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strlen(char const *);
int utf8_strlen(char const *, int /*<<< orphan*/);
int utf8_strlen_sse2(char const *, int /*<<< orphan*/);
int main() {
  int i;
  const char *test[] = {"это простой тест 123 asxd",
                        "\xC2test",
                        "خوش، دنیا",
                        "你好，世界",
                        "שלום, עולם",
                        "Γεια σας, τον κόσμο",
                        "こんにちは、世界中のみなさん",
                        NULL};
  printf("TEST[0] = %s (length: %d[%d])\n",
         is_utf8_str(test[0], 0) ? "OK" : "FAIL", utf8_strlen(test[0], 0),
         utf8_strlen_sse2(test[0], strlen(test[0])));
  printf("TEST[1] = %s (length: %d[%d])\n",
         is_utf8_str(test[1], 0) ? "FAIL" : "OK", utf8_strlen(test[1], 0),
         utf8_strlen_sse2(test[1], strlen(test[1])));
  for (i = 2; test[i]; ++i) {
    printf("TEST[%d] = %s (length: %d[%d])\n", i,
           is_utf8_str(test[i], 0) ? "OK" : "FAIL", utf8_strlen(test[i], 0),
           utf8_strlen_sse2(test[i], strlen(test[i])));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
lea    0x2c63(%rip),%rsi
mov    $0x40,%edx
call   1070 <memcpy@plt>
mov    -0x50(%rbp),%rdi
xor    %esi,%esi
call   1080 <is_utf8_str@plt>
mov    %rax,%rdx
lea    0xf37(%rip),%rax
lea    0xf2d(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x50(%rbp),%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x50(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x80(%rbp),%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
mov    -0x78(%rbp),%rsi
mov    -0x6c(%rbp),%edx
mov    %eax,%ecx
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
xor    %esi,%esi
call   1080 <is_utf8_str@plt>
mov    %rax,%rdx
lea    0xecb(%rip),%rax
lea    0xec7(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x48(%rbp),%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,-0x54(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
mov    -0x60(%rbp),%rsi
mov    -0x54(%rbp),%edx
mov    %eax,%ecx
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x2,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmpq   $0x0,-0x50(%rbp,%rax,8)
je     131d <main+0x1bd>
mov    -0x8(%rbp),%eax
mov    %eax,-0x94(%rbp)
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
xor    %esi,%esi
call   1080 <is_utf8_str@plt>
mov    %rax,%rdx
lea    0xe40(%rip),%rax
lea    0xe36(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x90(%rbp)
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,-0x84(%rbp)
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rax
mov    %rax,-0xa0(%rbp)
movslq -0x8(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
call   1050 <strlen@plt>
mov    -0xa0(%rbp),%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
mov    -0x94(%rbp),%esi
mov    -0x90(%rbp),%rdx
mov    -0x84(%rbp),%ecx
mov    %eax,%r8d
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1260 <main+0x100>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xe9e(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1070 <is_utf8_str@plt>
test   %rax,%rax
lea    0xf5d(%rip),%r13
lea    0xf53(%rip),%r15
mov    %r15,%rbx
cmove  %r13,%rbx
mov    %r14,%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
lea    0xf08(%rip),%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe6a(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <is_utf8_str@plt>
test   %rax,%rax
mov    %r13,%rbp
cmove  %r15,%rbp
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
lea    0xee0(%rip),%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe20(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <is_utf8_str@plt>
test   %rax,%rax
mov    %r15,%rbp
cmove  %r13,%rbp
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
lea    0xeaf(%rip),%r14
mov    %r14,%rdi
mov    $0x2,%esi
mov    %rbp,%rdx
mov    %r12d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdd9(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <is_utf8_str@plt>
test   %rax,%rax
mov    %r15,%rbp
cmove  %r13,%rbp
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
mov    %r14,%rdi
mov    $0x3,%esi
mov    %rbp,%rdx
mov    %r12d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd97(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <is_utf8_str@plt>
test   %rax,%rax
mov    %r15,%rbp
cmove  %r13,%rbp
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    %rbp,%rdx
mov    %r12d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd58(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <is_utf8_str@plt>
test   %rax,%rax
mov    %r15,%rbp
cmove  %r13,%rbp
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
mov    %r14,%rdi
mov    $0x5,%esi
mov    %rbp,%rdx
mov    %r12d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd29(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1070 <is_utf8_str@plt>
test   %rax,%rax
cmove  %r13,%r15
mov    %rbx,%rdi
xor    %esi,%esi
call   1040 <utf8_strlen@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <utf8_strlen_sse2@plt>
mov    %r14,%rdi
mov    $0x6,%esi
mov    %r15,%rdx
mov    %ebp,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [40 x i8] c"\D1\8D\D1\82\D0\BE \D0\BF\D1\80\D0\BE\D1\81\D1\82\D0\BE\D0\B9 \D1\82\D0\B5\D1\81\D1\82 123 asxd\00"
@.str.1 = [6 x i8] c"\C2test\00"
@.str.2 = [18 x i8] c"\D8\AE\D9\88\D8\B4\D8\8C \D8\AF\D9\86\DB\8C\D8\A7\00"
@.str.3 = [16 x i8] c"\E4\BD\A0\E5\A5\BD\EF\BC\8C\E4\B8\96\E7\95\8C\00"
@.str.4 = [19 x i8] c"\D7\A9\D7\9C\D7\95\D7\9D, \D7\A2\D7\95\D7\9C\D7\9D\00"
@.str.5 = [35 x i8] c"\CE\93\CE\B5\CE\B9\CE\B1 \CF\83\CE\B1\CF\82, \CF\84\CE\BF\CE\BD \CE\BA\CF\8C\CF\83\CE\BC\CE\BF\00"
@.str.6 = [43 x i8] c"\E3\81\93\E3\82\93\E3\81\AB\E3\81\A1\E3\81\AF\E3\80\81\E4\B8\96\E7\95\8C\E4\B8\AD\E3\81\AE\E3\81\BF\E3\81\AA\E3\81\95\E3\82\93\00"
@__const.main.test = [8 x i8*] [i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i32 0, i32 0), i8* null]
@.str.7 = [31 x i8] c"TEST[0] = %s (length: %d[%d])\0A\00"
@.str.8 = [3 x i8] c"OK\00"
@.str.9 = [5 x i8] c"FAIL\00"
@.str.10 = [31 x i8] c"TEST[1] = %s (length: %d[%d])\0A\00"
@.str.11 = [32 x i8] c"TEST[%d] = %s (length: %d[%d])\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [8 x i8*]
store i32 0, i32* %1
%4 = bitcast [8 x i8*]* %3 to i8*
%5 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 0
%6 = load i8*, i8** %5
%7 = call i64 @is_utf8_str(i8* %6, i32 0)
%8 = icmp ne i64 %7, 0
%9 = zext i1 %8 to i64
%10 = select i1 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0)
%11 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 0
%12 = load i8*, i8** %11
%13 = call i32 @utf8_strlen(i8* %12, i32 0)
%14 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 0
%15 = load i8*, i8** %14
%16 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 0
%17 = load i8*, i8** %16
%18 = call i32 @strlen(i8* %17)
%19 = call i32 @utf8_strlen_sse2(i8* %15, i32 %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i8* %10, i32 %13, i32 %19)
%21 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 1
%22 = load i8*, i8** %21
%23 = call i64 @is_utf8_str(i8* %22, i32 0)
%24 = icmp ne i64 %23, 0
%25 = zext i1 %24 to i64
%26 = select i1 %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0)
%27 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 1
%28 = load i8*, i8** %27
%29 = call i32 @utf8_strlen(i8* %28, i32 0)
%30 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 1
%31 = load i8*, i8** %30
%32 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 1
%33 = load i8*, i8** %32
%34 = call i32 @strlen(i8* %33)
%35 = call i32 @utf8_strlen_sse2(i8* %31, i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* %26, i32 %29, i32 %35)
store i32 2, i32* %2
br label %37
37: ; preds = %69, %0
%38 = load i32, i32* %2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 %39
%41 = load i8*, i8** %40
%42 = icmp ne i8* %41, null
br i1 %42, label %43, label %72
43: ; preds = %37
%44 = load i32, i32* %2
%45 = load i32, i32* %2
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 %46
%48 = load i8*, i8** %47
%49 = call i64 @is_utf8_str(i8* %48, i32 0)
%50 = icmp ne i64 %49, 0
%51 = zext i1 %50 to i64
%52 = select i1 %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0)
%53 = load i32, i32* %2
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 %54
%56 = load i8*, i8** %55
%57 = call i32 @utf8_strlen(i8* %56, i32 0)
%58 = load i32, i32* %2
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 %59
%61 = load i8*, i8** %60
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [8 x i8*], [8 x i8*]* %3, i64 0, i64 %63
%65 = load i8*, i8** %64
%66 = call i32 @strlen(i8* %65)
%67 = call i32 @utf8_strlen_sse2(i8* %61, i32 %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %44, i8* %52, i32 %57, i32 %67)
br label %69
69: ; preds = %43
%70 = load i32, i32* %2
%71 = add nsw i32 %70, 1
store i32 %71, i32* %2
br label %37
72: ; preds = %37
ret i32 0
}

LLVM IR (-O2):
@.str = [40 x i8] c"\D1\8D\D1\82\D0\BE \D0\BF\D1\80\D0\BE\D1\81\D1\82\D0\BE\D0\B9 \D1\82\D0\B5\D1\81\D1\82 123 asxd\00"
@.str.1 = [6 x i8] c"\C2test\00"
@.str.2 = [18 x i8] c"\D8\AE\D9\88\D8\B4\D8\8C \D8\AF\D9\86\DB\8C\D8\A7\00"
@.str.3 = [16 x i8] c"\E4\BD\A0\E5\A5\BD\EF\BC\8C\E4\B8\96\E7\95\8C\00"
@.str.4 = [19 x i8] c"\D7\A9\D7\9C\D7\95\D7\9D, \D7\A2\D7\95\D7\9C\D7\9D\00"
@.str.5 = [35 x i8] c"\CE\93\CE\B5\CE\B9\CE\B1 \CF\83\CE\B1\CF\82, \CF\84\CE\BF\CE\BD \CE\BA\CF\8C\CF\83\CE\BC\CE\BF\00"
@.str.6 = [43 x i8] c"\E3\81\93\E3\82\93\E3\81\AB\E3\81\A1\E3\81\AF\E3\80\81\E4\B8\96\E7\95\8C\E4\B8\AD\E3\81\AE\E3\81\BF\E3\81\AA\E3\81\95\E3\82\93\00"
@.str.7 = [31 x i8] c"TEST[0] = %s (length: %d[%d])\0A\00"
@.str.8 = [3 x i8] c"OK\00"
@.str.9 = [5 x i8] c"FAIL\00"
@.str.10 = [31 x i8] c"TEST[1] = %s (length: %d[%d])\0A\00"
@.str.11 = [32 x i8] c"TEST[%d] = %s (length: %d[%d])\0A\00"
define i32 @main() {
%1 = tail call i64 @is_utf8_str(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0)
%4 = tail call i32 @utf8_strlen(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 0)
%5 = tail call i32 @strlen(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @utf8_strlen_sse2(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i8* %3, i32 %4, i32 %6)
%8 = tail call i64 @is_utf8_str(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 0)
%9 = icmp eq i64 %8, 0
%10 = select i1 %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0)
%11 = tail call i32 @utf8_strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 0)
%12 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%13 = tail call i32 @utf8_strlen_sse2(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* %10, i32 %11, i32 %13)
%15 = tail call i64 @is_utf8_str(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 0)
%16 = icmp eq i64 %15, 0
%17 = select i1 %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0)
%18 = tail call i32 @utf8_strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 0)
%19 = tail call i32 @strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%20 = tail call i32 @utf8_strlen_sse2(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %19)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 2, i8* %17, i32 %18, i32 %20)
%22 = tail call i64 @is_utf8_str(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 0)
%23 = icmp eq i64 %22, 0
%24 = select i1 %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0)
%25 = tail call i32 @utf8_strlen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 0)
%26 = tail call i32 @strlen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%27 = tail call i32 @utf8_strlen_sse2(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 3, i8* %24, i32 %25, i32 %27)
%29 = tail call i64 @is_utf8_str(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0)
%30 = icmp eq i64 %29, 0
%31 = select i1 %30, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0)
%32 = tail call i32 @utf8_strlen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0)
%33 = tail call i32 @strlen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%34 = tail call i32 @utf8_strlen_sse2(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 4, i8* %31, i32 %32, i32 %34)
%36 = tail call i64 @is_utf8_str(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 0)
%37 = icmp eq i64 %36, 0
%38 = select i1 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0)
%39 = tail call i32 @utf8_strlen(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 0)
%40 = tail call i32 @strlen(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%41 = tail call i32 @utf8_strlen_sse2(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %40)
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 5, i8* %38, i32 %39, i32 %41)
%43 = tail call i64 @is_utf8_str(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 0)
%44 = icmp eq i64 %43, 0
%45 = select i1 %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0)
%46 = tail call i32 @utf8_strlen(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 0)
%47 = tail call i32 @strlen(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
%48 = tail call i32 @utf8_strlen_sse2(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %47)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 6, i8* %45, i32 %46, i32 %48)
ret i32 0
}