void trace_util_free_plugin_files(char **files) {
  int i;
  if (!files ||
      ((unsigned long)(files) > ((unsigned long)(-1) & ~((1UL << 14) - 1))))
    return;
  for (i = 0; files[i]; i++) {
    free(files[i]);
  }
  free(files);
}


x86 assembly (clang, -O0):
<trace_util_free_plugin_files>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1137 <trace_util_free_plugin_files+0x27>
mov    -0x8(%rbp),%rax
cmp    $0xffffffffffffc000,%rax
jbe    113c <trace_util_free_plugin_files+0x2c>
jmp    117e <trace_util_free_plugin_files+0x6e>
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1175 <trace_util_free_plugin_files+0x65>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1143 <trace_util_free_plugin_files+0x33>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<trace_util_free_plugin_files>:
push   %r14
push   %rbx
push   %rax
test   %rdi,%rdi
je     1160 <trace_util_free_plugin_files+0x50>
mov    %rdi,%r14
cmp    $0xffffffffffffc000,%rdi
ja     1160 <trace_util_free_plugin_files+0x50>
mov    (%r14),%rdi
test   %rdi,%rdi
je     1151 <trace_util_free_plugin_files+0x41>
lea    0x8(%r14),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
call   1030 <free@plt>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1140 <trace_util_free_plugin_files+0x30>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @trace_util_free_plugin_files(i8** %0) {
%2 = alloca i8**
%3 = alloca i32
store i8** %0, i8*** %2
%4 = load i8**, i8*** %2
%5 = icmp ne i8** %4, null
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8**, i8*** %2
%8 = ptrtoint i8** %7 to i64
%9 = icmp ugt i64 %8, -16384
br i1 %9, label %10, label %11
10: ; preds = %6, %1
br label %31
11: ; preds = %6
store i32 0, i32* %3
br label %12
12: ; preds = %25, %11
%13 = load i8**, i8*** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8*, i8** %13, i64 %15
%17 = load i8*, i8** %16
%18 = icmp ne i8* %17, null
br i1 %18, label %19, label %28
19: ; preds = %12
%20 = load i8**, i8*** %2
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8*, i8** %20, i64 %22
%24 = load i8*, i8** %23
br label %25
25: ; preds = %19
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %12
28: ; preds = %12
%29 = load i8**, i8*** %2
%30 = bitcast i8** %29 to i8*
br label %31
31: ; preds = %28, %10
ret void
}

LLVM IR (-O2):
define void @trace_util_free_plugin_files(i8** %0) {
%2 = icmp eq i8** %0, null
%3 = icmp ugt i8** %0, inttoptr (i64 -16384 to i8**)
%4 = or i1 %2, %3
br i1 %4, label %17, label %5
5: ; preds = %1
%6 = load i8*, i8** %0
%7 = icmp eq i8* %6, null
br i1 %7, label %15, label %8
8: ; preds = %5, %8
%9 = phi i64 [ %11, %8 ], [ 0, %5 ]
%10 = phi i8* [ %13, %8 ], [ %6, %5 ]
tail call void @free(i8* %10)
%11 = add nuw nsw i64 %9, 1
%12 = getelementptr inbounds i8*, i8** %0, i64 %11
%13 = load i8*, i8** %12
%14 = icmp eq i8* %13, null
br i1 %14, label %15, label %8
15: ; preds = %8, %5
%16 = bitcast i8** %0 to i8*
tail call void @free(i8* %16)
br label %17
17: ; preds = %1, %15
ret void
}