; LLVM IR from avrtt/finite-element-method :: main.ll (Z9globalAsmv)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@nX = external dso_local global i32, align 4
@nY = external dso_local global i32, align 4
@i = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@gridX = external dso_local global ptr, align 8
@gridY = external dso_local global ptr, align 8
@f = external dso_local global ptr, align 8
@xPoint = external dso_local global double, align 8
@yPoint = external dso_local global double, align 8
@xUpperPoint = external dso_local global double, align 8
@yUpperPoint = external dso_local global double, align 8
@hx = external dso_local global double, align 8
@hy = external dso_local global double, align 8
@temp = external dso_local global double, align 8
@hx_2 = external dso_local global double, align 8
@hy_2 = external dso_local global double, align 8
@el1 = external dso_local global double, align 8
@el2 = external dso_local global double, align 8
@el3 = external dso_local global double, align 8
@el4 = external dso_local global double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9globalAsmv() #0 {
  %1 = alloca [4 x i32], align 16
  %2 = alloca [4 x [4 x double]], align 16
  %3 = alloca [4 x [4 x double]], align 16
  %4 = alloca [4 x double], align 16
  %5 = alloca [4 x double], align 16
  %6 = alloca [4 x [4 x double]], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %6) #5
  store i32 0, ptr @k, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %425, %0
  %8 = load i32, ptr @k, align 4, !tbaa !5
  %9 = load i32, ptr @nY, align 4, !tbaa !5
  %10 = sub nsw i32 %9, 1
  %11 = icmp slt i32 %8, %10
  br i1 %11, label %12, label %428

12:                                               ; preds = %7
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %421, %12
  %14 = load i32, ptr @i, align 4, !tbaa !5
  %15 = load i32, ptr @nX, align 4, !tbaa !5
  %16 = sub nsw i32 %15, 1
  %17 = icmp slt i32 %14, %16
  br i1 %17, label %18, label %424

18:                                               ; preds = %13
  %19 = load ptr, ptr @gridX, align 8, !tbaa !9
  %20 = load i32, ptr @i, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds double, ptr %19, i64 %21
  %23 = load double, ptr %22, align 8, !tbaa !11
  store double %23, ptr @xPoint, align 8, !tbaa !11
  %24 = load ptr, ptr @gridX, align 8, !tbaa !9
  %25 = load i32, ptr @i, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds double, ptr %24, i64 %27
  %29 = load double, ptr %28, align 8, !tbaa !11
  store double %29, ptr @xUpperPoint, align 8, !tbaa !11
  %30 = load ptr, ptr @gridY, align 8, !tbaa !9
  %31 = load i32, ptr @k, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds double, ptr %30, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !11
  store double %34, ptr @yPoint, align 8, !tbaa !11
  %35 = load ptr, ptr @gridY, align 8, !tbaa !9
  %36 = load i32, ptr @k, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %35, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !11
  store double %40, ptr @yUpperPoint, align 8, !tbaa !11
  %41 = load double, ptr @xUpperPoint, align 8, !tbaa !11
  %42 = load double, ptr @xPoint, align 8, !tbaa !11
  %43 = fsub double %41, %42
  store double %43, ptr @hx, align 8, !tbaa !11
  %44 = load double, ptr @yUpperPoint, align 8, !tbaa !11
  %45 = load double, ptr @yPoint, align 8, !tbaa !11
  %46 = fsub double %44, %45
  store double %46, ptr @hy, align 8, !tbaa !11
  %47 = load i32, ptr @nX, align 4, !tbaa !5
  %48 = load i32, ptr @k, align 4, !tbaa !5
  %49 = mul nsw i32 %47, %48
  %50 = load i32, ptr @i, align 4, !tbaa !5
  %51 = add nsw i32 %49, %50
  %52 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 0
  store i32 %51, ptr %52, align 16, !tbaa !5
  %53 = load i32, ptr @nX, align 4, !tbaa !5
  %54 = load i32, ptr @k, align 4, !tbaa !5
  %55 = mul nsw i32 %53, %54
  %56 = load i32, ptr @i, align 4, !tbaa !5
  %57 = add nsw i32 %55, %56
  %58 = add nsw i32 %57, 1
  %59 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 1
  store i32 %58, ptr %59, align 4, !tbaa !5
  %60 = load i32, ptr @nX, align 4, !tbaa !5
  %61 = load i32, ptr @k, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  %63 = mul nsw i32 %60, %62
  %64 = load i32, ptr @i, align 4, !tbaa !5
  %65 = add nsw i32 %63, %64
  %66 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 2
  store i32 %65, ptr %66, align 8, !tbaa !5
  %67 = load i32, ptr @nX, align 4, !tbaa !5
  %68 = load i32, ptr @k, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  %70 = mul nsw i32 %67, %69
  %71 = load i32, ptr @i, align 4, !tbaa !5
  %72 = add nsw i32 %70, %71
  %73 = add nsw i32 %72, 1
  %74 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 3
  store i32 %73, ptr %74, align 4, !tbaa !5
  %75 = load double, ptr @hx, align 8, !tbaa !11
  %76 = load double, ptr @hx, align 8, !tbaa !11
  %77 = fmul double %75, %76
  store double %77, ptr @hx_2, align 8, !tbaa !11
  %78 = load double, ptr @hy, align 8, !tbaa !11
  %79 = load double, ptr @hy, align 8, !tbaa !11
  %80 = fmul double %78, %79
  store double %80, ptr @hy_2, align 8, !tbaa !11
  %81 = load double, ptr @hx, align 8, !tbaa !11
  %82 = load double, ptr @hy, align 8, !tbaa !11
  %83 = fmul double %81, %82
  %84 = fdiv double 1.000000e+00, %83
  store double %84, ptr @temp, align 8, !tbaa !11
  %85 = load double, ptr @hx_2, align 8, !tbaa !11
  %86 = load double, ptr @hy_2, align 8, !tbaa !11
  %87 = fadd double %85, %86
  %88 = load double, ptr @temp, align 8, !tbaa !11
  %89 = fmul double %87, %88
  %90 = fdiv double %89, 3.000000e+00
  store double %90, ptr @el1, align 8, !tbaa !11
  %91 = load double, ptr @hx_2, align 8, !tbaa !11
  %92 = load double, ptr @hy_2, align 8, !tbaa !11
  %93 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %92, double %91)
  %94 = load double, ptr @temp, align 8, !tbaa !11
  %95 = fmul double %93, %94
  %96 = fdiv double %95, 6.000000e+00
  store double %96, ptr @el2, align 8, !tbaa !11
  %97 = load double, ptr @hx_2, align 8, !tbaa !11
  %98 = load double, ptr @hy_2, align 8, !tbaa !11
  %99 = fneg double %98
  %100 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %97, double %99)
  %101 = fneg double %100
  %102 = load double, ptr @temp, align 8, !tbaa !11
  %103 = fmul double %101, %102
  %104 = fdiv double %103, 6.000000e+00
  store double %104, ptr @el3, align 8, !tbaa !11
  %105 = load double, ptr @hx_2, align 8, !tbaa !11
  %106 = load double, ptr @hy_2, align 8, !tbaa !11
  %107 = fadd double %105, %106
  %108 = fneg double %107
  %109 = load double, ptr @temp, align 8, !tbaa !11
  %110 = fmul double %108, %109
  %111 = fdiv double %110, 6.000000e+00
  store double %111, ptr @el4, align 8, !tbaa !11
  %112 = load double, ptr @el1, align 8, !tbaa !11
  %113 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 0
  %114 = getelementptr inbounds [4 x double], ptr %113, i64 0, i64 0
  store double %112, ptr %114, align 16, !tbaa !11
  %115 = load double, ptr @el2, align 8, !tbaa !11
  %116 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 0
  %117 = getelementptr inbounds [4 x double], ptr %116, i64 0, i64 1
  store double %115, ptr %117, align 8, !tbaa !11
  %118 = load double, ptr @el3, align 8, !tbaa !11
  %119 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 0
  %120 = getelementptr inbounds [4 x double], ptr %119, i64 0, i64 2
  store double %118, ptr %120, align 16, !tbaa !11
  %121 = load double, ptr @el4, align 8, !tbaa !11
  %122 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 0
  %123 = getelementptr inbounds [4 x double], ptr %122, i64 0, i64 3
  store double %121, ptr %123, align 8, !tbaa !11
  %124 = load double, ptr @el2, align 8, !tbaa !11
  %125 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 1
  %126 = getelementptr inbounds [4 x double], ptr %125, i64 0, i64 0
  store double %124, ptr %126, align 16, !tbaa !11
  %127 = load double, ptr @el1, align 8, !tbaa !11
  %128 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 1
  %129 = getelementptr inbounds [4 x double], ptr %128, i64 0, i64 1
  store double %127, ptr %129, align 8, !tbaa !11
  %130 = load double, ptr @el4, align 8, !tbaa !11
  %131 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 1
  %132 = getelementptr inbounds [4 x double], ptr %131, i64 0, i64 2
  store double %130, ptr %132, align 16, !tbaa !11
  %133 = load double, ptr @el3, align 8, !tbaa !11
  %134 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 1
  %135 = getelementptr inbounds [4 x double], ptr %134, i64 0, i64 3
  store double %133, ptr %135, align 8, !tbaa !11
  %136 = load double, ptr @el3, align 8, !tbaa !11
  %137 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 2
  %138 = getelementptr inbounds [4 x double], ptr %137, i64 0, i64 0
  store double %136, ptr %138, align 16, !tbaa !11
  %139 = load double, ptr @el4, align 8, !tbaa !11
  %140 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 2
  %141 = getelementptr inbounds [4 x double], ptr %140, i64 0, i64 1
  store double %139, ptr %141, align 8, !tbaa !11
  %142 = load double, ptr @el1, align 8, !tbaa !11
  %143 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 2
  %144 = getelementptr inbounds [4 x double], ptr %143, i64 0, i64 2
  store double %142, ptr %144, align 16, !tbaa !11
  %145 = load double, ptr @el2, align 8, !tbaa !11
  %146 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 2
  %147 = getelementptr inbounds [4 x double], ptr %146, i64 0, i64 3
  store double %145, ptr %147, align 8, !tbaa !11
  %148 = load double, ptr @el4, align 8, !tbaa !11
  %149 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 3
  %150 = getelementptr inbounds [4 x double], ptr %149, i64 0, i64 0
  store double %148, ptr %150, align 16, !tbaa !11
  %151 = load double, ptr @el3, align 8, !tbaa !11
  %152 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 3
  %153 = getelementptr inbounds [4 x double], ptr %152, i64 0, i64 1
  store double %151, ptr %153, align 8, !tbaa !11
  %154 = load double, ptr @el2, align 8, !tbaa !11
  %155 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 3
  %156 = getelementptr inbounds [4 x double], ptr %155, i64 0, i64 2
  store double %154, ptr %156, align 16, !tbaa !11
  %157 = load double, ptr @el1, align 8, !tbaa !11
  %158 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 3
  %159 = getelementptr inbounds [4 x double], ptr %158, i64 0, i64 3
  store double %157, ptr %159, align 8, !tbaa !11
  %160 = load double, ptr @hx, align 8, !tbaa !11
  %161 = load double, ptr @hy, align 8, !tbaa !11
  %162 = fmul double %160, %161
  %163 = fdiv double %162, 9.000000e+00
  store double %163, ptr @el1, align 8, !tbaa !11
  %164 = load double, ptr @hx, align 8, !tbaa !11
  %165 = load double, ptr @hy, align 8, !tbaa !11
  %166 = fmul double %164, %165
  %167 = fdiv double %166, 1.800000e+01
  store double %167, ptr @el2, align 8, !tbaa !11
  %168 = load double, ptr @el2, align 8, !tbaa !11
  store double %168, ptr @el3, align 8, !tbaa !11
  %169 = load double, ptr @hx, align 8, !tbaa !11
  %170 = load double, ptr @hy, align 8, !tbaa !11
  %171 = fmul double %169, %170
  %172 = fdiv double %171, 3.600000e+01
  store double %172, ptr @el4, align 8, !tbaa !11
  %173 = load double, ptr @el1, align 8, !tbaa !11
  %174 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 0
  %175 = getelementptr inbounds [4 x double], ptr %174, i64 0, i64 0
  store double %173, ptr %175, align 16, !tbaa !11
  %176 = load double, ptr @el2, align 8, !tbaa !11
  %177 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 0
  %178 = getelementptr inbounds [4 x double], ptr %177, i64 0, i64 1
  store double %176, ptr %178, align 8, !tbaa !11
  %179 = load double, ptr @el3, align 8, !tbaa !11
  %180 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 0
  %181 = getelementptr inbounds [4 x double], ptr %180, i64 0, i64 2
  store double %179, ptr %181, align 16, !tbaa !11
  %182 = load double, ptr @el4, align 8, !tbaa !11
  %183 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 0
  %184 = getelementptr inbounds [4 x double], ptr %183, i64 0, i64 3
  store double %182, ptr %184, align 8, !tbaa !11
  %185 = load double, ptr @el2, align 8, !tbaa !11
  %186 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 1
  %187 = getelementptr inbounds [4 x double], ptr %186, i64 0, i64 0
  store double %185, ptr %187, align 16, !tbaa !11
  %188 = load double, ptr @el1, align 8, !tbaa !11
  %189 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 1
  %190 = getelementptr inbounds [4 x double], ptr %189, i64 0, i64 1
  store double %188, ptr %190, align 8, !tbaa !11
  %191 = load double, ptr @el4, align 8, !tbaa !11
  %192 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 1
  %193 = getelementptr inbounds [4 x double], ptr %192, i64 0, i64 2
  store double %191, ptr %193, align 16, !tbaa !11
  %194 = load double, ptr @el3, align 8, !tbaa !11
  %195 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 1
  %196 = getelementptr inbounds [4 x double], ptr %195, i64 0, i64 3
  store double %194, ptr %196, align 8, !tbaa !11
  %197 = load double, ptr @el3, align 8, !tbaa !11
  %198 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 2
  %199 = getelementptr inbounds [4 x double], ptr %198, i64 0, i64 0
  store double %197, ptr %199, align 16, !tbaa !11
  %200 = load double, ptr @el4, align 8, !tbaa !11
  %201 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 2
  %202 = getelementptr inbounds [4 x double], ptr %201, i64 0, i64 1
  store double %200, ptr %202, align 8, !tbaa !11
  %203 = load double, ptr @el1, align 8, !tbaa !11
  %204 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 2
  %205 = getelementptr inbounds [4 x double], ptr %204, i64 0, i64 2
  store double %203, ptr %205, align 16, !tbaa !11
  %206 = load double, ptr @el2, align 8, !tbaa !11
  %207 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 2
  %208 = getelementptr inbounds [4 x double], ptr %207, i64 0, i64 3
  store double %206, ptr %208, align 8, !tbaa !11
  %209 = load double, ptr @el4, align 8, !tbaa !11
  %210 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 3
  %211 = getelementptr inbounds [4 x double], ptr %210, i64 0, i64 0
  store double %209, ptr %211, align 16, !tbaa !11
  %212 = load double, ptr @el3, align 8, !tbaa !11
  %213 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 3
  %214 = getelementptr inbounds [4 x double], ptr %213, i64 0, i64 1
  store double %212, ptr %214, align 8, !tbaa !11
  %215 = load double, ptr @el2, align 8, !tbaa !11
  %216 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 3
  %217 = getelementptr inbounds [4 x double], ptr %216, i64 0, i64 2
  store double %215, ptr %217, align 16, !tbaa !11
  %218 = load double, ptr @el1, align 8, !tbaa !11
  %219 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 3
  %220 = getelementptr inbounds [4 x double], ptr %219, i64 0, i64 3
  store double %218, ptr %220, align 8, !tbaa !11
  %221 = load double, ptr @xPoint, align 8, !tbaa !11
  %222 = load double, ptr @yPoint, align 8, !tbaa !11
  %223 = call noundef double @_Z4getFdd(double noundef %221, double noundef %222)
  %224 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
  store double %223, ptr %224, align 16, !tbaa !11
  %225 = load double, ptr @xUpperPoint, align 8, !tbaa !11
  %226 = load double, ptr @yPoint, align 8, !tbaa !11
  %227 = call noundef double @_Z4getFdd(double noundef %225, double noundef %226)
  %228 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 1
  store double %227, ptr %228, align 8, !tbaa !11
  %229 = load double, ptr @xPoint, align 8, !tbaa !11
  %230 = load double, ptr @yUpperPoint, align 8, !tbaa !11
  %231 = call noundef double @_Z4getFdd(double noundef %229, double noundef %230)
  %232 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 2
  store double %231, ptr %232, align 16, !tbaa !11
  %233 = load double, ptr @xUpperPoint, align 8, !tbaa !11
  %234 = load double, ptr @yUpperPoint, align 8, !tbaa !11
  %235 = call noundef double @_Z4getFdd(double noundef %233, double noundef %234)
  %236 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 3
  store double %235, ptr %236, align 8, !tbaa !11
  %237 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 0
  %238 = getelementptr inbounds [4 x double], ptr %237, i64 0, i64 0
  %239 = load double, ptr %238, align 16, !tbaa !11
  %240 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
  %241 = load double, ptr %240, align 16, !tbaa !11
  %242 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 0
  %243 = getelementptr inbounds [4 x double], ptr %242, i64 0, i64 1
  %244 = load double, ptr %243, align 8, !tbaa !11
  %245 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 1
  %246 = load double, ptr %245, align 8, !tbaa !11
  %247 = fmul double %244, %246
  %248 = call double @llvm.fmuladd.f64(double %239, double %241, double %247)
  %249 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 0
  %250 = getelementptr inbounds [4 x double], ptr %249, i64 0, i64 2
  %251 = load double, ptr %250, align 16, !tbaa !11
  %252 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 2
  %253 = load double, ptr %252, align 16, !tbaa !11
  %254 = call double @llvm.fmuladd.f64(double %251, double %253, double %248)
  %255 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 0
  %256 = getelementptr inbounds [4 x double], ptr %255, i64 0, i64 3
  %257 = load double, ptr %256, align 8, !tbaa !11
  %258 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 3
  %259 = load double, ptr %258, align 8, !tbaa !11
  %260 = call double @llvm.fmuladd.f64(double %257, double %259, double %254)
  %261 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 0
  store double %260, ptr %261, align 16, !tbaa !11
  %262 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 1
  %263 = getelementptr inbounds [4 x double], ptr %262, i64 0, i64 0
  %264 = load double, ptr %263, align 16, !tbaa !11
  %265 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
  %266 = load double, ptr %265, align 16, !tbaa !11
  %267 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 1
  %268 = getelementptr inbounds [4 x double], ptr %267, i64 0, i64 1
  %269 = load double, ptr %268, align 8, !tbaa !11
  %270 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 1
  %271 = load double, ptr %270, align 8, !tbaa !11
  %272 = fmul double %269, %271
  %273 = call double @llvm.fmuladd.f64(double %264, double %266, double %272)
  %274 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 1
  %275 = getelementptr inbounds [4 x double], ptr %274, i64 0, i64 2
  %276 = load double, ptr %275, align 16, !tbaa !11
  %277 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 2
  %278 = load double, ptr %277, align 16, !tbaa !11
  %279 = call double @llvm.fmuladd.f64(double %276, double %278, double %273)
  %280 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 1
  %281 = getelementptr inbounds [4 x double], ptr %280, i64 0, i64 3
  %282 = load double, ptr %281, align 8, !tbaa !11
  %283 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 3
  %284 = load double, ptr %283, align 8, !tbaa !11
  %285 = call double @llvm.fmuladd.f64(double %282, double %284, double %279)
  %286 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 1
  store double %285, ptr %286, align 8, !tbaa !11
  %287 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 2
  %288 = getelementptr inbounds [4 x double], ptr %287, i64 0, i64 0
  %289 = load double, ptr %288, align 16, !tbaa !11
  %290 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
  %291 = load double, ptr %290, align 16, !tbaa !11
  %292 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 2
  %293 = getelementptr inbounds [4 x double], ptr %292, i64 0, i64 1
  %294 = load double, ptr %293, align 8, !tbaa !11
  %295 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 1
  %296 = load double, ptr %295, align 8, !tbaa !11
  %297 = fmul double %294, %296
  %298 = call double @llvm.fmuladd.f64(double %289, double %291, double %297)
  %299 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 2
  %300 = getelementptr inbounds [4 x double], ptr %299, i64 0, i64 2
  %301 = load double, ptr %300, align 16, !tbaa !11
  %302 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 2
  %303 = load double, ptr %302, align 16, !tbaa !11
  %304 = call double @llvm.fmuladd.f64(double %301, double %303, double %298)
  %305 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 2
  %306 = getelementptr inbounds [4 x double], ptr %305, i64 0, i64 3
  %307 = load double, ptr %306, align 8, !tbaa !11
  %308 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 3
  %309 = load double, ptr %308, align 8, !tbaa !11
  %310 = call double @llvm.fmuladd.f64(double %307, double %309, double %304)
  %311 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 2
  store double %310, ptr %311, align 16, !tbaa !11
  %312 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 3
  %313 = getelementptr inbounds [4 x double], ptr %312, i64 0, i64 0
  %314 = load double, ptr %313, align 16, !tbaa !11
  %315 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 0
  %316 = load double, ptr %315, align 16, !tbaa !11
  %317 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 3
  %318 = getelementptr inbounds [4 x double], ptr %317, i64 0, i64 1
  %319 = load double, ptr %318, align 8, !tbaa !11
  %320 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 1
  %321 = load double, ptr %320, align 8, !tbaa !11
  %322 = fmul double %319, %321
  %323 = call double @llvm.fmuladd.f64(double %314, double %316, double %322)
  %324 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 3
  %325 = getelementptr inbounds [4 x double], ptr %324, i64 0, i64 2
  %326 = load double, ptr %325, align 16, !tbaa !11
  %327 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 2
  %328 = load double, ptr %327, align 16, !tbaa !11
  %329 = call double @llvm.fmuladd.f64(double %326, double %328, double %323)
  %330 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 3
  %331 = getelementptr inbounds [4 x double], ptr %330, i64 0, i64 3
  %332 = load double, ptr %331, align 8, !tbaa !11
  %333 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 3
  %334 = load double, ptr %333, align 8, !tbaa !11
  %335 = call double @llvm.fmuladd.f64(double %332, double %334, double %329)
  %336 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 3
  store double %335, ptr %336, align 8, !tbaa !11
  store i32 0, ptr @n, align 4, !tbaa !5
  br label %337

337:                                              ; preds = %417, %18
  %338 = load i32, ptr @n, align 4, !tbaa !5
  %339 = icmp slt i32 %338, 4
  br i1 %339, label %340, label %420

340:                                              ; preds = %337
  %341 = load i32, ptr @n, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [4 x double], ptr %5, i64 0, i64 %342
  %344 = load double, ptr %343, align 8, !tbaa !11
  %345 = load ptr, ptr @f, align 8, !tbaa !9
  %346 = load i32, ptr @n, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %347
  %349 = load i32, ptr %348, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds double, ptr %345, i64 %350
  %352 = load double, ptr %351, align 8, !tbaa !11
  %353 = fadd double %352, %344
  store double %353, ptr %351, align 8, !tbaa !11
  store i32 0, ptr @m, align 4, !tbaa !5
  br label %354

354:                                              ; preds = %413, %340
  %355 = load i32, ptr @m, align 4, !tbaa !5
  %356 = icmp slt i32 %355, 4
  br i1 %356, label %357, label %416

357:                                              ; preds = %354
  %358 = load double, ptr @xPoint, align 8, !tbaa !11
  %359 = load double, ptr @hx, align 8, !tbaa !11
  %360 = fdiv double %359, 2.000000e+00
  %361 = fadd double %358, %360
  %362 = load double, ptr @yPoint, align 8, !tbaa !11
  %363 = load double, ptr @hy, align 8, !tbaa !11
  %364 = fdiv double %363, 2.000000e+00
  %365 = fadd double %362, %364
  %366 = call noundef double @_Z9getLambdadd(double noundef %361, double noundef %365)
  %367 = load i32, ptr @n, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 %368
  %370 = load i32, ptr @m, align 4, !tbaa !5
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [4 x double], ptr %369, i64 0, i64 %371
  %373 = load double, ptr %372, align 8, !tbaa !11
  %374 = load double, ptr @xPoint, align 8, !tbaa !11
  %375 = load double, ptr @hx, align 8, !tbaa !11
  %376 = fdiv double %375, 2.000000e+00
  %377 = fadd double %374, %376
  %378 = load double, ptr @yPoint, align 8, !tbaa !11
  %379 = load double, ptr @hy, align 8, !tbaa !11
  %380 = fdiv double %379, 2.000000e+00
  %381 = fadd double %378, %380
  %382 = call noundef double @_Z8getGammadd(double noundef %377, double noundef %381)
  %383 = load i32, ptr @n, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 %384
  %386 = load i32, ptr @m, align 4, !tbaa !5
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds [4 x double], ptr %385, i64 0, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !11
  %390 = fmul double %382, %389
  %391 = call double @llvm.fmuladd.f64(double %366, double %373, double %390)
  %392 = load i32, ptr @n, align 4, !tbaa !5
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [4 x [4 x double]], ptr %6, i64 0, i64 %393
  %395 = load i32, ptr @m, align 4, !tbaa !5
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds [4 x double], ptr %394, i64 0, i64 %396
  store double %391, ptr %397, align 8, !tbaa !11
  %398 = load i32, ptr @n, align 4, !tbaa !5
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [4 x [4 x double]], ptr %6, i64 0, i64 %399
  %401 = load i32, ptr @m, align 4, !tbaa !5
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds [4 x double], ptr %400, i64 0, i64 %402
  %404 = load double, ptr %403, align 8, !tbaa !11
  %405 = load i32, ptr @n, align 4, !tbaa !5
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %406
  %408 = load i32, ptr %407, align 4, !tbaa !5
  %409 = load i32, ptr @m, align 4, !tbaa !5
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %410
  %412 = load i32, ptr %411, align 4, !tbaa !5
  call void @_Z9addGlobaldii(double noundef %404, i32 noundef %408, i32 noundef %412)
  br label %413

413:                                              ; preds = %357
  %414 = load i32, ptr @m, align 4, !tbaa !5
  %415 = add nsw i32 %414, 1
  store i32 %415, ptr @m, align 4, !tbaa !5
  br label %354, !llvm.loop !13

416:                                              ; preds = %354
  br label %417

417:                                              ; preds = %416
  %418 = load i32, ptr @n, align 4, !tbaa !5
  %419 = add nsw i32 %418, 1
  store i32 %419, ptr @n, align 4, !tbaa !5
  br label %337, !llvm.loop !15

420:                                              ; preds = %337
  br label %421

421:                                              ; preds = %420
  %422 = load i32, ptr @i, align 4, !tbaa !5
  %423 = add nsw i32 %422, 1
  store i32 %423, ptr @i, align 4, !tbaa !5
  br label %13, !llvm.loop !16

424:                                              ; preds = %13
  br label %425

425:                                              ; preds = %424
  %426 = load i32, ptr @k, align 4, !tbaa !5
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr @k, align 4, !tbaa !5
  br label %7, !llvm.loop !17

428:                                              ; preds = %7
  call void @llvm.lifetime.end.p0(i64 128, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %1) #5
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

declare noundef double @_Z4getFdd(double noundef, double noundef) #3

declare noundef double @_Z9getLambdadd(double noundef, double noundef) #3

declare noundef double @_Z8getGammadd(double noundef, double noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9addGlobaldii(double noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@nX = external dso_local local_unnamed_addr global i32, align 4
@nY = external dso_local local_unnamed_addr global i32, align 4
@i = external dso_local local_unnamed_addr global i32, align 4
@k = external dso_local local_unnamed_addr global i32, align 4
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@gridX = external dso_local local_unnamed_addr global ptr, align 8
@gridY = external dso_local local_unnamed_addr global ptr, align 8
@f = external dso_local local_unnamed_addr global ptr, align 8
@xPoint = external dso_local local_unnamed_addr global double, align 8
@yPoint = external dso_local local_unnamed_addr global double, align 8
@xUpperPoint = external dso_local local_unnamed_addr global double, align 8
@yUpperPoint = external dso_local local_unnamed_addr global double, align 8
@hx = external dso_local local_unnamed_addr global double, align 8
@hy = external dso_local local_unnamed_addr global double, align 8
@temp = external dso_local local_unnamed_addr global double, align 8
@hx_2 = external dso_local local_unnamed_addr global double, align 8
@hy_2 = external dso_local local_unnamed_addr global double, align 8
@el1 = external dso_local local_unnamed_addr global double, align 8
@el2 = external dso_local local_unnamed_addr global double, align 8
@el3 = external dso_local local_unnamed_addr global double, align 8
@el4 = external dso_local local_unnamed_addr global double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9globalAsmv() local_unnamed_addr #0 {
  %1 = alloca [4 x i32], align 16
  %2 = alloca [4 x [4 x double]], align 16
  %3 = alloca [4 x [4 x double]], align 16
  %4 = alloca [4 x double], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  store i32 0, ptr @k, align 4, !tbaa !5
  %5 = load i32, ptr @nY, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 1
  br i1 %6, label %.preheader.lr.ph, label %._crit_edge19

.preheader.lr.ph:                                 ; preds = %0
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = getelementptr inbounds i8, ptr %1, i64 12
  %10 = getelementptr inbounds i8, ptr %2, i64 16
  %11 = getelementptr inbounds i8, ptr %2, i64 32
  %12 = getelementptr inbounds i8, ptr %2, i64 40
  %13 = getelementptr inbounds i8, ptr %2, i64 48
  %14 = getelementptr inbounds i8, ptr %2, i64 56
  %15 = getelementptr inbounds i8, ptr %2, i64 64
  %16 = getelementptr inbounds i8, ptr %2, i64 80
  %17 = getelementptr inbounds i8, ptr %2, i64 96
  %18 = getelementptr inbounds i8, ptr %2, i64 104
  %19 = getelementptr inbounds i8, ptr %2, i64 112
  %20 = getelementptr inbounds i8, ptr %2, i64 120
  %21 = getelementptr inbounds i8, ptr %3, i64 16
  %22 = getelementptr inbounds i8, ptr %3, i64 24
  %23 = getelementptr inbounds i8, ptr %3, i64 32
  %24 = getelementptr inbounds i8, ptr %3, i64 40
  %25 = getelementptr inbounds i8, ptr %3, i64 48
  %26 = getelementptr inbounds i8, ptr %3, i64 56
  %27 = getelementptr inbounds i8, ptr %3, i64 64
  %28 = getelementptr inbounds i8, ptr %3, i64 72
  %29 = getelementptr inbounds i8, ptr %3, i64 80
  %30 = getelementptr inbounds i8, ptr %3, i64 96
  %31 = getelementptr inbounds i8, ptr %3, i64 104
  %32 = getelementptr inbounds i8, ptr %3, i64 112
  %33 = getelementptr inbounds i8, ptr %3, i64 120
  %34 = getelementptr inbounds i8, ptr %4, i64 16
  %35 = load i32, ptr @nX, align 4, !tbaa !5
  %36 = icmp sgt i32 %35, 1
  br i1 %36, label %.preheader, label %.preheader.lr.ph.split.us

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %smax = add nsw i32 %5, -1
  store i32 0, ptr @i, align 4, !tbaa !5
  store i32 %smax, ptr @k, align 4, !tbaa !5
  br label %._crit_edge19

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %37 = phi i32 [ %185, %._crit_edge ], [ %5, %.preheader.lr.ph ]
  %38 = phi i32 [ %188, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %39 = phi i32 [ %187, %._crit_edge ], [ %35, %.preheader.lr.ph ]
  store i32 0, ptr @i, align 4, !tbaa !5
  %40 = icmp sgt i32 %39, 1
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader, %179
  %41 = phi i32 [ %182, %179 ], [ %39, %.preheader ]
  %storemerge1418 = phi i32 [ %181, %179 ], [ 0, %.preheader ]
  %42 = load ptr, ptr @gridX, align 8, !tbaa !9
  %43 = sext i32 %storemerge1418 to i64
  %44 = getelementptr inbounds double, ptr %42, i64 %43
  %45 = load double, ptr %44, align 8, !tbaa !11
  store double %45, ptr @xPoint, align 8, !tbaa !11
  %46 = getelementptr i8, ptr %44, i64 8
  %47 = load double, ptr %46, align 8, !tbaa !11
  store double %47, ptr @xUpperPoint, align 8, !tbaa !11
  %48 = load ptr, ptr @gridY, align 8, !tbaa !9
  %49 = load i32, ptr @k, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %48, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  store double %52, ptr @yPoint, align 8, !tbaa !11
  %53 = getelementptr i8, ptr %51, i64 8
  %54 = load double, ptr %53, align 8, !tbaa !11
  store double %54, ptr @yUpperPoint, align 8, !tbaa !11
  %55 = fsub double %47, %45
  store double %55, ptr @hx, align 8, !tbaa !11
  %56 = fsub double %54, %52
  store double %56, ptr @hy, align 8, !tbaa !11
  %57 = mul nsw i32 %49, %41
  %58 = add nsw i32 %57, %storemerge1418
  store i32 %58, ptr %1, align 16, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %7, align 4, !tbaa !5
  %60 = add nsw i32 %49, 1
  %61 = mul nsw i32 %60, %41
  %62 = add nsw i32 %61, %storemerge1418
  store i32 %62, ptr %8, align 8, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %9, align 4, !tbaa !5
  %64 = fmul double %55, %55
  store double %64, ptr @hx_2, align 8, !tbaa !11
  %65 = fmul double %56, %56
  store double %65, ptr @hy_2, align 8, !tbaa !11
  %66 = fmul double %55, %56
  %67 = fdiv double 1.000000e+00, %66
  store double %67, ptr @temp, align 8, !tbaa !11
  %68 = fadd double %64, %65
  %69 = tail call double @llvm.fmuladd.f64(double %65, double -2.000000e+00, double %64)
  %70 = fneg double %65
  %71 = tail call double @llvm.fmuladd.f64(double %64, double 2.000000e+00, double %70)
  %72 = insertelement <2 x double> poison, double %68, i64 0
  %73 = insertelement <2 x double> %72, double %69, i64 1
  %74 = insertelement <2 x double> poison, double %67, i64 0
  %75 = shufflevector <2 x double> %74, <2 x double> poison, <2 x i32> zeroinitializer
  %76 = fmul <2 x double> %73, %75
  %77 = fdiv <2 x double> %76, <double 3.000000e+00, double 6.000000e+00>
  store <2 x double> %77, ptr %2, align 16, !tbaa !11
  %78 = insertelement <2 x double> poison, double %71, i64 0
  %79 = insertelement <2 x double> %78, double %68, i64 1
  %80 = fneg <2 x double> %79
  %81 = fmul <2 x double> %75, %80
  %82 = fdiv <2 x double> %81, <double 6.000000e+00, double 6.000000e+00>
  store <2 x double> %82, ptr %10, align 16, !tbaa !11
  %83 = extractelement <2 x double> %77, i64 1
  store double %83, ptr %11, align 16, !tbaa !11
  %84 = extractelement <2 x double> %77, i64 0
  store double %84, ptr %12, align 8, !tbaa !11
  %85 = extractelement <2 x double> %82, i64 1
  store double %85, ptr %13, align 16, !tbaa !11
  %86 = extractelement <2 x double> %82, i64 0
  store double %86, ptr %14, align 8, !tbaa !11
  store <2 x double> %82, ptr %15, align 16, !tbaa !11
  store <2 x double> %77, ptr %16, align 16, !tbaa !11
  store double %85, ptr %17, align 16, !tbaa !11
  store double %86, ptr %18, align 8, !tbaa !11
  store double %83, ptr %19, align 16, !tbaa !11
  store double %84, ptr %20, align 8, !tbaa !11
  %87 = fdiv double %66, 3.600000e+01
  store double %87, ptr @el4, align 8, !tbaa !11
  %88 = insertelement <2 x double> poison, double %66, i64 0
  %89 = shufflevector <2 x double> %88, <2 x double> poison, <2 x i32> zeroinitializer
  %90 = fdiv <2 x double> %89, <double 9.000000e+00, double 1.800000e+01>
  %91 = shufflevector <2 x double> %90, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %92 = extractelement <2 x double> %90, i64 0
  store double %92, ptr @el1, align 8, !tbaa !11
  %93 = extractelement <2 x double> %90, i64 1
  store double %93, ptr @el2, align 8, !tbaa !11
  store double %93, ptr @el3, align 8, !tbaa !11
  store <2 x double> %90, ptr %3, align 16, !tbaa !11
  store double %93, ptr %21, align 16, !tbaa !11
  store double %87, ptr %22, align 8, !tbaa !11
  store double %93, ptr %23, align 16, !tbaa !11
  store double %92, ptr %24, align 8, !tbaa !11
  store double %87, ptr %25, align 16, !tbaa !11
  store double %93, ptr %26, align 8, !tbaa !11
  store double %93, ptr %27, align 16, !tbaa !11
  store double %87, ptr %28, align 8, !tbaa !11
  store <2 x double> %90, ptr %29, align 16, !tbaa !11
  store double %87, ptr %30, align 16, !tbaa !11
  store double %93, ptr %31, align 8, !tbaa !11
  store double %93, ptr %32, align 16, !tbaa !11
  store double %92, ptr %33, align 8, !tbaa !11
  %94 = tail call noundef double @_Z4getFdd(double noundef %45, double noundef %52)
  %95 = load double, ptr @xUpperPoint, align 8, !tbaa !11
  %96 = load double, ptr @yPoint, align 8, !tbaa !11
  %97 = tail call noundef double @_Z4getFdd(double noundef %95, double noundef %96)
  %98 = load double, ptr @xPoint, align 8, !tbaa !11
  %99 = load double, ptr @yUpperPoint, align 8, !tbaa !11
  %100 = tail call noundef double @_Z4getFdd(double noundef %98, double noundef %99)
  %101 = load double, ptr @xUpperPoint, align 8, !tbaa !11
  %102 = load double, ptr @yUpperPoint, align 8, !tbaa !11
  %103 = tail call noundef double @_Z4getFdd(double noundef %101, double noundef %102)
  %104 = insertelement <2 x double> poison, double %97, i64 0
  %105 = shufflevector <2 x double> %104, <2 x double> poison, <2 x i32> zeroinitializer
  %106 = fmul <2 x double> %90, %105
  %107 = shufflevector <2 x double> %106, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %108 = insertelement <2 x double> poison, double %94, i64 0
  %109 = shufflevector <2 x double> %108, <2 x double> poison, <2 x i32> zeroinitializer
  %110 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %109, <2 x double> %107)
  %111 = insertelement <2 x double> %91, double %87, i64 1
  %112 = insertelement <2 x double> poison, double %100, i64 0
  %113 = shufflevector <2 x double> %112, <2 x double> poison, <2 x i32> zeroinitializer
  %114 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %111, <2 x double> %113, <2 x double> %110)
  %115 = insertelement <2 x double> %90, double %87, i64 0
  %116 = insertelement <2 x double> poison, double %103, i64 0
  %117 = shufflevector <2 x double> %116, <2 x double> poison, <2 x i32> zeroinitializer
  %118 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %115, <2 x double> %117, <2 x double> %114)
  store <2 x double> %118, ptr %4, align 16, !tbaa !11
  %119 = fmul double %87, %97
  %120 = insertelement <2 x double> %106, double %119, i64 0
  %121 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %111, <2 x double> %109, <2 x double> %120)
  %122 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %90, <2 x double> %113, <2 x double> %121)
  %123 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %91, <2 x double> %117, <2 x double> %122)
  store <2 x double> %123, ptr %34, align 16, !tbaa !11
  store i32 0, ptr @n, align 4, !tbaa !5
  br label %124

124:                                              ; preds = %.lr.ph, %175
  %storemerge1517 = phi i32 [ 0, %.lr.ph ], [ %177, %175 ]
  %125 = sext i32 %storemerge1517 to i64
  %126 = getelementptr inbounds [4 x double], ptr %4, i64 0, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !11
  %128 = load ptr, ptr @f, align 8, !tbaa !9
  %129 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %125
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds double, ptr %128, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = fadd double %127, %133
  store double %134, ptr %132, align 8, !tbaa !11
  store i32 0, ptr @m, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %124, %135
  %136 = load double, ptr @xPoint, align 8, !tbaa !11
  %137 = load double, ptr @hx, align 8, !tbaa !11
  %138 = fmul double %137, 5.000000e-01
  %139 = fadd double %136, %138
  %140 = load double, ptr @yPoint, align 8, !tbaa !11
  %141 = load double, ptr @hy, align 8, !tbaa !11
  %142 = fmul double %141, 5.000000e-01
  %143 = fadd double %140, %142
  %144 = tail call noundef double @_Z9getLambdadd(double noundef %139, double noundef %143)
  %145 = load i32, ptr @n, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = load i32, ptr @m, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [4 x [4 x double]], ptr %2, i64 0, i64 %146, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !11
  %151 = load double, ptr @xPoint, align 8, !tbaa !11
  %152 = load double, ptr @hx, align 8, !tbaa !11
  %153 = fmul double %152, 5.000000e-01
  %154 = fadd double %151, %153
  %155 = load double, ptr @yPoint, align 8, !tbaa !11
  %156 = load double, ptr @hy, align 8, !tbaa !11
  %157 = fmul double %156, 5.000000e-01
  %158 = fadd double %155, %157
  %159 = tail call noundef double @_Z8getGammadd(double noundef %154, double noundef %158)
  %160 = load i32, ptr @n, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = load i32, ptr @m, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [4 x [4 x double]], ptr %3, i64 0, i64 %161, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !11
  %166 = fmul double %159, %165
  %167 = tail call double @llvm.fmuladd.f64(double %144, double %150, double %166)
  %168 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %161
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %163
  %171 = load i32, ptr %170, align 4, !tbaa !5
  tail call void @_Z9addGlobaldii(double noundef %167, i32 noundef %169, i32 noundef %171)
  %172 = load i32, ptr @m, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr @m, align 4, !tbaa !5
  %174 = icmp slt i32 %172, 3
  br i1 %174, label %135, label %175, !llvm.loop !13

175:                                              ; preds = %135
  %176 = load i32, ptr @n, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr @n, align 4, !tbaa !5
  %178 = icmp slt i32 %176, 3
  br i1 %178, label %124, label %179, !llvm.loop !15

179:                                              ; preds = %175
  %180 = load i32, ptr @i, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr @i, align 4, !tbaa !5
  %182 = load i32, ptr @nX, align 4, !tbaa !5
  %183 = add nsw i32 %182, -1
  %184 = icmp slt i32 %181, %183
  br i1 %184, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !16

._crit_edge.loopexit:                             ; preds = %179
  %.pre = load i32, ptr @k, align 4, !tbaa !5
  %.pre20 = load i32, ptr @nY, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %185 = phi i32 [ %.pre20, %._crit_edge.loopexit ], [ %37, %.preheader ]
  %186 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %38, %.preheader ]
  %187 = phi i32 [ %182, %._crit_edge.loopexit ], [ %39, %.preheader ]
  %188 = add nsw i32 %186, 1
  store i32 %188, ptr @k, align 4, !tbaa !5
  %189 = add nsw i32 %185, -1
  %190 = icmp slt i32 %188, %189
  br i1 %190, label %.preheader, label %._crit_edge19, !llvm.loop !17

._crit_edge19:                                    ; preds = %._crit_edge, %.preheader.lr.ph.split.us, %0
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

declare noundef double @_Z4getFdd(double noundef, double noundef) local_unnamed_addr #3

declare noundef double @_Z9getLambdadd(double noundef, double noundef) local_unnamed_addr #3

declare noundef double @_Z8getGammadd(double noundef, double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9addGlobaldii(double noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14, !18}
!18 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass