#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*/ createlog(int, char **);
int /*<<< orphan*/ data_dump(int, char **);
int /*<<< orphan*/ decachelog(int, char **);
int /*<<< orphan*/ deletelog(int, char **);
int /*<<< orphan*/ dumpbytime(int, char **);
scalar_t__ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ infomem(int, char **);
int /*<<< orphan*/ mincorelog(int, char **);
int parse_opt_o(char *);
int /*<<< orphan*/ print_usage();
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ synclog(int, char **);
int /*<<< orphan*/ verify_checksum(int, char **);
int main(int argc, char *argv[]) {
  if (argc < 2) {
    goto error;
  }
  if (strcmp(argv[1], "-o") == 0) {
    int ret;
    if (argc < 3) {
      printf("-o option needs value\n");
      goto error;
    }
    ret = parse_opt_o(argv[2]);
    if (ret < 0) {
      printf("Failed to parse -o option:%s\n", argv[2]);
      goto error;
    }
    argc = argc - 2;
    argv = argv + 2;
  }
  errno = 0;
  if (strcmp(argv[1], "vc") == 0) {
    verify_checksum(argc - 2, argv + 2);
  } else if (strcmp(argv[1], "datadump") == 0) {
    data_dump(argc - 2, argv + 2);
  } else if (strcmp(argv[1], "dumpbytime") == 0) {
    dumpbytime(argc - 2, argv + 2);
  } else if (strcmp(argv[1], "mincorelog") == 0) {
    mincorelog(argc - 2, argv + 2);
  } else if (strcmp(argv[1], "decachelog") == 0) {
    decachelog(argc - 2, argv + 2);
  } else if (strcmp(argv[1], "createlog") == 0) {
    createlog(argc - 2, argv + 2);
  } else if (strcmp(argv[1], "deletelog") == 0) {
    deletelog(argc - 2, argv + 2);
  } else if (strcmp(argv[1], "synclog") == 0) {
    synclog(argc - 2, argv + 2);
  } else if (strcmp(argv[1], "infomem") == 0) {
    infomem(argc - 2, argv + 2);
  } else {
    printf("Unsupported subcommand:%s\n", argv[1]);
    goto error;
  }
  return 0;
error:
  print_usage();
  exit(1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1205 <main+0x25>
jmp    14c9 <main+0x2e9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdec(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    128a <main+0xaa>
cmpl   $0x3,-0x8(%rbp)
jge    1240 <main+0x60>
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    14c9 <main+0x2e9>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1080 <parse_opt_o@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1275 <main+0x95>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xdb1(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    14c9 <main+0x2e9>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x10(%rbp)
mov    0x2d4f(%rip),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd91(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    12ce <main+0xee>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   10c0 <verify_checksum@plt>
jmp    14c1 <main+0x2e1>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd5e(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1304 <main+0x124>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   1050 <data_dump@plt>
jmp    14bc <main+0x2dc>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd31(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    133a <main+0x15a>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   10a0 <dumpbytime@plt>
jmp    14b7 <main+0x2d7>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd06(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1370 <main+0x190>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   1060 <mincorelog@plt>
jmp    14b2 <main+0x2d2>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcdb(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13a6 <main+0x1c6>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   10d0 <decachelog@plt>
jmp    14ad <main+0x2cd>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcb0(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13dc <main+0x1fc>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   1040 <createlog@plt>
jmp    14a8 <main+0x2c8>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc84(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1412 <main+0x232>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   1100 <deletelog@plt>
jmp    14a3 <main+0x2c3>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc58(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1448 <main+0x268>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   1090 <synclog@plt>
jmp    149e <main+0x2be>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc2a(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    147e <main+0x29e>
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   1030 <infomem@plt>
jmp    1499 <main+0x2b9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xbfc(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    14c9 <main+0x2e9>
jmp    149e <main+0x2be>
jmp    14a3 <main+0x2c3>
jmp    14a8 <main+0x2c8>
jmp    14ad <main+0x2cd>
jmp    14b2 <main+0x2d2>
jmp    14b7 <main+0x2d7>
jmp    14bc <main+0x2dc>
jmp    14c1 <main+0x2e1>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret
mov    $0x0,%al
call   10f0 <print_usage@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x2,%edi
jl     13fd <main+0x20d>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
lea    0xdf4(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
jne    1237 <main+0x47>
cmp    $0x2,%ebp
jbe    13de <main+0x1ee>
mov    0x10(%rbx),%rdi
add    $0x10,%rbx
call   1090 <parse_opt_o@plt>
test   %eax,%eax
js     13ec <main+0x1fc>
add    $0xfffffffe,%ebp
mov    0x2da2(%rip),%rax
movq   $0x0,(%rax)
mov    0x8(%rbx),%rdi
lea    0xdd1(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     133c <main+0x14c>
mov    0x8(%rbx),%rdi
lea    0xdbb(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1352 <main+0x162>
mov    0x8(%rbx),%rdi
lea    0xdab(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1365 <main+0x175>
mov    0x8(%rbx),%rdi
lea    0xd9d(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     1378 <main+0x188>
mov    0x8(%rbx),%rdi
lea    0xd8f(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     138b <main+0x19b>
mov    0x8(%rbx),%rdi
lea    0xd81(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     139e <main+0x1ae>
mov    0x8(%rbx),%rdi
lea    0xd72(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     13b1 <main+0x1c1>
mov    0x8(%rbx),%rdi
lea    0xd63(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
je     13c4 <main+0x1d4>
mov    0x8(%rbx),%rdi
lea    0xd52(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
jne    140e <main+0x21e>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1030 <infomem@plt>
jmp    13d5 <main+0x1e5>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   10d0 <verify_checksum@plt>
jmp    13d5 <main+0x1e5>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1060 <data_dump@plt>
jmp    13d5 <main+0x1e5>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   10b0 <dumpbytime@plt>
jmp    13d5 <main+0x1e5>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1070 <mincorelog@plt>
jmp    13d5 <main+0x1e5>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   10e0 <decachelog@plt>
jmp    13d5 <main+0x1e5>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1050 <createlog@plt>
jmp    13d5 <main+0x1e5>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1110 <deletelog@plt>
jmp    13d5 <main+0x1e5>
add    $0xfffffffe,%ebp
add    $0x10,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
call   10a0 <synclog@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xca8(%rip),%rdi
call   1040 <puts@plt>
jmp    13fd <main+0x20d>
mov    (%rbx),%rsi
lea    0xc0d(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1100 <print_usage@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    0x8(%rbx),%rsi
lea    0xc59(%rip),%rdi
jmp    13f6 <main+0x206>

LLVM IR (-O0):
@.str = [3 x i8] c"-o\00"
@.str.1 = [23 x i8] c"-o option needs value\0A\00"
@.str.2 = [30 x i8] c"Failed to parse -o option:%s\0A\00"
@errno = global i64 0
@.str.3 = [3 x i8] c"vc\00"
@.str.4 = [9 x i8] c"datadump\00"
@.str.5 = [11 x i8] c"dumpbytime\00"
@.str.6 = [11 x i8] c"mincorelog\00"
@.str.7 = [11 x i8] c"decachelog\00"
@.str.8 = [10 x i8] c"createlog\00"
@.str.9 = [10 x i8] c"deletelog\00"
@.str.10 = [8 x i8] c"synclog\00"
@.str.11 = [8 x i8] c"infomem\00"
@.str.12 = [27 x i8] c"Unsupported subcommand:%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %10
9: ; preds = %2
br label %160
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %38
16: ; preds = %10
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 3
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
br label %160
21: ; preds = %16
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 2
%24 = load i8*, i8** %23
%25 = call i32 @parse_opt_o(i8* %24)
store i32 %25, i32* %6
%26 = load i32, i32* %6
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %21
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 2
%31 = load i8*, i8** %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %31)
br label %160
33: ; preds = %21
%34 = load i32, i32* %4
%35 = sub nsw i32 %34, 2
store i32 %35, i32* %4
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 2
store i8** %37, i8*** %5
br label %38
38: ; preds = %33, %10
store i64 0, i64* @errno
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %38
%45 = load i32, i32* %4
%46 = sub nsw i32 %45, 2
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i64 2
%49 = call i32 @verify_checksum(i32 %46, i8** %48)
br label %159
50: ; preds = %38
%51 = load i8**, i8*** %5
%52 = getelementptr inbounds i8*, i8** %51, i64 1
%53 = load i8*, i8** %52
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %62
56: ; preds = %50
%57 = load i32, i32* %4
%58 = sub nsw i32 %57, 2
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 2
%61 = call i32 @data_dump(i32 %58, i8** %60)
br label %158
62: ; preds = %50
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 1
%65 = load i8*, i8** %64
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %74
68: ; preds = %62
%69 = load i32, i32* %4
%70 = sub nsw i32 %69, 2
%71 = load i8**, i8*** %5
%72 = getelementptr inbounds i8*, i8** %71, i64 2
%73 = call i32 @dumpbytime(i32 %70, i8** %72)
br label %157
74: ; preds = %62
%75 = load i8**, i8*** %5
%76 = getelementptr inbounds i8*, i8** %75, i64 1
%77 = load i8*, i8** %76
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %86
80: ; preds = %74
%81 = load i32, i32* %4
%82 = sub nsw i32 %81, 2
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i64 2
%85 = call i32 @mincorelog(i32 %82, i8** %84)
br label %156
86: ; preds = %74
%87 = load i8**, i8*** %5
%88 = getelementptr inbounds i8*, i8** %87, i64 1
%89 = load i8*, i8** %88
%90 = call i64 @strcmp(i8* %89, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %98
92: ; preds = %86
%93 = load i32, i32* %4
%94 = sub nsw i32 %93, 2
%95 = load i8**, i8*** %5
%96 = getelementptr inbounds i8*, i8** %95, i64 2
%97 = call i32 @decachelog(i32 %94, i8** %96)
br label %155
98: ; preds = %86
%99 = load i8**, i8*** %5
%100 = getelementptr inbounds i8*, i8** %99, i64 1
%101 = load i8*, i8** %100
%102 = call i64 @strcmp(i8* %101, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %110
104: ; preds = %98
%105 = load i32, i32* %4
%106 = sub nsw i32 %105, 2
%107 = load i8**, i8*** %5
%108 = getelementptr inbounds i8*, i8** %107, i64 2
%109 = call i32 @createlog(i32 %106, i8** %108)
br label %154
110: ; preds = %98
%111 = load i8**, i8*** %5
%112 = getelementptr inbounds i8*, i8** %111, i64 1
%113 = load i8*, i8** %112
%114 = call i64 @strcmp(i8* %113, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %122
116: ; preds = %110
%117 = load i32, i32* %4
%118 = sub nsw i32 %117, 2
%119 = load i8**, i8*** %5
%120 = getelementptr inbounds i8*, i8** %119, i64 2
%121 = call i32 @deletelog(i32 %118, i8** %120)
br label %153
122: ; preds = %110
%123 = load i8**, i8*** %5
%124 = getelementptr inbounds i8*, i8** %123, i64 1
%125 = load i8*, i8** %124
%126 = call i64 @strcmp(i8* %125, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%127 = icmp eq i64 %126, 0
br i1 %127, label %128, label %134
128: ; preds = %122
%129 = load i32, i32* %4
%130 = sub nsw i32 %129, 2
%131 = load i8**, i8*** %5
%132 = getelementptr inbounds i8*, i8** %131, i64 2
%133 = call i32 @synclog(i32 %130, i8** %132)
br label %152
134: ; preds = %122
%135 = load i8**, i8*** %5
%136 = getelementptr inbounds i8*, i8** %135, i64 1
%137 = load i8*, i8** %136
%138 = call i64 @strcmp(i8* %137, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%139 = icmp eq i64 %138, 0
br i1 %139, label %140, label %146
140: ; preds = %134
%141 = load i32, i32* %4
%142 = sub nsw i32 %141, 2
%143 = load i8**, i8*** %5
%144 = getelementptr inbounds i8*, i8** %143, i64 2
%145 = call i32 @infomem(i32 %142, i8** %144)
br label %151
146: ; preds = %134
%147 = load i8**, i8*** %5
%148 = getelementptr inbounds i8*, i8** %147, i64 1
%149 = load i8*, i8** %148
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i8* %149)
br label %160
151: ; preds = %140
br label %152
152: ; preds = %151, %128
br label %153
153: ; preds = %152, %116
br label %154
154: ; preds = %153, %104
br label %155
155: ; preds = %154, %92
br label %156
156: ; preds = %155, %80
br label %157
157: ; preds = %156, %68
br label %158
158: ; preds = %157, %56
br label %159
159: ; preds = %158, %44
ret i32 0
160: ; preds = %146, %28, %19, %9
%161 = call i32 (...) @print_usage()
%162 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"-o\00"
@.str.2 = [30 x i8] c"Failed to parse -o option:%s\0A\00"
@errno = global i64 0
@.str.3 = [3 x i8] c"vc\00"
@.str.4 = [9 x i8] c"datadump\00"
@.str.5 = [11 x i8] c"dumpbytime\00"
@.str.6 = [11 x i8] c"mincorelog\00"
@.str.7 = [11 x i8] c"decachelog\00"
@.str.8 = [10 x i8] c"createlog\00"
@.str.9 = [10 x i8] c"deletelog\00"
@.str.10 = [8 x i8] c"synclog\00"
@.str.11 = [8 x i8] c"infomem\00"
@.str.12 = [27 x i8] c"Unsupported subcommand:%s\0A\00"
@str = [22 x i8] c"-o option needs value\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %102, label %4
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %23
9: ; preds = %4
%10 = icmp ult i32 %0, 3
br i1 %10, label %11, label %13
11: ; preds = %9
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
br label %102
13: ; preds = %9
%14 = getelementptr inbounds i8*, i8** %1, i64 2
%15 = load i8*, i8** %14
%16 = tail call i32 @parse_opt_o(i8* %15)
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load i8*, i8** %14
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i8* %19)
br label %102
21: ; preds = %13
%22 = add nsw i32 %0, -2
br label %23
23: ; preds = %21, %4
%24 = phi i8** [ %14, %21 ], [ %1, %4 ]
%25 = phi i32 [ %22, %21 ], [ %0, %4 ]
store i64 0, i64* @errno
%26 = getelementptr inbounds i8*, i8** %24, i64 1
%27 = load i8*, i8** %26
%28 = tail call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %23
%31 = add nsw i32 %25, -2
%32 = getelementptr inbounds i8*, i8** %24, i64 2
%33 = tail call i32 @verify_checksum(i32 %31, i8** %32)
br label %101
34: ; preds = %23
%35 = load i8*, i8** %26
%36 = tail call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = add nsw i32 %25, -2
%40 = getelementptr inbounds i8*, i8** %24, i64 2
%41 = tail call i32 @data_dump(i32 %39, i8** %40)
br label %101
42: ; preds = %34
%43 = load i8*, i8** %26
%44 = tail call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = add nsw i32 %25, -2
%48 = getelementptr inbounds i8*, i8** %24, i64 2
%49 = tail call i32 @dumpbytime(i32 %47, i8** %48)
br label %101
50: ; preds = %42
%51 = load i8*, i8** %26
%52 = tail call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = add nsw i32 %25, -2
%56 = getelementptr inbounds i8*, i8** %24, i64 2
%57 = tail call i32 @mincorelog(i32 %55, i8** %56)
br label %101
58: ; preds = %50
%59 = load i8*, i8** %26
%60 = tail call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %66
62: ; preds = %58
%63 = add nsw i32 %25, -2
%64 = getelementptr inbounds i8*, i8** %24, i64 2
%65 = tail call i32 @decachelog(i32 %63, i8** %64)
br label %101
66: ; preds = %58
%67 = load i8*, i8** %26
%68 = tail call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %74
70: ; preds = %66
%71 = add nsw i32 %25, -2
%72 = getelementptr inbounds i8*, i8** %24, i64 2
%73 = tail call i32 @createlog(i32 %71, i8** %72)
br label %101
74: ; preds = %66
%75 = load i8*, i8** %26
%76 = tail call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %74
%79 = add nsw i32 %25, -2
%80 = getelementptr inbounds i8*, i8** %24, i64 2
%81 = tail call i32 @deletelog(i32 %79, i8** %80)
br label %101
82: ; preds = %74
%83 = load i8*, i8** %26
%84 = tail call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %90
86: ; preds = %82
%87 = add nsw i32 %25, -2
%88 = getelementptr inbounds i8*, i8** %24, i64 2
%89 = tail call i32 @synclog(i32 %87, i8** %88)
br label %101
90: ; preds = %82
%91 = load i8*, i8** %26
%92 = tail call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %98
94: ; preds = %90
%95 = add nsw i32 %25, -2
%96 = getelementptr inbounds i8*, i8** %24, i64 2
%97 = tail call i32 @infomem(i32 %95, i8** %96)
br label %101
98: ; preds = %90
%99 = load i8*, i8** %26
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i8* %99)
br label %102
101: ; preds = %38, %54, %70, %86, %94, %78, %62, %46, %30
ret i32 0
102: ; preds = %18, %11, %2, %98
%103 = tail call i32 (...) @print_usage()
%104 = tail call i32 @exit(i32 1)
unreachable
}