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

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

%"class.vmath::vec3" = type { float, float, float }
%struct.GridIndex = type { i32, i32, i32 }
%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

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

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

36:                                               ; preds = %3
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #8
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %37 unwind label %55

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %38 = getelementptr inbounds %class.ScalarField, ptr %23, i32 0, i32 4
  %39 = load double, ptr %38, align 8, !tbaa !14
  %40 = getelementptr inbounds %class.ScalarField, ptr %23, i32 0, i32 4
  %41 = load double, ptr %40, align 8, !tbaa !14
  %42 = fmul double %39, %41
  store double %42, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %43 = getelementptr inbounds %struct.GridIndex, ptr %7, i32 0, i32 2
  %44 = load i32, ptr %43, align 4, !tbaa !25
  store i32 %44, ptr %17, align 4, !tbaa !27
  br label %45

45:                                               ; preds = %152, %37
  %46 = load i32, ptr %17, align 4, !tbaa !27
  %47 = getelementptr inbounds %struct.GridIndex, ptr %8, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !25
  %49 = icmp sle i32 %46, %48
  br i1 %49, label %59, label %50

50:                                               ; preds = %45
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %155

51:                                               ; preds = %3
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  br label %157

55:                                               ; preds = %36
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %10, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %11, align 4
  br label %156

59:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %60 = getelementptr inbounds %struct.GridIndex, ptr %7, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !28
  store i32 %61, ptr %19, align 4, !tbaa !27
  br label %62

62:                                               ; preds = %148, %59
  %63 = load i32, ptr %19, align 4, !tbaa !27
  %64 = getelementptr inbounds %struct.GridIndex, ptr %8, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !28
  %66 = icmp sle i32 %63, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %62
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %151

68:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %69 = getelementptr inbounds %struct.GridIndex, ptr %7, i32 0, i32 0
  %70 = load i32, ptr %69, align 4, !tbaa !29
  store i32 %70, ptr %20, align 4, !tbaa !27
  br label %71

71:                                               ; preds = %143, %68
  %72 = load i32, ptr %20, align 4, !tbaa !27
  %73 = getelementptr inbounds %struct.GridIndex, ptr %8, i32 0, i32 0
  %74 = load i32, ptr %73, align 4, !tbaa !29
  %75 = icmp sle i32 %72, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %71
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %147

77:                                               ; preds = %71
  %78 = getelementptr inbounds %class.ScalarField, ptr %23, i32 0, i32 11
  %79 = load i8, ptr %78, align 8, !tbaa !30, !range !31, !noundef !32
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %97

81:                                               ; preds = %77
  %82 = getelementptr inbounds %class.ScalarField, ptr %23, i32 0, i32 13
  %83 = load i32, ptr %20, align 4, !tbaa !27
  %84 = load i32, ptr %19, align 4, !tbaa !27
  %85 = load i32, ptr %17, align 4, !tbaa !27
  %86 = invoke noundef float @_ZN7Array3dIfEclEiii(ptr noundef nonnull align 8 dereferenceable(36) %82, i32 noundef %83, i32 noundef %84, i32 noundef %85)
          to label %87 unwind label %93

87:                                               ; preds = %81
  %88 = fpext float %86 to double
  %89 = getelementptr inbounds %class.ScalarField, ptr %23, i32 0, i32 10
  %90 = load double, ptr %89, align 8, !tbaa !33
  %91 = fcmp ogt double %88, %90
  br i1 %91, label %92, label %97

92:                                               ; preds = %87
  br label %143

93:                                               ; preds = %125, %114, %111, %104, %81
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %10, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %11, align 4
  br label %146

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

103:                                              ; preds = %97
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !11
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %104 unwind label %137

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

106:                                              ; preds = %104
  %107 = fpext float %105 to double
  store double %107, ptr %15, align 8, !tbaa !9
  %108 = load double, ptr %15, align 8, !tbaa !9
  %109 = load double, ptr %14, align 8, !tbaa !9
  %110 = fcmp olt double %108, %109
  br i1 %110, label %111, label %142

111:                                              ; preds = %106
  %112 = load double, ptr %15, align 8, !tbaa !9
  %113 = invoke noundef double @_ZN11ScalarField46_evaluateTricubicFieldFunctionForRadiusSquaredEd(ptr noundef nonnull align 8 dereferenceable(248) %23, double noundef %112)
          to label %114 unwind label %93

114:                                              ; preds = %111
  store double %113, ptr %16, align 8, !tbaa !9
  %115 = load i32, ptr %20, align 4, !tbaa !27
  %116 = load i32, ptr %19, align 4, !tbaa !27
  %117 = load i32, ptr %17, align 4, !tbaa !27
  %118 = load double, ptr %16, align 8, !tbaa !9
  %119 = load double, ptr %6, align 8, !tbaa !9
  %120 = fmul double %118, %119
  invoke void @_ZN11ScalarField19addScalarFieldValueEiiid(ptr noundef nonnull align 8 dereferenceable(248) %23, i32 noundef %115, i32 noundef %116, i32 noundef %117, double noundef %120)
          to label %121 unwind label %93

121:                                              ; preds = %114
  %122 = getelementptr inbounds %class.ScalarField, ptr %23, i32 0, i32 17
  %123 = load i8, ptr %122, align 8, !tbaa !34, !range !31, !noundef !32
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %141

125:                                              ; preds = %121
  %126 = getelementptr inbounds %class.ScalarField, ptr %23, i32 0, i32 15
  %127 = load i32, ptr %20, align 4, !tbaa !27
  %128 = load i32, ptr %19, align 4, !tbaa !27
  %129 = load i32, ptr %17, align 4, !tbaa !27
  %130 = load double, ptr %16, align 8, !tbaa !9
  %131 = fptrunc double %130 to float
  invoke void @_ZN7Array3dIfE3addEiiif(ptr noundef nonnull align 8 dereferenceable(36) %126, i32 noundef %127, i32 noundef %128, i32 noundef %129, float noundef %131)
          to label %132 unwind label %93

132:                                              ; preds = %125
  br label %141

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

137:                                              ; preds = %103
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %10, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #8
  br label %146

141:                                              ; preds = %132, %121
  br label %142

142:                                              ; preds = %141, %106
  br label %143

143:                                              ; preds = %142, %92
  %144 = load i32, ptr %20, align 4, !tbaa !27
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %20, align 4, !tbaa !27
  br label %71, !llvm.loop !35

146:                                              ; preds = %137, %133, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #8
  br label %156

147:                                              ; preds = %76
  br label %148

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

151:                                              ; preds = %67
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %17, align 4, !tbaa !27
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %17, align 4, !tbaa !27
  br label %45, !llvm.loop !38

155:                                              ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #8
  ret void

156:                                              ; preds = %146, %55
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  br label %157

157:                                              ; preds = %156, %51
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #8
  br label %158

158:                                              ; preds = %157
  %159 = load ptr, ptr %10, align 8
  %160 = load i32, ptr %11, align 4
  %161 = insertvalue { ptr, i32 } poison, ptr %159, 0
  %162 = insertvalue { ptr, i32 } %161, i32 %160, 1
  resume { ptr, i32 } %162
}

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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !10, i64 24}
!15 = !{!"_ZTS11ScalarField", !16, i64 0, !16, i64 4, !16, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !17, i64 80, !18, i64 88, !19, i64 128, !18, i64 160, !19, i64 200, !17, i64 232, !20, i64 236}
!16 = !{!"int", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS7Array3dIfE", !16, i64 0, !16, i64 4, !16, i64 8, !6, i64 16, !17, i64 24, !13, i64 28, !16, i64 32}
!19 = !{!"_ZTS7Array3dIbE", !16, i64 0, !16, i64 4, !16, i64 8, !6, i64 16, !17, i64 24, !17, i64 25, !16, i64 28}
!20 = !{!"_ZTSN5vmath4vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!21 = !{!15, !10, i64 16}
!22 = !{!15, !16, i64 0}
!23 = !{!15, !16, i64 4}
!24 = !{!15, !16, i64 8}
!25 = !{!26, !16, i64 8}
!26 = !{!"_ZTS9GridIndex", !16, i64 0, !16, i64 4, !16, i64 8}
!27 = !{!16, !16, i64 0}
!28 = !{!26, !16, i64 4}
!29 = !{!26, !16, i64 0}
!30 = !{!15, !17, i64 80}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!15, !10, i64 72}
!34 = !{!15, !17, 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"

%"class.vmath::vec3" = type { float, float, float }
%struct.GridIndex = type { i32, i32, 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: 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

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

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

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

23:                                               ; preds = %22
  %24 = load double, ptr %13, align 8, !tbaa !10
  %25 = fmul double %24, %24
  %26 = getelementptr inbounds i8, ptr %4, i64 8
  %27 = load i32, ptr %26, align 4, !tbaa !23
  %28 = getelementptr inbounds i8, ptr %5, i64 8
  %29 = load i32, ptr %28, align 4, !tbaa !23
  %.not45 = icmp sgt i32 %27, %29
  br i1 %.not45, label %._crit_edge50, label %.lr.ph49

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

._crit_edge50:                                    ; preds = %._crit_edge44, %.lr.ph49, %23
  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 @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  ret void

40:                                               ; preds = %3
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #8
  br label %95

42:                                               ; preds = %22
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %94

.lr.ph49.split:                                   ; preds = %.lr.ph49, %._crit_edge44
  %44 = phi i32 [ %51, %._crit_edge44 ], [ %29, %.lr.ph49 ]
  %45 = phi i32 [ %52, %._crit_edge44 ], [ %38, %.lr.ph49 ]
  %46 = phi i32 [ %53, %._crit_edge44 ], [ %38, %.lr.ph49 ]
  %.02746 = phi i32 [ %54, %._crit_edge44 ], [ %27, %.lr.ph49 ]
  %47 = load i32, ptr %30, align 4, !tbaa !25
  %.not3340 = icmp sgt i32 %47, %46
  br i1 %.not3340, label %._crit_edge44, label %.lr.ph43

.lr.ph43:                                         ; preds = %.lr.ph49.split
  %48 = load i32, ptr %4, align 4, !tbaa !26
  %49 = load i32, ptr %5, align 4, !tbaa !26
  %50 = icmp sgt i32 %48, %49
  br i1 %50, label %._crit_edge44, label %.lr.ph43.split

._crit_edge44.loopexit51:                         ; preds = %._crit_edge
  %.pre53 = load i32, ptr %28, align 4, !tbaa !23
  br label %._crit_edge44

._crit_edge44:                                    ; preds = %.lr.ph43, %._crit_edge44.loopexit51, %.lr.ph49.split
  %51 = phi i32 [ %.pre53, %._crit_edge44.loopexit51 ], [ %44, %.lr.ph49.split ], [ %44, %.lr.ph43 ]
  %52 = phi i32 [ %58, %._crit_edge44.loopexit51 ], [ %45, %.lr.ph49.split ], [ %45, %.lr.ph43 ]
  %53 = phi i32 [ %58, %._crit_edge44.loopexit51 ], [ %46, %.lr.ph49.split ], [ %46, %.lr.ph43 ]
  %54 = add nsw i32 %.02746, 1
  %.not.not = icmp slt i32 %.02746, %51
  br i1 %.not.not, label %.lr.ph49.split, label %._crit_edge50, !llvm.loop !27

.lr.ph43.split:                                   ; preds = %.lr.ph43, %._crit_edge
  %55 = phi i32 [ %58, %._crit_edge ], [ %45, %.lr.ph43 ]
  %56 = phi i32 [ %59, %._crit_edge ], [ %49, %.lr.ph43 ]
  %.02641 = phi i32 [ %60, %._crit_edge ], [ %47, %.lr.ph43 ]
  %57 = load i32, ptr %4, align 4, !tbaa !26
  %.not3438 = icmp sgt i32 %57, %56
  br i1 %.not3438, label %._crit_edge, label %.lr.ph

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph43.split
  %58 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %55, %.lr.ph43.split ]
  %59 = phi i32 [ %92, %._crit_edge.loopexit ], [ %56, %.lr.ph43.split ]
  %60 = add nsw i32 %.02641, 1
  %.not33.not = icmp slt i32 %.02641, %58
  br i1 %.not33.not, label %.lr.ph43.split, label %._crit_edge44.loopexit51, !llvm.loop !30

.lr.ph:                                           ; preds = %.lr.ph43.split, %90
  %.039 = phi i32 [ %91, %90 ], [ %57, %.lr.ph43.split ]
  %61 = load i8, ptr %32, align 8, !tbaa !31, !range !32, !noundef !33
  %62 = trunc nuw i8 %61 to i1
  br i1 %62, label %63, label %71

63:                                               ; preds = %.lr.ph
  %64 = invoke noundef float @_ZN7Array3dIfEclEiii(ptr noundef nonnull align 8 dereferenceable(36) %33, i32 noundef %.039, i32 noundef %.02641, i32 noundef %.02746)
          to label %65 unwind label %69

65:                                               ; preds = %63
  %66 = fpext float %64 to double
  %67 = load double, ptr %34, align 8, !tbaa !34
  %68 = fcmp olt double %67, %66
  br i1 %68, label %90, label %71

69:                                               ; preds = %84, %78, %63
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %93

71:                                               ; preds = %65, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #8
  %72 = load double, ptr %15, align 8, !tbaa !19
  invoke void @_ZN6Grid3d19GridIndexToPositionEiiid(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %9, i32 noundef %.039, i32 noundef %.02641, i32 noundef %.02746, double noundef %72)
          to label %73 unwind label %86

73:                                               ; preds = %71
  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
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %74 unwind label %88

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

78:                                               ; preds = %74
  %79 = call noundef double @_ZN11ScalarField46_evaluateTricubicFieldFunctionForRadiusSquaredEd(ptr noundef nonnull align 8 dereferenceable(248) %0, double noundef %76)
  %80 = fmul double %79, %2
  invoke void @_ZN11ScalarField19addScalarFieldValueEiiid(ptr noundef nonnull align 8 dereferenceable(248) %0, i32 noundef %.039, i32 noundef %.02641, i32 noundef %.02746, double noundef %80)
          to label %81 unwind label %69

81:                                               ; preds = %78
  %82 = load i8, ptr %35, align 8, !tbaa !35, !range !32, !noundef !33
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %84, label %90

84:                                               ; preds = %81
  %85 = fptrunc double %79 to float
  invoke void @_ZN7Array3dIfE3addEiiif(ptr noundef nonnull align 8 dereferenceable(36) %36, i32 noundef %.039, i32 noundef %.02641, i32 noundef %.02746, float noundef %85)
          to label %90 unwind label %69

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

88:                                               ; preds = %73
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  br label %93

90:                                               ; preds = %74, %84, %81, %65
  %91 = add nsw i32 %.039, 1
  %92 = load i32, ptr %5, align 4, !tbaa !26
  %.not34.not = icmp slt i32 %.039, %92
  br i1 %.not34.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !36

93:                                               ; preds = %88, %86, %69
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %89, %88 ], [ %87, %86 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  br label %94

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

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

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,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass