#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int atoi(char *);
scalar_t__ calloc(int, int);
int /*<<< orphan*/ omp_set_num_threads(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ run_gauss_seidel_method(int, int, double **, double *,
                                           double, int, int *, double *);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ test_system(int, double **, double *);
int main(int argc, char *argv[]) {
  int n, p, i;
  if (argc > 1) {
    n = atoi(argv[1]);
    p = (argc > 2) ? atoi(argv[2]) : 1;
  } else {
    printf("give the dimension : ");
    scanf("%d", &n);
    printf("Give the number of threads : ");
    scanf("%d", &p);
  }
  omp_set_num_threads(p);
  {
    double *b;
    b = (double *)calloc(n, sizeof(double));
    double **A;
    A = (double **)calloc(n, sizeof(double *));
    for (i = 0; i < n; i++)
      A[i] = (double *)calloc(n, sizeof(double));
    test_system(n, A, b);
    double *x;
    x = (double *)calloc(n, sizeof(double));
    for (i = 0; i < n; i++)
      x[i] = 0.0;
    double eps = 1.0e-4;
    int maxit = 2 * n * n;
    int cnt = 0;
    run_gauss_seidel_method(p, n, A, b, eps, maxit, &cnt, x);
    printf("computed %d iterations\n", cnt);
    double sum = 0.0;
    for (i = 0; i < n; i++) {
      double d = x[i] - 1.0;
      sum += (d >= 0.0) ? d : -d;
    }
    printf("error : %.3e\n", sum);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    11d7 <main+0x67>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x2,-0x8(%rbp)
jle    11bf <main+0x4f>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x5c(%rbp)
jmp    11cc <main+0x5c>
mov    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    11cc <main+0x5c>
mov    -0x5c(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    1213 <main+0xa3>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe3a(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1080 <scanf@plt>
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe1c(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1080 <scanf@plt>
mov    -0x18(%rbp),%edi
call   1060 <omp_set_num_threads@plt>
mov    -0x14(%rbp),%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    127a <main+0x10a>
mov    -0x14(%rbp),%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1244 <main+0xd4>
mov    -0x14(%rbp),%edi
mov    -0x30(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1070 <test_system@plt>
mov    -0x14(%rbp),%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12cc <main+0x15c>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12a2 <main+0x132>
movsd  0xd2c(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x14(%rbp),%eax
shl    $0x1,%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    -0x28(%rbp),%rcx
movsd  -0x40(%rbp),%xmm0
mov    -0x44(%rbp),%r8d
mov    -0x38(%rbp),%rax
lea    -0x48(%rbp),%r9
mov    %rax,(%rsp)
call   1030 <run_gauss_seidel_method@plt>
mov    -0x48(%rbp),%esi
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13be <main+0x24e>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xcb2(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1380 <main+0x210>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    13a1 <main+0x231>
movsd  -0x58(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1335 <main+0x1c5>
movsd  -0x50(%rbp),%xmm0
lea    0xc95(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
cmp    $0x2,%edi
jl     11be <main+0x3e>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
call   10a0 <atoi@plt>
mov    %eax,0x14(%rsp)
mov    $0x1,%edi
cmp    $0x2,%ebp
je     11b8 <main+0x38>
mov    0x10(%rbx),%rdi
call   10a0 <atoi@plt>
mov    %eax,%edi
mov    %edi,0x18(%rsp)
jmp    11ff <main+0x7f>
lea    0xe5b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe63(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1090 <scanf@plt>
lea    0xe52(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1090 <scanf@plt>
mov    0x18(%rsp),%edi
call   1070 <omp_set_num_threads@plt>
mov    0x14(%rsp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,%r14
mov    0x14(%rsp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,%rbx
mov    0x14(%rsp),%edi
test   %edi,%edi
jle    124c <main+0xcc>
xor    %ebp,%ebp
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,(%rbx,%rbp,8)
add    $0x1,%rbp
movslq 0x14(%rsp),%rdi
cmp    %rdi,%rbp
jl     1230 <main+0xb0>
mov    %rbx,%rsi
mov    %r14,%rdx
call   1080 <test_system@plt>
mov    0x14(%rsp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,%r15
mov    0x14(%rsp),%r12d
test   %r12d,%r12d
jle    1284 <main+0x104>
lea    0x0(,%r12,8),%rdx
mov    %r15,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    %r12d,%r8d
imul   %r12d,%r8d
add    %r8d,%r8d
movl   $0x0,0x1c(%rsp)
mov    0x18(%rsp),%edi
mov    %r15,(%rsp)
movsd  0xd5a(%rip),%xmm0
lea    0x1c(%rsp),%r9
mov    %r12d,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
call   1030 <run_gauss_seidel_method@plt>
mov    0x1c(%rsp),%esi
lea    0xd93(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%eax
test   %eax,%eax
jle    12e3 <main+0x163>
cmp    $0x1,%eax
jne    12ec <main+0x16c>
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
jmp    1370 <main+0x1f0>
xorpd  %xmm0,%xmm0
jmp    13a7 <main+0x227>
mov    %eax,%edx
and    $0xfffffffe,%edx
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
movsd  0xd09(%rip),%xmm1
movapd 0xd09(%rip),%xmm2
nopw   0x0(%rax,%rax,1)
movsd  (%r15,%rcx,8),%xmm3
addsd  %xmm1,%xmm3
movapd %xmm3,%xmm4
xorpd  %xmm2,%xmm4
xorpd  %xmm5,%xmm5
cmplesd %xmm3,%xmm5
andpd  %xmm5,%xmm3
andnpd %xmm4,%xmm5
orpd   %xmm3,%xmm5
addsd  %xmm0,%xmm5
movsd  0x8(%r15,%rcx,8),%xmm3
addsd  %xmm1,%xmm3
movapd %xmm3,%xmm4
xorpd  %xmm2,%xmm4
xorpd  %xmm0,%xmm0
cmplesd %xmm3,%xmm0
andpd  %xmm0,%xmm3
andnpd %xmm4,%xmm0
orpd   %xmm3,%xmm0
addsd  %xmm5,%xmm0
add    $0x2,%rcx
cmp    %rcx,%rdx
jne    1310 <main+0x190>
test   $0x1,%al
je     13a7 <main+0x227>
movsd  (%r15,%rcx,8),%xmm1
addsd  0xc86(%rip),%xmm1
movapd 0xc86(%rip),%xmm2
xorpd  %xmm1,%xmm2
xorpd  %xmm3,%xmm3
cmplesd %xmm1,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm2,%xmm3
orpd   %xmm1,%xmm3
addsd  %xmm3,%xmm0
lea    0xcc1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"give the dimension : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [30 x i8] c"Give the number of threads : \00"
@.str.3 = [24 x i8] c"computed %d iterations\0A\00"
@.str.4 = [14 x i8] c"error : %.3e\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double*
%10 = alloca double**
%11 = alloca double*
%12 = alloca double
%13 = alloca i32
%14 = alloca i32
%15 = alloca double
%16 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i32, i32* %4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %34
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32 @atoi(i8* %22)
store i32 %23, i32* %6
%24 = load i32, i32* %4
%25 = icmp sgt i32 %24, 2
br i1 %25, label %26, label %31
26: ; preds = %19
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 2
%29 = load i8*, i8** %28
%30 = call i32 @atoi(i8* %29)
br label %32
31: ; preds = %19
br label %32
32: ; preds = %31, %26
%33 = phi i32 [ %30, %26 ], [ 1, %31 ]
store i32 %33, i32* %7
br label %39
34: ; preds = %2
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%36 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
br label %39
39: ; preds = %34, %32
%40 = load i32, i32* %7
%41 = call i32 @omp_set_num_threads(i32 %40)
%42 = load i32, i32* %6
%43 = call i64 @calloc(i32 %42, i32 8)
%44 = inttoptr i64 %43 to double*
store double* %44, double** %9
%45 = load i32, i32* %6
%46 = call i64 @calloc(i32 %45, i32 8)
%47 = inttoptr i64 %46 to double**
store double** %47, double*** %10
store i32 0, i32* %8
br label %48
48: ; preds = %60, %39
%49 = load i32, i32* %8
%50 = load i32, i32* %6
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %63
52: ; preds = %48
%53 = load i32, i32* %6
%54 = call i64 @calloc(i32 %53, i32 8)
%55 = inttoptr i64 %54 to double*
%56 = load double**, double*** %10
%57 = load i32, i32* %8
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double*, double** %56, i64 %58
store double* %55, double** %59
br label %60
60: ; preds = %52
%61 = load i32, i32* %8
%62 = add nsw i32 %61, 1
store i32 %62, i32* %8
br label %48
63: ; preds = %48
%64 = load i32, i32* %6
%65 = load double**, double*** %10
%66 = load double*, double** %9
%67 = call i32 @test_system(i32 %64, double** %65, double* %66)
%68 = load i32, i32* %6
%69 = call i64 @calloc(i32 %68, i32 8)
%70 = inttoptr i64 %69 to double*
store double* %70, double** %11
store i32 0, i32* %8
br label %71
71: ; preds = %80, %63
%72 = load i32, i32* %8
%73 = load i32, i32* %6
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %83
75: ; preds = %71
%76 = load double*, double** %11
%77 = load i32, i32* %8
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, double* %76, i64 %78
store double 0.000000e+00, double* %79
br label %80
80: ; preds = %75
%81 = load i32, i32* %8
%82 = add nsw i32 %81, 1
store i32 %82, i32* %8
br label %71
83: ; preds = %71
store double 1.000000e-04, double* %12
%84 = load i32, i32* %6
%85 = mul nsw i32 2, %84
%86 = load i32, i32* %6
%87 = mul nsw i32 %85, %86
store i32 %87, i32* %13
store i32 0, i32* %14
%88 = load i32, i32* %7
%89 = load i32, i32* %6
%90 = load double**, double*** %10
%91 = load double*, double** %9
%92 = load double, double* %12
%93 = load i32, i32* %13
%94 = load double*, double** %11
%95 = call i32 @run_gauss_seidel_method(i32 %88, i32 %89, double** %90, double* %91, double %92, i32 %93, i32* %14, double* %94)
%96 = load i32, i32* %14
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 %96)
store double 0.000000e+00, double* %15
store i32 0, i32* %8
br label %98
98: ; preds = %120, %83
%99 = load i32, i32* %8
%100 = load i32, i32* %6
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %123
102: ; preds = %98
%103 = load double*, double** %11
%104 = load i32, i32* %8
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %103, i64 %105
%107 = load double, double* %106
%108 = fsub double %107, 1.000000e+00
store double %108, double* %16
%109 = load double, double* %16
%110 = fcmp oge double %109, 0.000000e+00
br i1 %110, label %111, label %113
111: ; preds = %102
%112 = load double, double* %16
br label %116
113: ; preds = %102
%114 = load double, double* %16
%115 = fneg double %114
br label %116
116: ; preds = %113, %111
%117 = phi double [ %112, %111 ], [ %115, %113 ]
%118 = load double, double* %15
%119 = fadd double %118, %117
store double %119, double* %15
br label %120
120: ; preds = %116
%121 = load i32, i32* %8
%122 = add nsw i32 %121, 1
store i32 %122, i32* %8
br label %98
123: ; preds = %98
%124 = load double, double* %15
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), double %124)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"give the dimension : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [30 x i8] c"Give the number of threads : \00"
@.str.3 = [24 x i8] c"computed %d iterations\0A\00"
@.str.4 = [14 x i8] c"error : %.3e\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = icmp sgt i32 %0, 1
br i1 %8, label %9, label %20
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @atoi(i8* %11)
store i32 %12, i32* %3
%13 = icmp eq i32 %0, 2
br i1 %13, label %18, label %14
14: ; preds = %9
%15 = getelementptr inbounds i8*, i8** %1, i64 2
%16 = load i8*, i8** %15
%17 = tail call i32 @atoi(i8* %16)
br label %18
18: ; preds = %9, %14
%19 = phi i32 [ %17, %14 ], [ 1, %9 ]
store i32 %19, i32* %4
br label %26
20: ; preds = %2
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%25 = load i32, i32* %4
br label %26
26: ; preds = %20, %18
%27 = phi i32 [ %25, %20 ], [ %19, %18 ]
%28 = call i32 @omp_set_num_threads(i32 %27)
%29 = load i32, i32* %3
%30 = call i64 @calloc(i32 %29, i32 8)
%31 = inttoptr i64 %30 to double*
%32 = load i32, i32* %3
%33 = call i64 @calloc(i32 %32, i32 8)
%34 = inttoptr i64 %33 to double**
%35 = load i32, i32* %3
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %47
37: ; preds = %26, %37
%38 = phi i64 [ %43, %37 ], [ 0, %26 ]
%39 = phi i32 [ %44, %37 ], [ %35, %26 ]
%40 = call i64 @calloc(i32 %39, i32 8)
%41 = inttoptr i64 %40 to double*
%42 = getelementptr inbounds double*, double** %34, i64 %38
store double* %41, double** %42
%43 = add nuw nsw i64 %38, 1
%44 = load i32, i32* %3
%45 = sext i32 %44 to i64
%46 = icmp slt i64 %43, %45
br i1 %46, label %37, label %47
47: ; preds = %37, %26
%48 = phi i32 [ %35, %26 ], [ %44, %37 ]
%49 = call i32 @test_system(i32 %48, double** %34, double* %31)
%50 = load i32, i32* %3
%51 = call i64 @calloc(i32 %50, i32 8)
%52 = inttoptr i64 %51 to double*
%53 = load i32, i32* %3
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %47
%56 = inttoptr i64 %51 to i8*
%57 = zext i32 %53 to i64
%58 = shl nuw nsw i64 %57, 3
br label %59
59: ; preds = %55, %47
%60 = shl nsw i32 %53, 1
%61 = mul nsw i32 %60, %53
%62 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%63 = load i32, i32* %4
%64 = call i32 @run_gauss_seidel_method(i32 %63, i32 %53, double** %34, double* %31, double 1.000000e-04, i32 %61, i32* %5, double* %52)
%65 = load i32, i32* %5
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 %65)
%67 = load i32, i32* %3
%68 = icmp sgt i32 %67, 0
br i1 %68, label %69, label %110
69: ; preds = %59
%70 = zext i32 %67 to i64
%71 = and i64 %70, 1
%72 = icmp eq i32 %67, 1
br i1 %72, label %97, label %73
73: ; preds = %69
%74 = and i64 %70, 4294967294
br label %75
75: ; preds = %75, %73
%76 = phi i64 [ 0, %73 ], [ %94, %75 ]
%77 = phi double [ 0.000000e+00, %73 ], [ %93, %75 ]
%78 = phi i64 [ 0, %73 ], [ %95, %75 ]
%79 = getelementptr inbounds double, double* %52, i64 %76
%80 = load double, double* %79
%81 = fadd double %80, -1.000000e+00
%82 = fcmp oge double %81, 0.000000e+00
%83 = fneg double %81
%84 = select i1 %82, double %81, double %83
%85 = fadd double %77, %84
%86 = or i64 %76, 1
%87 = getelementptr inbounds double, double* %52, i64 %86
%88 = load double, double* %87
%89 = fadd double %88, -1.000000e+00
%90 = fcmp oge double %89, 0.000000e+00
%91 = fneg double %89
%92 = select i1 %90, double %89, double %91
%93 = fadd double %85, %92
%94 = add nuw nsw i64 %76, 2
%95 = add i64 %78, 2
%96 = icmp eq i64 %95, %74
br i1 %96, label %97, label %75
97: ; preds = %75, %69
%98 = phi double [ undef, %69 ], [ %93, %75 ]
%99 = phi i64 [ 0, %69 ], [ %94, %75 ]
%100 = phi double [ 0.000000e+00, %69 ], [ %93, %75 ]
%101 = icmp eq i64 %71, 0
br i1 %101, label %110, label %102
102: ; preds = %97
%103 = getelementptr inbounds double, double* %52, i64 %99
%104 = load double, double* %103
%105 = fadd double %104, -1.000000e+00
%106 = fcmp oge double %105, 0.000000e+00
%107 = fneg double %105
%108 = select i1 %106, double %105, double %107
%109 = fadd double %100, %108
br label %110
110: ; preds = %102, %97, %59
%111 = phi double [ 0.000000e+00, %59 ], [ %98, %97 ], [ %109, %102 ]
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), double %111)
ret i32 0
}