#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 */
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ mxv(int, int, double *, double *, double *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main(int argc, char *argv[]) {
  double *a, *b, *c;
  int i, j, m, n;
  printf("Please give m and n: ");
  scanf("%d %d", &m, &n);
  printf("\n");
  if ((a = (double *)malloc(m * sizeof(double))) == NULL)
    perror("memory allocation for a");
  if ((b = (double *)malloc(m * n * sizeof(double))) == NULL)
    perror("memory allocation for b");
  if ((c = (double *)malloc(n * sizeof(double))) == NULL)
    perror("memory allocation for c");
  printf("Initializing matrix B and vector c\n");
  for (j = 0; j < n; j++)
    c[j] = 2.0;
  for (i = 0; i < m; i++)
    for (j = 0; j < n; j++)
      b[i * n + j] = i;
  printf("Executing mxv function for m = %d n = %d\n", m, n);
  (void)mxv(m, n, a, b, c);
  free(a);
  free(b);
  free(c);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe93(%rip),%rdi
lea    -0x34(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   1060 <scanf@plt>
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    11cf <main+0x6f>
lea    0xe5a(%rip),%rdi
call   1070 <perror@plt>
mov    -0x34(%rbp),%eax
imul   -0x38(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    11fd <main+0x9d>
lea    0xe44(%rip),%rdi
call   1070 <perror@plt>
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    1226 <main+0xc6>
lea    0xe33(%rip),%rdi
call   1070 <perror@plt>
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    126a <main+0x10a>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  0xda9(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    123b <main+0xdb>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    12cc <main+0x16c>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    12b9 <main+0x159>
cvtsi2sdl -0x2c(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x38(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1284 <main+0x124>
jmp    12be <main+0x15e>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1271 <main+0x111>
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1080 <mxv@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xe7b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe83(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1080 <scanf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x4(%rsp),%edi
shl    $0x3,%edi
call   1070 <malloc@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
je     14fa <main+0x37a>
mov    0x4(%rsp),%edi
imul   (%rsp),%edi
shl    $0x3,%edi
call   1070 <malloc@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     150b <main+0x38b>
mov    (%rsp),%edi
shl    $0x3,%edi
call   1070 <malloc@plt>
mov    %rax,%r13
test   %rax,%rax
je     151c <main+0x39c>
lea    0xe8e(%rip),%rdi
call   1050 <puts@plt>
movslq (%rsp),%r12
mov    %r12d,%edx
test   %r12,%r12
jle    136e <main+0x1ee>
cmp    $0x4,%r12d
jae    1232 <main+0xb2>
xor    %eax,%eax
jmp    1349 <main+0x1c9>
mov    %edx,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%ecx
and    $0x7,%ecx
cmp    $0x1c,%rdi
jae    1258 <main+0xd8>
xor    %edi,%edi
jmp    1306 <main+0x186>
and    $0xfffffffffffffff8,%rsi
xor    %edi,%edi
movapd 0xd9a(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movupd %xmm0,0x0(%r13,%rdi,8)
movupd %xmm0,0x10(%r13,%rdi,8)
movupd %xmm0,0x20(%r13,%rdi,8)
movupd %xmm0,0x30(%r13,%rdi,8)
movupd %xmm0,0x40(%r13,%rdi,8)
movupd %xmm0,0x50(%r13,%rdi,8)
movupd %xmm0,0x60(%r13,%rdi,8)
movupd %xmm0,0x70(%r13,%rdi,8)
movupd %xmm0,0x80(%r13,%rdi,8)
movupd %xmm0,0x90(%r13,%rdi,8)
movupd %xmm0,0xa0(%r13,%rdi,8)
movupd %xmm0,0xb0(%r13,%rdi,8)
movupd %xmm0,0xc0(%r13,%rdi,8)
movupd %xmm0,0xd0(%r13,%rdi,8)
movupd %xmm0,0xe0(%r13,%rdi,8)
movupd %xmm0,0xf0(%r13,%rdi,8)
add    $0x20,%rdi
add    $0xfffffffffffffff8,%rsi
jne    1270 <main+0xf0>
test   %rcx,%rcx
je     1344 <main+0x1c4>
lea    0x10(,%rdi,8),%rsi
add    %r13,%rsi
shl    $0x5,%rcx
xor    %edi,%edi
movapd 0xcdc(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd %xmm0,-0x10(%rsi,%rdi,1)
movupd %xmm0,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rcx
jne    1330 <main+0x1b0>
cmp    %rdx,%rax
je     136e <main+0x1ee>
movabs $0x4000000000000000,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rcx,0x0(%r13,%rax,8)
add    $0x1,%rax
cmp    %rax,%rdx
jne    1360 <main+0x1e0>
mov    0x4(%rsp),%esi
test   %esi,%esi
jle    14a4 <main+0x324>
mov    %edx,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%r9
mov    %r9,0x20(%rsp)
shr    $0x2,%r9
add    $0x1,%r9
movabs $0x7ffffffffffffff8,%rax
ff ff 7f
or     $0x4,%rax
and    %r9,%rax
mov    %rax,0x18(%rsp)
and    $0x3,%r9d
mov    0x8(%rsp),%rbp
lea    0x70(%rbp),%rdi
shl    $0x3,%r12
mov    %rbp,%r15
add    $0x10,%r15
mov    %r9,%r10
shl    $0x5,%r10
xor    %ebx,%ebx
jmp    13e6 <main+0x266>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
add    %r12,%rdi
add    %r12,%r15
add    %r12,%rbp
cmp    %rsi,%rbx
je     14a4 <main+0x324>
test   %edx,%edx
jle    13d0 <main+0x250>
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
cmp    $0x4,%edx
jae    1400 <main+0x280>
xor    %ecx,%ecx
jmp    1490 <main+0x310>
nopl   (%rax)
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0xc,0x20(%rsp)
jae    1415 <main+0x295>
xor    %r14d,%r14d
jmp    1461 <main+0x2e1>
mov    0x18(%rsp),%r8
xor    %r14d,%r14d
nopl   (%rax)
movupd %xmm1,-0x70(%rdi,%r14,8)
movupd %xmm1,-0x60(%rdi,%r14,8)
movupd %xmm1,-0x50(%rdi,%r14,8)
movupd %xmm1,-0x40(%rdi,%r14,8)
movupd %xmm1,-0x30(%rdi,%r14,8)
movupd %xmm1,-0x20(%rdi,%r14,8)
movupd %xmm1,-0x10(%rdi,%r14,8)
movupd %xmm1,(%rdi,%r14,8)
add    $0x10,%r14
add    $0xfffffffffffffffc,%r8
jne    1420 <main+0x2a0>
test   %r9,%r9
je     1484 <main+0x304>
lea    (%r15,%r14,8),%rcx
xor    %eax,%eax
nopl   0x0(%rax)
movupd %xmm1,-0x10(%rcx,%rax,1)
movupd %xmm1,(%rcx,%rax,1)
add    $0x20,%rax
cmp    %rax,%r10
jne    1470 <main+0x2f0>
mov    %r11,%rcx
cmp    %rdx,%r11
je     13d0 <main+0x250>
movsd  %xmm0,0x0(%rbp,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rdx
jne    1490 <main+0x310>
jmp    13d0 <main+0x250>
lea    0xbc9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4(%rsp),%edi
mov    (%rsp),%esi
mov    0x10(%rsp),%rbx
mov    %rbx,%rdx
mov    0x8(%rsp),%rbp
mov    %rbp,%rcx
mov    %r13,%r8
call   10a0 <mxv@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb2b(%rip),%rdi
call   1090 <perror@plt>
jmp    11d4 <main+0x54>
lea    0xb32(%rip),%rdi
call   1090 <perror@plt>
jmp    11f2 <main+0x72>
lea    0xb39(%rip),%rdi
call   1090 <perror@plt>
jmp    1209 <main+0x89>

LLVM IR (-O0):
@.str = [22 x i8] c"Please give m and n: \00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [24 x i8] c"memory allocation for a\00"
@.str.4 = [24 x i8] c"memory allocation for b\00"
@.str.5 = [24 x i8] c"memory allocation for c\00"
@.str.6 = [36 x i8] c"Initializing matrix B and vector c\0A\00"
@.str.7 = [42 x i8] c"Executing mxv function for m = %d n = %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %11, i32* %12)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32, i32* %11
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 %19)
%21 = inttoptr i64 %20 to double*
store double* %21, double** %6
%22 = icmp eq double* %21, null
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %25
25: ; preds = %23, %2
%26 = load i32, i32* %11
%27 = load i32, i32* %12
%28 = mul nsw i32 %26, %27
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 8
%31 = trunc i64 %30 to i32
%32 = call i64 @malloc(i32 %31)
%33 = inttoptr i64 %32 to double*
store double* %33, double** %7
%34 = icmp eq double* %33, null
br i1 %34, label %35, label %37
35: ; preds = %25
%36 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %37
37: ; preds = %35, %25
%38 = load i32, i32* %12
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 8
%41 = trunc i64 %40 to i32
%42 = call i64 @malloc(i32 %41)
%43 = inttoptr i64 %42 to double*
store double* %43, double** %8
%44 = icmp eq double* %43, null
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
br label %47
47: ; preds = %45, %37
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %10
br label %49
49: ; preds = %58, %47
%50 = load i32, i32* %10
%51 = load i32, i32* %12
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %61
53: ; preds = %49
%54 = load double*, double** %8
%55 = load i32, i32* %10
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %54, i64 %56
store double 2.000000e+00, double* %57
br label %58
58: ; preds = %53
%59 = load i32, i32* %10
%60 = add nsw i32 %59, 1
store i32 %60, i32* %10
br label %49
61: ; preds = %49
store i32 0, i32* %9
br label %62
62: ; preds = %86, %61
%63 = load i32, i32* %9
%64 = load i32, i32* %11
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %89
66: ; preds = %62
store i32 0, i32* %10
br label %67
67: ; preds = %82, %66
%68 = load i32, i32* %10
%69 = load i32, i32* %12
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %85
71: ; preds = %67
%72 = load i32, i32* %9
%73 = sitofp i32 %72 to double
%74 = load double*, double** %7
%75 = load i32, i32* %9
%76 = load i32, i32* %12
%77 = mul nsw i32 %75, %76
%78 = load i32, i32* %10
%79 = add nsw i32 %77, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, double* %74, i64 %80
store double %73, double* %81
br label %82
82: ; preds = %71
%83 = load i32, i32* %10
%84 = add nsw i32 %83, 1
store i32 %84, i32* %10
br label %67
85: ; preds = %67
br label %86
86: ; preds = %85
%87 = load i32, i32* %9
%88 = add nsw i32 %87, 1
store i32 %88, i32* %9
br label %62
89: ; preds = %62
%90 = load i32, i32* %11
%91 = load i32, i32* %12
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i32 %90, i32 %91)
%93 = load i32, i32* %11
%94 = load i32, i32* %12
%95 = load double*, double** %6
%96 = load double*, double** %7
%97 = load double*, double** %8
%98 = call i32 @mxv(i32 %93, i32 %94, double* %95, double* %96, double* %97)
%99 = load double*, double** %6
%100 = call i32 @free(double* %99)
%101 = load double*, double** %7
%102 = call i32 @free(double* %101)
%103 = load double*, double** %8
%104 = call i32 @free(double* %103)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"Please give m and n: \00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.3 = [24 x i8] c"memory allocation for a\00"
@.str.4 = [24 x i8] c"memory allocation for b\00"
@.str.5 = [24 x i8] c"memory allocation for c\00"
@.str.7 = [42 x i8] c"Executing mxv function for m = %d n = %d\0A\00"
@str = [35 x i8] c"Initializing matrix B and vector c\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %4)
%9 = call i32 @putchar(i32 10)
%10 = load i32, i32* %3
%11 = shl i32 %10, 3
%12 = call i64 @malloc(i32 %11)
%13 = inttoptr i64 %12 to double*
%14 = icmp eq i64 %12, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %17
17: ; preds = %15, %2
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = shl i32 %18, 3
%21 = mul i32 %20, %19
%22 = call i64 @malloc(i32 %21)
%23 = inttoptr i64 %22 to double*
%24 = icmp eq i64 %22, 0
br i1 %24, label %25, label %27
25: ; preds = %17
%26 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %27
27: ; preds = %25, %17
%28 = load i32, i32* %4
%29 = shl i32 %28, 3
%30 = call i64 @malloc(i32 %29)
%31 = inttoptr i64 %30 to double*
%32 = icmp eq i64 %30, 0
br i1 %32, label %33, label %35
33: ; preds = %27
%34 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
br label %35
35: ; preds = %33, %27
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%37 = load i32, i32* %4
%38 = icmp sgt i32 %37, 0
br i1 %38, label %39, label %113
39: ; preds = %35
%40 = zext i32 %37 to i64
%41 = icmp ult i32 %37, 4
br i1 %41, label %111, label %42
42: ; preds = %39
%43 = and i64 %40, 4294967292
%44 = add nsw i64 %43, -4
%45 = lshr exact i64 %44, 2
%46 = add nuw nsw i64 %45, 1
%47 = and i64 %46, 7
%48 = icmp ult i64 %44, 28
br i1 %48, label %96, label %49
49: ; preds = %42
%50 = and i64 %46, 9223372036854775800
br label %51
51: ; preds = %51, %49
%52 = phi i64 [ 0, %49 ], [ %93, %51 ]
%53 = phi i64 [ 0, %49 ], [ %94, %51 ]
%54 = getelementptr inbounds double, double* %31, i64 %52
%55 = bitcast double* %54 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %55
%56 = getelementptr inbounds double, double* %54, i64 2
%57 = bitcast double* %56 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %57
%58 = or i64 %52, 4
%59 = getelementptr inbounds double, double* %31, i64 %58
%60 = bitcast double* %59 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %60
%61 = getelementptr inbounds double, double* %59, i64 2
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %62
%63 = or i64 %52, 8
%64 = getelementptr inbounds double, double* %31, i64 %63
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %65
%66 = getelementptr inbounds double, double* %64, i64 2
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %67
%68 = or i64 %52, 12
%69 = getelementptr inbounds double, double* %31, i64 %68
%70 = bitcast double* %69 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %70
%71 = getelementptr inbounds double, double* %69, i64 2
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %72
%73 = or i64 %52, 16
%74 = getelementptr inbounds double, double* %31, i64 %73
%75 = bitcast double* %74 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %75
%76 = getelementptr inbounds double, double* %74, i64 2
%77 = bitcast double* %76 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %77
%78 = or i64 %52, 20
%79 = getelementptr inbounds double, double* %31, i64 %78
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %80
%81 = getelementptr inbounds double, double* %79, i64 2
%82 = bitcast double* %81 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %82
%83 = or i64 %52, 24
%84 = getelementptr inbounds double, double* %31, i64 %83
%85 = bitcast double* %84 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %85
%86 = getelementptr inbounds double, double* %84, i64 2
%87 = bitcast double* %86 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %87
%88 = or i64 %52, 28
%89 = getelementptr inbounds double, double* %31, i64 %88
%90 = bitcast double* %89 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %90
%91 = getelementptr inbounds double, double* %89, i64 2
%92 = bitcast double* %91 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %92
%93 = add nuw i64 %52, 32
%94 = add i64 %53, 8
%95 = icmp eq i64 %94, %50
br i1 %95, label %96, label %51
96: ; preds = %51, %42
%97 = phi i64 [ 0, %42 ], [ %93, %51 ]
%98 = icmp eq i64 %47, 0
br i1 %98, label %109, label %99
99: ; preds = %96, %99
%100 = phi i64 [ %106, %99 ], [ %97, %96 ]
%101 = phi i64 [ %107, %99 ], [ 0, %96 ]
%102 = getelementptr inbounds double, double* %31, i64 %100
%103 = bitcast double* %102 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %103
%104 = getelementptr inbounds double, double* %102, i64 2
%105 = bitcast double* %104 to <2 x double>*
store <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double>* %105
%106 = add nuw i64 %100, 4
%107 = add i64 %101, 1
%108 = icmp eq i64 %107, %47
br i1 %108, label %109, label %99
109: ; preds = %99, %96
%110 = icmp eq i64 %43, %40
br i1 %110, label %113, label %111
111: ; preds = %39, %109
%112 = phi i64 [ 0, %39 ], [ %43, %109 ]
br label %131
113: ; preds = %131, %109, %35
%114 = load i32, i32* %3
%115 = icmp sgt i32 %114, 0
br i1 %115, label %116, label %201
116: ; preds = %113
%117 = sext i32 %37 to i64
%118 = zext i32 %114 to i64
%119 = zext i32 %37 to i64
%120 = and i64 %119, 4294967292
%121 = add nsw i64 %120, -4
%122 = lshr exact i64 %121, 2
%123 = add nuw nsw i64 %122, 1
%124 = icmp ult i32 %37, 4
%125 = and i64 %119, 4294967292
%126 = and i64 %123, 3
%127 = icmp ult i64 %121, 12
%128 = and i64 %123, 9223372036854775804
%129 = icmp eq i64 %126, 0
%130 = icmp eq i64 %125, %119
br label %136
131: ; preds = %111, %131
%132 = phi i64 [ %134, %131 ], [ %112, %111 ]
%133 = getelementptr inbounds double, double* %31, i64 %132
store double 2.000000e+00, double* %133
%134 = add nuw nsw i64 %132, 1
%135 = icmp eq i64 %134, %40
br i1 %135, label %113, label %131
136: ; preds = %116, %198
%137 = phi i64 [ 0, %116 ], [ %199, %198 ]
br i1 %38, label %138, label %198
138: ; preds = %136
%139 = trunc i64 %137 to i32
%140 = sitofp i32 %139 to double
%141 = mul nsw i64 %137, %117
br i1 %124, label %190, label %142
142: ; preds = %138
%143 = insertelement <2 x double> poison, double %140, i64 0
%144 = shufflevector <2 x double> %143, <2 x double> poison, <2 x i32> zeroinitializer
%145 = insertelement <2 x double> poison, double %140, i64 0
%146 = shufflevector <2 x double> %145, <2 x double> poison, <2 x i32> zeroinitializer
br i1 %127, label %176, label %147
147: ; preds = %142, %147
%148 = phi i64 [ %173, %147 ], [ 0, %142 ]
%149 = phi i64 [ %174, %147 ], [ 0, %142 ]
%150 = add nsw i64 %148, %141
%151 = getelementptr inbounds double, double* %23, i64 %150
%152 = bitcast double* %151 to <2 x double>*
store <2 x double> %144, <2 x double>* %152
%153 = getelementptr inbounds double, double* %151, i64 2
%154 = bitcast double* %153 to <2 x double>*
store <2 x double> %146, <2 x double>* %154
%155 = or i64 %148, 4
%156 = add nsw i64 %155, %141
%157 = getelementptr inbounds double, double* %23, i64 %156
%158 = bitcast double* %157 to <2 x double>*
store <2 x double> %144, <2 x double>* %158
%159 = getelementptr inbounds double, double* %157, i64 2
%160 = bitcast double* %159 to <2 x double>*
store <2 x double> %146, <2 x double>* %160
%161 = or i64 %148, 8
%162 = add nsw i64 %161, %141
%163 = getelementptr inbounds double, double* %23, i64 %162
%164 = bitcast double* %163 to <2 x double>*
store <2 x double> %144, <2 x double>* %164
%165 = getelementptr inbounds double, double* %163, i64 2
%166 = bitcast double* %165 to <2 x double>*
store <2 x double> %146, <2 x double>* %166
%167 = or i64 %148, 12
%168 = add nsw i64 %167, %141
%169 = getelementptr inbounds double, double* %23, i64 %168
%170 = bitcast double* %169 to <2 x double>*
store <2 x double> %144, <2 x double>* %170
%171 = getelementptr inbounds double, double* %169, i64 2
%172 = bitcast double* %171 to <2 x double>*
store <2 x double> %146, <2 x double>* %172
%173 = add nuw i64 %148, 16
%174 = add nuw i64 %149, 4
%175 = icmp eq i64 %174, %128
br i1 %175, label %176, label %147
176: ; preds = %147, %142
%177 = phi i64 [ 0, %142 ], [ %173, %147 ]
br i1 %129, label %189, label %178
178: ; preds = %176, %178
%179 = phi i64 [ %186, %178 ], [ %177, %176 ]
%180 = phi i64 [ %187, %178 ], [ 0, %176 ]
%181 = add nsw i64 %179, %141
%182 = getelementptr inbounds double, double* %23, i64 %181
%183 = bitcast double* %182 to <2 x double>*
store <2 x double> %144, <2 x double>* %183
%184 = getelementptr inbounds double, double* %182, i64 2
%185 = bitcast double* %184 to <2 x double>*
store <2 x double> %146, <2 x double>* %185
%186 = add nuw i64 %179, 4
%187 = add i64 %180, 1
%188 = icmp eq i64 %187, %126
br i1 %188, label %189, label %178
189: ; preds = %178, %176
br i1 %130, label %198, label %190
190: ; preds = %138, %189
%191 = phi i64 [ 0, %138 ], [ %125, %189 ]
br label %192
192: ; preds = %190, %192
%193 = phi i64 [ %196, %192 ], [ %191, %190 ]
%194 = add nsw i64 %193, %141
%195 = getelementptr inbounds double, double* %23, i64 %194
store double %140, double* %195
%196 = add nuw nsw i64 %193, 1
%197 = icmp eq i64 %196, %119
br i1 %197, label %198, label %192
198: ; preds = %192, %189, %136
%199 = add nuw nsw i64 %137, 1
%200 = icmp eq i64 %199, %118
br i1 %200, label %201, label %136
201: ; preds = %198, %113
%202 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i32 %114, i32 %37)
%203 = load i32, i32* %3
%204 = load i32, i32* %4
%205 = call i32 @mxv(i32 %203, i32 %204, double* %13, double* %23, double* %31)
%206 = call i32 @free(double* %13)
%207 = call i32 @free(double* %23)
%208 = call i32 @free(double* %31)
ret i32 0
}