#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_RAW;
int RAND_MAX;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
int /*<<< orphan*/ elapsed_time_hr(struct timespec, struct timespec, char *);
int /*<<< orphan*/ free(int *);
scalar_t__ malloc(unsigned int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ rand();
int /*<<< orphan*/ rapl_deinit();
int /*<<< orphan*/ rapl_end();
int /*<<< orphan*/ rapl_init();
int /*<<< orphan*/ rapl_start();
int /*<<< orphan*/ srand(int);
scalar_t__ time(int /*<<< orphan*/ *);
int int_scalar_mult(unsigned int size) {
  int i;
  int *v = (int *)malloc(size * sizeof(int));
  unsigned int a = 0;
  if (v == NULL) {
    printf("Out Of Memory: could not allocate space for the array.\n");
    return 0;
  }
  srand((int)time(NULL));
  struct timespec start, end;
  for (i = 0; i < size; i++) {
    v[i] = (int)rand() / (int)(RAND_MAX / 10);
  }
  a = (int)rand() / (int)(RAND_MAX / 10);
  rapl_init();
  rapl_start();
  clock_gettime(CLOCK_MONOTONIC_RAW, &start);
  for (i = 0; i < size; i++) {
    v[i] = a * v[i];
  }
  clock_gettime(CLOCK_MONOTONIC_RAW, &end);
  rapl_end();
  rapl_deinit();
  printf("Scalar product result: %d\n", v[0]);
  elapsed_time_hr(start, end, "Int scalar multiplication.");
  free(v);
  return 0;
}


x86 assembly (clang, -O0):
<int_scalar_mult>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x2,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1209 <int_scalar_mult+0x49>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1341 <int_scalar_mult+0x181>
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    126a <int_scalar_mult+0xaa>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    %eax,-0x2c(%rbp)
mov    0x2dab(%rip),%rax
mov    (%rax),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,%edx
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1220 <int_scalar_mult+0x60>
mov    $0x0,%al
call   10e0 <rand@plt>
mov    %eax,-0x30(%rbp)
mov    0x2d6d(%rip),%rax
mov    (%rax),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   10c0 <rapl_init@plt>
mov    $0x0,%al
call   1070 <rapl_start@plt>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
lea    -0x20(%rbp),%rsi
call   1050 <clock_gettime@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    12eb <int_scalar_mult+0x12b>
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12b7 <int_scalar_mult+0xf7>
mov    0x2cee(%rip),%rax
mov    (%rax),%edi
lea    -0x28(%rbp),%rsi
call   1050 <clock_gettime@plt>
mov    $0x0,%al
call   10b0 <rapl_end@plt>
mov    $0x0,%al
call   10d0 <rapl_deinit@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%edi
mov    -0x28(%rbp),%esi
lea    0xd27(%rip),%rdx
call   1030 <elapsed_time_hr@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<int_scalar_mult>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %edi,%r14d
lea    0x0(,%r14,4),%edi
call   10b0 <malloc@plt>
test   %rax,%rax
je     12b1 <int_scalar_mult+0xe1>
mov    %rax,%rbx
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,%edi
call   1090 <srand@plt>
mov    %r14d,%r13d
test   %r14d,%r14d
je     124d <int_scalar_mult+0x7d>
mov    0x2dd1(%rip),%r15
xor    %ebp,%ebp
nopl   0x0(%rax)
xor    %eax,%eax
call   10f0 <rand@plt>
movslq (%r15),%rcx
imul   $0x66666667,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
cltd
idiv   %ecx
mov    %eax,(%rbx,%rbp,4)
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1220 <int_scalar_mult+0x50>
xor    %eax,%eax
call   10f0 <rand@plt>
mov    0x2d8d(%rip),%rcx
movslq (%rcx),%rcx
imul   $0x66666667,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
cltd
idiv   %ecx
mov    %eax,%r15d
xor    %eax,%eax
call   10d0 <rapl_init@plt>
xor    %eax,%eax
call   1080 <rapl_start@plt>
mov    0x2d53(%rip),%r12
mov    (%r12),%edi
lea    0x10(%rsp),%rsi
call   1060 <clock_gettime@plt>
test   %r14d,%r14d
je     1413 <int_scalar_mult+0x243>
cmp    $0x8,%r14d
jae    12c2 <int_scalar_mult+0xf2>
xor    %eax,%eax
jmp    1400 <int_scalar_mult+0x230>
lea    0xd7e(%rip),%rdi
call   1050 <puts@plt>
jmp    145b <int_scalar_mult+0x28b>
mov    %r13d,%eax
and    $0xfffffff8,%eax
movd   %r15d,%xmm0
pshufd $0x0,%xmm0,%xmm0
lea    -0x8(%rax),%rcx
mov    %rcx,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
pshufd $0xf5,%xmm0,%xmm1
test   %rcx,%rcx
je     146c <int_scalar_mult+0x29c>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movdqu (%rbx,%rcx,4),%xmm3
movdqu 0x10(%rbx,%rcx,4),%xmm4
movdqu 0x20(%rbx,%rcx,4),%xmm5
movdqu 0x30(%rbx,%rcx,4),%xmm2
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm0,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pmuludq %xmm1,%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm6,%xmm3
pshufd $0xf5,%xmm4,%xmm6
pmuludq %xmm0,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pmuludq %xmm1,%xmm6
pshufd $0xe8,%xmm6,%xmm6
punpckldq %xmm6,%xmm4
movdqu %xmm3,(%rbx,%rcx,4)
movdqu %xmm4,0x10(%rbx,%rcx,4)
pshufd $0xf5,%xmm5,%xmm3
pmuludq %xmm0,%xmm5
pshufd $0xe8,%xmm5,%xmm4
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm4
pshufd $0xf5,%xmm2,%xmm3
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
movdqu %xmm4,0x20(%rbx,%rcx,4)
movdqu %xmm2,0x30(%rbx,%rcx,4)
add    $0x10,%rcx
add    $0xfffffffffffffffe,%rsi
jne    1300 <int_scalar_mult+0x130>
test   $0x1,%dl
je     13f9 <int_scalar_mult+0x229>
movdqu (%rbx,%rcx,4),%xmm2
movdqu 0x10(%rbx,%rcx,4),%xmm3
pshufd $0xf5,%xmm2,%xmm4
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm1,%xmm4
pshufd $0xe8,%xmm4,%xmm4
punpckldq %xmm4,%xmm2
pmuludq %xmm3,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pshufd $0xf5,%xmm3,%xmm3
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm1
punpckldq %xmm1,%xmm0
movdqu %xmm2,(%rbx,%rcx,4)
movdqu %xmm0,0x10(%rbx,%rcx,4)
cmp    %r13,%rax
je     1413 <int_scalar_mult+0x243>
xchg   %ax,%ax
mov    (%rbx,%rax,4),%ecx
imul   %r15d,%ecx
mov    %ecx,(%rbx,%rax,4)
add    $0x1,%rax
cmp    %rax,%r13
jne    1400 <int_scalar_mult+0x230>
mov    (%r12),%edi
lea    0x8(%rsp),%rsi
call   1060 <clock_gettime@plt>
xor    %eax,%eax
call   10c0 <rapl_end@plt>
xor    %eax,%eax
call   10e0 <rapl_deinit@plt>
mov    (%rbx),%esi
lea    0xbc8(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x10(%rsp),%edi
mov    0x8(%rsp),%esi
lea    0xbcd(%rip),%rdx
call   1030 <elapsed_time_hr@plt>
mov    %rbx,%rdi
call   1040 <free@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%dl
jne    13ad <int_scalar_mult+0x1dd>
jmp    13f9 <int_scalar_mult+0x229>

LLVM IR (-O0):
%struct.timespec = type { i32 }
@.str = [56 x i8] c"Out Of Memory: could not allocate space for the array.\0A\00"
@RAND_MAX = global i32 0
@CLOCK_MONOTONIC_RAW = global i32 0
@.str.1 = [27 x i8] c"Scalar product result: %d\0A\00"
@.str.2 = [27 x i8] c"Int scalar multiplication.\00"
define i32 @int_scalar_mult(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32
%7 = alloca %struct.timespec
%8 = alloca %struct.timespec
store i32 %0, i32* %3
%9 = load i32, i32* %3
%10 = zext i32 %9 to i64
%11 = mul i64 %10, 4
%12 = trunc i64 %11 to i32
%13 = call i64 @malloc(i32 %12)
%14 = inttoptr i64 %13 to i32*
store i32* %14, i32** %5
store i32 0, i32* %6
%15 = load i32*, i32** %5
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %19
17: ; preds = %1
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %85
19: ; preds = %1
%20 = call i64 @time(i32* null)
%21 = trunc i64 %20 to i32
%22 = call i32 @srand(i32 %21)
store i32 0, i32* %4
br label %23
23: ; preds = %37, %19
%24 = load i32, i32* %4
%25 = load i32, i32* %3
%26 = icmp ult i32 %24, %25
br i1 %26, label %27, label %40
27: ; preds = %23
%28 = call i64 (...) @rand()
%29 = trunc i64 %28 to i32
%30 = load i32, i32* @RAND_MAX
%31 = sdiv i32 %30, 10
%32 = sdiv i32 %29, %31
%33 = load i32*, i32** %5
%34 = load i32, i32* %4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, i32* %33, i64 %35
store i32 %32, i32* %36
br label %37
37: ; preds = %27
%38 = load i32, i32* %4
%39 = add nsw i32 %38, 1
store i32 %39, i32* %4
br label %23
40: ; preds = %23
%41 = call i64 (...) @rand()
%42 = trunc i64 %41 to i32
%43 = load i32, i32* @RAND_MAX
%44 = sdiv i32 %43, 10
%45 = sdiv i32 %42, %44
store i32 %45, i32* %6
%46 = call i32 (...) @rapl_init()
%47 = call i32 (...) @rapl_start()
%48 = load i32, i32* @CLOCK_MONOTONIC_RAW
%49 = call i32 @clock_gettime(i32 %48, %struct.timespec* %7)
store i32 0, i32* %4
br label %50
50: ; preds = %66, %40
%51 = load i32, i32* %4
%52 = load i32, i32* %3
%53 = icmp ult i32 %51, %52
br i1 %53, label %54, label %69
54: ; preds = %50
%55 = load i32, i32* %6
%56 = load i32*, i32** %5
%57 = load i32, i32* %4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, i32* %56, i64 %58
%60 = load i32, i32* %59
%61 = mul i32 %55, %60
%62 = load i32*, i32** %5
%63 = load i32, i32* %4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, i32* %62, i64 %64
store i32 %61, i32* %65
br label %66
66: ; preds = %54
%67 = load i32, i32* %4
%68 = add nsw i32 %67, 1
store i32 %68, i32* %4
br label %50
69: ; preds = %50
%70 = load i32, i32* @CLOCK_MONOTONIC_RAW
%71 = call i32 @clock_gettime(i32 %70, %struct.timespec* %8)
%72 = call i32 (...) @rapl_end()
%73 = call i32 (...) @rapl_deinit()
%74 = load i32*, i32** %5
%75 = getelementptr inbounds i32, i32* %74, i64 0
%76 = load i32, i32* %75
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %76)
%78 = getelementptr inbounds %struct.timespec, %struct.timespec* %7, i32 0, i32 0
%79 = load i32, i32* %78
%80 = getelementptr inbounds %struct.timespec, %struct.timespec* %8, i32 0, i32 0
%81 = load i32, i32* %80
%82 = call i32 @elapsed_time_hr(i32 %79, i32 %81, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%83 = load i32*, i32** %5
%84 = call i32 @free(i32* %83)
store i32 0, i32* %2
br label %85
85: ; preds = %69, %17
%86 = load i32, i32* %2
ret i32 %86
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@RAND_MAX = global i32 0
@CLOCK_MONOTONIC_RAW = global i32 0
@.str.1 = [27 x i8] c"Scalar product result: %d\0A\00"
@.str.2 = [27 x i8] c"Int scalar multiplication.\00"
@str = [55 x i8] c"Out Of Memory: could not allocate space for the array.\00"
define i32 @int_scalar_mult(i32 %0) {
%2 = alloca %struct.timespec
%3 = alloca %struct.timespec
%4 = shl i32 %0, 2
%5 = tail call i64 @malloc(i32 %4)
%6 = inttoptr i64 %5 to i32*
%7 = icmp eq i64 %5, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
br label %120
10: ; preds = %1
%11 = tail call i64 @time(i32* null)
%12 = trunc i64 %11 to i32
%13 = tail call i32 @srand(i32 %12)
%14 = bitcast %struct.timespec* %2 to i8*
%15 = bitcast %struct.timespec* %3 to i8*
%16 = icmp eq i32 %0, 0
br i1 %16, label %29, label %17
17: ; preds = %10
%18 = zext i32 %0 to i64
br label %19
19: ; preds = %17, %19
%20 = phi i64 [ 0, %17 ], [ %27, %19 ]
%21 = tail call i64 (...) @rand()
%22 = trunc i64 %21 to i32
%23 = load i32, i32* @RAND_MAX
%24 = sdiv i32 %23, 10
%25 = sdiv i32 %22, %24
%26 = getelementptr inbounds i32, i32* %6, i64 %20
store i32 %25, i32* %26
%27 = add nuw nsw i64 %20, 1
%28 = icmp eq i64 %27, %18
br i1 %28, label %29, label %19
29: ; preds = %19, %10
%30 = tail call i64 (...) @rand()
%31 = trunc i64 %30 to i32
%32 = load i32, i32* @RAND_MAX
%33 = sdiv i32 %32, 10
%34 = sdiv i32 %31, %33
%35 = tail call i32 (...) @rapl_init()
%36 = tail call i32 (...) @rapl_start()
%37 = load i32, i32* @CLOCK_MONOTONIC_RAW
%38 = call i32 @clock_gettime(i32 %37, %struct.timespec* %2)
br i1 %16, label %107, label %39
39: ; preds = %29
%40 = zext i32 %0 to i64
%41 = icmp ult i32 %0, 8
br i1 %41, label %98, label %42
42: ; preds = %39
%43 = and i64 %40, 4294967288
%44 = insertelement <4 x i32> poison, i32 %34, i64 0
%45 = shufflevector <4 x i32> %44, <4 x i32> poison, <4 x i32> zeroinitializer
%46 = insertelement <4 x i32> poison, i32 %34, i64 0
%47 = shufflevector <4 x i32> %46, <4 x i32> poison, <4 x i32> zeroinitializer
%48 = add nsw i64 %43, -8
%49 = lshr exact i64 %48, 3
%50 = add nuw nsw i64 %49, 1
%51 = and i64 %50, 1
%52 = icmp eq i64 %48, 0
br i1 %52, label %82, label %53
53: ; preds = %42
%54 = and i64 %50, 4611686018427387902
br label %55
55: ; preds = %55, %53
%56 = phi i64 [ 0, %53 ], [ %79, %55 ]
%57 = phi i64 [ 0, %53 ], [ %80, %55 ]
%58 = getelementptr inbounds i32, i32* %6, i64 %56
%59 = bitcast i32* %58 to <4 x i32>*
%60 = load <4 x i32>, <4 x i32>* %59
%61 = getelementptr inbounds i32, i32* %58, i64 4
%62 = bitcast i32* %61 to <4 x i32>*
%63 = load <4 x i32>, <4 x i32>* %62
%64 = mul <4 x i32> %60, %45
%65 = mul <4 x i32> %63, %47
%66 = bitcast i32* %58 to <4 x i32>*
store <4 x i32> %64, <4 x i32>* %66
%67 = bitcast i32* %61 to <4 x i32>*
store <4 x i32> %65, <4 x i32>* %67
%68 = or i64 %56, 8
%69 = getelementptr inbounds i32, i32* %6, i64 %68
%70 = bitcast i32* %69 to <4 x i32>*
%71 = load <4 x i32>, <4 x i32>* %70
%72 = getelementptr inbounds i32, i32* %69, i64 4
%73 = bitcast i32* %72 to <4 x i32>*
%74 = load <4 x i32>, <4 x i32>* %73
%75 = mul <4 x i32> %71, %45
%76 = mul <4 x i32> %74, %47
%77 = bitcast i32* %69 to <4 x i32>*
store <4 x i32> %75, <4 x i32>* %77
%78 = bitcast i32* %72 to <4 x i32>*
store <4 x i32> %76, <4 x i32>* %78
%79 = add nuw i64 %56, 16
%80 = add i64 %57, 2
%81 = icmp eq i64 %80, %54
br i1 %81, label %82, label %55
82: ; preds = %55, %42
%83 = phi i64 [ 0, %42 ], [ %79, %55 ]
%84 = icmp eq i64 %51, 0
br i1 %84, label %96, label %85
85: ; preds = %82
%86 = getelementptr inbounds i32, i32* %6, i64 %83
%87 = bitcast i32* %86 to <4 x i32>*
%88 = load <4 x i32>, <4 x i32>* %87
%89 = getelementptr inbounds i32, i32* %86, i64 4
%90 = bitcast i32* %89 to <4 x i32>*
%91 = load <4 x i32>, <4 x i32>* %90
%92 = mul <4 x i32> %88, %45
%93 = mul <4 x i32> %91, %47
%94 = bitcast i32* %86 to <4 x i32>*
store <4 x i32> %92, <4 x i32>* %94
%95 = bitcast i32* %89 to <4 x i32>*
store <4 x i32> %93, <4 x i32>* %95
br label %96
96: ; preds = %82, %85
%97 = icmp eq i64 %43, %40
br i1 %97, label %107, label %98
98: ; preds = %39, %96
%99 = phi i64 [ 0, %39 ], [ %43, %96 ]
br label %100
100: ; preds = %98, %100
%101 = phi i64 [ %105, %100 ], [ %99, %98 ]
%102 = getelementptr inbounds i32, i32* %6, i64 %101
%103 = load i32, i32* %102
%104 = mul i32 %103, %34
store i32 %104, i32* %102
%105 = add nuw nsw i64 %101, 1
%106 = icmp eq i64 %105, %40
br i1 %106, label %107, label %100
107: ; preds = %100, %96, %29
%108 = load i32, i32* @CLOCK_MONOTONIC_RAW
%109 = call i32 @clock_gettime(i32 %108, %struct.timespec* %3)
%110 = call i32 (...) @rapl_end()
%111 = call i32 (...) @rapl_deinit()
%112 = load i32, i32* %6
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %112)
%114 = getelementptr inbounds %struct.timespec, %struct.timespec* %2, i64 0, i32 0
%115 = load i32, i32* %114
%116 = getelementptr inbounds %struct.timespec, %struct.timespec* %3, i64 0, i32 0
%117 = load i32, i32* %116
%118 = call i32 @elapsed_time_hr(i32 %115, i32 %117, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%119 = call i32 @free(i32* %6)
br label %120
120: ; preds = %107, %8
ret i32 0
}