void gt_cstr_array_delete(char **gt_cstr_array) {
  unsigned long i = 0;
  if (!gt_cstr_array)
    return;
  while (gt_cstr_array[i])
    gt_free_mem(gt_cstr_array[i++],
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/bioh4x/NeatFreq/refs/heads/"
                "master/lib/genometools-1.4.1/src/core/cstr_array.c",
                104);
  gt_free_mem(gt_cstr_array,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bioh4x/NeatFreq/refs/heads/master/lib/"
              "genometools-1.4.1/src/core/cstr_array.c",
              105);
}


x86 assembly (clang, -O0):
<gt_cstr_array_delete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1134 <gt_cstr_array_delete+0x24>
jmp    1192 <gt_cstr_array_delete+0x82>
jmp    1139 <gt_cstr_array_delete+0x29>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     117b <gt_cstr_array_delete+0x6b>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    (%rax,%rcx,8),%rdi
lea    0xe96(%rip),%rsi
mov    $0x68,%edx
mov    $0x0,%al
call   1030 <gt_free_mem@plt>
jmp    1139 <gt_cstr_array_delete+0x29>
mov    -0x8(%rbp),%rdi
lea    0xe7a(%rip),%rsi
mov    $0x69,%edx
mov    $0x0,%al
call   1030 <gt_free_mem@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gt_cstr_array_delete>:
test   %rdi,%rdi
je     1166 <gt_cstr_array_delete+0x56>
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
mov    (%rdi),%rdi
test   %rdi,%rdi
je     114b <gt_cstr_array_delete+0x3b>
lea    0x8(%r14),%rbx
lea    0xed0(%rip),%r15
mov    %r15,%rsi
mov    $0x68,%edx
xor    %eax,%eax
call   1030 <gt_free_mem@plt>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1130 <gt_cstr_array_delete+0x20>
lea    0xeae(%rip),%rsi
mov    %r14,%rdi
mov    $0x69,%edx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <gt_free_mem@plt>
ret

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bioh4x/NeatFreq/refs/heads/master/lib/genometools-1.4.1/src/core/cstr_array.c\00"
define void @gt_cstr_array_delete(i8** %0) {
%2 = alloca i8**
%3 = alloca i64
store i8** %0, i8*** %2
store i64 0, i64* %3
%4 = load i8**, i8*** %2
%5 = icmp ne i8** %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
br label %24
7: ; preds = %1
br label %8
8: ; preds = %14, %7
%9 = load i8**, i8*** %2
%10 = load i64, i64* %3
%11 = getelementptr inbounds i8*, i8** %9, i64 %10
%12 = load i8*, i8** %11
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %21
14: ; preds = %8
%15 = load i8**, i8*** %2
%16 = load i64, i64* %3
%17 = add i64 %16, 1
store i64 %17, i64* %3
%18 = getelementptr inbounds i8*, i8** %15, i64 %16
%19 = load i8*, i8** %18
%20 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @gt_free_mem to i32 (i8*, i8*, i32, ...)*)(i8* %19, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 104)
br label %8
21: ; preds = %8
%22 = load i8**, i8*** %2
%23 = call i32 (i8**, i8*, i32, ...) bitcast (i32 (...)* @gt_free_mem to i32 (i8**, i8*, i32, ...)*)(i8** %22, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 105)
br label %24
24: ; preds = %21, %6
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bioh4x/NeatFreq/refs/heads/master/lib/genometools-1.4.1/src/core/cstr_array.c\00"
define void @gt_cstr_array_delete(i8** %0) {
%2 = icmp eq i8** %0, null
br i1 %2, label %16, label %3
3: ; preds = %1
%4 = load i8*, i8** %0
%5 = icmp eq i8* %4, null
br i1 %5, label %14, label %6
6: ; preds = %3, %6
%7 = phi i8* [ %12, %6 ], [ %4, %3 ]
%8 = phi i64 [ %9, %6 ], [ 0, %3 ]
%9 = add i64 %8, 1
%10 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @gt_free_mem to i32 (i8*, i8*, i32, ...)*)(i8* %7, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 104)
%11 = getelementptr inbounds i8*, i8** %0, i64 %9
%12 = load i8*, i8** %11
%13 = icmp eq i8* %12, null
br i1 %13, label %14, label %6
14: ; preds = %6, %3
%15 = tail call i32 (i8**, i8*, i32, ...) bitcast (i32 (...)* @gt_free_mem to i32 (i8**, i8*, i32, ...)*)(i8** %0, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 105)
br label %16
16: ; preds = %1, %14
ret void
}