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

; 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.AABB = type { %"class.vmath::vec3", double, double, double }
%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 @_ZN6Grid3d19GridIndexToPositionEiiid(ptr dead_on_unwind noalias writable sret(%"class.vmath::vec3") align 4, i32 noundef, i32 noundef, i32 noundef, double noundef) #6

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

32:                                               ; preds = %5
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %13, i64 40, i1 false), !tbaa.struct !14
  %33 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 3
  %34 = load double, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !22
  %37 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !23
  %39 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !24
  invoke void @_ZN6Grid3d18getGridIndexBoundsE4AABBdiiiP9GridIndexS2_(ptr noundef %17, double noundef %34, i32 noundef %36, i32 noundef %38, i32 noundef %40, ptr noundef %11, ptr noundef %12)
          to label %41 unwind label %55

41:                                               ; preds = %32
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store double 1.000000e-05, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %42 unwind label %59

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %43 = getelementptr inbounds %struct.GridIndex, ptr %11, i32 0, i32 2
  %44 = load i32, ptr %43, align 4, !tbaa !25
  store i32 %44, ptr %20, align 4, !tbaa !27
  br label %45

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

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

51:                                               ; preds = %5
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %15, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %16, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  br label %158

55:                                               ; preds = %32
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %15, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %16, align 4
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #7
  br label %157

59:                                               ; preds = %41
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %15, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %16, align 4
  br label %156

63:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %64 = getelementptr inbounds %struct.GridIndex, ptr %11, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !28
  store i32 %65, ptr %22, align 4, !tbaa !27
  br label %66

66:                                               ; preds = %148, %63
  %67 = load i32, ptr %22, align 4, !tbaa !27
  %68 = getelementptr inbounds %struct.GridIndex, ptr %12, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !28
  %70 = icmp sle i32 %67, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %66
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %151

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %73 = getelementptr inbounds %struct.GridIndex, ptr %11, i32 0, i32 0
  %74 = load i32, ptr %73, align 4, !tbaa !29
  store i32 %74, ptr %23, align 4, !tbaa !27
  br label %75

75:                                               ; preds = %143, %72
  %76 = load i32, ptr %23, align 4, !tbaa !27
  %77 = getelementptr inbounds %struct.GridIndex, ptr %12, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !29
  %79 = icmp sle i32 %76, %78
  br i1 %79, label %81, label %80

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

81:                                               ; preds = %75
  %82 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 11
  %83 = load i8, ptr %82, align 8, !tbaa !30, !range !31, !noundef !32
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %101

85:                                               ; preds = %81
  %86 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 13
  %87 = load i32, ptr %23, align 4, !tbaa !27
  %88 = load i32, ptr %22, align 4, !tbaa !27
  %89 = load i32, ptr %20, align 4, !tbaa !27
  %90 = invoke noundef float @_ZN7Array3dIfEclEiii(ptr noundef nonnull align 8 dereferenceable(36) %86, i32 noundef %87, i32 noundef %88, i32 noundef %89)
          to label %91 unwind label %97

91:                                               ; preds = %85
  %92 = fpext float %90 to double
  %93 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 10
  %94 = load double, ptr %93, align 8, !tbaa !33
  %95 = fcmp ogt double %92, %94
  br i1 %95, label %96, label %101

96:                                               ; preds = %91
  br label %143

97:                                               ; preds = %122, %110, %85
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %15, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %16, align 4
  br label %146

101:                                              ; preds = %91, %81
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  %102 = load i32, ptr %23, align 4, !tbaa !27
  %103 = load i32, ptr %22, align 4, !tbaa !27
  %104 = load i32, ptr %20, align 4, !tbaa !27
  %105 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 3
  %106 = load double, ptr %105, align 8, !tbaa !15
  invoke void @_ZN6Grid3d19GridIndexToPositionEiiid(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %24, i32 noundef %102, i32 noundef %103, i32 noundef %104, double noundef %106)
          to label %107 unwind label %133

107:                                              ; preds = %101
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !11
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %24) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %19, i64 12, i1 false), !tbaa.struct !11
  %108 = invoke noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef %25)
          to label %109 unwind label %137

109:                                              ; preds = %107
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #7
  br i1 %108, label %110, label %142

110:                                              ; preds = %109
  %111 = load i32, ptr %23, align 4, !tbaa !27
  %112 = load i32, ptr %22, align 4, !tbaa !27
  %113 = load i32, ptr %20, align 4, !tbaa !27
  %114 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 9
  %115 = load double, ptr %114, align 8, !tbaa !34
  %116 = load double, ptr %18, align 8, !tbaa !9
  %117 = fadd double %115, %116
  invoke void @_ZN11ScalarField19addScalarFieldValueEiiid(ptr noundef nonnull align 8 dereferenceable(248) %26, i32 noundef %111, i32 noundef %112, i32 noundef %113, double noundef %117)
          to label %118 unwind label %97

118:                                              ; preds = %110
  %119 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 17
  %120 = load i8, ptr %119, align 8, !tbaa !35, !range !31, !noundef !32
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %141

122:                                              ; preds = %118
  %123 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 15
  %124 = load i32, ptr %23, align 4, !tbaa !27
  %125 = load i32, ptr %22, align 4, !tbaa !27
  %126 = load i32, ptr %20, align 4, !tbaa !27
  %127 = getelementptr inbounds %class.ScalarField, ptr %26, i32 0, i32 9
  %128 = load double, ptr %127, align 8, !tbaa !34
  %129 = load double, ptr %18, align 8, !tbaa !9
  %130 = fadd double %128, %129
  %131 = fptrunc double %130 to float
  invoke void @_ZN7Array3dIfE3addEiiif(ptr noundef nonnull align 8 dereferenceable(36) %123, i32 noundef %124, i32 noundef %125, i32 noundef %126, float noundef %131)
          to label %132 unwind label %97

132:                                              ; preds = %122
  br label %141

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

137:                                              ; preds = %107
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %15, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %16, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #7
  br label %146

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

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

143:                                              ; preds = %142, %96
  %144 = load i32, ptr %23, align 4, !tbaa !27
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %23, align 4, !tbaa !27
  br label %75, !llvm.loop !36

146:                                              ; preds = %137, %133, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #7
  br label %156

147:                                              ; preds = %80
  br label %148

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

151:                                              ; preds = %71
  br label %152

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

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

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

157:                                              ; preds = %156, %55
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #7
  br label %158

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

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

declare void @_ZN4AABBC1EN5vmath4vec3Eddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, double noundef, double noundef, double noundef) unnamed_addr #0

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

; Function Attrs: nounwind
declare void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1

declare noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #0

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 = { 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 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 16, i64 8, !9, i64 24, i64 8, !9, i64 32, i64 8, !9}
!15 = !{!16, !10, i64 16}
!16 = !{!"_ZTS11ScalarField", !17, i64 0, !17, i64 4, !17, 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, !18, i64 80, !19, i64 88, !20, i64 128, !19, i64 160, !20, i64 200, !18, i64 232, !21, i64 236}
!17 = !{!"int", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTS7Array3dIfE", !17, i64 0, !17, i64 4, !17, i64 8, !6, i64 16, !18, i64 24, !13, i64 28, !17, i64 32}
!20 = !{!"_ZTS7Array3dIbE", !17, i64 0, !17, i64 4, !17, i64 8, !6, i64 16, !18, i64 24, !18, i64 25, !17, i64 28}
!21 = !{!"_ZTSN5vmath4vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!22 = !{!16, !17, i64 0}
!23 = !{!16, !17, i64 4}
!24 = !{!16, !17, i64 8}
!25 = !{!26, !17, i64 8}
!26 = !{!"_ZTS9GridIndex", !17, i64 0, !17, i64 4, !17, i64 8}
!27 = !{!17, !17, i64 0}
!28 = !{!26, !17, i64 4}
!29 = !{!26, !17, i64 0}
!30 = !{!16, !18, i64 80}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!16, !10, i64 72}
!34 = !{!16, !10, i64 64}
!35 = !{!16, !18, i64 232}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}
!39 = distinct !{!39, !37}


; 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 }
%class.AABB = type { %"class.vmath::vec3", double, double, double }

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 @_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

; 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 @_ZN11ScalarField9addCuboidEN5vmath4vec3Eddd(ptr noundef nonnull align 8 dereferenceable(248) %0, ptr noundef nonnull %1, double noundef %2, double noundef %3, double noundef %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %struct.GridIndex, align 4
  %7 = alloca %struct.GridIndex, align 4
  %8 = alloca %class.AABB, align 8
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = alloca %class.AABB, align 8
  %11 = alloca %"class.vmath::vec3", align 4
  %12 = alloca %"class.vmath::vec3", align 4
  %13 = alloca %"class.vmath::vec3", align 4
  %14 = getelementptr inbounds i8, ptr %0, i64 236
  %15 = 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) %14)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @_ZN9GridIndexC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %1, i64 12, i1 false), !tbaa.struct !5
  invoke void @_ZN4AABBC1EN5vmath4vec3Eddd(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %9, double noundef %2, double noundef %3, double noundef %4)
          to label %16 unwind label %41

16:                                               ; preds = %5
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %8, i64 40, i1 false), !tbaa.struct !10
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = load double, ptr %17, align 8, !tbaa !13
  %19 = load i32, ptr %0, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !23
  invoke void @_ZN6Grid3d18getGridIndexBoundsE4AABBdiiiP9GridIndexS2_(ptr noundef nonnull %10, double noundef %18, i32 noundef %19, i32 noundef %21, i32 noundef %23, ptr noundef nonnull %6, ptr noundef nonnull %7)
          to label %24 unwind label %43

24:                                               ; preds = %16
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %25 unwind label %45

25:                                               ; preds = %24
  %26 = getelementptr inbounds i8, ptr %6, i64 8
  %27 = load i32, ptr %26, align 4, !tbaa !24
  %28 = getelementptr inbounds i8, ptr %7, i64 8
  %29 = load i32, ptr %28, align 4, !tbaa !24
  %.not45 = icmp sgt i32 %27, %29
  br i1 %.not45, label %._crit_edge50, label %.lr.ph49

.lr.ph49:                                         ; preds = %25
  %30 = getelementptr inbounds i8, ptr %6, i64 4
  %31 = getelementptr inbounds i8, ptr %7, 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 64
  %36 = getelementptr inbounds i8, ptr %0, i64 232
  %37 = getelementptr inbounds i8, ptr %0, i64 160
  %38 = load i32, ptr %30, align 4, !tbaa !26
  %39 = load i32, ptr %31, align 4, !tbaa !26
  %40 = icmp sgt i32 %38, %39
  br i1 %40, label %._crit_edge50, label %.lr.ph49.split

._crit_edge50:                                    ; preds = %._crit_edge44, %.lr.ph49, %25
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  ret void

41:                                               ; preds = %5
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #7
  br label %99

43:                                               ; preds = %16
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #7
  br label %98

45:                                               ; preds = %24
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %97

.lr.ph49.split:                                   ; preds = %.lr.ph49, %._crit_edge44
  %47 = phi i32 [ %54, %._crit_edge44 ], [ %29, %.lr.ph49 ]
  %48 = phi i32 [ %55, %._crit_edge44 ], [ %39, %.lr.ph49 ]
  %49 = phi i32 [ %56, %._crit_edge44 ], [ %39, %.lr.ph49 ]
  %.02646 = phi i32 [ %57, %._crit_edge44 ], [ %27, %.lr.ph49 ]
  %50 = load i32, ptr %30, align 4, !tbaa !26
  %.not3240 = icmp sgt i32 %50, %49
  br i1 %.not3240, label %._crit_edge44, label %.lr.ph43

.lr.ph43:                                         ; preds = %.lr.ph49.split
  %51 = load i32, ptr %6, align 4, !tbaa !27
  %52 = load i32, ptr %7, align 4, !tbaa !27
  %53 = icmp sgt i32 %51, %52
  br i1 %53, label %._crit_edge44, label %.lr.ph43.split

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

._crit_edge44:                                    ; preds = %.lr.ph43, %._crit_edge44.loopexit51, %.lr.ph49.split
  %54 = phi i32 [ %.pre53, %._crit_edge44.loopexit51 ], [ %47, %.lr.ph49.split ], [ %47, %.lr.ph43 ]
  %55 = phi i32 [ %61, %._crit_edge44.loopexit51 ], [ %48, %.lr.ph49.split ], [ %48, %.lr.ph43 ]
  %56 = phi i32 [ %61, %._crit_edge44.loopexit51 ], [ %49, %.lr.ph49.split ], [ %49, %.lr.ph43 ]
  %57 = add nsw i32 %.02646, 1
  %.not.not = icmp slt i32 %.02646, %54
  br i1 %.not.not, label %.lr.ph49.split, label %._crit_edge50, !llvm.loop !28

.lr.ph43.split:                                   ; preds = %.lr.ph43, %._crit_edge
  %58 = phi i32 [ %61, %._crit_edge ], [ %48, %.lr.ph43 ]
  %59 = phi i32 [ %62, %._crit_edge ], [ %52, %.lr.ph43 ]
  %.02541 = phi i32 [ %63, %._crit_edge ], [ %50, %.lr.ph43 ]
  %60 = load i32, ptr %6, align 4, !tbaa !27
  %.not3338 = icmp sgt i32 %60, %59
  br i1 %.not3338, label %._crit_edge, label %.lr.ph

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

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph43.split
  %61 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %58, %.lr.ph43.split ]
  %62 = phi i32 [ %95, %._crit_edge.loopexit ], [ %59, %.lr.ph43.split ]
  %63 = add nsw i32 %.02541, 1
  %.not32.not = icmp slt i32 %.02541, %61
  br i1 %.not32.not, label %.lr.ph43.split, label %._crit_edge44.loopexit51, !llvm.loop !31

.lr.ph:                                           ; preds = %.lr.ph43.split, %93
  %.039 = phi i32 [ %94, %93 ], [ %60, %.lr.ph43.split ]
  %64 = load i8, ptr %32, align 8, !tbaa !32, !range !33, !noundef !34
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %66, label %74

66:                                               ; preds = %.lr.ph
  %67 = invoke noundef float @_ZN7Array3dIfEclEiii(ptr noundef nonnull align 8 dereferenceable(36) %33, i32 noundef %.039, i32 noundef %.02541, i32 noundef %.02646)
          to label %68 unwind label %72

68:                                               ; preds = %66
  %69 = fpext float %67 to double
  %70 = load double, ptr %34, align 8, !tbaa !35
  %71 = fcmp olt double %70, %69
  br i1 %71, label %93, label %74

72:                                               ; preds = %85, %79, %66
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %96

74:                                               ; preds = %68, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  %75 = load double, ptr %17, align 8, !tbaa !13
  invoke void @_ZN6Grid3d19GridIndexToPositionEiiid(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %12, i32 noundef %.039, i32 noundef %.02541, i32 noundef %.02646, double noundef %75)
          to label %76 unwind label %89

76:                                               ; preds = %74
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %12, i64 12, i1 false), !tbaa.struct !5
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %11, i64 12, i1 false), !tbaa.struct !5
  %77 = invoke noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %13)
          to label %78 unwind label %91

78:                                               ; preds = %76
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  br i1 %77, label %79, label %93

79:                                               ; preds = %78
  %80 = load double, ptr %35, align 8, !tbaa !36
  %81 = fadd double %80, 1.000000e-05
  invoke void @_ZN11ScalarField19addScalarFieldValueEiiid(ptr noundef nonnull align 8 dereferenceable(248) %0, i32 noundef %.039, i32 noundef %.02541, i32 noundef %.02646, double noundef %81)
          to label %82 unwind label %72

82:                                               ; preds = %79
  %83 = load i8, ptr %36, align 8, !tbaa !37, !range !33, !noundef !34
  %84 = trunc nuw i8 %83 to i1
  br i1 %84, label %85, label %93

85:                                               ; preds = %82
  %86 = load double, ptr %35, align 8, !tbaa !36
  %87 = fadd double %86, 1.000000e-05
  %88 = fptrunc double %87 to float
  invoke void @_ZN7Array3dIfE3addEiiif(ptr noundef nonnull align 8 dereferenceable(36) %37, i32 noundef %.039, i32 noundef %.02541, i32 noundef %.02646, float noundef %88)
          to label %93 unwind label %72

89:                                               ; preds = %74
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  br label %96

91:                                               ; preds = %76
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  br label %96

93:                                               ; preds = %78, %85, %82, %68
  %94 = add nsw i32 %.039, 1
  %95 = load i32, ptr %7, align 4, !tbaa !27
  %.not33.not = icmp slt i32 %.039, %95
  br i1 %.not33.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !38

96:                                               ; preds = %91, %89, %72
  %.pn = phi { ptr, i32 } [ %73, %72 ], [ %92, %91 ], [ %90, %89 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  br label %97

97:                                               ; preds = %96, %45
  %.pn.pn = phi { ptr, i32 } [ %.pn, %96 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  br label %98

98:                                               ; preds = %97, %43
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %97 ], [ %44, %43 ]
  call void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %99

99:                                               ; preds = %98, %41
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %98 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn.pn.pn.pn
}

declare void @_ZN4AABBC1EN5vmath4vec3Eddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, double noundef, double noundef, double noundef) unnamed_addr #0

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

; Function Attrs: nounwind
declare void @_ZN4AABBD1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1

declare noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #0

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


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