#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 {
  double tv_sec;
  scalar_t__ tv_nsec;
};

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int sub_time_hr(struct timespec *, struct timespec *, struct timespec *);
void discrete_elapsed_hr(struct timespec *oh_array, struct timespec *res_array,
                         unsigned int *iter, char *title) {
  double tminus = 0;
  double tcum = 0;
  int count = 0;
  int retval = 0;
  int i = 0;
  struct timespec overhead;
  struct timespec result;
  double cum_overhead = 0;
  int overhead_status = 0;
  for (i = 0; i < 1000; i++) {
    overhead_status =
        sub_time_hr(&overhead, &oh_array[2 * i], &oh_array[2 * i + 1]);
    if (overhead_status == 1) {
      printf("Error computing overhead for %s\n", title);
    }
    cum_overhead += (overhead.tv_sec + ((double)overhead.tv_nsec / 1000000000));
  }
  double mean_oh;
  if (cum_overhead == 0) {
    mean_oh = 0;
  } else {
    mean_oh = cum_overhead / 1000;
  }
  for (i = 0; i < *iter; i++) {
    retval = sub_time_hr(&result, &res_array[2 * i], &res_array[2 * i + 1]);
    if (retval != 1) {
      tminus =
          (result.tv_sec + ((double)result.tv_nsec / 1000000000)) - mean_oh;
      tcum += tminus;
      count++;
    }
  }
  double cumulative = tcum / count;
  printf("\n--- %s\n", title);
  printf("--- Timings "
         "---------------------------------------------------------------------"
         "---\n");
  printf("|\n");
  printf("| Iterations %d   ", *iter);
  printf("Mean time(adjusted) %.9lf s   ", cumulative);
  printf("Mean overhead %.9lf s\n", mean_oh);
  printf("|\n");
  printf("---------------------------------------------------------------------"
         "---------------\n");
}


x86 assembly (clang, -O0):
<discrete_elapsed_hr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3e8,-0x3c(%rbp)
jge    1207 <discrete_elapsed_hr+0xe7>
mov    -0x8(%rbp),%rsi
mov    -0x3c(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x4,%rax
add    %rax,%rsi
mov    -0x8(%rbp),%rdx
mov    -0x3c(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cltq
shl    $0x4,%rax
add    %rax,%rdx
lea    -0x50(%rbp),%rdi
call   1040 <sub_time_hr@plt>
mov    %eax,-0x6c(%rbp)
cmpl   $0x1,-0x6c(%rbp)
jne    11d4 <discrete_elapsed_hr+0xb4>
mov    -0x20(%rbp),%rsi
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x50(%rbp),%xmm0
cvtsi2sdq -0x48(%rbp),%xmm1
movsd  0xe21(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1176 <discrete_elapsed_hr+0x56>
movsd  -0x68(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    122c <discrete_elapsed_hr+0x10c>
jp     122c <discrete_elapsed_hr+0x10c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    1242 <discrete_elapsed_hr+0x122>
movsd  -0x68(%rbp),%xmm0
movsd  0xdc7(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%eax
jae    12e7 <discrete_elapsed_hr+0x1c7>
mov    -0x10(%rbp),%rsi
mov    -0x3c(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x4,%rax
add    %rax,%rsi
mov    -0x10(%rbp),%rdx
mov    -0x3c(%rbp),%eax
shl    $0x1,%eax
add    $0x1,%eax
cltq
shl    $0x4,%rax
add    %rax,%rdx
lea    -0x60(%rbp),%rdi
call   1040 <sub_time_hr@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x1,-0x38(%rbp)
je     12d4 <discrete_elapsed_hr+0x1b4>
movsd  -0x60(%rbp),%xmm0
cvtsi2sdq -0x58(%rbp),%xmm1
movsd  0xd5e(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
subsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12d9 <discrete_elapsed_hr+0x1b9>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1249 <discrete_elapsed_hr+0x129>
movsd  -0x30(%rbp),%xmm0
cvtsi2sdl -0x34(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x80(%rbp),%xmm0
lea    0xd5e(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x78(%rbp),%xmm0
lea    0xd6a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<discrete_elapsed_hr>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rcx,0x10(%rsp)
mov    %rdx,%r15
mov    %rsi,%r13
mov    %rdi,%rbx
xorpd  %xmm2,%xmm2
mov    $0x3e8,%r14d
lea    0x28(%rsp),%r12
lea    0xeae(%rip),%rbp
jmp    119b <discrete_elapsed_hr+0x6b>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtsi2sdq 0x30(%rsp),%xmm0
divsd  0xe7e(%rip),%xmm0
addsd  0x28(%rsp),%xmm0
movsd  (%rsp),%xmm2
addsd  %xmm0,%xmm2
add    $0x20,%rbx
add    $0xffffffffffffffff,%r14
je     11c5 <discrete_elapsed_hr+0x95>
movsd  %xmm2,(%rsp)
lea    0x10(%rbx),%rdx
mov    %r12,%rdi
mov    %rbx,%rsi
call   1050 <sub_time_hr@plt>
cmp    $0x1,%eax
jne    1170 <discrete_elapsed_hr+0x40>
mov    %rbp,%rdi
mov    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1170 <discrete_elapsed_hr+0x40>
xorpd  %xmm1,%xmm1
xorpd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
ucomisd %xmm1,%xmm2
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
jne    1255 <discrete_elapsed_hr+0x125>
jp     1255 <discrete_elapsed_hr+0x125>
cmpl   $0x0,(%r15)
je     1269 <discrete_elapsed_hr+0x139>
xorpd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
xor    %ebp,%ebp
lea    0x18(%rsp),%r12
xor    %ebx,%ebx
jmp    1210 <discrete_elapsed_hr+0xe0>
xchg   %ax,%ax
add    $0x1,%rbp
mov    (%r15),%eax
add    $0x20,%r13
cmp    %rax,%rbp
jae    126b <discrete_elapsed_hr+0x13b>
lea    0x10(%r13),%rdx
mov    %r12,%rdi
mov    %r13,%rsi
call   1050 <sub_time_hr@plt>
cmp    $0x1,%eax
je     1200 <discrete_elapsed_hr+0xd0>
xorps  %xmm0,%xmm0
cvtsi2sdq 0x20(%rsp),%xmm0
divsd  0xdca(%rip),%xmm0
addsd  0x18(%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
add    $0x1,%ebx
jmp    1200 <discrete_elapsed_hr+0xd0>
divsd  0xdab(%rip),%xmm2
movsd  %xmm2,0x8(%rsp)
cmpl   $0x0,(%r15)
jne    11ea <discrete_elapsed_hr+0xba>
xor    %ebx,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
lea    0xdaa(%rip),%rdi
mov    0x10(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xde9(%rip),%rdi
call   1030 <puts@plt>
lea    0xe32(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    (%r15),%esi
lea    0xd82(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd87(%rip),%rdi
movsd  (%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd93(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xde5(%rip),%rdi
call   1030 <puts@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timespec = type { double, i64 }
@.str = [33 x i8] c"Error computing overhead for %s\0A\00"
@.str.1 = [9 x i8] c"\0A--- %s\0A\00"
@.str.2 = [86 x i8] c"--- Timings ------------------------------------------------------------------------\0A\00"
@.str.3 = [3 x i8] c"|\0A\00"
@.str.4 = [19 x i8] c"| Iterations %d \00"
@.str.5 = [31 x i8] c"Mean time(adjusted) %.9lf s \00"
@.str.6 = [23 x i8] c"Mean overhead %.9lf s\0A\00"
@.str.7 = [86 x i8] c"------------------------------------------------------------------------------------\0A\00"
define void @discrete_elapsed_hr(%struct.timespec* %0, %struct.timespec* %1, i32* %2, i8* %3) {
%5 = alloca %struct.timespec*
%6 = alloca %struct.timespec*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca %struct.timespec
%15 = alloca %struct.timespec
%16 = alloca double
%17 = alloca i32
%18 = alloca double
%19 = alloca double
store %struct.timespec* %0, %struct.timespec** %5
store %struct.timespec* %1, %struct.timespec** %6
store i32* %2, i32** %7
store i8* %3, i8** %8
store double 0.000000e+00, double* %9
store double 0.000000e+00, double* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store double 0.000000e+00, double* %16
store i32 0, i32* %17
store i32 0, i32* %13
br label %20
20: ; preds = %51, %4
%21 = load i32, i32* %13
%22 = icmp slt i32 %21, 1000
br i1 %22, label %23, label %54
23: ; preds = %20
%24 = load %struct.timespec*, %struct.timespec** %5
%25 = load i32, i32* %13
%26 = mul nsw i32 2, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds %struct.timespec, %struct.timespec* %24, i64 %27
%29 = load %struct.timespec*, %struct.timespec** %5
%30 = load i32, i32* %13
%31 = mul nsw i32 2, %30
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds %struct.timespec, %struct.timespec* %29, i64 %33
%35 = call i32 @sub_time_hr(%struct.timespec* %14, %struct.timespec* %28, %struct.timespec* %34)
store i32 %35, i32* %17
%36 = load i32, i32* %17
%37 = icmp eq i32 %36, 1
br i1 %37, label %38, label %41
38: ; preds = %23
%39 = load i8*, i8** %8
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %39)
br label %41
41: ; preds = %38, %23
%42 = getelementptr inbounds %struct.timespec, %struct.timespec* %14, i32 0, i32 0
%43 = load double, double* %42
%44 = getelementptr inbounds %struct.timespec, %struct.timespec* %14, i32 0, i32 1
%45 = load i64, i64* %44
%46 = sitofp i64 %45 to double
%47 = fdiv double %46, 1.000000e+09
%48 = fadd double %43, %47
%49 = load double, double* %16
%50 = fadd double %49, %48
store double %50, double* %16
br label %51
51: ; preds = %41
%52 = load i32, i32* %13
%53 = add nsw i32 %52, 1
store i32 %53, i32* %13
br label %20
54: ; preds = %20
%55 = load double, double* %16
%56 = fcmp oeq double %55, 0.000000e+00
br i1 %56, label %57, label %58
57: ; preds = %54
store double 0.000000e+00, double* %18
br label %61
58: ; preds = %54
%59 = load double, double* %16
%60 = fdiv double %59, 1.000000e+03
store double %60, double* %18
br label %61
61: ; preds = %58, %57
store i32 0, i32* %13
br label %62
62: ; preds = %98, %61
%63 = load i32, i32* %13
%64 = load i32*, i32** %7
%65 = load i32, i32* %64
%66 = icmp ult i32 %63, %65
br i1 %66, label %67, label %101
67: ; preds = %62
%68 = load %struct.timespec*, %struct.timespec** %6
%69 = load i32, i32* %13
%70 = mul nsw i32 2, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds %struct.timespec, %struct.timespec* %68, i64 %71
%73 = load %struct.timespec*, %struct.timespec** %6
%74 = load i32, i32* %13
%75 = mul nsw i32 2, %74
%76 = add nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds %struct.timespec, %struct.timespec* %73, i64 %77
%79 = call i32 @sub_time_hr(%struct.timespec* %15, %struct.timespec* %72, %struct.timespec* %78)
store i32 %79, i32* %12
%80 = load i32, i32* %12
%81 = icmp ne i32 %80, 1
br i1 %81, label %82, label %97
82: ; preds = %67
%83 = getelementptr inbounds %struct.timespec, %struct.timespec* %15, i32 0, i32 0
%84 = load double, double* %83
%85 = getelementptr inbounds %struct.timespec, %struct.timespec* %15, i32 0, i32 1
%86 = load i64, i64* %85
%87 = sitofp i64 %86 to double
%88 = fdiv double %87, 1.000000e+09
%89 = fadd double %84, %88
%90 = load double, double* %18
%91 = fsub double %89, %90
store double %91, double* %9
%92 = load double, double* %9
%93 = load double, double* %10
%94 = fadd double %93, %92
store double %94, double* %10
%95 = load i32, i32* %11
%96 = add nsw i32 %95, 1
store i32 %96, i32* %11
br label %97
97: ; preds = %82, %67
br label %98
98: ; preds = %97
%99 = load i32, i32* %13
%100 = add nsw i32 %99, 1
store i32 %100, i32* %13
br label %62
101: ; preds = %62
%102 = load double, double* %10
%103 = load i32, i32* %11
%104 = sitofp i32 %103 to double
%105 = fdiv double %102, %104
store double %105, double* %19
%106 = load i8*, i8** %8
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %106)
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.2, i64 0, i64 0))
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%110 = load i32*, i32** %7
%111 = load i32, i32* %110
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %111)
%113 = load double, double* %19
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), double %113)
%115 = load double, double* %18
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), double %115)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.timespec = type { double, i64 }
@.str = [33 x i8] c"Error computing overhead for %s\0A\00"
@.str.1 = [9 x i8] c"\0A--- %s\0A\00"
@.str.4 = [19 x i8] c"| Iterations %d \00"
@.str.5 = [31 x i8] c"Mean time(adjusted) %.9lf s \00"
@.str.6 = [23 x i8] c"Mean overhead %.9lf s\0A\00"
@str = [85 x i8] c"--- Timings ------------------------------------------------------------------------\00"
@str.9 = [2 x i8] c"|\00"
@str.10 = [85 x i8] c"------------------------------------------------------------------------------------\00"
define void @discrete_elapsed_hr(%struct.timespec* %0, %struct.timespec* %1, i32* nocapture %2, i8* %3) {
%5 = alloca %struct.timespec
%6 = alloca %struct.timespec
%7 = bitcast %struct.timespec* %5 to i8*
%8 = bitcast %struct.timespec* %6 to i8*
%9 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i64 0, i32 0
%10 = getelementptr inbounds %struct.timespec, %struct.timespec* %5, i64 0, i32 1
br label %11
11: ; preds = %4, %22
%12 = phi i64 [ 0, %4 ], [ %29, %22 ]
%13 = phi double [ 0.000000e+00, %4 ], [ %28, %22 ]
%14 = shl nuw nsw i64 %12, 1
%15 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 %14
%16 = or i64 %14, 1
%17 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 %16
%18 = call i32 @sub_time_hr(%struct.timespec* %5, %struct.timespec* %15, %struct.timespec* %17)
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %22
20: ; preds = %11
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %3)
br label %22
22: ; preds = %20, %11
%23 = load double, double* %9
%24 = load i64, i64* %10
%25 = sitofp i64 %24 to double
%26 = fdiv double %25, 1.000000e+09
%27 = fadd double %23, %26
%28 = fadd double %13, %27
%29 = add nuw nsw i64 %12, 1
%30 = icmp eq i64 %29, 1000
br i1 %30, label %31, label %11
31: ; preds = %22
%32 = fcmp oeq double %28, 0.000000e+00
%33 = fdiv double %28, 1.000000e+03
%34 = select i1 %32, double 0.000000e+00, double %33
%35 = load i32, i32* %2
%36 = icmp eq i32 %35, 0
br i1 %36, label %66, label %37
37: ; preds = %31
%38 = getelementptr inbounds %struct.timespec, %struct.timespec* %6, i64 0, i32 0
%39 = getelementptr inbounds %struct.timespec, %struct.timespec* %6, i64 0, i32 1
br label %40
40: ; preds = %37, %59
%41 = phi i64 [ 0, %37 ], [ %62, %59 ]
%42 = phi i32 [ 0, %37 ], [ %61, %59 ]
%43 = phi double [ 0.000000e+00, %37 ], [ %60, %59 ]
%44 = shl nuw nsw i64 %41, 1
%45 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 %44
%46 = or i64 %44, 1
%47 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 %46
%48 = call i32 @sub_time_hr(%struct.timespec* %6, %struct.timespec* %45, %struct.timespec* %47)
%49 = icmp eq i32 %48, 1
br i1 %49, label %59, label %50
50: ; preds = %40
%51 = load double, double* %38
%52 = load i64, i64* %39
%53 = sitofp i64 %52 to double
%54 = fdiv double %53, 1.000000e+09
%55 = fadd double %51, %54
%56 = fsub double %55, %34
%57 = fadd double %43, %56
%58 = add nsw i32 %42, 1
br label %59
59: ; preds = %40, %50
%60 = phi double [ %57, %50 ], [ %43, %40 ]
%61 = phi i32 [ %58, %50 ], [ %42, %40 ]
%62 = add nuw nsw i64 %41, 1
%63 = load i32, i32* %2
%64 = zext i32 %63 to i64
%65 = icmp ult i64 %62, %64
br i1 %65, label %40, label %66
66: ; preds = %59, %31
%67 = phi double [ 0.000000e+00, %31 ], [ %60, %59 ]
%68 = phi i32 [ 0, %31 ], [ %61, %59 ]
%69 = sitofp i32 %68 to double
%70 = fdiv double %67, %69
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str, i64 0, i64 0))
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.9, i64 0, i64 0))
%74 = load i32, i32* %2
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %74)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), double %70)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), double %34)
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.9, i64 0, i64 0))
%79 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str.10, i64 0, i64 0))
ret void
}