; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R2Shapes/R2Grid.ll (ZN6R2Grid9FillHolesEv)

; 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.RNQueue = type { %class.RNVQueue }
%class.RNVQueue = type { %class.RNVArray, i32, i32 }
%class.RNVArray = type { ptr, i32, i32 }
%class.R2Grid = type { %class.R2Affine, %class.R2Affine, double, ptr, [2 x i32], i32, i32 }
%class.R2Affine = type <{ %class.R2Transformation, %class.R3Matrix, i32, [4 x i8] }>
%class.R2Transformation = type { ptr }
%class.R3Matrix = type { [3 x [3 x double]] }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [36 x i8], align 1
@stderr = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R2Grid9FillHolesEv(ptr noundef nonnull align 8 dereferenceable(208) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca [5 x [5 x double]], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %class.RNQueue, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store double 1.500000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %28 = load double, ptr %3, align 8, !tbaa !9
  %29 = fmul double -2.000000e+00, %28
  %30 = load double, ptr %3, align 8, !tbaa !9
  %31 = fmul double %29, %30
  store double %31, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 200, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 -2, ptr %6, align 4, !tbaa !11
  br label %32

32:                                               ; preds = %65, %1
  %33 = load i32, ptr %6, align 4, !tbaa !11
  %34 = icmp sle i32 %33, 2
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %68

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 -2, ptr %8, align 4, !tbaa !11
  br label %37

37:                                               ; preds = %61, %36
  %38 = load i32, ptr %8, align 4, !tbaa !11
  %39 = icmp sle i32 %38, 2
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %64

41:                                               ; preds = %37
  %42 = load i32, ptr %6, align 4, !tbaa !11
  %43 = load i32, ptr %6, align 4, !tbaa !11
  %44 = mul nsw i32 %42, %43
  %45 = load i32, ptr %8, align 4, !tbaa !11
  %46 = load i32, ptr %8, align 4, !tbaa !11
  %47 = mul nsw i32 %45, %46
  %48 = add nsw i32 %44, %47
  %49 = sitofp i32 %48 to double
  %50 = load double, ptr %4, align 8, !tbaa !9
  %51 = fdiv double %49, %50
  %52 = call double @exp(double noundef %51) #7
  %53 = load i32, ptr %6, align 4, !tbaa !11
  %54 = add nsw i32 %53, 2
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [5 x [5 x double]], ptr %5, i64 0, i64 %55
  %57 = load i32, ptr %8, align 4, !tbaa !11
  %58 = add nsw i32 %57, 2
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [5 x double], ptr %56, i64 0, i64 %59
  store double %52, ptr %60, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %41
  %62 = load i32, ptr %8, align 4, !tbaa !11
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %8, align 4, !tbaa !11
  br label %37, !llvm.loop !13

64:                                               ; preds = %40
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %6, align 4, !tbaa !11
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %6, align 4, !tbaa !11
  br label %32, !llvm.loop !15

68:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  call void @_ZN7RNQueueIPdEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store double 0xC1863547F0000000, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %223, %68
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 4
  %72 = getelementptr inbounds [2 x i32], ptr %71, i64 0, i64 0
  %73 = load i32, ptr %72, align 8, !tbaa !11
  %74 = icmp slt i32 %70, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %69
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %226

76:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %77

77:                                               ; preds = %219, %76
  %78 = load i32, ptr %12, align 4, !tbaa !11
  %79 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 4
  %80 = getelementptr inbounds [2 x i32], ptr %79, i64 0, i64 1
  %81 = load i32, ptr %80, align 4, !tbaa !11
  %82 = icmp slt i32 %78, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %77
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %222

84:                                               ; preds = %77
  %85 = load i32, ptr %11, align 4, !tbaa !11
  %86 = load i32, ptr %12, align 4, !tbaa !11
  %87 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %85, i32 noundef %86)
          to label %88 unwind label %91

88:                                               ; preds = %84
  %89 = fcmp oeq double %87, -3.210000e+02
  br i1 %89, label %90, label %95

90:                                               ; preds = %88
  br label %219

91:                                               ; preds = %213, %201, %194, %182, %170, %163, %151, %139, %132, %124, %112, %105, %95, %84
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %13, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %493

95:                                               ; preds = %88
  %96 = load i32, ptr %11, align 4, !tbaa !11
  %97 = load i32, ptr %12, align 4, !tbaa !11
  %98 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %96, i32 noundef %97)
          to label %99 unwind label %91

99:                                               ; preds = %95
  %100 = fcmp oeq double %98, 0xC1863547F0000000
  br i1 %100, label %101, label %102

101:                                              ; preds = %99
  br label %219

102:                                              ; preds = %99
  %103 = load i32, ptr %11, align 4, !tbaa !11
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %105, label %129

105:                                              ; preds = %102
  %106 = load i32, ptr %11, align 4, !tbaa !11
  %107 = sub nsw i32 %106, 1
  %108 = load i32, ptr %12, align 4, !tbaa !11
  %109 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %107, i32 noundef %108)
          to label %110 unwind label %91

110:                                              ; preds = %105
  %111 = fcmp oeq double %109, -3.210000e+02
  br i1 %111, label %112, label %129

112:                                              ; preds = %110
  %113 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !16
  %115 = load i32, ptr %12, align 4, !tbaa !11
  %116 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 5
  %117 = load i32, ptr %116, align 8, !tbaa !21
  %118 = mul nsw i32 %115, %117
  %119 = load i32, ptr %11, align 4, !tbaa !11
  %120 = sub nsw i32 %119, 1
  %121 = add nsw i32 %118, %120
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds double, ptr %114, i64 %122
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %123)
          to label %124 unwind label %91

124:                                              ; preds = %112
  %125 = load i32, ptr %11, align 4, !tbaa !11
  %126 = sub nsw i32 %125, 1
  %127 = load i32, ptr %12, align 4, !tbaa !11
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %126, i32 noundef %127, double noundef 0xC1863547F0000000)
          to label %128 unwind label %91

128:                                              ; preds = %124
  br label %129

129:                                              ; preds = %128, %110, %102
  %130 = load i32, ptr %12, align 4, !tbaa !11
  %131 = icmp sgt i32 %130, 0
  br i1 %131, label %132, label %156

132:                                              ; preds = %129
  %133 = load i32, ptr %11, align 4, !tbaa !11
  %134 = load i32, ptr %12, align 4, !tbaa !11
  %135 = sub nsw i32 %134, 1
  %136 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %133, i32 noundef %135)
          to label %137 unwind label %91

137:                                              ; preds = %132
  %138 = fcmp oeq double %136, -3.210000e+02
  br i1 %138, label %139, label %156

139:                                              ; preds = %137
  %140 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !16
  %142 = load i32, ptr %12, align 4, !tbaa !11
  %143 = sub nsw i32 %142, 1
  %144 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 5
  %145 = load i32, ptr %144, align 8, !tbaa !21
  %146 = mul nsw i32 %143, %145
  %147 = load i32, ptr %11, align 4, !tbaa !11
  %148 = add nsw i32 %146, %147
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %141, i64 %149
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %150)
          to label %151 unwind label %91

151:                                              ; preds = %139
  %152 = load i32, ptr %11, align 4, !tbaa !11
  %153 = load i32, ptr %12, align 4, !tbaa !11
  %154 = sub nsw i32 %153, 1
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %152, i32 noundef %154, double noundef 0xC1863547F0000000)
          to label %155 unwind label %91

155:                                              ; preds = %151
  br label %156

156:                                              ; preds = %155, %137, %129
  %157 = load i32, ptr %11, align 4, !tbaa !11
  %158 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 4
  %159 = getelementptr inbounds [2 x i32], ptr %158, i64 0, i64 0
  %160 = load i32, ptr %159, align 8, !tbaa !11
  %161 = sub nsw i32 %160, 1
  %162 = icmp slt i32 %157, %161
  br i1 %162, label %163, label %187

163:                                              ; preds = %156
  %164 = load i32, ptr %11, align 4, !tbaa !11
  %165 = add nsw i32 %164, 1
  %166 = load i32, ptr %12, align 4, !tbaa !11
  %167 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %165, i32 noundef %166)
          to label %168 unwind label %91

168:                                              ; preds = %163
  %169 = fcmp oeq double %167, -3.210000e+02
  br i1 %169, label %170, label %187

170:                                              ; preds = %168
  %171 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %172 = load ptr, ptr %171, align 8, !tbaa !16
  %173 = load i32, ptr %12, align 4, !tbaa !11
  %174 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 5
  %175 = load i32, ptr %174, align 8, !tbaa !21
  %176 = mul nsw i32 %173, %175
  %177 = load i32, ptr %11, align 4, !tbaa !11
  %178 = add nsw i32 %177, 1
  %179 = add nsw i32 %176, %178
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds double, ptr %172, i64 %180
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %181)
          to label %182 unwind label %91

182:                                              ; preds = %170
  %183 = load i32, ptr %11, align 4, !tbaa !11
  %184 = add nsw i32 %183, 1
  %185 = load i32, ptr %12, align 4, !tbaa !11
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %184, i32 noundef %185, double noundef 0xC1863547F0000000)
          to label %186 unwind label %91

186:                                              ; preds = %182
  br label %187

187:                                              ; preds = %186, %168, %156
  %188 = load i32, ptr %12, align 4, !tbaa !11
  %189 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 4
  %190 = getelementptr inbounds [2 x i32], ptr %189, i64 0, i64 1
  %191 = load i32, ptr %190, align 4, !tbaa !11
  %192 = sub nsw i32 %191, 1
  %193 = icmp slt i32 %188, %192
  br i1 %193, label %194, label %218

194:                                              ; preds = %187
  %195 = load i32, ptr %11, align 4, !tbaa !11
  %196 = load i32, ptr %12, align 4, !tbaa !11
  %197 = add nsw i32 %196, 1
  %198 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %195, i32 noundef %197)
          to label %199 unwind label %91

199:                                              ; preds = %194
  %200 = fcmp oeq double %198, -3.210000e+02
  br i1 %200, label %201, label %218

201:                                              ; preds = %199
  %202 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %203 = load ptr, ptr %202, align 8, !tbaa !16
  %204 = load i32, ptr %12, align 4, !tbaa !11
  %205 = add nsw i32 %204, 1
  %206 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 5
  %207 = load i32, ptr %206, align 8, !tbaa !21
  %208 = mul nsw i32 %205, %207
  %209 = load i32, ptr %11, align 4, !tbaa !11
  %210 = add nsw i32 %208, %209
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds double, ptr %203, i64 %211
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %212)
          to label %213 unwind label %91

213:                                              ; preds = %201
  %214 = load i32, ptr %11, align 4, !tbaa !11
  %215 = load i32, ptr %12, align 4, !tbaa !11
  %216 = add nsw i32 %215, 1
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %214, i32 noundef %216, double noundef 0xC1863547F0000000)
          to label %217 unwind label %91

217:                                              ; preds = %213
  br label %218

218:                                              ; preds = %217, %199, %187
  br label %219

219:                                              ; preds = %218, %101, %90
  %220 = load i32, ptr %12, align 4, !tbaa !11
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %12, align 4, !tbaa !11
  br label %77, !llvm.loop !22

222:                                              ; preds = %83
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %11, align 4, !tbaa !11
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %11, align 4, !tbaa !11
  br label %69, !llvm.loop !23

226:                                              ; preds = %75
  br label %227

227:                                              ; preds = %487, %226
  %228 = invoke noundef i32 @_ZNK8RNVQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %229 unwind label %240

229:                                              ; preds = %227
  %230 = icmp ne i32 %228, 0
  %231 = xor i1 %230, true
  br i1 %231, label %232, label %492

232:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %233 = invoke noundef ptr @_ZN7RNQueueIPdE3PopEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %234 unwind label %244

234:                                              ; preds = %232
  store ptr %233, ptr %15, align 8, !tbaa !5
  %235 = load ptr, ptr %15, align 8, !tbaa !5
  %236 = load double, ptr %235, align 8, !tbaa !9
  %237 = fcmp oeq double %236, 0xC1863547F0000000
  br i1 %237, label %248, label %238

238:                                              ; preds = %234
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.6, i32 noundef 630, ptr noundef @.str.2)
          to label %239 unwind label %244

239:                                              ; preds = %238
  br label %248

240:                                              ; preds = %227
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %13, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %14, align 4
  br label %493

244:                                              ; preds = %238, %232
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %13, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %14, align 4
  br label %491

248:                                              ; preds = %239, %234
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %249 = load ptr, ptr %15, align 8, !tbaa !5
  %250 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %251 = load ptr, ptr %250, align 8, !tbaa !16
  %252 = ptrtoint ptr %249 to i64
  %253 = ptrtoint ptr %251 to i64
  %254 = sub i64 %252, %253
  %255 = sdiv exact i64 %254, 8
  %256 = trunc i64 %255 to i32
  store i32 %256, ptr %16, align 4, !tbaa !11
  %257 = load i32, ptr %16, align 4, !tbaa !11
  %258 = icmp sge i32 %257, 0
  br i1 %258, label %259, label %264

259:                                              ; preds = %248
  %260 = load i32, ptr %16, align 4, !tbaa !11
  %261 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 6
  %262 = load i32, ptr %261, align 4, !tbaa !24
  %263 = icmp slt i32 %260, %262
  br i1 %263, label %270, label %264

264:                                              ; preds = %259, %248
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.7, i32 noundef 632, ptr noundef @.str.2)
          to label %265 unwind label %266

265:                                              ; preds = %264
  br label %270

266:                                              ; preds = %264
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %13, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %14, align 4
  br label %490

270:                                              ; preds = %265, %259
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %271 = load i32, ptr %16, align 4, !tbaa !11
  invoke void @_ZNK6R2Grid14IndexToIndicesEiRiS0_(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %271, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %272 unwind label %277

272:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store double 0.000000e+00, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 -2, ptr %21, align 4, !tbaa !11
  br label %273

273:                                              ; preds = %353, %272
  %274 = load i32, ptr %21, align 4, !tbaa !11
  %275 = icmp sle i32 %274, 2
  br i1 %275, label %281, label %276

276:                                              ; preds = %273
  store i32 16, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %356

277:                                              ; preds = %270
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %13, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %14, align 4
  br label %489

281:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 -2, ptr %22, align 4, !tbaa !11
  br label %282

282:                                              ; preds = %349, %281
  %283 = load i32, ptr %22, align 4, !tbaa !11
  %284 = icmp sle i32 %283, 2
  br i1 %284, label %286, label %285

285:                                              ; preds = %282
  store i32 19, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %352

286:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %287 = load i32, ptr %17, align 4, !tbaa !11
  %288 = load i32, ptr %21, align 4, !tbaa !11
  %289 = add nsw i32 %287, %288
  store i32 %289, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %290 = load i32, ptr %18, align 4, !tbaa !11
  %291 = load i32, ptr %22, align 4, !tbaa !11
  %292 = add nsw i32 %290, %291
  store i32 %292, ptr %24, align 4, !tbaa !11
  %293 = load i32, ptr %23, align 4, !tbaa !11
  %294 = icmp slt i32 %293, 0
  br i1 %294, label %301, label %295

295:                                              ; preds = %286
  %296 = load i32, ptr %23, align 4, !tbaa !11
  %297 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 4
  %298 = getelementptr inbounds [2 x i32], ptr %297, i64 0, i64 0
  %299 = load i32, ptr %298, align 8, !tbaa !11
  %300 = icmp sge i32 %296, %299
  br i1 %300, label %301, label %302

301:                                              ; preds = %295, %286
  store i32 21, ptr %7, align 4
  br label %346

302:                                              ; preds = %295
  %303 = load i32, ptr %24, align 4, !tbaa !11
  %304 = icmp slt i32 %303, 0
  br i1 %304, label %311, label %305

305:                                              ; preds = %302
  %306 = load i32, ptr %24, align 4, !tbaa !11
  %307 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 4
  %308 = getelementptr inbounds [2 x i32], ptr %307, i64 0, i64 1
  %309 = load i32, ptr %308, align 4, !tbaa !11
  %310 = icmp sge i32 %306, %309
  br i1 %310, label %311, label %312

311:                                              ; preds = %305, %302
  store i32 21, ptr %7, align 4
  br label %346

312:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %313 = load i32, ptr %23, align 4, !tbaa !11
  %314 = load i32, ptr %24, align 4, !tbaa !11
  %315 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %313, i32 noundef %314)
          to label %316 unwind label %320

316:                                              ; preds = %312
  store double %315, ptr %25, align 8, !tbaa !9
  %317 = load double, ptr %25, align 8, !tbaa !9
  %318 = fcmp oeq double %317, -3.210000e+02
  br i1 %318, label %319, label %324

319:                                              ; preds = %316
  store i32 21, ptr %7, align 4
  br label %345

320:                                              ; preds = %312
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %13, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %488

324:                                              ; preds = %316
  %325 = load double, ptr %25, align 8, !tbaa !9
  %326 = fcmp oeq double %325, 0xC1863547F0000000
  br i1 %326, label %327, label %328

327:                                              ; preds = %324
  store i32 21, ptr %7, align 4
  br label %345

328:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %329 = load i32, ptr %21, align 4, !tbaa !11
  %330 = add nsw i32 %329, 2
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [5 x [5 x double]], ptr %5, i64 0, i64 %331
  %333 = load i32, ptr %22, align 4, !tbaa !11
  %334 = add nsw i32 %333, 2
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds [5 x double], ptr %332, i64 0, i64 %335
  %337 = load double, ptr %336, align 8, !tbaa !9
  store double %337, ptr %26, align 8, !tbaa !9
  %338 = load double, ptr %26, align 8, !tbaa !9
  %339 = load double, ptr %25, align 8, !tbaa !9
  %340 = load double, ptr %19, align 8, !tbaa !9
  %341 = call double @llvm.fmuladd.f64(double %338, double %339, double %340)
  store double %341, ptr %19, align 8, !tbaa !9
  %342 = load double, ptr %26, align 8, !tbaa !9
  %343 = load double, ptr %20, align 8, !tbaa !9
  %344 = fadd double %343, %342
  store double %344, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  store i32 0, ptr %7, align 4
  br label %345

345:                                              ; preds = %328, %327, %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %346

346:                                              ; preds = %345, %311, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  %347 = load i32, ptr %7, align 4
  switch i32 %347, label %499 [
    i32 0, label %348
    i32 21, label %349
  ]

348:                                              ; preds = %346
  br label %349

349:                                              ; preds = %348, %346
  %350 = load i32, ptr %22, align 4, !tbaa !11
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %22, align 4, !tbaa !11
  br label %282, !llvm.loop !25

352:                                              ; preds = %285
  br label %353

353:                                              ; preds = %352
  %354 = load i32, ptr %21, align 4, !tbaa !11
  %355 = add nsw i32 %354, 1
  store i32 %355, ptr %21, align 4, !tbaa !11
  br label %273, !llvm.loop !26

356:                                              ; preds = %276
  %357 = load double, ptr %20, align 8, !tbaa !9
  %358 = fcmp ogt double %357, 0.000000e+00
  br i1 %358, label %359, label %364

359:                                              ; preds = %356
  %360 = load double, ptr %19, align 8, !tbaa !9
  %361 = load double, ptr %20, align 8, !tbaa !9
  %362 = fdiv double %360, %361
  %363 = load ptr, ptr %15, align 8, !tbaa !5
  store double %362, ptr %363, align 8, !tbaa !9
  br label %367

364:                                              ; preds = %356
  %365 = load ptr, ptr @stderr, align 8, !tbaa !5
  %366 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %365, ptr noundef @.str.8) #7
  br label %367

367:                                              ; preds = %364, %359
  %368 = load i32, ptr %17, align 4, !tbaa !11
  %369 = icmp sgt i32 %368, 0
  br i1 %369, label %370, label %398

370:                                              ; preds = %367
  %371 = load i32, ptr %17, align 4, !tbaa !11
  %372 = sub nsw i32 %371, 1
  %373 = load i32, ptr %18, align 4, !tbaa !11
  %374 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %372, i32 noundef %373)
          to label %375 unwind label %394

375:                                              ; preds = %370
  %376 = fcmp oeq double %374, -3.210000e+02
  br i1 %376, label %377, label %398

377:                                              ; preds = %375
  %378 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %379 = load ptr, ptr %378, align 8, !tbaa !16
  %380 = load i32, ptr %18, align 4, !tbaa !11
  %381 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 5
  %382 = load i32, ptr %381, align 8, !tbaa !21
  %383 = mul nsw i32 %380, %382
  %384 = load i32, ptr %17, align 4, !tbaa !11
  %385 = sub nsw i32 %384, 1
  %386 = add nsw i32 %383, %385
  %387 = sext i32 %386 to i64
  %388 = getelementptr inbounds double, ptr %379, i64 %387
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %388)
          to label %389 unwind label %394

389:                                              ; preds = %377
  %390 = load i32, ptr %17, align 4, !tbaa !11
  %391 = sub nsw i32 %390, 1
  %392 = load i32, ptr %18, align 4, !tbaa !11
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %391, i32 noundef %392, double noundef 0xC1863547F0000000)
          to label %393 unwind label %394

393:                                              ; preds = %389
  br label %398

394:                                              ; preds = %482, %470, %463, %451, %439, %432, %420, %408, %401, %389, %377, %370
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %13, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %14, align 4
  br label %488

398:                                              ; preds = %393, %375, %367
  %399 = load i32, ptr %18, align 4, !tbaa !11
  %400 = icmp sgt i32 %399, 0
  br i1 %400, label %401, label %425

401:                                              ; preds = %398
  %402 = load i32, ptr %17, align 4, !tbaa !11
  %403 = load i32, ptr %18, align 4, !tbaa !11
  %404 = sub nsw i32 %403, 1
  %405 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %402, i32 noundef %404)
          to label %406 unwind label %394

406:                                              ; preds = %401
  %407 = fcmp oeq double %405, -3.210000e+02
  br i1 %407, label %408, label %425

408:                                              ; preds = %406
  %409 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %410 = load ptr, ptr %409, align 8, !tbaa !16
  %411 = load i32, ptr %18, align 4, !tbaa !11
  %412 = sub nsw i32 %411, 1
  %413 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 5
  %414 = load i32, ptr %413, align 8, !tbaa !21
  %415 = mul nsw i32 %412, %414
  %416 = load i32, ptr %17, align 4, !tbaa !11
  %417 = add nsw i32 %415, %416
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds double, ptr %410, i64 %418
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %419)
          to label %420 unwind label %394

420:                                              ; preds = %408
  %421 = load i32, ptr %17, align 4, !tbaa !11
  %422 = load i32, ptr %18, align 4, !tbaa !11
  %423 = sub nsw i32 %422, 1
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %421, i32 noundef %423, double noundef 0xC1863547F0000000)
          to label %424 unwind label %394

424:                                              ; preds = %420
  br label %425

425:                                              ; preds = %424, %406, %398
  %426 = load i32, ptr %17, align 4, !tbaa !11
  %427 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 4
  %428 = getelementptr inbounds [2 x i32], ptr %427, i64 0, i64 0
  %429 = load i32, ptr %428, align 8, !tbaa !11
  %430 = sub nsw i32 %429, 1
  %431 = icmp slt i32 %426, %430
  br i1 %431, label %432, label %456

432:                                              ; preds = %425
  %433 = load i32, ptr %17, align 4, !tbaa !11
  %434 = add nsw i32 %433, 1
  %435 = load i32, ptr %18, align 4, !tbaa !11
  %436 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %434, i32 noundef %435)
          to label %437 unwind label %394

437:                                              ; preds = %432
  %438 = fcmp oeq double %436, -3.210000e+02
  br i1 %438, label %439, label %456

439:                                              ; preds = %437
  %440 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %441 = load ptr, ptr %440, align 8, !tbaa !16
  %442 = load i32, ptr %18, align 4, !tbaa !11
  %443 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 5
  %444 = load i32, ptr %443, align 8, !tbaa !21
  %445 = mul nsw i32 %442, %444
  %446 = load i32, ptr %17, align 4, !tbaa !11
  %447 = add nsw i32 %446, 1
  %448 = add nsw i32 %445, %447
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds double, ptr %441, i64 %449
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %450)
          to label %451 unwind label %394

451:                                              ; preds = %439
  %452 = load i32, ptr %17, align 4, !tbaa !11
  %453 = add nsw i32 %452, 1
  %454 = load i32, ptr %18, align 4, !tbaa !11
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %453, i32 noundef %454, double noundef 0xC1863547F0000000)
          to label %455 unwind label %394

455:                                              ; preds = %451
  br label %456

456:                                              ; preds = %455, %437, %425
  %457 = load i32, ptr %18, align 4, !tbaa !11
  %458 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 4
  %459 = getelementptr inbounds [2 x i32], ptr %458, i64 0, i64 1
  %460 = load i32, ptr %459, align 4, !tbaa !11
  %461 = sub nsw i32 %460, 1
  %462 = icmp slt i32 %457, %461
  br i1 %462, label %463, label %487

463:                                              ; preds = %456
  %464 = load i32, ptr %17, align 4, !tbaa !11
  %465 = load i32, ptr %18, align 4, !tbaa !11
  %466 = add nsw i32 %465, 1
  %467 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %464, i32 noundef %466)
          to label %468 unwind label %394

468:                                              ; preds = %463
  %469 = fcmp oeq double %467, -3.210000e+02
  br i1 %469, label %470, label %487

470:                                              ; preds = %468
  %471 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 3
  %472 = load ptr, ptr %471, align 8, !tbaa !16
  %473 = load i32, ptr %18, align 4, !tbaa !11
  %474 = add nsw i32 %473, 1
  %475 = getelementptr inbounds %class.R2Grid, ptr %27, i32 0, i32 5
  %476 = load i32, ptr %475, align 8, !tbaa !21
  %477 = mul nsw i32 %474, %476
  %478 = load i32, ptr %17, align 4, !tbaa !11
  %479 = add nsw i32 %477, %478
  %480 = sext i32 %479 to i64
  %481 = getelementptr inbounds double, ptr %472, i64 %480
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %481)
          to label %482 unwind label %394

482:                                              ; preds = %470
  %483 = load i32, ptr %17, align 4, !tbaa !11
  %484 = load i32, ptr %18, align 4, !tbaa !11
  %485 = add nsw i32 %484, 1
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %27, i32 noundef %483, i32 noundef %485, double noundef 0xC1863547F0000000)
          to label %486 unwind label %394

486:                                              ; preds = %482
  br label %487

487:                                              ; preds = %486, %468, %456
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %227, !llvm.loop !27

488:                                              ; preds = %394, %320
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %489

489:                                              ; preds = %488, %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %490

490:                                              ; preds = %489, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %491

491:                                              ; preds = %490, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %493

492:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZN8RNVQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void

493:                                              ; preds = %491, %240, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @_ZN8RNVQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %494

494:                                              ; preds = %493
  %495 = load ptr, ptr %13, align 8
  %496 = load i32, ptr %14, align 4
  %497 = insertvalue { ptr, i32 } poison, ptr %495, 0
  %498 = insertvalue { ptr, i32 } %497, i32 %496, 1
  resume { ptr, i32 } %498

499:                                              ; preds = %346
  unreachable
}

; Function Attrs: nounwind
declare double @exp(double noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNQueueIPdEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7RNQueueIPdE3PopEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK6R2Grid14IndexToIndicesEiRiS0_(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6 align 2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8RNVQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !6, i64 184}
!17 = !{!"_ZTS6R2Grid", !18, i64 0, !18, i64 88, !10, i64 176, !6, i64 184, !7, i64 192, !12, i64 200, !12, i64 204}
!18 = !{!"_ZTS8R2Affine", !19, i64 0, !20, i64 8, !12, i64 80}
!19 = !{!"_ZTS16R2Transformation"}
!20 = !{!"_ZTS8R3Matrix", !7, i64 0}
!21 = !{!17, !12, i64 200}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = !{!17, !12, i64 204}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}


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

%class.RNQueue = type { %class.RNVQueue }
%class.RNVQueue = type { %class.RNVArray, i32, i32 }
%class.RNVArray = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [36 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R2Grid9FillHolesEv(ptr noundef nonnull align 8 dereferenceable(208) %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
.preheader124:
  %1 = alloca [5 x [5 x double]], align 16
  %2 = alloca %class.RNQueue, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %1) #7
  store <2 x double> <double 0x3FC5A23A7320F89B, double 0x3FD5117F772D475F>, ptr %1, align 16, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  store <2 x double> <double 0x3FDA4FA9ECAD91C2, double 0x3FD5117F772D475F>, ptr %5, align 16, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 32
  store <2 x double> <double 0x3FC5A23A7320F89B, double 0x3FD5117F772D475F>, ptr %6, align 16, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %1, i64 48
  store <2 x double> <double 0x3FE4848CBBE4955B, double 0x3FE99FA40BC6C5F7>, ptr %7, align 16, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 64
  store <2 x double> <double 0x3FE4848CBBE4955B, double 0x3FD5117F772D475F>, ptr %8, align 16, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 80
  store <2 x double> <double 0x3FDA4FA9ECAD91C2, double 0x3FE99FA40BC6C5F7>, ptr %9, align 16, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 96
  store <2 x double> <double 1.000000e+00, double 0x3FE99FA40BC6C5F7>, ptr %10, align 16, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 112
  store <2 x double> <double 0x3FDA4FA9ECAD91C2, double 0x3FD5117F772D475F>, ptr %11, align 16, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 128
  store <2 x double> <double 0x3FE4848CBBE4955B, double 0x3FE99FA40BC6C5F7>, ptr %12, align 16, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 144
  store <2 x double> <double 0x3FE4848CBBE4955B, double 0x3FD5117F772D475F>, ptr %13, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %1, i64 160
  store <2 x double> <double 0x3FC5A23A7320F89B, double 0x3FD5117F772D475F>, ptr %14, align 16, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 176
  store <2 x double> <double 0x3FDA4FA9ECAD91C2, double 0x3FD5117F772D475F>, ptr %15, align 16, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %1, i64 192
  store double 0x3FC5A23A7320F89B, ptr %16, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  call void @_ZN7RNQueueIPdEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %17 = getelementptr inbounds i8, ptr %0, i64 192
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.preheader123.lr.ph, label %.preheader122

.preheader123.lr.ph:                              ; preds = %.preheader124
  %20 = getelementptr inbounds i8, ptr %0, i64 196
  %21 = getelementptr inbounds i8, ptr %0, i64 184
  %22 = getelementptr inbounds i8, ptr %0, i64 200
  %23 = load i32, ptr %20, align 4, !tbaa !9
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.preheader123, label %.preheader122

.preheader123:                                    ; preds = %.preheader123.lr.ph, %._crit_edge
  %25 = phi i32 [ %84, %._crit_edge ], [ %18, %.preheader123.lr.ph ]
  %26 = phi i32 [ %85, %._crit_edge ], [ %23, %.preheader123.lr.ph ]
  %indvars.iv = phi i64 [ %indvars.iv.next.pre-phi, %._crit_edge ], [ 0, %.preheader123.lr.ph ]
  %27 = icmp sgt i32 %26, 0
  br i1 %27, label %.lr.ph, label %.preheader123.._crit_edge_crit_edge

.preheader123.._crit_edge_crit_edge:              ; preds = %.preheader123
  %.pre176 = add nuw nsw i64 %indvars.iv, 1
  br label %._crit_edge

.lr.ph:                                           ; preds = %.preheader123
  %.not112 = icmp eq i64 %indvars.iv, 0
  %28 = add nsw i64 %indvars.iv, -1
  %29 = add nuw nsw i64 %indvars.iv, 1
  %30 = trunc nuw nsw i64 %indvars.iv to i32
  %31 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef 0)
          to label %32 unwind label %.loopexit.split-lp

32:                                               ; preds = %.lr.ph
  %33 = fcmp oeq double %31, -3.210000e+02
  br i1 %33, label %74, label %34

34:                                               ; preds = %32
  %35 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef 0)
          to label %36 unwind label %.loopexit.split-lp

36:                                               ; preds = %34
  %37 = fcmp oeq double %35, 0xC1863547F0000000
  br i1 %37, label %74, label %38

38:                                               ; preds = %36
  br i1 %.not112, label %._crit_edge156, label %39

39:                                               ; preds = %38
  %40 = trunc nsw i64 %28 to i32
  %41 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %40, i32 noundef 0)
          to label %42 unwind label %.loopexit.split-lp

42:                                               ; preds = %39
  %43 = fcmp oeq double %41, -3.210000e+02
  br i1 %43, label %44, label %._crit_edge156

44:                                               ; preds = %42
  %45 = load ptr, ptr %21, align 8, !tbaa !11
  %46 = getelementptr inbounds double, ptr %45, i64 %28
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %46)
          to label %47 unwind label %.loopexit.split-lp

47:                                               ; preds = %44
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %40, i32 noundef 0, double noundef 0xC1863547F0000000)
          to label %._crit_edge156 unwind label %.loopexit.split-lp

._crit_edge156:                                   ; preds = %47, %42, %38
  %.pre = load i32, ptr %17, align 8, !tbaa !9
  %48 = add nsw i32 %.pre, -1
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv, %49
  br i1 %50, label %51, label %60

51:                                               ; preds = %._crit_edge156
  %52 = trunc nuw nsw i64 %29 to i32
  %53 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %52, i32 noundef 0)
          to label %54 unwind label %.loopexit.split-lp

54:                                               ; preds = %51
  %55 = fcmp oeq double %53, -3.210000e+02
  br i1 %55, label %56, label %60

56:                                               ; preds = %54
  %57 = load ptr, ptr %21, align 8, !tbaa !11
  %58 = getelementptr inbounds double, ptr %57, i64 %29
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull %58)
          to label %59 unwind label %.loopexit.split-lp

59:                                               ; preds = %56
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %52, i32 noundef 0, double noundef 0xC1863547F0000000)
          to label %60 unwind label %.loopexit.split-lp

60:                                               ; preds = %59, %54, %._crit_edge156
  %61 = load i32, ptr %20, align 4, !tbaa !9
  %62 = icmp sgt i32 %61, 1
  br i1 %62, label %63, label %._crit_edge.loopexit

63:                                               ; preds = %60
  %64 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef 1)
          to label %65 unwind label %.loopexit.split-lp

65:                                               ; preds = %63
  %66 = fcmp oeq double %64, -3.210000e+02
  br i1 %66, label %67, label %74

67:                                               ; preds = %65
  %68 = load ptr, ptr %21, align 8, !tbaa !11
  %69 = load i32, ptr %22, align 8, !tbaa !17
  %70 = sext i32 %69 to i64
  %71 = getelementptr double, ptr %68, i64 %indvars.iv
  %72 = getelementptr double, ptr %71, i64 %70
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %72)
          to label %73 unwind label %.loopexit.split-lp

73:                                               ; preds = %67
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef 1, double noundef 0xC1863547F0000000)
          to label %74 unwind label %.loopexit.split-lp

74:                                               ; preds = %73, %65, %36, %32
  %.pr = load i32, ptr %20, align 4, !tbaa !9
  %75 = icmp sgt i32 %.pr, 1
  br i1 %75, label %.peel.next, label %._crit_edge.loopexit

.peel.next:                                       ; preds = %74
  %76 = trunc nsw i64 %28 to i32
  %77 = trunc nuw nsw i64 %29 to i32
  br label %88

.preheader122:                                    ; preds = %._crit_edge, %.preheader123.lr.ph, %.preheader124
  %78 = call noundef i32 @_ZNK8RNVQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not140 = icmp eq i32 %78, 0
  br i1 %.not140, label %.lr.ph141, label %._crit_edge142

.lr.ph141:                                        ; preds = %.preheader122
  %79 = getelementptr inbounds i8, ptr %0, i64 184
  %80 = getelementptr inbounds i8, ptr %0, i64 204
  %81 = getelementptr inbounds i8, ptr %0, i64 196
  %82 = getelementptr inbounds i8, ptr %0, i64 200
  br label %160

._crit_edge.loopexit:                             ; preds = %156, %60, %74
  %83 = phi i32 [ %.pr, %74 ], [ %61, %60 ], [ %158, %156 ]
  %.pre158 = load i32, ptr %17, align 8, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader123.._crit_edge_crit_edge, %._crit_edge.loopexit
  %indvars.iv.next.pre-phi = phi i64 [ %.pre176, %.preheader123.._crit_edge_crit_edge ], [ %29, %._crit_edge.loopexit ]
  %84 = phi i32 [ %25, %.preheader123.._crit_edge_crit_edge ], [ %.pre158, %._crit_edge.loopexit ]
  %85 = phi i32 [ %26, %.preheader123.._crit_edge_crit_edge ], [ %83, %._crit_edge.loopexit ]
  %86 = sext i32 %84 to i64
  %87 = icmp slt i64 %indvars.iv.next.pre-phi, %86
  br i1 %87, label %.preheader123, label %.preheader122, !llvm.loop !18

88:                                               ; preds = %.peel.next, %156
  %.090132 = phi i32 [ 1, %.peel.next ], [ %157, %156 ]
  %89 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef %.090132)
          to label %90 unwind label %.loopexit

90:                                               ; preds = %88
  %91 = fcmp oeq double %89, -3.210000e+02
  br i1 %91, label %156, label %92

.loopexit:                                        ; preds = %88, %92, %97, %101, %108, %109, %114, %121, %127, %131, %138, %143, %148, %155
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %385

.loopexit.split-lp:                               ; preds = %.lr.ph, %34, %39, %44, %47, %51, %56, %59, %63, %67, %73
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %385

92:                                               ; preds = %90
  %93 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef %.090132)
          to label %94 unwind label %.loopexit

94:                                               ; preds = %92
  %95 = fcmp oeq double %93, 0xC1863547F0000000
  br i1 %95, label %156, label %96

96:                                               ; preds = %94
  br i1 %.not112, label %109, label %97

97:                                               ; preds = %96
  %98 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %76, i32 noundef %.090132)
          to label %99 unwind label %.loopexit

99:                                               ; preds = %97
  %100 = fcmp oeq double %98, -3.210000e+02
  br i1 %100, label %101, label %109

101:                                              ; preds = %99
  %102 = load ptr, ptr %21, align 8, !tbaa !11
  %103 = load i32, ptr %22, align 8, !tbaa !17
  %104 = mul nsw i32 %103, %.090132
  %105 = sext i32 %104 to i64
  %106 = getelementptr double, ptr %102, i64 %28
  %107 = getelementptr double, ptr %106, i64 %105
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %107)
          to label %108 unwind label %.loopexit

108:                                              ; preds = %101
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %76, i32 noundef %.090132, double noundef 0xC1863547F0000000)
          to label %109 unwind label %.loopexit

109:                                              ; preds = %96, %99, %108
  %110 = add nsw i32 %.090132, -1
  %111 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef %110)
          to label %112 unwind label %.loopexit

112:                                              ; preds = %109
  %113 = fcmp oeq double %111, -3.210000e+02
  br i1 %113, label %114, label %122

114:                                              ; preds = %112
  %115 = load ptr, ptr %21, align 8, !tbaa !11
  %116 = load i32, ptr %22, align 8, !tbaa !17
  %117 = mul nsw i32 %116, %110
  %118 = sext i32 %117 to i64
  %119 = getelementptr double, ptr %115, i64 %indvars.iv
  %120 = getelementptr double, ptr %119, i64 %118
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %120)
          to label %121 unwind label %.loopexit

121:                                              ; preds = %114
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef %110, double noundef 0xC1863547F0000000)
          to label %122 unwind label %.loopexit

122:                                              ; preds = %121, %112
  %123 = load i32, ptr %17, align 8, !tbaa !9
  %124 = add nsw i32 %123, -1
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv, %125
  br i1 %126, label %127, label %139

127:                                              ; preds = %122
  %128 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %77, i32 noundef %.090132)
          to label %129 unwind label %.loopexit

129:                                              ; preds = %127
  %130 = fcmp oeq double %128, -3.210000e+02
  br i1 %130, label %131, label %139

131:                                              ; preds = %129
  %132 = load ptr, ptr %21, align 8, !tbaa !11
  %133 = load i32, ptr %22, align 8, !tbaa !17
  %134 = mul nsw i32 %133, %.090132
  %135 = sext i32 %134 to i64
  %136 = getelementptr double, ptr %132, i64 %29
  %137 = getelementptr double, ptr %136, i64 %135
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %137)
          to label %138 unwind label %.loopexit

138:                                              ; preds = %131
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %77, i32 noundef %.090132, double noundef 0xC1863547F0000000)
          to label %139 unwind label %.loopexit

139:                                              ; preds = %138, %129, %122
  %140 = load i32, ptr %20, align 4, !tbaa !9
  %141 = add nsw i32 %140, -1
  %142 = icmp slt i32 %.090132, %141
  br i1 %142, label %143, label %156

143:                                              ; preds = %139
  %144 = add nuw nsw i32 %.090132, 1
  %145 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef %144)
          to label %146 unwind label %.loopexit

146:                                              ; preds = %143
  %147 = fcmp oeq double %145, -3.210000e+02
  br i1 %147, label %148, label %156

148:                                              ; preds = %146
  %149 = load ptr, ptr %21, align 8, !tbaa !11
  %150 = load i32, ptr %22, align 8, !tbaa !17
  %151 = mul nsw i32 %150, %144
  %152 = sext i32 %151 to i64
  %153 = getelementptr double, ptr %149, i64 %indvars.iv
  %154 = getelementptr double, ptr %153, i64 %152
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %154)
          to label %155 unwind label %.loopexit

155:                                              ; preds = %148
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %30, i32 noundef %144, double noundef 0xC1863547F0000000)
          to label %156 unwind label %.loopexit

156:                                              ; preds = %139, %146, %155, %94, %90
  %157 = add nuw nsw i32 %.090132, 1
  %158 = load i32, ptr %20, align 4, !tbaa !9
  %159 = icmp slt i32 %157, %158
  br i1 %159, label %88, label %._crit_edge.loopexit, !llvm.loop !21

160:                                              ; preds = %.lr.ph141, %382
  %161 = invoke noundef ptr @_ZN7RNQueueIPdE3PopEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %162 unwind label %166

162:                                              ; preds = %160
  %163 = load double, ptr %161, align 8, !tbaa !5
  %164 = fcmp oeq double %163, 0xC1863547F0000000
  br i1 %164, label %168, label %165

165:                                              ; preds = %162
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.6, i32 noundef 630, ptr noundef nonnull @.str.2)
          to label %168 unwind label %166

166:                                              ; preds = %165, %160
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %385

168:                                              ; preds = %165, %162
  %169 = load ptr, ptr %79, align 8, !tbaa !11
  %170 = ptrtoint ptr %161 to i64
  %171 = ptrtoint ptr %169 to i64
  %172 = sub i64 %170, %171
  %173 = lshr exact i64 %172, 3
  %174 = trunc i64 %173 to i32
  %175 = icmp sgt i32 %174, -1
  %176 = load i32, ptr %80, align 4
  %177 = icmp sgt i32 %176, %174
  %or.cond = select i1 %175, i1 %177, i1 false
  br i1 %or.cond, label %181, label %178

178:                                              ; preds = %168
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, i32 noundef 632, ptr noundef nonnull @.str.2)
          to label %181 unwind label %179

179:                                              ; preds = %178
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %385

181:                                              ; preds = %168, %178
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @_ZNK6R2Grid14IndexToIndicesEiRiS0_(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %174, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  br label %.preheader

.preheader:                                       ; preds = %181, %286
  %indvars.iv151 = phi i64 [ -2, %181 ], [ %indvars.iv.next152, %286 ]
  %.085138 = phi double [ 0.000000e+00, %181 ], [ %.3.4, %286 ]
  %.086137 = phi double [ 0.000000e+00, %181 ], [ %.389.4, %286 ]
  %182 = add nsw i64 %indvars.iv151, 2
  %183 = load i32, ptr %3, align 4, !tbaa !9
  %184 = trunc nsw i64 %indvars.iv151 to i32
  %185 = add nsw i32 %183, %184
  %186 = load i32, ptr %4, align 4, !tbaa !9
  %187 = add nsw i32 %186, -2
  %188 = icmp sgt i32 %185, -1
  %189 = load i32, ptr %17, align 8
  %.not107 = icmp slt i32 %185, %189
  %or.cond118 = select i1 %188, i1 %.not107, i1 false
  br i1 %or.cond118, label %192, label %207

190:                                              ; preds = %286
  %191 = fcmp ogt double %.3.4, 0.000000e+00
  br i1 %191, label %287, label %289

192:                                              ; preds = %.preheader
  %193 = icmp sgt i32 %186, 1
  %194 = load i32, ptr %81, align 4
  %.not108 = icmp slt i32 %187, %194
  %or.cond120 = select i1 %193, i1 %.not108, i1 false
  br i1 %or.cond120, label %195, label %207

195:                                              ; preds = %192
  %196 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %185, i32 noundef %187)
          to label %197 unwind label %200

197:                                              ; preds = %195
  %198 = fcmp oeq double %196, -3.210000e+02
  %199 = fcmp oeq double %196, 0xC1863547F0000000
  %or.cond121 = or i1 %198, %199
  br i1 %or.cond121, label %207, label %202

200:                                              ; preds = %276, %256, %236, %217, %195
  %201 = landingpad { ptr, i32 }
          cleanup
  br label %384

202:                                              ; preds = %197
  %203 = getelementptr inbounds [5 x [5 x double]], ptr %1, i64 0, i64 %182, i64 0
  %204 = load double, ptr %203, align 8, !tbaa !5
  %205 = call double @llvm.fmuladd.f64(double %204, double %196, double %.086137)
  %206 = fadd double %.085138, %204
  br label %207

207:                                              ; preds = %202, %197, %192, %.preheader
  %.389 = phi double [ %.086137, %.preheader ], [ %.086137, %192 ], [ %205, %202 ], [ %.086137, %197 ]
  %.3 = phi double [ %.085138, %.preheader ], [ %.085138, %192 ], [ %206, %202 ], [ %.085138, %197 ]
  %208 = load i32, ptr %3, align 4, !tbaa !9
  %209 = add nsw i32 %208, %184
  %210 = load i32, ptr %4, align 4, !tbaa !9
  %211 = add nsw i32 %210, -1
  %212 = icmp sgt i32 %209, -1
  %213 = load i32, ptr %17, align 8
  %.not107.1 = icmp slt i32 %209, %213
  %or.cond118.1 = select i1 %212, i1 %.not107.1, i1 false
  br i1 %or.cond118.1, label %214, label %227

214:                                              ; preds = %207
  %215 = icmp sgt i32 %210, 0
  %216 = load i32, ptr %81, align 4
  %.not108.1 = icmp sle i32 %210, %216
  %or.cond120.1 = select i1 %215, i1 %.not108.1, i1 false
  br i1 %or.cond120.1, label %217, label %227

217:                                              ; preds = %214
  %218 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %209, i32 noundef %211)
          to label %219 unwind label %200

219:                                              ; preds = %217
  %220 = fcmp oeq double %218, -3.210000e+02
  %221 = fcmp oeq double %218, 0xC1863547F0000000
  %or.cond121.1 = or i1 %220, %221
  br i1 %or.cond121.1, label %227, label %222

222:                                              ; preds = %219
  %223 = getelementptr inbounds [5 x [5 x double]], ptr %1, i64 0, i64 %182, i64 1
  %224 = load double, ptr %223, align 8, !tbaa !5
  %225 = call double @llvm.fmuladd.f64(double %224, double %218, double %.389)
  %226 = fadd double %.3, %224
  br label %227

227:                                              ; preds = %222, %219, %214, %207
  %.389.1 = phi double [ %.389, %207 ], [ %.389, %214 ], [ %225, %222 ], [ %.389, %219 ]
  %.3.1 = phi double [ %.3, %207 ], [ %.3, %214 ], [ %226, %222 ], [ %.3, %219 ]
  %228 = load i32, ptr %3, align 4, !tbaa !9
  %229 = add nsw i32 %228, %184
  %230 = load i32, ptr %4, align 4, !tbaa !9
  %231 = icmp sgt i32 %229, -1
  %232 = load i32, ptr %17, align 8
  %.not107.2 = icmp slt i32 %229, %232
  %or.cond118.2 = select i1 %231, i1 %.not107.2, i1 false
  br i1 %or.cond118.2, label %233, label %246

233:                                              ; preds = %227
  %234 = icmp sgt i32 %230, -1
  %235 = load i32, ptr %81, align 4
  %.not108.2 = icmp slt i32 %230, %235
  %or.cond120.2 = select i1 %234, i1 %.not108.2, i1 false
  br i1 %or.cond120.2, label %236, label %246

236:                                              ; preds = %233
  %237 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %229, i32 noundef %230)
          to label %238 unwind label %200

238:                                              ; preds = %236
  %239 = fcmp oeq double %237, -3.210000e+02
  %240 = fcmp oeq double %237, 0xC1863547F0000000
  %or.cond121.2 = or i1 %239, %240
  br i1 %or.cond121.2, label %246, label %241

241:                                              ; preds = %238
  %242 = getelementptr inbounds [5 x [5 x double]], ptr %1, i64 0, i64 %182, i64 2
  %243 = load double, ptr %242, align 8, !tbaa !5
  %244 = call double @llvm.fmuladd.f64(double %243, double %237, double %.389.1)
  %245 = fadd double %.3.1, %243
  br label %246

246:                                              ; preds = %241, %238, %233, %227
  %.389.2 = phi double [ %.389.1, %227 ], [ %.389.1, %233 ], [ %244, %241 ], [ %.389.1, %238 ]
  %.3.2 = phi double [ %.3.1, %227 ], [ %.3.1, %233 ], [ %245, %241 ], [ %.3.1, %238 ]
  %247 = load i32, ptr %3, align 4, !tbaa !9
  %248 = add nsw i32 %247, %184
  %249 = load i32, ptr %4, align 4, !tbaa !9
  %250 = add nsw i32 %249, 1
  %251 = icmp sgt i32 %248, -1
  %252 = load i32, ptr %17, align 8
  %.not107.3 = icmp slt i32 %248, %252
  %or.cond118.3 = select i1 %251, i1 %.not107.3, i1 false
  br i1 %or.cond118.3, label %253, label %266

253:                                              ; preds = %246
  %254 = icmp sgt i32 %249, -2
  %255 = load i32, ptr %81, align 4
  %.not108.3 = icmp slt i32 %250, %255
  %or.cond120.3 = select i1 %254, i1 %.not108.3, i1 false
  br i1 %or.cond120.3, label %256, label %266

256:                                              ; preds = %253
  %257 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %248, i32 noundef %250)
          to label %258 unwind label %200

258:                                              ; preds = %256
  %259 = fcmp oeq double %257, -3.210000e+02
  %260 = fcmp oeq double %257, 0xC1863547F0000000
  %or.cond121.3 = or i1 %259, %260
  br i1 %or.cond121.3, label %266, label %261

261:                                              ; preds = %258
  %262 = getelementptr inbounds [5 x [5 x double]], ptr %1, i64 0, i64 %182, i64 3
  %263 = load double, ptr %262, align 8, !tbaa !5
  %264 = call double @llvm.fmuladd.f64(double %263, double %257, double %.389.2)
  %265 = fadd double %.3.2, %263
  br label %266

266:                                              ; preds = %261, %258, %253, %246
  %.389.3 = phi double [ %.389.2, %246 ], [ %.389.2, %253 ], [ %264, %261 ], [ %.389.2, %258 ]
  %.3.3 = phi double [ %.3.2, %246 ], [ %.3.2, %253 ], [ %265, %261 ], [ %.3.2, %258 ]
  %267 = load i32, ptr %3, align 4, !tbaa !9
  %268 = add nsw i32 %267, %184
  %269 = load i32, ptr %4, align 4, !tbaa !9
  %270 = add nsw i32 %269, 2
  %271 = icmp sgt i32 %268, -1
  %272 = load i32, ptr %17, align 8
  %.not107.4 = icmp slt i32 %268, %272
  %or.cond118.4 = select i1 %271, i1 %.not107.4, i1 false
  br i1 %or.cond118.4, label %273, label %286

273:                                              ; preds = %266
  %274 = icmp sgt i32 %269, -3
  %275 = load i32, ptr %81, align 4
  %.not108.4 = icmp slt i32 %270, %275
  %or.cond120.4 = select i1 %274, i1 %.not108.4, i1 false
  br i1 %or.cond120.4, label %276, label %286

276:                                              ; preds = %273
  %277 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %268, i32 noundef %270)
          to label %278 unwind label %200

278:                                              ; preds = %276
  %279 = fcmp oeq double %277, -3.210000e+02
  %280 = fcmp oeq double %277, 0xC1863547F0000000
  %or.cond121.4 = or i1 %279, %280
  br i1 %or.cond121.4, label %286, label %281

281:                                              ; preds = %278
  %282 = getelementptr inbounds [5 x [5 x double]], ptr %1, i64 0, i64 %182, i64 4
  %283 = load double, ptr %282, align 8, !tbaa !5
  %284 = call double @llvm.fmuladd.f64(double %283, double %277, double %.389.3)
  %285 = fadd double %.3.3, %283
  br label %286

286:                                              ; preds = %281, %278, %273, %266
  %.389.4 = phi double [ %.389.3, %266 ], [ %.389.3, %273 ], [ %284, %281 ], [ %.389.3, %278 ]
  %.3.4 = phi double [ %.3.3, %266 ], [ %.3.3, %273 ], [ %285, %281 ], [ %.3.3, %278 ]
  %indvars.iv.next152 = add nsw i64 %indvars.iv151, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next152, 3
  br i1 %exitcond.not, label %190, label %.preheader, !llvm.loop !23

287:                                              ; preds = %190
  %288 = fdiv double %.389.4, %.3.4
  store double %288, ptr %161, align 8, !tbaa !5
  br label %292

289:                                              ; preds = %190
  %290 = load ptr, ptr @stderr, align 8, !tbaa !24
  %291 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %290, ptr noundef nonnull @.str.8) #8
  br label %292

292:                                              ; preds = %289, %287
  %293 = load i32, ptr %3, align 4, !tbaa !9
  %294 = icmp sgt i32 %293, 0
  %.pre162 = load i32, ptr %4, align 4, !tbaa !9
  br i1 %294, label %295, label %314

295:                                              ; preds = %292
  %296 = add nsw i32 %293, -1
  %297 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %296, i32 noundef %.pre162)
          to label %298 unwind label %312

298:                                              ; preds = %295
  %299 = fcmp oeq double %297, -3.210000e+02
  %.pre161 = load i32, ptr %4, align 4, !tbaa !9
  %.pre166.pre171 = load i32, ptr %3, align 4, !tbaa !9
  br i1 %299, label %300, label %314

300:                                              ; preds = %298
  %301 = load ptr, ptr %79, align 8, !tbaa !11
  %302 = load i32, ptr %82, align 8, !tbaa !17
  %303 = mul nsw i32 %302, %.pre161
  %304 = add nsw i32 %.pre166.pre171, -1
  %305 = add nsw i32 %304, %303
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds double, ptr %301, i64 %306
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %307)
          to label %308 unwind label %312

308:                                              ; preds = %300
  %309 = load i32, ptr %3, align 4, !tbaa !9
  %310 = add nsw i32 %309, -1
  %311 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %310, i32 noundef %311, double noundef 0xC1863547F0000000)
          to label %._crit_edge159 unwind label %312

._crit_edge159:                                   ; preds = %308
  %.pre160 = load i32, ptr %4, align 4, !tbaa !9
  %.pre166.pre = load i32, ptr %3, align 4, !tbaa !9
  br label %314

312:                                              ; preds = %378, %368, %362, %353, %344, %339, %330, %322, %317, %308, %300, %295
  %313 = landingpad { ptr, i32 }
          cleanup
  br label %384

314:                                              ; preds = %._crit_edge159, %298, %292
  %.pre166 = phi i32 [ %.pre166.pre, %._crit_edge159 ], [ %.pre166.pre171, %298 ], [ %293, %292 ]
  %315 = phi i32 [ %.pre160, %._crit_edge159 ], [ %.pre161, %298 ], [ %.pre162, %292 ]
  %316 = icmp sgt i32 %315, 0
  br i1 %316, label %317, label %334

317:                                              ; preds = %314
  %318 = add nsw i32 %315, -1
  %319 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %.pre166, i32 noundef %318)
          to label %320 unwind label %312

320:                                              ; preds = %317
  %321 = fcmp oeq double %319, -3.210000e+02
  %.pre165 = load i32, ptr %3, align 4, !tbaa !9
  %.pre170.pre173 = load i32, ptr %4, align 4, !tbaa !9
  br i1 %321, label %322, label %334

322:                                              ; preds = %320
  %323 = load ptr, ptr %79, align 8, !tbaa !11
  %324 = add nsw i32 %.pre170.pre173, -1
  %325 = load i32, ptr %82, align 8, !tbaa !17
  %326 = mul nsw i32 %324, %325
  %327 = add nsw i32 %326, %.pre165
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds double, ptr %323, i64 %328
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %329)
          to label %330 unwind label %312

330:                                              ; preds = %322
  %331 = load i32, ptr %3, align 4, !tbaa !9
  %332 = load i32, ptr %4, align 4, !tbaa !9
  %333 = add nsw i32 %332, -1
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %331, i32 noundef %333, double noundef 0xC1863547F0000000)
          to label %._crit_edge163 unwind label %312

._crit_edge163:                                   ; preds = %330
  %.pre164 = load i32, ptr %3, align 4, !tbaa !9
  %.pre170.pre = load i32, ptr %4, align 4, !tbaa !9
  br label %334

334:                                              ; preds = %._crit_edge163, %320, %314
  %.pre170 = phi i32 [ %.pre170.pre, %._crit_edge163 ], [ %.pre170.pre173, %320 ], [ %315, %314 ]
  %335 = phi i32 [ %.pre164, %._crit_edge163 ], [ %.pre165, %320 ], [ %.pre166, %314 ]
  %336 = load i32, ptr %17, align 8, !tbaa !9
  %337 = add nsw i32 %336, -1
  %338 = icmp slt i32 %335, %337
  br i1 %338, label %339, label %357

339:                                              ; preds = %334
  %340 = add nsw i32 %335, 1
  %341 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %340, i32 noundef %.pre170)
          to label %342 unwind label %312

342:                                              ; preds = %339
  %343 = fcmp oeq double %341, -3.210000e+02
  %.pre169 = load i32, ptr %4, align 4, !tbaa !9
  br i1 %343, label %344, label %357

344:                                              ; preds = %342
  %345 = load ptr, ptr %79, align 8, !tbaa !11
  %346 = load i32, ptr %82, align 8, !tbaa !17
  %347 = mul nsw i32 %346, %.pre169
  %348 = load i32, ptr %3, align 4, !tbaa !9
  %349 = add nsw i32 %348, 1
  %350 = add nsw i32 %349, %347
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds double, ptr %345, i64 %351
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %352)
          to label %353 unwind label %312

353:                                              ; preds = %344
  %354 = load i32, ptr %3, align 4, !tbaa !9
  %355 = add nsw i32 %354, 1
  %356 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %355, i32 noundef %356, double noundef 0xC1863547F0000000)
          to label %._crit_edge167 unwind label %312

._crit_edge167:                                   ; preds = %353
  %.pre168 = load i32, ptr %4, align 4, !tbaa !9
  br label %357

357:                                              ; preds = %._crit_edge167, %342, %334
  %358 = phi i32 [ %.pre168, %._crit_edge167 ], [ %.pre169, %342 ], [ %.pre170, %334 ]
  %359 = load i32, ptr %81, align 4, !tbaa !9
  %360 = add nsw i32 %359, -1
  %361 = icmp slt i32 %358, %360
  br i1 %361, label %362, label %382

362:                                              ; preds = %357
  %363 = load i32, ptr %3, align 4, !tbaa !9
  %364 = add nsw i32 %358, 1
  %365 = invoke noundef double @_ZNK6R2Grid9GridValueEii(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %363, i32 noundef %364)
          to label %366 unwind label %312

366:                                              ; preds = %362
  %367 = fcmp oeq double %365, -3.210000e+02
  br i1 %367, label %368, label %382

368:                                              ; preds = %366
  %369 = load ptr, ptr %79, align 8, !tbaa !11
  %370 = load i32, ptr %4, align 4, !tbaa !9
  %371 = add nsw i32 %370, 1
  %372 = load i32, ptr %82, align 8, !tbaa !17
  %373 = mul nsw i32 %371, %372
  %374 = load i32, ptr %3, align 4, !tbaa !9
  %375 = add nsw i32 %373, %374
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds double, ptr %369, i64 %376
  invoke void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %377)
          to label %378 unwind label %312

378:                                              ; preds = %368
  %379 = load i32, ptr %3, align 4, !tbaa !9
  %380 = load i32, ptr %4, align 4, !tbaa !9
  %381 = add nsw i32 %380, 1
  invoke void @_ZN6R2Grid12SetGridValueEiid(ptr noundef nonnull align 8 dereferenceable(208) %0, i32 noundef %379, i32 noundef %381, double noundef 0xC1863547F0000000)
          to label %382 unwind label %312

382:                                              ; preds = %378, %366, %357
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %383 = call noundef i32 @_ZNK8RNVQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not = icmp eq i32 %383, 0
  br i1 %.not, label %160, label %._crit_edge142, !llvm.loop !25

384:                                              ; preds = %312, %200
  %.pn = phi { ptr, i32 } [ %201, %200 ], [ %313, %312 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  br label %385

._crit_edge142:                                   ; preds = %382, %.preheader122
  call void @_ZN8RNVQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %1) #7
  ret void

385:                                              ; preds = %.loopexit, %.loopexit.split-lp, %166, %384, %179
  %.pn114 = phi { ptr, i32 } [ %167, %166 ], [ %.pn, %384 ], [ %180, %179 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN8RNVQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn114
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNQueueIPdEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNQueueIPdE4PushES0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8RNVQueue7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7RNQueueIPdE3PopEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNK6R2Grid14IndexToIndicesEiRiS0_(ptr noundef nonnull align 8 dereferenceable(208), i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8RNVQueueD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { nofree 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 #7 = { nounwind }
attributes #8 = { cold 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 = !{!"double", !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, !16, i64 184}
!12 = !{!"_ZTS6R2Grid", !13, i64 0, !13, i64 88, !6, i64 176, !16, i64 184, !7, i64 192, !10, i64 200, !10, i64 204}
!13 = !{!"_ZTS8R2Affine", !14, i64 0, !15, i64 8, !10, i64 80}
!14 = !{!"_ZTS16R2Transformation"}
!15 = !{!"_ZTS8R3Matrix", !7, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!12, !10, i64 200}
!18 = distinct !{!18, !19, !20}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.unswitch.partial.disable"}
!21 = distinct !{!21, !19, !22}
!22 = !{!"llvm.loop.peeled.count", i32 1}
!23 = distinct !{!23, !19}
!24 = !{!16, !16, i64 0}
!25 = distinct !{!25, !19}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass