#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*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int strtol(char *, char **, int);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  if (argc < 2) {
    printf("usage: %s [length]\n", argv[0]);
    return -1;
  }
  char *pEnd;
  int length = strtol(argv[1], &pEnd, 10);
  if (length <= 0) {
    printf("usage: %s [length]\n", argv[0]);
    return -2;
  }
  if (length < 3) {
    printf("usage: %s [length]. Password min length is %d.\n", argv[0], 3);
    return -2;
  }
  if (length > 128) {
    printf("usage: %s [length]. Password max length is %d.\n", argv[0], 128);
    return -2;
  }
  printf("choose one password from the list below:\n");
  srand(time(NULL));
  int c_source_len = sizeof("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX"
                            "YZ0123456789!$%&/{}[]()=?+*#.:,;-_<>@~") /
                     sizeof("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX"
                            "YZ0123456789!$%&/{}[]()=?+*#.:,;-_<>@~"[0]);
  if (length >= 3 && length <= 128) {
    int i, j, r;
    char *pw = (char *)malloc(length * sizeof(char) + 1);
    for (j = 0; j < 7; j++) {
      for (i = 0; i < length; i++) {
        r = rand() % (c_source_len - 1);
        pw[i] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
                "!$%&/{}[]()=?+*#.:,;-_<>@~"[r];
      }
      pw[++i] = 0;
      printf("password: %s \n", pw);
    }
    free(pw);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11b1 <main+0x41>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    134d <main+0x1dd>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x18(%rbp),%rsi
mov    $0xa,%edx
call   1060 <strtol@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jg     11f5 <main+0x85>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xfffffffe,-0x4(%rbp)
jmp    134d <main+0x1dd>
cmpl   $0x3,-0x1c(%rbp)
jge    1225 <main+0xb5>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe07(%rip),%rdi
mov    $0x3,%edx
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xfffffffe,-0x4(%rbp)
jmp    134d <main+0x1dd>
cmpl   $0x80,-0x1c(%rbp)
jle    1258 <main+0xe8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe04(%rip),%rdi
mov    $0x80,%edx
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xfffffffe,-0x4(%rbp)
jmp    134d <main+0x1dd>
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
movl   $0x59,-0x20(%rbp)
cmpl   $0x3,-0x1c(%rbp)
jl     1346 <main+0x1d6>
cmpl   $0x80,-0x1c(%rbp)
jg     1346 <main+0x1d6>
movslq -0x1c(%rbp),%rax
shl    $0x0,%rax
add    $0x1,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x7,-0x28(%rbp)
jge    133d <main+0x1cd>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1309 <main+0x199>
mov    $0x0,%al
call   1090 <rand@plt>
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x2c(%rbp)
movslq -0x2c(%rbp),%rcx
lea    0xdb1(%rip),%rax
mov    (%rax,%rcx,1),%dl
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12c3 <main+0x153>
mov    -0x38(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x24(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x38(%rbp),%rsi
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12b2 <main+0x142>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     11af <main+0x2f>
mov    (%rbx),%rsi
lea    0xe62(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffff,%ebp
jmp    1495 <main+0x315>
mov    0x8(%rbx),%rdi
lea    0x8(%rsp),%rsi
mov    $0xa,%edx
call   1070 <strtol@plt>
test   %eax,%eax
jle    11de <main+0x5e>
mov    %eax,%ebp
cmp    $0x2,%eax
ja     11f9 <main+0x79>
mov    (%rbx),%rsi
lea    0xe3d(%rip),%rdi
mov    $0x3,%edx
jmp    1210 <main+0x90>
mov    (%rbx),%rsi
lea    0xe18(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xfffffffe,%ebp
jmp    1495 <main+0x315>
cmp    $0x81,%ebp
jb     1221 <main+0xa1>
mov    (%rbx),%rsi
lea    0xe39(%rip),%rdi
mov    $0x80,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xfffffffe,%ebp
jmp    1495 <main+0x315>
lea    0xeb4(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
mov    %ebp,%r12d
lea    0x1(%r12),%r14
mov    %r14d,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
lea    0xe1f(%rip),%r15
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x2e8ba2e9,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x24,%rcx
add    %edx,%ecx
imul   $0x58,%ecx,%ecx
sub    %ecx,%eax
cltq
movzbl (%rax,%r15,1),%eax
mov    %al,(%rbx,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1260 <main+0xe0>
movb   $0x0,(%rbx,%r14,1)
lea    0xe2c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebp,%ebp
nopl   (%rax)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x2e8ba2e9,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x24,%rcx
add    %edx,%ecx
imul   $0x58,%ecx,%ecx
sub    %ecx,%eax
cltq
movzbl (%rax,%r15,1),%eax
mov    %al,(%rbx,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    12b0 <main+0x130>
movb   $0x0,(%rbx,%r14,1)
lea    0xddc(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebp,%ebp
nopl   (%rax)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x2e8ba2e9,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x24,%rcx
add    %edx,%ecx
imul   $0x58,%ecx,%ecx
sub    %ecx,%eax
cltq
movzbl (%rax,%r15,1),%eax
mov    %al,(%rbx,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1300 <main+0x180>
movb   $0x0,(%rbx,%r14,1)
lea    0xd8c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebp,%ebp
nopl   (%rax)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x2e8ba2e9,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x24,%rcx
add    %edx,%ecx
imul   $0x58,%ecx,%ecx
sub    %ecx,%eax
cltq
movzbl (%rax,%r15,1),%eax
mov    %al,(%rbx,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1350 <main+0x1d0>
movb   $0x0,(%rbx,%r14,1)
lea    0xd3c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebp,%ebp
nopl   (%rax)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x2e8ba2e9,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x24,%rcx
add    %edx,%ecx
imul   $0x58,%ecx,%ecx
sub    %ecx,%eax
cltq
movzbl (%rax,%r15,1),%eax
mov    %al,(%rbx,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    13a0 <main+0x220>
movb   $0x0,(%rbx,%r14,1)
lea    0xcec(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebp,%ebp
nopl   (%rax)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x2e8ba2e9,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x24,%rcx
add    %edx,%ecx
imul   $0x58,%ecx,%ecx
sub    %ecx,%eax
cltq
movzbl (%rax,%r15,1),%eax
mov    %al,(%rbx,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    13f0 <main+0x270>
movb   $0x0,(%rbx,%r14,1)
lea    0xc9c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %ebp,%ebp
nopl   (%rax)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x2e8ba2e9,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x24,%rcx
add    %edx,%ecx
imul   $0x58,%ecx,%ecx
sub    %ecx,%eax
cltq
movzbl (%rax,%r15,1),%eax
mov    %al,(%rbx,%rbp,1)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1440 <main+0x2c0>
movb   $0x0,(%rbx,%r14,1)
lea    0xc4c(%rip),%rdi
xor    %ebp,%ebp
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"usage: %s [length]\0A\00"
@.str.1 = [48 x i8] c"usage: %s [length]. Password min length is %d.\0A\00"
@.str.2 = [48 x i8] c"usage: %s [length]. Password max length is %d.\0A\00"
@.str.3 = [42 x i8] c"choose one password from the list below:\0A\00"
@.str.4 = [89 x i8] c"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!$%&/{}[]()=?+*#.:,;-_<>@~\00"
@.str.5 = [15 x i8] c"password: %s \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %18)
store i32 -1, i32* %3
br label %104
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @strtol(i8* %23, i8** %6, i32 10)
store i32 %24, i32* %7
%25 = load i32, i32* %7
%26 = icmp sle i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %20
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 0
%30 = load i8*, i8** %29
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %30)
store i32 -2, i32* %3
br label %104
32: ; preds = %20
%33 = load i32, i32* %7
%34 = icmp slt i32 %33, 3
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 0
%38 = load i8*, i8** %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i8* %38, i32 3)
store i32 -2, i32* %3
br label %104
40: ; preds = %32
%41 = load i32, i32* %7
%42 = icmp sgt i32 %41, 128
br i1 %42, label %43, label %48
43: ; preds = %40
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 0
%46 = load i8*, i8** %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8* %46, i32 128)
store i32 -2, i32* %3
br label %104
48: ; preds = %40
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0))
%50 = call i32 @time(i32* null)
%51 = call i32 @srand(i32 %50)
store i32 89, i32* %8
%52 = load i32, i32* %7
%53 = icmp sge i32 %52, 3
br i1 %53, label %54, label %103
54: ; preds = %48
%55 = load i32, i32* %7
%56 = icmp sle i32 %55, 128
br i1 %56, label %57, label %103
57: ; preds = %54
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = mul i64 %59, 1
%61 = add i64 %60, 1
%62 = trunc i64 %61 to i32
%63 = call i64 @malloc(i32 %62)
%64 = inttoptr i64 %63 to i8*
store i8* %64, i8** %12
store i32 0, i32* %10
br label %65
65: ; preds = %97, %57
%66 = load i32, i32* %10
%67 = icmp slt i32 %66, 7
br i1 %67, label %68, label %100
68: ; preds = %65
store i32 0, i32* %9
br label %69
69: ; preds = %86, %68
%70 = load i32, i32* %9
%71 = load i32, i32* %7
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %89
73: ; preds = %69
%74 = call i32 (...) @rand()
%75 = load i32, i32* %8
%76 = sub nsw i32 %75, 1
%77 = srem i32 %74, %76
store i32 %77, i32* %11
%78 = load i32, i32* %11
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [89 x i8], [89 x i8]* @.str.4, i64 0, i64 %79
%81 = load i8, i8* %80
%82 = load i8*, i8** %12
%83 = load i32, i32* %9
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, i8* %82, i64 %84
store i8 %81, i8* %85
br label %86
86: ; preds = %73
%87 = load i32, i32* %9
%88 = add nsw i32 %87, 1
store i32 %88, i32* %9
br label %69
89: ; preds = %69
%90 = load i8*, i8** %12
%91 = load i32, i32* %9
%92 = add nsw i32 %91, 1
store i32 %92, i32* %9
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, i8* %90, i64 %93
store i8 0, i8* %94
%95 = load i8*, i8** %12
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %95)
br label %97
97: ; preds = %89
%98 = load i32, i32* %10
%99 = add nsw i32 %98, 1
store i32 %99, i32* %10
br label %65
100: ; preds = %65
%101 = load i8*, i8** %12
%102 = call i32 @free(i8* %101)
br label %103
103: ; preds = %100, %54, %48
store i32 0, i32* %3
br label %104
104: ; preds = %103, %43, %35, %27, %15
%105 = load i32, i32* %3
ret i32 %105
}

LLVM IR (-O2):
@.str = [20 x i8] c"usage: %s [length]\0A\00"
@.str.1 = [48 x i8] c"usage: %s [length]. Password min length is %d.\0A\00"
@.str.2 = [48 x i8] c"usage: %s [length]. Password max length is %d.\0A\00"
@.str.4 = [89 x i8] c"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!$%&/{}[]()=?+*#.:,;-_<>@~\00"
@.str.5 = [15 x i8] c"password: %s \0A\00"
@str = [41 x i8] c"choose one password from the list below:\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8*
%4 = icmp slt i32 %0, 2
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = load i8*, i8** %1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %130
8: ; preds = %2
%9 = bitcast i8** %3 to i8*
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = call i32 @strtol(i8* %11, i8** %3, i32 10)
%13 = icmp slt i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %8
%15 = load i8*, i8** %1
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %15)
br label %128
17: ; preds = %8
%18 = icmp ult i32 %12, 3
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = load i8*, i8** %1
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i8* %20, i32 3)
br label %128
22: ; preds = %17
%23 = icmp ugt i32 %12, 128
br i1 %23, label %24, label %27
24: ; preds = %22
%25 = load i8*, i8** %1
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8* %25, i32 128)
br label %128
27: ; preds = %22
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%29 = tail call i32 @time(i32* null)
%30 = tail call i32 @srand(i32 %29)
%31 = add nuw nsw i32 %12, 1
%32 = tail call i64 @malloc(i32 %31)
%33 = inttoptr i64 %32 to i8*
%34 = zext i32 %12 to i64
br label %35
35: ; preds = %27, %35
%36 = phi i64 [ 0, %27 ], [ %43, %35 ]
%37 = tail call i32 (...) @rand()
%38 = srem i32 %37, 88
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [89 x i8], [89 x i8]* @.str.4, i64 0, i64 %39
%41 = load i8, i8* %40
%42 = getelementptr inbounds i8, i8* %33, i64 %36
store i8 %41, i8* %42
%43 = add nuw nsw i64 %36, 1
%44 = icmp eq i64 %43, %34
br i1 %44, label %45, label %35
45: ; preds = %35
%46 = zext i32 %31 to i64
%47 = getelementptr inbounds i8, i8* %33, i64 %46
store i8 0, i8* %47
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%49 = zext i32 %12 to i64
br label %50
50: ; preds = %50, %45
%51 = phi i64 [ 0, %45 ], [ %58, %50 ]
%52 = tail call i32 (...) @rand()
%53 = srem i32 %52, 88
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [89 x i8], [89 x i8]* @.str.4, i64 0, i64 %54
%56 = load i8, i8* %55
%57 = getelementptr inbounds i8, i8* %33, i64 %51
store i8 %56, i8* %57
%58 = add nuw nsw i64 %51, 1
%59 = icmp eq i64 %58, %49
br i1 %59, label %60, label %50
60: ; preds = %50
store i8 0, i8* %47
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%62 = zext i32 %12 to i64
br label %63
63: ; preds = %63, %60
%64 = phi i64 [ 0, %60 ], [ %71, %63 ]
%65 = tail call i32 (...) @rand()
%66 = srem i32 %65, 88
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [89 x i8], [89 x i8]* @.str.4, i64 0, i64 %67
%69 = load i8, i8* %68
%70 = getelementptr inbounds i8, i8* %33, i64 %64
store i8 %69, i8* %70
%71 = add nuw nsw i64 %64, 1
%72 = icmp eq i64 %71, %62
br i1 %72, label %73, label %63
73: ; preds = %63
store i8 0, i8* %47
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%75 = zext i32 %12 to i64
br label %76
76: ; preds = %76, %73
%77 = phi i64 [ 0, %73 ], [ %84, %76 ]
%78 = tail call i32 (...) @rand()
%79 = srem i32 %78, 88
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [89 x i8], [89 x i8]* @.str.4, i64 0, i64 %80
%82 = load i8, i8* %81
%83 = getelementptr inbounds i8, i8* %33, i64 %77
store i8 %82, i8* %83
%84 = add nuw nsw i64 %77, 1
%85 = icmp eq i64 %84, %75
br i1 %85, label %86, label %76
86: ; preds = %76
store i8 0, i8* %47
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%88 = zext i32 %12 to i64
br label %89
89: ; preds = %89, %86
%90 = phi i64 [ 0, %86 ], [ %97, %89 ]
%91 = tail call i32 (...) @rand()
%92 = srem i32 %91, 88
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [89 x i8], [89 x i8]* @.str.4, i64 0, i64 %93
%95 = load i8, i8* %94
%96 = getelementptr inbounds i8, i8* %33, i64 %90
store i8 %95, i8* %96
%97 = add nuw nsw i64 %90, 1
%98 = icmp eq i64 %97, %88
br i1 %98, label %99, label %89
99: ; preds = %89
store i8 0, i8* %47
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%101 = zext i32 %12 to i64
br label %102
102: ; preds = %102, %99
%103 = phi i64 [ 0, %99 ], [ %110, %102 ]
%104 = tail call i32 (...) @rand()
%105 = srem i32 %104, 88
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [89 x i8], [89 x i8]* @.str.4, i64 0, i64 %106
%108 = load i8, i8* %107
%109 = getelementptr inbounds i8, i8* %33, i64 %103
store i8 %108, i8* %109
%110 = add nuw nsw i64 %103, 1
%111 = icmp eq i64 %110, %101
br i1 %111, label %112, label %102
112: ; preds = %102
store i8 0, i8* %47
%113 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%114 = zext i32 %12 to i64
br label %115
115: ; preds = %115, %112
%116 = phi i64 [ 0, %112 ], [ %123, %115 ]
%117 = tail call i32 (...) @rand()
%118 = srem i32 %117, 88
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [89 x i8], [89 x i8]* @.str.4, i64 0, i64 %119
%121 = load i8, i8* %120
%122 = getelementptr inbounds i8, i8* %33, i64 %116
store i8 %121, i8* %122
%123 = add nuw nsw i64 %116, 1
%124 = icmp eq i64 %123, %114
br i1 %124, label %125, label %115
125: ; preds = %115
store i8 0, i8* %47
%126 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %33)
%127 = tail call i32 @free(i8* %33)
br label %128
128: ; preds = %125, %24, %19, %14
%129 = phi i32 [ -2, %14 ], [ -2, %19 ], [ -2, %24 ], [ 0, %125 ]
br label %130
130: ; preds = %128, %5
%131 = phi i32 [ -1, %5 ], [ %129, %128 ]
ret i32 %131
}