#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 */
char *random_computer_word();
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int strlen(char *);
int xrandom(int);
void gen_random_global_name(char *root, char *namebuf) {
  char smallbuf[100];
  int n, i, len;
  namebuf[0] = '\0';
  switch (xrandom(4)) {
  case 0:
    namebuf[0] = 'a' + xrandom(26);
    namebuf[1] = '\0';
    break;
  case 1:
    n = xrandom(10000);
    i = 0;
    while (n > 0) {
      if (xrandom(6) == 0)
        namebuf[i++] = '_';
      namebuf[i++] = 'a' + (n % 26);
      n /= 26;
    }
    namebuf[i] = '\0';
    break;
  default:
    strcat(namebuf, random_computer_word());
    break;
  }
  if (root != NULL) {
    strcat(namebuf, "_");
    strcat(namebuf, root);
  }
  switch (xrandom(5)) {
  case 0:
    strcat(namebuf, "_");
    len = strlen(namebuf);
    namebuf[len] = 'a' + xrandom(26);
    namebuf[len + 1] = '\0';
    break;
  case 1:
    strcat(namebuf, "_");
    sprintf(smallbuf, "%d", xrandom(10000));
    strcat(namebuf, smallbuf);
    break;
  case 2:
    n = xrandom(10000);
    len = strlen(namebuf);
    i = len;
    while (n > 0) {
      if (xrandom(6) == 0)
        namebuf[i++] = '_';
      namebuf[i++] = 'a' + (n % 26);
      n /= 26;
    }
    namebuf[i] = '\0';
    break;
  default:
    strcat(namebuf, "_");
    strcat(namebuf, random_computer_word());
    break;
  }
  if (xrandom(5) == 0) {
    strcat(namebuf, "_");
    sprintf(smallbuf, "%d", xrandom(10000));
    strcat(namebuf, smallbuf);
  }
}


x86 assembly (clang, -O0):
<gen_random_global_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    $0x4,%edi
call   1040 <xrandom@plt>
mov    %eax,%ecx
mov    %ecx,-0x90(%rbp)
test   %eax,%eax
je     119d <gen_random_global_name+0x4d>
jmp    1189 <gen_random_global_name+0x39>
mov    -0x90(%rbp),%eax
sub    $0x1,%eax
je     11bf <gen_random_global_name+0x6f>
jmp    126e <gen_random_global_name+0x11e>
mov    $0x1a,%edi
call   1040 <xrandom@plt>
add    $0x61,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
movb   $0x0,0x1(%rax)
jmp    128f <gen_random_global_name+0x13f>
mov    $0x2710,%edi
call   1040 <xrandom@plt>
mov    %eax,-0x84(%rbp)
movl   $0x0,-0x88(%rbp)
cmpl   $0x0,-0x84(%rbp)
jle    125a <gen_random_global_name+0x10a>
mov    $0x6,%edi
call   1040 <xrandom@plt>
cmp    $0x0,%eax
jne    1215 <gen_random_global_name+0xc5>
mov    -0x10(%rbp),%rax
mov    -0x88(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x88(%rbp)
movslq %ecx,%rcx
movb   $0x5f,(%rax,%rcx,1)
mov    -0x84(%rbp),%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
add    $0x61,%edx
mov    -0x10(%rbp),%rax
mov    -0x88(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x88(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x84(%rbp),%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %eax,-0x84(%rbp)
jmp    11d9 <gen_random_global_name+0x89>
mov    -0x10(%rbp),%rax
movslq -0x88(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
jmp    128f <gen_random_global_name+0x13f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    $0x0,%al
call   1050 <random_computer_word@plt>
mov    -0x98(%rbp),%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
cmpq   $0x0,-0x8(%rbp)
je     12b7 <gen_random_global_name+0x167>
mov    -0x10(%rbp),%rdi
lea    0xd5b(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1060 <strcat@plt>
mov    $0x5,%edi
call   1040 <xrandom@plt>
mov    %eax,%ecx
mov    %ecx,-0x9c(%rbp)
test   %eax,%eax
je     12fe <gen_random_global_name+0x1ae>
jmp    12d6 <gen_random_global_name+0x186>
mov    -0x9c(%rbp),%eax
sub    $0x1,%eax
je     1353 <gen_random_global_name+0x203>
jmp    12ea <gen_random_global_name+0x19a>
mov    -0x9c(%rbp),%eax
sub    $0x2,%eax
je     139f <gen_random_global_name+0x24f>
jmp    145f <gen_random_global_name+0x30f>
mov    -0x10(%rbp),%rdi
lea    0xcf7(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x8c(%rbp)
mov    $0x1a,%edi
call   1040 <xrandom@plt>
add    $0x61,%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x8c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    -0x8c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
jmp    1490 <gen_random_global_name+0x340>
mov    -0x10(%rbp),%rdi
lea    0xca2(%rip),%rsi
call   1060 <strcat@plt>
lea    -0x80(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    $0x2710,%edi
call   1040 <xrandom@plt>
mov    -0xa8(%rbp),%rdi
mov    %eax,%edx
lea    0xc7a(%rip),%rsi
call   1070 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1060 <strcat@plt>
jmp    1490 <gen_random_global_name+0x340>
mov    $0x2710,%edi
call   1040 <xrandom@plt>
mov    %eax,-0x84(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
mov    %eax,-0x88(%rbp)
cmpl   $0x0,-0x84(%rbp)
jle    144b <gen_random_global_name+0x2fb>
mov    $0x6,%edi
call   1040 <xrandom@plt>
cmp    $0x0,%eax
jne    1406 <gen_random_global_name+0x2b6>
mov    -0x10(%rbp),%rax
mov    -0x88(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x88(%rbp)
movslq %ecx,%rcx
movb   $0x5f,(%rax,%rcx,1)
mov    -0x84(%rbp),%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
add    $0x61,%edx
mov    -0x10(%rbp),%rax
mov    -0x88(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x88(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x84(%rbp),%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %eax,-0x84(%rbp)
jmp    13ca <gen_random_global_name+0x27a>
mov    -0x10(%rbp),%rax
movslq -0x88(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
jmp    1490 <gen_random_global_name+0x340>
mov    -0x10(%rbp),%rdi
lea    0xb96(%rip),%rsi
call   1060 <strcat@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    $0x0,%al
call   1050 <random_computer_word@plt>
mov    -0xb0(%rbp),%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    $0x5,%edi
call   1040 <xrandom@plt>
cmp    $0x0,%eax
jne    14ea <gen_random_global_name+0x39a>
mov    -0x10(%rbp),%rdi
lea    0xb52(%rip),%rsi
call   1060 <strcat@plt>
lea    -0x80(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    $0x2710,%edi
call   1040 <xrandom@plt>
mov    -0xb8(%rbp),%rdi
mov    %eax,%edx
lea    0xb2a(%rip),%rsi
call   1070 <sprintf@plt>
mov    -0x10(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1060 <strcat@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_random_global_name>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%r15
mov    %rdi,%r14
movb   $0x0,(%rsi)
mov    $0x4,%edi
call   1040 <xrandom@plt>
cmp    $0x1,%eax
je     119c <gen_random_global_name+0x4c>
test   %eax,%eax
jne    11f8 <gen_random_global_name+0xa8>
mov    $0x1a,%edi
call   1040 <xrandom@plt>
add    $0x61,%al
mov    %al,(%r15)
movb   $0x0,0x1(%r15)
test   %r14,%r14
jne    121e <gen_random_global_name+0xce>
jmp    1238 <gen_random_global_name+0xe8>
mov    $0x2710,%edi
call   1040 <xrandom@plt>
xor    %ebp,%ebp
test   %eax,%eax
jle    1214 <gen_random_global_name+0xc4>
mov    %eax,%ebx
jmp    11dd <gen_random_global_name+0x8d>
mov    %ebx,%eax
imul   $0x4ec4ec4f,%rax,%rax
shr    $0x23,%rax
lea    (%rax,%rax,4),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %eax,%ecx
mov    %ebx,%edx
sub    %ecx,%edx
add    $0x61,%dl
movslq %ebp,%rcx
add    $0x1,%ebp
mov    %dl,(%r15,%rcx,1)
cmp    $0x19,%ebx
mov    %eax,%ebx
jbe    1211 <gen_random_global_name+0xc1>
mov    $0x6,%edi
call   1040 <xrandom@plt>
test   %eax,%eax
jne    11b0 <gen_random_global_name+0x60>
movslq %ebp,%rax
add    $0x1,%ebp
movb   $0x5f,(%r15,%rax,1)
jmp    11b0 <gen_random_global_name+0x60>
xor    %eax,%eax
call   1050 <random_computer_word@plt>
mov    %r15,%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
test   %r14,%r14
jne    121e <gen_random_global_name+0xce>
jmp    1238 <gen_random_global_name+0xe8>
movslq %ebp,%rbp
movb   $0x0,(%r15,%rbp,1)
test   %r14,%r14
je     1238 <gen_random_global_name+0xe8>
lea    0xddb(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcat@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1060 <strcat@plt>
mov    $0x5,%edi
call   1040 <xrandom@plt>
cmp    $0x2,%eax
je     128f <gen_random_global_name+0x13f>
lea    0xdb2(%rip),%rsi
mov    %r15,%rdi
cmp    $0x1,%eax
je     1308 <gen_random_global_name+0x1b8>
test   %eax,%eax
jne    1333 <gen_random_global_name+0x1e3>
call   1060 <strcat@plt>
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
mov    $0x1a,%edi
call   1040 <xrandom@plt>
add    $0x61,%al
movslq %ebx,%rcx
mov    %al,(%r15,%rcx,1)
movb   $0x0,0x1(%r15,%rcx,1)
jmp    134a <gen_random_global_name+0x1fa>
mov    $0x2710,%edi
call   1040 <xrandom@plt>
mov    %eax,%ebx
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
test   %ebx,%ebx
jg     12ed <gen_random_global_name+0x19d>
movslq %ebp,%rax
movb   $0x0,(%r15,%rax,1)
jmp    134a <gen_random_global_name+0x1fa>
cs nopw 0x0(%rax,%rax,1)
mov    %ebx,%eax
imul   $0x4ec4ec4f,%rax,%rax
shr    $0x23,%rax
lea    (%rax,%rax,4),%ecx
lea    (%rcx,%rcx,4),%ecx
add    %eax,%ecx
mov    %ebx,%edx
sub    %ecx,%edx
add    $0x61,%dl
movslq %ebp,%rcx
add    $0x1,%ebp
mov    %dl,(%r15,%rcx,1)
cmp    $0x19,%ebx
mov    %eax,%ebx
jbe    12a9 <gen_random_global_name+0x159>
mov    $0x6,%edi
call   1040 <xrandom@plt>
test   %eax,%eax
jne    12c0 <gen_random_global_name+0x170>
movslq %ebp,%rax
add    $0x1,%ebp
movb   $0x5f,(%r15,%rax,1)
jmp    12c0 <gen_random_global_name+0x170>
call   1060 <strcat@plt>
mov    $0x2710,%edi
call   1040 <xrandom@plt>
lea    0xce4(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %eax,%edx
call   1070 <sprintf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
jmp    1345 <gen_random_global_name+0x1f5>
call   1060 <strcat@plt>
xor    %eax,%eax
call   1050 <random_computer_word@plt>
mov    %r15,%rdi
mov    %rax,%rsi
call   1060 <strcat@plt>
mov    $0x5,%edi
call   1040 <xrandom@plt>
test   %eax,%eax
jne    1390 <gen_random_global_name+0x240>
lea    0xca1(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcat@plt>
mov    $0x2710,%edi
call   1040 <xrandom@plt>
lea    0xc8a(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %eax,%edx
call   1070 <sprintf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <strcat@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [2 x i8] c"_\00"
@.str.1 = [3 x i8] c"%d\00"
define void @gen_random_global_name(i8* %0, i8* %1) {
%3 = alloca [100 x i8]
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
store i8 0, i8* %1
%5 = tail call i32 @xrandom(i32 4)
switch i32 %5, label %38 [
i32 0, label %6
i32 1, label %11
]
6: ; preds = %2
%7 = tail call i32 @xrandom(i32 26)
%8 = trunc i32 %7 to i8
%9 = add i8 %8, 97
store i8 %9, i8* %1
%10 = getelementptr inbounds i8, i8* %1, i64 1
store i8 0, i8* %10
br label %41
11: ; preds = %2
%12 = tail call i32 @xrandom(i32 10000)
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %35
14: ; preds = %11, %23
%15 = phi i32 [ %28, %23 ], [ 0, %11 ]
%16 = phi i32 [ %31, %23 ], [ %12, %11 ]
%17 = tail call i32 @xrandom(i32 6)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %14
%20 = add nsw i32 %15, 1
%21 = sext i32 %15 to i64
%22 = getelementptr inbounds i8, i8* %1, i64 %21
store i8 95, i8* %22
br label %23
23: ; preds = %19, %14
%24 = phi i32 [ %20, %19 ], [ %15, %14 ]
%25 = urem i32 %16, 26
%26 = trunc i32 %25 to i8
%27 = add nuw nsw i8 %26, 97
%28 = add nsw i32 %24, 1
%29 = sext i32 %24 to i64
%30 = getelementptr inbounds i8, i8* %1, i64 %29
store i8 %27, i8* %30
%31 = udiv i32 %16, 26
%32 = icmp ult i32 %16, 26
br i1 %32, label %33, label %14
33: ; preds = %23
%34 = sext i32 %28 to i64
br label %35
35: ; preds = %33, %11
%36 = phi i64 [ 0, %11 ], [ %34, %33 ]
%37 = getelementptr inbounds i8, i8* %1, i64 %36
store i8 0, i8* %37
br label %41
38: ; preds = %2
%39 = tail call i8* (...) @random_computer_word()
%40 = tail call i32 @strcat(i8* %1, i8* %39)
br label %41
41: ; preds = %38, %35, %6
%42 = icmp eq i8* %0, null
br i1 %42, label %46, label %43
43: ; preds = %41
%44 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%45 = tail call i32 @strcat(i8* %1, i8* %0)
br label %46
46: ; preds = %43, %41
%47 = tail call i32 @xrandom(i32 5)
switch i32 %47, label %91 [
i32 0, label %48
i32 1, label %59
i32 2, label %64
]
48: ; preds = %46
%49 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%50 = tail call i32 @strlen(i8* %1)
%51 = tail call i32 @xrandom(i32 26)
%52 = trunc i32 %51 to i8
%53 = add i8 %52, 97
%54 = sext i32 %50 to i64
%55 = getelementptr inbounds i8, i8* %1, i64 %54
store i8 %53, i8* %55
%56 = add nsw i32 %50, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, i8* %1, i64 %57
store i8 0, i8* %58
br label %95
59: ; preds = %46
%60 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%61 = tail call i32 @xrandom(i32 10000)
%62 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %61)
%63 = call i32 @strcat(i8* %1, i8* %4)
br label %95
64: ; preds = %46
%65 = tail call i32 @xrandom(i32 10000)
%66 = tail call i32 @strlen(i8* %1)
%67 = icmp sgt i32 %65, 0
br i1 %67, label %68, label %87
68: ; preds = %64, %77
%69 = phi i32 [ %82, %77 ], [ %66, %64 ]
%70 = phi i32 [ %85, %77 ], [ %65, %64 ]
%71 = tail call i32 @xrandom(i32 6)
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %77
73: ; preds = %68
%74 = add nsw i32 %69, 1
%75 = sext i32 %69 to i64
%76 = getelementptr inbounds i8, i8* %1, i64 %75
store i8 95, i8* %76
br label %77
77: ; preds = %73, %68
%78 = phi i32 [ %74, %73 ], [ %69, %68 ]
%79 = urem i32 %70, 26
%80 = trunc i32 %79 to i8
%81 = add nuw nsw i8 %80, 97
%82 = add nsw i32 %78, 1
%83 = sext i32 %78 to i64
%84 = getelementptr inbounds i8, i8* %1, i64 %83
store i8 %81, i8* %84
%85 = udiv i32 %70, 26
%86 = icmp ult i32 %70, 26
br i1 %86, label %87, label %68
87: ; preds = %77, %64
%88 = phi i32 [ %66, %64 ], [ %82, %77 ]
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, i8* %1, i64 %89
store i8 0, i8* %90
br label %95
91: ; preds = %46
%92 = tail call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%93 = tail call i8* (...) @random_computer_word()
%94 = tail call i32 @strcat(i8* %1, i8* %93)
br label %95
95: ; preds = %91, %87, %59, %48
%96 = call i32 @xrandom(i32 5)
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %103
98: ; preds = %95
%99 = call i32 @strcat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%100 = call i32 @xrandom(i32 10000)
%101 = call i32 @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %100)
%102 = call i32 @strcat(i8* %1, i8* %4)
br label %103
103: ; preds = %98, %95
ret void
}