#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*/ chaz_Util_die(char *);
int /*<<< orphan*/ chaz_Util_remove_and_verify(char *);
void chaz_Dir_clean_up(void) {
  if (!chaz_Util_remove_and_verify("_charm_mkdir")) {
    chaz_Util_die("Failed to remove '_charm_mkdir'");
  }
  if (!chaz_Util_remove_and_verify("_charm_rmdir")) {
    chaz_Util_die("Failed to remove '_charm_rmdir'");
  }
}


x86 assembly (clang, -O0):
<chaz_Dir_clean_up>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <chaz_Util_remove_and_verify@plt>
cmp    $0x0,%eax
jne    1145 <chaz_Dir_clean_up+0x25>
lea    0xecd(%rip),%rdi
call   1040 <chaz_Util_die@plt>
lea    0xee1(%rip),%rdi
call   1030 <chaz_Util_remove_and_verify@plt>
cmp    $0x0,%eax
jne    1166 <chaz_Dir_clean_up+0x46>
lea    0xed9(%rip),%rdi
call   1040 <chaz_Util_die@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<chaz_Dir_clean_up>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <chaz_Util_remove_and_verify@plt>
test   %eax,%eax
jne    113d <chaz_Dir_clean_up+0x1d>
lea    0xed5(%rip),%rdi
call   1040 <chaz_Util_die@plt>
lea    0xee9(%rip),%rdi
call   1030 <chaz_Util_remove_and_verify@plt>
test   %eax,%eax
je     114f <chaz_Dir_clean_up+0x2f>
pop    %rax
ret
lea    0xee4(%rip),%rdi
pop    %rax
jmp    1040 <chaz_Util_die@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"_charm_mkdir\00"
@.str.1 = [32 x i8] c"Failed to remove '_charm_mkdir'\00"
@.str.2 = [13 x i8] c"_charm_rmdir\00"
@.str.3 = [32 x i8] c"Failed to remove '_charm_rmdir'\00"
define void @chaz_Dir_clean_up() {
%1 = call i32 @chaz_Util_remove_and_verify(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = icmp ne i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = call i32 @chaz_Util_die(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %5
5: ; preds = %3, %0
%6 = call i32 @chaz_Util_remove_and_verify(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp ne i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = call i32 @chaz_Util_die(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"_charm_mkdir\00"
@.str.1 = [32 x i8] c"Failed to remove '_charm_mkdir'\00"
@.str.2 = [13 x i8] c"_charm_rmdir\00"
@.str.3 = [32 x i8] c"Failed to remove '_charm_rmdir'\00"
define void @chaz_Dir_clean_up() {
%1 = tail call i32 @chaz_Util_remove_and_verify(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @chaz_Util_die(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
br label %5
5: ; preds = %3, %0
%6 = tail call i32 @chaz_Util_remove_and_verify(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = tail call i32 @chaz_Util_die(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
ret void
}