#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 */
unsigned int gettime();
int /*<<< orphan*/ memcpy(char *, char *, int);
int /*<<< orphan*/ memcpy_fast(char *, char *, int);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ sleepms(int);
void random_bench(int maxsize, int times) {
  static char A[11 * 1024 * 1024 + 2];
  static char B[11 * 1024 * 1024 + 2];
  static int random_offsets[0x10000];
  static int random_sizes[0x8000];
  unsigned int i, p1, p2;
  unsigned int t1, t2;
  for (i = 0; i < 0x10000; i++) {
    random_offsets[i] = rand() % (10 * 1024 * 1024 + 1);
  }
  for (i = 0; i < 0x8000; i++) {
    random_sizes[i] = 1 + rand() % maxsize;
  }
  sleepms(100);
  t1 = gettime();
  for (p1 = 0, p2 = 0, i = 0; i < times; i++) {
    int offset1 = random_offsets[(p1++) & 0xffff];
    int offset2 = random_offsets[(p1++) & 0xffff];
    int size = random_sizes[(p2++) & 0x7fff];
    memcpy(A + offset1, B + offset2, size);
  }
  t1 = gettime() - t1;
  sleepms(100);
  t2 = gettime();
  for (p1 = 0, p2 = 0, i = 0; i < times; i++) {
    int offset1 = random_offsets[(p1++) & 0xffff];
    int offset2 = random_offsets[(p1++) & 0xffff];
    int size = random_sizes[(p2++) & 0x7fff];
    memcpy_fast(A + offset1, B + offset2, size);
  }
  t2 = gettime() - t2;
  printf("benchmark random access:\n");
  printf("memcpy_fast=%dms memcpy=%dms\n\n", (int)t2, (int)t1);
}


x86 assembly (clang, -O0):
<random_bench>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x10000,-0xc(%rbp)
jae    11ae <random_bench+0x4e>
mov    $0x0,%al
call   1080 <rand@plt>
mov    $0xa00001,%ecx
cltd
idiv   %ecx
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
lea    0x1602ee3(%rip),%rax
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1175 <random_bench+0x15>
movl   $0x0,-0xc(%rbp)
cmpl   $0x8000,-0xc(%rbp)
jae    11ed <random_bench+0x8d>
mov    $0x0,%al
call   1080 <rand@plt>
cltd
idivl  -0x4(%rbp)
add    $0x1,%edx
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
lea    0x1642ea4(%rip),%rax
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11b5 <random_bench+0x55>
mov    $0x64,%edi
call   1060 <sleepms@plt>
mov    $0x0,%al
call   1070 <gettime@plt>
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    12b7 <random_bench+0x157>
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x10(%rbp)
and    $0xffff,%eax
mov    %eax,%eax
mov    %eax,%ecx
lea    0x1602e43(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x10(%rbp)
and    $0xffff,%eax
mov    %eax,%eax
mov    %eax,%ecx
lea    0x1602e22(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
and    $0x7fff,%eax
mov    %eax,%eax
mov    %eax,%ecx
lea    0x1642e01(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x28(%rbp)
movslq -0x20(%rbp),%rax
lea    0x2dd0(%rip),%rdi
add    %rax,%rdi
movslq -0x24(%rbp),%rax
lea    0xb02dd2(%rip),%rsi
add    %rax,%rsi
mov    -0x28(%rbp),%edx
call   1050 <memcpy@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1216 <random_bench+0xb6>
mov    $0x0,%al
call   1070 <gettime@plt>
sub    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    $0x64,%edi
call   1060 <sleepms@plt>
mov    $0x0,%al
call   1070 <gettime@plt>
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    138e <random_bench+0x22e>
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x10(%rbp)
and    $0xffff,%eax
mov    %eax,%eax
mov    %eax,%ecx
lea    0x1602d6c(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x10(%rbp)
and    $0xffff,%eax
mov    %eax,%eax
mov    %eax,%ecx
lea    0x1602d4b(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
and    $0x7fff,%eax
mov    %eax,%eax
mov    %eax,%ecx
lea    0x1642d2a(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x34(%rbp)
movslq -0x2c(%rbp),%rax
lea    0x2cf9(%rip),%rdi
add    %rax,%rdi
movslq -0x30(%rbp),%rax
lea    0xb02cfb(%rip),%rsi
add    %rax,%rsi
mov    -0x34(%rbp),%edx
call   1040 <memcpy_fast@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12ed <random_bench+0x18d>
mov    $0x0,%al
call   1070 <gettime@plt>
sub    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<random_bench>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %esi,%r13d
mov    %edi,%ebp
lea    0x1602f06(%rip),%r12
xor    %ebx,%ebx
nopl   0x0(%rax)
xor    %eax,%eax
call   1090 <rand@plt>
cltq
imul   $0x666665c3,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x36,%rcx
add    %edx,%ecx
imul   $0xa00001,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,(%rbx,%r12,1)
add    $0x4,%rbx
cmp    $0x40000,%rbx
jne    1190 <random_bench+0x20>
lea    0x1642ec3(%rip),%r14
xor    %ebx,%ebx
nop
xor    %eax,%eax
call   1090 <rand@plt>
cltd
idiv   %ebp
add    $0x1,%edx
mov    %edx,(%rbx,%r14,1)
add    $0x4,%rbx
cmp    $0x20000,%rbx
jne    11d0 <random_bench+0x60>
mov    $0x64,%edi
call   1070 <sleepms@plt>
xor    %ebp,%ebp
xor    %eax,%eax
call   1080 <gettime@plt>
mov    %eax,0x14(%rsp)
mov    %r13d,%ebx
test   %r13d,%r13d
je     1266 <random_bench+0xf6>
lea    0xb02e6c(%rip),%r15
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
mov    %r14d,%eax
and    $0xfffe,%eax
movslq (%r12,%rax,4),%rdi
lea    0x2e3d(%rip),%rcx
add    %rcx,%rdi
add    $0x2,%r14d
or     $0x1,%eax
movslq (%r12,%rax,4),%rsi
add    %r15,%rsi
lea    0x1(%rbp),%ebx
and    $0x7fff,%ebp
lea    0x1642e3c(%rip),%rax
mov    (%rax,%rbp,4),%edx
call   1060 <memcpy@plt>
mov    %ebx,%ebp
cmp    %ebx,%r13d
mov    %r13d,%ebx
jne    1220 <random_bench+0xb0>
xor    %r14d,%r14d
xor    %eax,%eax
call   1080 <gettime@plt>
mov    %eax,0x10(%rsp)
mov    $0x64,%edi
call   1070 <sleepms@plt>
xor    %eax,%eax
call   1080 <gettime@plt>
mov    %eax,0xc(%rsp)
test   %ebx,%ebx
je     12e7 <random_bench+0x177>
lea    0xb02dec(%rip),%rbp
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
mov    %r15d,%eax
and    $0xfffe,%eax
movslq (%r12,%rax,4),%rdi
lea    0x2dbd(%rip),%rcx
add    %rcx,%rdi
add    $0x2,%r15d
or     $0x1,%eax
movslq (%r12,%rax,4),%rsi
add    %rbp,%rsi
lea    0x1(%r14),%ebx
and    $0x7fff,%r14d
lea    0x1642dba(%rip),%rax
mov    (%rax,%r14,4),%edx
call   1050 <memcpy_fast@plt>
mov    %ebx,%r14d
cmp    %ebx,%r13d
jne    12a0 <random_bench+0x130>
mov    0x10(%rsp),%ebp
sub    0x14(%rsp),%ebp
xor    %eax,%eax
call   1080 <gettime@plt>
mov    %eax,%ebx
sub    0xc(%rsp),%ebx
lea    0xd1c(%rip),%rdi
call   1030 <puts@plt>
lea    0xcf1(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <printf@plt>

LLVM IR (-O0):
@random_bench.A = internal global [11534338 x i8] zeroinitializer
@random_bench.B = internal global [11534338 x i8] zeroinitializer
@random_bench.random_offsets = internal global [65536 x i32] zeroinitializer
@random_bench.random_sizes = internal global [32768 x i32] zeroinitializer
@.str = [26 x i8] c"benchmark random access:\0A\00"
@.str.1 = [31 x i8] c"memcpy_fast=%dms memcpy=%dms\0A\0A\00"
define void @random_bench(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%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 i32
%14 = alloca i32
%15 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %16
16: ; preds = %25, %2
%17 = load i32, i32* %5
%18 = icmp ult i32 %17, 65536
br i1 %18, label %19, label %28
19: ; preds = %16
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 10485761
%22 = load i32, i32* %5
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %23
store i32 %21, i32* %24
br label %25
25: ; preds = %19
%26 = load i32, i32* %5
%27 = add i32 %26, 1
store i32 %27, i32* %5
br label %16
28: ; preds = %16
store i32 0, i32* %5
br label %29
29: ; preds = %40, %28
%30 = load i32, i32* %5
%31 = icmp ult i32 %30, 32768
br i1 %31, label %32, label %43
32: ; preds = %29
%33 = call i32 (...) @rand()
%34 = load i32, i32* %3
%35 = srem i32 %33, %34
%36 = add nsw i32 1, %35
%37 = load i32, i32* %5
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds [32768 x i32], [32768 x i32]* @random_bench.random_sizes, i64 0, i64 %38
store i32 %36, i32* %39
br label %40
40: ; preds = %32
%41 = load i32, i32* %5
%42 = add i32 %41, 1
store i32 %42, i32* %5
br label %29
43: ; preds = %29
%44 = call i32 @sleepms(i32 100)
%45 = call i32 (...) @gettime()
store i32 %45, i32* %8
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %5
br label %46
46: ; preds = %77, %43
%47 = load i32, i32* %5
%48 = load i32, i32* %4
%49 = icmp ult i32 %47, %48
br i1 %49, label %50, label %80
50: ; preds = %46
%51 = load i32, i32* %6
%52 = add i32 %51, 1
store i32 %52, i32* %6
%53 = and i32 %51, 65535
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %54
%56 = load i32, i32* %55
store i32 %56, i32* %10
%57 = load i32, i32* %6
%58 = add i32 %57, 1
store i32 %58, i32* %6
%59 = and i32 %57, 65535
%60 = zext i32 %59 to i64
%61 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %60
%62 = load i32, i32* %61
store i32 %62, i32* %11
%63 = load i32, i32* %7
%64 = add i32 %63, 1
store i32 %64, i32* %7
%65 = and i32 %63, 32767
%66 = zext i32 %65 to i64
%67 = getelementptr inbounds [32768 x i32], [32768 x i32]* @random_bench.random_sizes, i64 0, i64 %66
%68 = load i32, i32* %67
store i32 %68, i32* %12
%69 = load i32, i32* %10
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* getelementptr inbounds ([11534338 x i8], [11534338 x i8]* @random_bench.A, i64 0, i64 0), i64 %70
%72 = load i32, i32* %11
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, i8* getelementptr inbounds ([11534338 x i8], [11534338 x i8]* @random_bench.B, i64 0, i64 0), i64 %73
%75 = load i32, i32* %12
%76 = call i32 @memcpy(i8* %71, i8* %74, i32 %75)
br label %77
77: ; preds = %50
%78 = load i32, i32* %5
%79 = add i32 %78, 1
store i32 %79, i32* %5
br label %46
80: ; preds = %46
%81 = call i32 (...) @gettime()
%82 = load i32, i32* %8
%83 = sub i32 %81, %82
store i32 %83, i32* %8
%84 = call i32 @sleepms(i32 100)
%85 = call i32 (...) @gettime()
store i32 %85, i32* %9
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %5
br label %86
86: ; preds = %117, %80
%87 = load i32, i32* %5
%88 = load i32, i32* %4
%89 = icmp ult i32 %87, %88
br i1 %89, label %90, label %120
90: ; preds = %86
%91 = load i32, i32* %6
%92 = add i32 %91, 1
store i32 %92, i32* %6
%93 = and i32 %91, 65535
%94 = zext i32 %93 to i64
%95 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %94
%96 = load i32, i32* %95
store i32 %96, i32* %13
%97 = load i32, i32* %6
%98 = add i32 %97, 1
store i32 %98, i32* %6
%99 = and i32 %97, 65535
%100 = zext i32 %99 to i64
%101 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %100
%102 = load i32, i32* %101
store i32 %102, i32* %14
%103 = load i32, i32* %7
%104 = add i32 %103, 1
store i32 %104, i32* %7
%105 = and i32 %103, 32767
%106 = zext i32 %105 to i64
%107 = getelementptr inbounds [32768 x i32], [32768 x i32]* @random_bench.random_sizes, i64 0, i64 %106
%108 = load i32, i32* %107
store i32 %108, i32* %15
%109 = load i32, i32* %13
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* getelementptr inbounds ([11534338 x i8], [11534338 x i8]* @random_bench.A, i64 0, i64 0), i64 %110
%112 = load i32, i32* %14
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8, i8* getelementptr inbounds ([11534338 x i8], [11534338 x i8]* @random_bench.B, i64 0, i64 0), i64 %113
%115 = load i32, i32* %15
%116 = call i32 @memcpy_fast(i8* %111, i8* %114, i32 %115)
br label %117
117: ; preds = %90
%118 = load i32, i32* %5
%119 = add i32 %118, 1
store i32 %119, i32* %5
br label %86
120: ; preds = %86
%121 = call i32 (...) @gettime()
%122 = load i32, i32* %9
%123 = sub i32 %121, %122
store i32 %123, i32* %9
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%125 = load i32, i32* %9
%126 = load i32, i32* %8
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %125, i32 %126)
ret void
}

LLVM IR (-O2):
@random_bench.A = internal global [11534338 x i8] zeroinitializer
@random_bench.B = internal global [11534338 x i8] zeroinitializer
@random_bench.random_offsets = internal unnamed_addr global [65536 x i32] zeroinitializer
@random_bench.random_sizes = internal unnamed_addr global [32768 x i32] zeroinitializer
@.str.1 = [31 x i8] c"memcpy_fast=%dms memcpy=%dms\0A\0A\00"
@str = [25 x i8] c"benchmark random access:\00"
define void @random_bench(i32 %0, i32 %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i64 [ 0, %2 ], [ %8, %3 ]
%5 = tail call i32 (...) @rand()
%6 = srem i32 %5, 10485761
%7 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %4
store i32 %6, i32* %7
%8 = add nuw nsw i64 %4, 1
%9 = icmp eq i64 %8, 65536
br i1 %9, label %10, label %3
10: ; preds = %3, %10
%11 = phi i64 [ %16, %10 ], [ 0, %3 ]
%12 = tail call i32 (...) @rand()
%13 = srem i32 %12, %0
%14 = add nsw i32 %13, 1
%15 = getelementptr inbounds [32768 x i32], [32768 x i32]* @random_bench.random_sizes, i64 0, i64 %11
store i32 %14, i32* %15
%16 = add nuw nsw i64 %11, 1
%17 = icmp eq i64 %16, 32768
br i1 %17, label %18, label %10
18: ; preds = %10
%19 = tail call i32 @sleepms(i32 100)
%20 = tail call i32 (...) @gettime()
%21 = icmp eq i32 %1, 0
br i1 %21, label %45, label %22
22: ; preds = %18, %22
%23 = phi i32 [ %34, %22 ], [ 0, %18 ]
%24 = phi i32 [ %29, %22 ], [ 0, %18 ]
%25 = and i32 %24, 65534
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %26
%28 = load i32, i32* %27
%29 = add i32 %24, 2
%30 = or i32 %25, 1
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %31
%33 = load i32, i32* %32
%34 = add nuw i32 %23, 1
%35 = and i32 %23, 32767
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds [32768 x i32], [32768 x i32]* @random_bench.random_sizes, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = sext i32 %28 to i64
%40 = getelementptr inbounds [11534338 x i8], [11534338 x i8]* @random_bench.A, i64 0, i64 %39
%41 = sext i32 %33 to i64
%42 = getelementptr inbounds [11534338 x i8], [11534338 x i8]* @random_bench.B, i64 0, i64 %41
%43 = tail call i32 @memcpy(i8* %40, i8* %42, i32 %38)
%44 = icmp eq i32 %34, %1
br i1 %44, label %45, label %22
45: ; preds = %22, %18
%46 = tail call i32 (...) @gettime()
%47 = tail call i32 @sleepms(i32 100)
%48 = tail call i32 (...) @gettime()
br i1 %21, label %72, label %49
49: ; preds = %45, %49
%50 = phi i32 [ %61, %49 ], [ 0, %45 ]
%51 = phi i32 [ %56, %49 ], [ 0, %45 ]
%52 = and i32 %51, 65534
%53 = zext i32 %52 to i64
%54 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = add i32 %51, 2
%57 = or i32 %52, 1
%58 = zext i32 %57 to i64
%59 = getelementptr inbounds [65536 x i32], [65536 x i32]* @random_bench.random_offsets, i64 0, i64 %58
%60 = load i32, i32* %59
%61 = add nuw i32 %50, 1
%62 = and i32 %50, 32767
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds [32768 x i32], [32768 x i32]* @random_bench.random_sizes, i64 0, i64 %63
%65 = load i32, i32* %64
%66 = sext i32 %55 to i64
%67 = getelementptr inbounds [11534338 x i8], [11534338 x i8]* @random_bench.A, i64 0, i64 %66
%68 = sext i32 %60 to i64
%69 = getelementptr inbounds [11534338 x i8], [11534338 x i8]* @random_bench.B, i64 0, i64 %68
%70 = tail call i32 @memcpy_fast(i8* %67, i8* %69, i32 %65)
%71 = icmp eq i32 %61, %1
br i1 %71, label %72, label %49
72: ; preds = %49, %45
%73 = sub i32 %46, %20
%74 = tail call i32 (...) @gettime()
%75 = sub i32 %74, %48
%76 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %75, i32 %73)
ret void
}