#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 timeval {
  int tv_sec;
  unsigned long tv_usec;
};

/* Variables and functions */
scalar_t__ calloc(int, int);
double ceil(double);
double floor(double);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ parallel_count(double, double, int *, int, double, double *,
                                  int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int nthreads, n, bins, i;
  struct timeval start, end;
  scanf(" %d %d %d", &nthreads, &n, &bins);
  int *bin = (int *)calloc(bins + 1, sizeof(int));
  double *vet = (double *)calloc(n, sizeof(double));
  double max, min;
  double gap;
  long unsigned duration;
  double j;
  scanf(" %lf", &vet[0]);
  max = min = vet[0];
  for (i = 1; i < n; i++) {
    scanf(" %lf", &vet[i]);
    if (max < vet[i]) {
      max = vet[i];
    }
    if (min > vet[i]) {
      min = vet[i];
    }
  }
  min = floor(min);
  max = ceil(max);
  gap = (max - min) / bins;
  gettimeofday(&start, NULL);
  parallel_count(min, max, bin, bins, gap, vet, n, nthreads);
  gettimeofday(&end, NULL);
  for (j = min; j <= max; j += gap) {
    printf("%.2lf ", j);
  }
  printf("\n");
  for (i = 0; i < bins; i++) {
    printf("%d ", bin[i]);
  }
  printf("\n");
  duration = ((end.tv_sec * 1000000 + end.tv_usec) -
              (start.tv_sec * 1000000 + start.tv_usec));
  printf("%lu\n", duration);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe7a(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
mov    $0x0,%al
call   1080 <scanf@plt>
mov    -0x10(%rbp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1060 <calloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rsi
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  %xmm0,-0x50(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    127d <main+0x10d>
mov    -0x48(%rbp),%rsi
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1080 <scanf@plt>
movsd  -0x50(%rbp),%xmm1
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1240 <main+0xd0>
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x58(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jbe    126a <main+0xfa>
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    126f <main+0xff>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e9 <main+0x79>
movsd  -0x58(%rbp),%xmm0
call   1090 <floor@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1030 <ceil@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
lea    -0x28(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
movsd  -0x58(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
mov    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%esi
movsd  -0x60(%rbp),%xmm2
mov    -0x48(%rbp),%rdx
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%r8d
call   1070 <parallel_count@plt>
lea    -0x38(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1338 <main+0x1c8>
movsd  -0x70(%rbp),%xmm0
lea    0xcf2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x60(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    12fd <main+0x18d>
lea    0xcde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1380 <main+0x210>
mov    -0x40(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    134d <main+0x1dd>
lea    0xc96(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
imul   $0xf4240,-0x38(%rbp),%eax
cltq
add    -0x30(%rbp),%rax
imul   $0xf4240,-0x28(%rbp),%ecx
movslq %ecx,%rcx
add    -0x20(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rsi
lea    0xc5f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x50,%rsp
lea    0xe6c(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
xor    %eax,%eax
call   1090 <scanf@plt>
mov    0x8(%rsp),%edi
add    $0x1,%edi
mov    $0x4,%esi
call   1070 <calloc@plt>
mov    %rax,%r15
mov    0xc(%rsp),%edi
mov    $0x8,%esi
call   1070 <calloc@plt>
mov    %rax,%r14
lea    0xe34(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
movsd  (%r14),%xmm1
cmpl   $0x2,0xc(%rsp)
jl     1259 <main+0xd9>
mov    %r14,%rbx
add    $0x8,%rbx
mov    $0x1,%r13d
lea    0xe0a(%rip),%r12
movapd %xmm1,%xmm3
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  %xmm1,0x18(%rsp)
movsd  %xmm3,0x10(%rsp)
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1090 <scanf@plt>
movsd  (%rbx),%xmm0
movapd %xmm0,%xmm2
maxsd  0x18(%rsp),%xmm2
minsd  0x10(%rsp),%xmm0
add    $0x1,%r13
movslq 0xc(%rsp),%rax
add    $0x8,%rbx
movapd %xmm2,%xmm1
movapd %xmm0,%xmm3
cmp    %rax,%r13
jl     1210 <main+0x90>
jmp    1261 <main+0xe1>
movapd %xmm1,%xmm0
movapd %xmm1,%xmm2
movsd  %xmm2,0x18(%rsp)
call   10a0 <floor@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
call   1040 <ceil@plt>
movsd  %xmm0,0x18(%rsp)
movapd %xmm0,%xmm1
subsd  0x10(%rsp),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sdl 0x8(%rsp),%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
lea    0x40(%rsp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%ecx
mov    0x24(%rsp),%r8d
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
mov    %r15,%rdi
movsd  0x28(%rsp),%xmm2
mov    %r14,%rdx
call   1080 <parallel_count@plt>
lea    0x30(%rsp),%rdi
xor    %esi,%esi
call   1060 <gettimeofday@plt>
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm0
ucomisd %xmm0,%xmm1
jb     132e <main+0x1ae>
lea    0xd14(%rip),%rbx
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,0x10(%rsp)
mov    %rbx,%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm0
addsd  0x28(%rsp),%xmm0
ucomisd %xmm0,%xmm1
jae    1300 <main+0x180>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmpl   $0x0,0x8(%rsp)
jle    136c <main+0x1ec>
lea    0xcd0(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     1350 <main+0x1d0>
mov    $0xa,%edi
call   1030 <putchar@plt>
movslq 0x30(%rsp),%rax
imul   $0xf4240,%rax,%rsi
movslq 0x40(%rsp),%rax
add    0x38(%rsp),%rsi
imul   $0xf4240,%rax,%rax
add    0x48(%rsp),%rax
sub    %rax,%rsi
lea    0xc78(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i64 }
@.str = [10 x i8] c" %d %d %d\00"
@.str.1 = [5 x i8] c" %lf\00"
@.str.2 = [7 x i8] c"%.2lf \00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [4 x i8] c"%d \00"
@.str.5 = [5 x i8] c"%lu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca %struct.timeval
%7 = alloca %struct.timeval
%8 = alloca i32*
%9 = alloca double*
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca i64
%14 = alloca double
store i32 0, i32* %1
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 1
%18 = call i64 @calloc(i32 %17, i32 4)
%19 = inttoptr i64 %18 to i32*
store i32* %19, i32** %8
%20 = load i32, i32* %3
%21 = call i64 @calloc(i32 %20, i32 8)
%22 = inttoptr i64 %21 to double*
store double* %22, double** %9
%23 = load double*, double** %9
%24 = getelementptr inbounds double, double* %23, i64 0
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %24)
%26 = load double*, double** %9
%27 = getelementptr inbounds double, double* %26, i64 0
%28 = load double, double* %27
store double %28, double* %11
store double %28, double* %10
store i32 1, i32* %5
br label %29
29: ; preds = %67, %0
%30 = load i32, i32* %5
%31 = load i32, i32* %3
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %70
33: ; preds = %29
%34 = load double*, double** %9
%35 = load i32, i32* %5
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, double* %34, i64 %36
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %37)
%39 = load double, double* %10
%40 = load double*, double** %9
%41 = load i32, i32* %5
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
%44 = load double, double* %43
%45 = fcmp olt double %39, %44
br i1 %45, label %46, label %52
46: ; preds = %33
%47 = load double*, double** %9
%48 = load i32, i32* %5
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, double* %47, i64 %49
%51 = load double, double* %50
store double %51, double* %10
br label %52
52: ; preds = %46, %33
%53 = load double, double* %11
%54 = load double*, double** %9
%55 = load i32, i32* %5
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %54, i64 %56
%58 = load double, double* %57
%59 = fcmp ogt double %53, %58
br i1 %59, label %60, label %66
60: ; preds = %52
%61 = load double*, double** %9
%62 = load i32, i32* %5
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load double, double* %64
store double %65, double* %11
br label %66
66: ; preds = %60, %52
br label %67
67: ; preds = %66
%68 = load i32, i32* %5
%69 = add nsw i32 %68, 1
store i32 %69, i32* %5
br label %29
70: ; preds = %29
%71 = load double, double* %11
%72 = call double @llvm.floor.f64(double %71)
store double %72, double* %11
%73 = load double, double* %10
%74 = call double @llvm.ceil.f64(double %73)
store double %74, double* %10
%75 = load double, double* %10
%76 = load double, double* %11
%77 = fsub double %75, %76
%78 = load i32, i32* %4
%79 = sitofp i32 %78 to double
%80 = fdiv double %77, %79
store double %80, double* %12
%81 = call i32 @gettimeofday(%struct.timeval* %6, i32* null)
%82 = load double, double* %11
%83 = load double, double* %10
%84 = load i32*, i32** %8
%85 = load i32, i32* %4
%86 = load double, double* %12
%87 = load double*, double** %9
%88 = load i32, i32* %3
%89 = load i32, i32* %2
%90 = call i32 @parallel_count(double %82, double %83, i32* %84, i32 %85, double %86, double* %87, i32 %88, i32 %89)
%91 = call i32 @gettimeofday(%struct.timeval* %7, i32* null)
%92 = load double, double* %11
store double %92, double* %14
br label %93
93: ; preds = %100, %70
%94 = load double, double* %14
%95 = load double, double* %10
%96 = fcmp ole double %94, %95
br i1 %96, label %97, label %104
97: ; preds = %93
%98 = load double, double* %14
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %98)
br label %100
100: ; preds = %97
%101 = load double, double* %12
%102 = load double, double* %14
%103 = fadd double %102, %101
store double %103, double* %14
br label %93
104: ; preds = %93
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %106
106: ; preds = %117, %104
%107 = load i32, i32* %5
%108 = load i32, i32* %4
%109 = icmp slt i32 %107, %108
br i1 %109, label %110, label %120
110: ; preds = %106
%111 = load i32*, i32** %8
%112 = load i32, i32* %5
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, i32* %111, i64 %113
%115 = load i32, i32* %114
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %115)
br label %117
117: ; preds = %110
%118 = load i32, i32* %5
%119 = add nsw i32 %118, 1
store i32 %119, i32* %5
br label %106
120: ; preds = %106
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%122 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i32 0, i32 0
%123 = load i32, i32* %122
%124 = mul nsw i32 %123, 1000000
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds %struct.timeval, %struct.timeval* %7, i32 0, i32 1
%127 = load i64, i64* %126
%128 = add i64 %125, %127
%129 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i32 0, i32 0
%130 = load i32, i32* %129
%131 = mul nsw i32 %130, 1000000
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i32 0, i32 1
%134 = load i64, i64* %133
%135 = add i64 %132, %134
%136 = sub i64 %128, %135
store i64 %136, i64* %13
%137 = load i64, i64* %13
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %137)
ret i32 0
}

LLVM IR (-O2):
%struct.timeval = type { i32, i64 }
@.str = [10 x i8] c" %d %d %d\00"
@.str.1 = [5 x i8] c" %lf\00"
@.str.2 = [7 x i8] c"%.2lf \00"
@.str.4 = [4 x i8] c"%d \00"
@.str.5 = [5 x i8] c"%lu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca %struct.timeval
%5 = alloca %struct.timeval
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast %struct.timeval* %4 to i8*
%10 = bitcast %struct.timeval* %5 to i8*
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
%14 = call i64 @calloc(i32 %13, i32 4)
%15 = inttoptr i64 %14 to i32*
%16 = load i32, i32* %2
%17 = call i64 @calloc(i32 %16, i32 8)
%18 = inttoptr i64 %17 to double*
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %18)
%20 = load double, double* %18
%21 = load i32, i32* %2
%22 = icmp sgt i32 %21, 1
br i1 %22, label %23, label %38
23: ; preds = %0, %23
%24 = phi i64 [ %34, %23 ], [ 1, %0 ]
%25 = phi double [ %31, %23 ], [ %20, %0 ]
%26 = phi double [ %33, %23 ], [ %20, %0 ]
%27 = getelementptr inbounds double, double* %18, i64 %24
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double* %27)
%29 = load double, double* %27
%30 = fcmp olt double %25, %29
%31 = select i1 %30, double %29, double %25
%32 = fcmp ogt double %26, %29
%33 = select i1 %32, double %29, double %26
%34 = add nuw nsw i64 %24, 1
%35 = load i32, i32* %2
%36 = sext i32 %35 to i64
%37 = icmp slt i64 %34, %36
br i1 %37, label %23, label %38
38: ; preds = %23, %0
%39 = phi double [ %20, %0 ], [ %33, %23 ]
%40 = phi double [ %20, %0 ], [ %31, %23 ]
%41 = call double @llvm.floor.f64(double %39)
%42 = call double @llvm.ceil.f64(double %40)
%43 = fsub double %42, %41
%44 = load i32, i32* %3
%45 = sitofp i32 %44 to double
%46 = fdiv double %43, %45
%47 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
%48 = load i32, i32* %3
%49 = load i32, i32* %2
%50 = load i32, i32* %1
%51 = call i32 @parallel_count(double %41, double %42, i32* %15, i32 %48, double %46, double* %18, i32 %49, i32 %50)
%52 = call i32 @gettimeofday(%struct.timeval* %5, i32* null)
%53 = fcmp ugt double %41, %42
br i1 %53, label %59, label %54
54: ; preds = %38, %54
%55 = phi double [ %57, %54 ], [ %41, %38 ]
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %55)
%57 = fadd double %46, %55
%58 = fcmp ugt double %57, %42
br i1 %58, label %59, label %54
59: ; preds = %54, %38
%60 = call i32 @putchar(i32 10)
%61 = load i32, i32* %3
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %72
63: ; preds = %59, %63
%64 = phi i64 [ %68, %63 ], [ 0, %59 ]
%65 = getelementptr inbounds i32, i32* %15, i64 %64
%66 = load i32, i32* %65
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %66)
%68 = add nuw nsw i64 %64, 1
%69 = load i32, i32* %3
%70 = sext i32 %69 to i64
%71 = icmp slt i64 %68, %70
br i1 %71, label %63, label %72
72: ; preds = %63, %59
%73 = call i32 @putchar(i32 10)
%74 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 0
%75 = load i32, i32* %74
%76 = mul nsw i32 %75, 1000000
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 1
%79 = load i64, i64* %78
%80 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%81 = load i32, i32* %80
%82 = mul nsw i32 %81, 1000000
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 1
%85 = load i64, i64* %84
%86 = add i64 %79, %77
%87 = add i64 %85, %83
%88 = sub i64 %86, %87
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %88)
ret i32 0
}