#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ clean_remove(char const *);
int main(int argc, char *argv[]) {
  const char *entry = NULL;
  int i = 0;
  const char *remove_entries[] = {
      "/.epoch",
      "/.default",
      "/lic/gpgv",
      "/lic/pubring.gpg",
      "/lic/license.req",
      "/lic/license.asc",
      "/lic",
      "/lib/libevil32.so",
      "/lib64/libevil64.so",
      "/etc/ld.so.preload",
      "/etc/ld.32.preload",
      "/etc/profile.d/gluster-lic.sh",
      NULL,
  };
  for (i = 0; (entry = remove_entries[i]); i++) {
    clean_remove(entry);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    -0x90(%rbp),%rdi
lea    0x2c5a(%rip),%rsi
mov    $0x68,%edx
call   1030 <memcpy@plt>
movl   $0x0,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
mov    -0x90(%rbp,%rax,8),%rax
ff
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     1198 <main+0x78>
mov    -0x18(%rbp),%rdi
call   1040 <clean_remove@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1167 <main+0x47>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xee4(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xee2(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xee0(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xee5(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xeea(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xeef(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xee8(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xeee(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xef6(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xefd(%rip),%rdi
call   1030 <clean_remove@plt>
lea    0xf04(%rip),%rdi
call   1030 <clean_remove@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"/.epoch\00"
@.str.1 = [10 x i8] c"/.default\00"
@.str.2 = [10 x i8] c"/lic/gpgv\00"
@.str.3 = [17 x i8] c"/lic/pubring.gpg\00"
@.str.4 = [17 x i8] c"/lic/license.req\00"
@.str.5 = [17 x i8] c"/lic/license.asc\00"
@.str.6 = [5 x i8] c"/lic\00"
@.str.7 = [18 x i8] c"/lib/libevil32.so\00"
@.str.8 = [20 x i8] c"/lib64/libevil64.so\00"
@.str.9 = [19 x i8] c"/etc/ld.so.preload\00"
@.str.10 = [19 x i8] c"/etc/ld.32.preload\00"
@.str.11 = [30 x i8] c"/etc/profile.d/gluster-lic.sh\00"
@__const.main.remove_entries = [13 x i8*] [i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i32 0, i32 0), i8* null]
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca [13 x i8*]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i32 0, i32* %7
%9 = bitcast [13 x i8*]* %8 to i8*
store i32 0, i32* %7
br label %10
10: ; preds = %19, %2
%11 = load i32, i32* %7
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [13 x i8*], [13 x i8*]* %8, i64 0, i64 %12
%14 = load i8*, i8** %13
store i8* %14, i8** %6
%15 = icmp ne i8* %14, null
br i1 %15, label %16, label %22
16: ; preds = %10
%17 = load i8*, i8** %6
%18 = call i32 @clean_remove(i8* %17)
br label %19
19: ; preds = %16
%20 = load i32, i32* %7
%21 = add nsw i32 %20, 1
store i32 %21, i32* %7
br label %10
22: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"/.epoch\00"
@.str.1 = [10 x i8] c"/.default\00"
@.str.2 = [10 x i8] c"/lic/gpgv\00"
@.str.3 = [17 x i8] c"/lic/pubring.gpg\00"
@.str.4 = [17 x i8] c"/lic/license.req\00"
@.str.5 = [17 x i8] c"/lic/license.asc\00"
@.str.6 = [5 x i8] c"/lic\00"
@.str.7 = [18 x i8] c"/lib/libevil32.so\00"
@.str.8 = [20 x i8] c"/lib64/libevil64.so\00"
@.str.9 = [19 x i8] c"/etc/ld.so.preload\00"
@.str.10 = [19 x i8] c"/etc/ld.32.preload\00"
@.str.11 = [30 x i8] c"/etc/profile.d/gluster-lic.sh\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @clean_remove(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @clean_remove(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @clean_remove(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @clean_remove(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @clean_remove(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @clean_remove(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @clean_remove(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 @clean_remove(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @clean_remove(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 @clean_remove(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 @clean_remove(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%14 = tail call i32 @clean_remove(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}