#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*/ memcpy(char *, char *, int);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ sprintf(char *, char *, char const *);
char *strchr(char *, char);
int strlen(char *);
char toupper(char);
void p3fs_83name(const char *name, char *fcbname) {
  char namebuf[13];
  int n;
  char *dot;
  sprintf(namebuf, "%-12.12s", name);
  memset(fcbname, ' ', 11);
  fcbname[11] = 0;
  for (n = 11; n > 0; n--) {
    if (namebuf[n] == ' ')
      namebuf[n] = 0;
    else
      break;
  }
  dot = strchr(namebuf, '.');
  if (dot && strlen(dot) <= 4) {
    sprintf(fcbname + 8, "%-3.3s", dot + 1);
    *dot = 0;
    memcpy(fcbname, namebuf, strlen(namebuf));
  } else {
    sprintf(fcbname, "%-11.11s", namebuf);
  }
  for (n = 0; fcbname[n]; n++) {
    fcbname[n] &= 0x7F;
    if (fcbname[n] < '!' || strchr(".:;<>[]", fcbname[n])) {
      fcbname[n] = '_';
    }
    fcbname[n] = toupper(fcbname[n]);
  }
  for (n = 10; n >= 8; n--) {
    if (fcbname[n] == '_')
      fcbname[n] = ' ';
    else
      break;
  }
  for (n = 7; n >= 1; n--) {
    if (fcbname[n] == '_')
      fcbname[n] = ' ';
    else
      break;
  }
}


x86 assembly (clang, -O0):
<p3fs_83name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x1d(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe81(%rip),%rsi
call   1080 <sprintf@plt>
mov    -0x10(%rbp),%rdi
mov    $0x20,%esi
mov    $0xb,%edx
call   1060 <memset@plt>
mov    -0x10(%rbp),%rax
movb   $0x0,0xb(%rax)
movl   $0xb,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jle    11e8 <p3fs_83name+0x88>
movslq -0x24(%rbp),%rax
movsbl -0x1d(%rbp,%rax,1),%eax
cmp    $0x20,%eax
jne    11d0 <p3fs_83name+0x70>
movslq -0x24(%rbp),%rax
movb   $0x0,-0x1d(%rbp,%rax,1)
jmp    11d5 <p3fs_83name+0x75>
jmp    11e8 <p3fs_83name+0x88>
jmp    11da <p3fs_83name+0x7a>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    11a6 <p3fs_83name+0x46>
lea    -0x1d(%rbp),%rdi
mov    $0x2e,%esi
call   1050 <strchr@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1267 <p3fs_83name+0x107>
mov    -0x30(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x4,%eax
jg     1267 <p3fs_83name+0x107>
mov    -0x10(%rbp),%rdi
add    $0x8,%rdi
mov    -0x30(%rbp),%rdx
add    $0x1,%rdx
lea    0xddb(%rip),%rsi
call   1080 <sprintf@plt>
mov    -0x30(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x1d(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x1d(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    %eax,%edx
call   1070 <memcpy@plt>
jmp    127b <p3fs_83name+0x11b>
mov    -0x10(%rbp),%rdi
lea    -0x1d(%rbp),%rdx
lea    0xd9a(%rip),%rsi
call   1080 <sprintf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     1315 <p3fs_83name+0x1b5>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
and    $0x7f,%edx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x21,%eax
jl     12dd <p3fs_83name+0x17d>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
lea    0xd4f(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     12e9 <p3fs_83name+0x189>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movb   $0x5f,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <toupper@plt>
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1282 <p3fs_83name+0x122>
movl   $0xa,-0x24(%rbp)
cmpl   $0x8,-0x24(%rbp)
jl     1364 <p3fs_83name+0x204>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x5f,%eax
jne    134c <p3fs_83name+0x1ec>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
jmp    1351 <p3fs_83name+0x1f1>
jmp    1364 <p3fs_83name+0x204>
jmp    1356 <p3fs_83name+0x1f6>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    131c <p3fs_83name+0x1bc>
movl   $0x7,-0x24(%rbp)
cmpl   $0x1,-0x24(%rbp)
jl     13b3 <p3fs_83name+0x253>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x5f,%eax
jne    139b <p3fs_83name+0x23b>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
jmp    13a0 <p3fs_83name+0x240>
jmp    13b3 <p3fs_83name+0x253>
jmp    13a5 <p3fs_83name+0x245>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    136b <p3fs_83name+0x20b>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<p3fs_83name>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%rdx
lea    0xe88(%rip),%rsi
lea    0xb(%rsp),%rdi
call   1080 <sprintf@plt>
mov    %r14,%rdi
mov    $0x20,%esi
mov    $0xb,%edx
call   1060 <memset@plt>
movb   $0x0,0xb(%r14)
cmpb   $0x20,0x16(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0x16(%rsp)
cmpb   $0x20,0x15(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0x15(%rsp)
cmpb   $0x20,0x14(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0x14(%rsp)
cmpb   $0x20,0x13(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0x13(%rsp)
cmpb   $0x20,0x12(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0x12(%rsp)
cmpb   $0x20,0x11(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0x11(%rsp)
cmpb   $0x20,0x10(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0x10(%rsp)
cmpb   $0x20,0xf(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0xf(%rsp)
cmpb   $0x20,0xe(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0xe(%rsp)
cmpb   $0x20,0xd(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0xd(%rsp)
cmpb   $0x20,0xc(%rsp)
jne    121d <p3fs_83name+0xbd>
movb   $0x0,0xc(%rsp)
lea    0xb(%rsp),%rdi
mov    $0x2e,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     1277 <p3fs_83name+0x117>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <strlen@plt>
cmp    $0x4,%eax
jg     1277 <p3fs_83name+0x117>
lea    0x8(%r14),%rdi
mov    %rbx,%rdx
add    $0x1,%rdx
lea    0xdb6(%rip),%rsi
call   1080 <sprintf@plt>
movb   $0x0,(%rbx)
lea    0xb(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1070 <memcpy@plt>
jmp    128b <p3fs_83name+0x12b>
lea    0xd92(%rip),%rsi
lea    0xb(%rsp),%rdx
mov    %r14,%rdi
call   1080 <sprintf@plt>
mov    (%r14),%bl
test   %bl,%bl
je     12df <p3fs_83name+0x17f>
lea    0xd80(%rip),%r15
mov    %r14,%r12
jmp    12c1 <p3fs_83name+0x161>
xchg   %ax,%ax
movb   $0x5f,(%r12)
mov    $0x5f,%bl
movzbl %bl,%edi
call   1030 <toupper@plt>
mov    %al,(%r12)
movzbl 0x1(%r12),%ebx
add    $0x1,%r12
test   %bl,%bl
je     12df <p3fs_83name+0x17f>
and    $0x7f,%bl
mov    %bl,(%r12)
cmp    $0x21,%bl
jb     12a0 <p3fs_83name+0x140>
movzbl %bl,%esi
mov    %r15,%rdi
call   1050 <strchr@plt>
test   %rax,%rax
jne    12a0 <p3fs_83name+0x140>
jmp    12a7 <p3fs_83name+0x147>
cmpb   $0x5f,0xa(%r14)
jne    1303 <p3fs_83name+0x1a3>
movb   $0x20,0xa(%r14)
cmpb   $0x5f,0x9(%r14)
jne    1303 <p3fs_83name+0x1a3>
movb   $0x20,0x9(%r14)
cmpb   $0x5f,0x8(%r14)
jne    1303 <p3fs_83name+0x1a3>
movb   $0x20,0x8(%r14)
cmpb   $0x5f,0x7(%r14)
jne    1357 <p3fs_83name+0x1f7>
movb   $0x20,0x7(%r14)
cmpb   $0x5f,0x6(%r14)
jne    1357 <p3fs_83name+0x1f7>
movb   $0x20,0x6(%r14)
cmpb   $0x5f,0x5(%r14)
jne    1357 <p3fs_83name+0x1f7>
movb   $0x20,0x5(%r14)
cmpb   $0x5f,0x4(%r14)
jne    1357 <p3fs_83name+0x1f7>
movb   $0x20,0x4(%r14)
cmpb   $0x5f,0x3(%r14)
jne    1357 <p3fs_83name+0x1f7>
movb   $0x20,0x3(%r14)
cmpb   $0x5f,0x2(%r14)
jne    1357 <p3fs_83name+0x1f7>
movb   $0x20,0x2(%r14)
cmpb   $0x5f,0x1(%r14)
jne    1357 <p3fs_83name+0x1f7>
movb   $0x20,0x1(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

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