; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src/scalarfield.ll (ZN11ScalarField8addPointEN5vmath4vec3E)

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

%struct.GridIndex = type { i32, i32, i32 }
%"class.vmath::vec3" = type { float, float, float }
%class.ScalarField = type { i32, i32, i32, double, double, double, double, double, double, double, double, i8, [7 x i8], %class.Array3d, %class.Array3d.0, %class.Array3d, %class.Array3d.0, i8, %"class.vmath::vec3" }
%class.Array3d = type <{ i32, i32, i32, [4 x i8], ptr, i8, [3 x i8], float, i32, [4 x i8] }>
%class.Array3d.0 = type { i32, i32, i32, ptr, i8, i8, i32 }

declare i32 @__gxx_personality_v0(...)

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #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: mustprogress uwtable
declare dso_local noundef float @_ZN7Array3dIfEclEiii(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, i32 noundef) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ScalarField8addPointEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.GridIndex, align 4
  %6 = alloca %struct.GridIndex, align 4
  %7 = alloca %"class.vmath::vec3", align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.vmath::vec3", align 4
  %11 = alloca %"class.vmath::vec3", align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.vmath::vec3", align 4
  %20 = alloca %"class.vmath::vec3", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  %22 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 18
  %23 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmIERNS_4vec3ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %22)
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #8
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #8
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %1, i64 12, i1 false), !tbaa.struct !9
  %24 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 4
  %25 = load double, ptr %24, align 8, !tbaa !12
  %26 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 3
  %27 = load double, ptr %26, align 8, !tbaa !20
  %28 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !21
  %30 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !22
  %32 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 2
  %33 = load i32, ptr %32, align 8, !tbaa !23
  invoke void @_ZN6Grid3d18getGridIndexBoundsEN5vmath4vec3EddiiiP9GridIndexS3_(ptr noundef %7, double noundef %25, double noundef %27, i32 noundef %29, i32 noundef %31, i32 noundef %33, ptr noundef %5, ptr noundef %6)
          to label %34 unwind label %49

34:                                               ; preds = %2
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #8
  call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %35 unwind label %53

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %36 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 4
  %37 = load double, ptr %36, align 8, !tbaa !12
  %38 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 4
  %39 = load double, ptr %38, align 8, !tbaa !12
  %40 = fmul double %37, %39
  store double %40, ptr %12, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %41 = getelementptr inbounds %struct.GridIndex, ptr %5, i32 0, i32 2
  %42 = load i32, ptr %41, align 4, !tbaa !25
  store i32 %42, ptr %15, align 4, !tbaa !27
  br label %43

43:                                               ; preds = %148, %35
  %44 = load i32, ptr %15, align 4, !tbaa !27
  %45 = getelementptr inbounds %struct.GridIndex, ptr %6, i32 0, i32 2
  %46 = load i32, ptr %45, align 4, !tbaa !25
  %47 = icmp sle i32 %44, %46
  br i1 %47, label %57, label %48

48:                                               ; preds = %43
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %151

49:                                               ; preds = %2
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %8, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %9, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #8
  br label %153

53:                                               ; preds = %34
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %8, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %9, align 4
  br label %152

57:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %58 = getelementptr inbounds %struct.GridIndex, ptr %5, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !28
  store i32 %59, ptr %17, align 4, !tbaa !27
  br label %60

60:                                               ; preds = %144, %57
  %61 = load i32, ptr %17, align 4, !tbaa !27
  %62 = getelementptr inbounds %struct.GridIndex, ptr %6, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !28
  %64 = icmp sle i32 %61, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %147

66:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %67 = getelementptr inbounds %struct.GridIndex, ptr %5, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !29
  store i32 %68, ptr %18, align 4, !tbaa !27
  br label %69

69:                                               ; preds = %139, %66
  %70 = load i32, ptr %18, align 4, !tbaa !27
  %71 = getelementptr inbounds %struct.GridIndex, ptr %6, i32 0, i32 0
  %72 = load i32, ptr %71, align 4, !tbaa !29
  %73 = icmp sle i32 %70, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %69
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %143

75:                                               ; preds = %69
  %76 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 11
  %77 = load i8, ptr %76, align 8, !tbaa !30, !range !31, !noundef !32
  %78 = trunc i8 %77 to i1
  br i1 %78, label %79, label %95

79:                                               ; preds = %75
  %80 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 13
  %81 = load i32, ptr %18, align 4, !tbaa !27
  %82 = load i32, ptr %17, align 4, !tbaa !27
  %83 = load i32, ptr %15, align 4, !tbaa !27
  %84 = invoke noundef float @_ZN7Array3dIfEclEiii(ptr noundef nonnull align 8 dereferenceable(36) %80, i32 noundef %81, i32 noundef %82, i32 noundef %83)
          to label %85 unwind label %91

85:                                               ; preds = %79
  %86 = fpext float %84 to double
  %87 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 10
  %88 = load double, ptr %87, align 8, !tbaa !33
  %89 = fcmp ogt double %86, %88
  br i1 %89, label %90, label %95

90:                                               ; preds = %85
  br label %139

91:                                               ; preds = %121, %112, %109, %102, %79
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %8, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %9, align 4
  br label %142

95:                                               ; preds = %85, %75
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  %96 = load i32, ptr %18, align 4, !tbaa !27
  %97 = load i32, ptr %17, align 4, !tbaa !27
  %98 = load i32, ptr %15, align 4, !tbaa !27
  %99 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 3
  %100 = load double, ptr %99, align 8, !tbaa !20
  invoke void @_ZN6Grid3d19GridIndexToPositionEiiid(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %19, i32 noundef %96, i32 noundef %97, i32 noundef %98, double noundef %100)
          to label %101 unwind label %129

101:                                              ; preds = %95
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %19, i64 12, i1 false), !tbaa.struct !9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %102 unwind label %133

102:                                              ; preds = %101
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !9
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  %103 = invoke noundef float @_ZN5vmath3dotERKNS_4vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %104 unwind label %91

104:                                              ; preds = %102
  %105 = fpext float %103 to double
  store double %105, ptr %13, align 8, !tbaa !24
  %106 = load double, ptr %13, align 8, !tbaa !24
  %107 = load double, ptr %12, align 8, !tbaa !24
  %108 = fcmp olt double %106, %107
  br i1 %108, label %109, label %138

109:                                              ; preds = %104
  %110 = load double, ptr %13, align 8, !tbaa !24
  %111 = invoke noundef double @_ZN11ScalarField46_evaluateTricubicFieldFunctionForRadiusSquaredEd(ptr noundef nonnull align 8 dereferenceable(248) %21, double noundef %110)
          to label %112 unwind label %91

112:                                              ; preds = %109
  store double %111, ptr %14, align 8, !tbaa !24
  %113 = load i32, ptr %18, align 4, !tbaa !27
  %114 = load i32, ptr %17, align 4, !tbaa !27
  %115 = load i32, ptr %15, align 4, !tbaa !27
  %116 = load double, ptr %14, align 8, !tbaa !24
  invoke void @_ZN11ScalarField19addScalarFieldValueEiiid(ptr noundef nonnull align 8 dereferenceable(248) %21, i32 noundef %113, i32 noundef %114, i32 noundef %115, double noundef %116)
          to label %117 unwind label %91

117:                                              ; preds = %112
  %118 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 17
  %119 = load i8, ptr %118, align 8, !tbaa !34, !range !31, !noundef !32
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %137

121:                                              ; preds = %117
  %122 = getelementptr inbounds %class.ScalarField, ptr %21, i32 0, i32 15
  %123 = load i32, ptr %18, align 4, !tbaa !27
  %124 = load i32, ptr %17, align 4, !tbaa !27
  %125 = load i32, ptr %15, align 4, !tbaa !27
  %126 = load double, ptr %14, align 8, !tbaa !24
  %127 = fptrunc double %126 to float
  invoke void @_ZN7Array3dIfE3addEiiif(ptr noundef nonnull align 8 dereferenceable(36) %122, i32 noundef %123, i32 noundef %124, i32 noundef %125, float noundef %127)
          to label %128 unwind label %91

128:                                              ; preds = %121
  br label %137

129:                                              ; preds = %95
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %8, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  br label %142

133:                                              ; preds = %101
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %8, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  br label %142

137:                                              ; preds = %128, %117
  br label %138

138:                                              ; preds = %137, %104
  br label %139

139:                                              ; preds = %138, %90
  %140 = load i32, ptr %18, align 4, !tbaa !27
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %18, align 4, !tbaa !27
  br label %69, !llvm.loop !35

142:                                              ; preds = %133, %129, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  br label %152

143:                                              ; preds = %74
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %17, align 4, !tbaa !27
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %17, align 4, !tbaa !27
  br label %60, !llvm.loop !37

147:                                              ; preds = %65
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %15, align 4, !tbaa !27
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %15, align 4, !tbaa !27
  br label %43, !llvm.loop !38

151:                                              ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #8
  ret void

152:                                              ; preds = %142, %53
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #8
  br label %153

153:                                              ; preds = %152, %49
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #8
  br label %154

154:                                              ; preds = %153
  %155 = load ptr, ptr %8, align 8
  %156 = load i32, ptr %9, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158
}

declare noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmIERNS_4vec3ERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Grid3d18getGridIndexBoundsEN5vmath4vec3EddiiiP9GridIndexS3_(ptr noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Grid3d19GridIndexToPositionEiiid(ptr dead_on_unwind noalias writable sret(%"class.vmath::vec3") align 4, i32 noundef, i32 noundef, i32 noundef, double noundef) #6

declare void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5vmath3dotERKNS_4vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN11ScalarField46_evaluateTricubicFieldFunctionForRadiusSquaredEd(ptr noundef nonnull align 8 dereferenceable(248), double noundef) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIfE3addEiiif(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, i32 noundef, float noundef) #3 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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = { 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 #7 = { 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 #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !15, i64 24}
!13 = !{!"_ZTS11ScalarField", !14, i64 0, !14, i64 4, !14, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !16, i64 80, !17, i64 88, !18, i64 128, !17, i64 160, !18, i64 200, !16, i64 232, !19, i64 236}
!14 = !{!"int", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS7Array3dIfE", !14, i64 0, !14, i64 4, !14, i64 8, !6, i64 16, !16, i64 24, !11, i64 28, !14, i64 32}
!18 = !{!"_ZTS7Array3dIbE", !14, i64 0, !14, i64 4, !14, i64 8, !6, i64 16, !16, i64 24, !16, i64 25, !14, i64 28}
!19 = !{!"_ZTSN5vmath4vec3E", !11, i64 0, !11, i64 4, !11, i64 8}
!20 = !{!13, !15, i64 16}
!21 = !{!13, !14, i64 0}
!22 = !{!13, !14, i64 4}
!23 = !{!13, !14, i64 8}
!24 = !{!15, !15, i64 0}
!25 = !{!26, !14, i64 8}
!26 = !{!"_ZTS9GridIndex", !14, i64 0, !14, i64 4, !14, i64 8}
!27 = !{!14, !14, i64 0}
!28 = !{!26, !14, i64 4}
!29 = !{!26, !14, i64 0}
!30 = !{!13, !16, i64 80}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!13, !15, i64 72}
!34 = !{!13, !16, i64 232}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = distinct !{!38, !36}


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

%struct.GridIndex = type { i32, i32, i32 }
%"class.vmath::vec3" = type { float, float, float }

declare i32 @__gxx_personality_v0(...)

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN7Array3dIfEclEiii(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ScalarField8addPointEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.GridIndex, align 4
  %4 = alloca %struct.GridIndex, align 4
  %5 = alloca %"class.vmath::vec3", align 4
  %6 = alloca %"class.vmath::vec3", align 4
  %7 = alloca %"class.vmath::vec3", align 4
  %8 = alloca %"class.vmath::vec3", align 4
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = getelementptr inbounds i8, ptr %0, i64 236
  %11 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmIERNS_4vec3ERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #8
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #8
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %1, i64 12, i1 false), !tbaa.struct !5
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load double, ptr %12, align 8, !tbaa !10
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load double, ptr %14, align 8, !tbaa !19
  %16 = load i32, ptr %0, align 8, !tbaa !20
  %17 = getelementptr inbounds i8, ptr %0, i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !21
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load i32, ptr %19, align 8, !tbaa !22
  invoke void @_ZN6Grid3d18getGridIndexBoundsEN5vmath4vec3EddiiiP9GridIndexS3_(ptr noundef nonnull %5, double noundef %13, double noundef %15, i32 noundef %16, i32 noundef %18, i32 noundef %20, ptr noundef nonnull %3, ptr noundef nonnull %4)
          to label %21 unwind label %39

21:                                               ; preds = %2
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #8
  call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %22 unwind label %41

22:                                               ; preds = %21
  %23 = load double, ptr %12, align 8, !tbaa !10
  %24 = fmul double %23, %23
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  %26 = load i32, ptr %25, align 4, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %4, i64 8
  %28 = load i32, ptr %27, align 4, !tbaa !23
  %.not44 = icmp sgt i32 %26, %28
  br i1 %.not44, label %._crit_edge49, label %.lr.ph48

.lr.ph48:                                         ; preds = %22
  %29 = getelementptr inbounds i8, ptr %3, i64 4
  %30 = getelementptr inbounds i8, ptr %4, i64 4
  %31 = getelementptr inbounds i8, ptr %0, i64 80
  %32 = getelementptr inbounds i8, ptr %0, i64 88
  %33 = getelementptr inbounds i8, ptr %0, i64 72
  %34 = getelementptr inbounds i8, ptr %0, i64 232
  %35 = getelementptr inbounds i8, ptr %0, i64 160
  %36 = load i32, ptr %29, align 4, !tbaa !25
  %37 = load i32, ptr %30, align 4, !tbaa !25
  %38 = icmp sgt i32 %36, %37
  br i1 %38, label %._crit_edge49, label %.lr.ph48.split

._crit_edge49:                                    ; preds = %._crit_edge43, %.lr.ph48, %22
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #8
  ret void

39:                                               ; preds = %2
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #8
  br label %93

41:                                               ; preds = %21
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %92

.lr.ph48.split:                                   ; preds = %.lr.ph48, %._crit_edge43
  %43 = phi i32 [ %50, %._crit_edge43 ], [ %28, %.lr.ph48 ]
  %44 = phi i32 [ %51, %._crit_edge43 ], [ %37, %.lr.ph48 ]
  %45 = phi i32 [ %52, %._crit_edge43 ], [ %37, %.lr.ph48 ]
  %.02645 = phi i32 [ %53, %._crit_edge43 ], [ %26, %.lr.ph48 ]
  %46 = load i32, ptr %29, align 4, !tbaa !25
  %.not3239 = icmp sgt i32 %46, %45
  br i1 %.not3239, label %._crit_edge43, label %.lr.ph42

.lr.ph42:                                         ; preds = %.lr.ph48.split
  %47 = load i32, ptr %3, align 4, !tbaa !26
  %48 = load i32, ptr %4, align 4, !tbaa !26
  %49 = icmp sgt i32 %47, %48
  br i1 %49, label %._crit_edge43, label %.lr.ph42.split

._crit_edge43.loopexit50:                         ; preds = %._crit_edge
  %.pre52 = load i32, ptr %27, align 4, !tbaa !23
  br label %._crit_edge43

._crit_edge43:                                    ; preds = %.lr.ph42, %._crit_edge43.loopexit50, %.lr.ph48.split
  %50 = phi i32 [ %.pre52, %._crit_edge43.loopexit50 ], [ %43, %.lr.ph48.split ], [ %43, %.lr.ph42 ]
  %51 = phi i32 [ %57, %._crit_edge43.loopexit50 ], [ %44, %.lr.ph48.split ], [ %44, %.lr.ph42 ]
  %52 = phi i32 [ %57, %._crit_edge43.loopexit50 ], [ %45, %.lr.ph48.split ], [ %45, %.lr.ph42 ]
  %53 = add nsw i32 %.02645, 1
  %.not.not = icmp slt i32 %.02645, %50
  br i1 %.not.not, label %.lr.ph48.split, label %._crit_edge49, !llvm.loop !27

.lr.ph42.split:                                   ; preds = %.lr.ph42, %._crit_edge
  %54 = phi i32 [ %57, %._crit_edge ], [ %44, %.lr.ph42 ]
  %55 = phi i32 [ %58, %._crit_edge ], [ %48, %.lr.ph42 ]
  %.02540 = phi i32 [ %59, %._crit_edge ], [ %46, %.lr.ph42 ]
  %56 = load i32, ptr %3, align 4, !tbaa !26
  %.not3337 = icmp sgt i32 %56, %55
  br i1 %.not3337, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %88
  %.pre = load i32, ptr %30, align 4, !tbaa !25
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph42.split
  %57 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %54, %.lr.ph42.split ]
  %58 = phi i32 [ %90, %._crit_edge.loopexit ], [ %55, %.lr.ph42.split ]
  %59 = add nsw i32 %.02540, 1
  %.not32.not = icmp slt i32 %.02540, %57
  br i1 %.not32.not, label %.lr.ph42.split, label %._crit_edge43.loopexit50, !llvm.loop !30

.lr.ph:                                           ; preds = %.lr.ph42.split, %88
  %.038 = phi i32 [ %89, %88 ], [ %56, %.lr.ph42.split ]
  %60 = load i8, ptr %31, align 8, !tbaa !31, !range !32, !noundef !33
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %62, label %70

62:                                               ; preds = %.lr.ph
  %63 = invoke noundef float @_ZN7Array3dIfEclEiii(ptr noundef nonnull align 8 dereferenceable(36) %32, i32 noundef %.038, i32 noundef %.02540, i32 noundef %.02645)
          to label %64 unwind label %68

64:                                               ; preds = %62
  %65 = fpext float %63 to double
  %66 = load double, ptr %33, align 8, !tbaa !34
  %67 = fcmp olt double %66, %65
  br i1 %67, label %88, label %70

68:                                               ; preds = %82, %77, %62
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %91

70:                                               ; preds = %64, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #8
  %71 = load double, ptr %14, align 8, !tbaa !19
  invoke void @_ZN6Grid3d19GridIndexToPositionEiiid(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %8, i32 noundef %.038, i32 noundef %.02540, i32 noundef %.02645, double noundef %71)
          to label %72 unwind label %84

72:                                               ; preds = %70
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !5
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %73 unwind label %86

73:                                               ; preds = %72
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %9, i64 12, i1 false), !tbaa.struct !5
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  %74 = call noundef float @_ZN5vmath3dotERKNS_4vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %75 = fpext float %74 to double
  %76 = fcmp ogt double %24, %75
  br i1 %76, label %77, label %88

77:                                               ; preds = %73
  %78 = call noundef double @_ZN11ScalarField46_evaluateTricubicFieldFunctionForRadiusSquaredEd(ptr noundef nonnull align 8 dereferenceable(248) %0, double noundef %75)
  invoke void @_ZN11ScalarField19addScalarFieldValueEiiid(ptr noundef nonnull align 8 dereferenceable(248) %0, i32 noundef %.038, i32 noundef %.02540, i32 noundef %.02645, double noundef %78)
          to label %79 unwind label %68

79:                                               ; preds = %77
  %80 = load i8, ptr %34, align 8, !tbaa !35, !range !32, !noundef !33
  %81 = trunc nuw i8 %80 to i1
  br i1 %81, label %82, label %88

82:                                               ; preds = %79
  %83 = fptrunc double %78 to float
  invoke void @_ZN7Array3dIfE3addEiiif(ptr noundef nonnull align 8 dereferenceable(36) %35, i32 noundef %.038, i32 noundef %.02540, i32 noundef %.02645, float noundef %83)
          to label %88 unwind label %68

84:                                               ; preds = %70
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #8
  br label %91

86:                                               ; preds = %72
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #8
  br label %91

88:                                               ; preds = %73, %82, %79, %64
  %89 = add nsw i32 %.038, 1
  %90 = load i32, ptr %4, align 4, !tbaa !26
  %.not33.not = icmp slt i32 %.038, %90
  br i1 %.not33.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !36

91:                                               ; preds = %86, %84, %68
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %87, %86 ], [ %85, %84 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #8
  br label %92

92:                                               ; preds = %91, %41
  %.pn.pn = phi { ptr, i32 } [ %.pn, %91 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  br label %93

93:                                               ; preds = %92, %39
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %92 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn.pn
}

declare noundef nonnull align 4 dereferenceable(12) ptr @_ZN5vmathmIERNS_4vec3ERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Grid3d18getGridIndexBoundsEN5vmath4vec3EddiiiP9GridIndexS3_(ptr noundef, double noundef, double noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6Grid3d19GridIndexToPositionEiiid(ptr dead_on_unwind noalias writable sret(%"class.vmath::vec3") align 4, i32 noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #6

declare void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN5vmath3dotERKNS_4vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN11ScalarField46_evaluateTricubicFieldFunctionForRadiusSquaredEd(ptr noundef nonnull align 8 dereferenceable(248), double noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array3dIfE3addEiiif(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #3 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = { 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 #7 = { 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 #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !13, i64 24}
!11 = !{!"_ZTS11ScalarField", !12, i64 0, !12, i64 4, !12, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !14, i64 80, !15, i64 88, !17, i64 128, !15, i64 160, !17, i64 200, !14, i64 232, !18, i64 236}
!12 = !{!"int", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTS7Array3dIfE", !12, i64 0, !12, i64 4, !12, i64 8, !16, i64 16, !14, i64 24, !7, i64 28, !12, i64 32}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTS7Array3dIbE", !12, i64 0, !12, i64 4, !12, i64 8, !16, i64 16, !14, i64 24, !14, i64 25, !12, i64 28}
!18 = !{!"_ZTSN5vmath4vec3E", !7, i64 0, !7, i64 4, !7, i64 8}
!19 = !{!11, !13, i64 16}
!20 = !{!11, !12, i64 0}
!21 = !{!11, !12, i64 4}
!22 = !{!11, !12, i64 8}
!23 = !{!24, !12, i64 8}
!24 = !{!"_ZTS9GridIndex", !12, i64 0, !12, i64 4, !12, i64 8}
!25 = !{!24, !12, i64 4}
!26 = !{!24, !12, i64 0}
!27 = distinct !{!27, !28, !29}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!"llvm.loop.unswitch.partial.disable"}
!30 = distinct !{!30, !28, !29}
!31 = !{!11, !14, i64 80}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!11, !13, i64 72}
!35 = !{!11, !14, i64 232}
!36 = distinct !{!36, !28}


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