#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 atoi(char *);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ mxvOpenMP(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;
  int m, n;
  if (argc < 3) {
    printf("Please enter m and n: ");
    scanf("%d %d", &m, &n);
  } else {
    m = atoi(argv[1]);
    n = atoi(argv[2]);
  }
  a = (double *)malloc(m * sizeof(double));
  if (a == NULL) {
    perror("memory allocation for a");
  }
  b = (double *)malloc(m * n * sizeof(double));
  if (b == NULL) {
    perror("memory allocation for b");
  }
  c = (double *)malloc(n * sizeof(double));
  if (c == NULL) {
    perror("memory allocation for c");
  }
  printf("Initializing matrix B and vector C\n");
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      b[i * n + j] = 1.0;
    }
  }
  for (j = 0; j < n; j++) {
    c[j] = 2.0;
  }
  printf("Executing mxv function for m=%d, n=%d\n", m, n);
  mxvOpenMP(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)
cmpl   $0x3,-0x8(%rbp)
jge    11b7 <main+0x47>
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe82(%rip),%rdi
lea    -0x34(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   1070 <scanf@plt>
jmp    11d7 <main+0x67>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x38(%rbp)
movslq -0x34(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1201 <main+0x91>
lea    0xe31(%rip),%rdi
call   1080 <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)
cmpq   $0x0,-0x20(%rbp)
jne    1230 <main+0xc0>
lea    0xe1a(%rip),%rdi
call   1080 <perror@plt>
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    125a <main+0xea>
lea    0xe08(%rip),%rdi
call   1080 <perror@plt>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    12cd <main+0x15d>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    12ba <main+0x14a>
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   -0x38(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xd61(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1282 <main+0x112>
jmp    12bf <main+0x14f>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    126f <main+0xff>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1303 <main+0x193>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  0xd10(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12d4 <main+0x164>
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
lea    0xd89(%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   1060 <mxvOpenMP@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    $0x38,%rsp
cmp    $0x2,%edi
jg     11bb <main+0x3b>
lea    0xe86(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe8f(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1080 <scanf@plt>
mov    0x4(%rsp),%ebx
jmp    11d9 <main+0x59>
mov    %rsi,%r14
mov    0x8(%rsi),%rdi
call   10a0 <atoi@plt>
mov    %eax,%ebx
mov    %eax,0x4(%rsp)
mov    0x10(%r14),%rdi
call   10a0 <atoi@plt>
mov    %eax,(%rsp)
shl    $0x3,%ebx
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,0x10(%rsp)
test   %rax,%rax
je     1534 <main+0x3b4>
mov    0x4(%rsp),%edi
imul   (%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     1545 <main+0x3c5>
mov    (%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,%r13
test   %rax,%rax
je     1556 <main+0x3d6>
lea    0xe7f(%rip),%rdi
call   1040 <puts@plt>
mov    0x4(%rsp),%esi
movslq (%rsp),%r12
mov    %r12d,%edx
test   %esi,%esi
jle    13a2 <main+0x222>
mov    %edx,%eax
and    $0xfffffffc,%eax
mov    %rax,0x30(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x28(%rsp)
shr    $0x2,%rax
add    $0x1,%rax
movabs $0x7ffffffffffffff8,%rcx
ff ff 7f
or     $0x4,%rcx
and    %rax,%rcx
mov    %rcx,0x18(%rsp)
mov    %eax,%ebx
and    $0x3,%ebx
mov    0x8(%rsp),%r15
lea    0x70(%r15),%rdi
lea    0x0(,%r12,8),%r10
mov    %r15,%r11
add    $0x10,%r11
mov    %rbx,0x20(%rsp)
shl    $0x5,%rbx
xor    %ebp,%ebp
movabs $0x3ff0000000000000,%r14
movaps 0xd51(%rip),%xmm0
jmp    12d6 <main+0x156>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbp
add    %r10,%rdi
add    %r10,%r11
add    %r10,%r15
cmp    %rsi,%rbp
je     13a2 <main+0x222>
test   %r12d,%r12d
jle    12c0 <main+0x140>
cmp    $0x4,%edx
jae    12f0 <main+0x170>
xor    %ecx,%ecx
jmp    1390 <main+0x210>
nopw   0x0(%rax,%rax,1)
cmpq   $0xc,0x28(%rsp)
jae    12fd <main+0x17d>
xor    %r8d,%r8d
jmp    1349 <main+0x1c9>
mov    0x18(%rsp),%r9
xor    %r8d,%r8d
cs nopw 0x0(%rax,%rax,1)
nop
movups %xmm0,-0x70(%rdi,%r8,8)
movups %xmm0,-0x60(%rdi,%r8,8)
movups %xmm0,-0x50(%rdi,%r8,8)
movups %xmm0,-0x40(%rdi,%r8,8)
movups %xmm0,-0x30(%rdi,%r8,8)
movups %xmm0,-0x20(%rdi,%r8,8)
movups %xmm0,-0x10(%rdi,%r8,8)
movups %xmm0,(%rdi,%r8,8)
add    $0x10,%r8
add    $0xfffffffffffffffc,%r9
jne    1310 <main+0x190>
cmpq   $0x0,0x20(%rsp)
je     1372 <main+0x1f2>
lea    (%r11,%r8,8),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movups %xmm0,-0x10(%rcx,%rax,1)
movups %xmm0,(%rcx,%rax,1)
add    $0x20,%rax
cmp    %rax,%rbx
jne    1360 <main+0x1e0>
mov    0x30(%rsp),%rax
mov    %rax,%rcx
cmp    %rdx,%rax
je     12c0 <main+0x140>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14,(%r15,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rdx
jne    1390 <main+0x210>
jmp    12c0 <main+0x140>
test   %edx,%edx
jle    14de <main+0x35e>
cmp    $0x4,%edx
jae    13b6 <main+0x236>
xor    %eax,%eax
jmp    14b7 <main+0x337>
mov    %edx,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rbp
mov    %rbp,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%ecx
and    $0x7,%ecx
cmp    $0x1c,%rbp
jae    13dc <main+0x25c>
xor    %ebp,%ebp
jmp    1476 <main+0x2f6>
and    $0xfffffffffffffff8,%rdi
xor    %ebp,%ebp
movaps 0xc27(%rip),%xmm0
nopl   0x0(%rax)
movups %xmm0,0x0(%r13,%rbp,8)
movups %xmm0,0x10(%r13,%rbp,8)
movups %xmm0,0x20(%r13,%rbp,8)
movups %xmm0,0x30(%r13,%rbp,8)
movups %xmm0,0x40(%r13,%rbp,8)
movups %xmm0,0x50(%r13,%rbp,8)
movups %xmm0,0x60(%r13,%rbp,8)
movups %xmm0,0x70(%r13,%rbp,8)
movups %xmm0,0x80(%r13,%rbp,8)
movups %xmm0,0x90(%r13,%rbp,8)
movups %xmm0,0xa0(%r13,%rbp,8)
movups %xmm0,0xb0(%r13,%rbp,8)
movups %xmm0,0xc0(%r13,%rbp,8)
movups %xmm0,0xd0(%r13,%rbp,8)
movups %xmm0,0xe0(%r13,%rbp,8)
movups %xmm0,0xf0(%r13,%rbp,8)
add    $0x20,%rbp
add    $0xfffffffffffffff8,%rdi
jne    13f0 <main+0x270>
test   %rcx,%rcx
je     14b2 <main+0x332>
lea    0x10(,%rbp,8),%rdi
add    %r13,%rdi
shl    $0x5,%rcx
xor    %ebp,%ebp
movaps 0xb7d(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,-0x10(%rdi,%rbp,1)
movups %xmm0,(%rdi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rcx
jne    14a0 <main+0x320>
cmp    %rdx,%rax
je     14de <main+0x35e>
movabs $0x4000000000000000,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rcx,0x0(%r13,%rax,8)
add    $0x1,%rax
cmp    %rax,%rdx
jne    14d0 <main+0x350>
lea    0xba0(%rip),%rdi
xor    %eax,%eax
call   1050 <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   1070 <mxvOpenMP@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    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb02(%rip),%rdi
call   1090 <perror@plt>
jmp    11f1 <main+0x71>
lea    0xb09(%rip),%rdi
call   1090 <perror@plt>
jmp    120f <main+0x8f>
lea    0xb10(%rip),%rdi
call   1090 <perror@plt>
jmp    1226 <main+0xa6>

LLVM IR (-O0):
@.str = [23 x i8] c"Please enter m and n: \00"
@.str.1 = [6 x i8] c"%d %d\00"
@.str.2 = [24 x i8] c"memory allocation for a\00"
@.str.3 = [24 x i8] c"memory allocation for b\00"
@.str.4 = [24 x i8] c"memory allocation for c\00"
@.str.5 = [36 x i8] c"Initializing matrix B and vector C\0A\00"
@.str.6 = [39 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 = load i32, i32* %4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32* %11, i32* %12)
br label %27
18: ; preds = %2
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = load i8*, i8** %20
%22 = call i32 @atoi(i8* %21)
store i32 %22, i32* %11
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 2
%25 = load i8*, i8** %24
%26 = call i32 @atoi(i8* %25)
store i32 %26, i32* %12
br label %27
27: ; preds = %18, %15
%28 = load i32, i32* %11
%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** %6
%34 = load double*, double** %6
%35 = icmp eq double* %34, null
br i1 %35, label %36, label %38
36: ; preds = %27
%37 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
br label %38
38: ; preds = %36, %27
%39 = load i32, i32* %11
%40 = load i32, i32* %12
%41 = mul nsw i32 %39, %40
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 8
%44 = trunc i64 %43 to i32
%45 = call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to double*
store double* %46, double** %7
%47 = load double*, double** %7
%48 = icmp eq double* %47, null
br i1 %48, label %49, label %51
49: ; preds = %38
%50 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %51
51: ; preds = %49, %38
%52 = load i32, i32* %12
%53 = sext i32 %52 to i64
%54 = mul i64 %53, 8
%55 = trunc i64 %54 to i32
%56 = call i64 @malloc(i32 %55)
%57 = inttoptr i64 %56 to double*
store double* %57, double** %8
%58 = load double*, double** %8
%59 = icmp eq double* %58, null
br i1 %59, label %60, label %62
60: ; preds = %51
%61 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %62
62: ; preds = %60, %51
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %9
br label %64
64: ; preds = %86, %62
%65 = load i32, i32* %9
%66 = load i32, i32* %11
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %89
68: ; preds = %64
store i32 0, i32* %10
br label %69
69: ; preds = %82, %68
%70 = load i32, i32* %10
%71 = load i32, i32* %12
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %85
73: ; preds = %69
%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 1.000000e+00, double* %81
br label %82
82: ; preds = %73
%83 = load i32, i32* %10
%84 = add nsw i32 %83, 1
store i32 %84, i32* %10
br label %69
85: ; preds = %69
br label %86
86: ; preds = %85
%87 = load i32, i32* %9
%88 = add nsw i32 %87, 1
store i32 %88, i32* %9
br label %64
89: ; preds = %64
store i32 0, i32* %10
br label %90
90: ; preds = %99, %89
%91 = load i32, i32* %10
%92 = load i32, i32* %12
%93 = icmp slt i32 %91, %92
br i1 %93, label %94, label %102
94: ; preds = %90
%95 = load double*, double** %8
%96 = load i32, i32* %10
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
store double 2.000000e+00, double* %98
br label %99
99: ; preds = %94
%100 = load i32, i32* %10
%101 = add nsw i32 %100, 1
store i32 %101, i32* %10
br label %90
102: ; preds = %90
%103 = load i32, i32* %11
%104 = load i32, i32* %12
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i32 %103, i32 %104)
%106 = load i32, i32* %11
%107 = load i32, i32* %12
%108 = load double*, double** %6
%109 = load double*, double** %7
%110 = load double*, double** %8
%111 = call i32 @mxvOpenMP(i32 %106, i32 %107, double* %108, double* %109, double* %110)
%112 = load double*, double** %6
%113 = call i32 @free(double* %112)
%114 = load double*, double** %7
%115 = call i32 @free(double* %114)
%116 = load double*, double** %8
%117 = call i32 @free(double* %116)
ret i32 0
}

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