#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 */
typedef int msg_length;

/* Variables and functions */
int createdump(char *);
int /*<<< orphan*/ getdt(char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *, char *,
                            char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
size_t strlen(char *);
int /*<<< orphan*/ write(int, char *, int);
int writeLog(char *msg, char *path, char *tag) {
  int fd;
  char holderTagOpen[4];
  char holderTagClose[5];
  strcpy(holderTagOpen, "<lg>");
  strcpy(holderTagClose, "</lg>");
  if (strcmp(tag, "lg") == 0 || strcmp(tag, "LOG") == 0) {
  } else if (strcmp(tag, "er") == 0 || strcmp(tag, "ERROR") == 0) {
    strcpy(holderTagOpen, "<er>");
    strcpy(holderTagClose, "</er>");
  } else if (strcmp(tag, "wr") == 0 || strcmp(tag, "WARNING") == 0) {
    strcpy(holderTagOpen, "<wr>");
    strcpy(holderTagClose, "</wr>");
  } else if (strcmp(tag, "su") == 0 || strcmp(tag, "SUCCESS") == 0) {
    strcpy(holderTagOpen, "<su>");
    strcpy(holderTagClose, "</su>");
  } else if (strcmp(tag, "in") == 0 || strcmp(tag, "INFO") == 0) {
    strcpy(holderTagOpen, "<in>");
    strcpy(holderTagClose, "</in>");
  }
  size_t msg_length = strlen(msg);
  char dtnt[28];
  char buffer[28 + msg_length + 2 * 6 + 1];
  getdt(dtnt);
  memset(buffer, 0, (28 + msg_length + 2 * 6 + 10));
  snprintf(buffer, (28 + msg_length + 2 * 6 + 1), "%s[%s] %s%s\n",
           holderTagOpen, dtnt, msg, holderTagClose);
  if (!path) {
    fd = createdump(NULL);
  } else {
    fd = createdump(path);
  }
  write(fd, buffer, ((28 + (msg_length) + 2 * 6 + 1) - 1));
  return 0;
}


x86 assembly (clang, -O0):
<writeLog>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x20(%rbp),%rdi
lea    0xe61(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x25(%rbp),%rdi
lea    0xe56(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x18(%rbp),%rdi
lea    0xe4c(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     11e8 <writeLog+0x68>
mov    -0x18(%rbp),%rdi
lea    0xe35(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    11ed <writeLog+0x6d>
jmp    1360 <writeLog+0x1e0>
mov    -0x18(%rbp),%rdi
lea    0xe1a(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     1221 <writeLog+0xa1>
mov    -0x18(%rbp),%rdi
lea    0xe03(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1246 <writeLog+0xc6>
lea    -0x20(%rbp),%rdi
lea    0xdef(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x25(%rbp),%rdi
lea    0xde4(%rip),%rsi
call   1040 <strcpy@plt>
jmp    135b <writeLog+0x1db>
mov    -0x18(%rbp),%rdi
lea    0xdd5(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     127a <writeLog+0xfa>
mov    -0x18(%rbp),%rdi
lea    0xdbe(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    129f <writeLog+0x11f>
lea    -0x20(%rbp),%rdi
lea    0xdac(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x25(%rbp),%rdi
lea    0xda1(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1356 <writeLog+0x1d6>
mov    -0x18(%rbp),%rdi
lea    0xd92(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     12d3 <writeLog+0x153>
mov    -0x18(%rbp),%rdi
lea    0xd7b(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    12f8 <writeLog+0x178>
lea    -0x20(%rbp),%rdi
lea    0xd69(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x25(%rbp),%rdi
lea    0xd5e(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1351 <writeLog+0x1d1>
mov    -0x18(%rbp),%rdi
lea    0xd4f(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     132c <writeLog+0x1ac>
mov    -0x18(%rbp),%rdi
lea    0xd38(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    134c <writeLog+0x1cc>
lea    -0x20(%rbp),%rdi
lea    0xd23(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x25(%rbp),%rdi
lea    0xd18(%rip),%rsi
call   1040 <strcpy@plt>
jmp    1351 <writeLog+0x1d1>
jmp    1356 <writeLog+0x1d6>
jmp    135b <writeLog+0x1db>
jmp    1360 <writeLog+0x1e0>
mov    -0x8(%rbp),%rdi
call   1070 <strlen@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdx
mov    %rdx,%rax
add    $0x29,%rax
mov    %rsp,%rcx
mov    %rcx,-0x58(%rbp)
add    $0x38,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x60(%rbp)
lea    -0x50(%rbp),%rdi
call   1060 <getdt@plt>
mov    -0x68(%rbp),%rdi
mov    -0x30(%rbp),%rax
add    $0x1c,%rax
add    $0xc,%rax
add    $0xa,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1090 <memset@plt>
mov    -0x68(%rbp),%rdi
mov    -0x30(%rbp),%rax
add    $0x1c,%rax
add    $0xc,%rax
add    $0x1,%rax
mov    %eax,%esi
lea    -0x20(%rbp),%rcx
lea    -0x50(%rbp),%r8
mov    -0x8(%rbp),%r9
lea    -0x25(%rbp),%rax
lea    0xc7a(%rip),%rdx
sub    $0x10,%rsp
mov    %rax,(%rsp)
call   1080 <snprintf@plt>
add    $0x10,%rsp
cmpq   $0x0,-0x10(%rbp)
jne    1418 <writeLog+0x298>
xor    %eax,%eax
mov    %eax,%edi
call   1030 <createdump@plt>
mov    %eax,-0x1c(%rbp)
jmp    1424 <writeLog+0x2a4>
mov    -0x10(%rbp),%rdi
call   1030 <createdump@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x68(%rbp),%rsi
mov    -0x1c(%rbp),%edi
mov    -0x30(%rbp),%rax
add    $0x1c,%rax
add    $0xc,%rax
add    $0x1,%rax
sub    $0x1,%rax
mov    %eax,%edx
call   1050 <write@plt>
mov    -0x58(%rbp),%rax
mov    %rax,%rsp
xor    %eax,%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeLog>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%rbx
mov    %rsi,-0x48(%rbp)
mov    %rdi,%r14
lea    0xe5e(%rip),%rsi
lea    -0x2c(%rbp),%rdi
call   1040 <strcpy@plt>
lea    0xe53(%rip),%rsi
lea    -0x31(%rbp),%rdi
call   1040 <strcpy@plt>
lea    0xe49(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     12e7 <writeLog+0x167>
lea    0xe34(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     12e7 <writeLog+0x167>
lea    0xe20(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
lea    0xe1f(%rip),%r13
lea    0xe13(%rip),%r15
test   %rax,%rax
je     12cf <writeLog+0x14f>
lea    0xdfd(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     12cf <writeLog+0x14f>
lea    0xdf6(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
lea    0xdf7(%rip),%r13
lea    0xdeb(%rip),%r15
test   %rax,%rax
je     12cf <writeLog+0x14f>
lea    0xdd3(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     12cf <writeLog+0x14f>
lea    0xdd2(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
lea    0xdd3(%rip),%r13
lea    0xdc7(%rip),%r15
test   %rax,%rax
je     12cf <writeLog+0x14f>
lea    0xdb3(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     12cf <writeLog+0x14f>
lea    0xdb2(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
lea    0xdb0(%rip),%r13
lea    0xda4(%rip),%r15
test   %rax,%rax
je     12cf <writeLog+0x14f>
lea    0xd93(%rip),%rsi
mov    %rbx,%rdi
call   10a0 <strcmp@plt>
test   %rax,%rax
jne    12e7 <writeLog+0x167>
lea    -0x2c(%rbp),%rdi
mov    %r15,%rsi
call   1040 <strcpy@plt>
lea    -0x31(%rbp),%rdi
mov    %r13,%rsi
call   1040 <strcpy@plt>
mov    %r14,%rdi
call   1070 <strlen@plt>
mov    %rax,%r15
mov    %rsp,-0x40(%rbp)
lea    0x29(%rax),%r13d
mov    %rsp,%rbx
add    $0x38,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
lea    -0x70(%rbp),%r12
mov    %r12,%rdi
call   1060 <getdt@plt>
lea    0x32(%r15),%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <memset@plt>
sub    $0x8,%rsp
lea    0xd35(%rip),%rdx
lea    -0x2c(%rbp),%rcx
mov    %rbx,%rdi
mov    %r13d,%esi
mov    %r12,%r8
mov    %r14,%r9
lea    -0x31(%rbp),%rax
push   %rax
call   1080 <snprintf@plt>
add    $0x10,%rsp
mov    -0x48(%rbp),%rdi
test   %rdi,%rdi
jne    1359 <writeLog+0x1d9>
xor    %edi,%edi
call   1030 <createdump@plt>
mov    %eax,%edi
mov    -0x40(%rbp),%r14
lea    0x28(%r15),%edx
mov    %rbx,%rsi
call   1050 <write@plt>
mov    %r14,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"<lg>\00"
@.str.1 = [6 x i8] c"</lg>\00"
@.str.2 = [3 x i8] c"lg\00"
@.str.3 = [4 x i8] c"LOG\00"
@.str.4 = [3 x i8] c"er\00"
@.str.5 = [6 x i8] c"ERROR\00"
@.str.6 = [5 x i8] c"<er>\00"
@.str.7 = [6 x i8] c"</er>\00"
@.str.8 = [3 x i8] c"wr\00"
@.str.9 = [8 x i8] c"WARNING\00"
@.str.10 = [5 x i8] c"<wr>\00"
@.str.11 = [6 x i8] c"</wr>\00"
@.str.12 = [3 x i8] c"su\00"
@.str.13 = [8 x i8] c"SUCCESS\00"
@.str.14 = [5 x i8] c"<su>\00"
@.str.15 = [6 x i8] c"</su>\00"
@.str.16 = [3 x i8] c"in\00"
@.str.17 = [5 x i8] c"INFO\00"
@.str.18 = [5 x i8] c"<in>\00"
@.str.19 = [6 x i8] c"</in>\00"
@.str.20 = [13 x i8] c"%s[%s] %s%s\0A\00"
define i32 @writeLog(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca [4 x i8]
%9 = alloca [5 x i8]
%10 = alloca i64
%11 = alloca [28 x i8]
%12 = alloca i8*
%13 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%14 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%15 = call i32 @strcpy(i8* %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%16 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%17 = call i32 @strcpy(i8* %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%18 = load i8*, i8** %6
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %3
%22 = load i8*, i8** %6
%23 = call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %21, %3
br label %82
26: ; preds = %21
%27 = load i8*, i8** %6
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = load i8*, i8** %6
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30, %26
%35 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%36 = call i32 @strcpy(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%37 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%38 = call i32 @strcpy(i8* %37, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %81
39: ; preds = %30
%40 = load i8*, i8** %6
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %47, label %43
43: ; preds = %39
%44 = load i8*, i8** %6
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %43, %39
%48 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%49 = call i32 @strcpy(i8* %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%50 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%51 = call i32 @strcpy(i8* %50, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
br label %80
52: ; preds = %43
%53 = load i8*, i8** %6
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %60, label %56
56: ; preds = %52
%57 = load i8*, i8** %6
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %56, %52
%61 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%62 = call i32 @strcpy(i8* %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%63 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%64 = call i32 @strcpy(i8* %63, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %79
65: ; preds = %56
%66 = load i8*, i8** %6
%67 = call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %73, label %69
69: ; preds = %65
%70 = load i8*, i8** %6
%71 = call i64 @strcmp(i8* %70, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %78
73: ; preds = %69, %65
%74 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%75 = call i32 @strcpy(i8* %74, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%76 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%77 = call i32 @strcpy(i8* %76, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
br label %78
78: ; preds = %73, %69
br label %79
79: ; preds = %78, %60
br label %80
80: ; preds = %79, %47
br label %81
81: ; preds = %80, %34
br label %82
82: ; preds = %81, %25
%83 = load i8*, i8** %4
%84 = call i64 @strlen(i8* %83)
store i64 %84, i64* %10
%85 = load i64, i64* %10
%86 = add i64 28, %85
%87 = add i64 %86, 12
%88 = add i64 %87, 1
%89 = call i8* @llvm.stacksave()
store i8* %89, i8** %12
%90 = alloca i8, i64 %88
store i64 %88, i64* %13
%91 = getelementptr inbounds [28 x i8], [28 x i8]* %11, i64 0, i64 0
%92 = call i32 @getdt(i8* %91)
%93 = load i64, i64* %10
%94 = add i64 28, %93
%95 = add i64 %94, 12
%96 = add i64 %95, 10
%97 = trunc i64 %96 to i32
%98 = call i32 @memset(i8* %90, i32 0, i32 %97)
%99 = load i64, i64* %10
%100 = add i64 28, %99
%101 = add i64 %100, 12
%102 = add i64 %101, 1
%103 = trunc i64 %102 to i32
%104 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%105 = getelementptr inbounds [28 x i8], [28 x i8]* %11, i64 0, i64 0
%106 = load i8*, i8** %4
%107 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%108 = call i32 @snprintf(i8* %90, i32 %103, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8* %104, i8* %105, i8* %106, i8* %107)
%109 = load i8*, i8** %5
%110 = icmp ne i8* %109, null
br i1 %110, label %113, label %111
111: ; preds = %82
%112 = call i32 @createdump(i8* null)
store i32 %112, i32* %7
br label %116
113: ; preds = %82
%114 = load i8*, i8** %5
%115 = call i32 @createdump(i8* %114)
store i32 %115, i32* %7
br label %116
116: ; preds = %113, %111
%117 = load i32, i32* %7
%118 = load i64, i64* %10
%119 = add i64 28, %118
%120 = add i64 %119, 12
%121 = add i64 %120, 1
%122 = sub i64 %121, 1
%123 = trunc i64 %122 to i32
%124 = call i32 @write(i32 %117, i8* %90, i32 %123)
%125 = load i8*, i8** %12
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"<lg>\00"
@.str.1 = [6 x i8] c"</lg>\00"
@.str.2 = [3 x i8] c"lg\00"
@.str.3 = [4 x i8] c"LOG\00"
@.str.4 = [3 x i8] c"er\00"
@.str.5 = [6 x i8] c"ERROR\00"
@.str.6 = [5 x i8] c"<er>\00"
@.str.7 = [6 x i8] c"</er>\00"
@.str.8 = [3 x i8] c"wr\00"
@.str.9 = [8 x i8] c"WARNING\00"
@.str.10 = [5 x i8] c"<wr>\00"
@.str.11 = [6 x i8] c"</wr>\00"
@.str.12 = [3 x i8] c"su\00"
@.str.13 = [8 x i8] c"SUCCESS\00"
@.str.14 = [5 x i8] c"<su>\00"
@.str.15 = [6 x i8] c"</su>\00"
@.str.16 = [3 x i8] c"in\00"
@.str.17 = [5 x i8] c"INFO\00"
@.str.18 = [5 x i8] c"<in>\00"
@.str.19 = [6 x i8] c"</in>\00"
@.str.20 = [13 x i8] c"%s[%s] %s%s\0A\00"
define i32 @writeLog(i8* %0, i8* %1, i8* %2) {
%4 = alloca [4 x i8]
%5 = alloca [5 x i8]
%6 = alloca [28 x i8]
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%9 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%11 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %45, label %13
13: ; preds = %3
%14 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %45, label %16
16: ; preds = %13
%17 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %40, label %19
19: ; preds = %16
%20 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %40, label %22
22: ; preds = %19
%23 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %40, label %25
25: ; preds = %22
%26 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %40, label %28
28: ; preds = %25
%29 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %40, label %31
31: ; preds = %28
%32 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %34, %37, %28, %31, %22, %25, %16, %19
%41 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %19 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %16 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), %25 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), %22 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), %31 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), %28 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), %37 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), %34 ]
%42 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %19 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %16 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), %25 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), %22 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), %31 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), %28 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), %37 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), %34 ]
%43 = call i32 @strcpy(i8* %7, i8* %41)
%44 = call i32 @strcpy(i8* %8, i8* %42)
br label %45
45: ; preds = %40, %37, %3, %13
%46 = call i64 @strlen(i8* dereferenceable(1) %0)
%47 = getelementptr inbounds [28 x i8], [28 x i8]* %6, i64 0, i64 0
%48 = add i64 %46, 41
%49 = call i8* @llvm.stacksave()
%50 = alloca i8, i64 %48
%51 = call i32 @getdt(i8* %47)
%52 = trunc i64 %46 to i32
%53 = add i32 %52, 50
%54 = call i32 @memset(i8* %50, i32 0, i32 %53)
%55 = trunc i64 %48 to i32
%56 = call i32 @snprintf(i8* %50, i32 %55, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8* %7, i8* %47, i8* %0, i8* %8)
%57 = icmp eq i8* %1, null
br i1 %57, label %58, label %60
58: ; preds = %45
%59 = call i32 @createdump(i8* null)
br label %62
60: ; preds = %45
%61 = call i32 @createdump(i8* %1)
br label %62
62: ; preds = %60, %58
%63 = phi i32 [ %61, %60 ], [ %59, %58 ]
%64 = add i32 %52, 40
%65 = call i32 @write(i32 %63, i8* %50, i32 %64)
ret i32 0
}