void sanity_check_false(void) {
  do {
    if (!(1 == 0)) {
      char buf[200];
      snprintf(buf, sizeof(buf), "%s:%d:%s(): %s",
               "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/ShobhitSharma/chao/refs/"
               "heads/master/tests/tests_example.c",
               16, __func__, "One failed to be equal to zero.");
      test_failed(buf);
    } else {
      test_succeeded();
    }
  } while (0);
}


x86 assembly (clang, -O0):
<sanity_check_false>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
lea    -0xd0(%rbp),%rdi
mov    $0xc8,%esi
lea    0xec2(%rip),%rdx
lea    0xeca(%rip),%rcx
mov    $0x10,%r8d
lea    0xf52(%rip),%r9
lea    0xf5e(%rip),%rax
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <snprintf@plt>
lea    -0xd0(%rbp),%rdi
mov    $0x0,%al
call   1040 <test_failed@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sanity_check_false>:
push   %rbx
sub    $0xe0,%rsp
lea    0xf88(%rip),%rax
mov    %rax,(%rsp)
lea    0xec6(%rip),%rdx
lea    0xece(%rip),%rcx
lea    0xf5c(%rip),%r9
lea    0x10(%rsp),%rbx
mov    $0xc8,%esi
mov    %rbx,%rdi
mov    $0x10,%r8d
xor    %eax,%eax
call   1030 <snprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <test_failed@plt>
add    $0xe0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"%s:%d:%s(): %s\00"
@.str.1 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ShobhitSharma/chao/refs/heads/master/tests/tests_example.c\00"
@__func__.sanity_check_false = [19 x i8] c"sanity_check_false\00"
@.str.2 = [32 x i8] c"One failed to be equal to zero.\00"
define void @sanity_check_false() {
%1 = alloca [200 x i8]
br label %2
2: ; preds = %0
%3 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 0
%4 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %3, i64 200, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.sanity_check_false, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%5 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 0
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @test_failed to i32 (i8*, ...)*)(i8* %5)
br label %7
7: ; preds = %2
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s:%d:%s(): %s\00"
@.str.1 = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ShobhitSharma/chao/refs/heads/master/tests/tests_example.c\00"
@__func__.sanity_check_false = [19 x i8] c"sanity_check_false\00"
@.str.2 = [32 x i8] c"One failed to be equal to zero.\00"
define void @sanity_check_false() {
%1 = alloca [200 x i8]
%2 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 0
%3 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %2, i64 200, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.1, i64 0, i64 0), i32 16, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__func__.sanity_check_false, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) bitcast (i32 (...)* @test_failed to i32 (i8*, ...)*)(i8* %2)
ret void
}