#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 EOF;
int /*<<< orphan*/ S_ISDIR(int /*<<< orphan*/);
scalar_t__ copy(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int getopt(int, char **, char *);
int /*<<< orphan*/ memset(struct stat *, int /*<<< orphan*/, int);
scalar_t__ nuke(char *);
int optind;
int optopt;
int /*<<< orphan*/ perror(char *);
scalar_t__ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  int c, f;
  struct stat sb;
  f = 0;
  do {
    c = getopt(argc, argv, "f");
    if (c == EOF)
      break;
    switch (c) {
    case 'f':
      f = 1;
      break;
    case '?':
      fprintf(stderr, "%s: invalid option -%c\n", argv[0], optopt);
      return 1;
    }
  } while (1);
  if (argc - optind < 2) {
    fprintf(stderr, "Usage: %s [-f] source dest\n", argv[0]);
    return 1;
  }
  memset(&sb, 0, sizeof(struct stat));
  if (stat(argv[argc - 1], &sb) < 0 && argc - optind > 2) {
    if (!(S_ISDIR(sb.st_mode))) {
      fprintf(stderr, "multiple targets and %s is not a directory\n",
              argv[argc - 1]);
      return 1;
    }
  }
  if (f)
    nuke(argv[argc - 1]);
  for (c = optind; c < argc - 1; c++)
    if (copy(argv[c], argv[argc - 1]) < 0) {
      perror("Could not copy file");
      return -1;
    }
  for (c = optind; c < argc - 1; c++)
    if (nuke(argv[c]) < 0) {
      perror("Could not rm file");
      return -1;
    }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe55(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    0x2e23(%rip),%rcx
cmp    (%rcx),%eax
jne    11ca <main+0x4a>
jmp    1242 <main+0xc2>
mov    -0x14(%rbp),%eax
mov    %eax,-0x24(%rbp)
sub    $0x3f,%eax
je     11fb <main+0x7b>
jmp    11de <main+0x5e>
mov    -0x24(%rbp),%eax
sub    $0x66,%eax
jne    122e <main+0xae>
jmp    11ef <main+0x6f>
movl   $0x1,-0x18(%rbp)
jmp    122e <main+0xae>
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    0x2dd6(%rip),%rax
mov    (%rax),%ecx
lea    0xde7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1412 <main+0x292>
jmp    1233 <main+0xb3>
mov    $0x1,%al
test   $0x1,%al
jne    119d <main+0x1d>
jmp    1242 <main+0xc2>
mov    -0x8(%rbp),%eax
mov    0x2d8c(%rip),%rcx
sub    (%rcx),%eax
cmp    $0x2,%eax
jge    1281 <main+0x101>
mov    0x2d6a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdac(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1412 <main+0x292>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x20(%rbp),%rsi
call   1070 <stat@plt>
cmp    $0x0,%rax
jge    1314 <main+0x194>
mov    -0x8(%rbp),%eax
mov    0x2d19(%rip),%rcx
sub    (%rcx),%eax
cmp    $0x2,%eax
jle    1314 <main+0x194>
mov    -0x20(%rbp),%edi
call   1030 <S_ISDIR@plt>
cmp    $0x0,%eax
jne    130f <main+0x18f>
mov    0x2ce6(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd3a(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1412 <main+0x292>
jmp    1314 <main+0x194>
cmpl   $0x0,-0x18(%rbp)
je     1334 <main+0x1b4>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10a0 <nuke@plt>
mov    0x2c9d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    13a8 <main+0x228>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <copy@plt>
cmp    $0x0,%rax
jge    1395 <main+0x215>
lea    0xcde(%rip),%rdi
call   1080 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1412 <main+0x292>
jmp    139a <main+0x21a>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1340 <main+0x1c0>
mov    0x2c29(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    140b <main+0x28b>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10a0 <nuke@plt>
cmp    $0x0,%rax
jge    13f8 <main+0x278>
lea    0xc8f(%rip),%rdi
call   1080 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1412 <main+0x292>
jmp    13fd <main+0x27d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13b4 <main+0x234>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r13
mov    %edi,%r15d
lea    0xe68(%rip),%rdx
call   1090 <getopt@plt>
mov    0x2e3c(%rip),%rbp
xor    %r12d,%r12d
cmp    0x0(%rbp),%eax
jne    11e7 <main+0x67>
mov    0x2e25(%rip),%rbx
mov    %r15d,%eax
sub    (%rbx),%eax
cmp    $0x1,%eax
jg     1252 <main+0xd2>
mov    0x2e00(%rip),%rax
mov    (%rax),%edi
mov    0x0(%r13),%rdx
lea    0xe45(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%r14d
jmp    12f8 <main+0x178>
xor    %r12d,%r12d
lea    0xe0f(%rip),%r14
jmp    1219 <main+0x99>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x1,%r12d
mov    %r15d,%edi
mov    %r13,%rsi
mov    %r14,%rdx
call   1090 <getopt@plt>
cmp    0x0(%rbp),%eax
je     11ac <main+0x2c>
cmp    $0x66,%eax
je     1200 <main+0x80>
cmp    $0x3f,%eax
jne    1206 <main+0x86>
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
mov    0x0(%r13),%rdx
mov    0x2db1(%rip),%rax
mov    (%rax),%ecx
lea    0xdc2(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%r14d
jmp    12f8 <main+0x178>
mov    %rsp,%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1040 <memset@plt>
movslq %r15d,%rbp
mov    -0x8(%r13,%rbp,8),%rdi
add    $0xffffffffffffffff,%rbp
mov    %r14,%rsi
call   1070 <stat@plt>
test   %rax,%rax
jns    1292 <main+0x112>
sub    (%rbx),%r15d
cmp    $0x3,%r15d
jl     1292 <main+0x112>
mov    (%rsp),%edi
call   1030 <S_ISDIR@plt>
test   %eax,%eax
je     130a <main+0x18a>
test   %r12d,%r12d
je     12a1 <main+0x121>
mov    0x0(%r13,%rbp,8),%rdi
call   10a0 <nuke@plt>
mov    (%rbx),%eax
cmp    %ebp,%eax
jge    12d0 <main+0x150>
mov    %rbx,%r14
movslq %eax,%rbx
nopl   (%rax)
mov    0x0(%r13,%rbx,8),%rdi
mov    0x0(%r13,%rbp,8),%rsi
call   1050 <copy@plt>
test   %rax,%rax
js     1324 <main+0x1a4>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    12b0 <main+0x130>
mov    (%r14),%eax
xor    %r14d,%r14d
cmp    %ebp,%eax
jge    12f8 <main+0x178>
movslq %eax,%rbx
nopw   0x0(%rax,%rax,1)
mov    0x0(%r13,%rbx,8),%rdi
call   10a0 <nuke@plt>
test   %rax,%rax
js     132d <main+0x1ad>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    12e0 <main+0x160>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
mov    0x0(%r13,%rbp,8),%rdx
lea    0xd17(%rip),%rsi
jmp    11d5 <main+0x55>
lea    0xd37(%rip),%rdi
jmp    1334 <main+0x1b4>
lea    0xd42(%rip),%rdi
call   1080 <perror@plt>
mov    $0xffffffff,%r14d
jmp    12f8 <main+0x178>

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

LLVM IR (-O2):
%struct.stat = type { i32 }
@.str = [2 x i8] c"f\00"
@EOF = global i32 0
@stderr = global i32 0
@.str.1 = [24 x i8] c"%s: invalid option -%c\0A\00"
@optopt = global i32 0
@optind = global i32 0
@.str.2 = [28 x i8] c"Usage: %s [-f] source dest\0A\00"
@.str.3 = [44 x i8] c"multiple targets and %s is not a directory\0A\00"
@.str.4 = [20 x i8] c"Could not copy file\00"
@.str.5 = [18 x i8] c"Could not rm file\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca %struct.stat
%4 = bitcast %struct.stat* %3 to i8*
%5 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @EOF
%7 = icmp eq i32 %5, %6
br i1 %7, label %22, label %8
8: ; preds = %2, %17
%9 = phi i32 [ %19, %17 ], [ %5, %2 ]
%10 = phi i32 [ %18, %17 ], [ 0, %2 ]
switch i32 %9, label %17 [
i32 102, label %11
i32 63, label %12
]
11: ; preds = %8
br label %17
12: ; preds = %8
%13 = load i32, i32* @stderr
%14 = load i8*, i8** %1
%15 = load i32, i32* @optopt
%16 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %14, i32 %15)
br label %92
17: ; preds = %11, %8
%18 = phi i32 [ %10, %8 ], [ 1, %11 ]
%19 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%20 = load i32, i32* @EOF
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %8
22: ; preds = %17, %2
%23 = phi i32 [ 0, %2 ], [ %18, %17 ]
%24 = load i32, i32* @optind
%25 = sub nsw i32 %0, %24
%26 = icmp slt i32 %25, 2
br i1 %26, label %27, label %31
27: ; preds = %22
%28 = load i32, i32* @stderr
%29 = load i8*, i8** %1
%30 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i8* %29)
br label %92
31: ; preds = %22
%32 = call i32 @memset(%struct.stat* %3, i32 0, i32 4)
%33 = add nsw i32 %0, -1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %1, i64 %34
%36 = load i8*, i8** %35
%37 = call i64 @stat(i8* %36, %struct.stat* %3)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %52
39: ; preds = %31
%40 = load i32, i32* @optind
%41 = sub nsw i32 %0, %40
%42 = icmp sgt i32 %41, 2
br i1 %42, label %43, label %52
43: ; preds = %39
%44 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%45 = load i32, i32* %44
%46 = call i32 @S_ISDIR(i32 %45)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %43
%49 = load i32, i32* @stderr
%50 = load i8*, i8** %35
%51 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), i8* %50)
br label %92
52: ; preds = %43, %39, %31
%53 = icmp eq i32 %23, 0
br i1 %53, label %57, label %54
54: ; preds = %52
%55 = load i8*, i8** %35
%56 = call i64 @nuke(i8* %55)
br label %57
57: ; preds = %54, %52
%58 = load i32, i32* @optind
%59 = icmp slt i32 %58, %33
br i1 %59, label %60, label %76
60: ; preds = %57
%61 = sext i32 %58 to i64
br label %64
62: ; preds = %64
%63 = icmp eq i64 %71, %34
br i1 %63, label %74, label %64
64: ; preds = %60, %62
%65 = phi i64 [ %61, %60 ], [ %71, %62 ]
%66 = getelementptr inbounds i8*, i8** %1, i64 %65
%67 = load i8*, i8** %66
%68 = load i8*, i8** %35
%69 = call i64 @copy(i8* %67, i8* %68)
%70 = icmp slt i64 %69, 0
%71 = add nsw i64 %65, 1
br i1 %70, label %72, label %62
72: ; preds = %64
%73 = call i32 @perror(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br label %92
74: ; preds = %62
%75 = load i32, i32* @optind
br label %76
76: ; preds = %74, %57
%77 = phi i32 [ %75, %74 ], [ %58, %57 ]
%78 = icmp slt i32 %77, %33
br i1 %78, label %79, label %92
79: ; preds = %76
%80 = sext i32 %77 to i64
br label %83
81: ; preds = %83
%82 = icmp eq i64 %89, %34
br i1 %82, label %92, label %83
83: ; preds = %79, %81
%84 = phi i64 [ %80, %79 ], [ %89, %81 ]
%85 = getelementptr inbounds i8*, i8** %1, i64 %84
%86 = load i8*, i8** %85
%87 = call i64 @nuke(i8* %86)
%88 = icmp slt i64 %87, 0
%89 = add nsw i64 %84, 1
br i1 %88, label %90, label %81
90: ; preds = %83
%91 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
br label %92
92: ; preds = %81, %76, %90, %72, %48, %27, %12
%93 = phi i32 [ 1, %27 ], [ -1, %72 ], [ -1, %90 ], [ 1, %48 ], [ 1, %12 ], [ 0, %76 ], [ 0, %81 ]
ret i32 %93
}