void test_string_deletions() {
  char test_s1[] = "ADGATDGATDGATGDGATTG";
  char test_s2[] = "ADAATDGATGGATGDGATG";
  ((bioseq_string_deletions(test_s1, test_s2) == 3)
       ? _gen_result(1, __func__,
                     "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                     "outputs/2022-01-22/02-19-57/repos/modulated/uti-c/refs/"
                     "heads/master/tests/bioseq.test.c",
                     514, "string_deletions returns expected value.")
       : _gen_result(0, __func__,
                     "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                     "outputs/2022-01-22/02-19-57/repos/modulated/uti-c/refs/"
                     "heads/master/tests/bioseq.test.c",
                     514, "string_deletions returns expected value."));
}


x86 assembly (clang, -O0):
<test_string_deletions>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecc(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xec7(%rip),%al
mov    %al,-0xc(%rbp)
mov    0xec9(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec6(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xec4(%rip),%eax
mov    %eax,-0x30(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x40(%rbp),%rsi
mov    $0x0,%al
call   1040 <bioseq_string_deletions@plt>
cmp    $0x3,%eax
jne    11b2 <test_string_deletions+0x92>
mov    $0x1,%edi
lea    0xea1(%rip),%rsi
lea    0xeb0(%rip),%rdx
mov    $0x202,%ecx
lea    0xf34(%rip),%r8
mov    $0x0,%al
call   1030 <_gen_result@plt>
jmp    11d5 <test_string_deletions+0xb5>
xor    %edi,%edi
lea    0xe79(%rip),%rsi
lea    0xe88(%rip),%rdx
mov    $0x202,%ecx
lea    0xf0c(%rip),%r8
mov    $0x0,%al
call   1030 <_gen_result@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_string_deletions>:
sub    $0x38,%rsp
movaps 0xed5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movabs $0x47545441474447,%rax
mov    %rax,0x2d(%rsp)
movaps 0xeda(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0x475441,0x10(%rsp)
lea    0x20(%rsp),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <bioseq_string_deletions@plt>
xor    %edi,%edi
cmp    $0x3,%eax
sete   %dil
lea    0xec3(%rip),%rsi
lea    0xed2(%rip),%rdx
lea    0xf5b(%rip),%r8
mov    $0x202,%ecx
xor    %eax,%eax
call   1030 <_gen_result@plt>
add    $0x38,%rsp
ret

LLVM IR (-O0):
@__const.test_string_deletions.test_s1 = [21 x i8] c"ADGATDGATDGATGDGATTG\00"
@__const.test_string_deletions.test_s2 = [20 x i8] c"ADAATDGATGGATGDGATG\00"
@__func__.test_string_deletions = [22 x i8] c"test_string_deletions\00"
@.str = [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/modulated/uti-c/refs/heads/master/tests/bioseq.test.c\00"
@.str.1 = [41 x i8] c"string_deletions returns expected value.\00"
define void @test_string_deletions() {
%1 = alloca [21 x i8]
%2 = alloca [20 x i8]
%3 = bitcast [21 x i8]* %1 to i8*
%4 = bitcast [20 x i8]* %2 to i8*
%5 = getelementptr inbounds [21 x i8], [21 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%7 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @bioseq_string_deletions to i32 (i8*, i8*, ...)*)(i8* %5, i8* %6)
%8 = icmp eq i32 %7, 3
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @__func__.test_string_deletions, i64 0, i64 0), i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str, i64 0, i64 0), i32 514, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
br label %13
11: ; preds = %0
%12 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @__func__.test_string_deletions, i64 0, i64 0), i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str, i64 0, i64 0), i32 514, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %9
%14 = phi i32 [ %10, %9 ], [ %12, %11 ]
ret void
}

LLVM IR (-O2):
@__const.test_string_deletions.test_s1 = [21 x i8] c"ADGATDGATDGATGDGATTG\00"
@__const.test_string_deletions.test_s2 = [20 x i8] c"ADAATDGATGGATGDGATG\00"
@__func__.test_string_deletions = [22 x i8] c"test_string_deletions\00"
@.str = [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/modulated/uti-c/refs/heads/master/tests/bioseq.test.c\00"
@.str.1 = [41 x i8] c"string_deletions returns expected value.\00"
define void @test_string_deletions() {
%1 = alloca [21 x i8]
%2 = alloca [20 x i8]
%3 = getelementptr inbounds [21 x i8], [21 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%5 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @bioseq_string_deletions to i32 (i8*, i8*, ...)*)(i8* %3, i8* %4)
%6 = icmp eq i32 %5, 3
%7 = zext i1 %6 to i32
%8 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @_gen_result to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 %7, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @__func__.test_string_deletions, i64 0, i64 0), i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str, i64 0, i64 0), i32 514, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
ret void
}