#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 omp_get_thread_num();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  float A[10][10], b[10], c[10], total;
  int i, j, tid;
  total = 0.0;
  for (i = 0; i < 10; i++) {
    for (j = 0; j < 10; j++)
      A[i][j] = (j + 1) * 1.0;
    b[i] = 1.0 * (i + 1);
    c[i] = 0.0;
  }
  printf("\nStarting values of matrix A and vector b:\n");
  for (i = 0; i < 10; i++) {
    printf("  A[%d]= ", i);
    for (j = 0; j < 10; j++)
      printf("%.1f ", A[i][j]);
    printf("  b[%d]= %.1f\n", i, b[i]);
  }
  printf("\nResults by thread/row:\n");
#pragma omp parallel shared(A, b, c, total) private(tid, i)
  {
    tid = omp_get_thread_num();
#pragma omp for private(j)
    for (i = 0; i < 10; i++) {
      for (j = 0; j < 10; j++)
        c[i] += (A[i][j] * b[i]);
#pragma omp critical
      {
        total = total + c[i];
        printf("  thread %d did row %d\t c[%d]=%.2f\t", tid, i, i, c[i]);
        printf("Running total= %.2f\n", total);
      }
    }
  }
  printf("\nMatrix-vector total - sum of all c[] = %.2f\n\n", total);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x204(%rbp)
ff
movl   $0x0,-0x208(%rbp)
cmpl   $0xa,-0x208(%rbp)
jge    1211 <main+0xf1>
movl   $0x0,-0x20c(%rbp)
cmpl   $0xa,-0x20c(%rbp)
jge    11bd <main+0x9d>
mov    -0x20c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  0xe80(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0x208(%rbp),%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x20c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20c(%rbp)
jmp    115e <main+0x3e>
mov    -0x208(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xe2e(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movslq -0x208(%rbp),%rax
movss  %xmm0,-0x1d0(%rbp,%rax,4)
ff ff
movslq -0x208(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0x200(%rbp,%rax,4)
ff ff
mov    -0x208(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x208(%rbp)
jmp    1147 <main+0x27>
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x208(%rbp)
cmpl   $0xa,-0x208(%rbp)
jge    12e4 <main+0x1c4>
mov    -0x208(%rbp),%esi
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x20c(%rbp)
cmpl   $0xa,-0x20c(%rbp)
jge    12a8 <main+0x188>
movslq -0x208(%rbp),%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x20c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x20c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20c(%rbp)
jmp    1254 <main+0x134>
mov    -0x208(%rbp),%esi
movslq -0x208(%rbp),%rax
movss  -0x1d0(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
lea    0xd7b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x208(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x208(%rbp)
jmp    1229 <main+0x109>
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <omp_get_thread_num@plt>
mov    %eax,-0x210(%rbp)
movl   $0x0,-0x208(%rbp)
cmpl   $0xa,-0x208(%rbp)
jge    1415 <main+0x2f5>
movl   $0x0,-0x20c(%rbp)
cmpl   $0xa,-0x20c(%rbp)
jge    1393 <main+0x273>
movslq -0x208(%rbp),%rcx
lea    -0x1a0(%rbp),%rax
imul   $0x28,%rcx,%rcx
add    %rcx,%rax
movslq -0x20c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movslq -0x208(%rbp),%rax
movss  -0x1d0(%rbp,%rax,4),%xmm2
ff ff
movslq -0x208(%rbp),%rax
movss  -0x200(%rbp,%rax,4),%xmm1
ff ff
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x200(%rbp,%rax,4)
ff ff
mov    -0x20c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20c(%rbp)
jmp    1320 <main+0x200>
movss  -0x204(%rbp),%xmm0
ff
movslq -0x208(%rbp),%rax
addss  -0x200(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x204(%rbp)
ff
mov    -0x210(%rbp),%esi
mov    -0x208(%rbp),%edx
mov    -0x208(%rbp),%ecx
movslq -0x208(%rbp),%rax
movss  -0x200(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
lea    0xc8c(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x204(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xc96(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x208(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x208(%rbp)
jmp    1309 <main+0x1e9>
movss  -0x204(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xc7d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x200,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x60(%rsp)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xea8(%rip),%xmm1
movaps %xmm1,0x80(%rsp)
movabs $0x4120000041100000,%rax
mov    %rax,0x90(%rsp)
lea    0x94(%rsp),%rbp
movl   $0x3f800000,0x10(%rsp)
3f
movups %xmm0,0x98(%rsp)
movups %xmm1,0xa8(%rsp)
mov    %rax,0xb8(%rsp)
movabs $0x4040000040000000,%rcx
mov    %rcx,0x14(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm1,0xd0(%rsp)
mov    %rax,0xe0(%rsp)
movups %xmm0,0xe8(%rsp)
movups %xmm1,0xf8(%rsp)
mov    %rax,0x108(%rsp)
movabs $0x40a0000040800000,%rcx
mov    %rcx,0x1c(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm1,0x120(%rsp)
mov    %rax,0x130(%rsp)
movups %xmm0,0x138(%rsp)
movups %xmm1,0x148(%rsp)
mov    %rax,0x158(%rsp)
movl   $0x40c00000,0x24(%rsp)
40
movaps %xmm0,0x160(%rsp)
movaps %xmm1,0x170(%rsp)
mov    %rax,0x180(%rsp)
movabs $0x4100000040e00000,%rcx
mov    %rcx,0x28(%rsp)
movups %xmm0,0x188(%rsp)
movups %xmm1,0x198(%rsp)
mov    %rax,0x1a8(%rsp)
movaps %xmm0,0x1b0(%rsp)
movaps %xmm1,0x1c0(%rsp)
mov    %rax,0x1d0(%rsp)
movl   $0x41100000,0x30(%rsp)
41
movups %xmm0,0x1d8(%rsp)
movups %xmm1,0x1e8(%rsp)
mov    %rax,0x1f8(%rsp)
movl   $0x41200000,0x34(%rsp)
41
lea    0xdf1(%rip),%rdi
call   1030 <puts@plt>
lea    0xd5e(%rip),%r14
lea    0xd61(%rip),%r12
lea    0xd60(%rip),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x0(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x10(%rsp,%rbx,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbx
add    $0x28,%rbp
cmp    $0xa,%rbx
jne    12e0 <main+0x1b0>
lea    0xcf9(%rip),%rdi
call   1030 <puts@plt>
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
mov    %eax,%r12d
lea    0x94(%rsp),%rbp
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
lea    0xc3d(%rip),%r14
lea    0xc5a(%rip),%r15
nopl   0x0(%rax)
movss  0x10(%rsp,%rbx,4),%xmm0
movss  -0x24(%rbp),%xmm1
mulss  %xmm0,%xmm1
addss  0x40(%rsp,%rbx,4),%xmm1
movss  -0x20(%rbp),%xmm2
mulss  %xmm0,%xmm2
addss  %xmm1,%xmm2
movss  -0x1c(%rbp),%xmm1
mulss  %xmm0,%xmm1
addss  %xmm2,%xmm1
movss  -0x18(%rbp),%xmm2
mulss  %xmm0,%xmm2
movss  -0x14(%rbp),%xmm3
addss  %xmm1,%xmm2
mulss  %xmm0,%xmm3
movss  -0x10(%rbp),%xmm1
mulss  %xmm0,%xmm1
addss  %xmm2,%xmm3
addss  %xmm3,%xmm1
movss  -0xc(%rbp),%xmm2
mulss  %xmm0,%xmm2
addss  %xmm1,%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm0,%xmm1
movss  -0x4(%rbp),%xmm3
addss  %xmm2,%xmm1
mulss  %xmm0,%xmm3
mulss  0x0(%rbp),%xmm0
addss  %xmm1,%xmm3
addss  %xmm3,%xmm0
movss  %xmm0,0x40(%rsp,%rbx,4)
movss  0x4(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    %r12d,%esi
mov    %ebx,%edx
mov    %ebx,%ecx
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
movsd  %xmm0,0x8(%rsp)
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbx
add    $0x28,%rbp
cmp    $0xa,%rbx
jne    1410 <main+0x2e0>
lea    0xb84(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x200,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [44 x i8] c"\0AStarting values of matrix A and vector b:\0A\00"
@.str.1 = [10 x i8] c" A[%d]= \00"
@.str.2 = [6 x i8] c"%.1f \00"
@.str.3 = [15 x i8] c" b[%d]= %.1f\0A\00"
@.str.4 = [25 x i8] c"\0AResults by thread/row:\0A\00"
@.str.5 = [36 x i8] c" thread %d did row %d\09 c[%d]=%.2f\09\00"
@.str.6 = [21 x i8] c"Running total= %.2f\0A\00"
@.str.7 = [47 x i8] c"\0AMatrix-vector total - sum of all c[] = %.2f\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x [10 x float]]
%3 = alloca [10 x float]
%4 = alloca [10 x float]
%5 = alloca float
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store float 0.000000e+00, float* %5
store i32 0, i32* %6
br label %9
9: ; preds = %43, %0
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %46
12: ; preds = %9
store i32 0, i32* %7
br label %13
13: ; preds = %28, %12
%14 = load i32, i32* %7
%15 = icmp slt i32 %14, 10
br i1 %15, label %16, label %31
16: ; preds = %13
%17 = load i32, i32* %7
%18 = add nsw i32 %17, 1
%19 = sitofp i32 %18 to double
%20 = fmul double %19, 1.000000e+00
%21 = fptrunc double %20 to float
%22 = load i32, i32* %6
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %2, i64 0, i64 %23
%25 = load i32, i32* %7
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x float], [10 x float]* %24, i64 0, i64 %26
store float %21, float* %27
br label %28
28: ; preds = %16
%29 = load i32, i32* %7
%30 = add nsw i32 %29, 1
store i32 %30, i32* %7
br label %13
31: ; preds = %13
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
%34 = sitofp i32 %33 to double
%35 = fmul double 1.000000e+00, %34
%36 = fptrunc double %35 to float
%37 = load i32, i32* %6
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [10 x float], [10 x float]* %3, i64 0, i64 %38
store float %36, float* %39
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10 x float], [10 x float]* %4, i64 0, i64 %41
store float 0.000000e+00, float* %42
br label %43
43: ; preds = %31
%44 = load i32, i32* %6
%45 = add nsw i32 %44, 1
store i32 %45, i32* %6
br label %9
46: ; preds = %9
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %6
br label %48
48: ; preds = %78, %46
%49 = load i32, i32* %6
%50 = icmp slt i32 %49, 10
br i1 %50, label %51, label %81
51: ; preds = %48
%52 = load i32, i32* %6
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %52)
store i32 0, i32* %7
br label %54
54: ; preds = %67, %51
%55 = load i32, i32* %7
%56 = icmp slt i32 %55, 10
br i1 %56, label %57, label %70
57: ; preds = %54
%58 = load i32, i32* %6
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %2, i64 0, i64 %59
%61 = load i32, i32* %7
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x float], [10 x float]* %60, i64 0, i64 %62
%64 = load float, float* %63
%65 = fpext float %64 to double
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %65)
br label %67
67: ; preds = %57
%68 = load i32, i32* %7
%69 = add nsw i32 %68, 1
store i32 %69, i32* %7
br label %54
70: ; preds = %54
%71 = load i32, i32* %6
%72 = load i32, i32* %6
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x float], [10 x float]* %3, i64 0, i64 %73
%75 = load float, float* %74
%76 = fpext float %75 to double
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %71, double %76)
br label %78
78: ; preds = %70
%79 = load i32, i32* %6
%80 = add nsw i32 %79, 1
store i32 %80, i32* %6
br label %48
81: ; preds = %48
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%83 = call i32 (...) @omp_get_thread_num()
store i32 %83, i32* %8
store i32 0, i32* %6
br label %84
84: ; preds = %130, %81
%85 = load i32, i32* %6
%86 = icmp slt i32 %85, 10
br i1 %86, label %87, label %133
87: ; preds = %84
store i32 0, i32* %7
br label %88
88: ; preds = %108, %87
%89 = load i32, i32* %7
%90 = icmp slt i32 %89, 10
br i1 %90, label %91, label %111
91: ; preds = %88
%92 = load i32, i32* %6
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %2, i64 0, i64 %93
%95 = load i32, i32* %7
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [10 x float], [10 x float]* %94, i64 0, i64 %96
%98 = load float, float* %97
%99 = load i32, i32* %6
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [10 x float], [10 x float]* %3, i64 0, i64 %100
%102 = load float, float* %101
%103 = load i32, i32* %6
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [10 x float], [10 x float]* %4, i64 0, i64 %104
%106 = load float, float* %105
%107 = call float @llvm.fmuladd.f32(float %98, float %102, float %106)
store float %107, float* %105
br label %108
108: ; preds = %91
%109 = load i32, i32* %7
%110 = add nsw i32 %109, 1
store i32 %110, i32* %7
br label %88
111: ; preds = %88
%112 = load float, float* %5
%113 = load i32, i32* %6
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [10 x float], [10 x float]* %4, i64 0, i64 %114
%116 = load float, float* %115
%117 = fadd float %112, %116
store float %117, float* %5
%118 = load i32, i32* %8
%119 = load i32, i32* %6
%120 = load i32, i32* %6
%121 = load i32, i32* %6
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [10 x float], [10 x float]* %4, i64 0, i64 %122
%124 = load float, float* %123
%125 = fpext float %124 to double
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i32 %118, i32 %119, i32 %120, double %125)
%127 = load float, float* %5
%128 = fpext float %127 to double
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), double %128)
br label %130
130: ; preds = %111
%131 = load i32, i32* %6
%132 = add nsw i32 %131, 1
store i32 %132, i32* %6
br label %84
133: ; preds = %84
%134 = load float, float* %5
%135 = fpext float %134 to double
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), double %135)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [10 x i8] c" A[%d]= \00"
@.str.2 = [6 x i8] c"%.1f \00"
@.str.3 = [15 x i8] c" b[%d]= %.1f\0A\00"
@.str.5 = [36 x i8] c" thread %d did row %d\09 c[%d]=%.2f\09\00"
@.str.6 = [21 x i8] c"Running total= %.2f\0A\00"
@.str.7 = [47 x i8] c"\0AMatrix-vector total - sum of all c[] = %.2f\0A\0A\00"
@str = [43 x i8] c"\0AStarting values of matrix A and vector b:\00"
@str.8 = [24 x i8] c"\0AResults by thread/row:\00"
define i32 @main() {
%1 = alloca [10 x [10 x float]]
%2 = alloca [10 x float]
%3 = alloca [10 x float]
%4 = bitcast [10 x float]* %3 to i8*
%5 = bitcast [10 x [10 x float]]* %1 to i8*
%6 = bitcast [10 x float]* %2 to i8*
%7 = bitcast [10 x [10 x float]]* %1 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %7
%8 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 0, i64 4
%9 = bitcast float* %8 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %9
%10 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 0, i64 8
store float 9.000000e+00, float* %10
%11 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 0, i64 9
store float 1.000000e+01, float* %11
%12 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 0
store float 1.000000e+00, float* %12
%13 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 1, i64 0
%14 = bitcast float* %13 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %14
%15 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 1, i64 4
%16 = bitcast float* %15 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %16
%17 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 1, i64 8
store float 9.000000e+00, float* %17
%18 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 1, i64 9
store float 1.000000e+01, float* %18
%19 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 1
store float 2.000000e+00, float* %19
%20 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 2, i64 0
%21 = bitcast float* %20 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %21
%22 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 2, i64 4
%23 = bitcast float* %22 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %23
%24 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 2, i64 8
store float 9.000000e+00, float* %24
%25 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 2, i64 9
store float 1.000000e+01, float* %25
%26 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 2
store float 3.000000e+00, float* %26
%27 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 3, i64 0
%28 = bitcast float* %27 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %28
%29 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 3, i64 4
%30 = bitcast float* %29 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %30
%31 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 3, i64 8
store float 9.000000e+00, float* %31
%32 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 3, i64 9
store float 1.000000e+01, float* %32
%33 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 3
store float 4.000000e+00, float* %33
%34 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 4, i64 0
%35 = bitcast float* %34 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %35
%36 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 4, i64 4
%37 = bitcast float* %36 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %37
%38 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 4, i64 8
store float 9.000000e+00, float* %38
%39 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 4, i64 9
store float 1.000000e+01, float* %39
%40 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 4
store float 5.000000e+00, float* %40
%41 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 5, i64 0
%42 = bitcast float* %41 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %42
%43 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 5, i64 4
%44 = bitcast float* %43 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %44
%45 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 5, i64 8
store float 9.000000e+00, float* %45
%46 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 5, i64 9
store float 1.000000e+01, float* %46
%47 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 5
store float 6.000000e+00, float* %47
%48 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 6, i64 0
%49 = bitcast float* %48 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %49
%50 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 6, i64 4
%51 = bitcast float* %50 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %51
%52 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 6, i64 8
store float 9.000000e+00, float* %52
%53 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 6, i64 9
store float 1.000000e+01, float* %53
%54 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 6
store float 7.000000e+00, float* %54
%55 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 7, i64 0
%56 = bitcast float* %55 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %56
%57 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 7, i64 4
%58 = bitcast float* %57 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %58
%59 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 7, i64 8
store float 9.000000e+00, float* %59
%60 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 7, i64 9
store float 1.000000e+01, float* %60
%61 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 7
store float 8.000000e+00, float* %61
%62 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 8, i64 0
%63 = bitcast float* %62 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %63
%64 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 8, i64 4
%65 = bitcast float* %64 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %65
%66 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 8, i64 8
store float 9.000000e+00, float* %66
%67 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 8, i64 9
store float 1.000000e+01, float* %67
%68 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 8
store float 9.000000e+00, float* %68
%69 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 9, i64 0
%70 = bitcast float* %69 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, <4 x float>* %70
%71 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 9, i64 4
%72 = bitcast float* %71 to <4 x float>*
store <4 x float> <float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00>, <4 x float>* %72
%73 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 9, i64 8
store float 9.000000e+00, float* %73
%74 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 9, i64 9
store float 1.000000e+01, float* %74
%75 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 9
store float 1.000000e+01, float* %75
%76 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
br label %77
77: ; preds = %0, %77
%78 = phi i64 [ 0, %0 ], [ %125, %77 ]
%79 = trunc i64 %78 to i32
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %79)
%81 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 0
%82 = load float, float* %81
%83 = fpext float %82 to double
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %83)
%85 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 1
%86 = load float, float* %85
%87 = fpext float %86 to double
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %87)
%89 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 2
%90 = load float, float* %89
%91 = fpext float %90 to double
%92 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %91)
%93 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 3
%94 = load float, float* %93
%95 = fpext float %94 to double
%96 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %95)
%97 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 4
%98 = load float, float* %97
%99 = fpext float %98 to double
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %99)
%101 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 5
%102 = load float, float* %101
%103 = fpext float %102 to double
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %103)
%105 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 6
%106 = load float, float* %105
%107 = fpext float %106 to double
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %107)
%109 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 7
%110 = load float, float* %109
%111 = fpext float %110 to double
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %111)
%113 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 8
%114 = load float, float* %113
%115 = fpext float %114 to double
%116 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %115)
%117 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %78, i64 9
%118 = load float, float* %117
%119 = fpext float %118 to double
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %119)
%121 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %78
%122 = load float, float* %121
%123 = fpext float %122 to double
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %79, double %123)
%125 = add nuw nsw i64 %78, 1
%126 = icmp eq i64 %125, 10
br i1 %126, label %127, label %77
127: ; preds = %77
%128 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.8, i64 0, i64 0))
%129 = tail call i32 (...) @omp_get_thread_num()
br label %130
130: ; preds = %127, %130
%131 = phi i64 [ 0, %127 ], [ %173, %130 ]
%132 = phi float [ 0.000000e+00, %127 ], [ %167, %130 ]
%133 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %131
%134 = load float, float* %133
%135 = getelementptr inbounds [10 x float], [10 x float]* %3, i64 0, i64 %131
%136 = load float, float* %135
%137 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 0
%138 = load float, float* %137
%139 = tail call float @llvm.fmuladd.f32(float %138, float %134, float %136)
%140 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 1
%141 = load float, float* %140
%142 = tail call float @llvm.fmuladd.f32(float %141, float %134, float %139)
%143 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 2
%144 = load float, float* %143
%145 = tail call float @llvm.fmuladd.f32(float %144, float %134, float %142)
%146 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 3
%147 = load float, float* %146
%148 = tail call float @llvm.fmuladd.f32(float %147, float %134, float %145)
%149 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 4
%150 = load float, float* %149
%151 = tail call float @llvm.fmuladd.f32(float %150, float %134, float %148)
%152 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 5
%153 = load float, float* %152
%154 = tail call float @llvm.fmuladd.f32(float %153, float %134, float %151)
%155 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 6
%156 = load float, float* %155
%157 = tail call float @llvm.fmuladd.f32(float %156, float %134, float %154)
%158 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 7
%159 = load float, float* %158
%160 = tail call float @llvm.fmuladd.f32(float %159, float %134, float %157)
%161 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 8
%162 = load float, float* %161
%163 = tail call float @llvm.fmuladd.f32(float %162, float %134, float %160)
%164 = getelementptr inbounds [10 x [10 x float]], [10 x [10 x float]]* %1, i64 0, i64 %131, i64 9
%165 = load float, float* %164
%166 = tail call float @llvm.fmuladd.f32(float %165, float %134, float %163)
store float %166, float* %135
%167 = fadd float %132, %166
%168 = fpext float %166 to double
%169 = trunc i64 %131 to i32
%170 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i32 %129, i32 %169, i32 %169, double %168)
%171 = fpext float %167 to double
%172 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), double %171)
%173 = add nuw nsw i64 %131, 1
%174 = icmp eq i64 %173, 10
br i1 %174, label %175, label %130
175: ; preds = %130
%176 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), double %171)
ret i32 0
}