int varray_deinit(struct varray *va) {
  if (varray_release(va, 0) == -1) {
    msgno_loc0("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/beaumontlab/antonie/refs/"
               "heads/master/ext/libmba/varray.c"
               ":"
               "56"
               ":",
               __func__);
    msgno_amsg0("");
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<varray_deinit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <varray_release@plt>
cmp    $0xffffffff,%eax
jne    1181 <varray_deinit+0x51>
lea    0xea7(%rip),%rdi
lea    0xf38(%rip),%rsi
mov    $0x0,%al
call   1050 <msgno_loc0@plt>
lea    0xf29(%rip),%rdi
mov    $0x0,%al
call   1040 <msgno_amsg0@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1188 <varray_deinit+0x58>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<varray_deinit>:
push   %rbx
xor    %ebx,%ebx
xor    %esi,%esi
xor    %eax,%eax
call   1030 <varray_release@plt>
cmp    $0xffffffff,%eax
jne    1169 <varray_deinit+0x39>
lea    0xeb8(%rip),%rdi
lea    0xf49(%rip),%rsi
xor    %eax,%eax
call   1050 <msgno_loc0@plt>
lea    0xf3a(%rip),%rdi
xor    %eax,%eax
call   1040 <msgno_amsg0@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.varray = type opaque
@.str = [152 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/beaumontlab/antonie/refs/heads/master/ext/libmba/varray.c:56:\00"
@__func__.varray_deinit = [14 x i8] c"varray_deinit\00"
@.str.1 = [1 x i8] zeroinitializer
define i32 @varray_deinit(%struct.varray* %0) {
%2 = alloca i32
%3 = alloca %struct.varray*
store %struct.varray* %0, %struct.varray** %3
%4 = load %struct.varray*, %struct.varray** %3
%5 = call i32 (%struct.varray*, i32, ...) bitcast (i32 (...)* @varray_release to i32 (%struct.varray*, i32, ...)*)(%struct.varray* %4, i32 0)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @msgno_loc0 to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.varray_deinit, i64 0, i64 0))
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @msgno_amsg0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %2
br label %11
10: ; preds = %1
store i32 0, i32* %2
br label %11
11: ; preds = %10, %7
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
%struct.varray = type opaque
@.str = [152 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/beaumontlab/antonie/refs/heads/master/ext/libmba/varray.c:56:\00"
@__func__.varray_deinit = [14 x i8] c"varray_deinit\00"
@.str.1 = [1 x i8] zeroinitializer
define i32 @varray_deinit(%struct.varray* %0) {
%2 = tail call i32 (%struct.varray*, i32, ...) bitcast (i32 (...)* @varray_release to i32 (%struct.varray*, i32, ...)*)(%struct.varray* %0, i32 0)
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @msgno_loc0 to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @__func__.varray_deinit, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @msgno_amsg0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %1, %4
%8 = phi i32 [ -1, %4 ], [ 0, %1 ]
ret i32 %8
}