; LLVM IR from phisko/kengine :: kengine/render/polyvox/libs/polyvox/examples/OpenGL (Shapes)

; 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.PolyVox::Vector" = type { [3 x i32] }
%"class.PolyVox::MaterialDensityPair" = type { i16 }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20createSphereInVolumeRN7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEEEfh(ptr noundef nonnull align 8 dereferenceable(40) %0, float noundef %1, i8 noundef zeroext %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca float, align 4
  %6 = alloca i8, align 1
  %7 = alloca %"class.PolyVox::Vector", align 4
  %8 = alloca %"class.PolyVox::Vector", align 4
  %9 = alloca %"class.PolyVox::Vector", align 4
  %10 = alloca %"class.PolyVox::Vector", align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.PolyVox::Vector", align 4
  %19 = alloca double, align 8
  %20 = alloca %"class.PolyVox::Vector", align 4
  %21 = alloca %"class.PolyVox::MaterialDensityPair", align 2
  store ptr %0, ptr %4, align 8, !tbaa !5
  store float %1, ptr %5, align 4, !tbaa !9
  store i8 %2, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #4
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE18getEnclosingRegionEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  call void @_ZNK7PolyVox6Region14getUpperCornerEv(ptr dead_on_unwind writable sret(%"class.PolyVox::Vector") align 4 %9, ptr noundef nonnull align 4 dereferenceable(24) %23)
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #4
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE18getEnclosingRegionEv(ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %26 unwind label %37

26:                                               ; preds = %3
  invoke void @_ZNK7PolyVox6Region14getLowerCornerEv(ptr dead_on_unwind writable sret(%"class.PolyVox::Vector") align 4 %10, ptr noundef nonnull align 4 dereferenceable(24) %25)
          to label %27 unwind label %37

27:                                               ; preds = %26
  invoke void @_ZN7PolyVoxmiILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_S6_(ptr dead_on_unwind writable sret(%"class.PolyVox::Vector") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %28 unwind label %41

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 2, ptr %13, align 4, !tbaa !12
  invoke void @_ZN7PolyVoxdvILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_RKS2_(ptr dead_on_unwind writable sret(%"class.PolyVox::Vector") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %29 unwind label %45

29:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !12
  br label %30

30:                                               ; preds = %144, %29
  %31 = load i32, ptr %14, align 4, !tbaa !12
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(40) %32)
          to label %34 unwind label %51

34:                                               ; preds = %30
  %35 = icmp slt i32 %31, %33
  br i1 %35, label %55, label %36

36:                                               ; preds = %34
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %148

37:                                               ; preds = %26, %3
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %11, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %12, align 4
  br label %50

41:                                               ; preds = %27
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %11, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %12, align 4
  br label %49

45:                                               ; preds = %28
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %11, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #4
  br label %49

49:                                               ; preds = %45, %41
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #4
  br label %50

50:                                               ; preds = %49, %37
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #4
  br label %149

51:                                               ; preds = %30
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %11, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %12, align 4
  br label %147

55:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !12
  br label %56

56:                                               ; preds = %139, %55
  %57 = load i32, ptr %16, align 4, !tbaa !12
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(40) %58)
          to label %60 unwind label %63

60:                                               ; preds = %56
  %61 = icmp slt i32 %57, %59
  br i1 %61, label %67, label %62

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

63:                                               ; preds = %56
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %11, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %12, align 4
  br label %142

67:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !12
  br label %68

68:                                               ; preds = %132, %67
  %69 = load i32, ptr %17, align 4, !tbaa !12
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(40) %70)
          to label %72 unwind label %75

72:                                               ; preds = %68
  %73 = icmp slt i32 %69, %71
  br i1 %73, label %79, label %74

74:                                               ; preds = %72
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %138

75:                                               ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %11, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %12, align 4
  br label %137

79:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #4
  %80 = load i32, ptr %17, align 4, !tbaa !12
  %81 = load i32, ptr %16, align 4, !tbaa !12
  %82 = load i32, ptr %14, align 4, !tbaa !12
  invoke void @_ZN7PolyVox6VectorILj3EiiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %18, i32 noundef %80, i32 noundef %81, i32 noundef %82)
          to label %83 unwind label %114

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #4
  invoke void @_ZN7PolyVoxmiILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_S6_(ptr dead_on_unwind writable sret(%"class.PolyVox::Vector") align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %84 unwind label %118

84:                                               ; preds = %83
  %85 = invoke noundef float @_ZNK7PolyVox6VectorILj3EiiE6lengthEv(ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %86 unwind label %122

86:                                               ; preds = %84
  %87 = fpext float %85 to double
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #4
  store double %87, ptr %19, align 8, !tbaa !14
  %88 = load double, ptr %19, align 8, !tbaa !14
  %89 = load float, ptr %5, align 4, !tbaa !9
  %90 = fpext float %89 to double
  %91 = fcmp ole double %88, %90
  br i1 %91, label %92, label %131

92:                                               ; preds = %86
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = load i32, ptr %17, align 4, !tbaa !12
  %95 = load i32, ptr %16, align 4, !tbaa !12
  %96 = load i32, ptr %14, align 4, !tbaa !12
  %97 = load i8, ptr %6, align 1, !tbaa !11
  %98 = zext i8 %97 to i16
  %99 = load i8, ptr %6, align 1, !tbaa !11
  %100 = zext i8 %99 to i32
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %102, label %105

102:                                              ; preds = %92
  %103 = invoke noundef zeroext i16 @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EE13getMaxDensityEv()
          to label %104 unwind label %127

104:                                              ; preds = %102
  br label %108

105:                                              ; preds = %92
  %106 = invoke noundef zeroext i16 @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EE13getMinDensityEv()
          to label %107 unwind label %127

107:                                              ; preds = %105
  br label %108

108:                                              ; preds = %107, %104
  %109 = phi i16 [ %103, %104 ], [ %106, %107 ]
  invoke void @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EEC2Ett(ptr noundef nonnull align 2 dereferenceable(2) %21, i16 noundef zeroext %98, i16 noundef zeroext %109)
          to label %110 unwind label %127

110:                                              ; preds = %108
  %111 = getelementptr inbounds %"class.PolyVox::MaterialDensityPair", ptr %21, i32 0, i32 0
  %112 = load i16, ptr %111, align 2
  invoke void @_ZN7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8setVoxelEiiiS2_(ptr noundef nonnull align 8 dereferenceable(40) %93, i32 noundef %94, i32 noundef %95, i32 noundef %96, i16 %112)
          to label %113 unwind label %127

113:                                              ; preds = %110
  br label %131

114:                                              ; preds = %79
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %11, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %12, align 4
  br label %136

118:                                              ; preds = %83
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %11, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %12, align 4
  br label %126

122:                                              ; preds = %84
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %11, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %12, align 4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #4
  br label %126

126:                                              ; preds = %122, %118
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #4
  br label %135

127:                                              ; preds = %110, %108, %105, %102
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %11, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %12, align 4
  br label %135

131:                                              ; preds = %113, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #4
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %17, align 4, !tbaa !12
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %17, align 4, !tbaa !12
  br label %68, !llvm.loop !16

135:                                              ; preds = %127, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #4
  br label %136

136:                                              ; preds = %135, %114
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #4
  br label %137

137:                                              ; preds = %136, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %142

138:                                              ; preds = %74
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %16, align 4, !tbaa !12
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %16, align 4, !tbaa !12
  br label %56, !llvm.loop !18

142:                                              ; preds = %137, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %147

143:                                              ; preds = %62
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %14, align 4, !tbaa !12
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %14, align 4, !tbaa !12
  br label %30, !llvm.loop !19

147:                                              ; preds = %142, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #4
  br label %149

148:                                              ; preds = %36
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #4
  ret void

149:                                              ; preds = %147, %50
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #4
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %11, align 8
  %152 = load i32, ptr %12, align 4
  %153 = insertvalue { ptr, i32 } poison, ptr %151, 0
  %154 = insertvalue { ptr, i32 } %153, i32 %152, 1
  resume { ptr, i32 } %154
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7PolyVoxdvILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_RKS2_(ptr dead_on_unwind noalias writable sret(%"class.PolyVox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7PolyVoxmiILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_S6_(ptr dead_on_unwind noalias writable sret(%"class.PolyVox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7PolyVox6Region14getUpperCornerEv(ptr dead_on_unwind noalias writable sret(%"class.PolyVox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(24)) #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7PolyVox6Region14getLowerCornerEv(ptr dead_on_unwind noalias writable sret(%"class.PolyVox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(24)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK7PolyVox6VectorILj3EiiE6lengthEv(ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8setVoxelEiiiS2_(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, i32 noundef, i16) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EE13getMaxDensityEv() #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EE13getMinDensityEv() #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EEC2Ett(ptr noundef nonnull align 2 dereferenceable(2), i16 noundef zeroext, i16 noundef zeroext) unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; 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.PolyVox::Vector" = type { [3 x i32] }
%"class.PolyVox::MaterialDensityPair" = type { i16 }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20createSphereInVolumeRN7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEEEfh(ptr noundef nonnull align 8 dereferenceable(40) %0, float noundef %1, i8 noundef zeroext %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.PolyVox::Vector", align 4
  %5 = alloca %"class.PolyVox::Vector", align 4
  %6 = alloca %"class.PolyVox::Vector", align 4
  %7 = alloca %"class.PolyVox::Vector", align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.PolyVox::Vector", align 4
  %10 = alloca %"class.PolyVox::Vector", align 4
  %11 = alloca %"class.PolyVox::MaterialDensityPair", align 2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #4
  %12 = tail call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE18getEnclosingRegionEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  call void @_ZNK7PolyVox6Region14getUpperCornerEv(ptr dead_on_unwind nonnull writable sret(%"class.PolyVox::Vector") align 4 %6, ptr noundef nonnull align 4 dereferenceable(24) %12)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  %13 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE18getEnclosingRegionEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
  invoke void @_ZNK7PolyVox6Region14getLowerCornerEv(ptr dead_on_unwind nonnull writable sret(%"class.PolyVox::Vector") align 4 %7, ptr noundef nonnull align 4 dereferenceable(24) %13)
          to label %14 unwind label %48

14:                                               ; preds = %3
  invoke void @_ZN7PolyVoxmiILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_S6_(ptr dead_on_unwind nonnull writable sret(%"class.PolyVox::Vector") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %15 unwind label %50

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  store i32 2, ptr %8, align 4, !tbaa !5
  invoke void @_ZN7PolyVoxdvILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_RKS2_(ptr dead_on_unwind nonnull writable sret(%"class.PolyVox::Vector") align 4 %4, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %16 unwind label %52

16:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #4
  %17 = zext i8 %2 to i16
  %.not = icmp eq i8 %2, 0
  br i1 %.not, label %.split65.us, label %.split65

.split65.us:                                      ; preds = %16, %.split60.us.us
  %.025.us = phi i32 [ %38, %.split60.us.us ], [ 0, %16 ]
  %18 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %19 unwind label %.split67.us

19:                                               ; preds = %.split65.us
  %20 = icmp slt i32 %.025.us, %18
  br i1 %20, label %.preheader44.us, label %.split70.us

.preheader44.us:                                  ; preds = %19, %.split46.us.us.us
  %.024.us.us = phi i32 [ %37, %.split46.us.us.us ], [ 0, %19 ]
  %21 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %22 unwind label %.split57.us.split.us

22:                                               ; preds = %.preheader44.us
  %23 = icmp slt i32 %.024.us.us, %21
  br i1 %23, label %.preheader.us.us, label %.split60.us.us

.preheader.us.us:                                 ; preds = %22, %35
  %.023.us.us.us = phi i32 [ %36, %35 ], [ 0, %22 ]
  %24 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %25 unwind label %.split.us.split.us.split.us

25:                                               ; preds = %.preheader.us.us
  %26 = icmp slt i32 %.023.us.us.us, %24
  br i1 %26, label %27, label %.split46.us.us.us

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  call void @_ZN7PolyVox6VectorILj3EiiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef %.023.us.us.us, i32 noundef %.024.us.us, i32 noundef %.025.us)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #4
  invoke void @_ZN7PolyVoxmiILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_S6_(ptr dead_on_unwind nonnull writable sret(%"class.PolyVox::Vector") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %28 unwind label %.split48.us.split.us.split.us

28:                                               ; preds = %27
  %29 = invoke noundef float @_ZNK7PolyVox6VectorILj3EiiE6lengthEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %30 unwind label %.split51.us.split.us.split.us

30:                                               ; preds = %28
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #4
  %31 = fcmp ugt float %29, %1
  br i1 %31, label %35, label %32

32:                                               ; preds = %30
  %33 = call noundef zeroext i16 @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EE13getMinDensityEv()
  call void @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EEC2Ett(ptr noundef nonnull align 2 dereferenceable(2) %11, i16 noundef zeroext %17, i16 noundef zeroext %33)
  %34 = load i16, ptr %11, align 2
  invoke void @_ZN7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8setVoxelEiiiS2_(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.023.us.us.us, i32 noundef %.024.us.us, i32 noundef %.025.us, i16 %34)
          to label %35 unwind label %.split54.us.split.us.split.us

35:                                               ; preds = %32, %30
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  %36 = add nuw nsw i32 %.023.us.us.us, 1
  br label %.preheader.us.us, !llvm.loop !9

.split46.us.us.us:                                ; preds = %25
  %37 = add nuw nsw i32 %.024.us.us, 1
  br label %.preheader44.us, !llvm.loop !11

.split60.us.us:                                   ; preds = %22
  %38 = add nuw nsw i32 %.025.us, 1
  br label %.split65.us, !llvm.loop !12

.split67.us:                                      ; preds = %.split65.us
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %83

.split57.us.split.us:                             ; preds = %.preheader44.us
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %83

.split.us.split.us.split.us:                      ; preds = %.preheader.us.us
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %83

.split48.us.split.us.split.us:                    ; preds = %27
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %78

.split51.us.split.us.split.us:                    ; preds = %28
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %77

.split54.us.split.us.split.us:                    ; preds = %32
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %82

.split65:                                         ; preds = %16, %.split60
  %.025 = phi i32 [ %60, %.split60 ], [ 0, %16 ]
  %45 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %46 unwind label %.split67

46:                                               ; preds = %.split65
  %47 = icmp slt i32 %.025, %45
  br i1 %47, label %.preheader44, label %.split70.us

.split70.us:                                      ; preds = %46, %19
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  ret void

48:                                               ; preds = %3
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %55

50:                                               ; preds = %14
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %15
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #4
  br label %54

54:                                               ; preds = %52, %50
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #4
  br label %55

55:                                               ; preds = %54, %48
  %.pn.pn = phi { ptr, i32 } [ %.pn, %54 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #4
  br label %84

.split67:                                         ; preds = %.split65
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %83

.preheader44:                                     ; preds = %46, %.split46
  %.024 = phi i32 [ %65, %.split46 ], [ 0, %46 ]
  %57 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %58 unwind label %.split57

58:                                               ; preds = %.preheader44
  %59 = icmp slt i32 %.024, %57
  br i1 %59, label %.preheader, label %.split60

.split60:                                         ; preds = %58
  %60 = add nuw nsw i32 %.025, 1
  br label %.split65, !llvm.loop !12

.split57:                                         ; preds = %.preheader44
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %83

.preheader:                                       ; preds = %58, %80
  %.023 = phi i32 [ %81, %80 ], [ 0, %58 ]
  %62 = invoke noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %63 unwind label %.split

63:                                               ; preds = %.preheader
  %64 = icmp slt i32 %.023, %62
  br i1 %64, label %67, label %.split46

.split46:                                         ; preds = %63
  %65 = add nuw nsw i32 %.024, 1
  br label %.preheader44, !llvm.loop !11

.split:                                           ; preds = %.preheader
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %83

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  call void @_ZN7PolyVox6VectorILj3EiiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef %.023, i32 noundef %.024, i32 noundef %.025)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #4
  invoke void @_ZN7PolyVoxmiILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_S6_(ptr dead_on_unwind nonnull writable sret(%"class.PolyVox::Vector") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %68 unwind label %.split48

68:                                               ; preds = %67
  %69 = invoke noundef float @_ZNK7PolyVox6VectorILj3EiiE6lengthEv(ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %70 unwind label %.split51

70:                                               ; preds = %68
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #4
  %71 = fcmp ugt float %69, %1
  br i1 %71, label %80, label %72

72:                                               ; preds = %70
  %73 = call noundef zeroext i16 @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EE13getMaxDensityEv()
  call void @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EEC2Ett(ptr noundef nonnull align 2 dereferenceable(2) %11, i16 noundef zeroext %17, i16 noundef zeroext %73)
  %74 = load i16, ptr %11, align 2
  invoke void @_ZN7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8setVoxelEiiiS2_(ptr noundef nonnull align 8 dereferenceable(40) %0, i32 noundef %.023, i32 noundef %.024, i32 noundef %.025, i16 %74)
          to label %80 unwind label %.split54

.split48:                                         ; preds = %67
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %78

.split51:                                         ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %77

77:                                               ; preds = %.split51.us.split.us.split.us, %.split51
  %.us-phi52 = phi { ptr, i32 } [ %76, %.split51 ], [ %43, %.split51.us.split.us.split.us ]
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #4
  br label %78

78:                                               ; preds = %.split48, %.split48.us.split.us.split.us, %77
  %.pn36 = phi { ptr, i32 } [ %.us-phi52, %77 ], [ %75, %.split48 ], [ %42, %.split48.us.split.us.split.us ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #4
  br label %82

.split54:                                         ; preds = %72
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %82

80:                                               ; preds = %72, %70
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  %81 = add nuw nsw i32 %.023, 1
  br label %.preheader, !llvm.loop !9

82:                                               ; preds = %.split54, %.split54.us.split.us.split.us, %78
  %.pn38 = phi { ptr, i32 } [ %.pn36, %78 ], [ %79, %.split54 ], [ %44, %.split54.us.split.us.split.us ]
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  br label %83

83:                                               ; preds = %.split, %.split.us.split.us.split.us, %.split57, %.split57.us.split.us, %.split67, %.split67.us, %82
  %.pn38.pn.pn.pn = phi { ptr, i32 } [ %.pn38, %82 ], [ %56, %.split67 ], [ %39, %.split67.us ], [ %61, %.split57 ], [ %40, %.split57.us.split.us ], [ %66, %.split ], [ %41, %.split.us.split.us.split.us ]
  call void @_ZN7PolyVox6VectorILj3EiiED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #4
  br label %84

84:                                               ; preds = %83, %55
  %.pn38.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn38.pn.pn.pn, %83 ], [ %.pn.pn, %55 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn38.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7PolyVoxdvILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_RKS2_(ptr dead_on_unwind noalias writable sret(%"class.PolyVox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7PolyVoxmiILj3EiiEENS_6VectorIXT_ET0_T1_EERKS4_S6_(ptr dead_on_unwind noalias writable sret(%"class.PolyVox::Vector") align 4, 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 noundef nonnull align 4 dereferenceable(24) ptr @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE18getEnclosingRegionEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7PolyVox6Region14getUpperCornerEv(ptr dead_on_unwind noalias writable sret(%"class.PolyVox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK7PolyVox6Region14getLowerCornerEv(ptr dead_on_unwind noalias writable sret(%"class.PolyVox::Vector") align 4, ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getDepthEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE9getHeightEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8getWidthEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK7PolyVox6VectorILj3EiiE6lengthEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7PolyVox9RawVolumeINS_19MaterialDensityPairItLh8ELh8EEEE8setVoxelEiiiS2_(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef, i32 noundef, i16) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EE13getMaxDensityEv() local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EE13getMinDensityEv() local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7PolyVox19MaterialDensityPairItLh8ELh8EEC2Ett(ptr noundef nonnull align 2 dereferenceable(2), i16 noundef zeroext, i16 noundef zeroext) unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass