#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 EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, ...);
int run(char *, char *, int);
int /*<<< orphan*/ strcmp(char *, char *);
int system(char *);
int main(int argc, char **argv) {
  char *dev = NULL;
  char *prg = NULL;
  int set_daemon = 0;
  switch (argc) {
  case 2:
    if (strcmp(argv[1], "-h") == 0) {
      printf("\n");
      printf("RFIDer version %s\n\n", "0.1");
      printf("RFIDer is a simple program, running as a foreground process or a "
             "daemon,\n");
      printf("       that gets exclusive access to an input \"event device\" "
             "working as a keyboard\n");
      printf("       in order to read digits from it (as keypresses!) and send "
             "them, as standard\n");
      printf("       input, to a specified program.\n\n");
      printf("Usage:\n");
      printf("- rfider -h         : help\n");
      printf("- rfider -k         : kill any rfider instace running\n");
      printf("- rfider DEV PRG    : get exclusive access to device DEV "
             "(fullpath) and \n");
      printf(
          "                      send characters to program PRG (fullpath)\n");
      printf("- rfider -d DEV PRG : same behaviour as the previous case but "
             "rfider will \n");
      printf("                      run as a daemon\n");
      printf("\n\n");
      return EXIT_SUCCESS;
    } else if (strcmp(argv[1], "-k") == 0) {
      return system("killall -s QUIT rfider");
    } else {
      printf("\n");
      printf("RFIDer: Wrong number of parameters. Exeute rfider -h to get "
             "usage info.\n");
      printf("\n");
      return EXIT_FAILURE;
    }
    break;
  case 4:
    if (strcmp(argv[1], "-d") == 0) {
      set_daemon = 1;
      dev = argv[2];
      prg = argv[3];
    }
  case 3:
    if (dev == NULL) {
      dev = argv[1];
    }
    if (prg == NULL) {
      prg = argv[2];
    }
    return run(dev, prg, set_daemon);
    break;
  default:
    printf("\n");
    printf("RFIDer: Wrong number of parameters. Exeute rfider -h to get usage "
           "info.\n");
    printf("\n");
    return EXIT_FAILURE;
    break;
  }
  return EXIT_SUCCESS;
}


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)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
sub    $0x2,%eax
je     11a3 <main+0x63>
jmp    1181 <main+0x41>
mov    -0x28(%rbp),%eax
sub    $0x3,%eax
je     1349 <main+0x209>
jmp    1192 <main+0x52>
mov    -0x28(%rbp),%eax
sub    $0x4,%eax
je     1308 <main+0x1c8>
jmp    138f <main+0x24f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    129c <main+0x15c>
lea    0xf6c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe2e(%rip),%rdi
lea    0xe3b(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf44(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf80(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xfb3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xff1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2d46(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13c5 <main+0x285>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xfe3(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    12cd <main+0x18d>
lea    0xfd1(%rip),%rdi
call   1040 <system@plt>
mov    %eax,-0x4(%rbp)
jmp    13c5 <main+0x285>
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xfc6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2ce2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13c5 <main+0x285>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xfda(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1344 <main+0x204>
movl   $0x1,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    1349 <main+0x209>
cmpq   $0x0,-0x18(%rbp)
jne    1360 <main+0x220>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1377 <main+0x237>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
call   1030 <run@plt>
mov    %eax,-0x4(%rbp)
jmp    13c5 <main+0x285>
lea    0xd9d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xd81(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2c20(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
cmp    $0x2,%edi
je     117c <main+0x1c>
cmp    $0x4,%edi
je     11d6 <main+0x76>
cmp    $0x3,%edi
jne    11aa <main+0x4a>
mov    0x8(%rbx),%r14
jmp    11f1 <main+0x91>
mov    0x8(%rbx),%rbx
lea    0xe79(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     120d <main+0xad>
lea    0xe81(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     12e8 <main+0x188>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10e5(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2e0f(%rip),%rax
jmp    12c3 <main+0x163>
mov    0x8(%rbx),%r14
lea    0xe54(%rip),%rsi
mov    %r14,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     12cd <main+0x16d>
xor    %edx,%edx
xor    %esi,%esi
mov    %r14,%rdi
test   %rsi,%rsi
jne    1201 <main+0xa1>
mov    0x10(%rbx),%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <run@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xde5(%rip),%rdi
lea    0xdf2(%rip),%rsi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xe05(%rip),%rdi
call   1040 <puts@plt>
lea    0xe42(%rip),%rdi
call   1040 <puts@plt>
lea    0xe89(%rip),%rdi
call   1040 <puts@plt>
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1040 <puts@plt>
lea    0xee6(%rip),%rdi
call   1040 <puts@plt>
lea    0xef5(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf90(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1040 <puts@plt>
lea    0xd5e(%rip),%rdi
call   1040 <puts@plt>
mov    0x2d15(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    0x10(%rbx),%rdi
mov    0x18(%rbx),%rsi
mov    $0x1,%edx
test   %rdi,%rdi
jne    11f8 <main+0x98>
jmp    11f5 <main+0x95>
lea    0xd2f(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <system@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-h\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [20 x i8] c"RFIDer version %s\0A\0A\00"
@.str.3 = [4 x i8] c"0.1\00"
@.str.4 = [74 x i8] c"RFIDer is a simple program, running as a foreground process or a daemon,\0A\00"
@.str.5 = [84 x i8] c" that gets exclusive access to an input \22event device\22 working as a keyboard\0A\00"
@.str.6 = [84 x i8] c" in order to read digits from it (as keypresses!) and send them, as standard\0A\00"
@.str.7 = [40 x i8] c" input, to a specified program.\0A\0A\00"
@.str.8 = [8 x i8] c"Usage:\0A\00"
@.str.9 = [28 x i8] c"- rfider -h : help\0A\00"
@.str.10 = [55 x i8] c"- rfider -k : kill any rfider instace running\0A\00"
@.str.11 = [74 x i8] c"- rfider DEV PRG : get exclusive access to device DEV (fullpath) and \0A\00"
@.str.12 = [65 x i8] c" send characters to program PRG (fullpath)\0A\00"
@.str.13 = [76 x i8] c"- rfider -d DEV PRG : same behaviour as the previous case but rfider will \0A\00"
@.str.14 = [39 x i8] c" run as a daemon\0A\00"
@.str.15 = [3 x i8] c"\0A\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.16 = [3 x i8] c"-k\00"
@.str.17 = [23 x i8] c"killall -s QUIT rfider\00"
@.str.18 = [73 x i8] c"RFIDer: Wrong number of parameters. Exeute rfider -h to get usage info.\0A\00"
@EXIT_FAILURE = global i32 0
@.str.19 = [3 x i8] c"-d\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 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
store i32 0, i32* %8
%9 = load i32, i32* %4
switch i32 %9, label %78 [
i32 2, label %10
i32 4, label %45
i32 3, label %59
]
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %32
16: ; preds = %10
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.5, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.6, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.13, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.14, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%31 = load i32, i32* @EXIT_SUCCESS
store i32 %31, i32* %3
br label %83
32: ; preds = %10
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 1
%35 = load i8*, i8** %34
%36 = call i32 @strcmp(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %32
%39 = call i32 @system(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
store i32 %39, i32* %3
br label %83
40: ; preds = %32
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.18, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%44 = load i32, i32* @EXIT_FAILURE
store i32 %44, i32* %3
br label %83
45: ; preds = %2
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 1
%48 = load i8*, i8** %47
%49 = call i32 @strcmp(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %58
51: ; preds = %45
store i32 1, i32* %8
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds i8*, i8** %52, i64 2
%54 = load i8*, i8** %53
store i8* %54, i8** %6
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 3
%57 = load i8*, i8** %56
store i8* %57, i8** %7
br label %58
58: ; preds = %51, %45
br label %59
59: ; preds = %2, %58
%60 = load i8*, i8** %6
%61 = icmp eq i8* %60, null
br i1 %61, label %62, label %66
62: ; preds = %59
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 1
%65 = load i8*, i8** %64
store i8* %65, i8** %6
br label %66
66: ; preds = %62, %59
%67 = load i8*, i8** %7
%68 = icmp eq i8* %67, null
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = load i8**, i8*** %5
%71 = getelementptr inbounds i8*, i8** %70, i64 2
%72 = load i8*, i8** %71
store i8* %72, i8** %7
br label %73
73: ; preds = %69, %66
%74 = load i8*, i8** %6
%75 = load i8*, i8** %7
%76 = load i32, i32* %8
%77 = call i32 @run(i8* %74, i8* %75, i32 %76)
store i32 %77, i32* %3
br label %83
78: ; preds = %2
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.18, i64 0, i64 0))
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%82 = load i32, i32* @EXIT_FAILURE
store i32 %82, i32* %3
br label %83
83: ; preds = %78, %73, %40, %38, %16
%84 = load i32, i32* %3
ret i32 %84
}

LLVM IR (-O2):
@.str = [3 x i8] c"-h\00"
@.str.2 = [20 x i8] c"RFIDer version %s\0A\0A\00"
@.str.3 = [4 x i8] c"0.1\00"
@EXIT_SUCCESS = global i32 0
@.str.16 = [3 x i8] c"-k\00"
@.str.17 = [23 x i8] c"killall -s QUIT rfider\00"
@EXIT_FAILURE = global i32 0
@.str.19 = [3 x i8] c"-d\00"
@str.20 = [73 x i8] c"RFIDer is a simple program, running as a foreground process or a daemon,\00"
@str.21 = [83 x i8] c" that gets exclusive access to an input \22event device\22 working as a keyboard\00"
@str.22 = [83 x i8] c" in order to read digits from it (as keypresses!) and send them, as standard\00"
@str.23 = [39 x i8] c" input, to a specified program.\0A\00"
@str.24 = [7 x i8] c"Usage:\00"
@str.25 = [27 x i8] c"- rfider -h : help\00"
@str.26 = [54 x i8] c"- rfider -k : kill any rfider instace running\00"
@str.27 = [73 x i8] c"- rfider DEV PRG : get exclusive access to device DEV (fullpath) and \00"
@str.28 = [64 x i8] c" send characters to program PRG (fullpath)\00"
@str.29 = [75 x i8] c"- rfider -d DEV PRG : same behaviour as the previous case but rfider will \00"
@str.30 = [38 x i8] c" run as a daemon\00"
@str.31 = [2 x i8] c"\0A\00"
@str.32 = [72 x i8] c"RFIDer: Wrong number of parameters. Exeute rfider -h to get usage info.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
switch i32 %0, label %63 [
i32 2, label %6
i32 4, label %37
i32 3, label %3
]
3: ; preds = %2
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
br label %48
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @strcmp(i8* dereferenceable(1) %8, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %27
11: ; preds = %6
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.20, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.21, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.22, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.23, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.24, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.25, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.26, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.27, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.28, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.29, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.30, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.31, i64 0, i64 0))
%26 = load i32, i32* @EXIT_SUCCESS
br label %68
27: ; preds = %6
%28 = tail call i32 @strcmp(i8* dereferenceable(1) %8, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = tail call i32 @system(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
br label %68
32: ; preds = %27
%33 = tail call i32 @putchar(i32 10)
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.32, i64 0, i64 0))
%35 = tail call i32 @putchar(i32 10)
%36 = load i32, i32* @EXIT_FAILURE
br label %68
37: ; preds = %2
%38 = getelementptr inbounds i8*, i8** %1, i64 1
%39 = load i8*, i8** %38
%40 = tail call i32 @strcmp(i8* dereferenceable(1) %39, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %48
42: ; preds = %37
%43 = getelementptr inbounds i8*, i8** %1, i64 2
%44 = load i8*, i8** %43
%45 = getelementptr inbounds i8*, i8** %1, i64 3
%46 = load i8*, i8** %45
%47 = icmp eq i8* %44, null
br i1 %47, label %48, label %52
48: ; preds = %3, %37, %42
%49 = phi i8* [ %39, %42 ], [ %5, %3 ], [ %39, %37 ]
%50 = phi i32 [ 1, %42 ], [ 0, %3 ], [ 0, %37 ]
%51 = phi i8* [ %46, %42 ], [ null, %3 ], [ null, %37 ]
br label %52
52: ; preds = %48, %42
%53 = phi i32 [ %50, %48 ], [ 1, %42 ]
%54 = phi i8* [ %51, %48 ], [ %46, %42 ]
%55 = phi i8* [ %49, %48 ], [ %44, %42 ]
%56 = icmp eq i8* %54, null
br i1 %56, label %57, label %60
57: ; preds = %52
%58 = getelementptr inbounds i8*, i8** %1, i64 2
%59 = load i8*, i8** %58
br label %60
60: ; preds = %57, %52
%61 = phi i8* [ %59, %57 ], [ %54, %52 ]
%62 = tail call i32 @run(i8* %55, i8* %61, i32 %53)
br label %68
63: ; preds = %2
%64 = tail call i32 @putchar(i32 10)
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.32, i64 0, i64 0))
%66 = tail call i32 @putchar(i32 10)
%67 = load i32, i32* @EXIT_FAILURE
br label %68
68: ; preds = %63, %60, %32, %30, %11
%69 = phi i32 [ %67, %63 ], [ %62, %60 ], [ %26, %11 ], [ %31, %30 ], [ %36, %32 ]
ret i32 %69
}