#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*/ decPara(char *, char *, int);
int /*<<< orphan*/ paraDec(char *, char *, int);
int /*<<< orphan*/ sprintf(char *, char *, char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char strlen(char *);
char convNumIP(char *nIPDec, char *nIPBin, const char flag) {
  register char i = 0;
  char auxDec[3] = "\0", auxBin[8] = "\0";
  switch (flag) {
  case 0:
    *(nIPBin + 0) = '\0';
    while (i < strlen(nIPDec)) {
      while ((*(nIPDec + i) != '.') && (*(nIPDec + i) != '\0')) {
        sprintf(auxDec,
                "%s"
                "%c",
                auxDec, *(nIPDec + i));
        ++i;
      }
      ++i;
      decPara(auxDec, auxBin, 2);
      while (strlen(auxBin) < 8) {
        char aux[8];
        strcpy(aux, auxBin);
        sprintf(auxBin,
                "%c"
                "%s",
                '0', aux);
      }
      strcat(nIPBin, auxBin);
      *(auxBin + 0) = '\0';
    }
    return 1;
    break;
  case 1:
    *(nIPDec + 0) = '\0';
    while (i < strlen(nIPBin)) {
      while ((i != 8) && (i != 16) && (i != 24) && (i != 32)) {
        sprintf(auxBin,
                "%s"
                "%c",
                auxBin, *(nIPBin + i));
        ++i;
      }
      paraDec(auxBin, auxDec, 2);
      strcat(nIPDec, auxDec);
      *(auxBin + 0) = '\0';
      if (i < 31) {
        sprintf(auxBin,
                "%s"
                "%c",
                auxBin, *(nIPBin + i));
        ++i;
        strcat(nIPDec, ".");
      }
    }
    return 1;
    break;
  default:
    *(nIPDec + 0) = '\0';
    *(nIPBin + 0) = '\0';
    return 0;
    break;
  }
}


x86 assembly (clang, -O0):
<convNumIP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %dl,%al
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %al,-0x19(%rbp)
movb   $0x0,-0x1a(%rbp)
movb   $0x0,-0x1c(%rbp)
movw   $0x0,-0x1e(%rbp)
movq   $0x0,-0x28(%rbp)
movsbl -0x19(%rbp),%eax
mov    %eax,-0x34(%rbp)
test   %eax,%eax
je     11b0 <convNumIP+0x50>
jmp    119f <convNumIP+0x3f>
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
je     12ce <convNumIP+0x16e>
jmp    13fa <convNumIP+0x29a>
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
movsbl -0x1a(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %al,%cl
mov    -0x38(%rbp),%eax
movsbl %cl,%ecx
cmp    %ecx,%eax
jge    12c5 <convNumIP+0x165>
jmp    11dc <convNumIP+0x7c>
mov    -0x10(%rbp),%rax
movsbl -0x1a(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0x2e,%ecx
mov    %al,-0x39(%rbp)
je     1211 <convNumIP+0xb1>
mov    -0x10(%rbp),%rax
movsbl -0x1a(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    1221 <convNumIP+0xc1>
jmp    1253 <convNumIP+0xf3>
lea    -0x1e(%rbp),%rdi
lea    -0x1e(%rbp),%rdx
mov    -0x10(%rbp),%rax
movsbl -0x1a(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%ecx
lea    0xdc1(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x1a(%rbp),%al
add    $0x1,%al
mov    %al,-0x1a(%rbp)
jmp    11dc <convNumIP+0x7c>
mov    -0x1a(%rbp),%al
add    $0x1,%al
mov    %al,-0x1a(%rbp)
lea    -0x1e(%rbp),%rdi
lea    -0x28(%rbp),%rsi
mov    $0x2,%edx
call   1060 <decPara@plt>
lea    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
movsbl %al,%eax
cmp    $0x8,%eax
jge    12af <convNumIP+0x14f>
lea    -0x30(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x28(%rbp),%rdi
lea    -0x30(%rbp),%rcx
lea    0xd67(%rip),%rsi
mov    $0x30,%edx
mov    $0x0,%al
call   1080 <sprintf@plt>
jmp    126d <convNumIP+0x10d>
mov    -0x18(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1070 <strcat@plt>
movb   $0x0,-0x28(%rbp)
jmp    11b7 <convNumIP+0x57>
movb   $0x1,-0x1(%rbp)
jmp    140c <convNumIP+0x2ac>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
movsbl -0x1a(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    %al,%cl
mov    -0x40(%rbp),%eax
movsbl %cl,%ecx
cmp    %ecx,%eax
jge    13f1 <convNumIP+0x291>
jmp    12fa <convNumIP+0x19a>
movsbl -0x1a(%rbp),%ecx
xor    %eax,%eax
cmp    $0x8,%ecx
mov    %al,-0x41(%rbp)
je     133d <convNumIP+0x1dd>
movsbl -0x1a(%rbp),%ecx
xor    %eax,%eax
cmp    $0x10,%ecx
mov    %al,-0x41(%rbp)
je     133d <convNumIP+0x1dd>
movsbl -0x1a(%rbp),%ecx
xor    %eax,%eax
cmp    $0x18,%ecx
mov    %al,-0x41(%rbp)
je     133d <convNumIP+0x1dd>
movsbl -0x1a(%rbp),%eax
cmp    $0x20,%eax
setne  %al
mov    %al,-0x41(%rbp)
mov    -0x41(%rbp),%al
test   $0x1,%al
jne    134d <convNumIP+0x1ed>
jmp    137f <convNumIP+0x21f>
lea    -0x28(%rbp),%rdi
lea    -0x28(%rbp),%rdx
mov    -0x18(%rbp),%rax
movsbl -0x1a(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%ecx
lea    0xc95(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x1a(%rbp),%al
add    $0x1,%al
mov    %al,-0x1a(%rbp)
jmp    12fa <convNumIP+0x19a>
lea    -0x28(%rbp),%rdi
lea    -0x1e(%rbp),%rsi
mov    $0x2,%edx
call   1050 <paraDec@plt>
mov    -0x10(%rbp),%rdi
lea    -0x1e(%rbp),%rsi
call   1070 <strcat@plt>
movb   $0x0,-0x28(%rbp)
movsbl -0x1a(%rbp),%eax
cmp    $0x1f,%eax
jge    13ec <convNumIP+0x28c>
lea    -0x28(%rbp),%rdi
lea    -0x28(%rbp),%rdx
mov    -0x18(%rbp),%rax
movsbl -0x1a(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%ecx
lea    0xc33(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x1a(%rbp),%al
add    $0x1,%al
mov    %al,-0x1a(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xc23(%rip),%rsi
call   1070 <strcat@plt>
jmp    12d5 <convNumIP+0x175>
movb   $0x1,-0x1(%rbp)
jmp    140c <convNumIP+0x2ac>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
movb   $0x0,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convNumIP>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r12
mov    %rdi,%r14
movb   $0x0,0x6(%rsp)
movw   $0x0,0x4(%rsp)
movq   $0x0,0x8(%rsp)
cmp    $0x1,%edx
je     128f <convNumIP+0x12f>
test   %edx,%edx
jne    1368 <convNumIP+0x208>
movb   $0x0,(%r12)
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    $0x1,%cl
test   %al,%al
jle    1373 <convNumIP+0x213>
lea    0x8(%rsp),%rbp
lea    0x10(%rsp),%rbx
lea    0xe43(%rip),%r13
xor    %r15d,%r15d
jmp    11f1 <convNumIP+0x91>
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %rbp,%rsi
call   1070 <strcat@plt>
movb   $0x0,0x8(%rsp)
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    %al,%r15b
jge    1364 <convNumIP+0x204>
movsbq %r15b,%rax
movsbl (%r14,%rax,1),%ecx
test   %ecx,%ecx
je     1203 <convNumIP+0xa3>
cmp    $0x2e,%cl
jne    1270 <convNumIP+0x110>
add    $0x1,%r15b
lea    0x4(%rsp),%rdi
mov    %rbp,%rsi
mov    $0x2,%edx
call   1060 <decPara@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
cmp    $0x7,%al
jg     11d0 <convNumIP+0x70>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
mov    $0x30,%edx
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %rbx,%rcx
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
cmp    $0x8,%al
jl     1230 <convNumIP+0xd0>
jmp    11d0 <convNumIP+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x4(%rsp),%rdi
lea    0xd84(%rip),%rsi
mov    %rdi,%rdx
xor    %eax,%eax
call   1080 <sprintf@plt>
add    $0x1,%r15b
jmp    11f1 <convNumIP+0x91>
movb   $0x0,(%r14)
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    $0x1,%cl
test   %al,%al
jle    1373 <convNumIP+0x213>
lea    0x8(%rsp),%rbp
lea    0xd4f(%rip),%r13
xor    %r15d,%r15d
jmp    12d1 <convNumIP+0x171>
cs nopw 0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1040 <strlen@plt>
cmp    %al,%r15b
jge    1364 <convNumIP+0x204>
lea    -0x8(%r15),%eax
rol    $0x5,%al
cmp    $0x4,%al
jb     1308 <convNumIP+0x1a8>
nopl   0x0(%rax)
movsbq %r15b,%rbx
movsbl (%r12,%rbx,1),%ecx
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <sprintf@plt>
lea    0x1(%rbx),%r15d
add    $0xf9,%bl
rol    $0x5,%bl
cmp    $0x3,%bl
ja     12e0 <convNumIP+0x180>
mov    %rbp,%rdi
lea    0x4(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x2,%edx
call   1050 <paraDec@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <strcat@plt>
movb   $0x0,0x8(%rsp)
cmp    $0x1e,%r15b
jg     12c0 <convNumIP+0x160>
movsbq %r15b,%rax
movsbl (%r12,%rax,1),%ecx
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <sprintf@plt>
add    $0x1,%r15b
mov    %r14,%rdi
lea    0xcb0(%rip),%rsi
call   1070 <strcat@plt>
jmp    12c0 <convNumIP+0x160>
mov    $0x1,%cl
jmp    1373 <convNumIP+0x213>
movb   $0x0,(%r14)
movb   $0x0,(%r12)
xor    %ecx,%ecx
mov    %ecx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%s%c\00"
@.str.1 = [5 x i8] c"%c%s\00"
@.str.2 = [2 x i8] c".\00"
define signext i8 @convNumIP(i8* %0, i8* %1, i8 signext %2) {
%4 = alloca [3 x i8]
%5 = alloca i64
%6 = alloca [8 x i8]
%7 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%8 = bitcast i64* %5 to i8*
store i64 0, i64* %5
%9 = sext i8 %2 to i32
switch i32 %9, label %76 [
i32 0, label %10
i32 1, label %40
]
10: ; preds = %3
store i8 0, i8* %1
%11 = call signext i8 @strlen(i8* %0)
%12 = icmp sgt i8 %11, 0
br i1 %12, label %13, label %77
13: ; preds = %10
%14 = getelementptr inbounds [8 x i8], [8 x i8]* %6, i64 0, i64 0
br label %15
15: ; preds = %24, %13
%16 = phi i8 [ 0, %13 ], [ %25, %24 ]
%17 = sext i8 %16 to i64
%18 = getelementptr inbounds i8, i8* %0, i64 %17
%19 = load i8, i8* %18
switch i8 %19, label %20 [
i8 46, label %26
i8 0, label %26
]
20: ; preds = %15
%21 = sext i8 %19 to i32
%22 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %7, i32 %21)
%23 = add i8 %16, 1
br label %24
24: ; preds = %20, %36
%25 = phi i8 [ %23, %20 ], [ %27, %36 ]
br label %15
26: ; preds = %15, %15
%27 = add i8 %16, 1
%28 = call i32 @decPara(i8* %7, i8* %8, i32 2)
%29 = call signext i8 @strlen(i8* %8)
%30 = icmp slt i8 %29, 8
br i1 %30, label %31, label %36
31: ; preds = %26, %31
%32 = call i32 @strcpy(i8* %14, i8* %8)
%33 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* inttoptr (i64 48 to i8*), i8* %14)
%34 = call signext i8 @strlen(i8* %8)
%35 = icmp slt i8 %34, 8
br i1 %35, label %31, label %36
36: ; preds = %31, %26
%37 = call i32 @strcat(i8* %1, i8* %8)
store i8 0, i8* %8
%38 = call signext i8 @strlen(i8* %0)
%39 = icmp slt i8 %27, %38
br i1 %39, label %24, label %77
40: ; preds = %3
store i8 0, i8* %0
%41 = call signext i8 @strlen(i8* %1)
%42 = icmp sgt i8 %41, 0
br i1 %42, label %43, label %77
43: ; preds = %40, %72
%44 = phi i8 [ %73, %72 ], [ 0, %40 ]
%45 = add i8 %44, -8
%46 = call i8 @llvm.fshl.i8(i8 %45, i8 %45, i8 5)
%47 = icmp ult i8 %46, 4
br i1 %47, label %59, label %48
48: ; preds = %43, %48
%49 = phi i8 [ %55, %48 ], [ %44, %43 ]
%50 = sext i8 %49 to i64
%51 = getelementptr inbounds i8, i8* %1, i64 %50
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %8, i32 %53)
%55 = add i8 %49, 1
%56 = add i8 %49, -7
%57 = call i8 @llvm.fshl.i8(i8 %56, i8 %56, i8 5)
%58 = icmp ult i8 %57, 4
br i1 %58, label %59, label %48
59: ; preds = %48, %43
%60 = phi i8 [ %44, %43 ], [ %55, %48 ]
%61 = call i32 @paraDec(i8* %8, i8* %7, i32 2)
%62 = call i32 @strcat(i8* %0, i8* %7)
store i8 0, i8* %8
%63 = icmp slt i8 %60, 31
br i1 %63, label %64, label %72
64: ; preds = %59
%65 = sext i8 %60 to i64
%66 = getelementptr inbounds i8, i8* %1, i64 %65
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %8, i32 %68)
%70 = add nsw i8 %60, 1
%71 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %72
72: ; preds = %64, %59
%73 = phi i8 [ %70, %64 ], [ %60, %59 ]
%74 = call signext i8 @strlen(i8* %1)
%75 = icmp slt i8 %73, %74
br i1 %75, label %43, label %77
76: ; preds = %3
store i8 0, i8* %0
store i8 0, i8* %1
br label %77
77: ; preds = %72, %36, %40, %10, %76
%78 = phi i8 [ 0, %76 ], [ 1, %10 ], [ 1, %40 ], [ 1, %36 ], [ 1, %72 ]
ret i8 %78
}