#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 btk_help_main(int, char **);
int btk_node_main(int, char **);
int btk_privkey_main(int, char **);
int btk_pubkey_main(int, char **);
int btk_vanity_main(int, char **);
int btk_version_main(int, char **);
int /*<<< orphan*/ error_log(char *, ...);
int /*<<< orphan*/ error_print();
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
scalar_t__ strcmp(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, scalar_t__);
int main(int argc, char *argv[]) {
  int i, r;
  char command[100];
  r = 0;
  memset(command, 0, 100);
  for (i = 0; i < argc; ++i) {
    if (i > 0) {
      strncat(command, " ", 100 - 1 - strlen(command));
    }
    strncat(command, argv[i], 100 - 1 - strlen(command));
  }
  if (argc <= 1) {
    error_log("See 'btk help' to read about available commands.");
    error_log("Missing command parameter.");
    error_log("Error [%s]:", command);
    error_print();
    return EXIT_FAILURE;
  }
  if (strcmp(argv[1], "help") == 0) {
    r = btk_help_main(argc, argv);
  } else if (strcmp(argv[1], "privkey") == 0) {
    r = btk_privkey_main(argc, argv);
  } else if (strcmp(argv[1], "pubkey") == 0) {
    r = btk_pubkey_main(argc, argv);
  } else if (strcmp(argv[1], "vanity") == 0) {
    r = btk_vanity_main(argc, argv);
  } else if (strcmp(argv[1], "node") == 0) {
    r = btk_node_main(argc, argv);
  } else if (strcmp(argv[1], "version") == 0) {
    r = btk_version_main(argc, argv);
  } else {
    error_log("See 'btk help' to read about available commands.");
    error_log("'%s' is not a valid command.", argv[1]);
    error_log("Error [%s]:", command);
    error_print();
    return EXIT_FAILURE;
  }
  if (r < 0) {
    error_log("Error [%s]:", command);
    error_print();
    return EXIT_FAILURE;
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1060 <memset@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    128c <main+0xcc>
cmpl   $0x0,-0x14(%rbp)
jle    123c <main+0x7c>
lea    -0x80(%rbp),%rax
mov    %rax,-0x88(%rbp)
lea    -0x80(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x88(%rbp),%rdi
mov    $0x63,%edx
sub    %rax,%rdx
lea    0xdc9(%rip),%rsi
call   1070 <strncat@plt>
lea    -0x80(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x90(%rbp)
lea    -0x80(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x98(%rbp),%rdi
mov    -0x90(%rbp),%rsi
mov    $0x63,%edx
sub    %rax,%rdx
call   1070 <strncat@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11f7 <main+0x37>
cmpl   $0x1,-0x8(%rbp)
jg     12dc <main+0x11c>
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   10c0 <error_log@plt>
lea    0xd88(%rip),%rdi
mov    $0x0,%al
call   10c0 <error_log@plt>
lea    -0x80(%rbp),%rsi
lea    0xd91(%rip),%rdi
mov    $0x0,%al
call   10c0 <error_log@plt>
mov    $0x0,%al
call   10b0 <error_print@plt>
mov    0x2d0e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    14af <main+0x2ef>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd6f(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    130e <main+0x14e>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10e0 <btk_help_main@plt>
mov    %eax,-0x18(%rbp)
jmp    146f <main+0x2af>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd42(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1340 <main+0x180>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <btk_privkey_main@plt>
mov    %eax,-0x18(%rbp)
jmp    146a <main+0x2aa>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd18(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1372 <main+0x1b2>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <btk_pubkey_main@plt>
mov    %eax,-0x18(%rbp)
jmp    1465 <main+0x2a5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xced(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13a4 <main+0x1e4>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10d0 <btk_vanity_main@plt>
mov    %eax,-0x18(%rbp)
jmp    1460 <main+0x2a0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcc2(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13d6 <main+0x216>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <btk_node_main@plt>
mov    %eax,-0x18(%rbp)
jmp    145b <main+0x29b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc95(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1408 <main+0x248>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10a0 <btk_version_main@plt>
mov    %eax,-0x18(%rbp)
jmp    1456 <main+0x296>
lea    0xbf3(%rip),%rdi
mov    $0x0,%al
call   10c0 <error_log@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xc5d(%rip),%rdi
mov    $0x0,%al
call   10c0 <error_log@plt>
lea    -0x80(%rbp),%rsi
lea    0xc17(%rip),%rdi
mov    $0x0,%al
call   10c0 <error_log@plt>
mov    $0x0,%al
call   10b0 <error_print@plt>
mov    0x2b94(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    14af <main+0x2ef>
jmp    145b <main+0x29b>
jmp    1460 <main+0x2a0>
jmp    1465 <main+0x2a5>
jmp    146a <main+0x2aa>
jmp    146f <main+0x2af>
cmpl   $0x0,-0x18(%rbp)
jge    14a3 <main+0x2e3>
lea    -0x80(%rbp),%rsi
lea    0xbca(%rip),%rdi
mov    $0x0,%al
call   10c0 <error_log@plt>
mov    $0x0,%al
call   10b0 <error_print@plt>
mov    0x2b47(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    14af <main+0x2ef>
mov    0x2b2e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rsi,%r15
mov    %edi,%ebp
lea    0x10(%rsp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1060 <memset@plt>
test   %ebp,%ebp
jle    127c <main+0xbc>
mov    (%r15),%rbx
lea    0x10(%rsp),%r14
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    $0x63,%edx
sub    %rax,%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <strncat@plt>
cmp    $0x1,%ebp
je     127c <main+0xbc>
mov    %ebp,0xc(%rsp)
mov    %ebp,%r13d
mov    $0x1,%r14d
lea    0x10(%rsp),%rbp
lea    0xdd3(%rip),%r12
nopl   (%rax)
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    $0x63,%edx
sub    %rax,%rdx
mov    %rbp,%rdi
mov    %r12,%rsi
call   1070 <strncat@plt>
mov    (%r15,%r14,8),%rbx
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    $0x63,%edx
sub    %rax,%rdx
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1070 <strncat@plt>
add    $0x1,%r14
cmp    %r14,%r13
jne    1230 <main+0x70>
mov    0xc(%rsp),%ebx
cmp    $0x1,%ebx
jg     12ca <main+0x10a>
lea    0xd7f(%rip),%rdi
xor    %eax,%eax
call   10c0 <error_log@plt>
lea    0xda2(%rip),%rdi
xor    %eax,%eax
call   10c0 <error_log@plt>
lea    0xdaf(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10c0 <error_log@plt>
xor    %eax,%eax
call   10b0 <error_print@plt>
mov    0x2d27(%rip),%rax
mov    (%rax),%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x8(%r15),%rdi
lea    0xd85(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1375 <main+0x1b5>
mov    0x8(%r15),%rdi
lea    0xd71(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1381 <main+0x1c1>
mov    0x8(%r15),%rdi
lea    0xd60(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     138d <main+0x1cd>
mov    0x8(%r15),%rdi
lea    0xd52(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1399 <main+0x1d9>
mov    0x8(%r15),%rdi
lea    0xd44(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13a5 <main+0x1e5>
mov    0x8(%r15),%rdi
lea    0xd34(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13b1 <main+0x1f1>
lea    0xcab(%rip),%rdi
xor    %eax,%eax
call   10c0 <error_log@plt>
mov    0x8(%r15),%rsi
lea    0xd19(%rip),%rdi
xor    %eax,%eax
call   10c0 <error_log@plt>
jmp    1298 <main+0xd8>
mov    %ebx,%edi
mov    %r15,%rsi
call   10e0 <btk_help_main@plt>
jmp    13bb <main+0x1fb>
mov    %ebx,%edi
mov    %r15,%rsi
call   1040 <btk_privkey_main@plt>
jmp    13bb <main+0x1fb>
mov    %ebx,%edi
mov    %r15,%rsi
call   1080 <btk_pubkey_main@plt>
jmp    13bb <main+0x1fb>
mov    %ebx,%edi
mov    %r15,%rsi
call   10d0 <btk_vanity_main@plt>
jmp    13bb <main+0x1fb>
mov    %ebx,%edi
mov    %r15,%rsi
call   1030 <btk_node_main@plt>
jmp    13bb <main+0x1fb>
mov    %ebx,%edi
mov    %r15,%rsi
call   10a0 <btk_version_main@plt>
test   %eax,%eax
js     1298 <main+0xd8>
mov    0x2c0e(%rip),%rax
jmp    12b9 <main+0xf9>

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [49 x i8] c"See 'btk help' to read about available commands.\00"
@.str.2 = [27 x i8] c"Missing command parameter.\00"
@.str.3 = [12 x i8] c"Error [%s]:\00"
@EXIT_FAILURE = global i32 0
@.str.4 = [5 x i8] c"help\00"
@.str.5 = [8 x i8] c"privkey\00"
@.str.6 = [7 x i8] c"pubkey\00"
@.str.7 = [7 x i8] c"vanity\00"
@.str.8 = [5 x i8] c"node\00"
@.str.9 = [8 x i8] c"version\00"
@.str.10 = [29 x i8] c"'%s' is not a valid command.\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [100 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%10 = call i32 @memset(i8* %9, i32 0, i32 100)
store i32 0, i32* %6
br label %11
11: ; preds = %35, %2
%12 = load i32, i32* %6
%13 = load i32, i32* %4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %38
15: ; preds = %11
%16 = load i32, i32* %6
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %15
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%20 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%21 = call i64 @strlen(i8* %20)
%22 = sub nsw i64 99, %21
%23 = call i32 @strncat(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i64 %22)
br label %24
24: ; preds = %18, %15
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%26 = load i8**, i8*** %5
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8*, i8** %26, i64 %28
%30 = load i8*, i8** %29
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%32 = call i64 @strlen(i8* %31)
%33 = sub nsw i64 99, %32
%34 = call i32 @strncat(i8* %25, i8* %30, i64 %33)
br label %35
35: ; preds = %24
%36 = load i32, i32* %6
%37 = add nsw i32 %36, 1
store i32 %37, i32* %6
br label %11
38: ; preds = %11
%39 = load i32, i32* %4
%40 = icmp sle i32 %39, 1
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%43 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%44 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%45 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %44)
%46 = call i32 (...) @error_print()
%47 = load i32, i32* @EXIT_FAILURE
store i32 %47, i32* %3
br label %133
48: ; preds = %38
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 1
%51 = load i8*, i8** %50
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %48
%55 = load i32, i32* %4
%56 = load i8**, i8*** %5
%57 = call i32 @btk_help_main(i32 %55, i8** %56)
store i32 %57, i32* %7
br label %123
58: ; preds = %48
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 1
%61 = load i8*, i8** %60
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %58
%65 = load i32, i32* %4
%66 = load i8**, i8*** %5
%67 = call i32 @btk_privkey_main(i32 %65, i8** %66)
store i32 %67, i32* %7
br label %122
68: ; preds = %58
%69 = load i8**, i8*** %5
%70 = getelementptr inbounds i8*, i8** %69, i64 1
%71 = load i8*, i8** %70
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %68
%75 = load i32, i32* %4
%76 = load i8**, i8*** %5
%77 = call i32 @btk_pubkey_main(i32 %75, i8** %76)
store i32 %77, i32* %7
br label %121
78: ; preds = %68
%79 = load i8**, i8*** %5
%80 = getelementptr inbounds i8*, i8** %79, i64 1
%81 = load i8*, i8** %80
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %78
%85 = load i32, i32* %4
%86 = load i8**, i8*** %5
%87 = call i32 @btk_vanity_main(i32 %85, i8** %86)
store i32 %87, i32* %7
br label %120
88: ; preds = %78
%89 = load i8**, i8*** %5
%90 = getelementptr inbounds i8*, i8** %89, i64 1
%91 = load i8*, i8** %90
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %98
94: ; preds = %88
%95 = load i32, i32* %4
%96 = load i8**, i8*** %5
%97 = call i32 @btk_node_main(i32 %95, i8** %96)
store i32 %97, i32* %7
br label %119
98: ; preds = %88
%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 ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %108
104: ; preds = %98
%105 = load i32, i32* %4
%106 = load i8**, i8*** %5
%107 = call i32 @btk_version_main(i32 %105, i8** %106)
store i32 %107, i32* %7
br label %118
108: ; preds = %98
%109 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%110 = load i8**, i8*** %5
%111 = getelementptr inbounds i8*, i8** %110, i64 1
%112 = load i8*, i8** %111
%113 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* %112)
%114 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%115 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %114)
%116 = call i32 (...) @error_print()
%117 = load i32, i32* @EXIT_FAILURE
store i32 %117, i32* %3
br label %133
118: ; preds = %104
br label %119
119: ; preds = %118, %94
br label %120
120: ; preds = %119, %84
br label %121
121: ; preds = %120, %74
br label %122
122: ; preds = %121, %64
br label %123
123: ; preds = %122, %54
%124 = load i32, i32* %7
%125 = icmp slt i32 %124, 0
br i1 %125, label %126, label %131
126: ; preds = %123
%127 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%128 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %127)
%129 = call i32 (...) @error_print()
%130 = load i32, i32* @EXIT_FAILURE
store i32 %130, i32* %3
br label %133
131: ; preds = %123
%132 = load i32, i32* @EXIT_SUCCESS
store i32 %132, i32* %3
br label %133
133: ; preds = %131, %126, %108, %41
%134 = load i32, i32* %3
ret i32 %134
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [49 x i8] c"See 'btk help' to read about available commands.\00"
@.str.2 = [27 x i8] c"Missing command parameter.\00"
@.str.3 = [12 x i8] c"Error [%s]:\00"
@EXIT_FAILURE = global i32 0
@.str.4 = [5 x i8] c"help\00"
@.str.5 = [8 x i8] c"privkey\00"
@.str.6 = [7 x i8] c"pubkey\00"
@.str.7 = [7 x i8] c"vanity\00"
@.str.8 = [5 x i8] c"node\00"
@.str.9 = [8 x i8] c"version\00"
@.str.10 = [29 x i8] c"'%s' is not a valid command.\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [100 x i8]
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%5 = call i32 @memset(i8* %4, i32 0, i32 100)
%6 = icmp sgt i32 %0, 0
br i1 %6, label %7, label %28
7: ; preds = %2
%8 = zext i32 %0 to i64
%9 = load i8*, i8** %1
%10 = call i64 @strlen(i8* %4)
%11 = sub nsw i64 99, %10
%12 = call i32 @strncat(i8* %4, i8* %9, i64 %11)
%13 = icmp eq i32 %0, 1
br i1 %13, label %28, label %14
14: ; preds = %7, %14
%15 = phi i64 [ %24, %14 ], [ 1, %7 ]
%16 = call i64 @strlen(i8* %4)
%17 = sub nsw i64 99, %16
%18 = call i32 @strncat(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i64 %17)
%19 = getelementptr inbounds i8*, i8** %1, i64 %15
%20 = load i8*, i8** %19
%21 = call i64 @strlen(i8* %4)
%22 = sub nsw i64 99, %21
%23 = call i32 @strncat(i8* %4, i8* %20, i64 %22)
%24 = add nuw nsw i64 %15, 1
%25 = icmp eq i64 %24, %8
br i1 %25, label %26, label %14
26: ; preds = %14
%27 = icmp slt i32 %0, 2
br i1 %27, label %28, label %31
28: ; preds = %2, %7, %26
%29 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
br label %75
31: ; preds = %26
%32 = getelementptr inbounds i8*, i8** %1, i64 1
%33 = load i8*, i8** %32
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = call i32 @btk_help_main(i32 %0, i8** %1)
br label %72
38: ; preds = %31
%39 = load i8*, i8** %32
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @btk_privkey_main(i32 %0, i8** %1)
br label %72
44: ; preds = %38
%45 = load i8*, i8** %32
%46 = call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 @btk_pubkey_main(i32 %0, i8** %1)
br label %72
50: ; preds = %44
%51 = load i8*, i8** %32
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 @btk_vanity_main(i32 %0, i8** %1)
br label %72
56: ; preds = %50
%57 = load i8*, i8** %32
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 @btk_node_main(i32 %0, i8** %1)
br label %72
62: ; preds = %56
%63 = load i8*, i8** %32
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 @btk_version_main(i32 %0, i8** %1)
br label %72
68: ; preds = %62
%69 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%70 = load i8*, i8** %32
%71 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* %70)
br label %75
72: ; preds = %42, %54, %66, %60, %48, %36
%73 = phi i32 [ %37, %36 ], [ %43, %42 ], [ %49, %48 ], [ %55, %54 ], [ %61, %60 ], [ %67, %66 ]
%74 = icmp slt i32 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %72, %28, %68
%76 = call i32 (i8*, ...) @error_log(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%77 = call i32 (...) @error_print()
br label %78
78: ; preds = %75, %72
%79 = phi i32* [ @EXIT_SUCCESS, %72 ], [ @EXIT_FAILURE, %75 ]
%80 = load i32, i32* %79
ret i32 %80
}