void case_hello(void *fxtr) {
  const char *a = "HELLO";
  const char *b = "hello";
  do {
    const char *x = ("hello");
    const char *y = (a);
    should_cmp_str_(x, y, "\"hello\"", "a", strcmp(x, y), "!=",
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/9beach/should/refs/"
                    "heads/master/tests/test_simple.c",
                    10, __func__);
  } while (0);
  do {
    const char *x = ("HELLO");
    const char *y = (b);
    should_cmp_str_(x, y, "\"HELLO\"", "b", strcmp(x, y), "!=",
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/9beach/should/refs/"
                    "heads/master/tests/test_simple.c",
                    11, __func__);
  } while (0);
  do {
    const char *x = ("hello");
    const char *y = (b);
    should_cmp_str_(x, y, "\"hello\"", "b", !strcmp(x, y), "==",
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/9beach/should/refs/"
                    "heads/master/tests/test_simple.c",
                    12, __func__);
  } while (0);
}


x86 assembly (clang, -O0):
<case_hello>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xeca(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xf65(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xf5a(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1030 <strcmp@plt>
mov    -0x58(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    %eax,%r8d
lea    0xe7f(%rip),%rdx
lea    0xe80(%rip),%rcx
lea    0xe7b(%rip),%r9
lea    0xe77(%rip),%r10
lea    0xefe(%rip),%rax
mov    %r10,(%rsp)
movl   $0xa,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1040 <should_cmp_str_@plt>
jmp    11c0 <case_hello+0xa0>
lea    0xe39(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <strcmp@plt>
mov    -0x68(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    %eax,%r8d
lea    0xeaa(%rip),%rdx
lea    0xeab(%rip),%rcx
lea    0xe00(%rip),%r9
lea    0xdfc(%rip),%r10
lea    0xe83(%rip),%rax
mov    %r10,(%rsp)
movl   $0xb,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1040 <should_cmp_str_@plt>
jmp    123b <case_hello+0x11b>
lea    0xe64(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1030 <strcmp@plt>
mov    -0x78(%rbp),%rdi
mov    -0x70(%rbp),%rsi
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%r8d
lea    0xd7e(%rip),%rdx
lea    0xe25(%rip),%rcx
lea    0xe20(%rip),%r9
lea    0xd76(%rip),%r10
lea    0xdfd(%rip),%rax
mov    %r10,(%rsp)
movl   $0xc,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1040 <should_cmp_str_@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<case_hello>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
sub    $0x8,%rsp
lea    0xf7b(%rip),%r14
lea    0xee6(%rip),%rbp
lea    0xf72(%rip),%rbx
lea    0xec5(%rip),%r15
lea    0xec4(%rip),%rdx
lea    0xec5(%rip),%rcx
lea    0xec0(%rip),%r12
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%r8d
mov    %r12,%r9
xor    %eax,%eax
push   %r14
push   $0xa
push   %rbp
call   1030 <should_cmp_str_@plt>
add    $0x18,%rsp
lea    0xf36(%rip),%rdx
lea    0xf37(%rip),%r13
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r13,%rcx
mov    $0xffffffff,%r8d
mov    %r12,%r9
xor    %eax,%eax
push   %r14
push   $0xb
push   %rbp
call   1030 <should_cmp_str_@plt>
add    $0x18,%rsp
lea    0xf10(%rip),%r9
mov    %rbx,%rdi
mov    %rbx,%rsi
lea    0xe53(%rip),%rdx
mov    %r13,%rcx
mov    $0x1,%r8d
xor    %eax,%eax
push   %r14
push   $0xc
push   %rbp
call   1030 <should_cmp_str_@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"HELLO\00"
@.str.1 = [6 x i8] c"hello\00"
@.str.2 = [8 x i8] c"\22hello\22\00"
@.str.3 = [2 x i8] c"a\00"
@.str.4 = [3 x i8] c"!=\00"
@.str.5 = [142 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/9beach/should/refs/heads/master/tests/test_simple.c\00"
@__func__.case_hello = [11 x i8] c"case_hello\00"
@.str.6 = [8 x i8] c"\22HELLO\22\00"
@.str.7 = [2 x i8] c"b\00"
@.str.8 = [3 x i8] c"==\00"
define void @case_hello(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %4
br label %11
11: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %5
%12 = load i8*, i8** %3
store i8* %12, i8** %6
%13 = load i8*, i8** %5
%14 = load i8*, i8** %6
%15 = load i8*, i8** %5
%16 = load i8*, i8** %6
%17 = call i32 @strcmp(i8* %15, i8* %16)
%18 = call i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @should_cmp_str_ to i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...)*)(i8* %13, i8* %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.5, i64 0, i64 0), i32 10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__func__.case_hello, i64 0, i64 0))
br label %19
19: ; preds = %11
br label %20
20: ; preds = %19
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %7
%21 = load i8*, i8** %4
store i8* %21, i8** %8
%22 = load i8*, i8** %7
%23 = load i8*, i8** %8
%24 = load i8*, i8** %7
%25 = load i8*, i8** %8
%26 = call i32 @strcmp(i8* %24, i8* %25)
%27 = call i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @should_cmp_str_ to i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...)*)(i8* %22, i8* %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.5, i64 0, i64 0), i32 11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__func__.case_hello, i64 0, i64 0))
br label %28
28: ; preds = %20
br label %29
29: ; preds = %28
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %9
%30 = load i8*, i8** %4
store i8* %30, i8** %10
%31 = load i8*, i8** %9
%32 = load i8*, i8** %10
%33 = load i8*, i8** %9
%34 = load i8*, i8** %10
%35 = call i32 @strcmp(i8* %33, i8* %34)
%36 = icmp ne i32 %35, 0
%37 = xor i1 %36, true
%38 = zext i1 %37 to i32
%39 = call i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @should_cmp_str_ to i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...)*)(i8* %31, i8* %32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.5, i64 0, i64 0), i32 12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__func__.case_hello, i64 0, i64 0))
br label %40
40: ; preds = %29
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"HELLO\00"
@.str.1 = [6 x i8] c"hello\00"
@.str.2 = [8 x i8] c"\22hello\22\00"
@.str.3 = [2 x i8] c"a\00"
@.str.4 = [3 x i8] c"!=\00"
@.str.5 = [142 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/9beach/should/refs/heads/master/tests/test_simple.c\00"
@__func__.case_hello = [11 x i8] c"case_hello\00"
@.str.6 = [8 x i8] c"\22HELLO\22\00"
@.str.7 = [2 x i8] c"b\00"
@.str.8 = [3 x i8] c"==\00"
define void @case_hello(i8* nocapture readnone %0) {
%2 = tail call i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @should_cmp_str_ to i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.5, i64 0, i64 0), i32 10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__func__.case_hello, i64 0, i64 0))
%3 = tail call i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @should_cmp_str_ to i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 -1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.5, i64 0, i64 0), i32 11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__func__.case_hello, i64 0, i64 0))
%4 = tail call i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @should_cmp_str_ to i32 (i8*, i8*, i8*, i8*, i32, i8*, i8*, i32, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str.5, i64 0, i64 0), i32 12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__func__.case_hello, i64 0, i64 0))
ret void
}