#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 */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ gauss_jordan_iteration(int, double *, double *, double *);
double get_crossed_sum(double *, double *, int);
double get_sum(double *, int);
double pow(double, int);
void least_square(uint32_t plot_num, uint32_t order, double x[], double y[],
                  double a[]) {
  double c[(order + 1) * (order + 1)];
  double d[order + 1];
  double temp[plot_num];
  uint32_t i = 0;
  uint32_t j = 0;
  uint32_t k = 0;
  for (k = 0; k <= order; k++) {
    for (j = 0; j <= order; j++) {
      for (i = 0; i < plot_num; i++)
        temp[i] = pow(x[i], k + j);
      c[k * (order + 1) + j] = get_sum(temp, plot_num);
    }
    for (i = 0; i < plot_num; i++)
      temp[i] = pow(x[i], k);
    d[k] = get_crossed_sum(y, temp, plot_num);
  }
  gauss_jordan_iteration(order + 1, c, d, a);
}


x86 assembly (clang, -O0):
<least_square>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
imul   %eax,%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x68(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x4(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     12ee <least_square+0x1ae>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1280 <least_square+0x140>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    124b <least_square+0x10b>
mov    -0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x4c(%rbp),%edi
add    -0x48(%rbp),%edi
call   1050 <pow@plt>
mov    -0x58(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    120c <least_square+0xcc>
mov    -0x58(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1060 <get_sum@plt>
mov    -0x68(%rbp),%rax
mov    -0x4c(%rbp),%ecx
mov    -0x8(%rbp),%edx
add    $0x1,%edx
imul   %edx,%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    11f9 <least_square+0xb9>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12c3 <least_square+0x183>
mov    -0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x4c(%rbp),%edi
call   1050 <pow@plt>
mov    -0x58(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1287 <least_square+0x147>
mov    -0x58(%rbp),%rsi
mov    -0x18(%rbp),%rdi
mov    -0x4(%rbp),%edx
call   1030 <get_crossed_sum@plt>
mov    -0x60(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11e6 <least_square+0xa6>
mov    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rsi
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    -0x20(%rbp),%rcx
call   1040 <gauss_jordan_iteration@plt>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<least_square>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r8,-0x90(%rbp)
mov    %rcx,-0xa0(%rbp)
mov    %rdx,-0x48(%rbp)
lea    0x1(%rsi),%ecx
mov    %ecx,%eax
imul   %eax,%eax
mov    %rsp,%rdx
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rdx
mov    %rdx,-0x88(%rbp)
mov    %rdx,%rsp
mov    %rsp,%rdx
mov    %rcx,-0x50(%rbp)
lea    0xf(,%rcx,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rdx
mov    %rdx,-0x68(%rbp)
mov    %rdx,%rsp
mov    %edi,%eax
mov    %rsp,%rbx
mov    %rax,-0x60(%rbp)
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
test   %esi,%esi
js     1455 <least_square+0x315>
mov    %edi,%r13d
movslq -0x50(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x60(%rbp),%rax
lea    -0x1(%rax),%rcx
mov    %rcx,-0x80(%rbp)
mov    %eax,%ecx
and    $0x3,%ecx
mov    %rcx,-0x78(%rbp)
and    $0xfffffffc,%eax
mov    %rax,-0x70(%rbp)
xor    %r12d,%r12d
mov    %edi,-0x54(%rbp)
mov    %rbx,-0x30(%rbp)
jmp    122b <least_square+0xeb>
mov    -0xa0(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    %r13d,%edx
call   1030 <get_crossed_sum@plt>
mov    -0x68(%rbp),%rax
movsd  %xmm0,(%rax,%r12,8)
add    $0x1,%r12
cmp    -0x50(%rbp),%r12
je     1455 <least_square+0x315>
mov    %r12,-0x40(%rbp)
imul   -0x98(%rbp),%r12
ff
mov    %r12,-0xa8(%rbp)
xor    %eax,%eax
mov    %rax,-0x38(%rbp)
jmp    128f <least_square+0x14f>
cs nopw 0x0(%rax,%rax,1)
mov    -0x30(%rbp),%rdi
mov    -0x54(%rbp),%r13d
mov    %r13d,%esi
call   1060 <get_sum@plt>
mov    -0xa8(%rbp),%rax
mov    -0x38(%rbp),%rdx
add    %rdx,%rax
mov    -0x88(%rbp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%rdx
mov    %rdx,%rax
mov    %rdx,-0x38(%rbp)
cmp    -0x50(%rbp),%rdx
je     1370 <least_square+0x230>
test   %r13d,%r13d
jle    1250 <least_square+0x110>
mov    -0x40(%rbp),%rax
mov    -0x38(%rbp),%rcx
lea    (%rcx,%rax,1),%r12d
cmpq   $0x3,-0x80(%rbp)
jae    12b0 <least_square+0x170>
xor    %r13d,%r13d
jmp    131f <least_square+0x1df>
nopl   0x0(%rax)
xor    %r13d,%r13d
mov    -0x48(%rbp),%r15
mov    -0x30(%rbp),%rbx
mov    -0x70(%rbp),%r14
nop
movsd  (%r15,%r13,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,(%rbx,%r13,8)
movsd  0x8(%r15,%r13,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,0x8(%rbx,%r13,8)
movsd  0x10(%r15,%r13,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,0x10(%rbx,%r13,8)
movsd  0x18(%r15,%r13,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,0x18(%rbx,%r13,8)
add    $0x4,%r13
cmp    %r13,%r14
jne    12c0 <least_square+0x180>
mov    -0x78(%rbp),%r15
test   %r15,%r15
je     1250 <least_square+0x110>
mov    -0x30(%rbp),%rax
lea    (%rax,%r13,8),%r14
mov    -0x48(%rbp),%rax
lea    (%rax,%r13,8),%r13
xor    %ebx,%ebx
xchg   %ax,%ax
movsd  0x0(%r13,%rbx,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,(%r14,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1340 <least_square+0x200>
jmp    1250 <least_square+0x110>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
test   %r13d,%r13d
mov    -0x40(%rbp),%r12
jle    1200 <least_square+0xc0>
cmpq   $0x3,-0x80(%rbp)
jae    1390 <least_square+0x250>
xor    %r14d,%r14d
mov    -0x40(%rbp),%r12
jmp    1400 <least_square+0x2c0>
nopl   (%rax)
xor    %r14d,%r14d
mov    -0x48(%rbp),%r15
mov    -0x30(%rbp),%rbx
mov    -0x40(%rbp),%r12
nop
movsd  (%r15,%r14,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,(%rbx,%r14,8)
movsd  0x8(%r15,%r14,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,0x8(%rbx,%r14,8)
movsd  0x10(%r15,%r14,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,0x10(%rbx,%r14,8)
movsd  0x18(%r15,%r14,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
movsd  %xmm0,0x18(%rbx,%r14,8)
add    $0x4,%r14
cmp    %r14,-0x70(%rbp)
jne    13a0 <least_square+0x260>
testb  $0x3,-0x60(%rbp)
mov    -0x78(%rbp),%r15
je     1200 <least_square+0xc0>
mov    -0x30(%rbp),%rax
lea    (%rax,%r14,8),%rax
mov    %rax,-0x38(%rbp)
mov    -0x48(%rbp),%rax
lea    (%rax,%r14,8),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r14,%rbx,8),%xmm0
mov    %r12d,%edi
call   1050 <pow@plt>
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1430 <least_square+0x2f0>
jmp    1200 <least_square+0xc0>
mov    -0x50(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x68(%rbp),%rdx
mov    -0x90(%rbp),%rcx
call   1040 <gauss_jordan_iteration@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @least_square(i32 %0, i32 %1, double* %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store double* %2, double** %8
store double* %3, double** %9
store double* %4, double** %10
%18 = load i32, i32* %7
%19 = add nsw i32 %18, 1
%20 = load i32, i32* %7
%21 = add nsw i32 %20, 1
%22 = mul nsw i32 %19, %21
%23 = zext i32 %22 to i64
%24 = call i8* @llvm.stacksave()
store i8* %24, i8** %11
%25 = alloca double, i64 %23
store i64 %23, i64* %12
%26 = load i32, i32* %7
%27 = add nsw i32 %26, 1
%28 = zext i32 %27 to i64
%29 = alloca double, i64 %28
store i64 %28, i64* %13
%30 = load i32, i32* %6
%31 = zext i32 %30 to i64
%32 = alloca double, i64 %31
store i64 %31, i64* %14
store i32 0, i32* %15
store i32 0, i32* %16
store i32 0, i32* %17
store i32 0, i32* %17
br label %33
33: ; preds = %103, %5
%34 = load i32, i32* %17
%35 = load i32, i32* %7
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %106
37: ; preds = %33
store i32 0, i32* %16
br label %38
38: ; preds = %74, %37
%39 = load i32, i32* %16
%40 = load i32, i32* %7
%41 = icmp sle i32 %39, %40
br i1 %41, label %42, label %77
42: ; preds = %38
store i32 0, i32* %15
br label %43
43: ; preds = %60, %42
%44 = load i32, i32* %15
%45 = load i32, i32* %6
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %63
47: ; preds = %43
%48 = load double*, double** %8
%49 = load i32, i32* %15
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %48, i64 %50
%52 = load double, double* %51
%53 = load i32, i32* %17
%54 = load i32, i32* %16
%55 = add nsw i32 %53, %54
%56 = call double @pow(double %52, i32 %55)
%57 = load i32, i32* %15
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, double* %32, i64 %58
store double %56, double* %59
br label %60
60: ; preds = %47
%61 = load i32, i32* %15
%62 = add nsw i32 %61, 1
store i32 %62, i32* %15
br label %43
63: ; preds = %43
%64 = load i32, i32* %6
%65 = call double @get_sum(double* %32, i32 %64)
%66 = load i32, i32* %17
%67 = load i32, i32* %7
%68 = add nsw i32 %67, 1
%69 = mul nsw i32 %66, %68
%70 = load i32, i32* %16
%71 = add nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %25, i64 %72
store double %65, double* %73
br label %74
74: ; preds = %63
%75 = load i32, i32* %16
%76 = add nsw i32 %75, 1
store i32 %76, i32* %16
br label %38
77: ; preds = %38
store i32 0, i32* %15
br label %78
78: ; preds = %93, %77
%79 = load i32, i32* %15
%80 = load i32, i32* %6
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %96
82: ; preds = %78
%83 = load double*, double** %8
%84 = load i32, i32* %15
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, double* %83, i64 %85
%87 = load double, double* %86
%88 = load i32, i32* %17
%89 = call double @pow(double %87, i32 %88)
%90 = load i32, i32* %15
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, double* %32, i64 %91
store double %89, double* %92
br label %93
93: ; preds = %82
%94 = load i32, i32* %15
%95 = add nsw i32 %94, 1
store i32 %95, i32* %15
br label %78
96: ; preds = %78
%97 = load double*, double** %9
%98 = load i32, i32* %6
%99 = call double @get_crossed_sum(double* %97, double* %32, i32 %98)
%100 = load i32, i32* %17
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, double* %29, i64 %101
store double %99, double* %102
br label %103
103: ; preds = %96
%104 = load i32, i32* %17
%105 = add nsw i32 %104, 1
store i32 %105, i32* %17
br label %33
106: ; preds = %33
%107 = load i32, i32* %7
%108 = add nsw i32 %107, 1
%109 = load double*, double** %10
%110 = call i32 @gauss_jordan_iteration(i32 %108, double* %25, double* %29, double* %109)
%111 = load i8*, i8** %11
ret void
}

LLVM IR (-O2):
define void @least_square(i32 %0, i32 %1, double* nocapture %2, double* %3, double* %4) {
%6 = add i32 %1, 1
%7 = mul nsw i32 %6, %6
%8 = zext i32 %7 to i64
%9 = alloca double, i64 %8
%10 = zext i32 %6 to i64
%11 = alloca double, i64 %10
%12 = zext i32 %0 to i64
%13 = alloca double, i64 %12
%14 = icmp slt i32 %1, 0
br i1 %14, label %123, label %15
15: ; preds = %5
%16 = icmp sgt i32 %0, 0
%17 = sext i32 %6 to i64
%18 = add nsw i64 %12, -1
%19 = and i64 %12, 3
%20 = icmp ult i64 %18, 3
%21 = and i64 %12, 4294967292
%22 = icmp eq i64 %19, 0
%23 = and i64 %12, 3
%24 = icmp ult i64 %18, 3
%25 = and i64 %12, 4294967292
%26 = icmp eq i64 %23, 0
br label %27
27: ; preds = %118, %15
%28 = phi i64 [ 0, %15 ], [ %121, %118 ]
%29 = mul nsw i64 %28, %17
br label %33
30: ; preds = %75
br i1 %16, label %31, label %118
31: ; preds = %30
%32 = trunc i64 %28 to i32
br i1 %24, label %106, label %81
33: ; preds = %27, %75
%34 = phi i64 [ 0, %27 ], [ %79, %75 ]
br i1 %16, label %35, label %75
35: ; preds = %33
%36 = add nuw nsw i64 %34, %28
%37 = trunc i64 %36 to i32
br i1 %20, label %63, label %38
38: ; preds = %35, %38
%39 = phi i64 [ %60, %38 ], [ 0, %35 ]
%40 = phi i64 [ %61, %38 ], [ 0, %35 ]
%41 = getelementptr inbounds double, double* %2, i64 %39
%42 = load double, double* %41
%43 = call double @pow(double %42, i32 %37)
%44 = getelementptr inbounds double, double* %13, i64 %39
store double %43, double* %44
%45 = or i64 %39, 1
%46 = getelementptr inbounds double, double* %2, i64 %45
%47 = load double, double* %46
%48 = call double @pow(double %47, i32 %37)
%49 = getelementptr inbounds double, double* %13, i64 %45
store double %48, double* %49
%50 = or i64 %39, 2
%51 = getelementptr inbounds double, double* %2, i64 %50
%52 = load double, double* %51
%53 = call double @pow(double %52, i32 %37)
%54 = getelementptr inbounds double, double* %13, i64 %50
store double %53, double* %54
%55 = or i64 %39, 3
%56 = getelementptr inbounds double, double* %2, i64 %55
%57 = load double, double* %56
%58 = call double @pow(double %57, i32 %37)
%59 = getelementptr inbounds double, double* %13, i64 %55
store double %58, double* %59
%60 = add nuw nsw i64 %39, 4
%61 = add i64 %40, 4
%62 = icmp eq i64 %61, %21
br i1 %62, label %63, label %38
63: ; preds = %38, %35
%64 = phi i64 [ 0, %35 ], [ %60, %38 ]
br i1 %22, label %75, label %65
65: ; preds = %63, %65
%66 = phi i64 [ %72, %65 ], [ %64, %63 ]
%67 = phi i64 [ %73, %65 ], [ 0, %63 ]
%68 = getelementptr inbounds double, double* %2, i64 %66
%69 = load double, double* %68
%70 = call double @pow(double %69, i32 %37)
%71 = getelementptr inbounds double, double* %13, i64 %66
store double %70, double* %71
%72 = add nuw nsw i64 %66, 1
%73 = add i64 %67, 1
%74 = icmp eq i64 %73, %19
br i1 %74, label %75, label %65
75: ; preds = %63, %65, %33
%76 = call double @get_sum(double* %13, i32 %0)
%77 = add nsw i64 %34, %29
%78 = getelementptr inbounds double, double* %9, i64 %77
store double %76, double* %78
%79 = add nuw nsw i64 %34, 1
%80 = icmp eq i64 %79, %10
br i1 %80, label %30, label %33
81: ; preds = %31, %81
%82 = phi i64 [ %103, %81 ], [ 0, %31 ]
%83 = phi i64 [ %104, %81 ], [ 0, %31 ]
%84 = getelementptr inbounds double, double* %2, i64 %82
%85 = load double, double* %84
%86 = call double @pow(double %85, i32 %32)
%87 = getelementptr inbounds double, double* %13, i64 %82
store double %86, double* %87
%88 = or i64 %82, 1
%89 = getelementptr inbounds double, double* %2, i64 %88
%90 = load double, double* %89
%91 = call double @pow(double %90, i32 %32)
%92 = getelementptr inbounds double, double* %13, i64 %88
store double %91, double* %92
%93 = or i64 %82, 2
%94 = getelementptr inbounds double, double* %2, i64 %93
%95 = load double, double* %94
%96 = call double @pow(double %95, i32 %32)
%97 = getelementptr inbounds double, double* %13, i64 %93
store double %96, double* %97
%98 = or i64 %82, 3
%99 = getelementptr inbounds double, double* %2, i64 %98
%100 = load double, double* %99
%101 = call double @pow(double %100, i32 %32)
%102 = getelementptr inbounds double, double* %13, i64 %98
store double %101, double* %102
%103 = add nuw nsw i64 %82, 4
%104 = add i64 %83, 4
%105 = icmp eq i64 %104, %25
br i1 %105, label %106, label %81
106: ; preds = %81, %31
%107 = phi i64 [ 0, %31 ], [ %103, %81 ]
br i1 %26, label %118, label %108
108: ; preds = %106, %108
%109 = phi i64 [ %115, %108 ], [ %107, %106 ]
%110 = phi i64 [ %116, %108 ], [ 0, %106 ]
%111 = getelementptr inbounds double, double* %2, i64 %109
%112 = load double, double* %111
%113 = call double @pow(double %112, i32 %32)
%114 = getelementptr inbounds double, double* %13, i64 %109
store double %113, double* %114
%115 = add nuw nsw i64 %109, 1
%116 = add i64 %110, 1
%117 = icmp eq i64 %116, %23
br i1 %117, label %118, label %108
118: ; preds = %106, %108, %30
%119 = call double @get_crossed_sum(double* %3, double* %13, i32 %0)
%120 = getelementptr inbounds double, double* %11, i64 %28
store double %119, double* %120
%121 = add nuw nsw i64 %28, 1
%122 = icmp eq i64 %121, %10
br i1 %122, label %123, label %27
123: ; preds = %118, %5
%124 = call i32 @gauss_jordan_iteration(i32 %6, double* %9, double* %11, double* %4)
ret void
}