#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 */
struct stat {
  int /*<<< orphan*/ st_mode;
};

/* Variables and functions */
int /*<<< orphan*/ F_OK;
scalar_t__ S_ISDIR(int /*<<< orphan*/);
scalar_t__ access(char *, int /*<<< orphan*/);
char *basename(char *);
int /*<<< orphan*/ copy_dir(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ copy_file(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ perror(char *);
scalar_t__ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int umask(int);
int main(int argc, char **argv) {
  char *src_arg;
  char *dst_arg;
  char dst_path[4096];
  struct stat src_st;
  struct stat dst_st;
  int r_flag;
  int old_mask;
  int i;
  src_arg = 0;
  dst_arg = 0;
  old_mask = umask(0);
  r_flag = 0;
  for (i = 1; i < argc; i++) {
    if (strcmp(argv[i], "-r") == 0) {
      r_flag = 1;
    } else {
      if (!src_arg) {
        src_arg = argv[i];
      } else if (!dst_arg) {
        dst_arg = argv[i];
      }
    }
  }
  if (!src_arg || !dst_arg) {
    fprintf(stderr, "Usage: %s [-r] <source> <destination>\n",
            basename(argv[0]));
    return 1;
  }
  strcpy(dst_path, dst_arg);
  if (stat(src_arg, &src_st)) {
    perror("stat");
    return 1;
  }
  if (access(dst_path, F_OK) == 0) {
    if (stat(dst_arg, &dst_st)) {
      perror("stat");
      return 1;
    }
    if (S_ISDIR(dst_st.st_mode)) {
      strcat(dst_path, "/");
      strcat(dst_path, basename(src_arg));
    }
  }
  if (S_ISDIR(src_st.st_mode)) {
    if (!r_flag) {
      fprintf(stderr, "%s is a directory\n", src_arg);
      return 1;
    } else {
      copy_dir(src_arg, dst_path, 0);
    }
  } else {
    copy_file(src_arg, dst_path);
  }
  umask(old_mask);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1050,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
xor    %edi,%edi
call   10a0 <umask@plt>
mov    %eax,-0x1038(%rbp)
movl   $0x0,-0x1034(%rbp)
movl   $0x1,-0x103c(%rbp)
mov    -0x103c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12b1 <main+0xf1>
mov    -0x10(%rbp),%rax
movslq -0x103c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdd1(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    124d <main+0x8d>
movl   $0x1,-0x1034(%rbp)
jmp    1298 <main+0xd8>
cmpq   $0x0,-0x18(%rbp)
jne    1270 <main+0xb0>
mov    -0x10(%rbp),%rax
movslq -0x103c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x18(%rbp)
jmp    1293 <main+0xd3>
cmpq   $0x0,-0x20(%rbp)
jne    128e <main+0xce>
mov    -0x10(%rbp),%rax
movslq -0x103c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x20(%rbp)
jmp    1293 <main+0xd3>
jmp    1298 <main+0xd8>
jmp    129d <main+0xdd>
mov    -0x103c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x103c(%rbp)
jmp    120a <main+0x4a>
cmpq   $0x0,-0x18(%rbp)
je     12c7 <main+0x107>
cmpq   $0x0,-0x20(%rbp)
jne    1303 <main+0x143>
mov    0x2d12(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1040(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1090 <basename@plt>
mov    -0x1040(%rbp),%edi
mov    %rax,%rdx
lea    0xd11(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1469 <main+0x2a9>
lea    -0x1020(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x18(%rbp),%rdi
lea    -0x1028(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
je     1345 <main+0x185>
lea    0xcf6(%rip),%rdi
call   10d0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    1469 <main+0x2a9>
lea    -0x1020(%rbp),%rdi
mov    0x2c7d(%rip),%rax
mov    (%rax),%esi
call   10c0 <access@plt>
cmp    $0x0,%rax
jne    13e9 <main+0x229>
mov    -0x20(%rbp),%rdi
lea    -0x1030(%rbp),%rsi
call   10b0 <stat@plt>
cmp    $0x0,%rax
je     1396 <main+0x1d6>
lea    0xca5(%rip),%rdi
call   10d0 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    1469 <main+0x2a9>
mov    -0x1030(%rbp),%edi
call   1050 <S_ISDIR@plt>
cmp    $0x0,%rax
je     13e4 <main+0x224>
lea    -0x1020(%rbp),%rdi
lea    0xc76(%rip),%rsi
call   10e0 <strcat@plt>
lea    -0x1020(%rbp),%rax
mov    %rax,-0x1048(%rbp)
mov    -0x18(%rbp),%rdi
call   1090 <basename@plt>
mov    -0x1048(%rbp),%rdi
mov    %rax,%rsi
call   10e0 <strcat@plt>
jmp    13e9 <main+0x229>
mov    -0x1028(%rbp),%edi
call   1050 <S_ISDIR@plt>
cmp    $0x0,%rax
je     1447 <main+0x287>
cmpl   $0x0,-0x1034(%rbp)
jne    1430 <main+0x270>
mov    0x2bce(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
lea    0xc12(%rip),%rsi
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1469 <main+0x2a9>
mov    -0x18(%rbp),%rdi
lea    -0x1020(%rbp),%rsi
xor    %edx,%edx
call   1070 <copy_dir@plt>
jmp    1457 <main+0x297>
mov    -0x18(%rbp),%rdi
lea    -0x1020(%rbp),%rsi
call   1030 <copy_file@plt>
mov    -0x1038(%rbp),%edi
call   10a0 <umask@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1050,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1028,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
xor    %edi,%edi
call   10a0 <umask@plt>
cmp    $0x2,%ebx
jl     131c <main+0x15c>
xor    %ecx,%ecx
mov    %rcx,0x18(%rsp)
mov    %eax,0x14(%rsp)
mov    %ebx,%r14d
mov    $0x1,%r13d
lea    0xdff(%rip),%rbx
xor    %r15d,%r15d
xor    %r12d,%r12d
jmp    1223 <main+0x63>
nopl   0x0(%rax)
mov    $0x1,%eax
mov    %rax,0x18(%rsp)
add    $0x1,%r13
cmp    %r13,%r14
je     1257 <main+0x97>
mov    0x0(%rbp,%r13,8),%rdi
mov    %rbx,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1210 <main+0x50>
test   %r12,%r12
je     1250 <main+0x90>
test   %r15,%r15
jne    121a <main+0x5a>
mov    0x0(%rbp,%r13,8),%r15
jmp    121a <main+0x5a>
cs nopw 0x0(%rax,%rax,1)
mov    0x0(%rbp,%r13,8),%r12
jmp    121a <main+0x5a>
test   %r12,%r12
mov    0x14(%rsp),%r14d
mov    0x18(%rsp),%rbx
je     131c <main+0x15c>
test   %r15,%r15
je     131c <main+0x15c>
lea    0x20(%rsp),%rdi
mov    %r15,%rsi
call   1040 <strcpy@plt>
lea    0x10(%rsp),%rsi
mov    %r12,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
jne    1384 <main+0x1c4>
mov    0x2d33(%rip),%rax
mov    (%rax),%esi
lea    0x20(%rsp),%rdi
call   10c0 <access@plt>
test   %rax,%rax
jne    12f9 <main+0x139>
lea    0x8(%rsp),%rsi
mov    %r15,%rdi
call   10b0 <stat@plt>
test   %rax,%rax
jne    1384 <main+0x1c4>
mov    0x8(%rsp),%edi
call   1050 <S_ISDIR@plt>
test   %rax,%rax
je     12f9 <main+0x139>
lea    0xd56(%rip),%rsi
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
call   10e0 <strcat@plt>
mov    %r12,%rdi
call   1090 <basename@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   10e0 <strcat@plt>
mov    0x10(%rsp),%edi
call   1050 <S_ISDIR@plt>
test   %rax,%rax
je     1356 <main+0x196>
test   %ebx,%ebx
je     136f <main+0x1af>
lea    0x20(%rsp),%rsi
mov    %r12,%rdi
xor    %edx,%edx
call   1070 <copy_dir@plt>
jmp    1363 <main+0x1a3>
mov    0x2cbd(%rip),%rax
mov    (%rax),%ebx
mov    0x0(%rbp),%rdi
call   1090 <basename@plt>
lea    0xcce(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1080 <fprintf@plt>
mov    $0x1,%eax
add    $0x1028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x20(%rsp),%rsi
mov    %r12,%rdi
call   1030 <copy_file@plt>
mov    %r14d,%edi
call   10a0 <umask@plt>
xor    %eax,%eax
jmp    1344 <main+0x184>
mov    0x2c6a(%rip),%rax
mov    (%rax),%edi
lea    0xcb2(%rip),%rsi
mov    %r12,%rdx
jmp    133a <main+0x17a>
lea    0xc9f(%rip),%rdi
call   10d0 <perror@plt>
jmp    133f <main+0x17f>

LLVM IR (-O0):
%struct.stat = type { i32 }
@.str = [3 x i8] c"-r\00"
@stderr = global i32 0
@.str.1 = [39 x i8] c"Usage: %s [-r] <source> <destination>\0A\00"
@.str.2 = [5 x i8] c"stat\00"
@F_OK = global i32 0
@.str.3 = [2 x i8] c"/\00"
@.str.4 = [19 x i8] c"%s is a directory\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca [4096 x i8]
%9 = alloca %struct.stat
%10 = alloca %struct.stat
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i8* null, i8** %7
%14 = call i32 @umask(i32 0)
store i32 %14, i32* %12
store i32 0, i32* %11
store i32 1, i32* %13
br label %15
15: ; preds = %49, %2
%16 = load i32, i32* %13
%17 = load i32, i32* %4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %52
19: ; preds = %15
%20 = load i8**, i8*** %5
%21 = load i32, i32* %13
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8*, i8** %20, i64 %22
%24 = load i8*, i8** %23
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %19
store i32 1, i32* %11
br label %48
28: ; preds = %19
%29 = load i8*, i8** %6
%30 = icmp ne i8* %29, null
br i1 %30, label %37, label %31
31: ; preds = %28
%32 = load i8**, i8*** %5
%33 = load i32, i32* %13
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %32, i64 %34
%36 = load i8*, i8** %35
store i8* %36, i8** %6
br label %47
37: ; preds = %28
%38 = load i8*, i8** %7
%39 = icmp ne i8* %38, null
br i1 %39, label %46, label %40
40: ; preds = %37
%41 = load i8**, i8*** %5
%42 = load i32, i32* %13
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8*, i8** %41, i64 %43
%45 = load i8*, i8** %44
store i8* %45, i8** %7
br label %46
46: ; preds = %40, %37
br label %47
47: ; preds = %46, %31
br label %48
48: ; preds = %47, %27
br label %49
49: ; preds = %48
%50 = load i32, i32* %13
%51 = add nsw i32 %50, 1
store i32 %51, i32* %13
br label %15
52: ; preds = %15
%53 = load i8*, i8** %6
%54 = icmp ne i8* %53, null
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i8*, i8** %7
%57 = icmp ne i8* %56, null
br i1 %57, label %65, label %58
58: ; preds = %55, %52
%59 = load i32, i32* @stderr
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 0
%62 = load i8*, i8** %61
%63 = call i8* @basename(i8* %62)
%64 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %63)
store i32 1, i32* %3
br label %122
65: ; preds = %55
%66 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%67 = load i8*, i8** %7
%68 = call i32 @strcpy(i8* %66, i8* %67)
%69 = load i8*, i8** %6
%70 = call i64 @stat(i8* %69, %struct.stat* %9)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %65
%73 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %122
74: ; preds = %65
%75 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%76 = load i32, i32* @F_OK
%77 = call i64 @access(i8* %75, i32 %76)
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %98
79: ; preds = %74
%80 = load i8*, i8** %7
%81 = call i64 @stat(i8* %80, %struct.stat* %10)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %79
%84 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %122
85: ; preds = %79
%86 = getelementptr inbounds %struct.stat, %struct.stat* %10, i32 0, i32 0
%87 = load i32, i32* %86
%88 = call i64 @S_ISDIR(i32 %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %97
90: ; preds = %85
%91 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%92 = call i32 @strcat(i8* %91, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%93 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%94 = load i8*, i8** %6
%95 = call i8* @basename(i8* %94)
%96 = call i32 @strcat(i8* %93, i8* %95)
br label %97
97: ; preds = %90, %85
br label %98
98: ; preds = %97, %74
%99 = getelementptr inbounds %struct.stat, %struct.stat* %9, i32 0, i32 0
%100 = load i32, i32* %99
%101 = call i64 @S_ISDIR(i32 %100)
%102 = icmp ne i64 %101, 0
br i1 %102, label %103, label %115
103: ; preds = %98
%104 = load i32, i32* %11
%105 = icmp ne i32 %104, 0
br i1 %105, label %110, label %106
106: ; preds = %103
%107 = load i32, i32* @stderr
%108 = load i8*, i8** %6
%109 = call i32 @fprintf(i32 %107, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %108)
store i32 1, i32* %3
br label %122
110: ; preds = %103
%111 = load i8*, i8** %6
%112 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%113 = call i32 @copy_dir(i8* %111, i8* %112, i32 0)
br label %114
114: ; preds = %110
br label %119
115: ; preds = %98
%116 = load i8*, i8** %6
%117 = getelementptr inbounds [4096 x i8], [4096 x i8]* %8, i64 0, i64 0
%118 = call i32 @copy_file(i8* %116, i8* %117)
br label %119
119: ; preds = %115, %114
%120 = load i32, i32* %12
%121 = call i32 @umask(i32 %120)
store i32 0, i32* %3
br label %122
122: ; preds = %119, %106, %83, %72, %58
%123 = load i32, i32* %3
ret i32 %123
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@.str = [3 x i8] c"-r\00"
@stderr = global i32 0
@.str.1 = [39 x i8] c"Usage: %s [-r] <source> <destination>\0A\00"
@.str.2 = [5 x i8] c"stat\00"
@F_OK = global i32 0
@.str.3 = [2 x i8] c"/\00"
@.str.4 = [19 x i8] c"%s is a directory\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4096 x i8]
%4 = alloca %struct.stat
%5 = alloca %struct.stat
%6 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%7 = bitcast %struct.stat* %4 to i8*
%8 = bitcast %struct.stat* %5 to i8*
%9 = tail call i32 @umask(i32 0)
%10 = icmp sgt i32 %0, 1
br i1 %10, label %11, label %40
11: ; preds = %2
%12 = zext i32 %0 to i64
br label %13
13: ; preds = %11, %30
%14 = phi i64 [ 1, %11 ], [ %34, %30 ]
%15 = phi i32 [ 0, %11 ], [ %33, %30 ]
%16 = phi i8* [ null, %11 ], [ %32, %30 ]
%17 = phi i8* [ null, %11 ], [ %31, %30 ]
%18 = getelementptr inbounds i8*, i8** %1, i64 %14
%19 = load i8*, i8** %18
%20 = tail call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %30, label %22
22: ; preds = %13
%23 = icmp eq i8* %17, null
br i1 %23, label %24, label %26
24: ; preds = %22
%25 = load i8*, i8** %18
br label %30
26: ; preds = %22
%27 = icmp eq i8* %16, null
br i1 %27, label %28, label %30
28: ; preds = %26
%29 = load i8*, i8** %18
br label %30
30: ; preds = %13, %26, %28, %24
%31 = phi i8* [ %17, %26 ], [ %17, %28 ], [ %25, %24 ], [ %17, %13 ]
%32 = phi i8* [ %16, %26 ], [ %29, %28 ], [ %16, %24 ], [ %16, %13 ]
%33 = phi i32 [ %15, %26 ], [ %15, %28 ], [ %15, %24 ], [ 1, %13 ]
%34 = add nuw nsw i64 %14, 1
%35 = icmp eq i64 %34, %12
br i1 %35, label %36, label %13
36: ; preds = %30
%37 = icmp ne i8* %31, null
%38 = icmp ne i8* %32, null
%39 = select i1 %37, i1 %38, i1 false
br i1 %39, label %45, label %40
40: ; preds = %2, %36
%41 = load i32, i32* @stderr
%42 = load i8*, i8** %1
%43 = tail call i8* @basename(i8* %42)
%44 = tail call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %43)
br label %85
45: ; preds = %36
%46 = call i32 @strcpy(i8* %6, i8* %32)
%47 = call i64 @stat(i8* %31, %struct.stat* %4)
%48 = icmp eq i64 %47, 0
br i1 %48, label %51, label %49
49: ; preds = %45
%50 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %85
51: ; preds = %45
%52 = load i32, i32* @F_OK
%53 = call i64 @access(i8* %6, i32 %52)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %69
55: ; preds = %51
%56 = call i64 @stat(i8* %32, %struct.stat* %5)
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %85
60: ; preds = %55
%61 = getelementptr inbounds %struct.stat, %struct.stat* %5, i64 0, i32 0
%62 = load i32, i32* %61
%63 = call i64 @S_ISDIR(i32 %62)
%64 = icmp eq i64 %63, 0
br i1 %64, label %69, label %65
65: ; preds = %60
%66 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%67 = call i8* @basename(i8* %31)
%68 = call i32 @strcat(i8* %6, i8* %67)
br label %69
69: ; preds = %60, %65, %51
%70 = getelementptr inbounds %struct.stat, %struct.stat* %4, i64 0, i32 0
%71 = load i32, i32* %70
%72 = call i64 @S_ISDIR(i32 %71)
%73 = icmp eq i64 %72, 0
br i1 %73, label %81, label %74
74: ; preds = %69
%75 = icmp eq i32 %33, 0
br i1 %75, label %76, label %79
76: ; preds = %74
%77 = load i32, i32* @stderr
%78 = call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %31)
br label %85
79: ; preds = %74
%80 = call i32 @copy_dir(i8* %31, i8* %6, i32 0)
br label %83
81: ; preds = %69
%82 = call i32 @copy_file(i8* %31, i8* %6)
br label %83
83: ; preds = %81, %79
%84 = call i32 @umask(i32 %9)
br label %85
85: ; preds = %83, %76, %58, %49, %40
%86 = phi i32 [ 1, %49 ], [ 1, %58 ], [ 0, %83 ], [ 1, %76 ], [ 1, %40 ]
ret i32 %86
}