#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 proxy_node_t {
  int dummy;
};
typedef int int64_t;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getopt(int, char **, char *);
char *optarg;
char optopt;
struct proxy_node_t *proxy_init(int, char *, char *, char *, int);
int /*<<< orphan*/ proxy_run(struct proxy_node_t *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ usage();
int main(int argc, char **argv) {
  char *start_mode = NULL;
  char *config_path = NULL;
  char *log_dir = NULL;
  int64_t node_id = -1;
  int fake_mode = 1;
  int c;
  while ((c = getopt(argc, argv, "drl:c:n:m:")) != -1) {
    switch (c) {
    case 'n':
      node_id = atoi(optarg);
      break;
    case 'c':
      config_path = optarg;
      break;
    case 'l':
      log_dir = optarg;
      break;
    case 'm':
      start_mode = optarg;
      if (*start_mode != 's' && *start_mode != 'r') {
        fprintf(stderr, "Unknown Start Mode.\n");
        usage();
        exit(1);
      }
      break;
    case 'r':
      fprintf(stderr, "real mode is opened.\n");
      fake_mode = 0;
    case '?':
      if (optopt == 'n') {
        fprintf(stderr, "Option -n requires an argument.\n");
        usage();
        exit(1);
      } else if (optopt == 'm') {
        fprintf(stderr, "Option -m requires an argument.\n");
        usage();
        exit(1);
      } else if (optopt == 'c') {
        fprintf(stderr, "Option -c requires an argument.\n");
        usage();
        exit(1);
      }
      break;
    default:
      fprintf(stderr, "Unknown Option %d \n", c);
      exit(1);
    }
  }
  if (config_path == NULL || node_id == -1 || start_mode == NULL) {
    usage();
    exit(1);
  }
  struct proxy_node_t *proxy =
      proxy_init(node_id, start_mode, config_path, log_dir, fake_mode);
  if (NULL == proxy) {
    return 1;
  } else {
    proxy_run(proxy);
  }
  fprintf(stdout, "Program Finishes.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0xffffffff,-0x2c(%rbp)
movl   $0x1,-0x30(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xf16(%rip),%rdx
call   1070 <getopt@plt>
mov    %eax,-0x34(%rbp)
cmp    $0xffffffff,%eax
je     1393 <main+0x223>
mov    -0x34(%rbp),%eax
add    $0xffffffc1,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x33,%eax
ja     136a <main+0x1fa>
mov    -0x48(%rbp),%rax
lea    0xe15(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2dfd(%rip),%rax
mov    (%rax),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x2c(%rbp)
jmp    138e <main+0x21e>
mov    0x2de6(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    138e <main+0x21e>
mov    0x2dd3(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
jmp    138e <main+0x21e>
mov    0x2dc0(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x73,%eax
je     1287 <main+0x117>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x72,%eax
je     1287 <main+0x117>
mov    0x2d6a(%rip),%rax
mov    (%rax),%edi
lea    0xe6c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1060 <usage@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    138e <main+0x21e>
mov    0x2d3d(%rip),%rax
mov    (%rax),%edi
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x30(%rbp)
mov    0x2d2f(%rip),%rax
movsbl (%rax),%eax
cmp    $0x6e,%eax
jne    12e5 <main+0x175>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
lea    0xe39(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1060 <usage@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2cf4(%rip),%rax
movsbl (%rax),%eax
cmp    $0x6d,%eax
jne    1320 <main+0x1b0>
mov    0x2cd1(%rip),%rax
mov    (%rax),%edi
lea    0xe1f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1060 <usage@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2cb9(%rip),%rax
movsbl (%rax),%eax
cmp    $0x63,%eax
jne    135b <main+0x1eb>
mov    0x2c96(%rip),%rax
mov    (%rax),%edi
lea    0xe05(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1060 <usage@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    1360 <main+0x1f0>
jmp    1365 <main+0x1f5>
jmp    138e <main+0x21e>
mov    0x2c5f(%rip),%rax
mov    (%rax),%edi
mov    -0x34(%rbp),%edx
lea    0xdec(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    11ac <main+0x3c>
cmpq   $0x0,-0x20(%rbp)
je     13b3 <main+0x243>
cmpl   $0xffffffff,-0x2c(%rbp)
je     13b3 <main+0x243>
cmpq   $0x0,-0x18(%rbp)
jne    13c4 <main+0x254>
mov    $0x0,%al
call   1060 <usage@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x2c(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x30(%rbp),%r8d
call   1050 <proxy_init@plt>
mov    %rax,-0x40(%rbp)
xor    %eax,%eax
cmp    -0x40(%rbp),%rax
jne    13f8 <main+0x288>
movl   $0x1,-0x4(%rbp)
jmp    141f <main+0x2af>
mov    -0x40(%rbp),%rdi
call   1030 <proxy_run@plt>
mov    0x2bc0(%rip),%rax
mov    (%rax),%edi
lea    0xd6c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x1,(%rsp)
movl   $0xffffffff,0x4(%rsp)
ff
xor    %eax,%eax
mov    %rax,0x10(%rsp)
lea    0xea0(%rip),%r15
mov    0x2e51(%rip),%r12
lea    0xe52(%rip),%r13
xor    %eax,%eax
mov    %rax,0x8(%rsp)
xor    %r14d,%r14d
jmp    11d2 <main+0x62>
nopw   0x0(%rax,%rax,1)
mov    (%r12),%r14
movzbl (%r14),%eax
and    $0xfe,%al
cmp    $0x72,%al
jne    1315 <main+0x1a5>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1070 <getopt@plt>
cmp    $0x6d,%eax
je     11c0 <main+0x50>
lea    -0x63(%rax),%ecx
cmp    $0xf,%ecx
ja     1201 <main+0x91>
movslq 0x0(%r13,%rcx,4),%rcx
add    %r13,%rcx
jmp    *%rcx
mov    (%r12),%rax
mov    %rax,0x10(%rsp)
jmp    11d2 <main+0x62>
cmp    $0xffffffff,%eax
je     127f <main+0x10f>
cmp    $0x3f,%eax
je     1248 <main+0xd8>
jmp    12f2 <main+0x182>
mov    (%r12),%rax
mov    %rax,0x8(%rsp)
jmp    11d2 <main+0x62>
mov    (%r12),%rdi
call   1080 <atoi@plt>
mov    %eax,0x4(%rsp)
jmp    11d2 <main+0x62>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
movl   $0x0,(%rsp)
lea    0xe1f(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x2d91(%rip),%rax
movzbl (%rax),%eax
cmp    $0x63,%al
je     133d <main+0x1cd>
cmp    $0x6d,%al
je     134f <main+0x1df>
cmp    $0x6e,%al
jne    11d2 <main+0x62>
mov    0x2d5f(%rip),%rax
mov    (%rax),%edi
lea    0xdfc(%rip),%rsi
jmp    1325 <main+0x1b5>
mov    0x10(%rsp),%rdx
test   %rdx,%rdx
mov    0x4(%rsp),%edi
je     132c <main+0x1bc>
cmp    $0xffffffff,%edi
je     132c <main+0x1bc>
test   %r14,%r14
je     132c <main+0x1bc>
mov    %r14,%rsi
mov    0x8(%rsp),%rcx
mov    (%rsp),%r8d
call   1050 <proxy_init@plt>
test   %rax,%rax
je     12dc <main+0x16c>
mov    %rax,%rdi
call   1030 <proxy_run@plt>
mov    0x2d00(%rip),%rax
mov    (%rax),%edi
lea    0xe1c(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    12e1 <main+0x171>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cd7(%rip),%rcx
mov    (%rcx),%edi
lea    0xdd7(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2cb4(%rip),%rax
mov    (%rax),%edi
lea    0xd26(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1060 <usage@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2c8c(%rip),%rax
mov    (%rax),%edi
lea    0xd6b(%rip),%rsi
jmp    1325 <main+0x1b5>
mov    0x2c7a(%rip),%rax
mov    (%rax),%edi
lea    0xd38(%rip),%rsi
jmp    1325 <main+0x1b5>

LLVM IR (-O0):
%struct.proxy_node_t = type { i32 }
@.str = [11 x i8] c"drl:c:n:m:\00"
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [21 x i8] c"Unknown Start Mode.\0A\00"
@.str.2 = [22 x i8] c"real mode is opened.\0A\00"
@optopt = global i8 0
@.str.3 = [33 x i8] c"Option -n requires an argument.\0A\00"
@.str.4 = [33 x i8] c"Option -m requires an argument.\0A\00"
@.str.5 = [33 x i8] c"Option -c requires an argument.\0A\00"
@.str.6 = [20 x i8] c"Unknown Option %d \0A\00"
@stdout = global i32 0
@.str.7 = [19 x i8] c"Program Finishes.\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 i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca %struct.proxy_node_t*
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 i8* null, i8** %8
store i32 -1, i32* %9
store i32 1, i32* %10
br label %13
13: ; preds = %82, %2
%14 = load i32, i32* %4
%15 = load i8**, i8*** %5
%16 = call i32 @getopt(i32 %14, i8** %15, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i32 %16, i32* %11
%17 = icmp ne i32 %16, -1
br i1 %17, label %18, label %83
18: ; preds = %13
%19 = load i32, i32* %11
switch i32 %19, label %77 [
i32 110, label %20
i32 99, label %23
i32 108, label %25
i32 109, label %27
i32 114, label %44
i32 63, label %47
]
20: ; preds = %18
%21 = load i8*, i8** @optarg
%22 = call i32 @atoi(i8* %21)
store i32 %22, i32* %9
br label %82
23: ; preds = %18
%24 = load i8*, i8** @optarg
store i8* %24, i8** %7
br label %82
25: ; preds = %18
%26 = load i8*, i8** @optarg
store i8* %26, i8** %8
br label %82
27: ; preds = %18
%28 = load i8*, i8** @optarg
store i8* %28, i8** %6
%29 = load i8*, i8** %6
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 115
br i1 %32, label %33, label %43
33: ; preds = %27
%34 = load i8*, i8** %6
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %36, 114
br i1 %37, label %38, label %43
38: ; preds = %33
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%41 = call i32 (...) @usage()
%42 = call i32 @exit(i32 1)
unreachable
43: ; preds = %33, %27
br label %82
44: ; preds = %18
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %10
br label %47
47: ; preds = %18, %44
%48 = load i8, i8* @optopt
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 110
br i1 %50, label %51, label %56
51: ; preds = %47
%52 = load i32, i32* @stderr
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%54 = call i32 (...) @usage()
%55 = call i32 @exit(i32 1)
unreachable
56: ; preds = %47
%57 = load i8, i8* @optopt
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 109
br i1 %59, label %60, label %65
60: ; preds = %56
%61 = load i32, i32* @stderr
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%63 = call i32 (...) @usage()
%64 = call i32 @exit(i32 1)
unreachable
65: ; preds = %56
%66 = load i8, i8* @optopt
%67 = sext i8 %66 to i32
%68 = icmp eq i32 %67, 99
br i1 %68, label %69, label %74
69: ; preds = %65
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%72 = call i32 (...) @usage()
%73 = call i32 @exit(i32 1)
unreachable
74: ; preds = %65
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75
br label %82
77: ; preds = %18
%78 = load i32, i32* @stderr
%79 = load i32, i32* %11
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %79)
%81 = call i32 @exit(i32 1)
unreachable
82: ; preds = %76, %43, %25, %23, %20
br label %13
83: ; preds = %13
%84 = load i8*, i8** %7
%85 = icmp eq i8* %84, null
br i1 %85, label %92, label %86
86: ; preds = %83
%87 = load i32, i32* %9
%88 = icmp eq i32 %87, -1
br i1 %88, label %92, label %89
89: ; preds = %86
%90 = load i8*, i8** %6
%91 = icmp eq i8* %90, null
br i1 %91, label %92, label %95
92: ; preds = %89, %86, %83
%93 = call i32 (...) @usage()
%94 = call i32 @exit(i32 1)
unreachable
95: ; preds = %89
%96 = load i32, i32* %9
%97 = load i8*, i8** %6
%98 = load i8*, i8** %7
%99 = load i8*, i8** %8
%100 = load i32, i32* %10
%101 = call %struct.proxy_node_t* @proxy_init(i32 %96, i8* %97, i8* %98, i8* %99, i32 %100)
store %struct.proxy_node_t* %101, %struct.proxy_node_t** %12
%102 = load %struct.proxy_node_t*, %struct.proxy_node_t** %12
%103 = icmp eq %struct.proxy_node_t* null, %102
br i1 %103, label %104, label %105
104: ; preds = %95
store i32 1, i32* %3
br label %111
105: ; preds = %95
%106 = load %struct.proxy_node_t*, %struct.proxy_node_t** %12
%107 = call i32 @proxy_run(%struct.proxy_node_t* %106)
br label %108
108: ; preds = %105
%109 = load i32, i32* @stdout
%110 = call i32 (i32, i8*, ...) @fprintf(i32 %109, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %3
br label %111
111: ; preds = %108, %104
%112 = load i32, i32* %3
ret i32 %112
}

LLVM IR (-O2):
%struct.proxy_node_t = type { i32 }
@.str = [11 x i8] c"drl:c:n:m:\00"
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [21 x i8] c"Unknown Start Mode.\0A\00"
@.str.2 = [22 x i8] c"real mode is opened.\0A\00"
@optopt = global i8 0
@.str.3 = [33 x i8] c"Option -n requires an argument.\0A\00"
@.str.4 = [33 x i8] c"Option -m requires an argument.\0A\00"
@.str.5 = [33 x i8] c"Option -c requires an argument.\0A\00"
@.str.6 = [20 x i8] c"Unknown Option %d \0A\00"
@stdout = global i32 0
@.str.7 = [19 x i8] c"Program Finishes.\0A\00"
define i32 @main(i32 %0, i8** %1) {
br label %3
3: ; preds = %27, %2
%4 = phi i8* [ %28, %27 ], [ null, %2 ]
%5 = phi i8* [ %10, %27 ], [ null, %2 ]
%6 = phi i32 [ %15, %27 ], [ -1, %2 ]
%7 = phi i32 [ %19, %27 ], [ 1, %2 ]
%8 = phi i8* [ %22, %27 ], [ null, %2 ]
br label %9
9: ; preds = %3, %29
%10 = phi i8* [ %5, %3 ], [ %30, %29 ]
%11 = phi i32 [ %6, %3 ], [ %15, %29 ]
%12 = phi i32 [ %7, %3 ], [ %19, %29 ]
%13 = phi i8* [ %8, %3 ], [ %22, %29 ]
br label %14
14: ; preds = %9, %24
%15 = phi i32 [ %11, %9 ], [ %26, %24 ]
%16 = phi i32 [ %12, %9 ], [ %19, %24 ]
%17 = phi i8* [ %13, %9 ], [ %22, %24 ]
br label %18
18: ; preds = %14, %44
%19 = phi i32 [ %16, %14 ], [ %45, %44 ]
%20 = phi i8* [ %17, %14 ], [ %22, %44 ]
br label %21
21: ; preds = %18, %31
%22 = phi i8* [ %32, %31 ], [ %20, %18 ]
%23 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
switch i32 %23, label %62 [
i32 -1, label %66
i32 110, label %24
i32 99, label %27
i32 108, label %29
i32 109, label %31
i32 114, label %41
i32 63, label %44
]
24: ; preds = %21
%25 = load i8*, i8** @optarg
%26 = tail call i32 @atoi(i8* %25)
br label %14
27: ; preds = %21
%28 = load i8*, i8** @optarg
br label %3
29: ; preds = %21
%30 = load i8*, i8** @optarg
br label %9
31: ; preds = %21
%32 = load i8*, i8** @optarg
%33 = load i8, i8* %32
%34 = and i8 %33, -2
%35 = icmp eq i8 %34, 114
br i1 %35, label %21, label %36
36: ; preds = %31
%37 = load i32, i32* @stderr
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%39 = tail call i32 (...) @usage()
%40 = tail call i32 @exit(i32 1)
unreachable
41: ; preds = %21
%42 = load i32, i32* @stderr
%43 = tail call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
br label %44
44: ; preds = %21, %41
%45 = phi i32 [ 0, %41 ], [ %19, %21 ]
%46 = load i8, i8* @optopt
switch i8 %46, label %18 [
i8 110, label %47
i8 109, label %52
i8 99, label %57
]
47: ; preds = %44
%48 = load i32, i32* @stderr
%49 = tail call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%50 = tail call i32 (...) @usage()
%51 = tail call i32 @exit(i32 1)
unreachable
52: ; preds = %44
%53 = load i32, i32* @stderr
%54 = tail call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%55 = tail call i32 (...) @usage()
%56 = tail call i32 @exit(i32 1)
unreachable
57: ; preds = %44
%58 = load i32, i32* @stderr
%59 = tail call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%60 = tail call i32 (...) @usage()
%61 = tail call i32 @exit(i32 1)
unreachable
62: ; preds = %21
%63 = load i32, i32* @stderr
%64 = tail call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %23)
%65 = tail call i32 @exit(i32 1)
unreachable
66: ; preds = %21
%67 = icmp eq i8* %4, null
%68 = icmp eq i32 %15, -1
%69 = select i1 %67, i1 true, i1 %68
%70 = icmp eq i8* %22, null
%71 = select i1 %69, i1 true, i1 %70
br i1 %71, label %72, label %75
72: ; preds = %66
%73 = tail call i32 (...) @usage()
%74 = tail call i32 @exit(i32 1)
unreachable
75: ; preds = %66
%76 = tail call %struct.proxy_node_t* @proxy_init(i32 %15, i8* %22, i8* %4, i8* %10, i32 %19)
%77 = icmp eq %struct.proxy_node_t* %76, null
br i1 %77, label %82, label %78
78: ; preds = %75
%79 = tail call i32 @proxy_run(%struct.proxy_node_t* %76)
%80 = load i32, i32* @stdout
%81 = tail call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
br label %82
82: ; preds = %75, %78
%83 = phi i32 [ 0, %78 ], [ 1, %75 ]
ret i32 %83
}