int main(int argc, char *argv[]) {
  float start = timeit();
  char *factorial, *current;
  int total[200];
  int answer, head, pos;
  int i, j;
  factorial = malloc(sizeof(char) * 200);
  memset(factorial, '0', 200);
  current = malloc(sizeof(char) * 4);
  for (i = 1, head = 1, *factorial = '1'; i <= 100; i++) {
    memset(current, '0', 4);
    snprintf(current, 4, "%d", i);
    memset(total, 0, sizeof(int) * 200);
    for (j = strlen(current) - 1, pos = 0; j >= 0; j--, pos++)
      mul(factorial, pos, *(current + j) - '0', total, head);
    head = find_head(total);
    add(total, head);
    for (j = head; j >= 0; j--)
      *(factorial + j) = total[j] + '0';
    *(factorial + j) = '\0';
  }
  for (i = 0, answer = 0; i < 200; i++) {
    j = *(factorial + i) - '0';
    answer += j;
  }
  free(factorial);
  free(current);
  float stop = timeit();
  printf("Answer: %d\n", answer);
  printf("Time: %f\n", stop - start);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x370,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   10b0 <timeit@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    $0xc8,%edi
call   1090 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x30,%esi
mov    $0xc8,%edx
call   1080 <memset@plt>
mov    $0x4,%edi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x1,-0x360(%rbp)
movl   $0x1,-0x358(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x31,(%rax)
cmpl   $0x64,-0x360(%rbp)
jg     137a <main+0x1da>
mov    -0x28(%rbp),%rdi
mov    $0x30,%esi
mov    $0x4,%edx
call   1080 <memset@plt>
mov    -0x28(%rbp),%rdi
mov    -0x360(%rbp),%ecx
mov    $0x4,%esi
lea    0xdb7(%rip),%rdx
mov    $0x0,%al
call   1070 <snprintf@plt>
lea    -0x350(%rbp),%rdi
xor    %esi,%esi
mov    $0x320,%edx
call   1080 <memset@plt>
mov    -0x28(%rbp),%rdi
call   1050 <strlen@plt>
sub    $0x1,%rax
mov    %eax,-0x364(%rbp)
movl   $0x0,-0x35c(%rbp)
cmpl   $0x0,-0x364(%rbp)
jl     12e1 <main+0x141>
mov    -0x20(%rbp),%rdi
mov    -0x35c(%rbp),%esi
mov    -0x28(%rbp),%rax
movslq -0x364(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
sub    $0x30,%edx
lea    -0x350(%rbp),%rcx
mov    -0x358(%rbp),%r8d
mov    $0x0,%al
call   10a0 <mul@plt>
mov    -0x364(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x364(%rbp)
mov    -0x35c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x35c(%rbp)
jmp    1280 <main+0xe0>
lea    -0x350(%rbp),%rdi
mov    $0x0,%al
call   10c0 <find_head@plt>
mov    %eax,-0x358(%rbp)
lea    -0x350(%rbp),%rdi
mov    -0x358(%rbp),%esi
mov    $0x0,%al
call   1040 <add@plt>
mov    -0x358(%rbp),%eax
mov    %eax,-0x364(%rbp)
cmpl   $0x0,-0x364(%rbp)
jl     1357 <main+0x1b7>
movslq -0x364(%rbp),%rax
mov    -0x350(%rbp,%rax,4),%eax
add    $0x30,%eax
mov    %al,%dl
mov    -0x20(%rbp),%rax
movslq -0x364(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x364(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x364(%rbp)
jmp    1315 <main+0x175>
mov    -0x20(%rbp),%rax
movslq -0x364(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x360(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x360(%rbp)
jmp    1213 <main+0x73>
movl   $0x0,-0x360(%rbp)
movl   $0x0,-0x354(%rbp)
cmpl   $0xc8,-0x360(%rbp)
jge    13dc <main+0x23c>
mov    -0x20(%rbp),%rax
movslq -0x360(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
sub    $0x30,%eax
mov    %eax,-0x364(%rbp)
mov    -0x364(%rbp),%eax
add    -0x354(%rbp),%eax
mov    %eax,-0x354(%rbp)
mov    -0x360(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x360(%rbp)
jmp    138e <main+0x1ee>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    $0x0,%al
call   10b0 <timeit@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x368(%rbp)
mov    -0x354(%rbp),%esi
lea    0xbf5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movss  -0x368(%rbp),%xmm0
ff
subss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbe2(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x370,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x338,%rsp
xor    %eax,%eax
call   10b0 <timeit@plt>
mov    %eax,0x4(%rsp)
mov    $0xc8,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
movdqa 0xe2f(%rip),%xmm0
movdqu %xmm0,0x1(%rax)
movdqu %xmm0,0x11(%rax)
movdqu %xmm0,0x21(%rax)
movdqu %xmm0,0x31(%rax)
movdqu %xmm0,0x41(%rax)
movdqu %xmm0,0x51(%rax)
movdqu %xmm0,0x61(%rax)
movdqu %xmm0,0x71(%rax)
movdqu %xmm0,0x81(%rax)
movdqu %xmm0,0x91(%rax)
movdqu %xmm0,0xa1(%rax)
movdqu %xmm0,0xb1(%rax)
movabs $0x3030303030303030,%rax
30 30 30
mov    %rax,0xc0(%rbx)
mov    $0x4,%edi
call   1090 <malloc@plt>
mov    %rax,%rbp
movb   $0x31,(%rbx)
mov    %rbx,%rax
add    $0xfffffffffffffffd,%rax
mov    %rax,0x8(%rsp)
mov    $0x1,%ecx
lea    0x10(%rsp),%r13
mov    $0x1,%r14d
jmp    1276 <main+0xd6>
nopl   0x0(%rax,%rax,1)
movslq %ecx,%rax
movb   $0x0,(%rbx,%rax,1)
mov    (%rsp),%ecx
add    $0x1,%ecx
cmp    $0x65,%ecx
je     141b <main+0x27b>
movl   $0x30303030,0x0(%rbp)
mov    $0x4,%esi
mov    %rbp,%rdi
lea    0xdb4(%rip),%rdx
mov    %ecx,(%rsp)
xor    %eax,%eax
call   1070 <snprintf@plt>
mov    $0x320,%edx
mov    %r13,%rdi
xor    %esi,%esi
call   1080 <memset@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
mov    %rax,%r12
add    $0xffffffff,%r12d
js     12e8 <main+0x148>
xor    %r15d,%r15d
nopl   0x0(%rax)
mov    %r12d,%eax
movsbl 0x0(%rbp,%rax,1),%edx
add    $0xffffffd0,%edx
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %r13,%rcx
mov    %r14d,%r8d
xor    %eax,%eax
call   10a0 <mul@plt>
add    $0x1,%r15d
add    $0xffffffff,%r12d
jb     12c0 <main+0x120>
mov    %r13,%rdi
xor    %eax,%eax
call   10c0 <find_head@plt>
mov    %eax,%r14d
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <add@plt>
mov    %r14d,%ecx
test   %r14d,%r14d
movdqa 0xd01(%rip),%xmm2
movdqa 0xd09(%rip),%xmm3
pxor   %xmm4,%xmm4
js     1260 <main+0xc0>
mov    %r14d,%ecx
cmp    $0x7,%r14d
jae    1340 <main+0x1a0>
mov    %rcx,%rax
jmp    1400 <main+0x260>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x1(%rcx),%r8
mov    %r8,%r9
and    $0xfffffffffffffff8,%r9
mov    %rcx,%rax
sub    %r9,%rax
mov    %r9,%rdi
neg    %rdi
lea    0x4(%rsp),%rdx
lea    (%rdx,%rcx,4),%rdx
add    0x8(%rsp),%rcx
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movdqu -0x10(%rdx,%rsi,4),%xmm0
movdqu (%rdx,%rsi,4),%xmm1
pand   %xmm2,%xmm1
pshuflw $0xe8,%xmm1,%xmm1
pshufhw $0xe8,%xmm1,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
packuswb %xmm1,%xmm1
pand   %xmm2,%xmm0
pshuflw $0xe8,%xmm0,%xmm0
pshufhw $0xe8,%xmm0,%xmm0
pshufd $0xe8,%xmm0,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
packuswb %xmm0,%xmm0
paddb  %xmm3,%xmm1
paddb  %xmm3,%xmm0
punpcklbw %xmm4,%xmm1
pshuflw $0x1b,%xmm1,%xmm1
packuswb %xmm1,%xmm1
movd   %xmm1,(%rcx,%rsi,1)
punpcklbw %xmm4,%xmm0
pshuflw $0x1b,%xmm0,%xmm0
packuswb %xmm0,%xmm0
movd   %xmm0,-0x4(%rcx,%rsi,1)
add    $0xfffffffffffffff8,%rsi
cmp    %rsi,%rdi
jne    1370 <main+0x1d0>
mov    $0xffffffff,%ecx
cmp    %r9,%r8
je     1260 <main+0xc0>
nopw   0x0(%rax,%rax,1)
movzbl 0x10(%rsp,%rax,4),%ecx
add    $0x30,%cl
mov    %cl,(%rbx,%rax,1)
add    $0xffffffffffffffff,%rax
jb     1400 <main+0x260>
mov    $0xffffffff,%ecx
jmp    1260 <main+0xc0>
pxor   %xmm0,%xmm0
mov    $0xc,%eax
movdqa 0xc04(%rip),%xmm2
pxor   %xmm1,%xmm1
movd   -0xc(%rbx,%rax,1),%xmm3
punpcklbw %xmm3,%xmm3
punpcklwd %xmm3,%xmm3
movd   -0x8(%rbx,%rax,1),%xmm4
punpcklbw %xmm4,%xmm4
punpcklwd %xmm4,%xmm4
psrad  $0x18,%xmm3
psrad  $0x18,%xmm4
paddd  %xmm2,%xmm0
paddd  %xmm3,%xmm0
paddd  %xmm2,%xmm1
paddd  %xmm4,%xmm1
cmp    $0xcc,%rax
je     14a9 <main+0x309>
movd   -0x4(%rbx,%rax,1),%xmm3
punpcklbw %xmm3,%xmm3
punpcklwd %xmm3,%xmm3
movd   (%rbx,%rax,1),%xmm4
punpcklbw %xmm4,%xmm4
punpcklwd %xmm4,%xmm4
psrad  $0x18,%xmm3
psrad  $0x18,%xmm4
paddd  %xmm3,%xmm0
paddd  %xmm4,%xmm1
paddd  %xmm2,%xmm0
paddd  %xmm2,%xmm1
add    $0x10,%rax
jmp    1430 <main+0x290>
paddd  %xmm0,%xmm1
pshufd $0xee,%xmm1,%xmm0
paddd  %xmm1,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%r14d
xorps  %xmm0,%xmm0
cvtsi2ssl 0x4(%rsp),%xmm0
movss  %xmm0,(%rsp)
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
xor    %eax,%eax
call   10b0 <timeit@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
subss  (%rsp),%xmm0
movss  %xmm0,(%rsp)
lea    0xb42(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb34(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x338,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [12 x i8] c"Answer: %d\0A\00"
@.str.2 = [10 x i8] c"Time: %f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [200 x i32]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = call i32 (...) @timeit()
%17 = sitofp i32 %16 to float
store float %17, float* %6
%18 = call i8* @malloc(i64 200)
store i8* %18, i8** %7
%19 = load i8*, i8** %7
%20 = call i8* @malloc(i64 4)
store i8* %20, i8** %8
store i32 1, i32* %13
store i32 1, i32* %11
%21 = load i8*, i8** %7
store i8 49, i8* %21
br label %22
22: ; preds = %86, %2
%23 = load i32, i32* %13
%24 = icmp sle i32 %23, 100
br i1 %24, label %25, label %89
25: ; preds = %22
%26 = load i8*, i8** %8
%27 = load i8*, i8** %8
%28 = load i32, i32* %13
%29 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %27, i64 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %28)
%30 = getelementptr inbounds [200 x i32], [200 x i32]* %9, i64 0, i64 0
%31 = bitcast i32* %30 to i8*
%32 = load i8*, i8** %8
%33 = call i64 @strlen(i8* %32)
%34 = sub i64 %33, 1
%35 = trunc i64 %34 to i32
store i32 %35, i32* %14
store i32 0, i32* %12
br label %36
36: ; preds = %52, %25
%37 = load i32, i32* %14
%38 = icmp sge i32 %37, 0
br i1 %38, label %39, label %57
39: ; preds = %36
%40 = load i8*, i8** %7
%41 = load i32, i32* %12
%42 = load i8*, i8** %8
%43 = load i32, i32* %14
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %42, i64 %44
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = sub nsw i32 %47, 48
%49 = getelementptr inbounds [200 x i32], [200 x i32]* %9, i64 0, i64 0
%50 = load i32, i32* %11
%51 = call i32 (i8*, i32, i32, i32*, i32, ...) bitcast (i32 (...)* @mul to i32 (i8*, i32, i32, i32*, i32, ...)*)(i8* %40, i32 %41, i32 %48, i32* %49, i32 %50)
br label %52
52: ; preds = %39
%53 = load i32, i32* %14
%54 = add nsw i32 %53, -1
store i32 %54, i32* %14
%55 = load i32, i32* %12
%56 = add nsw i32 %55, 1
store i32 %56, i32* %12
br label %36
57: ; preds = %36
%58 = getelementptr inbounds [200 x i32], [200 x i32]* %9, i64 0, i64 0
%59 = call i32 (i32*, ...) bitcast (i32 (...)* @find_head to i32 (i32*, ...)*)(i32* %58)
store i32 %59, i32* %11
%60 = getelementptr inbounds [200 x i32], [200 x i32]* %9, i64 0, i64 0
%61 = load i32, i32* %11
%62 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add to i32 (i32*, i32, ...)*)(i32* %60, i32 %61)
%63 = load i32, i32* %11
store i32 %63, i32* %14
br label %64
64: ; preds = %78, %57
%65 = load i32, i32* %14
%66 = icmp sge i32 %65, 0
br i1 %66, label %67, label %81
67: ; preds = %64
%68 = load i32, i32* %14
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [200 x i32], [200 x i32]* %9, i64 0, i64 %69
%71 = load i32, i32* %70
%72 = add nsw i32 %71, 48
%73 = trunc i32 %72 to i8
%74 = load i8*, i8** %7
%75 = load i32, i32* %14
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %74, i64 %76
store i8 %73, i8* %77
br label %78
78: ; preds = %67
%79 = load i32, i32* %14
%80 = add nsw i32 %79, -1
store i32 %80, i32* %14
br label %64
81: ; preds = %64
%82 = load i8*, i8** %7
%83 = load i32, i32* %14
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, i8* %82, i64 %84
store i8 0, i8* %85
br label %86
86: ; preds = %81
%87 = load i32, i32* %13
%88 = add nsw i32 %87, 1
store i32 %88, i32* %13
br label %22
89: ; preds = %22
store i32 0, i32* %13
store i32 0, i32* %10
br label %90
90: ; preds = %104, %89
%91 = load i32, i32* %13
%92 = icmp slt i32 %91, 200
br i1 %92, label %93, label %107
93: ; preds = %90
%94 = load i8*, i8** %7
%95 = load i32, i32* %13
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, i8* %94, i64 %96
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = sub nsw i32 %99, 48
store i32 %100, i32* %14
%101 = load i32, i32* %14
%102 = load i32, i32* %10
%103 = add nsw i32 %102, %101
store i32 %103, i32* %10
br label %104
104: ; preds = %93
%105 = load i32, i32* %13
%106 = add nsw i32 %105, 1
store i32 %106, i32* %13
br label %90
107: ; preds = %90
%108 = load i8*, i8** %7
%109 = load i8*, i8** %8
%110 = call i32 (...) @timeit()
%111 = sitofp i32 %110 to float
store float %111, float* %15
%112 = load i32, i32* %10
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %112)
%114 = load float, float* %15
%115 = load float, float* %6
%116 = fsub float %114, %115
%117 = fpext float %116 to double
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %117)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [12 x i8] c"Answer: %d\0A\00"
@.str.2 = [10 x i8] c"Time: %f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [200 x i32]
%4 = tail call i32 (...) @timeit()
%5 = bitcast [200 x i32]* %3 to i8*
%6 = tail call dereferenceable_or_null(200) i8* @malloc(i64 200)
%7 = getelementptr inbounds i8, i8* %6, i64 1
tail call void @llvm.memset.p0i8.i64(i8* align 1 dereferenceable(200) %7, i8 48, i64 199, i1 false)
%8 = tail call dereferenceable_or_null(4) i8* @malloc(i64 4)
store i8 49, i8* %6
%9 = bitcast i8* %8 to i32*
%10 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 0
br label %11
11: ; preds = %2, %81
%12 = phi i32 [ 1, %2 ], [ %85, %81 ]
%13 = phi i32 [ 1, %2 ], [ %32, %81 ]
store i32 808464432, i32* %9
%14 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* dereferenceable(1) %8, i64 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %12)
%15 = call i64 @strlen(i8* dereferenceable(1) %8)
%16 = trunc i64 %15 to i32
%17 = add i32 %16, -1
%18 = icmp sgt i32 %17, -1
br i1 %18, label %19, label %31
19: ; preds = %11, %19
%20 = phi i32 [ %29, %19 ], [ %17, %11 ]
%21 = phi i32 [ %28, %19 ], [ 0, %11 ]
%22 = zext i32 %20 to i64
%23 = getelementptr inbounds i8, i8* %8, i64 %22
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = add nsw i32 %25, -48
%27 = call i32 (i8*, i32, i32, i32*, i32, ...) bitcast (i32 (...)* @mul to i32 (i8*, i32, i32, i32*, i32, ...)*)(i8* %6, i32 %21, i32 %26, i32* %10, i32 %13)
%28 = add nuw i32 %21, 1
%29 = add i32 %20, -1
%30 = icmp eq i32 %28, %16
br i1 %30, label %31, label %19
31: ; preds = %19, %11
%32 = call i32 (i32*, ...) bitcast (i32 (...)* @find_head to i32 (i32*, ...)*)(i32* %10)
%33 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @add to i32 (i32*, i32, ...)*)(i32* %10, i32 %32)
%34 = icmp sgt i32 %32, -1
br i1 %34, label %35, label %81
35: ; preds = %31
%36 = zext i32 %32 to i64
%37 = add nuw nsw i64 %36, 1
%38 = icmp ult i32 %32, 7
br i1 %38, label %70, label %39
39: ; preds = %35
%40 = and i64 %37, 8589934584
%41 = sub nsw i64 %36, %40
br label %42
42: ; preds = %42, %39
%43 = phi i64 [ 0, %39 ], [ %66, %42 ]
%44 = sub i64 %36, %43
%45 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %44
%46 = getelementptr inbounds i32, i32* %45, i64 -3
%47 = bitcast i32* %46 to <4 x i32>*
%48 = load <4 x i32>, <4 x i32>* %47
%49 = shufflevector <4 x i32> %48, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
%50 = getelementptr inbounds i32, i32* %45, i64 -7
%51 = bitcast i32* %50 to <4 x i32>*
%52 = load <4 x i32>, <4 x i32>* %51
%53 = shufflevector <4 x i32> %52, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
%54 = trunc <4 x i32> %49 to <4 x i8>
%55 = trunc <4 x i32> %53 to <4 x i8>
%56 = add <4 x i8> %54, <i8 48, i8 48, i8 48, i8 48>
%57 = add <4 x i8> %55, <i8 48, i8 48, i8 48, i8 48>
%58 = getelementptr inbounds i8, i8* %6, i64 %44
%59 = shufflevector <4 x i8> %56, <4 x i8> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
%60 = getelementptr inbounds i8, i8* %58, i64 -3
%61 = bitcast i8* %60 to <4 x i8>*
store <4 x i8> %59, <4 x i8>* %61
%62 = shufflevector <4 x i8> %57, <4 x i8> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
%63 = getelementptr inbounds i8, i8* %58, i64 -4
%64 = getelementptr inbounds i8, i8* %63, i64 -3
%65 = bitcast i8* %64 to <4 x i8>*
store <4 x i8> %62, <4 x i8>* %65
%66 = add nuw i64 %43, 8
%67 = icmp eq i64 %66, %40
br i1 %67, label %68, label %42
68: ; preds = %42
%69 = icmp eq i64 %37, %40
br i1 %69, label %81, label %70
70: ; preds = %35, %68
%71 = phi i64 [ %36, %35 ], [ %41, %68 ]
br label %72
72: ; preds = %70, %72
%73 = phi i64 [ %79, %72 ], [ %71, %70 ]
%74 = getelementptr inbounds [200 x i32], [200 x i32]* %3, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = trunc i32 %75 to i8
%77 = add i8 %76, 48
%78 = getelementptr inbounds i8, i8* %6, i64 %73
store i8 %77, i8* %78
%79 = add nsw i64 %73, -1
%80 = icmp eq i64 %73, 0
br i1 %80, label %81, label %72
81: ; preds = %72, %68, %31
%82 = phi i32 [ %32, %31 ], [ -1, %68 ], [ -1, %72 ]
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i8, i8* %6, i64 %83
store i8 0, i8* %84
%85 = add nuw nsw i32 %12, 1
%86 = icmp eq i32 %85, 101
br i1 %86, label %87, label %11
87: ; preds = %81, %105
%88 = phi i64 [ %118, %105 ], [ 0, %81 ]
%89 = phi <4 x i32> [ %116, %105 ], [ zeroinitializer, %81 ]
%90 = phi <4 x i32> [ %117, %105 ], [ zeroinitializer, %81 ]
%91 = getelementptr inbounds i8, i8* %6, i64 %88
%92 = bitcast i8* %91 to <4 x i8>*
%93 = load <4 x i8>, <4 x i8>* %92
%94 = getelementptr inbounds i8, i8* %91, i64 4
%95 = bitcast i8* %94 to <4 x i8>*
%96 = load <4 x i8>, <4 x i8>* %95
%97 = sext <4 x i8> %93 to <4 x i32>
%98 = sext <4 x i8> %96 to <4 x i32>
%99 = add <4 x i32> %89, <i32 -48, i32 -48, i32 -48, i32 -48>
%100 = add <4 x i32> %90, <i32 -48, i32 -48, i32 -48, i32 -48>
%101 = add <4 x i32> %99, %97
%102 = add <4 x i32> %100, %98
%103 = or i64 %88, 8
%104 = icmp eq i64 %103, 200
br i1 %104, label %119, label %105
105: ; preds = %87
%106 = getelementptr inbounds i8, i8* %6, i64 %103
%107 = bitcast i8* %106 to <4 x i8>*
%108 = load <4 x i8>, <4 x i8>* %107
%109 = getelementptr inbounds i8, i8* %106, i64 4
%110 = bitcast i8* %109 to <4 x i8>*
%111 = load <4 x i8>, <4 x i8>* %110
%112 = sext <4 x i8> %108 to <4 x i32>
%113 = sext <4 x i8> %111 to <4 x i32>
%114 = add <4 x i32> %101, <i32 -48, i32 -48, i32 -48, i32 -48>
%115 = add <4 x i32> %102, <i32 -48, i32 -48, i32 -48, i32 -48>
%116 = add <4 x i32> %114, %112
%117 = add <4 x i32> %115, %113
%118 = add nuw nsw i64 %88, 16
br label %87
119: ; preds = %87
%120 = add <4 x i32> %102, %101
%121 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %120)
%122 = sitofp i32 %4 to float
%123 = call i32 (...) @timeit()
%124 = sitofp i32 %123 to float
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %121)
%126 = fsub float %124, %122
%127 = fpext float %126 to double
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %127)
ret i32 0
}