#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 */
double *calloc(int, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ simple_rand_i();
double simple_rand_x();
int /*<<< orphan*/ simple_tic(double *);
double simple_toc(double *);
int /*<<< orphan*/ stderr;
int main(void) {
  double *x;
  double tic[2], t;
  int i;
  fprintf(stderr, "simple_demo:\n");
  double n = ((double)10000000) / 1e6;
  x = calloc(10000000, sizeof(double));
  if (x == NULL) {
    fprintf(stderr, "simple_demo: out of memory\n");
    exit(1);
  }
  simple_tic(tic);
  for (i = 0; i < 10000000 / 10; i++) {
    double tic2[2];
    simple_tic(tic2);
  }
  t = simple_toc(tic);
  printf("time to call simple_tic %g million times: %g\n", n / 10, t);
  simple_tic(tic);
  for (i = 0; i < 10000000; i++) {
    x[i] = simple_rand_x();
  }
  t = simple_toc(tic);
  printf("time to generate %g million random numbers: %g\n", n, t);
  fprintf(stderr, "time to generate %g million random numbers: %g\n\n", n, t);
  printf("first 10 random numbers:\n");
  for (i = 0; i < 10; i++) {
    printf("%12.6f\n", x[i]);
  }
  double t1;
  simple_tic(tic);
  for (i = 0; i < 10000000; i++) {
    simple_rand_i();
  }
  t1 = simple_toc(tic);
  printf("time to generate %g million random uint64: %g\n", n, t1);
  fprintf(stderr, "time to generate %g million random uint64: %g\n\n", n, t1);
  free(x);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e3a(%rip),%rax
mov    (%rax),%edi
lea    0xe59(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movsd  0xe42(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    $0x989680,%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1202 <main+0x72>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
lea    0xe25(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
lea    -0x20(%rbp),%rdi
call   1090 <simple_tic@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0xf4240,-0x2c(%rbp)
jge    1236 <main+0xa6>
lea    -0x50(%rbp),%rdi
call   1090 <simple_tic@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1212 <main+0x82>
lea    -0x20(%rbp),%rdi
call   1080 <simple_toc@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xdaf(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x28(%rbp),%xmm1
lea    0xdd1(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1090 <simple_tic@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x989680,-0x2c(%rbp)
jge    12a7 <main+0x117>
mov    $0x0,%al
call   10a0 <simple_rand_x@plt>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1278 <main+0xe8>
lea    -0x20(%rbp),%rdi
call   1080 <simple_toc@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
lea    0xd9a(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
movsd  -0x38(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
lea    0xda9(%rip),%rsi
mov    $0x2,%al
call   1070 <fprintf@plt>
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0xa,-0x2c(%rbp)
jge    1336 <main+0x1a6>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xdba(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1303 <main+0x173>
lea    -0x20(%rbp),%rdi
call   1090 <simple_tic@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x989680,-0x2c(%rbp)
jge    1368 <main+0x1d8>
mov    $0x0,%al
call   1040 <simple_rand_i@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1346 <main+0x1b6>
lea    -0x20(%rbp),%rdi
call   1080 <simple_toc@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
lea    0xd5c(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
mov    0x2c4b(%rip),%rax
mov    (%rax),%edi
movsd  -0x38(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
lea    0xd6a(%rip),%rsi
mov    $0x2,%al
call   1070 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    0x2e2b(%rip),%r13
mov    0x0(%r13),%edi
lea    0xe50(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x989680,%edi
mov    $0x8,%esi
call   1070 <calloc@plt>
test   %rax,%rax
je     13de <main+0x23e>
mov    %rax,%r12
lea    0x10(%rsp),%rdi
call   10a0 <simple_tic@plt>
mov    $0xf4240,%ebp
lea    0x20(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   10a0 <simple_tic@plt>
add    $0xffffffff,%ebp
jne    1200 <main+0x60>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1090 <simple_toc@plt>
movaps %xmm0,%xmm1
lea    0xe16(%rip),%rdi
movsd  0xdd4(%rip),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
mov    %rbx,%rdi
call   10a0 <simple_tic@plt>
xor    %ebx,%ebx
nopl   (%rax)
xor    %eax,%eax
call   10b0 <simple_rand_x@plt>
movsd  %xmm0,(%r12,%rbx,8)
add    $0x1,%rbx
cmp    $0x989680,%rbx
jne    1240 <main+0xa0>
lea    0x10(%rsp),%r14
mov    %r14,%rdi
call   1090 <simple_toc@plt>
movaps %xmm0,%xmm1
movsd  %xmm0,0x8(%rsp)
lea    0xdf1(%rip),%rdi
movsd  0xd89(%rip),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
mov    0x0(%r13),%edi
lea    0xe07(%rip),%rsi
movsd  0xd6f(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mov    $0x2,%al
call   1080 <fprintf@plt>
lea    0xe83(%rip),%rdi
call   1040 <puts@plt>
movsd  (%r12),%xmm0
lea    0xe0a(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x8(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x10(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x18(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x20(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x28(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x30(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x38(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x40(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x48(%r12),%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r14,%rdi
call   10a0 <simple_tic@plt>
mov    $0x989680,%ebx
nop
xor    %eax,%eax
call   1050 <simple_rand_i@plt>
add    $0xffffffff,%ebx
jne    1370 <main+0x1d0>
lea    0x10(%rsp),%rdi
call   1090 <simple_toc@plt>
movaps %xmm0,%xmm1
movsd  %xmm0,0x8(%rsp)
lea    0xd3b(%rip),%rdi
movsd  0xc6a(%rip),%xmm0
mov    $0x2,%al
call   1060 <printf@plt>
mov    0x0(%r13),%edi
lea    0xd50(%rip),%rsi
movsd  0xc50(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mov    $0x2,%al
call   1080 <fprintf@plt>
mov    %r12,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x0(%r13),%edi
lea    0xc35(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [14 x i8] c"simple_demo:\0A\00"
@.str.1 = [28 x i8] c"simple_demo: out of memory\0A\00"
@.str.2 = [46 x i8] c"time to call simple_tic %g million times: %g\0A\00"
@.str.3 = [48 x i8] c"time to generate %g million random numbers: %g\0A\00"
@.str.4 = [49 x i8] c"time to generate %g million random numbers: %g\0A\0A\00"
@.str.5 = [26 x i8] c"first 10 random numbers:\0A\00"
@.str.6 = [8 x i8] c"%12.6f\0A\00"
@.str.7 = [47 x i8] c"time to generate %g million random uint64: %g\0A\00"
@.str.8 = [48 x i8] c"time to generate %g million random uint64: %g\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double*
%3 = alloca [2 x double]
%4 = alloca double
%5 = alloca i32
%6 = alloca double
%7 = alloca [2 x double]
%8 = alloca double
store i32 0, i32* %1
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
store double 1.000000e+01, double* %6
%11 = call double* @calloc(i32 10000000, i32 8)
store double* %11, double** %2
%12 = load double*, double** %2
%13 = icmp eq double* %12, null
br i1 %13, label %14, label %18
14: ; preds = %0
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @exit(i32 1)
unreachable
18: ; preds = %0
%19 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%20 = call i32 @simple_tic(double* %19)
store i32 0, i32* %5
br label %21
21: ; preds = %27, %18
%22 = load i32, i32* %5
%23 = icmp slt i32 %22, 1000000
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 0
%26 = call i32 @simple_tic(double* %25)
br label %27
27: ; preds = %24
%28 = load i32, i32* %5
%29 = add nsw i32 %28, 1
store i32 %29, i32* %5
br label %21
30: ; preds = %21
%31 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%32 = call double @simple_toc(double* %31)
store double %32, double* %4
%33 = load double, double* %6
%34 = fdiv double %33, 1.000000e+01
%35 = load double, double* %4
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0), double %34, double %35)
%37 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%38 = call i32 @simple_tic(double* %37)
store i32 0, i32* %5
br label %39
39: ; preds = %48, %30
%40 = load i32, i32* %5
%41 = icmp slt i32 %40, 10000000
br i1 %41, label %42, label %51
42: ; preds = %39
%43 = call double (...) @simple_rand_x()
%44 = load double*, double** %2
%45 = load i32, i32* %5
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, double* %44, i64 %46
store double %43, double* %47
br label %48
48: ; preds = %42
%49 = load i32, i32* %5
%50 = add nsw i32 %49, 1
store i32 %50, i32* %5
br label %39
51: ; preds = %39
%52 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%53 = call double @simple_toc(double* %52)
store double %53, double* %4
%54 = load double, double* %6
%55 = load double, double* %4
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), double %54, double %55)
%57 = load i32, i32* @stderr
%58 = load double, double* %6
%59 = load double, double* %4
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), double %58, double %59)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %5
br label %62
62: ; preds = %72, %51
%63 = load i32, i32* %5
%64 = icmp slt i32 %63, 10
br i1 %64, label %65, label %75
65: ; preds = %62
%66 = load double*, double** %2
%67 = load i32, i32* %5
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
%70 = load double, double* %69
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %70)
br label %72
72: ; preds = %65
%73 = load i32, i32* %5
%74 = add nsw i32 %73, 1
store i32 %74, i32* %5
br label %62
75: ; preds = %62
%76 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%77 = call i32 @simple_tic(double* %76)
store i32 0, i32* %5
br label %78
78: ; preds = %83, %75
%79 = load i32, i32* %5
%80 = icmp slt i32 %79, 10000000
br i1 %80, label %81, label %86
81: ; preds = %78
%82 = call i32 (...) @simple_rand_i()
br label %83
83: ; preds = %81
%84 = load i32, i32* %5
%85 = add nsw i32 %84, 1
store i32 %85, i32* %5
br label %78
86: ; preds = %78
%87 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
%88 = call double @simple_toc(double* %87)
store double %88, double* %8
%89 = load double, double* %6
%90 = load double, double* %8
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), double %89, double %90)
%92 = load i32, i32* @stderr
%93 = load double, double* %6
%94 = load double, double* %8
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), double %93, double %94)
%96 = load double*, double** %2
%97 = call i32 @free(double* %96)
%98 = load i32, i32* %1
ret i32 %98
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [14 x i8] c"simple_demo:\0A\00"
@.str.1 = [28 x i8] c"simple_demo: out of memory\0A\00"
@.str.2 = [46 x i8] c"time to call simple_tic %g million times: %g\0A\00"
@.str.3 = [48 x i8] c"time to generate %g million random numbers: %g\0A\00"
@.str.4 = [49 x i8] c"time to generate %g million random numbers: %g\0A\0A\00"
@.str.6 = [8 x i8] c"%12.6f\0A\00"
@.str.7 = [47 x i8] c"time to generate %g million random uint64: %g\0A\00"
@.str.8 = [48 x i8] c"time to generate %g million random uint64: %g\0A\0A\00"
@str = [25 x i8] c"first 10 random numbers:\00"
define i32 @main() {
%1 = alloca [2 x double]
%2 = alloca [2 x double]
%3 = bitcast [2 x double]* %1 to i8*
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%6 = tail call double* @calloc(i32 10000000, i32 8)
%7 = icmp eq double* %6, null
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %0
%13 = getelementptr inbounds [2 x double], [2 x double]* %1, i64 0, i64 0
%14 = call i32 @simple_tic(double* %13)
%15 = bitcast [2 x double]* %2 to i8*
%16 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 0
br label %17
17: ; preds = %12, %17
%18 = phi i32 [ 0, %12 ], [ %20, %17 ]
%19 = call i32 @simple_tic(double* %16)
%20 = add nuw nsw i32 %18, 1
%21 = icmp eq i32 %20, 1000000
br i1 %21, label %22, label %17
22: ; preds = %17
%23 = call double @simple_toc(double* %13)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0), double 1.000000e+00, double %23)
%25 = call i32 @simple_tic(double* %13)
br label %26
26: ; preds = %22, %26
%27 = phi i64 [ 0, %22 ], [ %30, %26 ]
%28 = call double (...) @simple_rand_x()
%29 = getelementptr inbounds double, double* %6, i64 %27
store double %28, double* %29
%30 = add nuw nsw i64 %27, 1
%31 = icmp eq i64 %30, 10000000
br i1 %31, label %32, label %26
32: ; preds = %26
%33 = call double @simple_toc(double* %13)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), double 1.000000e+01, double %33)
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), double 1.000000e+01, double %33)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%38 = load double, double* %6
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %38)
%40 = getelementptr inbounds double, double* %6, i64 1
%41 = load double, double* %40
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %41)
%43 = getelementptr inbounds double, double* %6, i64 2
%44 = load double, double* %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %44)
%46 = getelementptr inbounds double, double* %6, i64 3
%47 = load double, double* %46
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %47)
%49 = getelementptr inbounds double, double* %6, i64 4
%50 = load double, double* %49
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %50)
%52 = getelementptr inbounds double, double* %6, i64 5
%53 = load double, double* %52
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %53)
%55 = getelementptr inbounds double, double* %6, i64 6
%56 = load double, double* %55
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %56)
%58 = getelementptr inbounds double, double* %6, i64 7
%59 = load double, double* %58
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %59)
%61 = getelementptr inbounds double, double* %6, i64 8
%62 = load double, double* %61
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %62)
%64 = getelementptr inbounds double, double* %6, i64 9
%65 = load double, double* %64
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), double %65)
%67 = call i32 @simple_tic(double* %13)
br label %68
68: ; preds = %32, %68
%69 = phi i32 [ 0, %32 ], [ %71, %68 ]
%70 = call i32 (...) @simple_rand_i()
%71 = add nuw nsw i32 %69, 1
%72 = icmp eq i32 %71, 10000000
br i1 %72, label %73, label %68
73: ; preds = %68
%74 = call double @simple_toc(double* %13)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), double 1.000000e+01, double %74)
%76 = load i32, i32* @stderr
%77 = call i32 (i32, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), double 1.000000e+01, double %74)
%78 = call i32 @free(double* %6)
ret i32 0
}