#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 */
double volTriangle2D(double *, double *, double *);
void volume2D(double *volu, const double *yc, const double *m, const int n) {
  double yA[2], yB[2], yC[2], yD[2], yM[2];
  double vol[4];
  int i1, i2, r, id, idn, comp;
  const int m1 = m[0], m2 = m[1];
  const int nn = (m1 + 1) * (m2 + 1);
  const int inc_x = 1;
  const int inc_y = m1 + 1;
  const double *ptr;
#pragma omp parallel for default(shared) private(ptr, id, idn, i1, i2, r, vol, \
                                                 comp, yA, yB, yC, yD, yM)
  for (i1 = 0; i1 < m1; i1++) {
    for (i2 = 0; i2 < m2; i2++) {
      idn = i1 + i2 * inc_y;
      comp = 0;
      for (r = 0; r < 2; r++) {
        ptr = yc + idn + comp;
        yA[r] = *ptr;
        ptr = ptr + inc_x;
        yB[r] = *ptr;
        ptr = ptr + inc_y;
        yD[r] = *ptr;
        ptr = ptr - inc_x;
        yC[r] = *ptr;
        yM[r] = 0.25 * (yA[r] + yB[r] + yC[r] + yD[r]);
        comp += nn;
      }
      vol[0] = volTriangle2D(yA, yB, yM);
      vol[1] = volTriangle2D(yB, yD, yM);
      vol[2] = volTriangle2D(yD, yC, yM);
      vol[3] = volTriangle2D(yC, yA, yM);
      id = i1 + i2 * m1;
      for (r = 0; r < 4; r++) {
        volu[id] = vol[r];
        id += n;
      }
    }
  }
  return;
}


x86 assembly (clang, -O0):
<volume2D>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x18(%rbp),%rax
cvttsd2si (%rax),%eax
mov    %eax,-0xac(%rbp)
mov    -0x18(%rbp),%rax
cvttsd2si 0x8(%rax),%eax
mov    %eax,-0xb0(%rbp)
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    -0xb0(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
mov    %eax,-0xb4(%rbp)
movl   $0x1,-0xb8(%rbp)
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbc(%rbp)
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0xac(%rbp),%eax
jge    142e <volume2D+0x31e>
movl   $0x0,-0x98(%rbp)
mov    -0x98(%rbp),%eax
cmp    -0xb0(%rbp),%eax
jge    1415 <volume2D+0x305>
mov    -0x94(%rbp),%eax
mov    -0x98(%rbp),%ecx
imul   -0xbc(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0xa4(%rbp)
movl   $0x0,-0xa8(%rbp)
movl   $0x0,-0x9c(%rbp)
cmpl   $0x2,-0x9c(%rbp)
jge    1329 <volume2D+0x219>
mov    -0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0xa8(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rax
movsd  (%rax),%xmm0
movslq -0x9c(%rbp),%rax
movsd  %xmm0,-0x30(%rbp,%rax,8)
mov    -0xc8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rax
movsd  (%rax),%xmm0
movslq -0x9c(%rbp),%rax
movsd  %xmm0,-0x40(%rbp,%rax,8)
mov    -0xc8(%rbp),%rax
movslq -0xbc(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rax
movsd  (%rax),%xmm0
movslq -0x9c(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0xc8(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rax
movsd  (%rax),%xmm0
movslq -0x9c(%rbp),%rax
movsd  %xmm0,-0x50(%rbp,%rax,8)
movslq -0x9c(%rbp),%rax
movsd  -0x30(%rbp,%rax,8),%xmm1
movslq -0x9c(%rbp),%rax
addsd  -0x40(%rbp,%rax,8),%xmm1
movslq -0x9c(%rbp),%rax
addsd  -0x50(%rbp,%rax,8),%xmm1
movslq -0x9c(%rbp),%rax
addsd  -0x60(%rbp,%rax,8),%xmm1
movsd  0xd0e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movslq -0x9c(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0xb4(%rbp),%eax
add    -0xa8(%rbp),%eax
mov    %eax,-0xa8(%rbp)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    11e2 <volume2D+0xd2>
lea    -0x30(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x70(%rbp),%rdx
call   1030 <volTriangle2D@plt>
movsd  %xmm0,-0x90(%rbp)
ff
lea    -0x40(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x70(%rbp),%rdx
call   1030 <volTriangle2D@plt>
movsd  %xmm0,-0x88(%rbp)
ff
lea    -0x60(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x70(%rbp),%rdx
call   1030 <volTriangle2D@plt>
movsd  %xmm0,-0x80(%rbp)
lea    -0x50(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x70(%rbp),%rdx
call   1030 <volTriangle2D@plt>
movsd  %xmm0,-0x78(%rbp)
mov    -0x94(%rbp),%eax
mov    -0x98(%rbp),%ecx
imul   -0xac(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0xa0(%rbp)
movl   $0x0,-0x9c(%rbp)
cmpl   $0x4,-0x9c(%rbp)
jge    13fc <volume2D+0x2ec>
movslq -0x9c(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
mov    -0x8(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    -0xa0(%rbp),%eax
mov    %eax,-0xa0(%rbp)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    13ac <volume2D+0x29c>
jmp    1401 <volume2D+0x2f1>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    11a1 <volume2D+0x91>
jmp    141a <volume2D+0x30a>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1185 <volume2D+0x75>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<volume2D>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
cvttsd2si (%rdx),%r9d
test   %r9d,%r9d
jle    1366 <volume2D+0x256>
mov    %rdi,%r15
cvttsd2si 0x8(%rdx),%r8d
lea    0x1(%r9),%ebx
lea    0x1(%r8),%edx
imul   %ebx,%edx
mov    %ebx,%ebx
movslq %edx,%r11
movslq %ecx,%rcx
mov    %r9d,%eax
mov    %rax,0x8(%rsp)
mov    %r8,0x10(%rsp)
mov    %r8d,%eax
xor    %r8d,%r8d
movapd 0xe99(%rip),%xmm8
lea    0xa0(%rsp),%rdi
lea    0x90(%rsp),%r12
lea    0xb0(%rsp),%rdx
mov    %r9,0x48(%rsp)
mov    %rcx,0x40(%rsp)
mov    %rax,0x38(%rsp)
mov    %rsi,0x30(%rsp)
mov    %r11,0x28(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r15,0x18(%rsp)
jmp    11bf <volume2D+0xaf>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r8
cmp    0x8(%rsp),%r8
je     1366 <volume2D+0x256>
cmpl   $0x0,0x10(%rsp)
jle    11b0 <volume2D+0xa0>
xor    %r13d,%r13d
mov    %r8d,%r14d
mov    %r8,0x50(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq %r14d,%r14
mov    %r13,%rax
imul   %rbx,%rax
add    %r8,%rax
lea    (%rsi,%rax,8),%rcx
movsd  (%rsi,%rax,8),%xmm0
movsd  %xmm0,0xa0(%rsp)
movsd  0x8(%rsi,%rax,8),%xmm1
movsd  %xmm1,0x90(%rsp)
movsd  0x8(%rcx,%rbx,8),%xmm2
movsd  %xmm2,0x70(%rsp)
movsd  (%rcx,%rbx,8),%xmm3
movsd  %xmm3,0x80(%rsp)
lea    (%rcx,%r11,8),%rax
movsd  (%rcx,%r11,8),%xmm4
movsd  %xmm4,0xa8(%rsp)
movsd  0x8(%rcx,%r11,8),%xmm5
movsd  %xmm5,0x98(%rsp)
movsd  0x8(%rax,%rbx,8),%xmm6
movsd  %xmm6,0x78(%rsp)
movsd  (%rax,%rbx,8),%xmm7
movsd  %xmm7,0x88(%rsp)
unpcklpd %xmm4,%xmm0
unpcklpd %xmm5,%xmm1
addpd  %xmm0,%xmm1
unpcklpd %xmm7,%xmm3
addpd  %xmm1,%xmm3
unpcklpd %xmm6,%xmm2
addpd  %xmm3,%xmm2
mulpd  %xmm8,%xmm2
movapd %xmm2,0xb0(%rsp)
mov    %r12,%rsi
mov    %rdi,%r15
mov    %rdx,%rbx
call   1030 <volTriangle2D@plt>
movsd  %xmm0,0x68(%rsp)
mov    %r12,%rdi
lea    0x70(%rsp),%rbp
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1030 <volTriangle2D@plt>
movsd  %xmm0,0x60(%rsp)
mov    %rbp,%rdi
lea    0x80(%rsp),%rbp
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1030 <volTriangle2D@plt>
movsd  %xmm0,0x58(%rsp)
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1030 <volTriangle2D@plt>
mov    %rbx,%rdx
mov    %r15,%rdi
movapd 0xd0b(%rip),%xmm8
mov    0x50(%rsp),%r8
mov    0x40(%rsp),%rcx
mov    0x20(%rsp),%rbx
mov    0x18(%rsp),%r15
mov    0x28(%rsp),%r11
mov    0x48(%rsp),%r9
mov    0x30(%rsp),%rsi
movsd  0x68(%rsp),%xmm1
movsd  %xmm1,(%r15,%r14,8)
lea    (%r14,%rcx,1),%rax
movsd  0x60(%rsp),%xmm1
movsd  %xmm1,(%r15,%rax,8)
add    %rcx,%rax
movsd  0x58(%rsp),%xmm1
movsd  %xmm1,(%r15,%rax,8)
add    %rcx,%rax
movsd  %xmm0,(%r15,%rax,8)
mov    0x38(%rsp),%rax
add    $0x1,%r13
add    %r9d,%r14d
cmp    %rax,%r13
jne    11e0 <volume2D+0xd0>
jmp    11b0 <volume2D+0xa0>
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @volume2D(double* %0, double* %1, double* %2, i32 %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca i32
%9 = alloca [2 x double]
%10 = alloca [2 x double]
%11 = alloca [2 x double]
%12 = alloca [2 x double]
%13 = alloca [2 x double]
%14 = alloca [4 x double]
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca double*
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store i32 %3, i32* %8
%27 = load double*, double** %7
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load double, double* %28
%30 = fptosi double %29 to i32
store i32 %30, i32* %21
%31 = load double*, double** %7
%32 = getelementptr inbounds double, double* %31, i64 1
%33 = load double, double* %32
%34 = fptosi double %33 to i32
store i32 %34, i32* %22
%35 = load i32, i32* %21
%36 = add nsw i32 %35, 1
%37 = load i32, i32* %22
%38 = add nsw i32 %37, 1
%39 = mul nsw i32 %36, %38
store i32 %39, i32* %23
store i32 1, i32* %24
%40 = load i32, i32* %21
%41 = add nsw i32 %40, 1
store i32 %41, i32* %25
store i32 0, i32* %15
br label %42
42: ; preds = %174, %4
%43 = load i32, i32* %15
%44 = load i32, i32* %21
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %177
46: ; preds = %42
store i32 0, i32* %16
br label %47
47: ; preds = %170, %46
%48 = load i32, i32* %16
%49 = load i32, i32* %22
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %173
51: ; preds = %47
%52 = load i32, i32* %15
%53 = load i32, i32* %16
%54 = load i32, i32* %25
%55 = mul nsw i32 %53, %54
%56 = add nsw i32 %52, %55
store i32 %56, i32* %19
store i32 0, i32* %20
store i32 0, i32* %17
br label %57
57: ; preds = %122, %51
%58 = load i32, i32* %17
%59 = icmp slt i32 %58, 2
br i1 %59, label %60, label %125
60: ; preds = %57
%61 = load double*, double** %6
%62 = load i32, i32* %19
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load i32, i32* %20
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
store double* %67, double** %26
%68 = load double*, double** %26
%69 = load double, double* %68
%70 = load i32, i32* %17
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 %71
store double %69, double* %72
%73 = load double*, double** %26
%74 = getelementptr inbounds double, double* %73, i64 1
store double* %74, double** %26
%75 = load double*, double** %26
%76 = load double, double* %75
%77 = load i32, i32* %17
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 %78
store double %76, double* %79
%80 = load double*, double** %26
%81 = load i32, i32* %25
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %80, i64 %82
store double* %83, double** %26
%84 = load double*, double** %26
%85 = load double, double* %84
%86 = load i32, i32* %17
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 %87
store double %85, double* %88
%89 = load double*, double** %26
%90 = getelementptr inbounds double, double* %89, i64 -1
store double* %90, double** %26
%91 = load double*, double** %26
%92 = load double, double* %91
%93 = load i32, i32* %17
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 %94
store double %92, double* %95
%96 = load i32, i32* %17
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 %97
%99 = load double, double* %98
%100 = load i32, i32* %17
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 %101
%103 = load double, double* %102
%104 = fadd double %99, %103
%105 = load i32, i32* %17
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 %106
%108 = load double, double* %107
%109 = fadd double %104, %108
%110 = load i32, i32* %17
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 %111
%113 = load double, double* %112
%114 = fadd double %109, %113
%115 = fmul double 2.500000e-01, %114
%116 = load i32, i32* %17
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 %117
store double %115, double* %118
%119 = load i32, i32* %23
%120 = load i32, i32* %20
%121 = add nsw i32 %120, %119
store i32 %121, i32* %20
br label %122
122: ; preds = %60
%123 = load i32, i32* %17
%124 = add nsw i32 %123, 1
store i32 %124, i32* %17
br label %57
125: ; preds = %57
%126 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%127 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%128 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%129 = call double @volTriangle2D(double* %126, double* %127, double* %128)
%130 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 0
store double %129, double* %130
%131 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%132 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%133 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%134 = call double @volTriangle2D(double* %131, double* %132, double* %133)
%135 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 1
store double %134, double* %135
%136 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%137 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%138 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%139 = call double @volTriangle2D(double* %136, double* %137, double* %138)
%140 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 2
store double %139, double* %140
%141 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%142 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%143 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%144 = call double @volTriangle2D(double* %141, double* %142, double* %143)
%145 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 3
store double %144, double* %145
%146 = load i32, i32* %15
%147 = load i32, i32* %16
%148 = load i32, i32* %21
%149 = mul nsw i32 %147, %148
%150 = add nsw i32 %146, %149
store i32 %150, i32* %18
store i32 0, i32* %17
br label %151
151: ; preds = %166, %125
%152 = load i32, i32* %17
%153 = icmp slt i32 %152, 4
br i1 %153, label %154, label %169
154: ; preds = %151
%155 = load i32, i32* %17
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [4 x double], [4 x double]* %14, i64 0, i64 %156
%158 = load double, double* %157
%159 = load double*, double** %5
%160 = load i32, i32* %18
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds double, double* %159, i64 %161
store double %158, double* %162
%163 = load i32, i32* %8
%164 = load i32, i32* %18
%165 = add nsw i32 %164, %163
store i32 %165, i32* %18
br label %166
166: ; preds = %154
%167 = load i32, i32* %17
%168 = add nsw i32 %167, 1
store i32 %168, i32* %17
br label %151
169: ; preds = %151
br label %170
170: ; preds = %169
%171 = load i32, i32* %16
%172 = add nsw i32 %171, 1
store i32 %172, i32* %16
br label %47
173: ; preds = %47
br label %174
174: ; preds = %173
%175 = load i32, i32* %15
%176 = add nsw i32 %175, 1
store i32 %176, i32* %15
br label %42
177: ; preds = %42
ret void
}

LLVM IR (-O2):
define void @volume2D(double* nocapture writeonly %0, double* nocapture %1, double* nocapture %2, i32 %3) {
%5 = alloca [2 x double]
%6 = alloca [2 x double]
%7 = alloca [2 x double]
%8 = alloca [2 x double]
%9 = alloca <2 x double>
%10 = bitcast [2 x double]* %5 to i8*
%11 = bitcast [2 x double]* %6 to i8*
%12 = bitcast [2 x double]* %7 to i8*
%13 = bitcast [2 x double]* %8 to i8*
%14 = bitcast <2 x double>* %9 to i8*
%15 = load double, double* %2
%16 = fptosi double %15 to i32
%17 = getelementptr inbounds double, double* %2, i64 1
%18 = load double, double* %17
%19 = fptosi double %18 to i32
%20 = add nsw i32 %16, 1
%21 = icmp sgt i32 %16, 0
br i1 %21, label %22, label %95
22: ; preds = %4
%23 = add nsw i32 %19, 1
%24 = mul i32 %23, %20
%25 = icmp sgt i32 %19, 0
%26 = zext i32 %20 to i64
%27 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 0
%28 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 0
%29 = getelementptr inbounds <2 x double>, <2 x double>* %9, i64 0, i64 0
%30 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%31 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 0
%32 = sext i32 %24 to i64
%33 = sext i32 %3 to i64
%34 = zext i32 %16 to i64
%35 = zext i32 %19 to i64
%36 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 1
%37 = getelementptr inbounds [2 x double], [2 x double]* %6, i64 0, i64 1
%38 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 1
%39 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 1
br label %40
40: ; preds = %22, %92
%41 = phi i64 [ 0, %22 ], [ %93, %92 ]
br i1 %25, label %42, label %92
42: ; preds = %40
%43 = trunc i64 %41 to i32
br label %44
44: ; preds = %42, %44
%45 = phi i64 [ 0, %42 ], [ %89, %44 ]
%46 = phi i32 [ %43, %42 ], [ %90, %44 ]
%47 = sext i32 %46 to i64
%48 = mul nsw i64 %45, %26
%49 = add nuw nsw i64 %48, %41
%50 = getelementptr inbounds double, double* %1, i64 %49
%51 = load double, double* %50
store double %51, double* %27
%52 = getelementptr inbounds double, double* %50, i64 1
%53 = load double, double* %52
store double %53, double* %28
%54 = getelementptr inbounds double, double* %52, i64 %26
%55 = load double, double* %54
store double %55, double* %30
%56 = getelementptr inbounds double, double* %54, i64 -1
%57 = load double, double* %56
store double %57, double* %31
%58 = getelementptr inbounds double, double* %50, i64 %32
%59 = load double, double* %58
store double %59, double* %36
%60 = getelementptr inbounds double, double* %58, i64 1
%61 = load double, double* %60
store double %61, double* %37
%62 = getelementptr inbounds double, double* %60, i64 %26
%63 = load double, double* %62
store double %63, double* %38
%64 = getelementptr inbounds double, double* %62, i64 -1
%65 = load double, double* %64
store double %65, double* %39
%66 = insertelement <2 x double> poison, double %51, i64 0
%67 = insertelement <2 x double> %66, double %59, i64 1
%68 = insertelement <2 x double> poison, double %53, i64 0
%69 = insertelement <2 x double> %68, double %61, i64 1
%70 = fadd <2 x double> %67, %69
%71 = insertelement <2 x double> poison, double %57, i64 0
%72 = insertelement <2 x double> %71, double %65, i64 1
%73 = fadd <2 x double> %70, %72
%74 = insertelement <2 x double> poison, double %55, i64 0
%75 = insertelement <2 x double> %74, double %63, i64 1
%76 = fadd <2 x double> %75, %73
%77 = fmul <2 x double> %76, <double 2.500000e-01, double 2.500000e-01>
store <2 x double> %77, <2 x double>* %9
%78 = call double @volTriangle2D(double* %27, double* %28, double* %29)
%79 = call double @volTriangle2D(double* %28, double* %30, double* %29)
%80 = call double @volTriangle2D(double* %30, double* %31, double* %29)
%81 = call double @volTriangle2D(double* %31, double* %27, double* %29)
%82 = getelementptr inbounds double, double* %0, i64 %47
store double %78, double* %82
%83 = add nsw i64 %47, %33
%84 = getelementptr inbounds double, double* %0, i64 %83
store double %79, double* %84
%85 = add nsw i64 %83, %33
%86 = getelementptr inbounds double, double* %0, i64 %85
store double %80, double* %86
%87 = add nsw i64 %85, %33
%88 = getelementptr inbounds double, double* %0, i64 %87
store double %81, double* %88
%89 = add nuw nsw i64 %45, 1
%90 = add i32 %46, %16
%91 = icmp eq i64 %89, %35
br i1 %91, label %92, label %44
92: ; preds = %44, %40
%93 = add nuw nsw i64 %41, 1
%94 = icmp eq i64 %93, %34
br i1 %94, label %95, label %40
95: ; preds = %92, %4
ret void
}