#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 /*<<< orphan*/ temp;
typedef int /*<<< orphan*/ parameter_name;

/* Variables and functions */
scalar_t__ isdigit(char);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
scalar_t__ strstr(char *, char *);
char *strtok(char *, char *);
void transfer_parameter_name(char *parameter_name) {
  char *ptr_first, *ptr;
  char temp[128] = {};
  int i;
  if (parameter_name[0] == '.') {
    if (ptr_first = strtok(parameter_name, ".")) {
      strcat(temp, "_");
      strcat(temp, ptr_first);
      strcat(temp, "_");
      while (ptr = strtok(NULL, ".")) {
        strcat(temp, ptr);
        strcat(temp, "_");
      }
    }
  } else {
    if (isdigit(parameter_name[0])) {
      strcat(temp, "num_");
      strcat(temp, parameter_name);
      memset(parameter_name, 0, sizeof(parameter_name));
      strcpy(parameter_name, temp);
      memset(temp, 0, sizeof(temp));
    }
    if (ptr_first = strtok(parameter_name, ".")) {
      strcat(temp, ptr_first);
      strcat(temp, "_");
      while (ptr = strtok(NULL, ".")) {
        strcat(temp, ptr);
        strcat(temp, "_");
      }
    }
  }
  if (strstr(temp, "?") || strstr(temp, "-")) {
    for (i = 0; i < strlen(temp); i++) {
      if (temp[i] == '?' || temp[i] == '-')
        break;
    }
    temp[i] = '_';
  }
  memset(parameter_name, 0, sizeof(parameter_name));
  strncpy(parameter_name, temp, strlen(temp) - 1);
}


x86 assembly (clang, -O0):
<transfer_parameter_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1070 <memset@plt>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    1256 <transfer_parameter_name+0xd6>
mov    -0x8(%rbp),%rdi
lea    0xe43(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1251 <transfer_parameter_name+0xd1>
lea    -0xa0(%rbp),%rdi
lea    0xe27(%rip),%rsi
call   1090 <strcat@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <strcat@plt>
lea    -0xa0(%rbp),%rdi
lea    0xe04(%rip),%rsi
call   1090 <strcat@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xdef(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     124c <transfer_parameter_name+0xcc>
lea    -0xa0(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1090 <strcat@plt>
lea    -0xa0(%rbp),%rdi
lea    0xdc3(%rip),%rsi
call   1090 <strcat@plt>
jmp    1206 <transfer_parameter_name+0x86>
jmp    1251 <transfer_parameter_name+0xd1>
jmp    1353 <transfer_parameter_name+0x1d3>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
je     12c2 <transfer_parameter_name+0x142>
lea    -0xa0(%rbp),%rdi
lea    0xd88(%rip),%rsi
call   1090 <strcat@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    -0x8(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1050 <strcpy@plt>
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1070 <memset@plt>
mov    -0x8(%rbp),%rdi
lea    0xd33(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     134e <transfer_parameter_name+0x1ce>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1090 <strcat@plt>
lea    -0xa0(%rbp),%rdi
lea    0xd07(%rip),%rsi
call   1090 <strcat@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xcf2(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     1349 <transfer_parameter_name+0x1c9>
lea    -0xa0(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1090 <strcat@plt>
lea    -0xa0(%rbp),%rdi
lea    0xcc6(%rip),%rsi
call   1090 <strcat@plt>
jmp    1303 <transfer_parameter_name+0x183>
jmp    134e <transfer_parameter_name+0x1ce>
jmp    1353 <transfer_parameter_name+0x1d3>
lea    -0xa0(%rbp),%rdi
lea    0xca6(%rip),%rsi
call   10a0 <strstr@plt>
cmp    $0x0,%rax
jne    138d <transfer_parameter_name+0x20d>
lea    -0xa0(%rbp),%rdi
lea    0xc8b(%rip),%rsi
call   10a0 <strstr@plt>
cmp    $0x0,%rax
je     141c <transfer_parameter_name+0x29c>
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
mov    %eax,-0xa8(%rbp)
lea    -0xa0(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,%ecx
mov    -0xa8(%rbp),%eax
cmp    %ecx,%eax
jge    140d <transfer_parameter_name+0x28d>
movslq -0xa4(%rbp),%rax
movsbl -0xa0(%rbp,%rax,1),%eax
ff
cmp    $0x3f,%eax
je     13ef <transfer_parameter_name+0x26f>
movslq -0xa4(%rbp),%rax
movsbl -0xa0(%rbp,%rax,1),%eax
ff
cmp    $0x2d,%eax
jne    13f4 <transfer_parameter_name+0x274>
jmp    140d <transfer_parameter_name+0x28d>
jmp    13f9 <transfer_parameter_name+0x279>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1397 <transfer_parameter_name+0x217>
movslq -0xa4(%rbp),%rax
movb   $0x5f,-0xa0(%rbp,%rax,1)
5f
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0xa0(%rbp),%rax
mov    %rax,-0xb0(%rbp)
lea    -0xa0(%rbp),%rdi
call   1060 <strlen@plt>
mov    -0xb8(%rbp),%rdi
mov    -0xb0(%rbp),%rsi
mov    %eax,%edx
sub    $0x1,%edx
call   1030 <strncpy@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<transfer_parameter_name>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rdi,%r14
xorps  %xmm0,%xmm0
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
mov    (%rdi),%al
cmp    $0x2e,%al
jne    126a <transfer_parameter_name+0xea>
lea    0xe34(%rip),%rsi
mov    %r14,%rdi
call   1080 <strtok@plt>
test   %rax,%rax
je     1345 <transfer_parameter_name+0x1c5>
mov    %rax,%rbx
lea    0xe1e(%rip),%r15
mov    %rsp,%r12
mov    %r12,%rdi
mov    %r15,%rsi
call   1090 <strcat@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1090 <strcat@plt>
mov    %r12,%rdi
mov    %r15,%rsi
call   1090 <strcat@plt>
lea    0xdee(%rip),%rsi
xor    %edi,%edi
call   1080 <strtok@plt>
test   %rax,%rax
je     1345 <transfer_parameter_name+0x1c5>
mov    %rsp,%rbx
lea    0xdd9(%rip),%r15
lea    0xdcd(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    %rax,%rsi
call   1090 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1090 <strcat@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   1080 <strtok@plt>
test   %rax,%rax
jne    1240 <transfer_parameter_name+0xc0>
jmp    1345 <transfer_parameter_name+0x1c5>
movsbl %al,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
je     12bd <transfer_parameter_name+0x13d>
lea    0xd84(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1090 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1090 <strcat@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1050 <strcpy@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1070 <memset@plt>
lea    0xd3c(%rip),%rsi
mov    %r14,%rdi
call   1080 <strtok@plt>
test   %rax,%rax
je     1345 <transfer_parameter_name+0x1c5>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1090 <strcat@plt>
lea    0xd1f(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcat@plt>
lea    0xd0b(%rip),%rsi
xor    %edi,%edi
call   1080 <strtok@plt>
test   %rax,%rax
je     1345 <transfer_parameter_name+0x1c5>
mov    %rsp,%rbx
lea    0xcfa(%rip),%r15
lea    0xcee(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %rax,%rsi
call   1090 <strcat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1090 <strcat@plt>
xor    %edi,%edi
mov    %r12,%rsi
call   1080 <strtok@plt>
test   %rax,%rax
jne    1320 <transfer_parameter_name+0x1a0>
lea    0xcbb(%rip),%rsi
mov    %rsp,%rdi
call   10a0 <strstr@plt>
test   %rax,%rax
jne    136d <transfer_parameter_name+0x1ed>
lea    0xca9(%rip),%rsi
mov    %rsp,%rdi
call   10a0 <strstr@plt>
test   %rax,%rax
je     13a5 <transfer_parameter_name+0x225>
mov    %rsp,%rdi
call   1060 <strlen@plt>
xor    %ebx,%ebx
test   %eax,%eax
jle    139f <transfer_parameter_name+0x21f>
mov    %rsp,%r15
xchg   %ax,%ax
movzbl (%rsp,%rbx,1),%eax
cmp    $0x2d,%al
je     139f <transfer_parameter_name+0x21f>
cmp    $0x3f,%al
je     139f <transfer_parameter_name+0x21f>
add    $0x1,%rbx
mov    %r15,%rdi
call   1060 <strlen@plt>
cltq
cmp    %rax,%rbx
jl     1380 <transfer_parameter_name+0x200>
mov    %ebx,%eax
movb   $0x5f,(%rsp,%rax,1)
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <strlen@plt>
lea    -0x1(%rax),%edx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strncpy@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c".\00"
@.str.1 = [2 x i8] c"_\00"
@.str.2 = [5 x i8] c"num_\00"
@.str.3 = [2 x i8] c"?\00"
@.str.4 = [2 x i8] c"-\00"
define void @transfer_parameter_name(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [128 x i8]
%6 = alloca i32
store i8* %0, i8** %2
%7 = bitcast [128 x i8]* %5 to i8*
%8 = load i8*, i8** %2
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 46
br i1 %12, label %13, label %36
13: ; preds = %1
%14 = load i8*, i8** %2
%15 = call i8* @strtok(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %15, i8** %3
%16 = icmp ne i8* %15, null
br i1 %16, label %17, label %35
17: ; preds = %13
%18 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%19 = call i32 @strcat(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%21 = load i8*, i8** %3
%22 = call i32 @strcat(i8* %20, i8* %21)
%23 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%24 = call i32 @strcat(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %28, %17
%26 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %26, i8** %4
%27 = icmp ne i8* %26, null
br i1 %27, label %28, label %34
28: ; preds = %25
%29 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%30 = load i8*, i8** %4
%31 = call i32 @strcat(i8* %29, i8* %30)
%32 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%33 = call i32 @strcat(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %25
34: ; preds = %25
br label %35
35: ; preds = %34, %13
br label %76
36: ; preds = %1
%37 = load i8*, i8** %2
%38 = getelementptr inbounds i8, i8* %37, i64 0
%39 = load i8, i8* %38
%40 = call i64 @isdigit(i8 signext %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %55
42: ; preds = %36
%43 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%44 = call i32 @strcat(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%45 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%46 = load i8*, i8** %2
%47 = call i32 @strcat(i8* %45, i8* %46)
%48 = load i8*, i8** %2
%49 = call i32 @memset(i8* %48, i32 0, i32 8)
%50 = load i8*, i8** %2
%51 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%52 = call i32 @strcpy(i8* %50, i8* %51)
%53 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%54 = call i32 @memset(i8* %53, i32 0, i32 128)
br label %55
55: ; preds = %42, %36
%56 = load i8*, i8** %2
%57 = call i8* @strtok(i8* %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %57, i8** %3
%58 = icmp ne i8* %57, null
br i1 %58, label %59, label %75
59: ; preds = %55
%60 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%61 = load i8*, i8** %3
%62 = call i32 @strcat(i8* %60, i8* %61)
%63 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%64 = call i32 @strcat(i8* %63, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %65
65: ; preds = %68, %59
%66 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %66, i8** %4
%67 = icmp ne i8* %66, null
br i1 %67, label %68, label %74
68: ; preds = %65
%69 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%70 = load i8*, i8** %4
%71 = call i32 @strcat(i8* %69, i8* %70)
%72 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%73 = call i32 @strcat(i8* %72, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %65
74: ; preds = %65
br label %75
75: ; preds = %74, %55
br label %76
76: ; preds = %75, %35
%77 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%78 = call i64 @strstr(i8* %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%79 = icmp ne i64 %78, 0
br i1 %79, label %84, label %80
80: ; preds = %76
%81 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%82 = call i64 @strstr(i8* %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %113
84: ; preds = %80, %76
store i32 0, i32* %6
br label %85
85: ; preds = %106, %84
%86 = load i32, i32* %6
%87 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%88 = call i32 @strlen(i8* %87)
%89 = icmp slt i32 %86, %88
br i1 %89, label %90, label %109
90: ; preds = %85
%91 = load i32, i32* %6
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 %92
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 63
br i1 %96, label %104, label %97
97: ; preds = %90
%98 = load i32, i32* %6
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 %99
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 45
br i1 %103, label %104, label %105
104: ; preds = %97, %90
br label %109
105: ; preds = %97
br label %106
106: ; preds = %105
%107 = load i32, i32* %6
%108 = add nsw i32 %107, 1
store i32 %108, i32* %6
br label %85
109: ; preds = %104, %85
%110 = load i32, i32* %6
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 %111
store i8 95, i8* %112
br label %113
113: ; preds = %109, %80
%114 = load i8*, i8** %2
%115 = call i32 @memset(i8* %114, i32 0, i32 8)
%116 = load i8*, i8** %2
%117 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%118 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%119 = call i32 @strlen(i8* %118)
%120 = sub nsw i32 %119, 1
%121 = call i32 @strncpy(i8* %116, i8* %117, i32 %120)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c".\00"
@.str.1 = [2 x i8] c"_\00"
@.str.2 = [5 x i8] c"num_\00"
@.str.3 = [2 x i8] c"?\00"
@.str.4 = [2 x i8] c"-\00"
define void @transfer_parameter_name(i8* %0) {
%2 = alloca [128 x i8]
%3 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 46
br i1 %5, label %6, label %21
6: ; preds = %1
%7 = tail call i8* @strtok(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i8* %7, null
br i1 %8, label %44, label %9
9: ; preds = %6
%10 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @strcat(i8* %3, i8* %7)
%12 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i8* %13, null
br i1 %14, label %44, label %15
15: ; preds = %9, %15
%16 = phi i8* [ %19, %15 ], [ %13, %9 ]
%17 = call i32 @strcat(i8* %3, i8* %16)
%18 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%19 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%20 = icmp eq i8* %19, null
br i1 %20, label %44, label %15
21: ; preds = %1
%22 = tail call i64 @isdigit(i8 signext %4)
%23 = icmp eq i64 %22, 0
br i1 %23, label %30, label %24
24: ; preds = %21
%25 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%26 = call i32 @strcat(i8* %3, i8* %0)
%27 = call i32 @memset(i8* %0, i32 0, i32 8)
%28 = call i32 @strcpy(i8* %0, i8* %3)
%29 = call i32 @memset(i8* %3, i32 0, i32 128)
br label %30
30: ; preds = %24, %21
%31 = call i8* @strtok(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%32 = icmp eq i8* %31, null
br i1 %32, label %44, label %33
33: ; preds = %30
%34 = call i32 @strcat(i8* %3, i8* %31)
%35 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%36 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%37 = icmp eq i8* %36, null
br i1 %37, label %44, label %38
38: ; preds = %33, %38
%39 = phi i8* [ %42, %38 ], [ %36, %33 ]
%40 = call i32 @strcat(i8* %3, i8* %39)
%41 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%42 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%43 = icmp eq i8* %42, null
br i1 %43, label %44, label %38
44: ; preds = %38, %15, %33, %9, %30, %6
%45 = call i64 @strstr(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = call i64 @strstr(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %66, label %50
50: ; preds = %47, %44
%51 = call i32 @strlen(i8* %3)
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %62
53: ; preds = %50, %57
%54 = phi i64 [ %58, %57 ], [ 0, %50 ]
%55 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %54
%56 = load i8, i8* %55
switch i8 %56, label %57 [
i8 63, label %62
i8 45, label %62
]
57: ; preds = %53
%58 = add nuw nsw i64 %54, 1
%59 = call i32 @strlen(i8* %3)
%60 = sext i32 %59 to i64
%61 = icmp slt i64 %58, %60
br i1 %61, label %53, label %62
62: ; preds = %57, %53, %53, %50
%63 = phi i64 [ 0, %50 ], [ %54, %53 ], [ %54, %53 ], [ %58, %57 ]
%64 = and i64 %63, 4294967295
%65 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %64
store i8 95, i8* %65
br label %66
66: ; preds = %62, %47
%67 = call i32 @memset(i8* %0, i32 0, i32 8)
%68 = call i32 @strlen(i8* %3)
%69 = add nsw i32 %68, -1
%70 = call i32 @strncpy(i8* %0, i8* %3, i32 %69)
ret void
}