; LLVM IR from b00dle/libpcc :: src (Measure)

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

%"struct.Measure::ComparisonResult" = type { float, float, float, float, float, float }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.UncompressedVoxel = type { [3 x float], [4 x i8] }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }

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

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

; 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Measure7compareERKSt6vectorI17UncompressedVoxelSaIS1_EES5_RK11BoundingBox(ptr dead_on_unwind noalias writable sret(%"struct.Measure::ComparisonResult") align 4 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(48) %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %struct.UncompressedVoxel, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca ptr, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %31 = alloca ptr, align 8
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca ptr, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %37 = alloca ptr, align 8
  %38 = alloca float, align 4
  %39 = alloca float, align 4
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  store ptr %3, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %42 unwind label %52

42:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %44, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %45 unwind label %56

45:                                               ; preds = %42
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %197, %45
  %47 = load i64, ptr %14, align 8, !tbaa !9
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = icmp ult i64 %47, %49
  br i1 %50, label %60, label %51

51:                                               ; preds = %46
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %201

52:                                               ; preds = %4
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %10, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %290

56:                                               ; preds = %42
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %10, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %289

60:                                               ; preds = %46
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = load i64, ptr %14, align 8, !tbaa !9
  %64 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %63) #6
  %65 = getelementptr inbounds %struct.UncompressedVoxel, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds [3 x float], ptr %65, i64 0, i64 0
  %67 = invoke noundef zeroext i1 @_ZNK11BoundingBox8containsEPKf(ptr noundef nonnull align 8 dereferenceable(48) %61, ptr noundef %66)
          to label %68 unwind label %70

68:                                               ; preds = %60
  br i1 %67, label %74, label %69

69:                                               ; preds = %68
  br label %197

70:                                               ; preds = %60
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %10, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %11, align 4
  br label %200

74:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store float 1.000000e+05, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store float 0.000000e+00, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %75, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = call ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #6
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  %80 = call ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #6
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  br label %82

82:                                               ; preds = %187, %74
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %83, label %85, label %84

84:                                               ; preds = %82
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %190

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %86 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %86, i64 16, i1 false), !tbaa.struct !13
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.UncompressedVoxel, ptr %21, i32 0, i32 0
  %89 = getelementptr inbounds [3 x float], ptr %88, i64 0, i64 0
  %90 = invoke noundef zeroext i1 @_ZNK11BoundingBox8containsEPKf(ptr noundef nonnull align 8 dereferenceable(48) %87, ptr noundef %89)
          to label %91 unwind label %93

91:                                               ; preds = %85
  br i1 %90, label %97, label %92

92:                                               ; preds = %91
  store i32 6, ptr %15, align 4
  br label %184

93:                                               ; preds = %85
  %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 %189

97:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load i64, ptr %14, align 8, !tbaa !9
  %100 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %99) #6
  %101 = getelementptr inbounds %struct.UncompressedVoxel, ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds [3 x float], ptr %101, i64 0, i64 0
  %103 = load float, ptr %102, align 4, !tbaa !11
  %104 = getelementptr inbounds %struct.UncompressedVoxel, ptr %21, i32 0, i32 0
  %105 = getelementptr inbounds [3 x float], ptr %104, i64 0, i64 0
  %106 = load float, ptr %105, align 4, !tbaa !11
  %107 = fsub float %103, %106
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load i64, ptr %14, align 8, !tbaa !9
  %110 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %109) #6
  %111 = getelementptr inbounds %struct.UncompressedVoxel, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds [3 x float], ptr %111, i64 0, i64 0
  %113 = load float, ptr %112, align 4, !tbaa !11
  %114 = getelementptr inbounds %struct.UncompressedVoxel, ptr %21, i32 0, i32 0
  %115 = getelementptr inbounds [3 x float], ptr %114, i64 0, i64 0
  %116 = load float, ptr %115, align 4, !tbaa !11
  %117 = fsub float %113, %116
  %118 = fmul float %107, %117
  store float %118, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = load i64, ptr %14, align 8, !tbaa !9
  %121 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %120) #6
  %122 = getelementptr inbounds %struct.UncompressedVoxel, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds [3 x float], ptr %122, i64 0, i64 1
  %124 = load float, ptr %123, align 4, !tbaa !11
  %125 = getelementptr inbounds %struct.UncompressedVoxel, ptr %21, i32 0, i32 0
  %126 = getelementptr inbounds [3 x float], ptr %125, i64 0, i64 1
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = fsub float %124, %127
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = load i64, ptr %14, align 8, !tbaa !9
  %131 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %130) #6
  %132 = getelementptr inbounds %struct.UncompressedVoxel, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds [3 x float], ptr %132, i64 0, i64 1
  %134 = load float, ptr %133, align 4, !tbaa !11
  %135 = getelementptr inbounds %struct.UncompressedVoxel, ptr %21, i32 0, i32 0
  %136 = getelementptr inbounds [3 x float], ptr %135, i64 0, i64 1
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fsub float %134, %137
  %139 = fmul float %128, %138
  store float %139, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = load i64, ptr %14, align 8, !tbaa !9
  %142 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %141) #6
  %143 = getelementptr inbounds %struct.UncompressedVoxel, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds [3 x float], ptr %143, i64 0, i64 2
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = getelementptr inbounds %struct.UncompressedVoxel, ptr %21, i32 0, i32 0
  %147 = getelementptr inbounds [3 x float], ptr %146, i64 0, i64 2
  %148 = load float, ptr %147, align 4, !tbaa !11
  %149 = fsub float %145, %148
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load i64, ptr %14, align 8, !tbaa !9
  %152 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %151) #6
  %153 = getelementptr inbounds %struct.UncompressedVoxel, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds [3 x float], ptr %153, i64 0, i64 2
  %155 = load float, ptr %154, align 4, !tbaa !11
  %156 = getelementptr inbounds %struct.UncompressedVoxel, ptr %21, i32 0, i32 0
  %157 = getelementptr inbounds [3 x float], ptr %156, i64 0, i64 2
  %158 = load float, ptr %157, align 4, !tbaa !11
  %159 = fsub float %155, %158
  %160 = fmul float %149, %159
  store float %160, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %161 = load float, ptr %22, align 4, !tbaa !11
  %162 = load float, ptr %23, align 4, !tbaa !11
  %163 = fadd float %161, %162
  %164 = load float, ptr %24, align 4, !tbaa !11
  %165 = fadd float %163, %164
  %166 = fpext float %165 to double
  %167 = call double @sqrt(double noundef %166) #6
  %168 = fptrunc double %167 to float
  store float %168, ptr %25, align 4, !tbaa !11
  %169 = load float, ptr %25, align 4, !tbaa !11
  %170 = load float, ptr %16, align 4, !tbaa !11
  %171 = fcmp olt float %169, %170
  br i1 %171, label %172, label %183

172:                                              ; preds = %97
  %173 = load float, ptr %25, align 4, !tbaa !11
  store float %173, ptr %16, align 4, !tbaa !11
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = load i64, ptr %14, align 8, !tbaa !9
  %176 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %175) #6
  %177 = invoke noundef float @_ZN7Measure16colorErrorCielabERK17UncompressedVoxelS2_(ptr noundef nonnull align 4 dereferenceable(16) %176, ptr noundef nonnull align 4 dereferenceable(16) %21)
          to label %178 unwind label %179

178:                                              ; preds = %172
  store float %177, ptr %17, align 4, !tbaa !11
  br label %183

179:                                              ; preds = %172
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %10, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %189

183:                                              ; preds = %178, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  store i32 0, ptr %15, align 4
  br label %184

184:                                              ; preds = %183, %92
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  %185 = load i32, ptr %15, align 4
  switch i32 %185, label %296 [
    i32 0, label %186
    i32 6, label %187
  ]

186:                                              ; preds = %184
  br label %187

187:                                              ; preds = %186, %184
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  br label %82

189:                                              ; preds = %179, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %200

190:                                              ; preds = %84
  %191 = load float, ptr %16, align 4, !tbaa !11
  %192 = load i64, ptr %14, align 8, !tbaa !9
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %192) #6
  store float %191, ptr %193, align 4, !tbaa !11
  %194 = load float, ptr %17, align 4, !tbaa !11
  %195 = load i64, ptr %14, align 8, !tbaa !9
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %195) #6
  store float %194, ptr %196, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %197

197:                                              ; preds = %190, %69
  %198 = load i64, ptr %14, align 8, !tbaa !9
  %199 = add i64 %198, 1
  store i64 %199, ptr %14, align 8, !tbaa !9
  br label %46, !llvm.loop !15

200:                                              ; preds = %189, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %288

201:                                              ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store float 0.000000e+00, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store float 0.000000e+00, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store ptr %8, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %202 = load ptr, ptr %28, align 8, !tbaa !5
  %203 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %202) #6
  %204 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %29, i32 0, i32 0
  store ptr %203, ptr %204, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %205 = load ptr, ptr %28, align 8, !tbaa !5
  %206 = call ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %205) #6
  %207 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %30, i32 0, i32 0
  store ptr %206, ptr %207, align 8
  br label %208

208:                                              ; preds = %225, %201
  %209 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %209, label %211, label %210

210:                                              ; preds = %208
  store i32 7, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %227

211:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  store ptr %212, ptr %31, align 8, !tbaa !5
  %213 = load ptr, ptr %31, align 8, !tbaa !5
  %214 = load float, ptr %213, align 4, !tbaa !11
  %215 = load float, ptr %27, align 4, !tbaa !11
  %216 = fadd float %215, %214
  store float %216, ptr %27, align 4, !tbaa !11
  %217 = load float, ptr %26, align 4, !tbaa !11
  %218 = load ptr, ptr %31, align 8, !tbaa !5
  %219 = load float, ptr %218, align 4, !tbaa !11
  %220 = fcmp olt float %217, %219
  br i1 %220, label %221, label %224

221:                                              ; preds = %211
  %222 = load ptr, ptr %31, align 8, !tbaa !5
  %223 = load float, ptr %222, align 4, !tbaa !11
  store float %223, ptr %26, align 4, !tbaa !11
  br label %224

224:                                              ; preds = %221, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %225

225:                                              ; preds = %224
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %208

227:                                              ; preds = %210
  %228 = load float, ptr %27, align 4, !tbaa !11
  %229 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %230 = uitofp i64 %229 to float
  %231 = fdiv float %228, %230
  store float %231, ptr %27, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store float 0.000000e+00, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store float 0.000000e+00, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store ptr %12, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %232 = load ptr, ptr %34, align 8, !tbaa !5
  %233 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %232) #6
  %234 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %35, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %235 = load ptr, ptr %34, align 8, !tbaa !5
  %236 = call ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %235) #6
  %237 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.7", ptr %36, i32 0, i32 0
  store ptr %236, ptr %237, align 8
  br label %238

238:                                              ; preds = %255, %227
  %239 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br i1 %239, label %241, label %240

240:                                              ; preds = %238
  store i32 9, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %257

241:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  store ptr %242, ptr %37, align 8, !tbaa !5
  %243 = load ptr, ptr %37, align 8, !tbaa !5
  %244 = load float, ptr %243, align 4, !tbaa !11
  %245 = load float, ptr %33, align 4, !tbaa !11
  %246 = fadd float %245, %244
  store float %246, ptr %33, align 4, !tbaa !11
  %247 = load float, ptr %32, align 4, !tbaa !11
  %248 = load ptr, ptr %37, align 8, !tbaa !5
  %249 = load float, ptr %248, align 4, !tbaa !11
  %250 = fcmp olt float %247, %249
  br i1 %250, label %251, label %254

251:                                              ; preds = %241
  %252 = load ptr, ptr %37, align 8, !tbaa !5
  %253 = load float, ptr %252, align 4, !tbaa !11
  store float %253, ptr %32, align 4, !tbaa !11
  br label %254

254:                                              ; preds = %251, %241
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %255

255:                                              ; preds = %254
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  br label %238

257:                                              ; preds = %240
  %258 = load float, ptr %33, align 4, !tbaa !11
  %259 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %260 = uitofp i64 %259 to float
  %261 = fdiv float %258, %260
  store float %261, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %262 = invoke noundef float @_ZN7Measure12calcVarianceERKSt6vectorIfSaIfEE(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %263 unwind label %279

263:                                              ; preds = %257
  store float %262, ptr %38, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  %264 = invoke noundef float @_ZN7Measure12calcVarianceERKSt6vectorIfSaIfEE(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %265 unwind label %283

265:                                              ; preds = %263
  store float %264, ptr %39, align 4, !tbaa !11
  invoke void @_ZN7Measure16ComparisonResultC2Ev(ptr noundef nonnull align 4 dereferenceable(24) %0)
          to label %266 unwind label %283

266:                                              ; preds = %265
  %267 = load float, ptr %27, align 4, !tbaa !11
  %268 = getelementptr inbounds %"struct.Measure::ComparisonResult", ptr %0, i32 0, i32 0
  store float %267, ptr %268, align 4, !tbaa !17
  %269 = load float, ptr %38, align 4, !tbaa !11
  %270 = getelementptr inbounds %"struct.Measure::ComparisonResult", ptr %0, i32 0, i32 2
  store float %269, ptr %270, align 4, !tbaa !19
  %271 = load float, ptr %26, align 4, !tbaa !11
  %272 = getelementptr inbounds %"struct.Measure::ComparisonResult", ptr %0, i32 0, i32 4
  store float %271, ptr %272, align 4, !tbaa !20
  %273 = load float, ptr %33, align 4, !tbaa !11
  %274 = getelementptr inbounds %"struct.Measure::ComparisonResult", ptr %0, i32 0, i32 1
  store float %273, ptr %274, align 4, !tbaa !21
  %275 = load float, ptr %39, align 4, !tbaa !11
  %276 = getelementptr inbounds %"struct.Measure::ComparisonResult", ptr %0, i32 0, i32 3
  store float %275, ptr %276, align 4, !tbaa !22
  %277 = load float, ptr %32, align 4, !tbaa !11
  %278 = getelementptr inbounds %"struct.Measure::ComparisonResult", ptr %0, i32 0, i32 5
  store float %277, ptr %278, align 4, !tbaa !23
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  ret void

279:                                              ; preds = %257
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %10, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %11, align 4
  br label %287

283:                                              ; preds = %265, %263
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %10, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %287

287:                                              ; preds = %283, %279
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %288

288:                                              ; preds = %287, %200
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %289

289:                                              ; preds = %288, %56
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %290

290:                                              ; preds = %289, %52
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br label %291

291:                                              ; preds = %290
  %292 = load ptr, ptr %10, align 8
  %293 = load i32, ptr %11, align 4
  %294 = insertvalue { ptr, i32 } poison, ptr %292, 0
  %295 = insertvalue { ptr, i32 } %294, i32 %293, 1
  resume { ptr, i32 } %295

296:                                              ; preds = %184
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK11BoundingBox8containsEPKf(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN7Measure16colorErrorCielabERK17UncompressedVoxelS2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN7Measure12calcVarianceERKSt6vectorIfSaIfEE(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.Measure::ComparisonResult" = type { float, float, float, float, float, float }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.UncompressedVoxel = type { [3 x float], [4 x i8] }
%"class.__gnu_cxx::__normal_iterator.7" = type { ptr }

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

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

; 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) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Measure7compareERKSt6vectorI17UncompressedVoxelSaIS1_EES5_RK11BoundingBox(ptr dead_on_unwind noalias writable sret(%"struct.Measure::ComparisonResult") align 4 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(48) %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %struct.UncompressedVoxel, align 16
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.7", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %16 = tail call noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %16, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %17 unwind label %26

17:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %18 = call noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %18, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %19 unwind label %28

19:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  %20 = call noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %.not = icmp eq i64 %20, 0
  br i1 %.not, label %._crit_edge86, label %.lr.ph85

.lr.ph85:                                         ; preds = %19
  %21 = getelementptr inbounds i8, ptr %11, i64 4
  %22 = getelementptr inbounds i8, ptr %11, i64 8
  br label %30

._crit_edge86:                                    ; preds = %91, %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %23 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  store ptr %23, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %24 = call ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  store ptr %24, ptr %13, align 8
  %25 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %25, label %.lr.ph90, label %._crit_edge91

26:                                               ; preds = %4
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %125

28:                                               ; preds = %17
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  br label %124

30:                                               ; preds = %.lr.ph85, %91
  %.06183 = phi i64 [ 0, %.lr.ph85 ], [ %92, %91 ]
  %31 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06183) #5
  %32 = call noundef zeroext i1 @_ZNK11BoundingBox8containsEPKf(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull %31)
  br i1 %32, label %33, label %91

33:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %34 = call ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %34, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %35 = call ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %35, ptr %10, align 8
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %36, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %88, %33
  %.067.lcssa = phi float [ 0.000000e+00, %33 ], [ %.269, %88 ]
  %.065.lcssa = phi float [ 1.000000e+05, %33 ], [ %.2, %88 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06183) #5
  store float %.065.lcssa, ptr %37, align 4, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.06183) #5
  store float %.067.lcssa, ptr %38, align 4, !tbaa !5
  br label %91

.lr.ph:                                           ; preds = %33, %88
  %.06581 = phi float [ %.2, %88 ], [ 1.000000e+05, %33 ]
  %.06780 = phi float [ %.269, %88 ], [ 0.000000e+00, %33 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  %39 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %39, i64 16, i1 false), !tbaa.struct !9
  %40 = call noundef zeroext i1 @_ZNK11BoundingBox8containsEPKf(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef nonnull %11)
  br i1 %40, label %41, label %88

41:                                               ; preds = %.lr.ph
  %42 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06183) #5
  %43 = load <4 x float>, ptr %42, align 4
  %44 = shufflevector <4 x float> %43, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %45 = load <4 x float>, ptr %11, align 16
  %46 = shufflevector <4 x float> %45, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %47 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06183) #5
  %48 = load <4 x float>, ptr %47, align 4
  %49 = shufflevector <4 x float> %48, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %50 = load <4 x float>, ptr %11, align 16
  %51 = shufflevector <4 x float> %50, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %52 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06183) #5
  %53 = getelementptr inbounds i8, ptr %52, i64 4
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = load float, ptr %21, align 4, !tbaa !5
  %56 = fsub float %54, %55
  %57 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06183) #5
  %58 = getelementptr inbounds i8, ptr %57, i64 4
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = load float, ptr %21, align 4, !tbaa !5
  %61 = fsub float %59, %60
  %62 = fmul float %56, %61
  %63 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06183) #5
  %64 = getelementptr inbounds i8, ptr %63, i64 8
  %65 = load float, ptr %64, align 4, !tbaa !5
  %66 = load float, ptr %22, align 8, !tbaa !5
  %67 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06183) #5
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  %69 = load float, ptr %68, align 4, !tbaa !5
  %70 = load float, ptr %22, align 8, !tbaa !5
  %71 = insertelement <2 x float> %44, float %65, i64 1
  %72 = insertelement <2 x float> %46, float %66, i64 1
  %73 = fsub <2 x float> %71, %72
  %74 = insertelement <2 x float> %49, float %69, i64 1
  %75 = insertelement <2 x float> %51, float %70, i64 1
  %76 = fsub <2 x float> %74, %75
  %77 = fmul <2 x float> %73, %76
  %78 = extractelement <2 x float> %77, i64 0
  %79 = fadd float %78, %62
  %80 = extractelement <2 x float> %77, i64 1
  %81 = fadd float %79, %80
  %sqrtf = call float @sqrtf(float noundef %81) #6
  %82 = fcmp olt float %sqrtf, %.06581
  br i1 %82, label %83, label %88

83:                                               ; preds = %41
  %84 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06183) #5
  %85 = invoke noundef float @_ZN7Measure16colorErrorCielabERK17UncompressedVoxelS2_(ptr noundef nonnull align 4 dereferenceable(16) %84, ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %88 unwind label %86

86:                                               ; preds = %83
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %124

88:                                               ; preds = %41, %83, %.lr.ph
  %.269 = phi float [ %.06780, %.lr.ph ], [ %.06780, %41 ], [ %85, %83 ]
  %.2 = phi float [ %.06581, %.lr.ph ], [ %.06581, %41 ], [ %sqrtf, %83 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %90, label %.lr.ph, label %._crit_edge

91:                                               ; preds = %30, %._crit_edge
  %92 = add nuw i64 %.06183, 1
  %93 = call noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %94 = icmp ult i64 %92, %93
  br i1 %94, label %30, label %._crit_edge86, !llvm.loop !11

._crit_edge91:                                    ; preds = %.lr.ph90, %._crit_edge86
  %.071.lcssa = phi float [ 0.000000e+00, %._crit_edge86 ], [ %.172, %.lr.ph90 ]
  %.070.lcssa = phi float [ 0.000000e+00, %._crit_edge86 ], [ %101, %.lr.ph90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %95 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %96 = call ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  store ptr %96, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %97 = call ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  store ptr %97, ptr %15, align 8
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %98, label %.lr.ph97, label %._crit_edge98

.lr.ph90:                                         ; preds = %._crit_edge86, %.lr.ph90
  %.07088 = phi float [ %101, %.lr.ph90 ], [ 0.000000e+00, %._crit_edge86 ]
  %.07187 = phi float [ %.172, %.lr.ph90 ], [ 0.000000e+00, %._crit_edge86 ]
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %100 = load float, ptr %99, align 4, !tbaa !5
  %101 = fadd float %.07088, %100
  %102 = fcmp olt float %.07187, %100
  %.172 = select i1 %102, float %100, float %.07187
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %104 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %104, label %.lr.ph90, label %._crit_edge91

._crit_edge98:                                    ; preds = %.lr.ph97, %._crit_edge91
  %.063.lcssa = phi float [ 0.000000e+00, %._crit_edge91 ], [ %.164, %.lr.ph97 ]
  %.062.lcssa = phi float [ 0.000000e+00, %._crit_edge91 ], [ %120, %.lr.ph97 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  %105 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %106 = call noundef float @_ZN7Measure12calcVarianceERKSt6vectorIfSaIfEE(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %107 = call noundef float @_ZN7Measure12calcVarianceERKSt6vectorIfSaIfEE(ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZN7Measure16ComparisonResultC2Ev(ptr noundef nonnull align 4 dereferenceable(24) %0)
  %108 = getelementptr inbounds i8, ptr %0, i64 8
  store float %106, ptr %108, align 4, !tbaa !13
  %109 = getelementptr inbounds i8, ptr %0, i64 16
  store float %.071.lcssa, ptr %109, align 4, !tbaa !15
  %110 = insertelement <2 x i64> poison, i64 %95, i64 0
  %111 = insertelement <2 x i64> %110, i64 %105, i64 1
  %112 = uitofp <2 x i64> %111 to <2 x float>
  %113 = insertelement <2 x float> poison, float %.070.lcssa, i64 0
  %114 = insertelement <2 x float> %113, float %.062.lcssa, i64 1
  %115 = fdiv <2 x float> %114, %112
  store <2 x float> %115, ptr %0, align 4, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %0, i64 12
  store float %107, ptr %116, align 4, !tbaa !16
  %117 = getelementptr inbounds i8, ptr %0, i64 20
  store float %.063.lcssa, ptr %117, align 4, !tbaa !17
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  ret void

.lr.ph97:                                         ; preds = %._crit_edge91, %.lr.ph97
  %.06295 = phi float [ %120, %.lr.ph97 ], [ 0.000000e+00, %._crit_edge91 ]
  %.06394 = phi float [ %.164, %.lr.ph97 ], [ 0.000000e+00, %._crit_edge91 ]
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %119 = load float, ptr %118, align 4, !tbaa !5
  %120 = fadd float %.06295, %119
  %121 = fcmp olt float %.06394, %119
  %.164 = select i1 %121, float %119, float %.06394
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %123 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %123, label %.lr.ph97, label %._crit_edge98

124:                                              ; preds = %86, %28
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %125

125:                                              ; preds = %124, %26
  %.pn.pn = phi { ptr, i32 } [ %.pn, %124 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK11BoundingBox8containsEPKf(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorI17UncompressedVoxelSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN7Measure16colorErrorCielabERK17UncompressedVoxelS2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPK17UncompressedVoxelSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIfSaIfEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIfSaIfEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPfSt6vectorIfSaIfEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN7Measure12calcVarianceERKSt6vectorIfSaIfEE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare float @sqrtf(float) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { mustprogress nofree nounwind willreturn memory(write) "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" }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 12, !10, i64 12, i64 4, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSN7Measure16ComparisonResultE", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!15 = !{!14, !6, i64 16}
!16 = !{!14, !6, i64 12}
!17 = !{!14, !6, i64 20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass