#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 /*<<< orphan*/ fabs(double);
double fmax(double, int /*<<< orphan*/);
double fmin(double, double);
void calculate_dt(double Re, double tau, double *dt, double dx, double dy,
                  int imax, int jmax, double **U, double **V) {
  double u_max = 0;
  int i, j;
  double v_max = 0;
  double dx2 = dx * dx;
  double dy2 = dy * dy;
  for (i = 1; i <= imax - 1; i++) {
    for (j = 1; j <= jmax; j++) {
      u_max = fmax(u_max, fabs(U[i][j]));
    }
  }
  for (i = 1; i <= imax; i++) {
    for (j = 1; j <= jmax - 1; j++) {
      v_max = fmax(v_max, fabs(V[i][j]));
    }
  }
  *dt = Re / 2 * (dx2 * dy2) / (dx2 + dy2);
  if (u_max > 0) {
    *dt = fmin(*dt, dx / u_max);
  }
  if (v_max > 0) {
    *dt = fmin(*dt, dy / v_max);
  }
  *dt *= tau;
}


x86 assembly (clang, -O0):
<calculate_dt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %esi,-0x2c(%rbp)
mov    %edx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x1,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1200 <calculate_dt+0xe0>
movl   $0x1,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x30(%rbp),%eax
jg     11ed <calculate_dt+0xcd>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <fabs@plt>
movsd  -0x70(%rbp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movsd  %xmm0,-0x48(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    119e <calculate_dt+0x7e>
jmp    11f2 <calculate_dt+0xd2>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1186 <calculate_dt+0x66>
movl   $0x1,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     1281 <calculate_dt+0x161>
movl   $0x1,-0x50(%rbp)
mov    -0x50(%rbp),%eax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     126e <calculate_dt+0x14e>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <fabs@plt>
movsd  -0x78(%rbp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movsd  %xmm0,-0x58(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    121a <calculate_dt+0xfa>
jmp    1273 <calculate_dt+0x153>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1207 <calculate_dt+0xe7>
movsd  -0x8(%rbp),%xmm0
movsd  0xd72(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x60(%rbp),%xmm1
mulsd  -0x68(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  -0x60(%rbp),%xmm1
addsd  -0x68(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1300 <calculate_dt+0x1e0>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm3
movsd  -0x20(%rbp),%xmm2
divsd  -0x48(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
minsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    134a <calculate_dt+0x22a>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm3
movsd  -0x28(%rbp),%xmm2
divsd  -0x58(%rbp),%xmm2
movaps %xmm2,%xmm4
movaps %xmm3,%xmm0
cmpunordsd %xmm0,%xmm0
movaps %xmm0,%xmm1
pand   %xmm4,%xmm1
minsd  %xmm3,%xmm2
pandn  %xmm2,%xmm0
por    %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculate_dt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r8,%r13
mov    %rdx,0x18(%rsp)
movaps %xmm3,0x60(%rsp)
movaps %xmm2,0x50(%rsp)
mov    %rdi,0x48(%rsp)
movsd  %xmm1,0x40(%rsp)
movsd  %xmm0,0x38(%rsp)
xorpd  %xmm5,%xmm5
xorps  %xmm0,%xmm0
mov    %rsi,0x10(%rsp)
cmp    $0x2,%esi
jl     12b1 <calculate_dt+0x191>
mov    %rcx,%rbx
mov    0x18(%rsp),%rax
add    $0x1,%eax
mov    0x10(%rsp),%ecx
mov    %rcx,0x28(%rsp)
lea    -0x1(%rax),%rbp
add    $0xfffffffffffffffe,%rax
mov    %rax,0x20(%rsp)
mov    %ebp,%eax
and    $0x3,%eax
mov    %rax,(%rsp)
and    $0xfffffffffffffffc,%rbp
xorps  %xmm0,%xmm0
mov    $0x1,%r14d
jmp    11b3 <calculate_dt+0x93>
nop
add    $0x1,%r14
cmp    0x28(%rsp),%r14
xorpd  %xmm5,%xmm5
je     12b1 <calculate_dt+0x191>
cmpl   $0x0,0x18(%rsp)
jle    11a0 <calculate_dt+0x80>
mov    $0x1,%r12d
cmpq   $0x3,0x20(%rsp)
jb     126d <calculate_dt+0x14d>
xor    %r12d,%r12d
nop
movsd  %xmm0,0x8(%rsp)
mov    (%rbx,%r14,8),%rax
movsd  0x8(%rax,%r12,8),%xmm0
call   1030 <fabs@plt>
movsd  0x8(%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movsd  %xmm0,0x8(%rsp)
mov    (%rbx,%r14,8),%rax
movsd  0x10(%rax,%r12,8),%xmm0
call   1030 <fabs@plt>
movsd  0x8(%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movsd  %xmm0,0x8(%rsp)
mov    (%rbx,%r14,8),%rax
movsd  0x18(%rax,%r12,8),%xmm0
call   1030 <fabs@plt>
movsd  0x8(%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movsd  %xmm0,0x8(%rsp)
mov    (%rbx,%r14,8),%rax
movsd  0x20(%rax,%r12,8),%xmm0
call   1030 <fabs@plt>
movsd  0x8(%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
add    $0x4,%r12
cmp    %r12,%rbp
jne    11d0 <calculate_dt+0xb0>
add    $0x1,%r12
cmpq   $0x0,(%rsp)
je     11a0 <calculate_dt+0x80>
mov    (%rsp),%r15
nopl   0x0(%rax)
movsd  %xmm0,0x8(%rsp)
mov    (%rbx,%r14,8),%rax
movsd  (%rax,%r12,8),%xmm0
call   1030 <fabs@plt>
movsd  0x8(%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
add    $0x1,%r12
add    $0xffffffffffffffff,%r15
jne    1280 <calculate_dt+0x160>
jmp    11a0 <calculate_dt+0x80>
movsd  %xmm0,0x8(%rsp)
movapd 0x50(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
movapd 0x60(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x30(%rsp)
cmpl   $0x0,0x10(%rsp)
jle    1434 <calculate_dt+0x314>
mov    0x10(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x10(%rsp)
mov    0x18(%rsp),%eax
lea    -0x1(%rax),%r15
add    $0xfffffffffffffffe,%rax
mov    %rax,0x28(%rsp)
mov    %r15d,%r12d
and    $0x3,%r12d
and    $0xfffffffffffffffc,%r15
xorpd  %xmm5,%xmm5
mov    $0x1,%ebx
jmp    132f <calculate_dt+0x20f>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    0x10(%rsp),%rbx
je     1434 <calculate_dt+0x314>
cmpl   $0x2,0x18(%rsp)
jl     1320 <calculate_dt+0x200>
mov    $0x1,%r14d
cmpq   $0x3,0x28(%rsp)
jb     13ed <calculate_dt+0x2cd>
xor    %r14d,%r14d
nopl   0x0(%rax,%rax,1)
movsd  %xmm5,(%rsp)
mov    0x0(%r13,%rbx,8),%rax
movsd  0x8(%rax,%r14,8),%xmm0
call   1030 <fabs@plt>
movsd  (%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movsd  %xmm0,(%rsp)
mov    0x0(%r13,%rbx,8),%rax
movsd  0x10(%rax,%r14,8),%xmm0
call   1030 <fabs@plt>
movsd  (%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movsd  %xmm0,(%rsp)
mov    0x0(%r13,%rbx,8),%rax
movsd  0x18(%rax,%r14,8),%xmm0
call   1030 <fabs@plt>
movsd  (%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movsd  %xmm0,(%rsp)
mov    0x0(%r13,%rbx,8),%rax
movsd  0x20(%rax,%r14,8),%xmm0
call   1030 <fabs@plt>
movsd  (%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movapd %xmm0,%xmm5
add    $0x4,%r14
cmp    %r14,%r15
jne    1350 <calculate_dt+0x230>
add    $0x1,%r14
test   %r12,%r12
je     1320 <calculate_dt+0x200>
mov    %r12,%rbp
nopl   0x0(%rax)
movsd  %xmm5,(%rsp)
mov    0x0(%r13,%rbx,8),%rax
movsd  (%rax,%r14,8),%xmm0
call   1030 <fabs@plt>
movsd  (%rsp),%xmm0
mov    %eax,%edi
call   1040 <fmax@plt>
movapd %xmm0,%xmm5
add    $0x1,%r14
add    $0xffffffffffffffff,%rbp
jne    1400 <calculate_dt+0x2e0>
jmp    1320 <calculate_dt+0x200>
movsd  0x38(%rsp),%xmm1
mulsd  0xbbe(%rip),%xmm1
movsd  0x20(%rsp),%xmm2
movapd %xmm2,%xmm0
movsd  0x30(%rsp),%xmm3
mulsd  %xmm3,%xmm0
mulsd  %xmm1,%xmm0
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm0
xorpd  %xmm1,%xmm1
movsd  0x8(%rsp),%xmm2
ucomisd %xmm1,%xmm2
jbe    149d <calculate_dt+0x37d>
movapd 0x50(%rsp),%xmm4
divsd  %xmm2,%xmm4
movapd %xmm0,%xmm2
cmpunordsd %xmm0,%xmm2
movapd %xmm2,%xmm3
andpd  %xmm4,%xmm3
minsd  %xmm0,%xmm4
andnpd %xmm4,%xmm2
orpd   %xmm3,%xmm2
movapd %xmm2,%xmm0
ucomisd %xmm1,%xmm5
jbe    14ce <calculate_dt+0x3ae>
movapd 0x60(%rsp),%xmm3
divsd  %xmm5,%xmm3
movapd %xmm0,%xmm1
cmpunordsd %xmm0,%xmm1
movapd %xmm1,%xmm2
andpd  %xmm3,%xmm2
minsd  %xmm0,%xmm3
andnpd %xmm3,%xmm1
orpd   %xmm2,%xmm1
movapd %xmm1,%xmm0
mulsd  0x40(%rsp),%xmm0
mov    0x48(%rsp),%rax
movsd  %xmm0,(%rax)
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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