#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*/ time_t;
struct tm {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
struct tm *localtime(int /*<<< orphan*/ *);
int rand();
int /*<<< orphan*/ srand(int);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  int num, length, width, maxnum;
  FILE *fp;
  time_t timer;
  char buffer1[32], buffer2[32];
  struct tm *tm_info;
  time(&timer);
  tm_info = localtime(&timer);
  strftime(buffer1, 32, "%Y-%m-%dT%H:%M:%S%z", tm_info);
  strftime(buffer2, 32, "00_%Y%m%d_%H%M%S.txt", tm_info);
  fp = fopen(buffer2, "w");
  fprintf(fp, "####################################\n");
  fprintf(fp, "#\n");
  fprintf(fp, "# -- TEXTPATGEN GENERATED RANDOM DATA --\n");
  fprintf(fp, "#\n");
  fprintf(fp, "# -- %s --\n", buffer1);
  fprintf(fp, "#\n");
  fprintf(fp, "####################################\n");
  srand(100);
  maxnum = 32767;
  num = rand() % maxnum;
  for (length = 0; length < 16; length++) {
    for (width = 0; width < 15; width++) {
      fprintf(fp, "X-%04X ", num);
      num = rand() % maxnum;
    }
    fprintf(fp, "X-%04X\n", num);
    num = rand() % maxnum;
  }
  fprintf(fp, "# -- End of file.\n");
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x2c(%rbp),%rdi
call   1070 <time@plt>
lea    -0x2c(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x78(%rbp)
lea    -0x50(%rbp),%rdi
mov    -0x78(%rbp),%rcx
mov    $0x20,%esi
lea    0xe3d(%rip),%rdx
call   1080 <strftime@plt>
lea    -0x70(%rbp),%rdi
mov    -0x78(%rbp),%rcx
mov    $0x20,%esi
lea    0xe38(%rip),%rdx
call   1080 <strftime@plt>
lea    -0x70(%rbp),%rdi
lea    0xe3d(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xe2b(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xe3c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xe2d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xe18(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    0xe2f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdf0(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xdbb(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x64,%edi
call   1050 <srand@plt>
movl   $0x7fff,-0x20(%rbp)
mov    $0x0,%al
call   10a0 <rand@plt>
cltd
idivl  -0x20(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x10,-0x18(%rbp)
jge    131a <main+0x19a>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xf,-0x1c(%rbp)
jge    12e9 <main+0x169>
mov    -0x28(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xdc1(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   10a0 <rand@plt>
cltd
idivl  -0x20(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12ae <main+0x12e>
mov    -0x28(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xd98(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x0,%al
call   10a0 <rand@plt>
cltd
idivl  -0x20(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    129d <main+0x11d>
mov    -0x28(%rbp),%rdi
lea    0xd72(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <time@plt>
mov    %rbx,%rdi
call   1030 <localtime@plt>
mov    %rax,%rbx
lea    0xe45(%rip),%rdx
lea    0x30(%rsp),%r14
mov    %r14,%rdi
mov    $0x20,%esi
mov    %rax,%rcx
call   1080 <strftime@plt>
lea    0xe3d(%rip),%rdx
lea    0x10(%rsp),%r15
mov    %r15,%rdi
mov    $0x20,%esi
mov    %rbx,%rcx
call   1080 <strftime@plt>
lea    0xe36(%rip),%rsi
mov    %r15,%rdi
call   1090 <fopen@plt>
mov    %rax,%rbx
lea    0xe26(%rip),%r15
mov    $0x25,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rax,%rcx
call   10a0 <fwrite@plt>
lea    0xe2d(%rip),%r12
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
lea    0xe14(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
lea    0xe10(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x25,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    $0x64,%edi
call   1050 <srand@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
mov    $0x10,%ebp
lea    0xdc8(%rip),%r14
lea    0xdc9(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
cltq
imul   $0xffffffff80010003,%rax,%rdx
shr    $0x20,%rdx
add    %eax,%edx
mov    %edx,%ecx
shr    $0x1f,%ecx
sar    $0xe,%edx
add    %ecx,%edx
mov    %edx,%ecx
shl    $0xf,%ecx
sub    %ecx,%edx
add    %eax,%edx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %eax,%eax
call   10b0 <rand@plt>
add    $0xffffffff,%ebp
jne    12d0 <main+0x140>
lea    0xa57(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [20 x i8] c"%Y-%m-%dT%H:%M:%S%z\00"
@.str.1 = [21 x i8] c"00_%Y%m%d_%H%M%S.txt\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [38 x i8] c"####################################\0A\00"
@.str.4 = [3 x i8] c"#\0A\00"
@.str.5 = [42 x i8] c"# -- TEXTPATGEN GENERATED RANDOM DATA --\0A\00"
@.str.6 = [12 x i8] c"# -- %s --\0A\00"
@.str.7 = [8 x i8] c"X-%04X \00"
@.str.8 = [8 x i8] c"X-%04X\0A\00"
@.str.9 = [19 x i8] c"# -- End of file.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i32
%12 = alloca [32 x i8]
%13 = alloca [32 x i8]
%14 = alloca %struct.tm*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = call i32 @time(i32* %11)
%16 = call %struct.tm* @localtime(i32* %11)
store %struct.tm* %16, %struct.tm** %14
%17 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 0
%18 = load %struct.tm*, %struct.tm** %14
%19 = call i32 @strftime(i8* %17, i32 32, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), %struct.tm* %18)
%20 = getelementptr inbounds [32 x i8], [32 x i8]* %13, i64 0, i64 0
%21 = load %struct.tm*, %struct.tm** %14
%22 = call i32 @strftime(i8* %20, i32 32, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %21)
%23 = getelementptr inbounds [32 x i8], [32 x i8]* %13, i64 0, i64 0
%24 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %24, i32** %10
%25 = load i32*, i32** %10
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%27 = load i32*, i32** %10
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%29 = load i32*, i32** %10
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%31 = load i32*, i32** %10
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%33 = load i32*, i32** %10
%34 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 0
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %34)
%36 = load i32*, i32** %10
%37 = call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%38 = load i32*, i32** %10
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %38, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%40 = call i32 @srand(i32 100)
store i32 32767, i32* %9
%41 = call i32 (...) @rand()
%42 = load i32, i32* %9
%43 = srem i32 %41, %42
store i32 %43, i32* %6
store i32 0, i32* %7
br label %44
44: ; preds = %68, %2
%45 = load i32, i32* %7
%46 = icmp slt i32 %45, 16
br i1 %46, label %47, label %71
47: ; preds = %44
store i32 0, i32* %8
br label %48
48: ; preds = %58, %47
%49 = load i32, i32* %8
%50 = icmp slt i32 %49, 15
br i1 %50, label %51, label %61
51: ; preds = %48
%52 = load i32*, i32** %10
%53 = load i32, i32* %6
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %53)
%55 = call i32 (...) @rand()
%56 = load i32, i32* %9
%57 = srem i32 %55, %56
store i32 %57, i32* %6
br label %58
58: ; preds = %51
%59 = load i32, i32* %8
%60 = add nsw i32 %59, 1
store i32 %60, i32* %8
br label %48
61: ; preds = %48
%62 = load i32*, i32** %10
%63 = load i32, i32* %6
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %63)
%65 = call i32 (...) @rand()
%66 = load i32, i32* %9
%67 = srem i32 %65, %66
store i32 %67, i32* %6
br label %68
68: ; preds = %61
%69 = load i32, i32* %7
%70 = add nsw i32 %69, 1
store i32 %70, i32* %7
br label %44
71: ; preds = %44
%72 = load i32*, i32** %10
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%74 = load i32*, i32** %10
%75 = call i32 @fclose(i32* %74)
ret i32 0
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [20 x i8] c"%Y-%m-%dT%H:%M:%S%z\00"
@.str.1 = [21 x i8] c"00_%Y%m%d_%H%M%S.txt\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [38 x i8] c"####################################\0A\00"
@.str.4 = [3 x i8] c"#\0A\00"
@.str.5 = [42 x i8] c"# -- TEXTPATGEN GENERATED RANDOM DATA --\0A\00"
@.str.6 = [12 x i8] c"# -- %s --\0A\00"
@.str.7 = [8 x i8] c"X-%04X \00"
@.str.8 = [8 x i8] c"X-%04X\0A\00"
@.str.9 = [19 x i8] c"# -- End of file.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca [32 x i8]
%5 = alloca [32 x i8]
%6 = bitcast i32* %3 to i8*
%7 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%9 = call i32 @time(i32* %3)
%10 = call %struct.tm* @localtime(i32* %3)
%11 = call i32 @strftime(i8* %7, i32 32, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), %struct.tm* %10)
%12 = call i32 @strftime(i8* %8, i32 32, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), %struct.tm* %10)
%13 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i64 37, i64 1, i32* %13)
%15 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i64 2, i64 1, i32* %13)
%16 = call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0), i64 41, i64 1, i32* %13)
%17 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i64 2, i64 1, i32* %13)
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %7)
%19 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i64 2, i64 1, i32* %13)
%20 = call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i64 37, i64 1, i32* %13)
%21 = call i32 @srand(i32 100)
%22 = call i32 (...) @rand()
br label %23
23: ; preds = %2, %23
%24 = phi i32 [ %22, %2 ], [ %73, %23 ]
%25 = phi i32 [ 0, %2 ], [ %74, %23 ]
%26 = srem i32 %24, 32767
%27 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %26)
%28 = call i32 (...) @rand()
%29 = srem i32 %28, 32767
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %29)
%31 = call i32 (...) @rand()
%32 = srem i32 %31, 32767
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %32)
%34 = call i32 (...) @rand()
%35 = srem i32 %34, 32767
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %35)
%37 = call i32 (...) @rand()
%38 = srem i32 %37, 32767
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %38)
%40 = call i32 (...) @rand()
%41 = srem i32 %40, 32767
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %41)
%43 = call i32 (...) @rand()
%44 = srem i32 %43, 32767
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %44)
%46 = call i32 (...) @rand()
%47 = srem i32 %46, 32767
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %47)
%49 = call i32 (...) @rand()
%50 = srem i32 %49, 32767
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %50)
%52 = call i32 (...) @rand()
%53 = srem i32 %52, 32767
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %53)
%55 = call i32 (...) @rand()
%56 = srem i32 %55, 32767
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %56)
%58 = call i32 (...) @rand()
%59 = srem i32 %58, 32767
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %59)
%61 = call i32 (...) @rand()
%62 = srem i32 %61, 32767
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %62)
%64 = call i32 (...) @rand()
%65 = srem i32 %64, 32767
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %65)
%67 = call i32 (...) @rand()
%68 = srem i32 %67, 32767
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i32 %68)
%70 = call i32 (...) @rand()
%71 = srem i32 %70, 32767
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %71)
%73 = call i32 (...) @rand()
%74 = add nuw nsw i32 %25, 1
%75 = icmp eq i32 %74, 16
br i1 %75, label %76, label %23
76: ; preds = %23
%77 = call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i64 18, i64 1, i32* %13)
%78 = call i32 @fclose(i32* %13)
ret i32 0
}