; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Grid.ll (ZN6R3Grid7VoronoiEPS_)

; 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"

%class.R3Grid = type { %class.R3Affine, %class.R3Affine, double, double, ptr, [3 x i32], i32, i32, i32 }
%class.R3Affine = type { %class.R3Transformation, %class.R4Matrix, %class.R4Matrix, %class.RNFlags }
%class.R3Transformation = type { ptr }
%class.R4Matrix = type { [4 x [4 x double]] }
%class.RNFlags = type { i64 }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [11 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #0

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #1

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #2

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592), i32 noundef, i32 noundef, i32 noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) #6 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592), i32 noundef, i32 noundef, i32 noundef, double noundef) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R3Grid7VoronoiEPS_(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef %1) #7 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %30

28:                                               ; preds = %2
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %29, ptr %11, align 8, !tbaa !5
  br label %43

30:                                               ; preds = %2
  %31 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 592) #9
  %32 = invoke noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
          to label %33 unwind label %39

33:                                               ; preds = %30
  %34 = invoke noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
          to label %35 unwind label %39

35:                                               ; preds = %33
  %36 = invoke noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
          to label %37 unwind label %39

37:                                               ; preds = %35
  invoke void @_ZN6R3GridC1Eiii(ptr noundef nonnull align 8 dereferenceable(592) %31, i32 noundef %32, i32 noundef %34, i32 noundef %36)
          to label %38 unwind label %39

38:                                               ; preds = %37
  store ptr %31, ptr %11, align 8, !tbaa !5
  br label %43

39:                                               ; preds = %37, %35, %33, %30
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %22, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %23, align 4
  call void @_ZdlPvm(ptr noundef %31, i64 noundef 592) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %675

43:                                               ; preds = %38, %28
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.25, i32 noundef 1377, ptr noundef @.str.2)
  br label %47

47:                                               ; preds = %46, %43
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZNK6R3Grid25WorldToGridTransformationEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  call void @_ZN6R3Grid28SetWorldToGridTransformationERK8R3Affine(ptr noundef nonnull align 8 dereferenceable(592) %48, ptr noundef nonnull align 8 dereferenceable(272) %49)
  %50 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  store i32 %50, ptr %12, align 4, !tbaa !9
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %54, label %56

54:                                               ; preds = %47
  %55 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  store i32 %55, ptr %12, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %54, %47
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %60, label %62

60:                                               ; preds = %56
  %61 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  store i32 %61, ptr %12, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %60, %56
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %64, i64 4)
  %66 = extractvalue { i64, i1 } %65, 1
  %67 = extractvalue { i64, i1 } %65, 0
  %68 = select i1 %66, i64 -1, i64 %67
  %69 = call noalias noundef nonnull ptr @_Znam(i64 noundef %68) #9
  store ptr %69, ptr %6, align 8, !tbaa !5
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %71, i64 4)
  %73 = extractvalue { i64, i1 } %72, 1
  %74 = extractvalue { i64, i1 } %72, 0
  %75 = select i1 %73, i64 -1, i64 %74
  %76 = call noalias noundef nonnull ptr @_Znam(i64 noundef %75) #9
  store ptr %76, ptr %7, align 8, !tbaa !5
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %78, i64 8)
  %80 = extractvalue { i64, i1 } %79, 1
  %81 = extractvalue { i64, i1 } %79, 0
  %82 = select i1 %80, i64 -1, i64 %81
  %83 = call noalias noundef nonnull ptr @_Znam(i64 noundef %82) #9
  store ptr %83, ptr %9, align 8, !tbaa !5
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %85, i64 8)
  %87 = extractvalue { i64, i1 } %86, 1
  %88 = extractvalue { i64, i1 } %86, 0
  %89 = select i1 %87, i64 -1, i64 %88
  %90 = call noalias noundef nonnull ptr @_Znam(i64 noundef %89) #9
  store ptr %90, ptr %10, align 8, !tbaa !5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %102

93:                                               ; preds = %62
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %102

96:                                               ; preds = %93
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %102

99:                                               ; preds = %96
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %103, label %102

102:                                              ; preds = %99, %96, %93, %62
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.26, i32 noundef 1388, ptr noundef @.str.2)
  br label %103

103:                                              ; preds = %102, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  %106 = mul nsw i32 3, %105
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  %109 = mul nsw i32 %106, %108
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  %112 = mul nsw i32 %109, %111
  %113 = sitofp i32 %112 to double
  store double %113, ptr %24, align 8, !tbaa !11
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %143, %103
  %115 = load i32, ptr %21, align 4, !tbaa !9
  %116 = getelementptr inbounds %class.R3Grid, ptr %25, i32 0, i32 8
  %117 = load i32, ptr %116, align 4, !tbaa !13
  %118 = icmp slt i32 %115, %117
  br i1 %118, label %119, label %146

119:                                              ; preds = %114
  %120 = getelementptr inbounds %class.R3Grid, ptr %25, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !20
  %122 = load i32, ptr %21, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %121, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = fcmp oeq double %125, 0.000000e+00
  br i1 %126, label %127, label %135

127:                                              ; preds = %119
  %128 = load double, ptr %24, align 8, !tbaa !11
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %class.R3Grid, ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !20
  %132 = load i32, ptr %21, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds double, ptr %131, i64 %133
  store double %128, ptr %134, align 8, !tbaa !11
  br label %142

135:                                              ; preds = %119
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %class.R3Grid, ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !20
  %139 = load i32, ptr %21, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %138, i64 %140
  store double 0.000000e+00, ptr %141, align 8, !tbaa !11
  br label %142

142:                                              ; preds = %135, %127
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %21, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %21, align 4, !tbaa !9
  br label %114, !llvm.loop !21

146:                                              ; preds = %114
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %270, %146
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %151, label %273

151:                                              ; preds = %147
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %266, %151
  %153 = load i32, ptr %17, align 4, !tbaa !9
  %154 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %156, label %269

156:                                              ; preds = %152
  store i32 1, ptr %15, align 4, !tbaa !9
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  store i32 0, ptr %5, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %202, %156
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %160 = icmp slt i32 %158, %159
  br i1 %160, label %161, label %205

161:                                              ; preds = %157
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %162, i32 noundef %163, i32 noundef %164, i32 noundef %165)
  %167 = fcmp oeq double %166, 0.000000e+00
  br i1 %167, label %168, label %177

168:                                              ; preds = %161
  store i32 0, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %25, i32 noundef %169, i32 noundef %170, i32 noundef %171)
  store double %172, ptr %8, align 8, !tbaa !11
  %173 = load double, ptr %8, align 8, !tbaa !11
  %174 = fcmp une double %173, 0.000000e+00
  br i1 %174, label %176, label %175

175:                                              ; preds = %168
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.27, i32 noundef 1408, ptr noundef @.str.2)
  br label %176

176:                                              ; preds = %175, %168
  br label %201

177:                                              ; preds = %161
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %200

180:                                              ; preds = %177
  %181 = load i32, ptr %5, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %5, align 4, !tbaa !9
  %183 = load i32, ptr %5, align 4, !tbaa !9
  %184 = load i32, ptr %5, align 4, !tbaa !9
  %185 = mul nsw i32 %183, %184
  store i32 %185, ptr %13, align 4, !tbaa !9
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = load i32, ptr %17, align 4, !tbaa !9
  %189 = load i32, ptr %18, align 4, !tbaa !9
  %190 = load i32, ptr %13, align 4, !tbaa !9
  %191 = sitofp i32 %190 to double
  call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %186, i32 noundef %187, i32 noundef %188, i32 noundef %189, double noundef %191)
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = load i32, ptr %17, align 4, !tbaa !9
  %194 = load i32, ptr %18, align 4, !tbaa !9
  %195 = load double, ptr %8, align 8, !tbaa !11
  call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %25, i32 noundef %192, i32 noundef %193, i32 noundef %194, double noundef %195)
  %196 = load double, ptr %8, align 8, !tbaa !11
  %197 = fcmp une double %196, 0.000000e+00
  br i1 %197, label %199, label %198

198:                                              ; preds = %180
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.27, i32 noundef 1415, ptr noundef @.str.2)
  br label %199

199:                                              ; preds = %198, %180
  br label %200

200:                                              ; preds = %199, %177
  br label %201

201:                                              ; preds = %200, %176
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %18, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %18, align 4, !tbaa !9
  br label %157, !llvm.loop !23

205:                                              ; preds = %157
  store i32 0, ptr %5, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %206 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %207 = sub nsw i32 %206, 1
  store i32 %207, ptr %18, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %262, %205
  %209 = load i32, ptr %18, align 4, !tbaa !9
  %210 = icmp sge i32 %209, 0
  br i1 %210, label %211, label %265

211:                                              ; preds = %208
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = load i32, ptr %16, align 4, !tbaa !9
  %214 = load i32, ptr %17, align 4, !tbaa !9
  %215 = load i32, ptr %18, align 4, !tbaa !9
  %216 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %212, i32 noundef %213, i32 noundef %214, i32 noundef %215)
  %217 = fcmp oeq double %216, 0.000000e+00
  br i1 %217, label %218, label %227

218:                                              ; preds = %211
  store i32 0, ptr %5, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %219 = load i32, ptr %16, align 4, !tbaa !9
  %220 = load i32, ptr %17, align 4, !tbaa !9
  %221 = load i32, ptr %18, align 4, !tbaa !9
  %222 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %25, i32 noundef %219, i32 noundef %220, i32 noundef %221)
  store double %222, ptr %8, align 8, !tbaa !11
  %223 = load double, ptr %8, align 8, !tbaa !11
  %224 = fcmp une double %223, 0.000000e+00
  br i1 %224, label %226, label %225

225:                                              ; preds = %218
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.27, i32 noundef 1427, ptr noundef @.str.2)
  br label %226

226:                                              ; preds = %225, %218
  br label %261

227:                                              ; preds = %211
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = icmp eq i32 %228, 0
  br i1 %229, label %230, label %260

230:                                              ; preds = %227
  %231 = load i32, ptr %5, align 4, !tbaa !9
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %5, align 4, !tbaa !9
  %233 = load i32, ptr %5, align 4, !tbaa !9
  %234 = load i32, ptr %5, align 4, !tbaa !9
  %235 = mul nsw i32 %233, %234
  store i32 %235, ptr %13, align 4, !tbaa !9
  %236 = load i32, ptr %13, align 4, !tbaa !9
  %237 = sitofp i32 %236 to double
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = load i32, ptr %16, align 4, !tbaa !9
  %240 = load i32, ptr %17, align 4, !tbaa !9
  %241 = load i32, ptr %18, align 4, !tbaa !9
  %242 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %238, i32 noundef %239, i32 noundef %240, i32 noundef %241)
  %243 = fcmp olt double %237, %242
  br i1 %243, label %244, label %259

244:                                              ; preds = %230
  %245 = load ptr, ptr %11, align 8, !tbaa !5
  %246 = load i32, ptr %16, align 4, !tbaa !9
  %247 = load i32, ptr %17, align 4, !tbaa !9
  %248 = load i32, ptr %18, align 4, !tbaa !9
  %249 = load i32, ptr %13, align 4, !tbaa !9
  %250 = sitofp i32 %249 to double
  call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %245, i32 noundef %246, i32 noundef %247, i32 noundef %248, double noundef %250)
  %251 = load i32, ptr %16, align 4, !tbaa !9
  %252 = load i32, ptr %17, align 4, !tbaa !9
  %253 = load i32, ptr %18, align 4, !tbaa !9
  %254 = load double, ptr %8, align 8, !tbaa !11
  call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %25, i32 noundef %251, i32 noundef %252, i32 noundef %253, double noundef %254)
  %255 = load double, ptr %8, align 8, !tbaa !11
  %256 = fcmp une double %255, 0.000000e+00
  br i1 %256, label %258, label %257

257:                                              ; preds = %244
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.27, i32 noundef 1435, ptr noundef @.str.2)
  br label %258

258:                                              ; preds = %257, %244
  br label %259

259:                                              ; preds = %258, %230
  br label %260

260:                                              ; preds = %259, %227
  br label %261

261:                                              ; preds = %260, %226
  br label %262

262:                                              ; preds = %261
  %263 = load i32, ptr %18, align 4, !tbaa !9
  %264 = add nsw i32 %263, -1
  store i32 %264, ptr %18, align 4, !tbaa !9
  br label %208, !llvm.loop !24

265:                                              ; preds = %208
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %17, align 4, !tbaa !9
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %17, align 4, !tbaa !9
  br label %152, !llvm.loop !25

269:                                              ; preds = %152
  br label %270

270:                                              ; preds = %269
  %271 = load i32, ptr %16, align 4, !tbaa !9
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %16, align 4, !tbaa !9
  br label %147, !llvm.loop !26

273:                                              ; preds = %147
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %274

274:                                              ; preds = %459, %273
  %275 = load i32, ptr %18, align 4, !tbaa !9
  %276 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %277 = icmp slt i32 %275, %276
  br i1 %277, label %278, label %462

278:                                              ; preds = %274
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %279

279:                                              ; preds = %455, %278
  %280 = load i32, ptr %17, align 4, !tbaa !9
  %281 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %282 = icmp slt i32 %280, %281
  br i1 %282, label %283, label %458

283:                                              ; preds = %279
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %284

284:                                              ; preds = %308, %283
  %285 = load i32, ptr %16, align 4, !tbaa !9
  %286 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %287 = icmp slt i32 %285, %286
  br i1 %287, label %288, label %311

288:                                              ; preds = %284
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = load i32, ptr %16, align 4, !tbaa !9
  %291 = load i32, ptr %17, align 4, !tbaa !9
  %292 = load i32, ptr %18, align 4, !tbaa !9
  %293 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %289, i32 noundef %290, i32 noundef %291, i32 noundef %292)
  %294 = fadd double %293, 5.000000e-01
  %295 = fptosi double %294 to i32
  %296 = load ptr, ptr %6, align 8, !tbaa !5
  %297 = load i32, ptr %16, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds i32, ptr %296, i64 %298
  store i32 %295, ptr %299, align 4, !tbaa !9
  %300 = load i32, ptr %16, align 4, !tbaa !9
  %301 = load i32, ptr %17, align 4, !tbaa !9
  %302 = load i32, ptr %18, align 4, !tbaa !9
  %303 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %25, i32 noundef %300, i32 noundef %301, i32 noundef %302)
  %304 = load ptr, ptr %9, align 8, !tbaa !5
  %305 = load i32, ptr %16, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds double, ptr %304, i64 %306
  store double %303, ptr %307, align 8, !tbaa !11
  br label %308

308:                                              ; preds = %288
  %309 = load i32, ptr %16, align 4, !tbaa !9
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %16, align 4, !tbaa !9
  br label %284, !llvm.loop !27

311:                                              ; preds = %284
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %312

312:                                              ; preds = %378, %311
  %313 = load i32, ptr %16, align 4, !tbaa !9
  %314 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %315 = icmp slt i32 %313, %314
  br i1 %315, label %316, label %381

316:                                              ; preds = %312
  %317 = load ptr, ptr %6, align 8, !tbaa !5
  %318 = load i32, ptr %16, align 4, !tbaa !9
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds i32, ptr %317, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !9
  store i32 %321, ptr %5, align 4, !tbaa !9
  %322 = load ptr, ptr %9, align 8, !tbaa !5
  %323 = load i32, ptr %16, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds double, ptr %322, i64 %324
  %326 = load double, ptr %325, align 8, !tbaa !11
  store double %326, ptr %8, align 8, !tbaa !11
  %327 = load i32, ptr %5, align 4, !tbaa !9
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %329, label %365

329:                                              ; preds = %316
  %330 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %330, ptr %20, align 4, !tbaa !9
  br label %331

331:                                              ; preds = %361, %329
  %332 = load i32, ptr %20, align 4, !tbaa !9
  %333 = load i32, ptr %16, align 4, !tbaa !9
  %334 = icmp sle i32 %332, %333
  br i1 %334, label %335, label %364

335:                                              ; preds = %331
  %336 = load ptr, ptr %6, align 8, !tbaa !5
  %337 = load i32, ptr %20, align 4, !tbaa !9
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds i32, ptr %336, i64 %338
  %340 = load i32, ptr %339, align 4, !tbaa !9
  %341 = load i32, ptr %16, align 4, !tbaa !9
  %342 = load i32, ptr %20, align 4, !tbaa !9
  %343 = sub nsw i32 %341, %342
  %344 = load i32, ptr %16, align 4, !tbaa !9
  %345 = load i32, ptr %20, align 4, !tbaa !9
  %346 = sub nsw i32 %344, %345
  %347 = mul nsw i32 %343, %346
  %348 = add nsw i32 %340, %347
  store i32 %348, ptr %14, align 4, !tbaa !9
  %349 = load i32, ptr %14, align 4, !tbaa !9
  %350 = load i32, ptr %5, align 4, !tbaa !9
  %351 = icmp sle i32 %349, %350
  br i1 %351, label %352, label %360

352:                                              ; preds = %335
  %353 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %353, ptr %5, align 4, !tbaa !9
  %354 = load ptr, ptr %9, align 8, !tbaa !5
  %355 = load i32, ptr %20, align 4, !tbaa !9
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds double, ptr %354, i64 %356
  %358 = load double, ptr %357, align 8, !tbaa !11
  store double %358, ptr %8, align 8, !tbaa !11
  %359 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %359, ptr %19, align 4, !tbaa !9
  br label %360

360:                                              ; preds = %352, %335
  br label %361

361:                                              ; preds = %360
  %362 = load i32, ptr %20, align 4, !tbaa !9
  %363 = add nsw i32 %362, 1
  store i32 %363, ptr %20, align 4, !tbaa !9
  br label %331, !llvm.loop !28

364:                                              ; preds = %331
  br label %367

365:                                              ; preds = %316
  %366 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %366, ptr %19, align 4, !tbaa !9
  br label %367

367:                                              ; preds = %365, %364
  %368 = load i32, ptr %5, align 4, !tbaa !9
  %369 = load ptr, ptr %7, align 8, !tbaa !5
  %370 = load i32, ptr %16, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds i32, ptr %369, i64 %371
  store i32 %368, ptr %372, align 4, !tbaa !9
  %373 = load double, ptr %8, align 8, !tbaa !11
  %374 = load ptr, ptr %10, align 8, !tbaa !5
  %375 = load i32, ptr %16, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds double, ptr %374, i64 %376
  store double %373, ptr %377, align 8, !tbaa !11
  br label %378

378:                                              ; preds = %367
  %379 = load i32, ptr %16, align 4, !tbaa !9
  %380 = add nsw i32 %379, 1
  store i32 %380, ptr %16, align 4, !tbaa !9
  br label %312, !llvm.loop !29

381:                                              ; preds = %312
  %382 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %383 = sub nsw i32 %382, 1
  store i32 %383, ptr %19, align 4, !tbaa !9
  %384 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %385 = sub nsw i32 %384, 1
  store i32 %385, ptr %16, align 4, !tbaa !9
  br label %386

386:                                              ; preds = %451, %381
  %387 = load i32, ptr %16, align 4, !tbaa !9
  %388 = icmp sge i32 %387, 0
  br i1 %388, label %389, label %454

389:                                              ; preds = %386
  %390 = load ptr, ptr %7, align 8, !tbaa !5
  %391 = load i32, ptr %16, align 4, !tbaa !9
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds i32, ptr %390, i64 %392
  %394 = load i32, ptr %393, align 4, !tbaa !9
  store i32 %394, ptr %5, align 4, !tbaa !9
  %395 = load ptr, ptr %10, align 8, !tbaa !5
  %396 = load i32, ptr %16, align 4, !tbaa !9
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds double, ptr %395, i64 %397
  %399 = load double, ptr %398, align 8, !tbaa !11
  store double %399, ptr %8, align 8, !tbaa !11
  %400 = load i32, ptr %5, align 4, !tbaa !9
  %401 = icmp ne i32 %400, 0
  br i1 %401, label %402, label %448

402:                                              ; preds = %389
  %403 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %403, ptr %20, align 4, !tbaa !9
  br label %404

404:                                              ; preds = %434, %402
  %405 = load i32, ptr %20, align 4, !tbaa !9
  %406 = load i32, ptr %16, align 4, !tbaa !9
  %407 = icmp sge i32 %405, %406
  br i1 %407, label %408, label %437

408:                                              ; preds = %404
  %409 = load ptr, ptr %6, align 8, !tbaa !5
  %410 = load i32, ptr %20, align 4, !tbaa !9
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds i32, ptr %409, i64 %411
  %413 = load i32, ptr %412, align 4, !tbaa !9
  %414 = load i32, ptr %16, align 4, !tbaa !9
  %415 = load i32, ptr %20, align 4, !tbaa !9
  %416 = sub nsw i32 %414, %415
  %417 = load i32, ptr %16, align 4, !tbaa !9
  %418 = load i32, ptr %20, align 4, !tbaa !9
  %419 = sub nsw i32 %417, %418
  %420 = mul nsw i32 %416, %419
  %421 = add nsw i32 %413, %420
  store i32 %421, ptr %14, align 4, !tbaa !9
  %422 = load i32, ptr %14, align 4, !tbaa !9
  %423 = load i32, ptr %5, align 4, !tbaa !9
  %424 = icmp sle i32 %422, %423
  br i1 %424, label %425, label %433

425:                                              ; preds = %408
  %426 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %426, ptr %5, align 4, !tbaa !9
  %427 = load ptr, ptr %9, align 8, !tbaa !5
  %428 = load i32, ptr %20, align 4, !tbaa !9
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds double, ptr %427, i64 %429
  %431 = load double, ptr %430, align 8, !tbaa !11
  store double %431, ptr %8, align 8, !tbaa !11
  %432 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %432, ptr %19, align 4, !tbaa !9
  br label %433

433:                                              ; preds = %425, %408
  br label %434

434:                                              ; preds = %433
  %435 = load i32, ptr %20, align 4, !tbaa !9
  %436 = add nsw i32 %435, -1
  store i32 %436, ptr %20, align 4, !tbaa !9
  br label %404, !llvm.loop !30

437:                                              ; preds = %404
  %438 = load ptr, ptr %11, align 8, !tbaa !5
  %439 = load i32, ptr %16, align 4, !tbaa !9
  %440 = load i32, ptr %17, align 4, !tbaa !9
  %441 = load i32, ptr %18, align 4, !tbaa !9
  %442 = load i32, ptr %5, align 4, !tbaa !9
  %443 = sitofp i32 %442 to double
  call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %438, i32 noundef %439, i32 noundef %440, i32 noundef %441, double noundef %443)
  %444 = load i32, ptr %16, align 4, !tbaa !9
  %445 = load i32, ptr %17, align 4, !tbaa !9
  %446 = load i32, ptr %18, align 4, !tbaa !9
  %447 = load double, ptr %8, align 8, !tbaa !11
  call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %25, i32 noundef %444, i32 noundef %445, i32 noundef %446, double noundef %447)
  br label %450

448:                                              ; preds = %389
  %449 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %449, ptr %19, align 4, !tbaa !9
  br label %450

450:                                              ; preds = %448, %437
  br label %451

451:                                              ; preds = %450
  %452 = load i32, ptr %16, align 4, !tbaa !9
  %453 = add nsw i32 %452, -1
  store i32 %453, ptr %16, align 4, !tbaa !9
  br label %386, !llvm.loop !31

454:                                              ; preds = %386
  br label %455

455:                                              ; preds = %454
  %456 = load i32, ptr %17, align 4, !tbaa !9
  %457 = add nsw i32 %456, 1
  store i32 %457, ptr %17, align 4, !tbaa !9
  br label %279, !llvm.loop !32

458:                                              ; preds = %279
  br label %459

459:                                              ; preds = %458
  %460 = load i32, ptr %18, align 4, !tbaa !9
  %461 = add nsw i32 %460, 1
  store i32 %461, ptr %18, align 4, !tbaa !9
  br label %274, !llvm.loop !33

462:                                              ; preds = %274
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %463

463:                                              ; preds = %647, %462
  %464 = load i32, ptr %18, align 4, !tbaa !9
  %465 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %466 = icmp slt i32 %464, %465
  br i1 %466, label %467, label %650

467:                                              ; preds = %463
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %468

468:                                              ; preds = %643, %467
  %469 = load i32, ptr %16, align 4, !tbaa !9
  %470 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %471 = icmp slt i32 %469, %470
  br i1 %471, label %472, label %646

472:                                              ; preds = %468
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %473

473:                                              ; preds = %496, %472
  %474 = load i32, ptr %17, align 4, !tbaa !9
  %475 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %476 = icmp slt i32 %474, %475
  br i1 %476, label %477, label %499

477:                                              ; preds = %473
  %478 = load ptr, ptr %11, align 8, !tbaa !5
  %479 = load i32, ptr %16, align 4, !tbaa !9
  %480 = load i32, ptr %17, align 4, !tbaa !9
  %481 = load i32, ptr %18, align 4, !tbaa !9
  %482 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %478, i32 noundef %479, i32 noundef %480, i32 noundef %481)
  %483 = fptosi double %482 to i32
  %484 = load ptr, ptr %6, align 8, !tbaa !5
  %485 = load i32, ptr %17, align 4, !tbaa !9
  %486 = sext i32 %485 to i64
  %487 = getelementptr inbounds i32, ptr %484, i64 %486
  store i32 %483, ptr %487, align 4, !tbaa !9
  %488 = load i32, ptr %16, align 4, !tbaa !9
  %489 = load i32, ptr %17, align 4, !tbaa !9
  %490 = load i32, ptr %18, align 4, !tbaa !9
  %491 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %25, i32 noundef %488, i32 noundef %489, i32 noundef %490)
  %492 = load ptr, ptr %9, align 8, !tbaa !5
  %493 = load i32, ptr %17, align 4, !tbaa !9
  %494 = sext i32 %493 to i64
  %495 = getelementptr inbounds double, ptr %492, i64 %494
  store double %491, ptr %495, align 8, !tbaa !11
  br label %496

496:                                              ; preds = %477
  %497 = load i32, ptr %17, align 4, !tbaa !9
  %498 = add nsw i32 %497, 1
  store i32 %498, ptr %17, align 4, !tbaa !9
  br label %473, !llvm.loop !34

499:                                              ; preds = %473
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %500

500:                                              ; preds = %566, %499
  %501 = load i32, ptr %17, align 4, !tbaa !9
  %502 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %503 = icmp slt i32 %501, %502
  br i1 %503, label %504, label %569

504:                                              ; preds = %500
  %505 = load ptr, ptr %6, align 8, !tbaa !5
  %506 = load i32, ptr %17, align 4, !tbaa !9
  %507 = sext i32 %506 to i64
  %508 = getelementptr inbounds i32, ptr %505, i64 %507
  %509 = load i32, ptr %508, align 4, !tbaa !9
  store i32 %509, ptr %5, align 4, !tbaa !9
  %510 = load ptr, ptr %9, align 8, !tbaa !5
  %511 = load i32, ptr %17, align 4, !tbaa !9
  %512 = sext i32 %511 to i64
  %513 = getelementptr inbounds double, ptr %510, i64 %512
  %514 = load double, ptr %513, align 8, !tbaa !11
  store double %514, ptr %8, align 8, !tbaa !11
  %515 = load i32, ptr %5, align 4, !tbaa !9
  %516 = icmp ne i32 %515, 0
  br i1 %516, label %517, label %553

517:                                              ; preds = %504
  %518 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %518, ptr %20, align 4, !tbaa !9
  br label %519

519:                                              ; preds = %549, %517
  %520 = load i32, ptr %20, align 4, !tbaa !9
  %521 = load i32, ptr %17, align 4, !tbaa !9
  %522 = icmp sle i32 %520, %521
  br i1 %522, label %523, label %552

523:                                              ; preds = %519
  %524 = load ptr, ptr %6, align 8, !tbaa !5
  %525 = load i32, ptr %20, align 4, !tbaa !9
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds i32, ptr %524, i64 %526
  %528 = load i32, ptr %527, align 4, !tbaa !9
  %529 = load i32, ptr %17, align 4, !tbaa !9
  %530 = load i32, ptr %20, align 4, !tbaa !9
  %531 = sub nsw i32 %529, %530
  %532 = load i32, ptr %17, align 4, !tbaa !9
  %533 = load i32, ptr %20, align 4, !tbaa !9
  %534 = sub nsw i32 %532, %533
  %535 = mul nsw i32 %531, %534
  %536 = add nsw i32 %528, %535
  store i32 %536, ptr %14, align 4, !tbaa !9
  %537 = load i32, ptr %14, align 4, !tbaa !9
  %538 = load i32, ptr %5, align 4, !tbaa !9
  %539 = icmp sle i32 %537, %538
  br i1 %539, label %540, label %548

540:                                              ; preds = %523
  %541 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %541, ptr %5, align 4, !tbaa !9
  %542 = load ptr, ptr %9, align 8, !tbaa !5
  %543 = load i32, ptr %20, align 4, !tbaa !9
  %544 = sext i32 %543 to i64
  %545 = getelementptr inbounds double, ptr %542, i64 %544
  %546 = load double, ptr %545, align 8, !tbaa !11
  store double %546, ptr %8, align 8, !tbaa !11
  %547 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %547, ptr %19, align 4, !tbaa !9
  br label %548

548:                                              ; preds = %540, %523
  br label %549

549:                                              ; preds = %548
  %550 = load i32, ptr %20, align 4, !tbaa !9
  %551 = add nsw i32 %550, 1
  store i32 %551, ptr %20, align 4, !tbaa !9
  br label %519, !llvm.loop !35

552:                                              ; preds = %519
  br label %555

553:                                              ; preds = %504
  %554 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %554, ptr %19, align 4, !tbaa !9
  br label %555

555:                                              ; preds = %553, %552
  %556 = load i32, ptr %5, align 4, !tbaa !9
  %557 = load ptr, ptr %7, align 8, !tbaa !5
  %558 = load i32, ptr %17, align 4, !tbaa !9
  %559 = sext i32 %558 to i64
  %560 = getelementptr inbounds i32, ptr %557, i64 %559
  store i32 %556, ptr %560, align 4, !tbaa !9
  %561 = load double, ptr %8, align 8, !tbaa !11
  %562 = load ptr, ptr %10, align 8, !tbaa !5
  %563 = load i32, ptr %17, align 4, !tbaa !9
  %564 = sext i32 %563 to i64
  %565 = getelementptr inbounds double, ptr %562, i64 %564
  store double %561, ptr %565, align 8, !tbaa !11
  br label %566

566:                                              ; preds = %555
  %567 = load i32, ptr %17, align 4, !tbaa !9
  %568 = add nsw i32 %567, 1
  store i32 %568, ptr %17, align 4, !tbaa !9
  br label %500, !llvm.loop !36

569:                                              ; preds = %500
  %570 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %571 = sub nsw i32 %570, 1
  store i32 %571, ptr %19, align 4, !tbaa !9
  %572 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %573 = sub nsw i32 %572, 1
  store i32 %573, ptr %17, align 4, !tbaa !9
  br label %574

574:                                              ; preds = %639, %569
  %575 = load i32, ptr %17, align 4, !tbaa !9
  %576 = icmp sge i32 %575, 0
  br i1 %576, label %577, label %642

577:                                              ; preds = %574
  %578 = load ptr, ptr %7, align 8, !tbaa !5
  %579 = load i32, ptr %17, align 4, !tbaa !9
  %580 = sext i32 %579 to i64
  %581 = getelementptr inbounds i32, ptr %578, i64 %580
  %582 = load i32, ptr %581, align 4, !tbaa !9
  store i32 %582, ptr %5, align 4, !tbaa !9
  %583 = load ptr, ptr %10, align 8, !tbaa !5
  %584 = load i32, ptr %17, align 4, !tbaa !9
  %585 = sext i32 %584 to i64
  %586 = getelementptr inbounds double, ptr %583, i64 %585
  %587 = load double, ptr %586, align 8, !tbaa !11
  store double %587, ptr %8, align 8, !tbaa !11
  %588 = load i32, ptr %5, align 4, !tbaa !9
  %589 = icmp ne i32 %588, 0
  br i1 %589, label %590, label %636

590:                                              ; preds = %577
  %591 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %591, ptr %20, align 4, !tbaa !9
  br label %592

592:                                              ; preds = %622, %590
  %593 = load i32, ptr %20, align 4, !tbaa !9
  %594 = load i32, ptr %17, align 4, !tbaa !9
  %595 = icmp sgt i32 %593, %594
  br i1 %595, label %596, label %625

596:                                              ; preds = %592
  %597 = load ptr, ptr %6, align 8, !tbaa !5
  %598 = load i32, ptr %20, align 4, !tbaa !9
  %599 = sext i32 %598 to i64
  %600 = getelementptr inbounds i32, ptr %597, i64 %599
  %601 = load i32, ptr %600, align 4, !tbaa !9
  %602 = load i32, ptr %17, align 4, !tbaa !9
  %603 = load i32, ptr %20, align 4, !tbaa !9
  %604 = sub nsw i32 %602, %603
  %605 = load i32, ptr %17, align 4, !tbaa !9
  %606 = load i32, ptr %20, align 4, !tbaa !9
  %607 = sub nsw i32 %605, %606
  %608 = mul nsw i32 %604, %607
  %609 = add nsw i32 %601, %608
  store i32 %609, ptr %14, align 4, !tbaa !9
  %610 = load i32, ptr %14, align 4, !tbaa !9
  %611 = load i32, ptr %5, align 4, !tbaa !9
  %612 = icmp sle i32 %610, %611
  br i1 %612, label %613, label %621

613:                                              ; preds = %596
  %614 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %614, ptr %5, align 4, !tbaa !9
  %615 = load ptr, ptr %9, align 8, !tbaa !5
  %616 = load i32, ptr %20, align 4, !tbaa !9
  %617 = sext i32 %616 to i64
  %618 = getelementptr inbounds double, ptr %615, i64 %617
  %619 = load double, ptr %618, align 8, !tbaa !11
  store double %619, ptr %8, align 8, !tbaa !11
  %620 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %620, ptr %19, align 4, !tbaa !9
  br label %621

621:                                              ; preds = %613, %596
  br label %622

622:                                              ; preds = %621
  %623 = load i32, ptr %20, align 4, !tbaa !9
  %624 = add nsw i32 %623, -1
  store i32 %624, ptr %20, align 4, !tbaa !9
  br label %592, !llvm.loop !37

625:                                              ; preds = %592
  %626 = load ptr, ptr %11, align 8, !tbaa !5
  %627 = load i32, ptr %16, align 4, !tbaa !9
  %628 = load i32, ptr %17, align 4, !tbaa !9
  %629 = load i32, ptr %18, align 4, !tbaa !9
  %630 = load i32, ptr %5, align 4, !tbaa !9
  %631 = sitofp i32 %630 to double
  call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %626, i32 noundef %627, i32 noundef %628, i32 noundef %629, double noundef %631)
  %632 = load i32, ptr %16, align 4, !tbaa !9
  %633 = load i32, ptr %17, align 4, !tbaa !9
  %634 = load i32, ptr %18, align 4, !tbaa !9
  %635 = load double, ptr %8, align 8, !tbaa !11
  call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %25, i32 noundef %632, i32 noundef %633, i32 noundef %634, double noundef %635)
  br label %638

636:                                              ; preds = %577
  %637 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %637, ptr %19, align 4, !tbaa !9
  br label %638

638:                                              ; preds = %636, %625
  br label %639

639:                                              ; preds = %638
  %640 = load i32, ptr %17, align 4, !tbaa !9
  %641 = add nsw i32 %640, -1
  store i32 %641, ptr %17, align 4, !tbaa !9
  br label %574, !llvm.loop !38

642:                                              ; preds = %574
  br label %643

643:                                              ; preds = %642
  %644 = load i32, ptr %16, align 4, !tbaa !9
  %645 = add nsw i32 %644, 1
  store i32 %645, ptr %16, align 4, !tbaa !9
  br label %468, !llvm.loop !39

646:                                              ; preds = %468
  br label %647

647:                                              ; preds = %646
  %648 = load i32, ptr %18, align 4, !tbaa !9
  %649 = add nsw i32 %648, 1
  store i32 %649, ptr %18, align 4, !tbaa !9
  br label %463, !llvm.loop !40

650:                                              ; preds = %463
  %651 = load ptr, ptr %4, align 8, !tbaa !5
  %652 = icmp ne ptr %651, null
  br i1 %652, label %658, label %653

653:                                              ; preds = %650
  %654 = load ptr, ptr %11, align 8, !tbaa !5
  %655 = icmp eq ptr %654, null
  br i1 %655, label %657, label %656

656:                                              ; preds = %653
  call void @_ZN6R3GridD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %654) #8
  call void @_ZdlPvm(ptr noundef %654, i64 noundef 592) #10
  br label %657

657:                                              ; preds = %656, %653
  br label %658

658:                                              ; preds = %657, %650
  %659 = load ptr, ptr %6, align 8, !tbaa !5
  %660 = icmp eq ptr %659, null
  br i1 %660, label %662, label %661

661:                                              ; preds = %658
  call void @_ZdaPv(ptr noundef %659) #10
  br label %662

662:                                              ; preds = %661, %658
  %663 = load ptr, ptr %7, align 8, !tbaa !5
  %664 = icmp eq ptr %663, null
  br i1 %664, label %666, label %665

665:                                              ; preds = %662
  call void @_ZdaPv(ptr noundef %663) #10
  br label %666

666:                                              ; preds = %665, %662
  %667 = load ptr, ptr %9, align 8, !tbaa !5
  %668 = icmp eq ptr %667, null
  br i1 %668, label %670, label %669

669:                                              ; preds = %666
  call void @_ZdaPv(ptr noundef %667) #10
  br label %670

670:                                              ; preds = %669, %666
  %671 = load ptr, ptr %10, align 8, !tbaa !5
  %672 = icmp eq ptr %671, null
  br i1 %672, label %674, label %673

673:                                              ; preds = %670
  call void @_ZdaPv(ptr noundef %671) #10
  br label %674

674:                                              ; preds = %673, %670
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  ret void

675:                                              ; preds = %39
  %676 = load ptr, ptr %22, align 8
  %677 = load i32, ptr %23, align 4
  %678 = insertvalue { ptr, i32 } poison, ptr %676, 0
  %679 = insertvalue { ptr, i32 } %678, i32 %677, 1
  resume { ptr, i32 } %679
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R3Grid28SetWorldToGridTransformationERK8R3Affine(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(272)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(272) ptr @_ZNK6R3Grid25WorldToGridTransformationEv(ptr noundef nonnull align 8 dereferenceable(592)) #6 align 2

declare void @_ZN6R3GridC1Eiii(ptr, i32, i32, i32)

declare void @_ZN6R3GridD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nobuiltin allocsize(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 #2 = { "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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin nounwind "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 = { inlinehint 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 #6 = { inlinehint 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 588}
!14 = !{!"_ZTS6R3Grid", !15, i64 0, !15, i64 272, !12, i64 544, !12, i64 552, !6, i64 560, !7, i64 568, !10, i64 580, !10, i64 584, !10, i64 588}
!15 = !{!"_ZTS8R3Affine", !16, i64 0, !17, i64 8, !17, i64 136, !18, i64 264}
!16 = !{!"_ZTS16R3Transformation"}
!17 = !{!"_ZTS8R4Matrix", !7, i64 0}
!18 = !{!"_ZTS7RNFlags", !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!14, !6, i64 560}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}
!32 = distinct !{!32, !22}
!33 = distinct !{!33, !22}
!34 = distinct !{!34, !22}
!35 = distinct !{!35, !22}
!36 = distinct !{!36, !22}
!37 = distinct !{!37, !22}
!38 = distinct !{!38, !22}
!39 = distinct !{!39, !22}
!40 = distinct !{!40, !22}


; 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"

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [11 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

declare void @_Z7RNAbortPKcz(ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #4 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592), i32 noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R3Grid7VoronoiEPS_(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef %1) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %3, label %10

3:                                                ; preds = %2
  %4 = tail call noalias noundef nonnull dereferenceable(592) ptr @_Znwm(i64 noundef 592) #6
  %5 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %6 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %7 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  invoke void @_ZN6R3GridC1Eiii(ptr noundef nonnull align 8 dereferenceable(592) %4, i32 noundef %5, i32 noundef %6, i32 noundef %7)
          to label %10 unwind label %8

8:                                                ; preds = %3
  %9 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %4, i64 noundef 592) #7
  resume { ptr, i32 } %9

10:                                               ; preds = %2, %3
  %.0269 = phi ptr [ %1, %2 ], [ %4, %3 ]
  %11 = tail call noundef nonnull align 8 dereferenceable(272) ptr @_ZNK6R3Grid25WorldToGridTransformationEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  tail call void @_ZN6R3Grid28SetWorldToGridTransformationERK8R3Affine(ptr noundef nonnull align 8 dereferenceable(592) %.0269, ptr noundef nonnull align 8 dereferenceable(272) %11)
  %12 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %13 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %15, label %17

15:                                               ; preds = %10
  %16 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  br label %17

17:                                               ; preds = %15, %10
  %.0307 = phi i32 [ %16, %15 ], [ %12, %10 ]
  %18 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %19 = icmp slt i32 %.0307, %18
  br i1 %19, label %20, label %22

20:                                               ; preds = %17
  %21 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  br label %22

22:                                               ; preds = %20, %17
  %.1308 = phi i32 [ %21, %20 ], [ %.0307, %17 ]
  %23 = sext i32 %.1308 to i64
  %24 = icmp slt i32 %.1308, 0
  %25 = shl nsw i64 %23, 2
  %26 = select i1 %24, i64 -1, i64 %25
  %27 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #6
  %28 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #6
  %29 = shl nsw i64 %23, 3
  %30 = select i1 %24, i64 -1, i64 %29
  %31 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %30) #6
  %32 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %30) #6
  %33 = add nsw i32 %.1308, 1
  %34 = mul nsw i32 %33, 3
  %35 = mul nsw i32 %34, %33
  %36 = mul nsw i32 %35, %33
  %37 = sitofp i32 %36 to double
  %38 = getelementptr inbounds i8, ptr %0, i64 588
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph, label %.preheader350

.lr.ph:                                           ; preds = %22
  %41 = getelementptr inbounds i8, ptr %0, i64 560
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = getelementptr inbounds i8, ptr %.0269, i64 560
  %wide.trip.count = zext nneg i32 %39 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %44 = icmp eq i32 %39, 1
  br i1 %44, label %.preheader350.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %45 = load ptr, ptr %43, align 8, !tbaa !17
  br label %53

.preheader350.loopexit.unr-lcssa:                 ; preds = %53, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %53 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader350, label %.preheader350.loopexit.epilog-lcssa

.preheader350.loopexit.epilog-lcssa:              ; preds = %.preheader350.loopexit.unr-lcssa
  %46 = getelementptr inbounds double, ptr %42, i64 %indvars.iv.unr
  %47 = load double, ptr %46, align 8, !tbaa !18
  %48 = fcmp oeq double %47, 0.000000e+00
  %49 = load ptr, ptr %43, align 8, !tbaa !17
  %50 = getelementptr inbounds double, ptr %49, i64 %indvars.iv.unr
  %..epil = select i1 %48, double %37, double 0.000000e+00
  store double %..epil, ptr %50, align 8, !tbaa !18
  br label %.preheader350

.preheader350:                                    ; preds = %.preheader350.loopexit.epilog-lcssa, %.preheader350.loopexit.unr-lcssa, %22
  %51 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.preheader349, label %.preheader347

53:                                               ; preds = %53, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %53 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %53 ]
  %54 = getelementptr inbounds double, ptr %42, i64 %indvars.iv
  %55 = load double, ptr %54, align 8, !tbaa !18
  %56 = fcmp oeq double %55, 0.000000e+00
  %57 = getelementptr inbounds double, ptr %45, i64 %indvars.iv
  %. = select i1 %56, double %37, double 0.000000e+00
  store double %., ptr %57, align 8, !tbaa !18
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %58 = getelementptr inbounds double, ptr %42, i64 %indvars.iv.next
  %59 = load double, ptr %58, align 8, !tbaa !18
  %60 = fcmp oeq double %59, 0.000000e+00
  %61 = getelementptr inbounds double, ptr %45, i64 %indvars.iv.next
  %..1 = select i1 %60, double %37, double 0.000000e+00
  store double %..1, ptr %61, align 8, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader350.loopexit.unr-lcssa, label %53, !llvm.loop !19

.preheader349:                                    ; preds = %.preheader350, %._crit_edge366
  %.0298367 = phi i32 [ %106, %._crit_edge366 ], [ 0, %.preheader350 ]
  %62 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %.preheader348, label %._crit_edge366

.preheader347:                                    ; preds = %._crit_edge366, %.preheader350
  %64 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.preheader346, label %.preheader341

.preheader348:                                    ; preds = %.preheader349, %._crit_edge364
  %.0293365 = phi i32 [ %103, %._crit_edge364 ], [ 0, %.preheader349 ]
  %66 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %.lr.ph356, label %._crit_edge

.lr.ph356:                                        ; preds = %.preheader348, %80
  %.0355 = phi i32 [ %.1, %80 ], [ 0, %.preheader348 ]
  %.0255354 = phi double [ %.1256, %80 ], [ 0.000000e+00, %.preheader348 ]
  %.0289353 = phi i32 [ %81, %80 ], [ 0, %.preheader348 ]
  %.0303352 = phi i32 [ %.1304, %80 ], [ 1, %.preheader348 ]
  %68 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.0289353)
  %69 = fcmp oeq double %68, 0.000000e+00
  br i1 %69, label %70, label %73

70:                                               ; preds = %.lr.ph356
  %71 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.0289353)
  %72 = fcmp une double %71, 0.000000e+00
  br i1 %72, label %80, label %.sink.split

73:                                               ; preds = %.lr.ph356
  %74 = icmp eq i32 %.0303352, 0
  br i1 %74, label %75, label %80

75:                                               ; preds = %73
  %76 = add nsw i32 %.0355, 1
  %77 = mul nsw i32 %76, %76
  %78 = uitofp nneg i32 %77 to double
  tail call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.0289353, double noundef %78)
  tail call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.0289353, double noundef %.0255354)
  %79 = fcmp une double %.0255354, 0.000000e+00
  br i1 %79, label %80, label %.sink.split

.sink.split:                                      ; preds = %75, %70
  %.sink474 = phi i32 [ 1408, %70 ], [ 1415, %75 ]
  %.1256.ph = phi double [ %71, %70 ], [ %.0255354, %75 ]
  %.1.ph = phi i32 [ 0, %70 ], [ %76, %75 ]
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.27, i32 noundef %.sink474, ptr noundef nonnull @.str.2)
  br label %80

80:                                               ; preds = %.sink.split, %70, %75, %73
  %.1304 = phi i32 [ 0, %70 ], [ 0, %75 ], [ 1, %73 ], [ 0, %.sink.split ]
  %.1256 = phi double [ %71, %70 ], [ %.0255354, %75 ], [ %.0255354, %73 ], [ %.1256.ph, %.sink.split ]
  %.1 = phi i32 [ 0, %70 ], [ %76, %75 ], [ %.0355, %73 ], [ %.1.ph, %.sink.split ]
  %81 = add nuw nsw i32 %.0289353, 1
  %82 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %.lr.ph356, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %80, %.preheader348
  %.0255.lcssa = phi double [ 0.000000e+00, %.preheader348 ], [ %.1256, %80 ]
  %84 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %.lr.ph363, label %._crit_edge364

.lr.ph363:                                        ; preds = %._crit_edge, %101
  %.1290361.in = phi i32 [ %.1290361, %101 ], [ %84, %._crit_edge ]
  %.2360 = phi i32 [ %.3, %101 ], [ 0, %._crit_edge ]
  %.2257359 = phi double [ %.3258, %101 ], [ %.0255.lcssa, %._crit_edge ]
  %.2305358 = phi i32 [ %.3306, %101 ], [ 1, %._crit_edge ]
  %.1290361 = add nsw i32 %.1290361.in, -1
  %86 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.1290361)
  %87 = fcmp oeq double %86, 0.000000e+00
  br i1 %87, label %88, label %91

88:                                               ; preds = %.lr.ph363
  %89 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.1290361)
  %90 = fcmp une double %89, 0.000000e+00
  br i1 %90, label %101, label %.sink.split475

91:                                               ; preds = %.lr.ph363
  %92 = icmp eq i32 %.2305358, 0
  br i1 %92, label %93, label %101

93:                                               ; preds = %91
  %94 = add nsw i32 %.2360, 1
  %95 = mul nsw i32 %94, %94
  %96 = uitofp nneg i32 %95 to double
  %97 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.1290361)
  %98 = fcmp ogt double %97, %96
  br i1 %98, label %99, label %101

99:                                               ; preds = %93
  tail call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.1290361, double noundef %96)
  tail call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.0298367, i32 noundef %.0293365, i32 noundef %.1290361, double noundef %.2257359)
  %100 = fcmp une double %.2257359, 0.000000e+00
  br i1 %100, label %101, label %.sink.split475

.sink.split475:                                   ; preds = %99, %88
  %.sink476 = phi i32 [ 1427, %88 ], [ 1435, %99 ]
  %.3258.ph = phi double [ %89, %88 ], [ %.2257359, %99 ]
  %.3.ph = phi i32 [ 0, %88 ], [ %94, %99 ]
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.27, i32 noundef %.sink476, ptr noundef nonnull @.str.2)
  br label %101

101:                                              ; preds = %.sink.split475, %88, %93, %99, %91
  %.3306 = phi i32 [ 0, %88 ], [ 0, %99 ], [ 0, %93 ], [ 1, %91 ], [ 0, %.sink.split475 ]
  %.3258 = phi double [ %89, %88 ], [ %.2257359, %99 ], [ %.2257359, %93 ], [ %.2257359, %91 ], [ %.3258.ph, %.sink.split475 ]
  %.3 = phi i32 [ 0, %88 ], [ %94, %99 ], [ %94, %93 ], [ %.2360, %91 ], [ %.3.ph, %.sink.split475 ]
  %102 = icmp ugt i32 %.1290361.in, 1
  br i1 %102, label %.lr.ph363, label %._crit_edge364, !llvm.loop !22

._crit_edge364:                                   ; preds = %101, %._crit_edge
  %103 = add nuw nsw i32 %.0293365, 1
  %104 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %.preheader348, label %._crit_edge366, !llvm.loop !23

._crit_edge366:                                   ; preds = %._crit_edge364, %.preheader349
  %106 = add nuw nsw i32 %.0298367, 1
  %107 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %.preheader349, label %.preheader347, !llvm.loop !24

.preheader346:                                    ; preds = %.preheader347, %._crit_edge402
  %.2291403 = phi i32 [ %201, %._crit_edge402 ], [ 0, %.preheader347 ]
  %109 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %.preheader345, label %._crit_edge402

.preheader341:                                    ; preds = %._crit_edge402, %.preheader347
  %111 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %.preheader340, label %._crit_edge441

.preheader345:                                    ; preds = %.preheader346, %._crit_edge400
  %.1294401 = phi i32 [ %198, %._crit_edge400 ], [ 0, %.preheader346 ]
  %113 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %114 = icmp sgt i32 %113, 0
  br i1 %114, label %.lr.ph369, label %.preheader344

.preheader344:                                    ; preds = %.lr.ph369, %.preheader345
  %115 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %116 = icmp sgt i32 %115, 0
  br i1 %116, label %.lr.ph382, label %._crit_edge383

.lr.ph369:                                        ; preds = %.preheader345, %.lr.ph369
  %indvars.iv443 = phi i64 [ %indvars.iv.next444, %.lr.ph369 ], [ 0, %.preheader345 ]
  %117 = trunc nuw nsw i64 %indvars.iv443 to i32
  %118 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %117, i32 noundef %.1294401, i32 noundef %.2291403)
  %119 = fadd double %118, 5.000000e-01
  %120 = fptosi double %119 to i32
  %121 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv443
  store i32 %120, ptr %121, align 4, !tbaa !25
  %122 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %117, i32 noundef %.1294401, i32 noundef %.2291403)
  %123 = getelementptr inbounds double, ptr %31, i64 %indvars.iv443
  store double %122, ptr %123, align 8, !tbaa !18
  %indvars.iv.next444 = add nuw nsw i64 %indvars.iv443, 1
  %124 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next444, %125
  br i1 %126, label %.lr.ph369, label %.preheader344, !llvm.loop !26

.lr.ph382:                                        ; preds = %.preheader344, %.loopexit343
  %indvars.iv452 = phi i64 [ %indvars.iv.next453, %.loopexit343 ], [ 0, %.preheader344 ]
  %indvars.iv449 = phi i32 [ %indvars.iv.next450, %.loopexit343 ], [ 1, %.preheader344 ]
  %.0275381 = phi i32 [ %.3278, %.loopexit343 ], [ 0, %.preheader344 ]
  %127 = trunc i64 %indvars.iv452 to i32
  %128 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv452
  %129 = load i32, ptr %128, align 4, !tbaa !25
  %130 = getelementptr inbounds double, ptr %31, i64 %indvars.iv452
  %131 = load double, ptr %130, align 8, !tbaa !18
  %.not335 = icmp eq i32 %129, 0
  %132 = trunc nuw nsw i64 %indvars.iv452 to i32
  br i1 %.not335, label %.loopexit343, label %.preheader342

.preheader342:                                    ; preds = %.lr.ph382
  %133 = sext i32 %.0275381 to i64
  %.not336370 = icmp slt i64 %indvars.iv452, %133
  br i1 %.not336370, label %.loopexit343, label %.lr.ph375.preheader

.lr.ph375.preheader:                              ; preds = %.preheader342
  %134 = sub i32 %indvars.iv449, %.0275381
  %xtraiter477 = and i32 %134, 1
  %lcmp.mod478.not = icmp eq i32 %xtraiter477, 0
  br i1 %lcmp.mod478.not, label %.lr.ph375.prol.loopexit, label %.lr.ph375.prol

.lr.ph375.prol:                                   ; preds = %.lr.ph375.preheader
  %135 = getelementptr inbounds i32, ptr %27, i64 %133
  %136 = load i32, ptr %135, align 4, !tbaa !25
  %137 = trunc i64 %indvars.iv452 to i32
  %138 = sub i32 %137, %.0275381
  %139 = mul nsw i32 %138, %138
  %140 = add nsw i32 %136, %139
  %.not337.prol = icmp sgt i32 %140, %129
  br i1 %.not337.prol, label %.lr.ph375.prol.loopexit.unr-lcssa, label %141

141:                                              ; preds = %.lr.ph375.prol
  %142 = getelementptr inbounds double, ptr %31, i64 %133
  %143 = load double, ptr %142, align 8, !tbaa !18
  br label %.lr.ph375.prol.loopexit.unr-lcssa

.lr.ph375.prol.loopexit.unr-lcssa:                ; preds = %141, %.lr.ph375.prol
  %.5260.prol = phi double [ %143, %141 ], [ %131, %.lr.ph375.prol ]
  %.5.prol = phi i32 [ %140, %141 ], [ %129, %.lr.ph375.prol ]
  %indvars.iv.next447.prol = add nsw i64 %133, 1
  br label %.lr.ph375.prol.loopexit

.lr.ph375.prol.loopexit:                          ; preds = %.lr.ph375.prol.loopexit.unr-lcssa, %.lr.ph375.preheader
  %.5260.lcssa.unr = phi double [ poison, %.lr.ph375.preheader ], [ %.5260.prol, %.lr.ph375.prol.loopexit.unr-lcssa ]
  %.5.lcssa.unr = phi i32 [ poison, %.lr.ph375.preheader ], [ %.5.prol, %.lr.ph375.prol.loopexit.unr-lcssa ]
  %indvars.iv446.unr = phi i64 [ %133, %.lr.ph375.preheader ], [ %indvars.iv.next447.prol, %.lr.ph375.prol.loopexit.unr-lcssa ]
  %.4374.unr = phi i32 [ %129, %.lr.ph375.preheader ], [ %.5.prol, %.lr.ph375.prol.loopexit.unr-lcssa ]
  %.4259373.unr = phi double [ %131, %.lr.ph375.preheader ], [ %.5260.prol, %.lr.ph375.prol.loopexit.unr-lcssa ]
  %144 = icmp eq i32 %.0275381, %127
  br i1 %144, label %.loopexit343, label %.lr.ph375

.lr.ph375:                                        ; preds = %.lr.ph375.prol.loopexit, %165
  %indvars.iv446 = phi i64 [ %indvars.iv.next447.1, %165 ], [ %indvars.iv446.unr, %.lr.ph375.prol.loopexit ]
  %.4374 = phi i32 [ %.5.1, %165 ], [ %.4374.unr, %.lr.ph375.prol.loopexit ]
  %.4259373 = phi double [ %.5260.1, %165 ], [ %.4259373.unr, %.lr.ph375.prol.loopexit ]
  %.1276371 = phi i32 [ %.2277.1, %165 ], [ %.0275381, %.lr.ph375.prol.loopexit ]
  %145 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv446
  %146 = load i32, ptr %145, align 4, !tbaa !25
  %147 = sub nsw i64 %indvars.iv452, %indvars.iv446
  %148 = trunc nsw i64 %147 to i32
  %149 = mul nsw i32 %148, %148
  %150 = add nsw i32 %146, %149
  %.not337 = icmp sgt i32 %150, %.4374
  br i1 %.not337, label %.lr.ph375.1, label %151

151:                                              ; preds = %.lr.ph375
  %152 = getelementptr inbounds double, ptr %31, i64 %indvars.iv446
  %153 = load double, ptr %152, align 8, !tbaa !18
  %154 = trunc nsw i64 %indvars.iv446 to i32
  br label %.lr.ph375.1

.lr.ph375.1:                                      ; preds = %.lr.ph375, %151
  %.2277 = phi i32 [ %154, %151 ], [ %.1276371, %.lr.ph375 ]
  %.5260 = phi double [ %153, %151 ], [ %.4259373, %.lr.ph375 ]
  %.5 = phi i32 [ %150, %151 ], [ %.4374, %.lr.ph375 ]
  %indvars.iv.next447 = add nsw i64 %indvars.iv446, 1
  %155 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv.next447
  %156 = load i32, ptr %155, align 4, !tbaa !25
  %157 = sub nsw i64 %indvars.iv452, %indvars.iv.next447
  %158 = trunc nsw i64 %157 to i32
  %159 = mul nsw i32 %158, %158
  %160 = add nsw i32 %156, %159
  %.not337.1 = icmp sgt i32 %160, %.5
  br i1 %.not337.1, label %165, label %161

161:                                              ; preds = %.lr.ph375.1
  %162 = getelementptr inbounds double, ptr %31, i64 %indvars.iv.next447
  %163 = load double, ptr %162, align 8, !tbaa !18
  %164 = trunc nsw i64 %indvars.iv.next447 to i32
  br label %165

165:                                              ; preds = %161, %.lr.ph375.1
  %.2277.1 = phi i32 [ %164, %161 ], [ %.2277, %.lr.ph375.1 ]
  %.5260.1 = phi double [ %163, %161 ], [ %.5260, %.lr.ph375.1 ]
  %.5.1 = phi i32 [ %160, %161 ], [ %.5, %.lr.ph375.1 ]
  %indvars.iv.next447.1 = add nsw i64 %indvars.iv446, 2
  %lftr.wideiv.1 = trunc i64 %indvars.iv.next447.1 to i32
  %exitcond451.not.1 = icmp eq i32 %indvars.iv449, %lftr.wideiv.1
  br i1 %exitcond451.not.1, label %.loopexit343, label %.lr.ph375, !llvm.loop !27

.loopexit343:                                     ; preds = %.lr.ph375.prol.loopexit, %165, %.preheader342, %.lr.ph382
  %.3278 = phi i32 [ %132, %.lr.ph382 ], [ %.0275381, %.preheader342 ], [ %.0275381, %.lr.ph375.prol.loopexit ], [ %.2277.1, %165 ]
  %.6261 = phi double [ %131, %.lr.ph382 ], [ %131, %.preheader342 ], [ %.5260.lcssa.unr, %.lr.ph375.prol.loopexit ], [ %.5260.1, %165 ]
  %.6 = phi i32 [ 0, %.lr.ph382 ], [ %129, %.preheader342 ], [ %.5.lcssa.unr, %.lr.ph375.prol.loopexit ], [ %.5.1, %165 ]
  %166 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv452
  store i32 %.6, ptr %166, align 4, !tbaa !25
  %167 = getelementptr inbounds double, ptr %32, i64 %indvars.iv452
  store double %.6261, ptr %167, align 8, !tbaa !18
  %indvars.iv.next453 = add nuw nsw i64 %indvars.iv452, 1
  %168 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %169 = sext i32 %168 to i64
  %170 = icmp slt i64 %indvars.iv.next453, %169
  %indvars.iv.next450 = add nuw i32 %indvars.iv449, 1
  br i1 %170, label %.lr.ph382, label %._crit_edge383, !llvm.loop !28

._crit_edge383:                                   ; preds = %.loopexit343, %.preheader344
  %171 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %172 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %173 = icmp sgt i32 %172, 0
  br i1 %173, label %.lr.ph399.preheader, label %._crit_edge400

.lr.ph399.preheader:                              ; preds = %._crit_edge383
  %174 = add nsw i32 %171, -1
  %175 = zext nneg i32 %172 to i64
  br label %.lr.ph399

.lr.ph399:                                        ; preds = %.lr.ph399.preheader, %196
  %indvars.iv455 = phi i64 [ %175, %.lr.ph399.preheader ], [ %indvars.iv.next456, %196 ]
  %.4279396 = phi i32 [ %174, %.lr.ph399.preheader ], [ %.7282, %196 ]
  %indvars.iv.next456 = add nsw i64 %indvars.iv455, -1
  %176 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv.next456
  %177 = load i32, ptr %176, align 4, !tbaa !25
  %.not332 = icmp eq i32 %177, 0
  %178 = trunc nuw nsw i64 %indvars.iv.next456 to i32
  br i1 %.not332, label %196, label %179

179:                                              ; preds = %.lr.ph399
  %180 = getelementptr inbounds double, ptr %32, i64 %indvars.iv.next456
  %181 = load double, ptr %180, align 8, !tbaa !18
  %182 = sext i32 %.4279396 to i64
  %.not333384 = icmp sgt i64 %indvars.iv.next456, %182
  br i1 %.not333384, label %._crit_edge391, label %.lr.ph390

.lr.ph390:                                        ; preds = %179, %192
  %.7388 = phi i32 [ %.8, %192 ], [ %177, %179 ]
  %.7262387 = phi double [ %.8263, %192 ], [ %181, %179 ]
  %.1272386 = phi i32 [ %193, %192 ], [ %.4279396, %179 ]
  %.5280385 = phi i32 [ %.6281, %192 ], [ %.4279396, %179 ]
  %183 = zext nneg i32 %.1272386 to i64
  %184 = getelementptr inbounds i32, ptr %27, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !25
  %186 = sub nsw i32 %178, %.1272386
  %187 = mul nsw i32 %186, %186
  %188 = add nsw i32 %185, %187
  %.not334 = icmp sgt i32 %188, %.7388
  br i1 %.not334, label %192, label %189

189:                                              ; preds = %.lr.ph390
  %190 = getelementptr inbounds double, ptr %31, i64 %183
  %191 = load double, ptr %190, align 8, !tbaa !18
  br label %192

192:                                              ; preds = %.lr.ph390, %189
  %.6281 = phi i32 [ %.1272386, %189 ], [ %.5280385, %.lr.ph390 ]
  %.8263 = phi double [ %191, %189 ], [ %.7262387, %.lr.ph390 ]
  %.8 = phi i32 [ %188, %189 ], [ %.7388, %.lr.ph390 ]
  %193 = add nsw i32 %.1272386, -1
  %194 = sext i32 %.1272386 to i64
  %.not333 = icmp sgt i64 %indvars.iv455, %194
  br i1 %.not333, label %._crit_edge391, label %.lr.ph390, !llvm.loop !29

._crit_edge391:                                   ; preds = %192, %179
  %.5280.lcssa = phi i32 [ %.4279396, %179 ], [ %.6281, %192 ]
  %.7262.lcssa = phi double [ %181, %179 ], [ %.8263, %192 ]
  %.7.lcssa = phi i32 [ %177, %179 ], [ %.8, %192 ]
  %195 = sitofp i32 %.7.lcssa to double
  tail call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %178, i32 noundef %.1294401, i32 noundef %.2291403, double noundef %195)
  tail call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %178, i32 noundef %.1294401, i32 noundef %.2291403, double noundef %.7262.lcssa)
  br label %196

196:                                              ; preds = %.lr.ph399, %._crit_edge391
  %.7282 = phi i32 [ %.5280.lcssa, %._crit_edge391 ], [ %178, %.lr.ph399 ]
  %197 = icmp sgt i64 %indvars.iv455, 1
  br i1 %197, label %.lr.ph399, label %._crit_edge400, !llvm.loop !30

._crit_edge400:                                   ; preds = %196, %._crit_edge383
  %198 = add nuw nsw i32 %.1294401, 1
  %199 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %.preheader345, label %._crit_edge402, !llvm.loop !31

._crit_edge402:                                   ; preds = %._crit_edge400, %.preheader346
  %201 = add nuw nsw i32 %.2291403, 1
  %202 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %203 = icmp slt i32 %201, %202
  br i1 %203, label %.preheader346, label %.preheader341, !llvm.loop !32

.preheader340:                                    ; preds = %.preheader341, %._crit_edge439
  %.3292440 = phi i32 [ %293, %._crit_edge439 ], [ 0, %.preheader341 ]
  %204 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %205 = icmp sgt i32 %204, 0
  br i1 %205, label %.preheader339, label %._crit_edge439

.preheader339:                                    ; preds = %.preheader340, %._crit_edge437
  %.4302438 = phi i32 [ %290, %._crit_edge437 ], [ 0, %.preheader340 ]
  %206 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %207 = icmp sgt i32 %206, 0
  br i1 %207, label %.lr.ph405, label %.preheader338

.preheader338:                                    ; preds = %.lr.ph405, %.preheader339
  %208 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %209 = icmp sgt i32 %208, 0
  br i1 %209, label %.lr.ph418, label %._crit_edge419

.lr.ph405:                                        ; preds = %.preheader339, %.lr.ph405
  %indvars.iv458 = phi i64 [ %indvars.iv.next459, %.lr.ph405 ], [ 0, %.preheader339 ]
  %210 = trunc nuw nsw i64 %indvars.iv458 to i32
  %211 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %.4302438, i32 noundef %210, i32 noundef %.3292440)
  %212 = fptosi double %211 to i32
  %213 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv458
  store i32 %212, ptr %213, align 4, !tbaa !25
  %214 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.4302438, i32 noundef %210, i32 noundef %.3292440)
  %215 = getelementptr inbounds double, ptr %31, i64 %indvars.iv458
  store double %214, ptr %215, align 8, !tbaa !18
  %indvars.iv.next459 = add nuw nsw i64 %indvars.iv458, 1
  %216 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %217 = sext i32 %216 to i64
  %218 = icmp slt i64 %indvars.iv.next459, %217
  br i1 %218, label %.lr.ph405, label %.preheader338, !llvm.loop !33

.lr.ph418:                                        ; preds = %.preheader338, %.loopexit
  %indvars.iv468 = phi i64 [ %indvars.iv.next469, %.loopexit ], [ 0, %.preheader338 ]
  %indvars.iv464 = phi i32 [ %indvars.iv.next465, %.loopexit ], [ 1, %.preheader338 ]
  %.8283417 = phi i32 [ %.11286, %.loopexit ], [ 0, %.preheader338 ]
  %219 = trunc i64 %indvars.iv468 to i32
  %220 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv468
  %221 = load i32, ptr %220, align 4, !tbaa !25
  %222 = getelementptr inbounds double, ptr %31, i64 %indvars.iv468
  %223 = load double, ptr %222, align 8, !tbaa !18
  %.not329 = icmp eq i32 %221, 0
  %224 = trunc nuw nsw i64 %indvars.iv468 to i32
  br i1 %.not329, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.lr.ph418
  %225 = sext i32 %.8283417 to i64
  %.not330406 = icmp slt i64 %indvars.iv468, %225
  br i1 %.not330406, label %.loopexit, label %.lr.ph411.preheader

.lr.ph411.preheader:                              ; preds = %.preheader
  %226 = sub i32 %indvars.iv464, %.8283417
  %xtraiter479 = and i32 %226, 1
  %lcmp.mod480.not = icmp eq i32 %xtraiter479, 0
  br i1 %lcmp.mod480.not, label %.lr.ph411.prol.loopexit, label %.lr.ph411.prol

.lr.ph411.prol:                                   ; preds = %.lr.ph411.preheader
  %227 = getelementptr inbounds i32, ptr %27, i64 %225
  %228 = load i32, ptr %227, align 4, !tbaa !25
  %229 = trunc i64 %indvars.iv468 to i32
  %230 = sub i32 %229, %.8283417
  %231 = mul nsw i32 %230, %230
  %232 = add nsw i32 %228, %231
  %.not331.prol = icmp sgt i32 %232, %221
  br i1 %.not331.prol, label %.lr.ph411.prol.loopexit.unr-lcssa, label %233

233:                                              ; preds = %.lr.ph411.prol
  %234 = getelementptr inbounds double, ptr %31, i64 %225
  %235 = load double, ptr %234, align 8, !tbaa !18
  br label %.lr.ph411.prol.loopexit.unr-lcssa

.lr.ph411.prol.loopexit.unr-lcssa:                ; preds = %233, %.lr.ph411.prol
  %.10265.prol = phi double [ %235, %233 ], [ %223, %.lr.ph411.prol ]
  %.10.prol = phi i32 [ %232, %233 ], [ %221, %.lr.ph411.prol ]
  %indvars.iv.next462.prol = add nsw i64 %225, 1
  br label %.lr.ph411.prol.loopexit

.lr.ph411.prol.loopexit:                          ; preds = %.lr.ph411.prol.loopexit.unr-lcssa, %.lr.ph411.preheader
  %.10265.lcssa.unr = phi double [ poison, %.lr.ph411.preheader ], [ %.10265.prol, %.lr.ph411.prol.loopexit.unr-lcssa ]
  %.10.lcssa.unr = phi i32 [ poison, %.lr.ph411.preheader ], [ %.10.prol, %.lr.ph411.prol.loopexit.unr-lcssa ]
  %indvars.iv461.unr = phi i64 [ %225, %.lr.ph411.preheader ], [ %indvars.iv.next462.prol, %.lr.ph411.prol.loopexit.unr-lcssa ]
  %.9410.unr = phi i32 [ %221, %.lr.ph411.preheader ], [ %.10.prol, %.lr.ph411.prol.loopexit.unr-lcssa ]
  %.9264409.unr = phi double [ %223, %.lr.ph411.preheader ], [ %.10265.prol, %.lr.ph411.prol.loopexit.unr-lcssa ]
  %236 = icmp eq i32 %.8283417, %219
  br i1 %236, label %.loopexit, label %.lr.ph411

.lr.ph411:                                        ; preds = %.lr.ph411.prol.loopexit, %257
  %indvars.iv461 = phi i64 [ %indvars.iv.next462.1, %257 ], [ %indvars.iv461.unr, %.lr.ph411.prol.loopexit ]
  %.9410 = phi i32 [ %.10.1, %257 ], [ %.9410.unr, %.lr.ph411.prol.loopexit ]
  %.9264409 = phi double [ %.10265.1, %257 ], [ %.9264409.unr, %.lr.ph411.prol.loopexit ]
  %.9284407 = phi i32 [ %.10285.1, %257 ], [ %.8283417, %.lr.ph411.prol.loopexit ]
  %237 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv461
  %238 = load i32, ptr %237, align 4, !tbaa !25
  %239 = sub nsw i64 %indvars.iv468, %indvars.iv461
  %240 = trunc nsw i64 %239 to i32
  %241 = mul nsw i32 %240, %240
  %242 = add nsw i32 %238, %241
  %.not331 = icmp sgt i32 %242, %.9410
  br i1 %.not331, label %.lr.ph411.1, label %243

243:                                              ; preds = %.lr.ph411
  %244 = getelementptr inbounds double, ptr %31, i64 %indvars.iv461
  %245 = load double, ptr %244, align 8, !tbaa !18
  %246 = trunc nsw i64 %indvars.iv461 to i32
  br label %.lr.ph411.1

.lr.ph411.1:                                      ; preds = %.lr.ph411, %243
  %.10285 = phi i32 [ %246, %243 ], [ %.9284407, %.lr.ph411 ]
  %.10265 = phi double [ %245, %243 ], [ %.9264409, %.lr.ph411 ]
  %.10 = phi i32 [ %242, %243 ], [ %.9410, %.lr.ph411 ]
  %indvars.iv.next462 = add nsw i64 %indvars.iv461, 1
  %247 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv.next462
  %248 = load i32, ptr %247, align 4, !tbaa !25
  %249 = sub nsw i64 %indvars.iv468, %indvars.iv.next462
  %250 = trunc nsw i64 %249 to i32
  %251 = mul nsw i32 %250, %250
  %252 = add nsw i32 %248, %251
  %.not331.1 = icmp sgt i32 %252, %.10
  br i1 %.not331.1, label %257, label %253

253:                                              ; preds = %.lr.ph411.1
  %254 = getelementptr inbounds double, ptr %31, i64 %indvars.iv.next462
  %255 = load double, ptr %254, align 8, !tbaa !18
  %256 = trunc nsw i64 %indvars.iv.next462 to i32
  br label %257

257:                                              ; preds = %253, %.lr.ph411.1
  %.10285.1 = phi i32 [ %256, %253 ], [ %.10285, %.lr.ph411.1 ]
  %.10265.1 = phi double [ %255, %253 ], [ %.10265, %.lr.ph411.1 ]
  %.10.1 = phi i32 [ %252, %253 ], [ %.10, %.lr.ph411.1 ]
  %indvars.iv.next462.1 = add nsw i64 %indvars.iv461, 2
  %lftr.wideiv466.1 = trunc i64 %indvars.iv.next462.1 to i32
  %exitcond467.not.1 = icmp eq i32 %indvars.iv464, %lftr.wideiv466.1
  br i1 %exitcond467.not.1, label %.loopexit, label %.lr.ph411, !llvm.loop !34

.loopexit:                                        ; preds = %.lr.ph411.prol.loopexit, %257, %.preheader, %.lr.ph418
  %.11286 = phi i32 [ %224, %.lr.ph418 ], [ %.8283417, %.preheader ], [ %.8283417, %.lr.ph411.prol.loopexit ], [ %.10285.1, %257 ]
  %.11266 = phi double [ %223, %.lr.ph418 ], [ %223, %.preheader ], [ %.10265.lcssa.unr, %.lr.ph411.prol.loopexit ], [ %.10265.1, %257 ]
  %.11 = phi i32 [ 0, %.lr.ph418 ], [ %221, %.preheader ], [ %.10.lcssa.unr, %.lr.ph411.prol.loopexit ], [ %.10.1, %257 ]
  %258 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv468
  store i32 %.11, ptr %258, align 4, !tbaa !25
  %259 = getelementptr inbounds double, ptr %32, i64 %indvars.iv468
  store double %.11266, ptr %259, align 8, !tbaa !18
  %indvars.iv.next469 = add nuw nsw i64 %indvars.iv468, 1
  %260 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %261 = sext i32 %260 to i64
  %262 = icmp slt i64 %indvars.iv.next469, %261
  %indvars.iv.next465 = add nuw i32 %indvars.iv464, 1
  br i1 %262, label %.lr.ph418, label %._crit_edge419, !llvm.loop !35

._crit_edge419:                                   ; preds = %.loopexit, %.preheader338
  %263 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %264 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %265 = icmp sgt i32 %264, 0
  br i1 %265, label %.lr.ph436.preheader, label %._crit_edge437

.lr.ph436.preheader:                              ; preds = %._crit_edge419
  %266 = add nsw i32 %263, -1
  %267 = zext nneg i32 %264 to i64
  br label %.lr.ph436

.lr.ph436:                                        ; preds = %.lr.ph436.preheader, %288
  %indvars.iv471 = phi i64 [ %267, %.lr.ph436.preheader ], [ %indvars.iv.next472, %288 ]
  %.12287433 = phi i32 [ %266, %.lr.ph436.preheader ], [ %.15, %288 ]
  %indvars.iv.next472 = add nsw i64 %indvars.iv471, -1
  %268 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv.next472
  %269 = load i32, ptr %268, align 4, !tbaa !25
  %.not326 = icmp eq i32 %269, 0
  %270 = trunc nuw nsw i64 %indvars.iv.next472 to i32
  br i1 %.not326, label %288, label %271

271:                                              ; preds = %.lr.ph436
  %272 = getelementptr inbounds double, ptr %32, i64 %indvars.iv.next472
  %273 = load double, ptr %272, align 8, !tbaa !18
  %274 = sext i32 %.12287433 to i64
  %.not327420 = icmp sgt i64 %indvars.iv471, %274
  br i1 %.not327420, label %._crit_edge427, label %.lr.ph426

.lr.ph426:                                        ; preds = %271, %284
  %.12424 = phi i32 [ %.13, %284 ], [ %269, %271 ]
  %.12267423 = phi double [ %.13268, %284 ], [ %273, %271 ]
  %.3274422 = phi i32 [ %285, %284 ], [ %.12287433, %271 ]
  %.13288421 = phi i32 [ %.14, %284 ], [ %.12287433, %271 ]
  %275 = zext nneg i32 %.3274422 to i64
  %276 = getelementptr inbounds i32, ptr %27, i64 %275
  %277 = load i32, ptr %276, align 4, !tbaa !25
  %278 = sub nsw i32 %270, %.3274422
  %279 = mul nsw i32 %278, %278
  %280 = add nsw i32 %277, %279
  %.not328 = icmp sgt i32 %280, %.12424
  br i1 %.not328, label %284, label %281

281:                                              ; preds = %.lr.ph426
  %282 = getelementptr inbounds double, ptr %31, i64 %275
  %283 = load double, ptr %282, align 8, !tbaa !18
  br label %284

284:                                              ; preds = %.lr.ph426, %281
  %.14 = phi i32 [ %.3274422, %281 ], [ %.13288421, %.lr.ph426 ]
  %.13268 = phi double [ %283, %281 ], [ %.12267423, %.lr.ph426 ]
  %.13 = phi i32 [ %280, %281 ], [ %.12424, %.lr.ph426 ]
  %285 = add nsw i32 %.3274422, -1
  %286 = sext i32 %.3274422 to i64
  %.not327.not = icmp slt i64 %indvars.iv471, %286
  br i1 %.not327.not, label %.lr.ph426, label %._crit_edge427, !llvm.loop !36

._crit_edge427:                                   ; preds = %284, %271
  %.13288.lcssa = phi i32 [ %.12287433, %271 ], [ %.14, %284 ]
  %.12267.lcssa = phi double [ %273, %271 ], [ %.13268, %284 ]
  %.12.lcssa = phi i32 [ %269, %271 ], [ %.13, %284 ]
  %287 = sitofp i32 %.12.lcssa to double
  tail call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %.0269, i32 noundef %.4302438, i32 noundef %270, i32 noundef %.3292440, double noundef %287)
  tail call void @_ZN6R3Grid12SetGridValueEiiid(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.4302438, i32 noundef %270, i32 noundef %.3292440, double noundef %.12267.lcssa)
  br label %288

288:                                              ; preds = %.lr.ph436, %._crit_edge427
  %.15 = phi i32 [ %.13288.lcssa, %._crit_edge427 ], [ %270, %.lr.ph436 ]
  %289 = icmp sgt i64 %indvars.iv471, 1
  br i1 %289, label %.lr.ph436, label %._crit_edge437, !llvm.loop !37

._crit_edge437:                                   ; preds = %288, %._crit_edge419
  %290 = add nuw nsw i32 %.4302438, 1
  %291 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %292 = icmp slt i32 %290, %291
  br i1 %292, label %.preheader339, label %._crit_edge439, !llvm.loop !38

._crit_edge439:                                   ; preds = %._crit_edge437, %.preheader340
  %293 = add nuw nsw i32 %.3292440, 1
  %294 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %295 = icmp slt i32 %293, %294
  br i1 %295, label %.preheader340, label %._crit_edge441, !llvm.loop !39

._crit_edge441:                                   ; preds = %._crit_edge439, %.preheader341
  br i1 %.not, label %296, label %297

296:                                              ; preds = %._crit_edge441
  tail call void @_ZN6R3GridD1Ev(ptr noundef nonnull align 8 dereferenceable(592) %.0269) #8
  tail call void @_ZdlPvm(ptr noundef nonnull %.0269, i64 noundef 592) #7
  br label %297

297:                                              ; preds = %._crit_edge441, %296
  tail call void @_ZdaPv(ptr noundef nonnull %27) #7
  tail call void @_ZdaPv(ptr noundef nonnull %28) #7
  tail call void @_ZdaPv(ptr noundef nonnull %31) #7
  tail call void @_ZdaPv(ptr noundef nonnull %32) #7
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R3Grid28SetWorldToGridTransformationERK8R3Affine(ptr noundef nonnull align 8 dereferenceable(592), ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(272) ptr @_ZNK6R3Grid25WorldToGridTransformationEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #4 align 2

declare void @_ZN6R3GridC1Eiii(ptr, i32, i32, i32) local_unnamed_addr

declare void @_ZN6R3GridD1Ev(ptr) local_unnamed_addr

attributes #0 = { nobuiltin allocsize(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 = { "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 #2 = { nobuiltin nounwind "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 #3 = { inlinehint 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 #4 = { inlinehint 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 = { 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 #6 = { builtin allocsize(0) }
attributes #7 = { builtin nounwind }
attributes #8 = { 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, !16, i64 588}
!6 = !{!"_ZTS6R3Grid", !7, i64 0, !7, i64 272, !14, i64 544, !14, i64 552, !15, i64 560, !10, i64 568, !16, i64 580, !16, i64 584, !16, i64 588}
!7 = !{!"_ZTS8R3Affine", !8, i64 0, !9, i64 8, !9, i64 136, !12, i64 264}
!8 = !{!"_ZTS16R3Transformation"}
!9 = !{!"_ZTS8R4Matrix", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS7RNFlags", !13, i64 0}
!13 = !{!"long", !10, i64 0}
!14 = !{!"double", !10, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!6, !15, i64 560}
!18 = !{!14, !14, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = !{!16, !16, i64 0}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = distinct !{!36, !20}
!37 = distinct !{!37, !20}
!38 = distinct !{!38, !20}
!39 = distinct !{!39, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass