void test_str_to_upper_case() {
  {
    if (strcmp(str_to_upper_case("With my tongue"), "WITH MY TONGUE") == 0) {
      if (0 == 1)
        printf((0 == 1) ? "\033[1;37;42mOK\033[00m: %s (%s, %d)\n"
                        : "OK: %s (%s, %d)\n",
               __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/"
               "heads/master/utils/convertors/../str.h",
               771);
    } else
      printf("%s (%s %d): \"%s\" != \"%s\"\n", __func__,
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/heads/"
             "master/utils/convertors/../str.h",
             771, str_to_upper_case("With my tongue"), "WITH MY TONGUE");
  };
  {
    if (strcmp(str_to_upper_case("TONGUE"), "TONGUE") == 0) {
      if (0 == 1)
        printf((0 == 1) ? "\033[1;37;42mOK\033[00m: %s (%s, %d)\n"
                        : "OK: %s (%s, %d)\n",
               __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/"
               "heads/master/utils/convertors/../str.h",
               772);
    } else
      printf("%s (%s %d): \"%s\" != \"%s\"\n", __func__,
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/heads/"
             "master/utils/convertors/../str.h",
             772, str_to_upper_case("TONGUE"), "TONGUE");
  };
  {
    if (strcmp(str_to_upper_case(""), "") == 0) {
      if (0 == 1)
        printf((0 == 1) ? "\033[1;37;42mOK\033[00m: %s (%s, %d)\n"
                        : "OK: %s (%s, %d)\n",
               __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/"
               "heads/master/utils/convertors/../str.h",
               773);
    } else
      printf("%s (%s %d): \"%s\" != \"%s\"\n", __func__,
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/heads/"
             "master/utils/convertors/../str.h",
             773, str_to_upper_case(""), "");
  };
  {
    if (strcmp(str_to_upper_case("A123a"), "A123A") == 0) {
      if (0 == 1)
        printf((0 == 1) ? "\033[1;37;42mOK\033[00m: %s (%s, %d)\n"
                        : "OK: %s (%s, %d)\n",
               __func__,
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/"
               "heads/master/utils/convertors/../str.h",
               774);
    } else
      printf("%s (%s %d): \"%s\" != \"%s\"\n", __func__,
             "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/heads/"
             "master/utils/convertors/../str.h",
             774, str_to_upper_case("A123a"), "A123A");
  };
}


x86 assembly (clang, -O0):
<test_str_to_upper_case>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1050 <str_to_upper_case@plt>
movslq %eax,%rdi
lea    0xec3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    115f <test_str_to_upper_case+0x2f>
jmp    1198 <test_str_to_upper_case+0x68>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1050 <str_to_upper_case@plt>
mov    %eax,%r8d
lea    0xea7(%rip),%rdi
lea    0xeba(%rip),%rsi
lea    0xeca(%rip),%rdx
mov    $0x303,%ecx
lea    0xe7e(%rip),%r9
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1050 <str_to_upper_case@plt>
movslq %eax,%rdi
lea    0xe67(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11c3 <test_str_to_upper_case+0x93>
jmp    11fc <test_str_to_upper_case+0xcc>
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1050 <str_to_upper_case@plt>
mov    %eax,%r8d
lea    0xe43(%rip),%rdi
lea    0xe56(%rip),%rsi
lea    0xe66(%rip),%rdx
mov    $0x304,%ecx
lea    0xe22(%rip),%r9
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1050 <str_to_upper_case@plt>
movslq %eax,%rdi
lea    0xe23(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1227 <test_str_to_upper_case+0xf7>
jmp    1260 <test_str_to_upper_case+0x130>
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1050 <str_to_upper_case@plt>
mov    %eax,%r8d
lea    0xddf(%rip),%rdi
lea    0xdf2(%rip),%rsi
lea    0xe02(%rip),%rdx
mov    $0x305,%ecx
lea    0xdde(%rip),%r9
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1050 <str_to_upper_case@plt>
movslq %eax,%rdi
lea    0xe79(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    128b <test_str_to_upper_case+0x15b>
jmp    12c4 <test_str_to_upper_case+0x194>
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1050 <str_to_upper_case@plt>
mov    %eax,%r8d
lea    0xd7b(%rip),%rdi
lea    0xd8e(%rip),%rsi
lea    0xd9e(%rip),%rdx
mov    $0x306,%ecx
lea    0xe34(%rip),%r9
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_str_to_upper_case>:
push   %rbx
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1050 <str_to_upper_case@plt>
movslq %eax,%rdi
lea    0xec6(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     118b <test_str_to_upper_case+0x5b>
lea    0xea7(%rip),%rdi
xor    %eax,%eax
call   1050 <str_to_upper_case@plt>
lea    0xeb7(%rip),%rdi
lea    0xeca(%rip),%rsi
lea    0xeda(%rip),%rdx
lea    0xe93(%rip),%r9
mov    $0x303,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe85(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <str_to_upper_case@plt>
movslq %eax,%rdi
mov    %rbx,%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     11e3 <test_str_to_upper_case+0xb3>
lea    0xe65(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <str_to_upper_case@plt>
lea    0xe5b(%rip),%rdi
lea    0xe6e(%rip),%rsi
lea    0xe7e(%rip),%rdx
mov    $0x304,%ecx
mov    %eax,%r8d
mov    %rbx,%r9
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe4d(%rip),%rdi
xor    %eax,%eax
call   1050 <str_to_upper_case@plt>
cltq
cmpb   $0x0,(%rax)
je     1230 <test_str_to_upper_case+0x100>
lea    0xe38(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <str_to_upper_case@plt>
lea    0xe0e(%rip),%rdi
lea    0xe21(%rip),%rsi
lea    0xe31(%rip),%rdx
mov    $0x305,%ecx
mov    %eax,%r8d
mov    %rbx,%r9
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
xor    %eax,%eax
call   1050 <str_to_upper_case@plt>
movslq %eax,%rdi
lea    0xea9(%rip),%rsi
call   1040 <strcmp@plt>
test   %eax,%eax
je     128b <test_str_to_upper_case+0x15b>
lea    0xe93(%rip),%rdi
xor    %eax,%eax
call   1050 <str_to_upper_case@plt>
lea    0xdb8(%rip),%rdi
lea    0xdcb(%rip),%rsi
lea    0xddb(%rip),%rdx
lea    0xe76(%rip),%r9
mov    $0x306,%ecx
mov    %eax,%r8d
xor    %eax,%eax
pop    %rbx
jmp    1030 <printf@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"With my tongue\00"
@.str.1 = [15 x i8] c"WITH MY TONGUE\00"
@.str.2 = [26 x i8] c"%s (%s %d): \22%s\22 != \22%s\22\0A\00"
@__func__.test_str_to_upper_case = [23 x i8] c"test_str_to_upper_case\00"
@.str.3 = [156 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/heads/master/utils/convertors/../str.h\00"
@.str.4 = [7 x i8] c"TONGUE\00"
@.str.5 = [1 x i8] zeroinitializer
@.str.6 = [6 x i8] c"A123a\00"
@.str.7 = [6 x i8] c"A123A\00"
define void @test_str_to_upper_case() {
%1 = call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = sext i32 %1 to i64
%3 = inttoptr i64 %2 to i8*
%4 = call i32 @strcmp(i8* %3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %0
br label %10
7: ; preds = %0
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__func__.test_str_to_upper_case, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0), i32 771, i32 %8, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %7, %6
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to i8*
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %10
br label %20
17: ; preds = %10
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__func__.test_str_to_upper_case, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0), i32 772, i32 %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %20
20: ; preds = %17, %16
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
%22 = sext i32 %21 to i64
%23 = inttoptr i64 %22 to i8*
%24 = call i32 @strcmp(i8* %23, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %20
br label %30
27: ; preds = %20
%28 = call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__func__.test_str_to_upper_case, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0), i32 773, i32 %28, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
br label %30
30: ; preds = %27, %26
%31 = call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i8*
%34 = call i32 @strcmp(i8* %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %30
br label %40
37: ; preds = %30
%38 = call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__func__.test_str_to_upper_case, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0), i32 774, i32 %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %40
40: ; preds = %37, %36
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"With my tongue\00"
@.str.1 = [15 x i8] c"WITH MY TONGUE\00"
@.str.2 = [26 x i8] c"%s (%s %d): \22%s\22 != \22%s\22\0A\00"
@__func__.test_str_to_upper_case = [23 x i8] c"test_str_to_upper_case\00"
@.str.3 = [156 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/setivolkylany/c-utils/refs/heads/master/utils/convertors/../str.h\00"
@.str.4 = [7 x i8] c"TONGUE\00"
@.str.5 = [1 x i8] zeroinitializer
@.str.6 = [6 x i8] c"A123a\00"
@.str.7 = [6 x i8] c"A123A\00"
define void @test_str_to_upper_case() {
%1 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = sext i32 %1 to i64
%3 = inttoptr i64 %2 to i8*
%4 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(15) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__func__.test_str_to_upper_case, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0), i32 771, i32 %7, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %9
9: ; preds = %0, %6
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i8*
%13 = tail call i32 @strcmp(i8* dereferenceable(1) %12, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %9
%16 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__func__.test_str_to_upper_case, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0), i32 772, i32 %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %18
18: ; preds = %9, %15
%19 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i8*
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %18
%25 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__func__.test_str_to_upper_case, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0), i32 773, i32 %25, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.5, i64 0, i64 0))
br label %27
27: ; preds = %18, %24
%28 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%29 = sext i32 %28 to i64
%30 = inttoptr i64 %29 to i8*
%31 = tail call i32 @strcmp(i8* dereferenceable(1) %30, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %27
%34 = tail call i32 (i8*, ...) bitcast (i32 (...)* @str_to_upper_case to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__func__.test_str_to_upper_case, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.3, i64 0, i64 0), i32 774, i32 %34, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %36
36: ; preds = %27, %33
ret void
}