int test_deletion_success(void) {
  printf("\n\n\t%s\n\n", "Testing success of Morphy deletion");
  ;
  int err = 1;
  int failn = 0;
  if (err) {
    ++failn;
    printf("[  FAIL  ] %s, line: %i in: %s\n", __FUNCTION__, 366,
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/mbrazeau/MorphyLib/refs/heads/master/"
           "tests/testmpl.c");
  } else {
    printf("[  PASS  ] %s\n", __FUNCTION__);
  }
  return failn;
}


x86 assembly (clang, -O0):
<test_deletion_success>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
lea    0xee2(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1174 <test_deletion_success+0x64>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
lea    0xed6(%rip),%rdi
lea    0xeef(%rip),%rsi
mov    $0x16e,%edx
lea    0xef9(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1189 <test_deletion_success+0x79>
lea    0xf75(%rip),%rdi
lea    0xec9(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_deletion_success>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xee9(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
lea    0xf17(%rip),%rsi
lea    0xf26(%rip),%rcx
mov    $0x16e,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"\0A\0A\09%s\0A\0A\00"
@.str.1 = [35 x i8] c"Testing success of Morphy deletion\00"
@.str.2 = [32 x i8] c"[ FAIL ] %s, line: %i in: %s\0A\00"
@__FUNCTION__.test_deletion_success = [22 x i8] c"test_deletion_success\00"
@.str.3 = [143 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/mbrazeau/MorphyLib/refs/heads/master/tests/testmpl.c\00"
@.str.4 = [15 x i8] c"[ PASS ] %s\0A\00"
define i32 @test_deletion_success() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
store i32 0, i32* %2
%4 = load i32, i32* %1
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = load i32, i32* %2
%8 = add nsw i32 %7, 1
store i32 %8, i32* %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @__FUNCTION__.test_deletion_success, i64 0, i64 0), i32 366, i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str.3, i64 0, i64 0))
br label %12
10: ; preds = %0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @__FUNCTION__.test_deletion_success, i64 0, i64 0))
br label %12
12: ; preds = %10, %6
%13 = load i32, i32* %2
ret i32 %13
}

LLVM IR (-O2):
@.str = [8 x i8] c"\0A\0A\09%s\0A\0A\00"
@.str.1 = [35 x i8] c"Testing success of Morphy deletion\00"
@.str.2 = [32 x i8] c"[ FAIL ] %s, line: %i in: %s\0A\00"
@__FUNCTION__.test_deletion_success = [22 x i8] c"test_deletion_success\00"
@.str.3 = [143 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/mbrazeau/MorphyLib/refs/heads/master/tests/testmpl.c\00"
define i32 @test_deletion_success() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @__FUNCTION__.test_deletion_success, i64 0, i64 0), i32 366, i8* getelementptr inbounds ([143 x i8], [143 x i8]* @.str.3, i64 0, i64 0))
ret i32 1
}