#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 *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/);
char *malloc(int);
int /*<<< orphan*/ memset(char *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int rand();
int /*<<< orphan*/ stdout;
void make_up_value(void) {
  char c = (rand() % (2));
  if (c)
    putchar('"');
  switch ((rand() % (31))) {
  case 0:
    printf("javascript:");
    make_up_value();
    break;
  case 2:
    printf("mk:");
    make_up_value();
    break;
  case 3:
    printf("file:");
    make_up_value();
    break;
  case 4:
    printf("http:");
    make_up_value();
    break;
  case 5:
    printf("about:");
    make_up_value();
    break;
  case 6:
    printf("_blank");
    break;
  case 7:
    printf("_self");
    break;
  case 8:
    printf("top");
    break;
  case 9:
    printf("left");
    break;
  case 10:
    putchar('&');
    make_up_value();
    putchar(';');
    break;
  case 11:
    make_up_value();
    make_up_value();
    break;
  case 12:
  case 13:
  case 14:
  case 15:
  case 16:
  case 17:
  case 18:
  case 19:
  case 20: {
    int c = (rand() % (10)) ? (rand() % (10))
                            : (1 + (rand() % (80)) * (rand() % (80)));
    char *x = malloc(c);
    memset(x, (rand() % (256)), c);
    fwrite(x, c, 1, stdout);
    free(x);
    break;
  }
  case 21:
    printf("%s", "%n%n%n%n%n%n");
    break;
  case 22:
    putchar('#');
    break;
  case 23:
    putchar('*');
    break;
  default:
    if ((rand() % (2)))
      putchar('-');
    printf("%d", rand());
    break;
  }
  if (c)
    putchar('"');
}


x86 assembly (clang, -O0):
<make_up_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    $0x0,%al
call   10a0 <rand@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %dl,%al
mov    %al,-0x1(%rbp)
cmpb   $0x0,-0x1(%rbp)
je     11b0 <make_up_value+0x30>
mov    $0x22,%edi
call   1040 <putchar@plt>
xor    %eax,%eax
call   10a0 <rand@plt>
movslq %eax,%rcx
imul   $0xffffffff84210843,%rcx,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x4,%ecx
add    %edx,%ecx
mov    %ecx,%edx
shl    $0x5,%edx
sub    %edx,%ecx
add    %ecx,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x17,%eax
ja     13e1 <make_up_value+0x261>
mov    -0x18(%rbp),%rax
lea    0xe0c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
call   1070 <make_up_value@plt>
jmp    141a <make_up_value+0x29a>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
call   1070 <make_up_value@plt>
jmp    141a <make_up_value+0x29a>
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
call   1070 <make_up_value@plt>
jmp    141a <make_up_value+0x29a>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
call   1070 <make_up_value@plt>
jmp    141a <make_up_value+0x29a>
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
call   1070 <make_up_value@plt>
jmp    141a <make_up_value+0x29a>
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    141a <make_up_value+0x29a>
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    141a <make_up_value+0x29a>
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    141a <make_up_value+0x29a>
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    141a <make_up_value+0x29a>
mov    $0x26,%edi
call   1040 <putchar@plt>
call   1070 <make_up_value@plt>
mov    $0x3b,%edi
call   1040 <putchar@plt>
jmp    141a <make_up_value+0x29a>
call   1070 <make_up_value@plt>
call   1070 <make_up_value@plt>
jmp    141a <make_up_value+0x29a>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     131d <make_up_value+0x19d>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x1c(%rbp)
jmp    134a <make_up_value+0x1ca>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    $0x50,%ecx
cltd
idiv   %ecx
mov    %edx,-0x20(%rbp)
mov    $0x0,%al
call   10a0 <rand@plt>
mov    $0x50,%ecx
cltd
idiv   %ecx
mov    -0x20(%rbp),%eax
imul   %edx,%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1080 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   10a0 <rand@plt>
mov    -0x28(%rbp),%rdi
mov    $0x100,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
mov    -0x8(%rbp),%edx
call   1060 <memset@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    0x2c51(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edx
call   1090 <fwrite@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
jmp    141a <make_up_value+0x29a>
lea    0xce9(%rip),%rdi
lea    0xce5(%rip),%rsi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    141a <make_up_value+0x29a>
mov    $0x23,%edi
call   1040 <putchar@plt>
jmp    141a <make_up_value+0x29a>
mov    $0x2a,%edi
call   1040 <putchar@plt>
jmp    141a <make_up_value+0x29a>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1403 <make_up_value+0x283>
mov    $0x2d,%edi
call   1040 <putchar@plt>
mov    $0x0,%al
call   10a0 <rand@plt>
mov    %eax,%esi
lea    0xc96(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpb   $0x0,-0x1(%rbp)
je     142e <make_up_value+0x2ae>
mov    $0x22,%edi
call   1040 <putchar@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_up_value>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   10a0 <rand@plt>
mov    %eax,%r15d
shr    $0x1f,%eax
add    %r15d,%eax
and    $0xfe,%eax
sub    %eax,%r15d
test   %r15b,%r15b
je     11ae <make_up_value+0x2e>
mov    $0x22,%edi
call   1040 <putchar@plt>
xor    %eax,%eax
call   10a0 <rand@plt>
movslq %eax,%rcx
imul   $0xffffffff84210843,%rcx,%rax
shr    $0x20,%rax
add    %ecx,%eax
mov    %eax,%edx
shr    $0x1f,%edx
sar    $0x4,%eax
add    %edx,%eax
mov    %eax,%edx
shl    $0x5,%edx
sub    %edx,%eax
add    %ecx,%eax
cmp    $0x17,%eax
ja     138f <make_up_value+0x20f>
lea    0xe18(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   10a0 <rand@plt>
imul   $0xcccccccd,%eax,%ebx
add    $0x19999998,%ebx
ror    %ebx
xor    %eax,%eax
call   10a0 <rand@plt>
mov    %eax,%r14d
cmp    $0x19999999,%ebx
jb     1238 <make_up_value+0xb8>
movslq %r14d,%rbx
imul   $0x66666667,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%ebx
jmp    1285 <make_up_value+0x105>
movslq %r14d,%rax
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
shl    $0x4,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%r14d
xor    %eax,%eax
call   10a0 <rand@plt>
movslq %eax,%rbx
imul   $0x66666667,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
shl    $0x4,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%ebx
imul   %r14d,%ebx
add    $0x1,%ebx
mov    %ebx,%edi
call   1080 <malloc@plt>
mov    %rax,%rbp
xor    %eax,%eax
call   10a0 <rand@plt>
lea    0xff(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xffffff00,%ecx
sub    %ecx,%eax
mov    %rbp,%rdi
mov    %eax,%esi
mov    %ebx,%edx
call   1060 <memset@plt>
mov    0x2d24(%rip),%rax
mov    (%rax),%ecx
mov    %rbp,%rdi
mov    %ebx,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
test   %r15b,%r15b
je     132a <make_up_value+0x1aa>
mov    $0x22,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <putchar@plt>
lea    0xd6b(%rip),%rdi
jmp    1319 <make_up_value+0x199>
lea    0xd6e(%rip),%rdi
jmp    1319 <make_up_value+0x199>
lea    0xd69(%rip),%rdi
jmp    1319 <make_up_value+0x199>
lea    0xd66(%rip),%rdi
jmp    1319 <make_up_value+0x199>
lea    0xd63(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
call   1070 <make_up_value@plt>
test   %r15b,%r15b
jne    12da <make_up_value+0x15a>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd47(%rip),%rdi
jmp    13d0 <make_up_value+0x250>
lea    0xd42(%rip),%rdi
jmp    13d0 <make_up_value+0x250>
lea    0xd3c(%rip),%rdi
jmp    13d0 <make_up_value+0x250>
mov    $0x26,%edi
call   1040 <putchar@plt>
call   1070 <make_up_value@plt>
mov    $0x3b,%edi
jmp    137f <make_up_value+0x1ff>
call   1070 <make_up_value@plt>
jmp    1320 <make_up_value+0x1a0>
mov    $0x23,%edi
jmp    137f <make_up_value+0x1ff>
mov    $0x2a,%edi
call   1040 <putchar@plt>
test   %r15b,%r15b
jne    12da <make_up_value+0x15a>
jmp    132a <make_up_value+0x1aa>
xor    %eax,%eax
call   10a0 <rand@plt>
test   $0x1,%al
je     13a4 <make_up_value+0x224>
mov    $0x2d,%edi
call   1040 <putchar@plt>
xor    %eax,%eax
call   10a0 <rand@plt>
lea    0xcf7(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r15b,%r15b
jne    12da <make_up_value+0x15a>
jmp    132a <make_up_value+0x1aa>
lea    0xcc4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r15b,%r15b
jne    12da <make_up_value+0x15a>
jmp    132a <make_up_value+0x1aa>
lea    0xcad(%rip),%rdi
lea    0xca9(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r15b,%r15b
jne    12da <make_up_value+0x15a>
jmp    132a <make_up_value+0x1aa>

LLVM IR (-O0):
@.str = [12 x i8] c"javascript:\00"
@.str.1 = [4 x i8] c"mk:\00"
@.str.2 = [6 x i8] c"file:\00"
@.str.3 = [6 x i8] c"http:\00"
@.str.4 = [7 x i8] c"about:\00"
@.str.5 = [7 x i8] c"_blank\00"
@.str.6 = [6 x i8] c"_self\00"
@.str.7 = [4 x i8] c"top\00"
@.str.8 = [5 x i8] c"left\00"
@stdout = global i32 0
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [13 x i8] c"%n%n%n%n%n%n\00"
@.str.11 = [3 x i8] c"%d\00"
define void @make_up_value() {
%1 = alloca i8
%2 = alloca i32
%3 = alloca i8*
%4 = call i32 (...) @rand()
%5 = srem i32 %4, 2
%6 = trunc i32 %5 to i8
store i8 %6, i8* %1
%7 = load i8, i8* %1
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @putchar(i8 signext 34)
br label %11
11: ; preds = %9, %0
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 31
switch i32 %13, label %71 [
i32 0, label %14
i32 2, label %16
i32 3, label %18
i32 4, label %20
i32 5, label %22
i32 6, label %24
i32 7, label %26
i32 8, label %28
i32 9, label %30
i32 10, label %32
i32 11, label %35
i32 12, label %36
i32 13, label %36
i32 14, label %36
i32 15, label %36
i32 16, label %36
i32 17, label %36
i32 18, label %36
i32 19, label %36
i32 20, label %36
i32 21, label %65
i32 22, label %67
i32 23, label %69
]
14: ; preds = %11
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %80
16: ; preds = %11
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %80
18: ; preds = %11
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %80
20: ; preds = %11
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %80
22: ; preds = %11
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %80
24: ; preds = %11
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %80
26: ; preds = %11
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %80
28: ; preds = %11
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %80
30: ; preds = %11
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %80
32: ; preds = %11
%33 = call i32 @putchar(i8 signext 38)
%34 = call i32 @putchar(i8 signext 59)
br label %80
35: ; preds = %11
br label %80
36: ; preds = %11, %11, %11, %11, %11, %11, %11, %11, %11
%37 = call i32 (...) @rand()
%38 = srem i32 %37, 10
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = call i32 (...) @rand()
%42 = srem i32 %41, 10
br label %50
43: ; preds = %36
%44 = call i32 (...) @rand()
%45 = srem i32 %44, 80
%46 = call i32 (...) @rand()
%47 = srem i32 %46, 80
%48 = mul nsw i32 %45, %47
%49 = add nsw i32 1, %48
br label %50
50: ; preds = %43, %40
%51 = phi i32 [ %42, %40 ], [ %49, %43 ]
store i32 %51, i32* %2
%52 = load i32, i32* %2
%53 = call i8* @malloc(i32 %52)
store i8* %53, i8** %3
%54 = load i8*, i8** %3
%55 = call i32 (...) @rand()
%56 = srem i32 %55, 256
%57 = load i32, i32* %2
%58 = call i32 @memset(i8* %54, i32 %56, i32 %57)
%59 = load i8*, i8** %3
%60 = load i32, i32* %2
%61 = load i32, i32* @stdout
%62 = call i32 @fwrite(i8* %59, i32 %60, i32 1, i32 %61)
%63 = load i8*, i8** %3
%64 = call i32 @free(i8* %63)
br label %80
65: ; preds = %11
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
br label %80
67: ; preds = %11
%68 = call i32 @putchar(i8 signext 35)
br label %80
69: ; preds = %11
%70 = call i32 @putchar(i8 signext 42)
br label %80
71: ; preds = %11
%72 = call i32 (...) @rand()
%73 = srem i32 %72, 2
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %71
%76 = call i32 @putchar(i8 signext 45)
br label %77
77: ; preds = %75, %71
%78 = call i32 (...) @rand()
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %78)
br label %80
80: ; preds = %77, %69, %67, %65, %50, %35, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14
%81 = load i8, i8* %1
%82 = icmp ne i8 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 @putchar(i8 signext 34)
br label %85
85: ; preds = %83, %80
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"javascript:\00"
@.str.1 = [4 x i8] c"mk:\00"
@.str.2 = [6 x i8] c"file:\00"
@.str.3 = [6 x i8] c"http:\00"
@.str.4 = [7 x i8] c"about:\00"
@.str.5 = [7 x i8] c"_blank\00"
@.str.6 = [6 x i8] c"_self\00"
@.str.7 = [4 x i8] c"top\00"
@.str.8 = [5 x i8] c"left\00"
@stdout = global i32 0
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [13 x i8] c"%n%n%n%n%n%n\00"
@.str.11 = [3 x i8] c"%d\00"
define void @make_up_value() {
%1 = tail call i32 (...) @rand()
%2 = srem i32 %1, 2
%3 = trunc i32 %2 to i8
%4 = icmp eq i8 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = tail call i32 @putchar(i8 signext 34)
br label %7
7: ; preds = %5, %0
%8 = tail call i32 (...) @rand()
%9 = srem i32 %8, 31
switch i32 %9, label %60 [
i32 0, label %10
i32 2, label %12
i32 3, label %14
i32 4, label %16
i32 5, label %18
i32 6, label %20
i32 7, label %22
i32 8, label %24
i32 9, label %26
i32 10, label %28
i32 11, label %31
i32 12, label %32
i32 13, label %32
i32 14, label %32
i32 15, label %32
i32 16, label %32
i32 17, label %32
i32 18, label %32
i32 19, label %32
i32 20, label %32
i32 21, label %54
i32 22, label %56
i32 23, label %58
]
10: ; preds = %7
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
tail call void @make_up_value()
br label %69
12: ; preds = %7
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
tail call void @make_up_value()
br label %69
14: ; preds = %7
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
tail call void @make_up_value()
br label %69
16: ; preds = %7
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
tail call void @make_up_value()
br label %69
18: ; preds = %7
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
tail call void @make_up_value()
br label %69
20: ; preds = %7
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %69
22: ; preds = %7
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %69
24: ; preds = %7
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %69
26: ; preds = %7
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %69
28: ; preds = %7
%29 = tail call i32 @putchar(i8 signext 38)
tail call void @make_up_value()
%30 = tail call i32 @putchar(i8 signext 59)
br label %69
31: ; preds = %7
tail call void @make_up_value()
tail call void @make_up_value()
br label %69
32: ; preds = %7, %7, %7, %7, %7, %7, %7, %7, %7
%33 = tail call i32 (...) @rand()
%34 = srem i32 %33, 10
%35 = icmp eq i32 %34, 0
%36 = tail call i32 (...) @rand()
br i1 %35, label %39, label %37
37: ; preds = %32
%38 = srem i32 %36, 10
br label %45
39: ; preds = %32
%40 = srem i32 %36, 80
%41 = tail call i32 (...) @rand()
%42 = srem i32 %41, 80
%43 = mul nsw i32 %42, %40
%44 = add nsw i32 %43, 1
br label %45
45: ; preds = %39, %37
%46 = phi i32 [ %38, %37 ], [ %44, %39 ]
%47 = tail call i8* @malloc(i32 %46)
%48 = tail call i32 (...) @rand()
%49 = srem i32 %48, 256
%50 = tail call i32 @memset(i8* %47, i32 %49, i32 %46)
%51 = load i32, i32* @stdout
%52 = tail call i32 @fwrite(i8* %47, i32 %46, i32 1, i32 %51)
%53 = tail call i32 @free(i8* %47)
br label %69
54: ; preds = %7
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
br label %69
56: ; preds = %7
%57 = tail call i32 @putchar(i8 signext 35)
br label %69
58: ; preds = %7
%59 = tail call i32 @putchar(i8 signext 42)
br label %69
60: ; preds = %7
%61 = tail call i32 (...) @rand()
%62 = and i32 %61, 1
%63 = icmp eq i32 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %60
%65 = tail call i32 @putchar(i8 signext 45)
br label %66
66: ; preds = %64, %60
%67 = tail call i32 (...) @rand()
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %67)
br label %69
69: ; preds = %66, %58, %56, %54, %45, %31, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10
br i1 %4, label %72, label %70
70: ; preds = %69
%71 = tail call i32 @putchar(i8 signext 34)
br label %72
72: ; preds = %70, %69
ret void
}