#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*/ abort();
int backtrace(void **, int);
scalar_t__ backtrace_symbols(void **, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *,
                           int, char *);
int /*<<< orphan*/ free(char **);
int /*<<< orphan*/ simple_now_iso8601(char *);
char *simple_string_to_upper(char *);
scalar_t__ snprintf(char *, int, char *, char *);
int /*<<< orphan*/ stderr;
int strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char const *);
int /*<<< orphan*/ va_list_print(char *, char *, int, int);
int simple_string_cmp_ignore_case(const char *str1, const char *str2) {
  if (!(strlen(str1) < 2048)) {
    char __log_time__[64] = {0};
    simple_now_iso8601(__log_time__);
    char __buffer_stack__[1024];
    void *__array__[10];
    char **__strframe__ = NULL;
    int __i__, __idx__ = 0, __n__ = backtrace(__array__, 10);
    __strframe__ = (char **)backtrace_symbols(__array__, __n__);
    for (__i__ = 0; __i__ < __n__; __i__++)
      __idx__ += snprintf(__idx__ + __buffer_stack__, 256, "%s\n",
                          __strframe__[__i__]);
    free(__strframe__);
    char __log_message__[512] = {0};
    va_list_print(__log_message__,
                  "Length(%d) of input str1 more than STRING_TOOL_STR_LEN(%d).",
                  strlen(str1), 2048);
    fprintf(stderr, "%s, Assert fail ! %s\t[%s:%d]\n%s\n", (__log_time__),
            (__log_message__),
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/red-chen/lemon/refs/heads/master/src/"
            "string_tool.c",
            159, __buffer_stack__);
    abort();
  };
  if (!(strlen(str2) < 2048)) {
    char __log_time__[64] = {0};
    simple_now_iso8601(__log_time__);
    char __buffer_stack__[1024];
    void *__array__[10];
    char **__strframe__ = NULL;
    int __i__, __idx__ = 0, __n__ = backtrace(__array__, 10);
    __strframe__ = (char **)backtrace_symbols(__array__, __n__);
    for (__i__ = 0; __i__ < __n__; __i__++)
      __idx__ += snprintf(__idx__ + __buffer_stack__, 256, "%s\n",
                          __strframe__[__i__]);
    free(__strframe__);
    char __log_message__[512] = {0};
    va_list_print(__log_message__,
                  "Length(%d) of input str2 more than STRING_TOOL_STR_LEN(%d).",
                  strlen(str2), 2048);
    fprintf(stderr, "%s, Assert fail ! %s\t[%s:%d]\n%s\n", (__log_time__),
            (__log_message__),
            "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
            "2022-01-22/02-19-57/repos/red-chen/lemon/refs/heads/master/src/"
            "string_tool.c",
            162, __buffer_stack__);
    abort();
  };
  char buf1[2048] = {0};
  char buf2[2048] = {0};
  strcpy(buf1, str1);
  strcpy(buf2, str2);
  char *s1 = simple_string_to_upper(buf1);
  char *s2 = simple_string_to_upper(buf2);
  return strcmp(s1, s2);
}


x86 assembly (clang, -O0):
<simple_string_cmp_ignore_case>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1da0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1070 <strlen@plt>
cmp    $0x800,%eax
jl     135c <simple_string_cmp_ignore_case+0x18c>
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   10a0 <memset@plt>
lea    -0x50(%rbp),%rdi
call   10b0 <simple_now_iso8601@plt>
movq   $0x0,-0x4a8(%rbp)
movl   $0x0,-0x4b0(%rbp)
lea    -0x4a0(%rbp),%rdi
mov    $0xa,%esi
call   1080 <backtrace@plt>
mov    %eax,-0x4b4(%rbp)
lea    -0x4a0(%rbp),%rdi
mov    -0x4b4(%rbp),%esi
call   1060 <backtrace_symbols@plt>
mov    %rax,-0x4a8(%rbp)
movl   $0x0,-0x4ac(%rbp)
mov    -0x4ac(%rbp),%eax
cmp    -0x4b4(%rbp),%eax
jge    12cd <simple_string_cmp_ignore_case+0xfd>
mov    -0x4b0(%rbp),%eax
lea    -0x450(%rbp),%rdi
cltq
add    %rax,%rdi
mov    -0x4a8(%rbp),%rax
movslq -0x4ac(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
mov    $0x100,%esi
lea    0xdb8(%rip),%rdx
call   1090 <snprintf@plt>
mov    %rax,%rcx
movslq -0x4b0(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x4b0(%rbp)
mov    -0x4ac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4ac(%rbp)
jmp    125f <simple_string_cmp_ignore_case+0x8f>
mov    -0x4a8(%rbp),%rdi
call   1030 <free@plt>
lea    -0x6c0(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   10a0 <memset@plt>
lea    -0x6c0(%rbp),%rax
mov    %rax,-0x1d88(%rbp)
mov    -0x8(%rbp),%rdi
call   1070 <strlen@plt>
mov    -0x1d88(%rbp),%rdi
mov    %eax,%edx
lea    0xced(%rip),%rsi
mov    $0x800,%ecx
call   10f0 <va_list_print@plt>
mov    0x2cbc(%rip),%rax
mov    (%rax),%edi
lea    -0x50(%rbp),%rdx
lea    -0x6c0(%rbp),%rcx
lea    -0x450(%rbp),%rax
lea    0xcfd(%rip),%rsi
lea    0xd17(%rip),%r8
mov    $0x9f,%r9d
mov    %rax,(%rsp)
call   10e0 <fprintf@plt>
mov    $0x0,%al
call   1040 <abort@plt>
mov    -0x10(%rbp),%rdi
call   1070 <strlen@plt>
cmp    $0x800,%eax
jl     14de <simple_string_cmp_ignore_case+0x30e>
lea    -0x700(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   10a0 <memset@plt>
lea    -0x700(%rbp),%rdi
call   10b0 <simple_now_iso8601@plt>
movq   $0x0,-0xb58(%rbp)
movl   $0x0,-0xb60(%rbp)
lea    -0xb50(%rbp),%rdi
mov    $0xa,%esi
call   1080 <backtrace@plt>
mov    %eax,-0xb64(%rbp)
lea    -0xb50(%rbp),%rdi
mov    -0xb64(%rbp),%esi
call   1060 <backtrace_symbols@plt>
mov    %rax,-0xb58(%rbp)
movl   $0x0,-0xb5c(%rbp)
mov    -0xb5c(%rbp),%eax
cmp    -0xb64(%rbp),%eax
jge    144c <simple_string_cmp_ignore_case+0x27c>
mov    -0xb60(%rbp),%eax
lea    -0xb00(%rbp),%rdi
cltq
add    %rax,%rdi
mov    -0xb58(%rbp),%rax
movslq -0xb5c(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
mov    $0x100,%esi
lea    0xc39(%rip),%rdx
call   1090 <snprintf@plt>
mov    %rax,%rcx
movslq -0xb60(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0xb60(%rbp)
mov    -0xb5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb5c(%rbp)
jmp    13de <simple_string_cmp_ignore_case+0x20e>
mov    -0xb58(%rbp),%rdi
call   1030 <free@plt>
lea    -0xd70(%rbp),%rdi
xor    %esi,%esi
mov    $0x200,%edx
call   10a0 <memset@plt>
lea    -0xd70(%rbp),%rax
mov    %rax,-0x1d90(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <strlen@plt>
mov    -0x1d90(%rbp),%rdi
mov    %eax,%edx
lea    0xc58(%rip),%rsi
mov    $0x800,%ecx
call   10f0 <va_list_print@plt>
mov    0x2b3d(%rip),%rax
mov    (%rax),%edi
lea    -0x700(%rbp),%rdx
lea    -0xd70(%rbp),%rcx
lea    -0xb00(%rbp),%rax
lea    0xb7b(%rip),%rsi
lea    0xb95(%rip),%r8
mov    $0xa2,%r9d
mov    %rax,(%rsp)
call   10e0 <fprintf@plt>
mov    $0x0,%al
call   1040 <abort@plt>
lea    -0x1570(%rbp),%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   10a0 <memset@plt>
lea    -0x1d70(%rbp),%rdi
xor    %esi,%esi
mov    $0x800,%edx
call   10a0 <memset@plt>
lea    -0x1570(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1050 <strcpy@plt>
lea    -0x1d70(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <strcpy@plt>
lea    -0x1570(%rbp),%rdi
call   10c0 <simple_string_to_upper@plt>
mov    %rax,-0x1d78(%rbp)
lea    -0x1d70(%rbp),%rdi
call   10c0 <simple_string_to_upper@plt>
mov    %rax,-0x1d80(%rbp)
mov    -0x1d78(%rbp),%rdi
mov    -0x1d80(%rbp),%rsi
call   10d0 <strcmp@plt>
add    $0x1da0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<simple_string_cmp_ignore_case>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10a8,%rsp
mov    %rsi,%r14
mov    %rdi,%r12
call   1070 <strlen@plt>
cmp    $0x800,%eax
jge    127e <simple_string_cmp_ignore_case+0xae>
mov    %r14,%rdi
call   1070 <strlen@plt>
cmp    $0x800,%eax
jge    137e <simple_string_cmp_ignore_case+0x1ae>
lea    0xa0(%rsp),%rbp
mov    $0x800,%edx
mov    %rbp,%rdi
xor    %esi,%esi
call   10a0 <memset@plt>
lea    0x8a0(%rsp),%rbx
mov    $0x800,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   10a0 <memset@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   1050 <strcpy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <strcpy@plt>
mov    %rbp,%rdi
call   10c0 <simple_string_to_upper@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   10c0 <simple_string_to_upper@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   10d0 <strcmp@plt>
add    $0x10a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xorps  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
lea    0x10(%rsp),%rdi
call   10b0 <simple_now_iso8601@plt>
lea    0x50(%rsp),%r14
mov    %r14,%rdi
mov    $0xa,%esi
call   1080 <backtrace@plt>
mov    %eax,%ebp
mov    %r14,%rdi
mov    %eax,%esi
call   1060 <backtrace_symbols@plt>
mov    %rax,%r14
test   %ebp,%ebp
jle    130b <simple_string_cmp_ignore_case+0x13b>
mov    %ebp,%r13d
xor    %ebp,%ebp
lea    0xd89(%rip),%r15
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %eax,%rbx
lea    (%rsp,%rbx,1),%rdi
add    $0xa0,%rdi
mov    (%r14,%rbp,8),%rcx
mov    $0x100,%esi
mov    %r15,%rdx
call   1090 <snprintf@plt>
add    %rbx,%rax
add    $0x1,%rbp
cmp    %rbp,%r13
jne    12e0 <simple_string_cmp_ignore_case+0x110>
mov    %r14,%rdi
call   1030 <free@plt>
lea    0x8a0(%rsp),%r14
mov    $0x200,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   10a0 <memset@plt>
mov    %r12,%rdi
call   1070 <strlen@plt>
lea    0xcc7(%rip),%rsi
mov    %r14,%rdi
mov    %eax,%edx
mov    $0x800,%ecx
call   10f0 <va_list_print@plt>
mov    0x2c91(%rip),%rax
mov    (%rax),%edi
lea    0xa0(%rsp),%rax
mov    %rax,(%rsp)
lea    0xcd8(%rip),%rsi
lea    0xcf2(%rip),%r8
lea    0x10(%rsp),%rdx
mov    %r14,%rcx
mov    $0x9f,%r9d
jmp    1479 <simple_string_cmp_ignore_case+0x2a9>
xorps  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
lea    0x10(%rsp),%rdi
call   10b0 <simple_now_iso8601@plt>
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1080 <backtrace@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    %eax,%esi
call   1060 <backtrace_symbols@plt>
mov    %rax,%r12
test   %ebp,%ebp
jle    140b <simple_string_cmp_ignore_case+0x23b>
mov    %ebp,%r13d
xor    %ebx,%ebx
lea    0xc89(%rip),%r15
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %eax,%rbp
lea    (%rsp,%rbp,1),%rdi
add    $0xa0,%rdi
mov    (%r12,%rbx,8),%rcx
mov    $0x100,%esi
mov    %r15,%rdx
call   1090 <snprintf@plt>
add    %rbp,%rax
add    $0x1,%rbx
cmp    %rbx,%r13
jne    13e0 <simple_string_cmp_ignore_case+0x210>
mov    %r12,%rdi
call   1030 <free@plt>
lea    0x8a0(%rsp),%rbx
mov    $0x200,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   10a0 <memset@plt>
mov    %r14,%rdi
call   1070 <strlen@plt>
lea    0xcb1(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
mov    $0x800,%ecx
call   10f0 <va_list_print@plt>
mov    0x2b91(%rip),%rax
mov    (%rax),%edi
lea    0xa0(%rsp),%rax
mov    %rax,(%rsp)
lea    0xbd8(%rip),%rsi
lea    0xbf2(%rip),%r8
lea    0x10(%rsp),%rdx
mov    %rbx,%rcx
mov    $0xa2,%r9d
call   10e0 <fprintf@plt>
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [60 x i8] c"Length(%d) of input str1 more than STRING_TOOL_STR_LEN(%d).\00"
@stderr = global i32 0
@.str.2 = [33 x i8] c"%s, Assert fail ! %s\09[%s:%d]\0A%s\0A\00"
@.str.3 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/red-chen/lemon/refs/heads/master/src/string_tool.c\00"
@.str.4 = [60 x i8] c"Length(%d) of input str2 more than STRING_TOOL_STR_LEN(%d).\00"
define i32 @simple_string_cmp_ignore_case(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [64 x i8]
%6 = alloca [1024 x i8]
%7 = alloca [10 x i8*]
%8 = alloca i8**
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [512 x i8]
%13 = alloca [64 x i8]
%14 = alloca [1024 x i8]
%15 = alloca [10 x i8*]
%16 = alloca i8**
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca [512 x i8]
%21 = alloca [2048 x i8]
%22 = alloca [2048 x i8]
%23 = alloca i8*
%24 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%25 = load i8*, i8** %3
%26 = call i32 @strlen(i8* %25)
%27 = icmp slt i32 %26, 2048
br i1 %27, label %74, label %28
28: ; preds = %2
%29 = bitcast [64 x i8]* %5 to i8*
%30 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%31 = call i32 @simple_now_iso8601(i8* %30)
store i8** null, i8*** %8
store i32 0, i32* %10
%32 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 0
%33 = call i32 @backtrace(i8** %32, i32 10)
store i32 %33, i32* %11
%34 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 0
%35 = load i32, i32* %11
%36 = call i64 @backtrace_symbols(i8** %34, i32 %35)
%37 = inttoptr i64 %36 to i8**
store i8** %37, i8*** %8
store i32 0, i32* %9
br label %38
38: ; preds = %57, %28
%39 = load i32, i32* %9
%40 = load i32, i32* %11
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %60
42: ; preds = %38
%43 = load i32, i32* %10
%44 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%45 = sext i32 %43 to i64
%46 = getelementptr inbounds i8, i8* %44, i64 %45
%47 = load i8**, i8*** %8
%48 = load i32, i32* %9
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8*, i8** %47, i64 %49
%51 = load i8*, i8** %50
%52 = call i64 @snprintf(i8* %46, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %51)
%53 = load i32, i32* %10
%54 = sext i32 %53 to i64
%55 = add nsw i64 %54, %52
%56 = trunc i64 %55 to i32
store i32 %56, i32* %10
br label %57
57: ; preds = %42
%58 = load i32, i32* %9
%59 = add nsw i32 %58, 1
store i32 %59, i32* %9
br label %38
60: ; preds = %38
%61 = load i8**, i8*** %8
%62 = call i32 @free(i8** %61)
%63 = bitcast [512 x i8]* %12 to i8*
%64 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%65 = load i8*, i8** %3
%66 = call i32 @strlen(i8* %65)
%67 = call i32 @va_list_print(i8* %64, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i32 %66, i32 2048)
%68 = load i32, i32* @stderr
%69 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%70 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%71 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%72 = call i32 @fprintf(i32 %68, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %69, i8* %70, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.3, i64 0, i64 0), i32 159, i8* %71)
%73 = call i32 (...) @abort()
unreachable
74: ; preds = %2
%75 = load i8*, i8** %4
%76 = call i32 @strlen(i8* %75)
%77 = icmp slt i32 %76, 2048
br i1 %77, label %124, label %78
78: ; preds = %74
%79 = bitcast [64 x i8]* %13 to i8*
%80 = getelementptr inbounds [64 x i8], [64 x i8]* %13, i64 0, i64 0
%81 = call i32 @simple_now_iso8601(i8* %80)
store i8** null, i8*** %16
store i32 0, i32* %18
%82 = getelementptr inbounds [10 x i8*], [10 x i8*]* %15, i64 0, i64 0
%83 = call i32 @backtrace(i8** %82, i32 10)
store i32 %83, i32* %19
%84 = getelementptr inbounds [10 x i8*], [10 x i8*]* %15, i64 0, i64 0
%85 = load i32, i32* %19
%86 = call i64 @backtrace_symbols(i8** %84, i32 %85)
%87 = inttoptr i64 %86 to i8**
store i8** %87, i8*** %16
store i32 0, i32* %17
br label %88
88: ; preds = %107, %78
%89 = load i32, i32* %17
%90 = load i32, i32* %19
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %110
92: ; preds = %88
%93 = load i32, i32* %18
%94 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%95 = sext i32 %93 to i64
%96 = getelementptr inbounds i8, i8* %94, i64 %95
%97 = load i8**, i8*** %16
%98 = load i32, i32* %17
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8*, i8** %97, i64 %99
%101 = load i8*, i8** %100
%102 = call i64 @snprintf(i8* %96, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %101)
%103 = load i32, i32* %18
%104 = sext i32 %103 to i64
%105 = add nsw i64 %104, %102
%106 = trunc i64 %105 to i32
store i32 %106, i32* %18
br label %107
107: ; preds = %92
%108 = load i32, i32* %17
%109 = add nsw i32 %108, 1
store i32 %109, i32* %17
br label %88
110: ; preds = %88
%111 = load i8**, i8*** %16
%112 = call i32 @free(i8** %111)
%113 = bitcast [512 x i8]* %20 to i8*
%114 = getelementptr inbounds [512 x i8], [512 x i8]* %20, i64 0, i64 0
%115 = load i8*, i8** %4
%116 = call i32 @strlen(i8* %115)
%117 = call i32 @va_list_print(i8* %114, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0), i32 %116, i32 2048)
%118 = load i32, i32* @stderr
%119 = getelementptr inbounds [64 x i8], [64 x i8]* %13, i64 0, i64 0
%120 = getelementptr inbounds [512 x i8], [512 x i8]* %20, i64 0, i64 0
%121 = getelementptr inbounds [1024 x i8], [1024 x i8]* %14, i64 0, i64 0
%122 = call i32 @fprintf(i32 %118, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %119, i8* %120, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.3, i64 0, i64 0), i32 162, i8* %121)
%123 = call i32 (...) @abort()
unreachable
124: ; preds = %74
%125 = bitcast [2048 x i8]* %21 to i8*
%126 = bitcast [2048 x i8]* %22 to i8*
%127 = getelementptr inbounds [2048 x i8], [2048 x i8]* %21, i64 0, i64 0
%128 = load i8*, i8** %3
%129 = call i32 @strcpy(i8* %127, i8* %128)
%130 = getelementptr inbounds [2048 x i8], [2048 x i8]* %22, i64 0, i64 0
%131 = load i8*, i8** %4
%132 = call i32 @strcpy(i8* %130, i8* %131)
%133 = getelementptr inbounds [2048 x i8], [2048 x i8]* %21, i64 0, i64 0
%134 = call i8* @simple_string_to_upper(i8* %133)
store i8* %134, i8** %23
%135 = getelementptr inbounds [2048 x i8], [2048 x i8]* %22, i64 0, i64 0
%136 = call i8* @simple_string_to_upper(i8* %135)
store i8* %136, i8** %24
%137 = load i8*, i8** %23
%138 = load i8*, i8** %24
%139 = call i32 @strcmp(i8* %137, i8* %138)
ret i32 %139
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [60 x i8] c"Length(%d) of input str1 more than STRING_TOOL_STR_LEN(%d).\00"
@stderr = global i32 0
@.str.2 = [33 x i8] c"%s, Assert fail ! %s\09[%s:%d]\0A%s\0A\00"
@.str.3 = [141 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/red-chen/lemon/refs/heads/master/src/string_tool.c\00"
@.str.4 = [60 x i8] c"Length(%d) of input str2 more than STRING_TOOL_STR_LEN(%d).\00"
define i32 @simple_string_cmp_ignore_case(i8* %0, i8* %1) {
%3 = alloca [64 x i8]
%4 = alloca [1024 x i8]
%5 = alloca [10 x i8*]
%6 = alloca [512 x i8]
%7 = alloca [64 x i8]
%8 = alloca [1024 x i8]
%9 = alloca [10 x i8*]
%10 = alloca [512 x i8]
%11 = alloca [2048 x i8]
%12 = alloca [2048 x i8]
%13 = tail call i32 @strlen(i8* %0)
%14 = icmp slt i32 %13, 2048
br i1 %14, label %47, label %15
15: ; preds = %2
%16 = getelementptr inbounds [64 x i8], [64 x i8]* %3, i64 0, i64 0
%17 = call i32 @simple_now_iso8601(i8* %16)
%18 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%19 = bitcast [10 x i8*]* %5 to i8*
%20 = getelementptr inbounds [10 x i8*], [10 x i8*]* %5, i64 0, i64 0
%21 = call i32 @backtrace(i8** %20, i32 10)
%22 = call i64 @backtrace_symbols(i8** %20, i32 %21)
%23 = inttoptr i64 %22 to i8**
%24 = icmp sgt i32 %21, 0
br i1 %24, label %25, label %39
25: ; preds = %15
%26 = zext i32 %21 to i64
br label %27
27: ; preds = %25, %27
%28 = phi i64 [ 0, %25 ], [ %37, %27 ]
%29 = phi i64 [ 0, %25 ], [ %36, %27 ]
%30 = shl i64 %29, 32
%31 = ashr exact i64 %30, 32
%32 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 %31
%33 = getelementptr inbounds i8*, i8** %23, i64 %28
%34 = load i8*, i8** %33
%35 = call i64 @snprintf(i8* %32, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %34)
%36 = add nsw i64 %35, %31
%37 = add nuw nsw i64 %28, 1
%38 = icmp eq i64 %37, %26
br i1 %38, label %39, label %27
39: ; preds = %27, %15
%40 = call i32 @free(i8** %23)
%41 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%42 = call i32 @strlen(i8* %0)
%43 = call i32 @va_list_print(i8* %41, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i32 %42, i32 2048)
%44 = load i32, i32* @stderr
%45 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %16, i8* %41, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.3, i64 0, i64 0), i32 159, i8* %18)
%46 = call i32 (...) @abort()
unreachable
47: ; preds = %2
%48 = tail call i32 @strlen(i8* %1)
%49 = icmp slt i32 %48, 2048
br i1 %49, label %82, label %50
50: ; preds = %47
%51 = getelementptr inbounds [64 x i8], [64 x i8]* %7, i64 0, i64 0
%52 = call i32 @simple_now_iso8601(i8* %51)
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 0
%54 = bitcast [10 x i8*]* %9 to i8*
%55 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 0
%56 = call i32 @backtrace(i8** %55, i32 10)
%57 = call i64 @backtrace_symbols(i8** %55, i32 %56)
%58 = inttoptr i64 %57 to i8**
%59 = icmp sgt i32 %56, 0
br i1 %59, label %60, label %74
60: ; preds = %50
%61 = zext i32 %56 to i64
br label %62
62: ; preds = %60, %62
%63 = phi i64 [ 0, %60 ], [ %72, %62 ]
%64 = phi i64 [ 0, %60 ], [ %71, %62 ]
%65 = shl i64 %64, 32
%66 = ashr exact i64 %65, 32
%67 = getelementptr inbounds [1024 x i8], [1024 x i8]* %8, i64 0, i64 %66
%68 = getelementptr inbounds i8*, i8** %58, i64 %63
%69 = load i8*, i8** %68
%70 = call i64 @snprintf(i8* %67, i32 256, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %69)
%71 = add nsw i64 %70, %66
%72 = add nuw nsw i64 %63, 1
%73 = icmp eq i64 %72, %61
br i1 %73, label %74, label %62
74: ; preds = %62, %50
%75 = call i32 @free(i8** %58)
%76 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%77 = call i32 @strlen(i8* %1)
%78 = call i32 @va_list_print(i8* %76, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0), i32 %77, i32 2048)
%79 = load i32, i32* @stderr
%80 = call i32 @fprintf(i32 %79, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %51, i8* %76, i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.3, i64 0, i64 0), i32 162, i8* %53)
%81 = call i32 (...) @abort()
unreachable
82: ; preds = %47
%83 = getelementptr inbounds [2048 x i8], [2048 x i8]* %11, i64 0, i64 0
%84 = getelementptr inbounds [2048 x i8], [2048 x i8]* %12, i64 0, i64 0
%85 = call i32 @strcpy(i8* %83, i8* %0)
%86 = call i32 @strcpy(i8* %84, i8* %1)
%87 = call i8* @simple_string_to_upper(i8* %83)
%88 = call i8* @simple_string_to_upper(i8* %84)
%89 = call i32 @strcmp(i8* dereferenceable(1) %87, i8* dereferenceable(1) %88)
ret i32 %89
}