#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*/ HECMW_vis_print_exit(char *);
double fabs(double);
void find_projection_range3(double view_point[3], double n_iso[6],
                            double pixel_d[2][2], double iso_p[6]) {
  int i;
  double tmp_d;
  for (i = 0; i < 2; i++) {
    if (fabs(n_iso[i * 3 + 2] - view_point[2]) < 0.00000001)
      HECMW_vis_print_exit(
          "ERROR: HEC-MW-VIS-E2002: The viewpoint position is not correct");
    pixel_d[i][0] = view_point[0] - view_point[2] /
                                        (n_iso[i * 3 + 2] - view_point[2]) *
                                        (n_iso[i * 3 + 0] - view_point[0]);
    pixel_d[i][1] = view_point[1] - view_point[2] /
                                        (n_iso[i * 3 + 2] - view_point[2]) *
                                        (n_iso[i * 3 + 1] - view_point[1]);
  }
  if (pixel_d[0][0] > pixel_d[1][0]) {
    for (i = 0; i < 2; i++) {
      tmp_d = pixel_d[1][i];
      pixel_d[1][i] = pixel_d[0][i];
      pixel_d[0][i] = tmp_d;
    }
    for (i = 0; i < 3; i++) {
      tmp_d = n_iso[3 + i];
      n_iso[3 + i] = n_iso[i];
      n_iso[i] = tmp_d;
    }
    for (i = 0; i < 3; i++) {
      tmp_d = iso_p[3 + i];
      iso_p[3 + i] = iso_p[i];
      iso_p[i] = tmp_d;
    }
  }
  return;
}


x86 assembly (clang, -O0):
<find_projection_range3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
jge    128b <find_projection_range3+0x17b>
mov    -0x10(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm1
movaps 0xeb4(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xe98(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    117e <find_projection_range3+0x6e>
lea    0xea7(%rip),%rdi
call   1030 <HECMW_vis_print_exit@plt>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm2
divsd  %xmm2,%xmm0
mov    -0x10(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
subsd  0x10(%rax),%xmm2
divsd  %xmm2,%xmm0
mov    -0x10(%rbp),%rax
imul   $0x3,-0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
subsd  0x8(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x4,%rcx
add    %rcx,%rax
movsd  %xmm0,0x8(%rax)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    112f <find_projection_range3+0x1f>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
ucomisd 0x10(%rax),%xmm0
jbe    13d4 <find_projection_range3+0x2c4>
movl   $0x0,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
jge    1301 <find_projection_range3+0x1f1>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  0x10(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,0x10(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12a9 <find_projection_range3+0x199>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3,-0x24(%rbp)
jge    1368 <find_projection_range3+0x258>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1308 <find_projection_range3+0x1f8>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3,-0x24(%rbp)
jge    13cf <find_projection_range3+0x2bf>
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    136f <find_projection_range3+0x25f>
jmp    13d4 <find_projection_range3+0x2c4>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_projection_range3>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r12
movsd  0x10(%rsi),%xmm0
movsd  0x10(%rdi),%xmm1
subsd  %xmm1,%xmm0
movapd 0xec6(%rip),%xmm2
andpd  %xmm0,%xmm2
movsd  0xeca(%rip),%xmm5
ucomisd %xmm2,%xmm5
jbe    1170 <find_projection_range3+0x60>
lea    0xec5(%rip),%rdi
call   1030 <HECMW_vis_print_exit@plt>
movsd  0xeb0(%rip),%xmm5
movsd  0x10(%r12),%xmm1
movsd  0x10(%rbx),%xmm0
subsd  %xmm1,%xmm0
divsd  %xmm0,%xmm1
movsd  (%r12),%xmm0
movsd  (%rbx),%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
subsd  %xmm2,%xmm0
movsd  %xmm0,(%r15)
movsd  0x8(%r12),%xmm1
movsd  0x10(%r12),%xmm2
movsd  0x8(%rbx),%xmm3
movsd  0x10(%rbx),%xmm4
subsd  %xmm2,%xmm4
subsd  %xmm1,%xmm3
divsd  %xmm4,%xmm2
mulsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
movsd  %xmm1,0x8(%r15)
movsd  0x28(%rbx),%xmm2
movsd  0x10(%r12),%xmm1
subsd  %xmm1,%xmm2
movapd 0xe27(%rip),%xmm3
andpd  %xmm2,%xmm3
ucomisd %xmm3,%xmm5
jbe    1204 <find_projection_range3+0xf4>
lea    0xe2e(%rip),%rdi
call   1030 <HECMW_vis_print_exit@plt>
movsd  0x10(%r12),%xmm1
movsd  0x28(%rbx),%xmm2
movsd  (%r15),%xmm0
subsd  %xmm1,%xmm2
divsd  %xmm2,%xmm1
movsd  (%r12),%xmm2
movsd  0x18(%rbx),%xmm3
subsd  %xmm2,%xmm3
mulsd  %xmm1,%xmm3
subsd  %xmm3,%xmm2
movsd  %xmm2,0x10(%r15)
movsd  0x8(%r12),%xmm1
movsd  0x10(%r12),%xmm3
movsd  0x20(%rbx),%xmm4
movsd  0x28(%rbx),%xmm5
subsd  %xmm3,%xmm5
subsd  %xmm1,%xmm4
divsd  %xmm5,%xmm3
mulsd  %xmm4,%xmm3
subsd  %xmm3,%xmm1
movsd  %xmm1,0x18(%r15)
ucomisd %xmm2,%xmm0
jbe    12c6 <find_projection_range3+0x1b6>
movsd  %xmm0,0x10(%r15)
movsd  %xmm2,(%r15)
movsd  0x8(%r15),%xmm0
movsd  %xmm0,0x18(%r15)
movsd  %xmm1,0x8(%r15)
movups 0x18(%rbx),%xmm0
movups (%rbx),%xmm1
movups %xmm1,0x18(%rbx)
movups %xmm0,(%rbx)
movsd  0x28(%rbx),%xmm0
movsd  0x10(%rbx),%xmm1
movsd  %xmm1,0x28(%rbx)
movsd  %xmm0,0x10(%rbx)
movups 0x18(%r14),%xmm0
movups (%r14),%xmm1
movups %xmm1,0x18(%r14)
movups %xmm0,(%r14)
movsd  0x28(%r14),%xmm0
movsd  0x10(%r14),%xmm1
movsd  %xmm1,0x28(%r14)
movsd  %xmm0,0x10(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [63 x i8] c"ERROR: HEC-MW-VIS-E2002: The viewpoint position is not correct\00"
define void @find_projection_range3(double* %0, double* %1, [2 x double]* %2, double* %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca [2 x double]*
%8 = alloca double*
%9 = alloca i32
%10 = alloca double
store double* %0, double** %5
store double* %1, double** %6
store [2 x double]* %2, [2 x double]** %7
store double* %3, double** %8
store i32 0, i32* %9
br label %11
11: ; preds = %103, %4
%12 = load i32, i32* %9
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %106
14: ; preds = %11
%15 = load double*, double** %6
%16 = load i32, i32* %9
%17 = mul nsw i32 %16, 3
%18 = add nsw i32 %17, 2
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds double, double* %15, i64 %19
%21 = load double, double* %20
%22 = load double*, double** %5
%23 = getelementptr inbounds double, double* %22, i64 2
%24 = load double, double* %23
%25 = fsub double %21, %24
%26 = call double @llvm.fabs.f64(double %25)
%27 = fcmp olt double %26, 1.000000e-08
br i1 %27, label %28, label %30
28: ; preds = %14
%29 = call i32 @HECMW_vis_print_exit(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
br label %30
30: ; preds = %28, %14
%31 = load double*, double** %5
%32 = getelementptr inbounds double, double* %31, i64 0
%33 = load double, double* %32
%34 = load double*, double** %5
%35 = getelementptr inbounds double, double* %34, i64 2
%36 = load double, double* %35
%37 = load double*, double** %6
%38 = load i32, i32* %9
%39 = mul nsw i32 %38, 3
%40 = add nsw i32 %39, 2
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %37, i64 %41
%43 = load double, double* %42
%44 = load double*, double** %5
%45 = getelementptr inbounds double, double* %44, i64 2
%46 = load double, double* %45
%47 = fsub double %43, %46
%48 = fdiv double %36, %47
%49 = load double*, double** %6
%50 = load i32, i32* %9
%51 = mul nsw i32 %50, 3
%52 = add nsw i32 %51, 0
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %49, i64 %53
%55 = load double, double* %54
%56 = load double*, double** %5
%57 = getelementptr inbounds double, double* %56, i64 0
%58 = load double, double* %57
%59 = fsub double %55, %58
%60 = fneg double %48
%61 = call double @llvm.fmuladd.f64(double %60, double %59, double %33)
%62 = load [2 x double]*, [2 x double]** %7
%63 = load i32, i32* %9
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [2 x double], [2 x double]* %62, i64 %64
%66 = getelementptr inbounds [2 x double], [2 x double]* %65, i64 0, i64 0
store double %61, double* %66
%67 = load double*, double** %5
%68 = getelementptr inbounds double, double* %67, i64 1
%69 = load double, double* %68
%70 = load double*, double** %5
%71 = getelementptr inbounds double, double* %70, i64 2
%72 = load double, double* %71
%73 = load double*, double** %6
%74 = load i32, i32* %9
%75 = mul nsw i32 %74, 3
%76 = add nsw i32 %75, 2
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %73, i64 %77
%79 = load double, double* %78
%80 = load double*, double** %5
%81 = getelementptr inbounds double, double* %80, i64 2
%82 = load double, double* %81
%83 = fsub double %79, %82
%84 = fdiv double %72, %83
%85 = load double*, double** %6
%86 = load i32, i32* %9
%87 = mul nsw i32 %86, 3
%88 = add nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %85, i64 %89
%91 = load double, double* %90
%92 = load double*, double** %5
%93 = getelementptr inbounds double, double* %92, i64 1
%94 = load double, double* %93
%95 = fsub double %91, %94
%96 = fneg double %84
%97 = call double @llvm.fmuladd.f64(double %96, double %95, double %69)
%98 = load [2 x double]*, [2 x double]** %7
%99 = load i32, i32* %9
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [2 x double], [2 x double]* %98, i64 %100
%102 = getelementptr inbounds [2 x double], [2 x double]* %101, i64 0, i64 1
store double %97, double* %102
br label %103
103: ; preds = %30
%104 = load i32, i32* %9
%105 = add nsw i32 %104, 1
store i32 %105, i32* %9
br label %11
106: ; preds = %11
%107 = load [2 x double]*, [2 x double]** %7
%108 = getelementptr inbounds [2 x double], [2 x double]* %107, i64 0
%109 = getelementptr inbounds [2 x double], [2 x double]* %108, i64 0, i64 0
%110 = load double, double* %109
%111 = load [2 x double]*, [2 x double]** %7
%112 = getelementptr inbounds [2 x double], [2 x double]* %111, i64 1
%113 = getelementptr inbounds [2 x double], [2 x double]* %112, i64 0, i64 0
%114 = load double, double* %113
%115 = fcmp ogt double %110, %114
br i1 %115, label %116, label %206
116: ; preds = %106
store i32 0, i32* %9
br label %117
117: ; preds = %144, %116
%118 = load i32, i32* %9
%119 = icmp slt i32 %118, 2
br i1 %119, label %120, label %147
120: ; preds = %117
%121 = load [2 x double]*, [2 x double]** %7
%122 = getelementptr inbounds [2 x double], [2 x double]* %121, i64 1
%123 = load i32, i32* %9
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [2 x double], [2 x double]* %122, i64 0, i64 %124
%126 = load double, double* %125
store double %126, double* %10
%127 = load [2 x double]*, [2 x double]** %7
%128 = getelementptr inbounds [2 x double], [2 x double]* %127, i64 0
%129 = load i32, i32* %9
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [2 x double], [2 x double]* %128, i64 0, i64 %130
%132 = load double, double* %131
%133 = load [2 x double]*, [2 x double]** %7
%134 = getelementptr inbounds [2 x double], [2 x double]* %133, i64 1
%135 = load i32, i32* %9
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [2 x double], [2 x double]* %134, i64 0, i64 %136
store double %132, double* %137
%138 = load double, double* %10
%139 = load [2 x double]*, [2 x double]** %7
%140 = getelementptr inbounds [2 x double], [2 x double]* %139, i64 0
%141 = load i32, i32* %9
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [2 x double], [2 x double]* %140, i64 0, i64 %142
store double %138, double* %143
br label %144
144: ; preds = %120
%145 = load i32, i32* %9
%146 = add nsw i32 %145, 1
store i32 %146, i32* %9
br label %117
147: ; preds = %117
store i32 0, i32* %9
br label %148
148: ; preds = %173, %147
%149 = load i32, i32* %9
%150 = icmp slt i32 %149, 3
br i1 %150, label %151, label %176
151: ; preds = %148
%152 = load double*, double** %6
%153 = load i32, i32* %9
%154 = add nsw i32 3, %153
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, double* %152, i64 %155
%157 = load double, double* %156
store double %157, double* %10
%158 = load double*, double** %6
%159 = load i32, i32* %9
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, double* %158, i64 %160
%162 = load double, double* %161
%163 = load double*, double** %6
%164 = load i32, i32* %9
%165 = add nsw i32 3, %164
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds double, double* %163, i64 %166
store double %162, double* %167
%168 = load double, double* %10
%169 = load double*, double** %6
%170 = load i32, i32* %9
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds double, double* %169, i64 %171
store double %168, double* %172
br label %173
173: ; preds = %151
%174 = load i32, i32* %9
%175 = add nsw i32 %174, 1
store i32 %175, i32* %9
br label %148
176: ; preds = %148
store i32 0, i32* %9
br label %177
177: ; preds = %202, %176
%178 = load i32, i32* %9
%179 = icmp slt i32 %178, 3
br i1 %179, label %180, label %205
180: ; preds = %177
%181 = load double*, double** %8
%182 = load i32, i32* %9
%183 = add nsw i32 3, %182
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, double* %181, i64 %184
%186 = load double, double* %185
store double %186, double* %10
%187 = load double*, double** %8
%188 = load i32, i32* %9
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds double, double* %187, i64 %189
%191 = load double, double* %190
%192 = load double*, double** %8
%193 = load i32, i32* %9
%194 = add nsw i32 3, %193
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, double* %192, i64 %195
store double %191, double* %196
%197 = load double, double* %10
%198 = load double*, double** %8
%199 = load i32, i32* %9
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds double, double* %198, i64 %200
store double %197, double* %201
br label %202
202: ; preds = %180
%203 = load i32, i32* %9
%204 = add nsw i32 %203, 1
store i32 %204, i32* %9
br label %177
205: ; preds = %177
br label %206
206: ; preds = %205, %106
ret void
}

LLVM IR (-O2):
@.str = [63 x i8] c"ERROR: HEC-MW-VIS-E2002: The viewpoint position is not correct\00"
define void @find_projection_range3(double* nocapture %0, double* nocapture %1, [2 x double]* nocapture %2, double* nocapture %3) {
%5 = getelementptr inbounds double, double* %0, i64 2
%6 = getelementptr inbounds double, double* %0, i64 1
%7 = getelementptr inbounds double, double* %1, i64 2
%8 = load double, double* %7
%9 = load double, double* %5
%10 = fsub double %8, %9
%11 = tail call double @llvm.fabs.f64(double %10)
%12 = fcmp olt double %11, 1.000000e-08
br i1 %12, label %13, label %18
13: ; preds = %4
%14 = tail call i32 @HECMW_vis_print_exit(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%15 = load double, double* %5
%16 = load double, double* %7
%17 = fsub double %16, %15
br label %18
18: ; preds = %13, %4
%19 = phi double [ %17, %13 ], [ %10, %4 ]
%20 = phi double [ %15, %13 ], [ %9, %4 ]
%21 = load double, double* %0
%22 = load double, double* %1
%23 = fsub double %22, %21
%24 = fneg double %20
%25 = fdiv double %24, %19
%26 = tail call double @llvm.fmuladd.f64(double %25, double %23, double %21)
%27 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 0
store double %26, double* %27
%28 = load double, double* %6
%29 = load double, double* %5
%30 = load double, double* %7
%31 = fsub double %30, %29
%32 = getelementptr inbounds double, double* %1, i64 1
%33 = load double, double* %32
%34 = fsub double %33, %28
%35 = fneg double %29
%36 = fdiv double %35, %31
%37 = tail call double @llvm.fmuladd.f64(double %36, double %34, double %28)
%38 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 0, i64 1
store double %37, double* %38
%39 = getelementptr inbounds double, double* %1, i64 5
%40 = load double, double* %39
%41 = load double, double* %5
%42 = fsub double %40, %41
%43 = tail call double @llvm.fabs.f64(double %42)
%44 = fcmp olt double %43, 1.000000e-08
br i1 %44, label %45, label %51
45: ; preds = %18
%46 = tail call i32 @HECMW_vis_print_exit(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str, i64 0, i64 0))
%47 = load double, double* %5
%48 = load double, double* %39
%49 = load double, double* %27
%50 = fsub double %48, %47
br label %51
51: ; preds = %45, %18
%52 = phi double [ %50, %45 ], [ %42, %18 ]
%53 = phi double [ %49, %45 ], [ %26, %18 ]
%54 = phi double [ %47, %45 ], [ %41, %18 ]
%55 = load double, double* %0
%56 = getelementptr inbounds double, double* %1, i64 3
%57 = load double, double* %56
%58 = fsub double %57, %55
%59 = fneg double %54
%60 = fdiv double %59, %52
%61 = tail call double @llvm.fmuladd.f64(double %60, double %58, double %55)
%62 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 1, i64 0
store double %61, double* %62
%63 = load double, double* %6
%64 = load double, double* %5
%65 = load double, double* %39
%66 = fsub double %65, %64
%67 = getelementptr inbounds double, double* %1, i64 4
%68 = load double, double* %67
%69 = fsub double %68, %63
%70 = fneg double %64
%71 = fdiv double %70, %66
%72 = tail call double @llvm.fmuladd.f64(double %71, double %69, double %63)
%73 = getelementptr inbounds [2 x double], [2 x double]* %2, i64 1, i64 1
store double %72, double* %73
%74 = fcmp ogt double %53, %61
br i1 %74, label %75, label %96
75: ; preds = %51
store double %53, double* %62
store double %61, double* %27
%76 = load double, double* %38
store double %76, double* %73
store double %72, double* %38
%77 = bitcast double* %56 to <2 x double>*
%78 = load <2 x double>, <2 x double>* %77
%79 = bitcast double* %1 to <2 x double>*
%80 = load <2 x double>, <2 x double>* %79
%81 = bitcast double* %56 to <2 x double>*
store <2 x double> %80, <2 x double>* %81
%82 = bitcast double* %1 to <2 x double>*
store <2 x double> %78, <2 x double>* %82
%83 = load double, double* %39
%84 = load double, double* %7
store double %84, double* %39
store double %83, double* %7
%85 = getelementptr inbounds double, double* %3, i64 3
%86 = bitcast double* %85 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = bitcast double* %3 to <2 x double>*
%89 = load <2 x double>, <2 x double>* %88
%90 = bitcast double* %85 to <2 x double>*
store <2 x double> %89, <2 x double>* %90
%91 = bitcast double* %3 to <2 x double>*
store <2 x double> %87, <2 x double>* %91
%92 = getelementptr inbounds double, double* %3, i64 5
%93 = load double, double* %92
%94 = getelementptr inbounds double, double* %3, i64 2
%95 = load double, double* %94
store double %95, double* %92
store double %93, double* %94
br label %96
96: ; preds = %75, %51
ret void
}