#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*/ exit(int);
int /*<<< orphan*/ print_help();
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ strcmp(char *, char *);
int strtol(char *, int /*<<< orphan*/ *, int);
int system(char *);
int /*<<< orphan*/ usleep(int);
int main(int argc, char *argv[]) {
  if (argc < 2)
    print_help();
  char *command = argv[1];
  int delay = 10;
  int maximum = 1000;
  int retcode = 0;
  for (int i = 2; i < argc; i++) {
    if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--delay"))
      delay = strtol(argv[i + 1], NULL, 10);
    else if (!strcmp(argv[i], "-m") || !strcmp(argv[i], "--max"))
      maximum = strtol(argv[i + 1], NULL, 10);
    else if (!strcmp(argv[i], "-c") || !strcmp(argv[i], "--code"))
      retcode = strtol(argv[i + 1], NULL, 10);
    else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help"))
      print_help();
  }
  for (int j = 0; j < maximum; j++) {
    int code = system(command);
    if (code != retcode) {
      printf("! failed to get code %d, instead got %d\n", retcode, code);
      exit(2);
    }
    usleep(delay * 1000);
  }
  exit(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)
cmpl   $0x2,-0x8(%rbp)
jge    1197 <main+0x27>
mov    $0x0,%al
call   1070 <print_help@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
movl   $0xa,-0x1c(%rbp)
movl   $0x3e8,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x2,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1371 <main+0x201>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe22(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     120d <main+0x9d>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe04(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1234 <main+0xc4>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %eax,-0x1c(%rbp)
jmp    135e <main+0x1ee>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdc4(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     1276 <main+0x106>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xda6(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    129d <main+0x12d>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %eax,-0x20(%rbp)
jmp    1359 <main+0x1e9>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd64(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     12df <main+0x16f>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd46(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1306 <main+0x196>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %eax,-0x24(%rbp)
jmp    1354 <main+0x1e4>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd05(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     1348 <main+0x1d8>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xce7(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    134f <main+0x1df>
mov    $0x0,%al
call   1070 <print_help@plt>
jmp    1354 <main+0x1e4>
jmp    1359 <main+0x1e9>
jmp    135e <main+0x1ee>
jmp    1363 <main+0x1f3>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11bf <main+0x4f>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13d2 <main+0x262>
mov    -0x18(%rbp),%rdi
call   1030 <system@plt>
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     13b8 <main+0x248>
mov    -0x24(%rbp),%esi
mov    -0x30(%rbp),%edx
lea    0xc7f(%rip),%rdi
call   1040 <printf@plt>
mov    $0x2,%edi
call   1080 <exit@plt>
imul   $0x3e8,-0x1c(%rbp),%edi
call   1090 <usleep@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1378 <main+0x208>
xor    %edi,%edi
call   1080 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     11a3 <main+0x33>
xor    %r15d,%r15d
xor    %eax,%eax
call   1070 <print_help@plt>
mov    0x8(%rbx),%r14
mov    $0x3e8,%ebp
mov    $0xa,%eax
jmp    12f9 <main+0x189>
mov    0x8(%rbx),%r14
cmp    $0x2,%edi
jne    11be <main+0x4e>
mov    $0x3e8,%ebp
xor    %r15d,%r15d
mov    $0xa,%eax
jmp    12f9 <main+0x189>
mov    %edi,%eax
add    $0xfffffffffffffffe,%rax
mov    %rax,0x10(%rsp)
mov    $0x3e8,%ebp
movl   $0xa,0xc(%rsp)
xor    %r12d,%r12d
xor    %r15d,%r15d
jmp    1204 <main+0x94>
xchg   %ax,%ax
mov    0x18(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %eax,0xc(%rsp)
add    $0x1,%r12
cmp    %r12,0x10(%rsp)
je     12f1 <main+0x181>
mov    0x10(%rbx,%r12,8),%r13
mov    %r13,%rdi
lea    0xded(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     11e0 <main+0x70>
mov    %r13,%rdi
lea    0xddd(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     11e0 <main+0x70>
mov    %r13,%rdi
lea    0xdd2(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12c0 <main+0x150>
mov    %r13,%rdi
lea    0xdc2(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12c0 <main+0x150>
mov    %r13,%rdi
lea    0xdb5(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12d8 <main+0x168>
mov    %r13,%rdi
lea    0xda5(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12d8 <main+0x168>
mov    %r13,%rdi
lea    0xd99(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     12a5 <main+0x135>
mov    %r13,%rdi
lea    0xd89(%rip),%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
jne    11f5 <main+0x85>
xor    %eax,%eax
call   1070 <print_help@plt>
jmp    11f5 <main+0x85>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x18(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %eax,%ebp
jmp    11f5 <main+0x85>
mov    0x18(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %eax,%r15d
jmp    11f5 <main+0x85>
test   %ebp,%ebp
mov    0xc(%rsp),%eax
jle    1319 <main+0x1a9>
imul   $0x3e8,%eax,%ebx
nop
mov    %r14,%rdi
call   1030 <system@plt>
cmp    %r15d,%eax
jne    1320 <main+0x1b0>
mov    %ebx,%edi
call   1090 <usleep@plt>
add    $0xffffffff,%ebp
jne    1300 <main+0x190>
xor    %edi,%edi
call   1080 <exit@plt>
lea    0xd01(%rip),%rdi
mov    %r15d,%esi
mov    %eax,%edx
call   1040 <printf@plt>
mov    $0x2,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-d\00"
@.str.1 = [8 x i8] c"--delay\00"
@.str.2 = [3 x i8] c"-m\00"
@.str.3 = [6 x i8] c"--max\00"
@.str.4 = [3 x i8] c"-c\00"
@.str.5 = [7 x i8] c"--code\00"
@.str.6 = [3 x i8] c"-h\00"
@.str.7 = [7 x i8] c"--help\00"
@.str.8 = [41 x i8] c"! failed to get code %d, instead got %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 (...) @print_help()
br label %17
17: ; preds = %15, %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
store i8* %20, i8** %6
store i32 10, i32* %7
store i32 1000, i32* %8
store i32 0, i32* %9
store i32 2, i32* %10
br label %21
21: ; preds = %119, %17
%22 = load i32, i32* %10
%23 = load i32, i32* %4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %122
25: ; preds = %21
%26 = load i8**, i8*** %5
%27 = load i32, i32* %10
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8*, i8** %26, i64 %28
%30 = load i8*, i8** %29
%31 = call i32 @strcmp(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %41
33: ; preds = %25
%34 = load i8**, i8*** %5
%35 = load i32, i32* %10
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8*, i8** %34, i64 %36
%38 = load i8*, i8** %37
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%40 = icmp ne i32 %39, 0
br i1 %40, label %49, label %41
41: ; preds = %33, %25
%42 = load i8**, i8*** %5
%43 = load i32, i32* %10
%44 = add 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 i32 @strtol(i8* %47, i32* null, i32 10)
store i32 %48, i32* %7
br label %118
49: ; preds = %33
%50 = load i8**, i8*** %5
%51 = load i32, i32* %10
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8*, i8** %50, i64 %52
%54 = load i8*, i8** %53
%55 = call i32 @strcmp(i8* %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %65
57: ; preds = %49
%58 = load i8**, i8*** %5
%59 = load i32, i32* %10
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8*, i8** %58, i64 %60
%62 = load i8*, i8** %61
%63 = call i32 @strcmp(i8* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%64 = icmp ne i32 %63, 0
br i1 %64, label %73, label %65
65: ; preds = %57, %49
%66 = load i8**, i8*** %5
%67 = load i32, i32* %10
%68 = add nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8*, i8** %66, i64 %69
%71 = load i8*, i8** %70
%72 = call i32 @strtol(i8* %71, i32* null, i32 10)
store i32 %72, i32* %8
br label %117
73: ; preds = %57
%74 = load i8**, i8*** %5
%75 = load i32, i32* %10
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8*, i8** %74, i64 %76
%78 = load i8*, i8** %77
%79 = call i32 @strcmp(i8* %78, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %89
81: ; preds = %73
%82 = load i8**, i8*** %5
%83 = load i32, i32* %10
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8*, i8** %82, i64 %84
%86 = load i8*, i8** %85
%87 = call i32 @strcmp(i8* %86, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%88 = icmp ne i32 %87, 0
br i1 %88, label %97, label %89
89: ; preds = %81, %73
%90 = load i8**, i8*** %5
%91 = load i32, i32* %10
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8*, i8** %90, i64 %93
%95 = load i8*, i8** %94
%96 = call i32 @strtol(i8* %95, i32* null, i32 10)
store i32 %96, i32* %9
br label %116
97: ; preds = %81
%98 = load i8**, i8*** %5
%99 = load i32, i32* %10
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8*, i8** %98, i64 %100
%102 = load i8*, i8** %101
%103 = call i32 @strcmp(i8* %102, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %113
105: ; preds = %97
%106 = load i8**, i8*** %5
%107 = load i32, i32* %10
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8*, i8** %106, i64 %108
%110 = load i8*, i8** %109
%111 = call i32 @strcmp(i8* %110, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%112 = icmp ne i32 %111, 0
br i1 %112, label %115, label %113
113: ; preds = %105, %97
%114 = call i32 (...) @print_help()
br label %115
115: ; preds = %113, %105
br label %116
116: ; preds = %115, %89
br label %117
117: ; preds = %116, %65
br label %118
118: ; preds = %117, %41
br label %119
119: ; preds = %118
%120 = load i32, i32* %10
%121 = add nsw i32 %120, 1
store i32 %121, i32* %10
br label %21
122: ; preds = %21
store i32 0, i32* %11
br label %123
123: ; preds = %142, %122
%124 = load i32, i32* %11
%125 = load i32, i32* %8
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %145
127: ; preds = %123
%128 = load i8*, i8** %6
%129 = call i32 @system(i8* %128)
store i32 %129, i32* %12
%130 = load i32, i32* %12
%131 = load i32, i32* %9
%132 = icmp ne i32 %130, %131
br i1 %132, label %133, label %138
133: ; preds = %127
%134 = load i32, i32* %9
%135 = load i32, i32* %12
%136 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0), i32 %134, i32 %135)
%137 = call i32 @exit(i32 2)
unreachable
138: ; preds = %127
%139 = load i32, i32* %7
%140 = mul nsw i32 %139, 1000
%141 = call i32 @usleep(i32 %140)
br label %142
142: ; preds = %138
%143 = load i32, i32* %11
%144 = add nsw i32 %143, 1
store i32 %144, i32* %11
br label %123
145: ; preds = %123
%146 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"-d\00"
@.str.1 = [8 x i8] c"--delay\00"
@.str.2 = [3 x i8] c"-m\00"
@.str.3 = [6 x i8] c"--max\00"
@.str.4 = [3 x i8] c"-c\00"
@.str.5 = [7 x i8] c"--code\00"
@.str.6 = [3 x i8] c"-h\00"
@.str.7 = [7 x i8] c"--help\00"
@.str.8 = [41 x i8] c"! failed to get code %d, instead got %d\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = tail call i32 (...) @print_help()
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
br label %16
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = icmp eq i32 %0, 2
br i1 %11, label %16, label %12
12: ; preds = %8
%13 = zext i32 %0 to i64
br label %22
14: ; preds = %69
%15 = icmp sgt i32 %70, 0
br i1 %15, label %16, label %75
16: ; preds = %4, %8, %14
%17 = phi i32 [ %72, %14 ], [ 10, %8 ], [ 10, %4 ]
%18 = phi i32 [ %71, %14 ], [ 0, %8 ], [ 0, %4 ]
%19 = phi i32 [ %70, %14 ], [ 1000, %8 ], [ 1000, %4 ]
%20 = phi i8* [ %10, %14 ], [ %10, %8 ], [ %7, %4 ]
%21 = mul nsw i32 %17, 1000
br label %77
22: ; preds = %12, %69
%23 = phi i64 [ 2, %12 ], [ %73, %69 ]
%24 = phi i32 [ 10, %12 ], [ %72, %69 ]
%25 = phi i32 [ 0, %12 ], [ %71, %69 ]
%26 = phi i32 [ 1000, %12 ], [ %70, %69 ]
%27 = getelementptr inbounds i8*, i8** %1, i64 %23
%28 = load i8*, i8** %27
%29 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %22
%32 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %31, %22
%35 = add nuw nsw i64 %23, 1
%36 = getelementptr inbounds i8*, i8** %1, i64 %35
%37 = load i8*, i8** %36
%38 = tail call i32 @strtol(i8* nocapture %37, i32* null, i32 10)
br label %69
39: ; preds = %31
%40 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %50
45: ; preds = %42, %39
%46 = add nuw nsw i64 %23, 1
%47 = getelementptr inbounds i8*, i8** %1, i64 %46
%48 = load i8*, i8** %47
%49 = tail call i32 @strtol(i8* nocapture %48, i32* null, i32 10)
br label %69
50: ; preds = %42
%51 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %56, label %53
53: ; preds = %50
%54 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %61
56: ; preds = %53, %50
%57 = add nuw nsw i64 %23, 1
%58 = getelementptr inbounds i8*, i8** %1, i64 %57
%59 = load i8*, i8** %58
%60 = tail call i32 @strtol(i8* nocapture %59, i32* null, i32 10)
br label %69
61: ; preds = %53
%62 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%63 = icmp eq i32 %62, 0
br i1 %63, label %67, label %64
64: ; preds = %61
%65 = tail call i32 @strcmp(i8* dereferenceable(1) %28, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %64, %61
%68 = tail call i32 (...) @print_help()
br label %69
69: ; preds = %34, %56, %67, %64, %45
%70 = phi i32 [ %26, %64 ], [ %26, %67 ], [ %26, %56 ], [ %49, %45 ], [ %26, %34 ]
%71 = phi i32 [ %25, %64 ], [ %25, %67 ], [ %60, %56 ], [ %25, %45 ], [ %25, %34 ]
%72 = phi i32 [ %24, %64 ], [ %24, %67 ], [ %24, %56 ], [ %24, %45 ], [ %38, %34 ]
%73 = add nuw nsw i64 %23, 1
%74 = icmp eq i64 %73, %13
br i1 %74, label %14, label %22
75: ; preds = %84, %14
%76 = tail call i32 @exit(i32 0)
unreachable
77: ; preds = %16, %84
%78 = phi i32 [ 0, %16 ], [ %86, %84 ]
%79 = tail call i32 @system(i8* %20)
%80 = icmp eq i32 %79, %18
br i1 %80, label %84, label %81
81: ; preds = %77
%82 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0), i32 %18, i32 %79)
%83 = tail call i32 @exit(i32 2)
unreachable
84: ; preds = %77
%85 = tail call i32 @usleep(i32 %21)
%86 = add nuw nsw i32 %78, 1
%87 = icmp eq i32 %86, %19
br i1 %87, label %75, label %77
}