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

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

@_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable = external hidden global [256 x i32], align 16
@_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable = external hidden global [256 x [16 x i32]], align 16

; 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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK6R3Grid18GenerateIsoSurfaceEdP6R3Mesh(ptr noundef nonnull align 8 dereferenceable(592) %0, double noundef %1, ptr noundef %2) #6 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [8 x double], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [12 x ptr], align 16
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %21 = call noundef i32 @_ZNK6R3Grid8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(592) %20)
  %22 = mul nsw i32 3, %21
  %23 = sext i32 %22 to i64
  %24 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %23, i64 8)
  %25 = extractvalue { i64, i1 } %24, 1
  %26 = extractvalue { i64, i1 } %24, 0
  %27 = select i1 %25, i64 -1, i64 %26
  %28 = call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #8
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %29

29:                                               ; preds = %40, %3
  %30 = load i32, ptr %8, align 4, !tbaa !11
  %31 = call noundef i32 @_ZNK6R3Grid8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(592) %20)
  %32 = mul nsw i32 3, %31
  %33 = icmp slt i32 %30, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %43

35:                                               ; preds = %29
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i32, ptr %8, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  store ptr null, ptr %39, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %35
  %41 = load i32, ptr %8, align 4, !tbaa !11
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %8, align 4, !tbaa !11
  br label %29, !llvm.loop !13

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %44

44:                                               ; preds = %471, %43
  %45 = load i32, ptr %10, align 4, !tbaa !11
  %46 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %20)
  %47 = sub nsw i32 %46, 1
  %48 = icmp slt i32 %45, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %474

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

51:                                               ; preds = %467, %50
  %52 = load i32, ptr %12, align 4, !tbaa !11
  %53 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %20)
  %54 = sub nsw i32 %53, 1
  %55 = icmp slt i32 %52, %54
  br i1 %55, label %57, label %56

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

57:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %463, %57
  %59 = load i32, ptr %13, align 4, !tbaa !11
  %60 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %20)
  %61 = sub nsw i32 %60, 1
  %62 = icmp slt i32 %59, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %58
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %466

64:                                               ; preds = %58
  %65 = load i32, ptr %13, align 4, !tbaa !11
  %66 = load i32, ptr %12, align 4, !tbaa !11
  %67 = load i32, ptr %10, align 4, !tbaa !11
  %68 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %20, i32 noundef %65, i32 noundef %66, i32 noundef %67)
  %69 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 0
  store double %68, ptr %69, align 16, !tbaa !9
  %70 = load i32, ptr %13, align 4, !tbaa !11
  %71 = add nsw i32 %70, 1
  %72 = load i32, ptr %12, align 4, !tbaa !11
  %73 = load i32, ptr %10, align 4, !tbaa !11
  %74 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %20, i32 noundef %71, i32 noundef %72, i32 noundef %73)
  %75 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 1
  store double %74, ptr %75, align 8, !tbaa !9
  %76 = load i32, ptr %13, align 4, !tbaa !11
  %77 = add nsw i32 %76, 1
  %78 = load i32, ptr %12, align 4, !tbaa !11
  %79 = load i32, ptr %10, align 4, !tbaa !11
  %80 = add nsw i32 %79, 1
  %81 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %20, i32 noundef %77, i32 noundef %78, i32 noundef %80)
  %82 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 2
  store double %81, ptr %82, align 16, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !11
  %84 = load i32, ptr %12, align 4, !tbaa !11
  %85 = load i32, ptr %10, align 4, !tbaa !11
  %86 = add nsw i32 %85, 1
  %87 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %20, i32 noundef %83, i32 noundef %84, i32 noundef %86)
  %88 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 3
  store double %87, ptr %88, align 8, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !11
  %90 = load i32, ptr %12, align 4, !tbaa !11
  %91 = add nsw i32 %90, 1
  %92 = load i32, ptr %10, align 4, !tbaa !11
  %93 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %20, i32 noundef %89, i32 noundef %91, i32 noundef %92)
  %94 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 4
  store double %93, ptr %94, align 16, !tbaa !9
  %95 = load i32, ptr %13, align 4, !tbaa !11
  %96 = add nsw i32 %95, 1
  %97 = load i32, ptr %12, align 4, !tbaa !11
  %98 = add nsw i32 %97, 1
  %99 = load i32, ptr %10, align 4, !tbaa !11
  %100 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %20, i32 noundef %96, i32 noundef %98, i32 noundef %99)
  %101 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 5
  store double %100, ptr %101, align 8, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !11
  %103 = add nsw i32 %102, 1
  %104 = load i32, ptr %12, align 4, !tbaa !11
  %105 = add nsw i32 %104, 1
  %106 = load i32, ptr %10, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  %108 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %20, i32 noundef %103, i32 noundef %105, i32 noundef %107)
  %109 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 6
  store double %108, ptr %109, align 16, !tbaa !9
  %110 = load i32, ptr %13, align 4, !tbaa !11
  %111 = load i32, ptr %12, align 4, !tbaa !11
  %112 = add nsw i32 %111, 1
  %113 = load i32, ptr %10, align 4, !tbaa !11
  %114 = add nsw i32 %113, 1
  %115 = call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %20, i32 noundef %110, i32 noundef %112, i32 noundef %114)
  %116 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 7
  store double %115, ptr %116, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !11
  %117 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 0
  %118 = load double, ptr %117, align 16, !tbaa !9
  %119 = load double, ptr %5, align 8, !tbaa !9
  %120 = fcmp olt double %118, %119
  br i1 %120, label %121, label %124

121:                                              ; preds = %64
  %122 = load i32, ptr %14, align 4, !tbaa !11
  %123 = or i32 %122, 1
  store i32 %123, ptr %14, align 4, !tbaa !11
  br label %124

124:                                              ; preds = %121, %64
  %125 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 1
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = load double, ptr %5, align 8, !tbaa !9
  %128 = fcmp olt double %126, %127
  br i1 %128, label %129, label %132

129:                                              ; preds = %124
  %130 = load i32, ptr %14, align 4, !tbaa !11
  %131 = or i32 %130, 2
  store i32 %131, ptr %14, align 4, !tbaa !11
  br label %132

132:                                              ; preds = %129, %124
  %133 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 2
  %134 = load double, ptr %133, align 16, !tbaa !9
  %135 = load double, ptr %5, align 8, !tbaa !9
  %136 = fcmp olt double %134, %135
  br i1 %136, label %137, label %140

137:                                              ; preds = %132
  %138 = load i32, ptr %14, align 4, !tbaa !11
  %139 = or i32 %138, 4
  store i32 %139, ptr %14, align 4, !tbaa !11
  br label %140

140:                                              ; preds = %137, %132
  %141 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 3
  %142 = load double, ptr %141, align 8, !tbaa !9
  %143 = load double, ptr %5, align 8, !tbaa !9
  %144 = fcmp olt double %142, %143
  br i1 %144, label %145, label %148

145:                                              ; preds = %140
  %146 = load i32, ptr %14, align 4, !tbaa !11
  %147 = or i32 %146, 8
  store i32 %147, ptr %14, align 4, !tbaa !11
  br label %148

148:                                              ; preds = %145, %140
  %149 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 4
  %150 = load double, ptr %149, align 16, !tbaa !9
  %151 = load double, ptr %5, align 8, !tbaa !9
  %152 = fcmp olt double %150, %151
  br i1 %152, label %153, label %156

153:                                              ; preds = %148
  %154 = load i32, ptr %14, align 4, !tbaa !11
  %155 = or i32 %154, 16
  store i32 %155, ptr %14, align 4, !tbaa !11
  br label %156

156:                                              ; preds = %153, %148
  %157 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 5
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = load double, ptr %5, align 8, !tbaa !9
  %160 = fcmp olt double %158, %159
  br i1 %160, label %161, label %164

161:                                              ; preds = %156
  %162 = load i32, ptr %14, align 4, !tbaa !11
  %163 = or i32 %162, 32
  store i32 %163, ptr %14, align 4, !tbaa !11
  br label %164

164:                                              ; preds = %161, %156
  %165 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 6
  %166 = load double, ptr %165, align 16, !tbaa !9
  %167 = load double, ptr %5, align 8, !tbaa !9
  %168 = fcmp olt double %166, %167
  br i1 %168, label %169, label %172

169:                                              ; preds = %164
  %170 = load i32, ptr %14, align 4, !tbaa !11
  %171 = or i32 %170, 64
  store i32 %171, ptr %14, align 4, !tbaa !11
  br label %172

172:                                              ; preds = %169, %164
  %173 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 7
  %174 = load double, ptr %173, align 8, !tbaa !9
  %175 = load double, ptr %5, align 8, !tbaa !9
  %176 = fcmp olt double %174, %175
  br i1 %176, label %177, label %180

177:                                              ; preds = %172
  %178 = load i32, ptr %14, align 4, !tbaa !11
  %179 = or i32 %178, 128
  store i32 %179, ptr %14, align 4, !tbaa !11
  br label %180

180:                                              ; preds = %177, %172
  %181 = load i32, ptr %14, align 4, !tbaa !11
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !11
  %185 = icmp eq i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %180
  store i32 13, ptr %11, align 4
  br label %460

187:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 96, ptr %15) #7
  %188 = load i32, ptr %14, align 4, !tbaa !11
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !11
  %192 = and i32 %191, 1
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %203

194:                                              ; preds = %187
  %195 = load i32, ptr %13, align 4, !tbaa !11
  %196 = load i32, ptr %12, align 4, !tbaa !11
  %197 = load i32, ptr %10, align 4, !tbaa !11
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = load double, ptr %5, align 8, !tbaa !9
  %201 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %195, i32 noundef %196, i32 noundef %197, i32 noundef 0, ptr noundef %198, ptr noundef %199, double noundef %200)
  %202 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 0
  store ptr %201, ptr %202, align 16, !tbaa !5
  br label %203

203:                                              ; preds = %194, %187
  %204 = load i32, ptr %14, align 4, !tbaa !11
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !11
  %208 = and i32 %207, 2
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %220

210:                                              ; preds = %203
  %211 = load i32, ptr %13, align 4, !tbaa !11
  %212 = add nsw i32 %211, 1
  %213 = load i32, ptr %12, align 4, !tbaa !11
  %214 = load i32, ptr %10, align 4, !tbaa !11
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load double, ptr %5, align 8, !tbaa !9
  %218 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %212, i32 noundef %213, i32 noundef %214, i32 noundef 2, ptr noundef %215, ptr noundef %216, double noundef %217)
  %219 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 1
  store ptr %218, ptr %219, align 8, !tbaa !5
  br label %220

220:                                              ; preds = %210, %203
  %221 = load i32, ptr %14, align 4, !tbaa !11
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !11
  %225 = and i32 %224, 4
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %237

227:                                              ; preds = %220
  %228 = load i32, ptr %13, align 4, !tbaa !11
  %229 = load i32, ptr %12, align 4, !tbaa !11
  %230 = load i32, ptr %10, align 4, !tbaa !11
  %231 = add nsw i32 %230, 1
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = load double, ptr %5, align 8, !tbaa !9
  %235 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %228, i32 noundef %229, i32 noundef %231, i32 noundef 0, ptr noundef %232, ptr noundef %233, double noundef %234)
  %236 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 2
  store ptr %235, ptr %236, align 16, !tbaa !5
  br label %237

237:                                              ; preds = %227, %220
  %238 = load i32, ptr %14, align 4, !tbaa !11
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %239
  %241 = load i32, ptr %240, align 4, !tbaa !11
  %242 = and i32 %241, 8
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %253

244:                                              ; preds = %237
  %245 = load i32, ptr %13, align 4, !tbaa !11
  %246 = load i32, ptr %12, align 4, !tbaa !11
  %247 = load i32, ptr %10, align 4, !tbaa !11
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = load double, ptr %5, align 8, !tbaa !9
  %251 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %245, i32 noundef %246, i32 noundef %247, i32 noundef 2, ptr noundef %248, ptr noundef %249, double noundef %250)
  %252 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 3
  store ptr %251, ptr %252, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %244, %237
  %254 = load i32, ptr %14, align 4, !tbaa !11
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %255
  %257 = load i32, ptr %256, align 4, !tbaa !11
  %258 = and i32 %257, 16
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %270

260:                                              ; preds = %253
  %261 = load i32, ptr %13, align 4, !tbaa !11
  %262 = load i32, ptr %12, align 4, !tbaa !11
  %263 = add nsw i32 %262, 1
  %264 = load i32, ptr %10, align 4, !tbaa !11
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = load double, ptr %5, align 8, !tbaa !9
  %268 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %261, i32 noundef %263, i32 noundef %264, i32 noundef 0, ptr noundef %265, ptr noundef %266, double noundef %267)
  %269 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 4
  store ptr %268, ptr %269, align 16, !tbaa !5
  br label %270

270:                                              ; preds = %260, %253
  %271 = load i32, ptr %14, align 4, !tbaa !11
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !11
  %275 = and i32 %274, 32
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %288

277:                                              ; preds = %270
  %278 = load i32, ptr %13, align 4, !tbaa !11
  %279 = add nsw i32 %278, 1
  %280 = load i32, ptr %12, align 4, !tbaa !11
  %281 = add nsw i32 %280, 1
  %282 = load i32, ptr %10, align 4, !tbaa !11
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = load double, ptr %5, align 8, !tbaa !9
  %286 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %279, i32 noundef %281, i32 noundef %282, i32 noundef 2, ptr noundef %283, ptr noundef %284, double noundef %285)
  %287 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 5
  store ptr %286, ptr %287, align 8, !tbaa !5
  br label %288

288:                                              ; preds = %277, %270
  %289 = load i32, ptr %14, align 4, !tbaa !11
  %290 = sext i32 %289 to i64
  %291 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %290
  %292 = load i32, ptr %291, align 4, !tbaa !11
  %293 = and i32 %292, 64
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %306

295:                                              ; preds = %288
  %296 = load i32, ptr %13, align 4, !tbaa !11
  %297 = load i32, ptr %12, align 4, !tbaa !11
  %298 = add nsw i32 %297, 1
  %299 = load i32, ptr %10, align 4, !tbaa !11
  %300 = add nsw i32 %299, 1
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = load double, ptr %5, align 8, !tbaa !9
  %304 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %296, i32 noundef %298, i32 noundef %300, i32 noundef 0, ptr noundef %301, ptr noundef %302, double noundef %303)
  %305 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 6
  store ptr %304, ptr %305, align 16, !tbaa !5
  br label %306

306:                                              ; preds = %295, %288
  %307 = load i32, ptr %14, align 4, !tbaa !11
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %308
  %310 = load i32, ptr %309, align 4, !tbaa !11
  %311 = and i32 %310, 128
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %313, label %323

313:                                              ; preds = %306
  %314 = load i32, ptr %13, align 4, !tbaa !11
  %315 = load i32, ptr %12, align 4, !tbaa !11
  %316 = add nsw i32 %315, 1
  %317 = load i32, ptr %10, align 4, !tbaa !11
  %318 = load ptr, ptr %6, align 8, !tbaa !5
  %319 = load ptr, ptr %7, align 8, !tbaa !5
  %320 = load double, ptr %5, align 8, !tbaa !9
  %321 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %314, i32 noundef %316, i32 noundef %317, i32 noundef 2, ptr noundef %318, ptr noundef %319, double noundef %320)
  %322 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 7
  store ptr %321, ptr %322, align 8, !tbaa !5
  br label %323

323:                                              ; preds = %313, %306
  %324 = load i32, ptr %14, align 4, !tbaa !11
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %325
  %327 = load i32, ptr %326, align 4, !tbaa !11
  %328 = and i32 %327, 256
  %329 = icmp ne i32 %328, 0
  br i1 %329, label %330, label %339

330:                                              ; preds = %323
  %331 = load i32, ptr %13, align 4, !tbaa !11
  %332 = load i32, ptr %12, align 4, !tbaa !11
  %333 = load i32, ptr %10, align 4, !tbaa !11
  %334 = load ptr, ptr %6, align 8, !tbaa !5
  %335 = load ptr, ptr %7, align 8, !tbaa !5
  %336 = load double, ptr %5, align 8, !tbaa !9
  %337 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %331, i32 noundef %332, i32 noundef %333, i32 noundef 1, ptr noundef %334, ptr noundef %335, double noundef %336)
  %338 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 8
  store ptr %337, ptr %338, align 16, !tbaa !5
  br label %339

339:                                              ; preds = %330, %323
  %340 = load i32, ptr %14, align 4, !tbaa !11
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %341
  %343 = load i32, ptr %342, align 4, !tbaa !11
  %344 = and i32 %343, 512
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %356

346:                                              ; preds = %339
  %347 = load i32, ptr %13, align 4, !tbaa !11
  %348 = add nsw i32 %347, 1
  %349 = load i32, ptr %12, align 4, !tbaa !11
  %350 = load i32, ptr %10, align 4, !tbaa !11
  %351 = load ptr, ptr %6, align 8, !tbaa !5
  %352 = load ptr, ptr %7, align 8, !tbaa !5
  %353 = load double, ptr %5, align 8, !tbaa !9
  %354 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %348, i32 noundef %349, i32 noundef %350, i32 noundef 1, ptr noundef %351, ptr noundef %352, double noundef %353)
  %355 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 9
  store ptr %354, ptr %355, align 8, !tbaa !5
  br label %356

356:                                              ; preds = %346, %339
  %357 = load i32, ptr %14, align 4, !tbaa !11
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %358
  %360 = load i32, ptr %359, align 4, !tbaa !11
  %361 = and i32 %360, 1024
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %374

363:                                              ; preds = %356
  %364 = load i32, ptr %13, align 4, !tbaa !11
  %365 = add nsw i32 %364, 1
  %366 = load i32, ptr %12, align 4, !tbaa !11
  %367 = load i32, ptr %10, align 4, !tbaa !11
  %368 = add nsw i32 %367, 1
  %369 = load ptr, ptr %6, align 8, !tbaa !5
  %370 = load ptr, ptr %7, align 8, !tbaa !5
  %371 = load double, ptr %5, align 8, !tbaa !9
  %372 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %365, i32 noundef %366, i32 noundef %368, i32 noundef 1, ptr noundef %369, ptr noundef %370, double noundef %371)
  %373 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 10
  store ptr %372, ptr %373, align 16, !tbaa !5
  br label %374

374:                                              ; preds = %363, %356
  %375 = load i32, ptr %14, align 4, !tbaa !11
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %376
  %378 = load i32, ptr %377, align 4, !tbaa !11
  %379 = and i32 %378, 2048
  %380 = icmp ne i32 %379, 0
  br i1 %380, label %381, label %391

381:                                              ; preds = %374
  %382 = load i32, ptr %13, align 4, !tbaa !11
  %383 = load i32, ptr %12, align 4, !tbaa !11
  %384 = load i32, ptr %10, align 4, !tbaa !11
  %385 = add nsw i32 %384, 1
  %386 = load ptr, ptr %6, align 8, !tbaa !5
  %387 = load ptr, ptr %7, align 8, !tbaa !5
  %388 = load double, ptr %5, align 8, !tbaa !9
  %389 = call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef %20, i32 noundef %382, i32 noundef %383, i32 noundef %385, i32 noundef 1, ptr noundef %386, ptr noundef %387, double noundef %388)
  %390 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 11
  store ptr %389, ptr %390, align 8, !tbaa !5
  br label %391

391:                                              ; preds = %381, %374
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %392

392:                                              ; preds = %456, %391
  %393 = load i32, ptr %14, align 4, !tbaa !11
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds [256 x [16 x i32]], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable, i64 0, i64 %394
  %396 = load i32, ptr %16, align 4, !tbaa !11
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [16 x i32], ptr %395, i64 0, i64 %397
  %399 = load i32, ptr %398, align 4, !tbaa !11
  %400 = icmp ne i32 %399, -1
  br i1 %400, label %402, label %401

401:                                              ; preds = %392
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %459

402:                                              ; preds = %392
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %403 = load i32, ptr %14, align 4, !tbaa !11
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [256 x [16 x i32]], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable, i64 0, i64 %404
  %406 = load i32, ptr %16, align 4, !tbaa !11
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds [16 x i32], ptr %405, i64 0, i64 %407
  %409 = load i32, ptr %408, align 4, !tbaa !11
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 %410
  %412 = load ptr, ptr %411, align 8, !tbaa !5
  store ptr %412, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %413 = load i32, ptr %14, align 4, !tbaa !11
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [256 x [16 x i32]], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable, i64 0, i64 %414
  %416 = load i32, ptr %16, align 4, !tbaa !11
  %417 = add nsw i32 %416, 1
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds [16 x i32], ptr %415, i64 0, i64 %418
  %420 = load i32, ptr %419, align 4, !tbaa !11
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 %421
  %423 = load ptr, ptr %422, align 8, !tbaa !5
  store ptr %423, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %424 = load i32, ptr %14, align 4, !tbaa !11
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds [256 x [16 x i32]], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable, i64 0, i64 %425
  %427 = load i32, ptr %16, align 4, !tbaa !11
  %428 = add nsw i32 %427, 2
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [16 x i32], ptr %426, i64 0, i64 %429
  %431 = load i32, ptr %430, align 4, !tbaa !11
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds [12 x ptr], ptr %15, i64 0, i64 %432
  %434 = load ptr, ptr %433, align 8, !tbaa !5
  store ptr %434, ptr %19, align 8, !tbaa !5
  %435 = load ptr, ptr %17, align 8, !tbaa !5
  %436 = icmp ne ptr %435, null
  br i1 %436, label %437, label %443

437:                                              ; preds = %402
  %438 = load ptr, ptr %18, align 8, !tbaa !5
  %439 = icmp ne ptr %438, null
  br i1 %439, label %440, label %443

440:                                              ; preds = %437
  %441 = load ptr, ptr %19, align 8, !tbaa !5
  %442 = icmp ne ptr %441, null
  br i1 %442, label %444, label %443

443:                                              ; preds = %440, %437, %402
  store i32 16, ptr %11, align 4
  br label %453

444:                                              ; preds = %440
  %445 = load ptr, ptr %6, align 8, !tbaa !5
  %446 = load ptr, ptr %17, align 8, !tbaa !5
  %447 = load ptr, ptr %18, align 8, !tbaa !5
  %448 = load ptr, ptr %19, align 8, !tbaa !5
  %449 = load ptr, ptr %445, align 8, !tbaa !15
  %450 = getelementptr inbounds ptr, ptr %449, i64 9
  %451 = load ptr, ptr %450, align 8
  %452 = call noundef ptr %451(ptr noundef nonnull align 8 dereferenceable(272) %445, ptr noundef %446, ptr noundef %447, ptr noundef %448, ptr noundef null)
  store i32 0, ptr %11, align 4
  br label %453

453:                                              ; preds = %444, %443
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %454 = load i32, ptr %11, align 4
  switch i32 %454, label %479 [
    i32 0, label %455
    i32 16, label %456
  ]

455:                                              ; preds = %453
  br label %456

456:                                              ; preds = %455, %453
  %457 = load i32, ptr %16, align 4, !tbaa !11
  %458 = add nsw i32 %457, 3
  store i32 %458, ptr %16, align 4, !tbaa !11
  br label %392, !llvm.loop !17

459:                                              ; preds = %401
  call void @llvm.lifetime.end.p0(i64 96, ptr %15) #7
  store i32 0, ptr %11, align 4
  br label %460

460:                                              ; preds = %459, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %461 = load i32, ptr %11, align 4
  switch i32 %461, label %479 [
    i32 0, label %462
    i32 13, label %463
  ]

462:                                              ; preds = %460
  br label %463

463:                                              ; preds = %462, %460
  %464 = load i32, ptr %13, align 4, !tbaa !11
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %13, align 4, !tbaa !11
  br label %58, !llvm.loop !18

466:                                              ; preds = %63
  br label %467

467:                                              ; preds = %466
  %468 = load i32, ptr %12, align 4, !tbaa !11
  %469 = add nsw i32 %468, 1
  store i32 %469, ptr %12, align 4, !tbaa !11
  br label %51, !llvm.loop !19

470:                                              ; preds = %56
  br label %471

471:                                              ; preds = %470
  %472 = load i32, ptr %10, align 4, !tbaa !11
  %473 = add nsw i32 %472, 1
  store i32 %473, ptr %10, align 4, !tbaa !11
  br label %44, !llvm.loop !20

474:                                              ; preds = %49
  %475 = load ptr, ptr %7, align 8, !tbaa !5
  %476 = icmp eq ptr %475, null
  br i1 %476, label %478, label %477

477:                                              ; preds = %474
  call void @_ZdaPv(ptr noundef %475) #9
  br label %478

478:                                              ; preds = %477, %474
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret i32 1

479:                                              ; preds = %460, %453
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, double noundef) #6

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #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 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !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"

@_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable = external hidden local_unnamed_addr global [256 x i32], align 16
@_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable = external hidden local_unnamed_addr global [256 x [16 x i32]], align 16

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 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: 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZNK6R3Grid18GenerateIsoSurfaceEdP6R3Mesh(ptr noundef nonnull align 8 dereferenceable(592) %0, double noundef %1, ptr noundef %2) local_unnamed_addr #5 align 2 {
  %4 = alloca [12 x ptr], align 16
  %5 = tail call noundef i32 @_ZNK6R3Grid8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %6 = mul nsw i32 %5, 3
  %7 = sext i32 %6 to i64
  %8 = icmp slt i32 %5, 0
  %9 = shl nsw i64 %7, 3
  %10 = select i1 %8, i64 -1, i64 %9
  %11 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %10) #6
  %12 = tail call noundef i32 @_ZNK6R3Grid8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %.preheader177

.preheader177:                                    ; preds = %.lr.ph, %3
  %14 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %15 = icmp sgt i32 %14, 1
  br i1 %15, label %.preheader176.lr.ph, label %._crit_edge188

.preheader176.lr.ph:                              ; preds = %.preheader177
  %16 = getelementptr inbounds i8, ptr %4, i64 8
  %17 = getelementptr inbounds i8, ptr %4, i64 16
  %18 = getelementptr inbounds i8, ptr %4, i64 24
  %19 = getelementptr inbounds i8, ptr %4, i64 32
  %20 = getelementptr inbounds i8, ptr %4, i64 40
  %21 = getelementptr inbounds i8, ptr %4, i64 48
  %22 = getelementptr inbounds i8, ptr %4, i64 56
  %23 = getelementptr inbounds i8, ptr %4, i64 64
  %24 = getelementptr inbounds i8, ptr %4, i64 72
  %25 = getelementptr inbounds i8, ptr %4, i64 80
  %26 = getelementptr inbounds i8, ptr %4, i64 88
  br label %.preheader176

.lr.ph:                                           ; preds = %3, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %3 ]
  %27 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv
  store ptr null, ptr %27, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = tail call noundef i32 @_ZNK6R3Grid8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %29 = mul nsw i32 %28, 3
  %30 = sext i32 %29 to i64
  %31 = icmp slt i64 %indvars.iv.next, %30
  br i1 %31, label %.lr.ph, label %.preheader177, !llvm.loop !9

.preheader176:                                    ; preds = %.preheader176.lr.ph, %._crit_edge186
  %.0155187 = phi i32 [ 0, %.preheader176.lr.ph ], [ %34, %._crit_edge186 ]
  %32 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %33 = icmp sgt i32 %32, 1
  %34 = add nuw nsw i32 %.0155187, 1
  br i1 %33, label %.preheader, label %._crit_edge186

.preheader:                                       ; preds = %.preheader176, %._crit_edge184
  %.0159185 = phi i32 [ %37, %._crit_edge184 ], [ 0, %.preheader176 ]
  %35 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %36 = icmp sgt i32 %35, 1
  %37 = add nuw nsw i32 %.0159185, 1
  br i1 %36, label %.lr.ph183, label %._crit_edge184

._crit_edge186:                                   ; preds = %._crit_edge184, %.preheader176
  %38 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %39 = add nsw i32 %38, -1
  %40 = icmp slt i32 %34, %39
  br i1 %40, label %.preheader176, label %._crit_edge188, !llvm.loop !11

._crit_edge184:                                   ; preds = %161, %.preheader
  %41 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %42 = add nsw i32 %41, -1
  %43 = icmp slt i32 %37, %42
  br i1 %43, label %.preheader, label %._crit_edge186, !llvm.loop !12

.lr.ph183:                                        ; preds = %.preheader, %161
  %.0158182 = phi i32 [ %45, %161 ], [ 0, %.preheader ]
  %44 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.0158182, i32 noundef %.0159185, i32 noundef %.0155187)
  %45 = add nuw nsw i32 %.0158182, 1
  %46 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %45, i32 noundef %.0159185, i32 noundef %.0155187)
  %47 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %45, i32 noundef %.0159185, i32 noundef %34)
  %48 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.0158182, i32 noundef %.0159185, i32 noundef %34)
  %49 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.0158182, i32 noundef %37, i32 noundef %.0155187)
  %50 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %45, i32 noundef %37, i32 noundef %.0155187)
  %51 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %45, i32 noundef %37, i32 noundef %34)
  %52 = tail call noundef double @_ZNK6R3Grid9GridValueEiii(ptr noundef nonnull align 8 dereferenceable(592) %0, i32 noundef %.0158182, i32 noundef %37, i32 noundef %34)
  %53 = fcmp olt double %44, %1
  %.0157 = zext i1 %53 to i32
  %54 = fcmp olt double %46, %1
  %55 = or disjoint i32 %.0157, 2
  %.1 = select i1 %54, i32 %55, i32 %.0157
  %56 = fcmp olt double %47, %1
  %57 = or disjoint i32 %.1, 4
  %.2 = select i1 %56, i32 %57, i32 %.1
  %58 = fcmp olt double %48, %1
  %59 = or disjoint i32 %.2, 8
  %.3 = select i1 %58, i32 %59, i32 %.2
  %60 = fcmp olt double %49, %1
  %61 = or i32 %.3, 16
  %.4 = select i1 %60, i32 %61, i32 %.3
  %62 = fcmp olt double %50, %1
  %63 = or i32 %.4, 32
  %.5 = select i1 %62, i32 %63, i32 %.4
  %64 = fcmp olt double %51, %1
  %65 = or i32 %.5, 64
  %.6 = select i1 %64, i32 %65, i32 %.5
  %66 = fcmp olt double %52, %1
  %67 = or i32 %.6, 128
  %.7 = select i1 %66, i32 %67, i32 %.6
  %68 = zext nneg i32 %.7 to i64
  %69 = getelementptr inbounds [256 x i32], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE9edgeTable, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !13
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %161, label %72

72:                                               ; preds = %.lr.ph183
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %4) #7
  %73 = and i32 %70, 1
  %.not = icmp eq i32 %73, 0
  br i1 %.not, label %76, label %74

74:                                               ; preds = %72
  %75 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %.0158182, i32 noundef %.0159185, i32 noundef %.0155187, i32 noundef 0, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %75, ptr %4, align 16, !tbaa !5
  %.pre = load i32, ptr %69, align 4, !tbaa !13
  br label %76

76:                                               ; preds = %74, %72
  %77 = phi i32 [ %.pre, %74 ], [ %70, %72 ]
  %78 = and i32 %77, 2
  %.not164 = icmp eq i32 %78, 0
  br i1 %.not164, label %81, label %79

79:                                               ; preds = %76
  %80 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %45, i32 noundef %.0159185, i32 noundef %.0155187, i32 noundef 2, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %80, ptr %16, align 8, !tbaa !5
  %.pre193 = load i32, ptr %69, align 4, !tbaa !13
  br label %81

81:                                               ; preds = %79, %76
  %82 = phi i32 [ %.pre193, %79 ], [ %77, %76 ]
  %83 = and i32 %82, 4
  %.not165 = icmp eq i32 %83, 0
  br i1 %.not165, label %86, label %84

84:                                               ; preds = %81
  %85 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %.0158182, i32 noundef %.0159185, i32 noundef %34, i32 noundef 0, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %85, ptr %17, align 16, !tbaa !5
  %.pre194 = load i32, ptr %69, align 4, !tbaa !13
  br label %86

86:                                               ; preds = %84, %81
  %87 = phi i32 [ %.pre194, %84 ], [ %82, %81 ]
  %88 = and i32 %87, 8
  %.not166 = icmp eq i32 %88, 0
  br i1 %.not166, label %91, label %89

89:                                               ; preds = %86
  %90 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %.0158182, i32 noundef %.0159185, i32 noundef %.0155187, i32 noundef 2, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %90, ptr %18, align 8, !tbaa !5
  %.pre195 = load i32, ptr %69, align 4, !tbaa !13
  br label %91

91:                                               ; preds = %89, %86
  %92 = phi i32 [ %.pre195, %89 ], [ %87, %86 ]
  %93 = and i32 %92, 16
  %.not167 = icmp eq i32 %93, 0
  br i1 %.not167, label %96, label %94

94:                                               ; preds = %91
  %95 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %.0158182, i32 noundef %37, i32 noundef %.0155187, i32 noundef 0, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %95, ptr %19, align 16, !tbaa !5
  %.pre196 = load i32, ptr %69, align 4, !tbaa !13
  br label %96

96:                                               ; preds = %94, %91
  %97 = phi i32 [ %.pre196, %94 ], [ %92, %91 ]
  %98 = and i32 %97, 32
  %.not168 = icmp eq i32 %98, 0
  br i1 %.not168, label %101, label %99

99:                                               ; preds = %96
  %100 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %45, i32 noundef %37, i32 noundef %.0155187, i32 noundef 2, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %100, ptr %20, align 8, !tbaa !5
  %.pre197 = load i32, ptr %69, align 4, !tbaa !13
  br label %101

101:                                              ; preds = %99, %96
  %102 = phi i32 [ %.pre197, %99 ], [ %97, %96 ]
  %103 = and i32 %102, 64
  %.not169 = icmp eq i32 %103, 0
  br i1 %.not169, label %106, label %104

104:                                              ; preds = %101
  %105 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %.0158182, i32 noundef %37, i32 noundef %34, i32 noundef 0, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %105, ptr %21, align 16, !tbaa !5
  %.pre198 = load i32, ptr %69, align 4, !tbaa !13
  br label %106

106:                                              ; preds = %104, %101
  %107 = phi i32 [ %.pre198, %104 ], [ %102, %101 ]
  %108 = and i32 %107, 128
  %.not170 = icmp eq i32 %108, 0
  br i1 %.not170, label %111, label %109

109:                                              ; preds = %106
  %110 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %.0158182, i32 noundef %37, i32 noundef %.0155187, i32 noundef 2, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %110, ptr %22, align 8, !tbaa !5
  %.pre199 = load i32, ptr %69, align 4, !tbaa !13
  br label %111

111:                                              ; preds = %109, %106
  %112 = phi i32 [ %.pre199, %109 ], [ %107, %106 ]
  %113 = and i32 %112, 256
  %.not171 = icmp eq i32 %113, 0
  br i1 %.not171, label %116, label %114

114:                                              ; preds = %111
  %115 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %.0158182, i32 noundef %.0159185, i32 noundef %.0155187, i32 noundef 1, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %115, ptr %23, align 16, !tbaa !5
  %.pre200 = load i32, ptr %69, align 4, !tbaa !13
  br label %116

116:                                              ; preds = %114, %111
  %117 = phi i32 [ %.pre200, %114 ], [ %112, %111 ]
  %118 = and i32 %117, 512
  %.not172 = icmp eq i32 %118, 0
  br i1 %.not172, label %121, label %119

119:                                              ; preds = %116
  %120 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %45, i32 noundef %.0159185, i32 noundef %.0155187, i32 noundef 1, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %120, ptr %24, align 8, !tbaa !5
  %.pre201 = load i32, ptr %69, align 4, !tbaa !13
  br label %121

121:                                              ; preds = %119, %116
  %122 = phi i32 [ %.pre201, %119 ], [ %117, %116 ]
  %123 = and i32 %122, 1024
  %.not173 = icmp eq i32 %123, 0
  br i1 %.not173, label %126, label %124

124:                                              ; preds = %121
  %125 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %45, i32 noundef %.0159185, i32 noundef %34, i32 noundef 1, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %125, ptr %25, align 16, !tbaa !5
  %.pre202 = load i32, ptr %69, align 4, !tbaa !13
  br label %126

126:                                              ; preds = %124, %121
  %127 = phi i32 [ %.pre202, %124 ], [ %122, %121 ]
  %128 = and i32 %127, 2048
  %.not174 = icmp eq i32 %128, 0
  br i1 %.not174, label %131, label %129

129:                                              ; preds = %126
  %130 = tail call noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef nonnull %0, i32 noundef %.0158182, i32 noundef %.0159185, i32 noundef %34, i32 noundef 1, ptr noundef %2, ptr noundef nonnull %11, double noundef %1)
  store ptr %130, ptr %26, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %129, %126
  %132 = getelementptr inbounds [256 x [16 x i32]], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable, i64 0, i64 %68, i64 0
  %133 = load i32, ptr %132, align 16, !tbaa !13
  %.not175179 = icmp eq i32 %133, -1
  br i1 %.not175179, label %._crit_edge, label %.lr.ph181

._crit_edge:                                      ; preds = %158, %131
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %4) #7
  br label %161

.lr.ph181:                                        ; preds = %131, %158
  %indvars.iv190 = phi i64 [ %indvars.iv.next191, %158 ], [ 0, %131 ]
  %134 = phi i32 [ %160, %158 ], [ %133, %131 ]
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [12 x ptr], ptr %4, i64 0, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = add nuw nsw i64 %indvars.iv190, 1
  %139 = getelementptr inbounds [256 x [16 x i32]], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable, i64 0, i64 %68, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !13
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [12 x ptr], ptr %4, i64 0, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = add nuw nsw i64 %indvars.iv190, 2
  %145 = getelementptr inbounds [256 x [16 x i32]], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable, i64 0, i64 %68, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !13
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [12 x ptr], ptr %4, i64 0, i64 %147
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = icmp ne ptr %137, null
  %151 = icmp ne ptr %143, null
  %or.cond = select i1 %150, i1 %151, i1 false
  %152 = icmp ne ptr %149, null
  %or.cond3 = select i1 %or.cond, i1 %152, i1 false
  br i1 %or.cond3, label %153, label %158

153:                                              ; preds = %.lr.ph181
  %154 = load ptr, ptr %2, align 8, !tbaa !15
  %155 = getelementptr inbounds i8, ptr %154, i64 72
  %156 = load ptr, ptr %155, align 8
  %157 = tail call noundef ptr %156(ptr noundef nonnull align 8 dereferenceable(272) %2, ptr noundef nonnull %137, ptr noundef nonnull %143, ptr noundef nonnull %149, ptr noundef null)
  br label %158

158:                                              ; preds = %.lr.ph181, %153
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 3
  %159 = getelementptr inbounds [256 x [16 x i32]], ptr @_ZZNK6R3Grid18GenerateIsoSurfaceEdP6R3MeshE8triTable, i64 0, i64 %68, i64 %indvars.iv.next191
  %160 = load i32, ptr %159, align 4, !tbaa !13
  %.not175 = icmp eq i32 %160, -1
  br i1 %.not175, label %._crit_edge, label %.lr.ph181, !llvm.loop !17

161:                                              ; preds = %.lr.ph183, %._crit_edge
  %162 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %163 = add nsw i32 %162, -1
  %164 = icmp slt i32 %45, %163
  br i1 %164, label %.lr.ph183, label %._crit_edge184, !llvm.loop !18

._crit_edge188:                                   ; preds = %._crit_edge186, %.preheader177
  tail call void @_ZdaPv(ptr noundef nonnull %11) #8
  ret i32 1
}

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL18InterpolatedVertexPK6R3GridiiiiP6R3MeshPP12R3MeshVertexd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #5

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #8 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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