#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/ *);
int gen_data() {
  char *ofn_train = "nb_data_train.txt";
  char *ofn_test = "nb_data_test.txt";
  int i, j, array_valuen[500];
  FILE *ofp_train, *ofp_test;
  if ((ofp_train = fopen(ofn_train, "w")) == NULL) {
    printf("File %s open error!\n", ofn_train);
    exit(0);
  }
  if ((ofp_test = fopen(ofn_test, "w")) == NULL) {
    fclose(ofp_train);
    printf("File %s open error!\n", ofn_test);
    exit(0);
  }
  srand((unsigned)time(NULL));
  printf("Genereting dataset!\n");
  fprintf(ofp_train, "%d %d %d\n", 1500000, 500, 20);
  for (i = 0; i < 500; i++) {
    fprintf(ofp_train, "%d ", (array_valuen[i] = (rand() % 500) + 2));
  }
  fprintf(ofp_train, "\n");
  for (i = 0; i < 1500000; i++) {
    fprintf(ofp_train, "%d ", rand() % 20);
    for (j = 0; j < 500; j++) {
      fprintf(ofp_train, "%d ", rand() % array_valuen[j]);
    }
    fprintf(ofp_train, "\n");
  }
  fprintf(ofp_test, "%d\n", 11000);
  for (i = 0; i < 11000; i++) {
    for (j = 0; j < 500; j++) {
      fprintf(ofp_test, "%d ", rand() % array_valuen[j]);
    }
    fprintf(ofp_test, "\n");
  }
  printf("Dataset genereted! Saved in file %s %s\n", ofn_train, ofn_test);
  fclose(ofp_train);
  fclose(ofp_test);
  return 0;
}


x86 assembly (clang, -O0):
<gen_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x820,%rsp
lea    0xe6e(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xe75(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe77(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x7f8(%rbp)
cmp    $0x0,%rax
jne    11db <gen_data+0x5b>
mov    -0x8(%rbp),%rsi
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rdi
lea    0xe3d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x800(%rbp)
cmp    $0x0,%rax
jne    1221 <gen_data+0xa1>
mov    -0x7f8(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x10(%rbp),%rsi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x7f8(%rbp),%rdi
lea    0xe02(%rip),%rsi
mov    $0x16e360,%edx
mov    $0x1f4,%ecx
mov    $0x14,%r8d
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1f4,-0x14(%rbp)
jge    12c6 <gen_data+0x146>
mov    -0x7f8(%rbp),%rax
mov    %rax,-0x808(%rbp)
mov    $0x0,%al
call   10a0 <rand@plt>
mov    -0x808(%rbp),%rdi
mov    $0x1f4,%ecx
cltd
idiv   %ecx
add    $0x2,%edx
movslq -0x14(%rbp),%rax
mov    %edx,-0x7f0(%rbp,%rax,4)
lea    0xda8(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    126b <gen_data+0xeb>
mov    -0x7f8(%rbp),%rdi
lea    0xd64(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x16e360,-0x14(%rbp)
jge    139c <gen_data+0x21c>
mov    -0x7f8(%rbp),%rax
mov    %rax,-0x810(%rbp)
mov    $0x0,%al
call   10a0 <rand@plt>
mov    -0x810(%rbp),%rdi
mov    $0x14,%ecx
cltd
idiv   %ecx
lea    0xd3f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x1f4,-0x18(%rbp)
jge    1379 <gen_data+0x1f9>
mov    -0x7f8(%rbp),%rax
mov    %rax,-0x818(%rbp)
mov    $0x0,%al
call   10a0 <rand@plt>
mov    -0x818(%rbp),%rdi
movslq -0x18(%rbp),%rcx
cltd
idivl  -0x7f0(%rbp,%rcx,4)
lea    0xcf5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1328 <gen_data+0x1a8>
mov    -0x7f8(%rbp),%rdi
lea    0xcb1(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e2 <gen_data+0x162>
mov    -0x800(%rbp),%rdi
lea    0xcab(%rip),%rsi
mov    $0x2af8,%edx
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2af8,-0x14(%rbp)
jge    1445 <gen_data+0x2c5>
movl   $0x0,-0x18(%rbp)
cmpl   $0x1f4,-0x18(%rbp)
jge    1422 <gen_data+0x2a2>
mov    -0x800(%rbp),%rax
mov    %rax,-0x820(%rbp)
mov    $0x0,%al
call   10a0 <rand@plt>
mov    -0x820(%rbp),%rdi
movslq -0x18(%rbp),%rcx
cltd
idivl  -0x7f0(%rbp,%rcx,4)
lea    0xc4c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13d1 <gen_data+0x251>
mov    -0x800(%rbp),%rdi
lea    0xc08(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13bd <gen_data+0x23d>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xc09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x7f8(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x800(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x820,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_data>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x7d0,%rsp
lea    0xe4a(%rip),%rdi
lea    0xe66(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     13cd <gen_data+0x22d>
mov    %rax,%r15
lea    0xe3d(%rip),%rdi
lea    0xe47(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     13dd <gen_data+0x23d>
mov    %rax,%r14
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
lea    0xe6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xe2c(%rip),%rsi
mov    %r15,%rdi
mov    $0x16e360,%edx
mov    $0x1f4,%ecx
mov    $0x14,%r8d
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xe15(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x10624dd3,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
imul   $0x1f4,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%edx
add    $0x2,%edx
mov    %edx,(%rsp,%rbp,4)
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x1,%rbp
cmp    $0x1f4,%rbp
jne    1240 <gen_data+0xa0>
mov    $0xa,%edi
mov    %r15,%rsi
call   1060 <fputc@plt>
lea    0xda8(%rip),%rbx
xor    %r12d,%r12d
nop
xor    %eax,%eax
call   10c0 <rand@plt>
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x23,%rax
add    %ecx,%eax
shl    $0x2,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   10c0 <rand@plt>
cltd
idivl  (%rsp,%rbp,4)
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x1,%rbp
cmp    $0x1f4,%rbp
jne    12e0 <gen_data+0x140>
mov    $0xa,%edi
mov    %r15,%rsi
call   1060 <fputc@plt>
add    $0x1,%r12d
cmp    $0x16e360,%r12d
jne    12a0 <gen_data+0x100>
lea    0xd1a(%rip),%rsi
mov    %r14,%rdi
mov    $0x2af8,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xd08(%rip),%rbx
xor    %r12d,%r12d
nop
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   10c0 <rand@plt>
cltd
idivl  (%rsp,%rbp,4)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x1,%rbp
cmp    $0x1f4,%rbp
jne    1350 <gen_data+0x1b0>
mov    $0xa,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
add    $0x1,%r12d
cmp    $0x2af8,%r12d
jne    1340 <gen_data+0x1a0>
lea    0xcb2(%rip),%rdi
lea    0xc63(%rip),%rsi
lea    0xc6e(%rip),%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x7d0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc51(%rip),%rdi
lea    0xc25(%rip),%rsi
jmp    13f3 <gen_data+0x253>
mov    %r15,%rdi
call   1040 <fclose@plt>
lea    0xc39(%rip),%rdi
lea    0xc1f(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"nb_data_train.txt\00"
@.str.1 = [17 x i8] c"nb_data_test.txt\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [21 x i8] c"File %s open error!\0A\00"
@.str.4 = [21 x i8] c"Genereting dataset!\0A\00"
@.str.5 = [10 x i8] c"%d %d %d\0A\00"
@.str.6 = [4 x i8] c"%d \00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [4 x i8] c"%d\0A\00"
@.str.9 = [40 x i8] c"Dataset genereted! Saved in file %s %s\0A\00"
define i32 @gen_data() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca [500 x i32]
%6 = alloca i32*
%7 = alloca i32*
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8** %2
%8 = load i8*, i8** %1
%9 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %9, i32** %6
%10 = icmp eq i32* %9, null
br i1 %10, label %11, label %15
11: ; preds = %0
%12 = load i8*, i8** %1
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %12)
%14 = call i32 @exit(i32 0)
unreachable
15: ; preds = %0
%16 = load i8*, i8** %2
%17 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %17, i32** %7
%18 = icmp eq i32* %17, null
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = load i32*, i32** %6
%21 = call i32 @fclose(i32* %20)
%22 = load i8*, i8** %2
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* %22)
%24 = call i32 @exit(i32 0)
unreachable
25: ; preds = %15
%26 = call i64 @time(i32* null)
%27 = trunc i64 %26 to i32
%28 = call i32 @srand(i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%30 = load i32*, i32** %6
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 1500000, i32 500, i32 20)
store i32 0, i32* %3
br label %32
32: ; preds = %44, %25
%33 = load i32, i32* %3
%34 = icmp slt i32 %33, 500
br i1 %34, label %35, label %47
35: ; preds = %32
%36 = load i32*, i32** %6
%37 = call i32 (...) @rand()
%38 = srem i32 %37, 500
%39 = add nsw i32 %38, 2
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [500 x i32], [500 x i32]* %5, i64 0, i64 %41
store i32 %39, i32* %42
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %39)
br label %44
44: ; preds = %35
%45 = load i32, i32* %3
%46 = add nsw i32 %45, 1
store i32 %46, i32* %3
br label %32
47: ; preds = %32
%48 = load i32*, i32** %6
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %3
br label %50
50: ; preds = %76, %47
%51 = load i32, i32* %3
%52 = icmp slt i32 %51, 1500000
br i1 %52, label %53, label %79
53: ; preds = %50
%54 = load i32*, i32** %6
%55 = call i32 (...) @rand()
%56 = srem i32 %55, 20
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %56)
store i32 0, i32* %4
br label %58
58: ; preds = %70, %53
%59 = load i32, i32* %4
%60 = icmp slt i32 %59, 500
br i1 %60, label %61, label %73
61: ; preds = %58
%62 = load i32*, i32** %6
%63 = call i32 (...) @rand()
%64 = load i32, i32* %4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [500 x i32], [500 x i32]* %5, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = srem i32 %63, %67
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %61
%71 = load i32, i32* %4
%72 = add nsw i32 %71, 1
store i32 %72, i32* %4
br label %58
73: ; preds = %58
%74 = load i32*, i32** %6
%75 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %76
76: ; preds = %73
%77 = load i32, i32* %3
%78 = add nsw i32 %77, 1
store i32 %78, i32* %3
br label %50
79: ; preds = %50
%80 = load i32*, i32** %7
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %80, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 11000)
store i32 0, i32* %3
br label %82
82: ; preds = %104, %79
%83 = load i32, i32* %3
%84 = icmp slt i32 %83, 11000
br i1 %84, label %85, label %107
85: ; preds = %82
store i32 0, i32* %4
br label %86
86: ; preds = %98, %85
%87 = load i32, i32* %4
%88 = icmp slt i32 %87, 500
br i1 %88, label %89, label %101
89: ; preds = %86
%90 = load i32*, i32** %7
%91 = call i32 (...) @rand()
%92 = load i32, i32* %4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [500 x i32], [500 x i32]* %5, i64 0, i64 %93
%95 = load i32, i32* %94
%96 = srem i32 %91, %95
%97 = call i32 (i32*, i8*, ...) @fprintf(i32* %90, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %96)
br label %98
98: ; preds = %89
%99 = load i32, i32* %4
%100 = add nsw i32 %99, 1
store i32 %100, i32* %4
br label %86
101: ; preds = %86
%102 = load i32*, i32** %7
%103 = call i32 (i32*, i8*, ...) @fprintf(i32* %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %104
104: ; preds = %101
%105 = load i32, i32* %3
%106 = add nsw i32 %105, 1
store i32 %106, i32* %3
br label %82
107: ; preds = %82
%108 = load i8*, i8** %1
%109 = load i8*, i8** %2
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* %108, i8* %109)
%111 = load i32*, i32** %6
%112 = call i32 @fclose(i32* %111)
%113 = load i32*, i32** %7
%114 = call i32 @fclose(i32* %113)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"nb_data_train.txt\00"
@.str.1 = [17 x i8] c"nb_data_test.txt\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [21 x i8] c"File %s open error!\0A\00"
@.str.5 = [10 x i8] c"%d %d %d\0A\00"
@.str.6 = [4 x i8] c"%d \00"
@.str.8 = [4 x i8] c"%d\0A\00"
@.str.9 = [40 x i8] c"Dataset genereted! Saved in file %s %s\0A\00"
@str = [20 x i8] c"Genereting dataset!\00"
define i32 @gen_data() {
%1 = alloca [500 x i32]
%2 = bitcast [500 x i32]* %1 to i8*
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 0)
unreachable
8: ; preds = %0
%9 = tail call i32* @fopen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%10 = icmp eq i32* %9, null
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = tail call i32 @fclose(i32* %3)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 @exit(i32 0)
unreachable
15: ; preds = %8
%16 = tail call i64 @time(i32* null)
%17 = trunc i64 %16 to i32
%18 = tail call i32 @srand(i32 %17)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 1500000, i32 500, i32 20)
br label %21
21: ; preds = %15, %21
%22 = phi i64 [ 0, %15 ], [ %28, %21 ]
%23 = tail call i32 (...) @rand()
%24 = srem i32 %23, 500
%25 = add nsw i32 %24, 2
%26 = getelementptr inbounds [500 x i32], [500 x i32]* %1, i64 0, i64 %22
store i32 %25, i32* %26
%27 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %25)
%28 = add nuw nsw i64 %22, 1
%29 = icmp eq i64 %28, 500
br i1 %29, label %30, label %21
30: ; preds = %21
%31 = tail call i32 @fputc(i32 10, i32* %3)
br label %32
32: ; preds = %30, %46
%33 = phi i32 [ 0, %30 ], [ %48, %46 ]
%34 = tail call i32 (...) @rand()
%35 = srem i32 %34, 20
%36 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %35)
br label %37
37: ; preds = %32, %37
%38 = phi i64 [ 0, %32 ], [ %44, %37 ]
%39 = tail call i32 (...) @rand()
%40 = getelementptr inbounds [500 x i32], [500 x i32]* %1, i64 0, i64 %38
%41 = load i32, i32* %40
%42 = srem i32 %39, %41
%43 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %42)
%44 = add nuw nsw i64 %38, 1
%45 = icmp eq i64 %44, 500
br i1 %45, label %46, label %37
46: ; preds = %37
%47 = tail call i32 @fputc(i32 10, i32* %3)
%48 = add nuw nsw i32 %33, 1
%49 = icmp eq i32 %48, 1500000
br i1 %49, label %50, label %32
50: ; preds = %46
%51 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 11000)
br label %52
52: ; preds = %50, %63
%53 = phi i32 [ 0, %50 ], [ %65, %63 ]
br label %54
54: ; preds = %52, %54
%55 = phi i64 [ 0, %52 ], [ %61, %54 ]
%56 = tail call i32 (...) @rand()
%57 = getelementptr inbounds [500 x i32], [500 x i32]* %1, i64 0, i64 %55
%58 = load i32, i32* %57
%59 = srem i32 %56, %58
%60 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %59)
%61 = add nuw nsw i64 %55, 1
%62 = icmp eq i64 %61, 500
br i1 %62, label %63, label %54
63: ; preds = %54
%64 = tail call i32 @fputc(i32 10, i32* %9)
%65 = add nuw nsw i32 %53, 1
%66 = icmp eq i32 %65, 11000
br i1 %66, label %67, label %52
67: ; preds = %63
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%69 = tail call i32 @fclose(i32* %3)
%70 = tail call i32 @fclose(i32* %9)
ret i32 0
}