#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 */
struct timespec {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_MONOTONIC;
int /*<<< orphan*/ _SC_LEVEL1_DCACHE_LINESIZE;
scalar_t__ calloc(int, int);
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
int drand48();
double elapsed_time_hr(struct timespec, struct timespec, char *);
int /*<<< orphan*/ free(int *);
int getpid();
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ srand48(long);
int /*<<< orphan*/ swap(int *, int, int);
scalar_t__ sysconf(int /*<<< orphan*/);
int read_lat(unsigned int size) {
  struct timespec start, end;
  int delta = 400;
  int L = size * 1024 * 1024 / sizeof(int);
  int i = 0, ii = 0, x = 0, y = 0, c = 0;
  int pid = getpid();
  double tempTime = 0.0;
  int *array;
  int intsPerCacheLine, cacheLineSize;
  cacheLineSize = (int)sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
  srand48((long int)pid);
  intsPerCacheLine = cacheLineSize / sizeof(int);
  array = (int *)calloc(L, sizeof(int));
  for (i = 0; i < L; i = i + intsPerCacheLine) {
    array[i] = i + intsPerCacheLine;
  }
  array[L - intsPerCacheLine] = 0;
  for (i = 0; i <= (L - intsPerCacheLine); i = i + intsPerCacheLine) {
    int range = L - intsPerCacheLine - i;
    int smallr = range / intsPerCacheLine;
    c = (i + (int)(drand48() * range / intsPerCacheLine) * intsPerCacheLine);
    x = array[i];
    y = array[c];
    swap(array, i, c);
    swap(array, x, y);
  }
  int p = array[0];
  while (p != 0) {
    p = array[p];
  }
  clock_gettime(CLOCK_MONOTONIC, &start);
  p = array[0];
  while (p != 0) {
    p = array[p];
  }
  clock_gettime(CLOCK_MONOTONIC, &end);
  int hops = (L / intsPerCacheLine) - 1;
  tempTime = elapsed_time_hr(start, end, "Read latency");
  printf("Number of hops: %d\n", hops);
  printf("Latency: %f us\n", 1.0e+9 * tempTime / (double)hops);
  free(array);
  return 0;
}


x86 assembly (clang, -O0):
<read_lat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x190,-0x14(%rbp)
mov    -0x4(%rbp),%eax
shl    $0xa,%eax
shl    $0xa,%eax
mov    %eax,%eax
shr    $0x2,%rax
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    $0x0,%al
call   1060 <getpid@plt>
mov    %eax,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    0x2de0(%rip),%rax
mov    (%rax),%edi
call   10a0 <sysconf@plt>
mov    %eax,-0x48(%rbp)
movslq -0x30(%rbp),%rdi
call   1090 <srand48@plt>
movslq -0x48(%rbp),%rax
shr    $0x2,%rax
mov    %eax,-0x44(%rbp)
mov    -0x18(%rbp),%edi
mov    $0x4,%esi
call   1080 <calloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1261 <read_lat+0xc1>
mov    -0x1c(%rbp),%edx
add    -0x44(%rbp),%edx
mov    -0x40(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    1236 <read_lat+0x96>
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
sub    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movl   $0x0,(%rax,%rcx,4)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x18(%rbp),%ecx
sub    -0x44(%rbp),%ecx
cmp    %ecx,%eax
jg     130e <read_lat+0x16e>
mov    -0x18(%rbp),%eax
sub    -0x44(%rbp),%eax
sub    -0x1c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cltd
idivl  -0x44(%rbp)
mov    %eax,-0x50(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    $0x0,%al
call   10c0 <drand48@plt>
imul   -0x4c(%rbp),%eax
cltd
idivl  -0x44(%rbp)
mov    %eax,%ecx
mov    -0x5c(%rbp),%eax
imul   -0x44(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x24(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x28(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x2c(%rbp),%edx
call   10b0 <swap@plt>
mov    -0x40(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
call   10b0 <swap@plt>
mov    -0x1c(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x1c(%rbp)
jmp    127c <read_lat+0xdc>
mov    -0x40(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
je     1334 <read_lat+0x194>
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x54(%rbp)
jmp    1317 <read_lat+0x177>
mov    0x2cad(%rip),%rax
mov    (%rax),%edi
lea    -0x8(%rbp),%rsi
call   1050 <clock_gettime@plt>
mov    -0x40(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x54(%rbp)
je     136c <read_lat+0x1cc>
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x54(%rbp)
jmp    134f <read_lat+0x1af>
mov    0x2c75(%rip),%rax
mov    (%rax),%edi
lea    -0x10(%rbp),%rsi
call   1050 <clock_gettime@plt>
mov    -0x18(%rbp),%eax
cltd
idivl  -0x44(%rbp)
sub    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%esi
lea    0xc70(%rip),%rdx
call   1030 <elapsed_time_hr@plt>
movsd  %xmm0,-0x38(%rbp)
cvtsi2sdl -0x58(%rbp),%xmm0
lea    0xc67(%rip),%rdi
call   1070 <printf@plt>
movsd  0xc45(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0x58(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xc59(%rip),%rdi
call   1070 <printf@plt>
mov    -0x40(%rbp),%rdi
call   1040 <free@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_lat>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%ebx
shl    $0x12,%ebx
xor    %eax,%eax
call   1060 <getpid@plt>
mov    %eax,%r14d
mov    0x2e1c(%rip),%rax
mov    (%rax),%edi
call   10a0 <sysconf@plt>
mov    %rax,%rbp
movslq %r14d,%rdi
call   1090 <srand48@plt>
movslq %ebp,%r13
shr    $0x2,%r13
mov    %ebx,%edi
and    $0x3ffc0000,%edi
mov    $0x4,%esi
call   1080 <calloc@plt>
and    $0x3ffc0000,%ebx
je     121e <read_lat+0x7e>
movslq %r13d,%rdi
mov    %ebx,%ecx
xor    %edx,%edx
mov    %r13d,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %esi,(%rax,%rdx,4)
add    %rdi,%rdx
add    %r13d,%esi
cmp    %rcx,%rdx
jl     1210 <read_lat+0x70>
mov    %ebx,0x1c(%rsp)
mov    %ebx,%r14d
sub    %r13d,%r14d
movslq %r14d,%rcx
movl   $0x0,(%rax,%rcx,4)
test   %ecx,%ecx
mov    %rax,0x20(%rsp)
js     129a <read_lat+0xfa>
movslq %r13d,%rax
mov    %rax,(%rsp)
xor    %ebp,%ebp
mov    %rcx,0x8(%rsp)
mov    0x20(%rsp),%r15
xchg   %ax,%ax
xor    %eax,%eax
call   10c0 <drand48@plt>
mov    %eax,%ecx
imul   %r14d,%ecx
mov    %ecx,%eax
cltd
idiv   %r13d
sub    %edx,%ecx
add    %ebp,%ecx
mov    (%r15,%rbp,4),%r12d
movslq %ecx,%rdx
mov    (%r15,%rdx,4),%ebx
mov    %r15,%rdi
mov    %ebp,%esi
call   10b0 <swap@plt>
mov    %r15,%rdi
mov    %r12d,%esi
mov    %ebx,%edx
call   10b0 <swap@plt>
mov    0x8(%rsp),%rcx
add    (%rsp),%rbp
sub    %r13d,%r14d
cmp    %rcx,%rbp
jle    1250 <read_lat+0xb0>
mov    0x2d47(%rip),%rbx
mov    (%rbx),%edi
lea    0x18(%rsp),%rsi
call   1050 <clock_gettime@plt>
mov    (%rbx),%edi
lea    0x10(%rsp),%rsi
call   1050 <clock_gettime@plt>
mov    0x1c(%rsp),%eax
cltd
idiv   %r13d
mov    %eax,%ebx
add    $0xffffffff,%ebx
mov    0x18(%rsp),%edi
mov    0x10(%rsp),%esi
lea    0xd33(%rip),%rdx
call   1030 <elapsed_time_hr@plt>
movsd  %xmm0,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  %xmm0,(%rsp)
lea    0xd22(%rip),%rdi
call   1070 <printf@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xcfa(%rip),%xmm0
divsd  (%rsp),%xmm0
lea    0xd17(%rip),%rdi
call   1070 <printf@plt>
mov    0x20(%rsp),%rdi
call   1040 <free@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timespec = type { i32 }
@_SC_LEVEL1_DCACHE_LINESIZE = global i32 0
@CLOCK_MONOTONIC = global i32 0
@.str = [13 x i8] c"Read latency\00"
@.str.1 = [20 x i8] c"Number of hops: %d\0A\00"
@.str.2 = [16 x i8] c"Latency: %f us\0A\00"
define i32 @read_lat(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.timespec
%4 = alloca %struct.timespec
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca i32*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32 %0, i32* %2
store i32 400, i32* %5
%21 = load i32, i32* %2
%22 = mul i32 %21, 1024
%23 = mul i32 %22, 1024
%24 = zext i32 %23 to i64
%25 = udiv i64 %24, 4
%26 = trunc i64 %25 to i32
store i32 %26, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
%27 = call i32 (...) @getpid()
store i32 %27, i32* %12
store double 0.000000e+00, double* %13
%28 = load i32, i32* @_SC_LEVEL1_DCACHE_LINESIZE
%29 = call i64 @sysconf(i32 %28)
%30 = trunc i64 %29 to i32
store i32 %30, i32* %16
%31 = load i32, i32* %12
%32 = sext i32 %31 to i64
%33 = call i32 @srand48(i64 %32)
%34 = load i32, i32* %16
%35 = sext i32 %34 to i64
%36 = udiv i64 %35, 4
%37 = trunc i64 %36 to i32
store i32 %37, i32* %15
%38 = load i32, i32* %6
%39 = call i64 @calloc(i32 %38, i32 4)
%40 = inttoptr i64 %39 to i32*
store i32* %40, i32** %14
store i32 0, i32* %7
br label %41
41: ; preds = %53, %1
%42 = load i32, i32* %7
%43 = load i32, i32* %6
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %57
45: ; preds = %41
%46 = load i32, i32* %7
%47 = load i32, i32* %15
%48 = add nsw i32 %46, %47
%49 = load i32*, i32** %14
%50 = load i32, i32* %7
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, i32* %49, i64 %51
store i32 %48, i32* %52
br label %53
53: ; preds = %45
%54 = load i32, i32* %7
%55 = load i32, i32* %15
%56 = add nsw i32 %54, %55
store i32 %56, i32* %7
br label %41
57: ; preds = %41
%58 = load i32*, i32** %14
%59 = load i32, i32* %6
%60 = load i32, i32* %15
%61 = sub nsw i32 %59, %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, i32* %58, i64 %62
store i32 0, i32* %63
store i32 0, i32* %7
br label %64
64: ; preds = %106, %57
%65 = load i32, i32* %7
%66 = load i32, i32* %6
%67 = load i32, i32* %15
%68 = sub nsw i32 %66, %67
%69 = icmp sle i32 %65, %68
br i1 %69, label %70, label %110
70: ; preds = %64
%71 = load i32, i32* %6
%72 = load i32, i32* %15
%73 = sub nsw i32 %71, %72
%74 = load i32, i32* %7
%75 = sub nsw i32 %73, %74
store i32 %75, i32* %17
%76 = load i32, i32* %17
%77 = load i32, i32* %15
%78 = sdiv i32 %76, %77
store i32 %78, i32* %18
%79 = load i32, i32* %7
%80 = call i32 (...) @drand48()
%81 = load i32, i32* %17
%82 = mul nsw i32 %80, %81
%83 = load i32, i32* %15
%84 = sdiv i32 %82, %83
%85 = load i32, i32* %15
%86 = mul nsw i32 %84, %85
%87 = add nsw i32 %79, %86
store i32 %87, i32* %11
%88 = load i32*, i32** %14
%89 = load i32, i32* %7
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, i32* %88, i64 %90
%92 = load i32, i32* %91
store i32 %92, i32* %9
%93 = load i32*, i32** %14
%94 = load i32, i32* %11
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, i32* %93, i64 %95
%97 = load i32, i32* %96
store i32 %97, i32* %10
%98 = load i32*, i32** %14
%99 = load i32, i32* %7
%100 = load i32, i32* %11
%101 = call i32 @swap(i32* %98, i32 %99, i32 %100)
%102 = load i32*, i32** %14
%103 = load i32, i32* %9
%104 = load i32, i32* %10
%105 = call i32 @swap(i32* %102, i32 %103, i32 %104)
br label %106
106: ; preds = %70
%107 = load i32, i32* %7
%108 = load i32, i32* %15
%109 = add nsw i32 %107, %108
store i32 %109, i32* %7
br label %64
110: ; preds = %64
%111 = load i32*, i32** %14
%112 = getelementptr inbounds i32, i32* %111, i64 0
%113 = load i32, i32* %112
store i32 %113, i32* %19
br label %114
114: ; preds = %117, %110
%115 = load i32, i32* %19
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %123
117: ; preds = %114
%118 = load i32*, i32** %14
%119 = load i32, i32* %19
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i32, i32* %118, i64 %120
%122 = load i32, i32* %121
store i32 %122, i32* %19
br label %114
123: ; preds = %114
%124 = load i32, i32* @CLOCK_MONOTONIC
%125 = call i32 @clock_gettime(i32 %124, %struct.timespec* %3)
%126 = load i32*, i32** %14
%127 = getelementptr inbounds i32, i32* %126, i64 0
%128 = load i32, i32* %127
store i32 %128, i32* %19
br label %129
129: ; preds = %132, %123
%130 = load i32, i32* %19
%131 = icmp ne i32 %130, 0
br i1 %131, label %132, label %138
132: ; preds = %129
%133 = load i32*, i32** %14
%134 = load i32, i32* %19
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i32, i32* %133, i64 %135
%137 = load i32, i32* %136
store i32 %137, i32* %19
br label %129
138: ; preds = %129
%139 = load i32, i32* @CLOCK_MONOTONIC
%140 = call i32 @clock_gettime(i32 %139, %struct.timespec* %4)
%141 = load i32, i32* %6
%142 = load i32, i32* %15
%143 = sdiv i32 %141, %142
%144 = sub nsw i32 %143, 1
store i32 %144, i32* %20
%145 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i32 0, i32 0
%146 = load i32, i32* %145
%147 = getelementptr inbounds %struct.timespec, %struct.timespec* %4, i32 0, i32 0
%148 = load i32, i32* %147
%149 = call double @elapsed_time_hr(i32 %146, i32 %148, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
store double %149, double* %13
%150 = load i32, i32* %20
%151 = sitofp i32 %150 to double
%152 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), double %151)
%153 = load double, double* %13
%154 = fmul double 1.000000e+09, %153
%155 = load i32, i32* %20
%156 = sitofp i32 %155 to double
%157 = fdiv double %154, %156
%158 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), double %157)
%159 = load i32*, i32** %14
%160 = call i32 @free(i32* %159)
ret i32 0
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@_SC_LEVEL1_DCACHE_LINESIZE = global i32 0
@CLOCK_MONOTONIC = global i32 0
@.str = [13 x i8] c"Read latency\00"
@.str.1 = [20 x i8] c"Number of hops: %d\0A\00"
@.str.2 = [16 x i8] c"Latency: %f us\0A\00"
define i32 @read_lat(i32 %0) {
%2 = alloca %struct.timespec
%3 = alloca %struct.timespec
%4 = bitcast %struct.timespec* %2 to i8*
%5 = bitcast %struct.timespec* %3 to i8*
%6 = shl i32 %0, 18
%7 = and i32 %6, 1073479680
%8 = tail call i32 (...) @getpid()
%9 = load i32, i32* @_SC_LEVEL1_DCACHE_LINESIZE
%10 = tail call i64 @sysconf(i32 %9)
%11 = sext i32 %8 to i64
%12 = tail call i32 @srand48(i64 %11)
%13 = shl i64 %10, 32
%14 = ashr exact i64 %13, 32
%15 = lshr i64 %14, 2
%16 = trunc i64 %15 to i32
%17 = tail call i64 @calloc(i32 %7, i32 4)
%18 = inttoptr i64 %17 to i32*
%19 = icmp eq i32 %7, 0
br i1 %19, label %30, label %20
20: ; preds = %1
%21 = shl i64 %15, 32
%22 = ashr exact i64 %21, 32
%23 = zext i32 %7 to i64
br label %24
24: ; preds = %20, %24
%25 = phi i64 [ 0, %20 ], [ %26, %24 ]
%26 = add nsw i64 %25, %22
%27 = getelementptr inbounds i32, i32* %18, i64 %25
%28 = trunc i64 %26 to i32
store i32 %28, i32* %27
%29 = icmp slt i64 %26, %23
br i1 %29, label %24, label %30
30: ; preds = %24, %1
%31 = sub nsw i32 %7, %16
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, i32* %18, i64 %32
store i32 0, i32* %33
%34 = icmp slt i32 %31, 0
br i1 %34, label %56, label %35
35: ; preds = %30
%36 = shl i64 %15, 32
%37 = ashr exact i64 %36, 32
br label %38
38: ; preds = %35, %38
%39 = phi i64 [ 0, %35 ], [ %54, %38 ]
%40 = trunc i64 %39 to i32
%41 = sub nsw i32 %31, %40
%42 = tail call i32 (...) @drand48()
%43 = mul nsw i32 %42, %41
%44 = srem i32 %43, %16
%45 = sub i32 %43, %44
%46 = add nsw i32 %45, %40
%47 = getelementptr inbounds i32, i32* %18, i64 %39
%48 = load i32, i32* %47
%49 = sext i32 %46 to i64
%50 = getelementptr inbounds i32, i32* %18, i64 %49
%51 = load i32, i32* %50
%52 = tail call i32 @swap(i32* %18, i32 %40, i32 %46)
%53 = tail call i32 @swap(i32* %18, i32 %48, i32 %51)
%54 = add i64 %39, %37
%55 = icmp sgt i64 %54, %32
br i1 %55, label %56, label %38
56: ; preds = %38, %30
%57 = load i32, i32* @CLOCK_MONOTONIC
%58 = call i32 @clock_gettime(i32 %57, %struct.timespec* %2)
%59 = load i32, i32* @CLOCK_MONOTONIC
%60 = call i32 @clock_gettime(i32 %59, %struct.timespec* %3)
%61 = sdiv i32 %7, %16
%62 = add nsw i32 %61, -1
%63 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i64 0, i32 0
%64 = load i32, i32* %63
%65 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i64 0, i32 0
%66 = load i32, i32* %65
%67 = call double @elapsed_time_hr(i32 %64, i32 %66, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%68 = sitofp i32 %62 to double
%69 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), double %68)
%70 = fmul double %67, 1.000000e+09
%71 = fdiv double %70, %68
%72 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), double %71)
%73 = call i32 @free(i32* %18)
ret i32 0
}