#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 pow(double, int);
double sqrt(double);
double calculateErrorNorm(double a[][100], double x[], double b[], int m,
                          int n) {
  int i, j;
  double multiply[100];
  double error[100];
  double sum = 0.0;
  double y[100][100];
  for (i = 1; i <= m; i++) {
    for (j = 1; j <= n; j++)
      sum = sum + a[i][j] * x[j];
    multiply[i] = sum;
    sum = 0.0;
  }
  for (i = 1; i <= m; i++)
    error[i] = multiply[i] - b[i];
  for (i = 1; i <= m; i++) {
    for (j = 1; j <= m; j++)
      y[i][j] = error[i] * error[j];
  }
  sum = 0.0;
  for (i = 1; i <= m; i++) {
    for (j = 1; j <= m; j++)
      sum = sum + pow(y[i][j], 2);
  }
  return sqrt(sum);
}


x86 assembly (clang, -O0):
<calculateErrorNorm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x13f10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x678(%rbp)
ff
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     11eb <calculateErrorNorm+0xcb>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     11bd <calculateErrorNorm+0x9d>
movsd  -0x678(%rbp),%xmm1
ff
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x678(%rbp)
ff
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1163 <calculateErrorNorm+0x43>
movsd  -0x678(%rbp),%xmm0
ff
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x350(%rbp,%rax,8)
ff ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x678(%rbp)
ff
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1150 <calculateErrorNorm+0x30>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1233 <calculateErrorNorm+0x113>
movslq -0x24(%rbp),%rax
movsd  -0x350(%rbp,%rax,8),%xmm0
ff ff
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x670(%rbp,%rax,8)
ff ff
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11f2 <calculateErrorNorm+0xd2>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     12b2 <calculateErrorNorm+0x192>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     129f <calculateErrorNorm+0x17f>
movslq -0x24(%rbp),%rax
movsd  -0x670(%rbp,%rax,8),%xmm0
ff ff
movslq -0x28(%rbp),%rax
mulsd  -0x670(%rbp,%rax,8),%xmm0
ff ff
movslq -0x24(%rbp),%rcx
lea    -0x13f00(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    124d <calculateErrorNorm+0x12d>
jmp    12a4 <calculateErrorNorm+0x184>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    123a <calculateErrorNorm+0x11a>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x678(%rbp)
ff
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1353 <calculateErrorNorm+0x233>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1340 <calculateErrorNorm+0x220>
movsd  -0x678(%rbp),%xmm0
ff
movsd  %xmm0,-0x13f08(%rbp)
ff
movslq -0x24(%rbp),%rcx
lea    -0x13f00(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x13f08(%rbp),%xmm0
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x678(%rbp)
ff
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12d7 <calculateErrorNorm+0x1b7>
jmp    1345 <calculateErrorNorm+0x225>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12c4 <calculateErrorNorm+0x1a4>
movsd  -0x678(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
add    $0x13f10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculateErrorNorm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x13ee8,%rsp
xorpd  %xmm4,%xmm4
test   %ecx,%ecx
jle    160d <calculateErrorNorm+0x4ed>
lea    0x1(%r8),%r9d
lea    0x1(%rcx),%r13d
lea    -0x1(%r9),%r11
add    $0xfffffffffffffffe,%r9
mov    %r11d,%r14d
and    $0x3,%r14d
and    $0xfffffffffffffffc,%r11
lea    0x340(%rdi),%rax
add    $0x320,%rdi
mov    $0x1,%r10d
jmp    1194 <calculateErrorNorm+0x74>
xchg   %ax,%ax
movsd  %xmm0,0x340(%rsp,%r10,8)
add    $0x1,%r10
add    $0x320,%rax
add    $0x320,%rdi
cmp    %r13,%r10
je     123d <calculateErrorNorm+0x11d>
xorpd  %xmm0,%xmm0
test   %r8d,%r8d
jle    1170 <calculateErrorNorm+0x50>
cmp    $0x3,%r9
jae    11b0 <calculateErrorNorm+0x90>
mov    $0x1,%ebx
test   %r14,%r14
jne    1215 <calculateErrorNorm+0xf5>
jmp    1170 <calculateErrorNorm+0x50>
nop
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  -0x18(%rax,%rbx,8),%xmm1
movsd  -0x10(%rax,%rbx,8),%xmm2
mulsd  0x8(%rsi,%rbx,8),%xmm1
mulsd  0x10(%rsi,%rbx,8),%xmm2
addsd  %xmm0,%xmm1
movsd  -0x8(%rax,%rbx,8),%xmm3
mulsd  0x18(%rsi,%rbx,8),%xmm3
addsd  %xmm1,%xmm2
movsd  (%rax,%rbx,8),%xmm0
mulsd  0x20(%rsi,%rbx,8),%xmm0
addsd  %xmm2,%xmm3
addsd  %xmm3,%xmm0
add    $0x4,%rbx
cmp    %rbx,%r11
jne    11c0 <calculateErrorNorm+0xa0>
add    $0x1,%rbx
test   %r14,%r14
je     1170 <calculateErrorNorm+0x50>
lea    (%rsi,%rbx,8),%r15
lea    (%rdi,%rbx,8),%rbx
xor    %ebp,%ebp
nop
movsd  (%rbx,%rbp,8),%xmm1
mulsd  (%r15,%rbp,8),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1220 <calculateErrorNorm+0x100>
jmp    1170 <calculateErrorNorm+0x50>
xorpd  %xmm4,%xmm4
test   %ecx,%ecx
jle    160d <calculateErrorNorm+0x4ed>
lea    -0x1(%r13),%r14
mov    $0x1,%eax
cmp    $0x4,%r14
jb     1340 <calculateErrorNorm+0x220>
mov    %r14,%rax
and    $0xfffffffffffffffc,%rax
lea    -0x4(%rax),%rsi
mov    %rsi,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
test   %rsi,%rsi
je     164a <calculateErrorNorm+0x52a>
mov    %rbp,%rdi
and    $0xfffffffffffffffe,%rdi
mov    $0x1,%esi
nopw   0x0(%rax,%rax,1)
movupd (%rdx,%rsi,8),%xmm0
movupd 0x10(%rdx,%rsi,8),%xmm1
movupd 0x340(%rsp,%rsi,8),%xmm2
subpd  %xmm0,%xmm2
movupd 0x350(%rsp,%rsi,8),%xmm0
subpd  %xmm1,%xmm0
movupd 0x360(%rsp,%rsi,8),%xmm1
movupd 0x370(%rsp,%rsi,8),%xmm3
movupd %xmm2,0x20(%rsp,%rsi,8)
movupd %xmm0,0x30(%rsp,%rsi,8)
movupd 0x20(%rdx,%rsi,8),%xmm0
subpd  %xmm0,%xmm1
movupd 0x30(%rdx,%rsi,8),%xmm0
subpd  %xmm0,%xmm3
movupd %xmm1,0x40(%rsp,%rsi,8)
movupd %xmm3,0x50(%rsp,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1290 <calculateErrorNorm+0x170>
test   $0x1,%bpl
je     1334 <calculateErrorNorm+0x214>
movupd 0x340(%rsp,%rsi,8),%xmm0
movupd 0x350(%rsp,%rsi,8),%xmm1
movupd (%rdx,%rsi,8),%xmm2
subpd  %xmm2,%xmm0
movupd 0x10(%rdx,%rsi,8),%xmm2
subpd  %xmm2,%xmm1
movupd %xmm0,0x20(%rsp,%rsi,8)
movupd %xmm1,0x30(%rsp,%rsi,8)
cmp    %rax,%r14
je     135d <calculateErrorNorm+0x23d>
or     $0x1,%rax
nopl   (%rax)
movsd  0x340(%rsp,%rax,8),%xmm0
subsd  (%rdx,%rax,8),%xmm0
movsd  %xmm0,0x20(%rsp,%rax,8)
add    $0x1,%rax
cmp    %rax,%r13
jne    1340 <calculateErrorNorm+0x220>
test   %ecx,%ecx
jle    160d <calculateErrorNorm+0x4ed>
lea    -0x5(%r13),%r10
mov    %r10,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %r14,%r15
and    $0xfffffffffffffffc,%r15
lea    0x1(%r15),%r9
mov    %rdx,%r8
and    $0xfffffffffffffffe,%r8
lea    0x9b8(%rsp),%rbp
lea    0x980(%rsp),%rbx
mov    $0x1,%edi
jmp    13bb <calculateErrorNorm+0x29b>
nopl   (%rax)
add    $0x1,%rdi
add    $0x320,%rbp
add    $0x320,%rbx
cmp    %r13,%rdi
je     14bd <calculateErrorNorm+0x39d>
movsd  0x20(%rsp,%rdi,8),%xmm0
mov    $0x1,%eax
cmp    $0x4,%r14
jb     14a0 <calculateErrorNorm+0x380>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmp    $0x4,%r10
jae    13f0 <calculateErrorNorm+0x2d0>
xor    %esi,%esi
jmp    144a <calculateErrorNorm+0x32a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r8,%rax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nop
movupd 0x28(%rsp,%rsi,8),%xmm2
movupd 0x38(%rsp,%rsi,8),%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,-0x30(%rbp,%rsi,8)
movupd %xmm3,-0x20(%rbp,%rsi,8)
movupd 0x48(%rsp,%rsi,8),%xmm2
movupd 0x58(%rsp,%rsi,8),%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
movupd %xmm2,-0x10(%rbp,%rsi,8)
movupd %xmm3,0x0(%rbp,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rax
jne    1400 <calculateErrorNorm+0x2e0>
test   $0x1,%dl
je     1486 <calculateErrorNorm+0x366>
shl    $0x3,%rsi
or     $0x8,%rsi
movupd 0x20(%rsp,%rsi,1),%xmm2
movupd 0x30(%rsp,%rsi,1),%xmm3
mulpd  %xmm1,%xmm2
mulpd  %xmm1,%xmm3
imul   $0x320,%rdi,%rax
add    %rsp,%rax
add    $0x660,%rax
movupd %xmm2,(%rsi,%rax,1)
movupd %xmm3,0x10(%rsi,%rax,1)
mov    %r9,%rax
cmp    %r15,%r14
je     13a0 <calculateErrorNorm+0x280>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x20(%rsp,%rax,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r13
jne    14a0 <calculateErrorNorm+0x380>
jmp    13a0 <calculateErrorNorm+0x280>
test   %ecx,%ecx
jle    160d <calculateErrorNorm+0x4ed>
lea    -0x2(%r13),%rax
mov    %rax,0x10(%rsp)
and    $0x3,%r14d
lea    0x9a0(%rsp),%rbx
lea    0x980(%rsp),%rax
mov    %rax,0x8(%rsp)
xorpd  %xmm4,%xmm4
mov    $0x1,%eax
jmp    1522 <calculateErrorNorm+0x402>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x18(%rsp),%rax
add    $0x1,%rax
add    $0x320,%rbx
addq   $0x320,0x8(%rsp)
cmp    %r13,%rax
je     160d <calculateErrorNorm+0x4ed>
cmpq   $0x3,0x10(%rsp)
mov    %rax,0x18(%rsp)
jae    1540 <calculateErrorNorm+0x420>
mov    $0x1,%ebp
test   %r14,%r14
jne    15d1 <calculateErrorNorm+0x4b1>
jmp    1500 <calculateErrorNorm+0x3e0>
nop
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  %xmm4,(%rsp)
movsd  -0x18(%rbx,%rbp,8),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  -0x10(%rbx,%rbp,8),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  -0x8(%rbx,%rbp,8),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  (%rbx,%rbp,8),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movapd %xmm0,%xmm4
addsd  (%rsp),%xmm4
add    $0x4,%rbp
cmp    %rbp,%r15
jne    1550 <calculateErrorNorm+0x430>
add    $0x1,%rbp
test   %r14,%r14
je     1500 <calculateErrorNorm+0x3e0>
mov    0x8(%rsp),%rax
lea    (%rax,%rbp,8),%rbp
xor    %r12d,%r12d
nopl   (%rax)
movsd  %xmm4,(%rsp)
movsd  0x0(%rbp,%r12,8),%xmm0
mov    $0x2,%edi
call   1030 <pow@plt>
movsd  (%rsp),%xmm4
addsd  %xmm0,%xmm4
add    $0x1,%r12
cmp    %r12,%r14
jne    15e0 <calculateErrorNorm+0x4c0>
jmp    1500 <calculateErrorNorm+0x3e0>
ucomisd 0x9eb(%rip),%xmm4
jb     1630 <calculateErrorNorm+0x510>
xorps  %xmm0,%xmm0
sqrtsd %xmm4,%xmm0
add    $0x13ee8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movapd %xmm4,%xmm0
add    $0x13ee8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <sqrt@plt>
mov    $0x1,%esi
test   $0x1,%bpl
jne    1303 <calculateErrorNorm+0x1e3>
jmp    1334 <calculateErrorNorm+0x214>

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

LLVM IR (-O2):
define double @calculateErrorNorm([100 x double]* nocapture %0, double* nocapture %1, double* nocapture %2, i32 %3, i32 %4) {
%6 = alloca [100 x double]
%7 = alloca [100 x double]
%8 = alloca [100 x [100 x double]]
%9 = bitcast [100 x double]* %6 to i8*
%10 = bitcast [100 x double]* %7 to i8*
%11 = bitcast [100 x [100 x double]]* %8 to i8*
%12 = icmp slt i32 %3, 1
br i1 %12, label %321, label %13
13: ; preds = %5
%14 = icmp slt i32 %4, 1
%15 = add i32 %4, 1
%16 = add nuw i32 %3, 1
%17 = zext i32 %16 to i64
%18 = zext i32 %15 to i64
%19 = add nsw i64 %18, -1
%20 = add nsw i64 %18, -2
%21 = and i64 %19, 3
%22 = icmp ult i64 %20, 3
%23 = and i64 %19, -4
%24 = icmp eq i64 %21, 0
br label %25
25: ; preds = %13, %162
%26 = phi i64 [ 1, %13 ], [ %165, %162 ]
br i1 %14, label %162, label %27
27: ; preds = %25
br i1 %22, label %146, label %116
28: ; preds = %162
br i1 %12, label %321, label %29
29: ; preds = %28
%30 = add nuw i32 %3, 1
%31 = zext i32 %30 to i64
%32 = add nsw i64 %17, -1
%33 = icmp ult i64 %32, 4
br i1 %33, label %114, label %34
34: ; preds = %29
%35 = and i64 %32, -4
%36 = or i64 %35, 1
%37 = add nsw i64 %35, -4
%38 = lshr exact i64 %37, 2
%39 = add nuw nsw i64 %38, 1
%40 = and i64 %39, 1
%41 = icmp eq i64 %37, 0
br i1 %41, label %90, label %42
42: ; preds = %34
%43 = and i64 %39, 9223372036854775806
br label %44
44: ; preds = %44, %42
%45 = phi i64 [ 0, %42 ], [ %85, %44 ]
%46 = phi i64 [ 0, %42 ], [ %86, %44 ]
%47 = or i64 %45, 1
%48 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %47
%49 = bitcast double* %48 to <2 x double>*
%50 = load <2 x double>, <2 x double>* %49
%51 = getelementptr inbounds double, double* %48, i64 2
%52 = bitcast double* %51 to <2 x double>*
%53 = load <2 x double>, <2 x double>* %52
%54 = getelementptr inbounds double, double* %2, i64 %47
%55 = bitcast double* %54 to <2 x double>*
%56 = load <2 x double>, <2 x double>* %55
%57 = getelementptr inbounds double, double* %54, i64 2
%58 = bitcast double* %57 to <2 x double>*
%59 = load <2 x double>, <2 x double>* %58
%60 = fsub <2 x double> %50, %56
%61 = fsub <2 x double> %53, %59
%62 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %47
%63 = bitcast double* %62 to <2 x double>*
store <2 x double> %60, <2 x double>* %63
%64 = getelementptr inbounds double, double* %62, i64 2
%65 = bitcast double* %64 to <2 x double>*
store <2 x double> %61, <2 x double>* %65
%66 = or i64 %45, 5
%67 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %66
%68 = bitcast double* %67 to <2 x double>*
%69 = load <2 x double>, <2 x double>* %68
%70 = getelementptr inbounds double, double* %67, i64 2
%71 = bitcast double* %70 to <2 x double>*
%72 = load <2 x double>, <2 x double>* %71
%73 = getelementptr inbounds double, double* %2, i64 %66
%74 = bitcast double* %73 to <2 x double>*
%75 = load <2 x double>, <2 x double>* %74
%76 = getelementptr inbounds double, double* %73, i64 2
%77 = bitcast double* %76 to <2 x double>*
%78 = load <2 x double>, <2 x double>* %77
%79 = fsub <2 x double> %69, %75
%80 = fsub <2 x double> %72, %78
%81 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %66
%82 = bitcast double* %81 to <2 x double>*
store <2 x double> %79, <2 x double>* %82
%83 = getelementptr inbounds double, double* %81, i64 2
%84 = bitcast double* %83 to <2 x double>*
store <2 x double> %80, <2 x double>* %84
%85 = add nuw i64 %45, 8
%86 = add i64 %46, 2
%87 = icmp eq i64 %86, %43
br i1 %87, label %88, label %44
88: ; preds = %44
%89 = or i64 %85, 1
br label %90
90: ; preds = %88, %34
%91 = phi i64 [ 1, %34 ], [ %89, %88 ]
%92 = icmp eq i64 %40, 0
br i1 %92, label %112, label %93
93: ; preds = %90
%94 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %91
%95 = bitcast double* %94 to <2 x double>*
%96 = load <2 x double>, <2 x double>* %95
%97 = getelementptr inbounds double, double* %94, i64 2
%98 = bitcast double* %97 to <2 x double>*
%99 = load <2 x double>, <2 x double>* %98
%100 = getelementptr inbounds double, double* %2, i64 %91
%101 = bitcast double* %100 to <2 x double>*
%102 = load <2 x double>, <2 x double>* %101
%103 = getelementptr inbounds double, double* %100, i64 2
%104 = bitcast double* %103 to <2 x double>*
%105 = load <2 x double>, <2 x double>* %104
%106 = fsub <2 x double> %96, %102
%107 = fsub <2 x double> %99, %105
%108 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %91
%109 = bitcast double* %108 to <2 x double>*
store <2 x double> %106, <2 x double>* %109
%110 = getelementptr inbounds double, double* %108, i64 2
%111 = bitcast double* %110 to <2 x double>*
store <2 x double> %107, <2 x double>* %111
br label %112
112: ; preds = %90, %93
%113 = icmp eq i64 %32, %35
br i1 %113, label %167, label %114
114: ; preds = %29, %112
%115 = phi i64 [ 1, %29 ], [ %36, %112 ]
br label %183
116: ; preds = %27, %116
%117 = phi i64 [ %143, %116 ], [ 1, %27 ]
%118 = phi double [ %142, %116 ], [ 0.000000e+00, %27 ]
%119 = phi i64 [ %144, %116 ], [ 0, %27 ]
%120 = getelementptr inbounds [100 x double], [100 x double]* %0, i64 %26, i64 %117
%121 = load double, double* %120
%122 = getelementptr inbounds double, double* %1, i64 %117
%123 = load double, double* %122
%124 = tail call double @llvm.fmuladd.f64(double %121, double %123, double %118)
%125 = add nuw nsw i64 %117, 1
%126 = getelementptr inbounds [100 x double], [100 x double]* %0, i64 %26, i64 %125
%127 = load double, double* %126
%128 = getelementptr inbounds double, double* %1, i64 %125
%129 = load double, double* %128
%130 = tail call double @llvm.fmuladd.f64(double %127, double %129, double %124)
%131 = add nuw nsw i64 %117, 2
%132 = getelementptr inbounds [100 x double], [100 x double]* %0, i64 %26, i64 %131
%133 = load double, double* %132
%134 = getelementptr inbounds double, double* %1, i64 %131
%135 = load double, double* %134
%136 = tail call double @llvm.fmuladd.f64(double %133, double %135, double %130)
%137 = add nuw nsw i64 %117, 3
%138 = getelementptr inbounds [100 x double], [100 x double]* %0, i64 %26, i64 %137
%139 = load double, double* %138
%140 = getelementptr inbounds double, double* %1, i64 %137
%141 = load double, double* %140
%142 = tail call double @llvm.fmuladd.f64(double %139, double %141, double %136)
%143 = add nuw nsw i64 %117, 4
%144 = add i64 %119, 4
%145 = icmp eq i64 %144, %23
br i1 %145, label %146, label %116
146: ; preds = %116, %27
%147 = phi double [ undef, %27 ], [ %142, %116 ]
%148 = phi i64 [ 1, %27 ], [ %143, %116 ]
%149 = phi double [ 0.000000e+00, %27 ], [ %142, %116 ]
br i1 %24, label %162, label %150
150: ; preds = %146, %150
%151 = phi i64 [ %159, %150 ], [ %148, %146 ]
%152 = phi double [ %158, %150 ], [ %149, %146 ]
%153 = phi i64 [ %160, %150 ], [ 0, %146 ]
%154 = getelementptr inbounds [100 x double], [100 x double]* %0, i64 %26, i64 %151
%155 = load double, double* %154
%156 = getelementptr inbounds double, double* %1, i64 %151
%157 = load double, double* %156
%158 = tail call double @llvm.fmuladd.f64(double %155, double %157, double %152)
%159 = add nuw nsw i64 %151, 1
%160 = add i64 %153, 1
%161 = icmp eq i64 %160, %21
br i1 %161, label %162, label %150
162: ; preds = %146, %150, %25
%163 = phi double [ 0.000000e+00, %25 ], [ %147, %146 ], [ %158, %150 ]
%164 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %26
store double %163, double* %164
%165 = add nuw nsw i64 %26, 1
%166 = icmp eq i64 %165, %17
br i1 %166, label %28, label %25
167: ; preds = %183, %112
br i1 %12, label %321, label %168
168: ; preds = %167
%169 = add nuw i32 %3, 1
%170 = zext i32 %169 to i64
%171 = add nsw i64 %17, -1
%172 = add nsw i64 %17, -5
%173 = lshr i64 %172, 2
%174 = add nuw nsw i64 %173, 1
%175 = icmp ult i64 %171, 4
%176 = and i64 %171, -4
%177 = or i64 %176, 1
%178 = and i64 %174, 1
%179 = icmp ult i64 %172, 4
%180 = and i64 %174, 9223372036854775806
%181 = icmp eq i64 %178, 0
%182 = icmp eq i64 %171, %176
br label %193
183: ; preds = %114, %183
%184 = phi i64 [ %191, %183 ], [ %115, %114 ]
%185 = getelementptr inbounds [100 x double], [100 x double]* %6, i64 0, i64 %184
%186 = load double, double* %185
%187 = getelementptr inbounds double, double* %2, i64 %184
%188 = load double, double* %187
%189 = fsub double %186, %188
%190 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %184
store double %189, double* %190
%191 = add nuw nsw i64 %184, 1
%192 = icmp eq i64 %191, %31
br i1 %192, label %167, label %183
193: ; preds = %270, %168
%194 = phi i64 [ 1, %168 ], [ %271, %270 ]
%195 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %194
%196 = load double, double* %195
br i1 %175, label %251, label %197
197: ; preds = %193
%198 = insertelement <2 x double> poison, double %196, i64 0
%199 = shufflevector <2 x double> %198, <2 x double> poison, <2 x i32> zeroinitializer
%200 = insertelement <2 x double> poison, double %196, i64 0
%201 = shufflevector <2 x double> %200, <2 x double> poison, <2 x i32> zeroinitializer
br i1 %179, label %234, label %202
202: ; preds = %197, %202
%203 = phi i64 [ %231, %202 ], [ 0, %197 ]
%204 = phi i64 [ %232, %202 ], [ 0, %197 ]
%205 = or i64 %203, 1
%206 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %205
%207 = bitcast double* %206 to <2 x double>*
%208 = load <2 x double>, <2 x double>* %207
%209 = getelementptr inbounds double, double* %206, i64 2
%210 = bitcast double* %209 to <2 x double>*
%211 = load <2 x double>, <2 x double>* %210
%212 = fmul <2 x double> %199, %208
%213 = fmul <2 x double> %201, %211
%214 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %194, i64 %205
%215 = bitcast double* %214 to <2 x double>*
store <2 x double> %212, <2 x double>* %215
%216 = getelementptr inbounds double, double* %214, i64 2
%217 = bitcast double* %216 to <2 x double>*
store <2 x double> %213, <2 x double>* %217
%218 = or i64 %203, 5
%219 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %218
%220 = bitcast double* %219 to <2 x double>*
%221 = load <2 x double>, <2 x double>* %220
%222 = getelementptr inbounds double, double* %219, i64 2
%223 = bitcast double* %222 to <2 x double>*
%224 = load <2 x double>, <2 x double>* %223
%225 = fmul <2 x double> %199, %221
%226 = fmul <2 x double> %201, %224
%227 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %194, i64 %218
%228 = bitcast double* %227 to <2 x double>*
store <2 x double> %225, <2 x double>* %228
%229 = getelementptr inbounds double, double* %227, i64 2
%230 = bitcast double* %229 to <2 x double>*
store <2 x double> %226, <2 x double>* %230
%231 = add nuw i64 %203, 8
%232 = add i64 %204, 2
%233 = icmp eq i64 %232, %180
br i1 %233, label %234, label %202
234: ; preds = %202, %197
%235 = phi i64 [ 0, %197 ], [ %231, %202 ]
br i1 %181, label %250, label %236
236: ; preds = %234
%237 = or i64 %235, 1
%238 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %237
%239 = bitcast double* %238 to <2 x double>*
%240 = load <2 x double>, <2 x double>* %239
%241 = getelementptr inbounds double, double* %238, i64 2
%242 = bitcast double* %241 to <2 x double>*
%243 = load <2 x double>, <2 x double>* %242
%244 = fmul <2 x double> %199, %240
%245 = fmul <2 x double> %201, %243
%246 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %194, i64 %237
%247 = bitcast double* %246 to <2 x double>*
store <2 x double> %244, <2 x double>* %247
%248 = getelementptr inbounds double, double* %246, i64 2
%249 = bitcast double* %248 to <2 x double>*
store <2 x double> %245, <2 x double>* %249
br label %250
250: ; preds = %234, %236
br i1 %182, label %270, label %251
251: ; preds = %193, %250
%252 = phi i64 [ 1, %193 ], [ %177, %250 ]
br label %262
253: ; preds = %270
br i1 %12, label %321, label %254
254: ; preds = %253
%255 = add nuw i32 %3, 1
%256 = zext i32 %255 to i64
%257 = add nsw i64 %17, -2
%258 = and i64 %32, 3
%259 = icmp ult i64 %257, 3
%260 = and i64 %32, -4
%261 = icmp eq i64 %258, 0
br label %273
262: ; preds = %251, %262
%263 = phi i64 [ %268, %262 ], [ %252, %251 ]
%264 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %263
%265 = load double, double* %264
%266 = fmul double %196, %265
%267 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %194, i64 %263
store double %266, double* %267
%268 = add nuw nsw i64 %263, 1
%269 = icmp eq i64 %268, %170
br i1 %269, label %270, label %262
270: ; preds = %262, %250
%271 = add nuw nsw i64 %194, 1
%272 = icmp eq i64 %271, %170
br i1 %272, label %253, label %193
273: ; preds = %317, %254
%274 = phi i64 [ 1, %254 ], [ %319, %317 ]
%275 = phi double [ 0.000000e+00, %254 ], [ %318, %317 ]
br i1 %259, label %302, label %276
276: ; preds = %273, %276
%277 = phi i64 [ %299, %276 ], [ 1, %273 ]
%278 = phi double [ %298, %276 ], [ %275, %273 ]
%279 = phi i64 [ %300, %276 ], [ 0, %273 ]
%280 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %274, i64 %277
%281 = load double, double* %280
%282 = tail call double @pow(double %281, i32 2)
%283 = fadd double %278, %282
%284 = add nuw nsw i64 %277, 1
%285 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %274, i64 %284
%286 = load double, double* %285
%287 = tail call double @pow(double %286, i32 2)
%288 = fadd double %283, %287
%289 = add nuw nsw i64 %277, 2
%290 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %274, i64 %289
%291 = load double, double* %290
%292 = tail call double @pow(double %291, i32 2)
%293 = fadd double %288, %292
%294 = add nuw nsw i64 %277, 3
%295 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %274, i64 %294
%296 = load double, double* %295
%297 = tail call double @pow(double %296, i32 2)
%298 = fadd double %293, %297
%299 = add nuw nsw i64 %277, 4
%300 = add i64 %279, 4
%301 = icmp eq i64 %300, %260
br i1 %301, label %302, label %276
302: ; preds = %276, %273
%303 = phi double [ undef, %273 ], [ %298, %276 ]
%304 = phi i64 [ 1, %273 ], [ %299, %276 ]
%305 = phi double [ %275, %273 ], [ %298, %276 ]
br i1 %261, label %317, label %306
306: ; preds = %302, %306
%307 = phi i64 [ %314, %306 ], [ %304, %302 ]
%308 = phi double [ %313, %306 ], [ %305, %302 ]
%309 = phi i64 [ %315, %306 ], [ 0, %302 ]
%310 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %8, i64 0, i64 %274, i64 %307
%311 = load double, double* %310
%312 = tail call double @pow(double %311, i32 2)
%313 = fadd double %308, %312
%314 = add nuw nsw i64 %307, 1
%315 = add i64 %309, 1
%316 = icmp eq i64 %315, %258
br i1 %316, label %317, label %306
317: ; preds = %306, %302
%318 = phi double [ %303, %302 ], [ %313, %306 ]
%319 = add nuw nsw i64 %274, 1
%320 = icmp eq i64 %319, %256
br i1 %320, label %321, label %273
321: ; preds = %317, %5, %28, %167, %253
%322 = phi double [ 0.000000e+00, %253 ], [ 0.000000e+00, %167 ], [ 0.000000e+00, %28 ], [ 0.000000e+00, %5 ], [ %318, %317 ]
%323 = tail call double @sqrt(double %322)
ret double %323
}