; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnextract (blockNet)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.voxelField.35 = type { ptr, i64, %class.var3.28, %"class.std::vector.18" }
%class.var3.28 = type { i32, i32, i32 }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.inputDataNE = type { %class.InputFile.base, i32, i32, i32, i32, double, %class.var3, %"class.std::__cxx11::basic_string", i64, %"class.std::__cxx11::basic_string", %"class.std::vector.13", %class.segment, %"class.std::vector.18", %"class.std::vector.23", %class.voxelImageT }
%class.InputFile.base = type <{ %"class.std::vector.5", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8 }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::allocator<std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.var3 = type { double, double, double }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<segments>, std::allocator<std::vector<segments>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<segments>, std::allocator<std::vector<segments>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<segments>, std::allocator<std::vector<segments>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<segments>, std::allocator<std::vector<segments>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.segment = type { i32, i8, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<poroRange, std::allocator<poroRange>>::_Vector_impl" }
%"struct.std::_Vector_base<poroRange, std::allocator<poroRange>>::_Vector_impl" = type { %"struct.std::_Vector_base<poroRange, std::allocator<poroRange>>::_Vector_impl_data" }
%"struct.std::_Vector_base<poroRange, std::allocator<poroRange>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.voxelImageT = type { %class.voxelImageTBase, %class.voxelField, %class.var3, %class.var3 }
%class.voxelImageTBase = type { ptr }
%class.voxelField = type { ptr, i64, %class.var3.28, %"class.std::vector.29" }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.segments = type <{ ptr, i32, [4 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.63 = external hidden unnamed_addr constant [12 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN10voxelFieldIiEclEiim(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, i32 noundef, i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18retreatPoresMedianRK11inputDataNER10voxelFieldIiEllRKSt6vectorIP6poreNESaIS7_EEl(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %5) #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca %class.voxelField.35, align 8
  %14 = alloca i64, align 8
  %15 = alloca i16, align 2
  %16 = alloca i32, align 4
  %17 = alloca i16, align 2
  %18 = alloca ptr, align 8
  %19 = alloca i16, align 2
  %20 = alloca i16, align 2
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i16, align 2
  %26 = alloca i16, align 2
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i64 %5, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN10voxelFieldIiEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(56) %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #5
  store i16 1, ptr %15, align 2, !tbaa !13
  br label %28

28:                                               ; preds = %342, %6
  %29 = load i16, ptr %15, align 2, !tbaa !13
  %30 = sext i16 %29 to i32
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %class.inputDataNE, ptr %31, i32 0, i32 3
  %33 = load i32, ptr %32, align 4, !tbaa !15
  %34 = icmp sle i32 %30, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #5
  store i16 1, ptr %17, align 2, !tbaa !13
  br label %37

37:                                               ; preds = %338, %36
  %38 = load i16, ptr %17, align 2, !tbaa !13
  %39 = sext i16 %38 to i32
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.inputDataNE, ptr %40, i32 0, i32 2
  %42 = load i32, ptr %41, align 8, !tbaa !49
  %43 = icmp sle i32 %39, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %37
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  br label %341

45:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %class.inputDataNE, ptr %46, i32 0, i32 10
  %48 = load i16, ptr %15, align 2, !tbaa !13
  %49 = sext i16 %48 to i32
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_I8segmentsSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %51) #5
  %53 = load i16, ptr %17, align 2, !tbaa !13
  %54 = sext i16 %53 to i32
  %55 = sub nsw i32 %54, 1
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorI8segmentsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %56) #5
  store ptr %57, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #5
  store i16 0, ptr %19, align 2, !tbaa !13
  br label %58

58:                                               ; preds = %334, %45
  %59 = load i16, ptr %19, align 2, !tbaa !13
  %60 = sext i16 %59 to i32
  %61 = load ptr, ptr %18, align 8, !tbaa !5
  %62 = getelementptr inbounds %class.segments, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 8, !tbaa !50
  %64 = icmp slt i32 %60, %63
  br i1 %64, label %66, label %65

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

66:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #5
  %67 = load ptr, ptr %18, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.segments, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !52
  %70 = load i16, ptr %19, align 2, !tbaa !13
  %71 = sext i16 %70 to i64
  %72 = getelementptr inbounds %class.segment, ptr %69, i64 %71
  %73 = getelementptr inbounds %class.segment, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !53
  %75 = add nsw i32 %74, 1
  %76 = trunc i32 %75 to i16
  store i16 %76, ptr %20, align 2, !tbaa !13
  br label %77

77:                                               ; preds = %329, %66
  %78 = load i16, ptr %20, align 2, !tbaa !13
  %79 = sext i16 %78 to i32
  %80 = load ptr, ptr %18, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.segments, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !52
  %83 = load i16, ptr %19, align 2, !tbaa !13
  %84 = sext i16 %83 to i32
  %85 = add nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %class.segment, ptr %82, i64 %86
  %88 = getelementptr inbounds %class.segment, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !53
  %90 = icmp sle i32 %79, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %77
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #5
  br label %333

92:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %93 = load i16, ptr %20, align 2, !tbaa !13
  %94 = sext i16 %93 to i32
  %95 = load i16, ptr %17, align 2, !tbaa !13
  %96 = sext i16 %95 to i32
  %97 = load i16, ptr %15, align 2, !tbaa !13
  %98 = sext i16 %97 to i64
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN10voxelFieldIiEclEiim(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef %94, i32 noundef %96, i64 noundef %98)
          to label %100 unwind label %122

100:                                              ; preds = %92
  store ptr %99, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !54
  %103 = sext i32 %102 to i64
  store i64 %103, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %25) #5
  store i16 0, ptr %25, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #5
  store i16 0, ptr %26, align 2, !tbaa !13
  %104 = load i64, ptr %24, align 8, !tbaa !9
  %105 = load i64, ptr %9, align 8, !tbaa !9
  %106 = icmp sge i64 %104, %105
  br i1 %106, label %107, label %328

107:                                              ; preds = %100
  %108 = load i64, ptr %24, align 8, !tbaa !9
  %109 = load i64, ptr %10, align 8, !tbaa !9
  %110 = icmp sle i64 %108, %109
  br i1 %110, label %111, label %328

111:                                              ; preds = %107
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %112)
          to label %114 unwind label %126

114:                                              ; preds = %111
  %115 = load i32, ptr %113, align 4, !tbaa !54
  %116 = sext i32 %115 to i64
  %117 = load i64, ptr %24, align 8, !tbaa !9
  %118 = icmp eq i64 %116, %117
  br i1 %118, label %119, label %130

119:                                              ; preds = %114
  %120 = load i16, ptr %25, align 2, !tbaa !13
  %121 = add i16 %120, 1
  store i16 %121, ptr %25, align 2, !tbaa !13
  br label %150

122:                                              ; preds = %92
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %22, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %23, align 4
  br label %332

126:                                              ; preds = %313, %293, %285, %274, %262, %254, %243, %231, %223, %212, %200, %192, %181, %169, %161, %150, %138, %130, %111
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %22, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %332

130:                                              ; preds = %114
  %131 = load i64, ptr %9, align 8, !tbaa !9
  %132 = load ptr, ptr %21, align 8, !tbaa !5
  %133 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %132)
          to label %134 unwind label %126

134:                                              ; preds = %130
  %135 = load i32, ptr %133, align 4, !tbaa !54
  %136 = sext i32 %135 to i64
  %137 = icmp sle i64 %131, %136
  br i1 %137, label %138, label %149

138:                                              ; preds = %134
  %139 = load i64, ptr %10, align 8, !tbaa !9
  %140 = load ptr, ptr %21, align 8, !tbaa !5
  %141 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %140)
          to label %142 unwind label %126

142:                                              ; preds = %138
  %143 = load i32, ptr %141, align 4, !tbaa !54
  %144 = sext i32 %143 to i64
  %145 = icmp sge i64 %139, %144
  br i1 %145, label %146, label %149

146:                                              ; preds = %142
  %147 = load i16, ptr %26, align 2, !tbaa !13
  %148 = add i16 %147, 1
  store i16 %148, ptr %26, align 2, !tbaa !13
  br label %149

149:                                              ; preds = %146, %142, %134
  br label %150

150:                                              ; preds = %149, %119
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %151)
          to label %153 unwind label %126

153:                                              ; preds = %150
  %154 = load i32, ptr %152, align 4, !tbaa !54
  %155 = sext i32 %154 to i64
  %156 = load i64, ptr %24, align 8, !tbaa !9
  %157 = icmp eq i64 %155, %156
  br i1 %157, label %158, label %161

158:                                              ; preds = %153
  %159 = load i16, ptr %25, align 2, !tbaa !13
  %160 = add i16 %159, 1
  store i16 %160, ptr %25, align 2, !tbaa !13
  br label %181

161:                                              ; preds = %153
  %162 = load i64, ptr %9, align 8, !tbaa !9
  %163 = load ptr, ptr %21, align 8, !tbaa !5
  %164 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %163)
          to label %165 unwind label %126

165:                                              ; preds = %161
  %166 = load i32, ptr %164, align 4, !tbaa !54
  %167 = sext i32 %166 to i64
  %168 = icmp sle i64 %162, %167
  br i1 %168, label %169, label %180

169:                                              ; preds = %165
  %170 = load i64, ptr %10, align 8, !tbaa !9
  %171 = load ptr, ptr %21, align 8, !tbaa !5
  %172 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %171)
          to label %173 unwind label %126

173:                                              ; preds = %169
  %174 = load i32, ptr %172, align 4, !tbaa !54
  %175 = sext i32 %174 to i64
  %176 = icmp sge i64 %170, %175
  br i1 %176, label %177, label %180

177:                                              ; preds = %173
  %178 = load i16, ptr %26, align 2, !tbaa !13
  %179 = add i16 %178, 1
  store i16 %179, ptr %26, align 2, !tbaa !13
  br label %180

180:                                              ; preds = %177, %173, %165
  br label %181

181:                                              ; preds = %180, %158
  %182 = load ptr, ptr %21, align 8, !tbaa !5
  %183 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %182)
          to label %184 unwind label %126

184:                                              ; preds = %181
  %185 = load i32, ptr %183, align 4, !tbaa !54
  %186 = sext i32 %185 to i64
  %187 = load i64, ptr %24, align 8, !tbaa !9
  %188 = icmp eq i64 %186, %187
  br i1 %188, label %189, label %192

189:                                              ; preds = %184
  %190 = load i16, ptr %25, align 2, !tbaa !13
  %191 = add i16 %190, 1
  store i16 %191, ptr %25, align 2, !tbaa !13
  br label %212

192:                                              ; preds = %184
  %193 = load i64, ptr %9, align 8, !tbaa !9
  %194 = load ptr, ptr %21, align 8, !tbaa !5
  %195 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %194)
          to label %196 unwind label %126

196:                                              ; preds = %192
  %197 = load i32, ptr %195, align 4, !tbaa !54
  %198 = sext i32 %197 to i64
  %199 = icmp sle i64 %193, %198
  br i1 %199, label %200, label %211

200:                                              ; preds = %196
  %201 = load i64, ptr %10, align 8, !tbaa !9
  %202 = load ptr, ptr %21, align 8, !tbaa !5
  %203 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %202)
          to label %204 unwind label %126

204:                                              ; preds = %200
  %205 = load i32, ptr %203, align 4, !tbaa !54
  %206 = sext i32 %205 to i64
  %207 = icmp sge i64 %201, %206
  br i1 %207, label %208, label %211

208:                                              ; preds = %204
  %209 = load i16, ptr %26, align 2, !tbaa !13
  %210 = add i16 %209, 1
  store i16 %210, ptr %26, align 2, !tbaa !13
  br label %211

211:                                              ; preds = %208, %204, %196
  br label %212

212:                                              ; preds = %211, %189
  %213 = load ptr, ptr %21, align 8, !tbaa !5
  %214 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %213)
          to label %215 unwind label %126

215:                                              ; preds = %212
  %216 = load i32, ptr %214, align 4, !tbaa !54
  %217 = sext i32 %216 to i64
  %218 = load i64, ptr %24, align 8, !tbaa !9
  %219 = icmp eq i64 %217, %218
  br i1 %219, label %220, label %223

220:                                              ; preds = %215
  %221 = load i16, ptr %25, align 2, !tbaa !13
  %222 = add i16 %221, 1
  store i16 %222, ptr %25, align 2, !tbaa !13
  br label %243

223:                                              ; preds = %215
  %224 = load i64, ptr %9, align 8, !tbaa !9
  %225 = load ptr, ptr %21, align 8, !tbaa !5
  %226 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %225)
          to label %227 unwind label %126

227:                                              ; preds = %223
  %228 = load i32, ptr %226, align 4, !tbaa !54
  %229 = sext i32 %228 to i64
  %230 = icmp sle i64 %224, %229
  br i1 %230, label %231, label %242

231:                                              ; preds = %227
  %232 = load i64, ptr %10, align 8, !tbaa !9
  %233 = load ptr, ptr %21, align 8, !tbaa !5
  %234 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %233)
          to label %235 unwind label %126

235:                                              ; preds = %231
  %236 = load i32, ptr %234, align 4, !tbaa !54
  %237 = sext i32 %236 to i64
  %238 = icmp sge i64 %232, %237
  br i1 %238, label %239, label %242

239:                                              ; preds = %235
  %240 = load i16, ptr %26, align 2, !tbaa !13
  %241 = add i16 %240, 1
  store i16 %241, ptr %26, align 2, !tbaa !13
  br label %242

242:                                              ; preds = %239, %235, %227
  br label %243

243:                                              ; preds = %242, %220
  %244 = load ptr, ptr %21, align 8, !tbaa !5
  %245 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %244)
          to label %246 unwind label %126

246:                                              ; preds = %243
  %247 = load i32, ptr %245, align 4, !tbaa !54
  %248 = sext i32 %247 to i64
  %249 = load i64, ptr %24, align 8, !tbaa !9
  %250 = icmp eq i64 %248, %249
  br i1 %250, label %251, label %254

251:                                              ; preds = %246
  %252 = load i16, ptr %25, align 2, !tbaa !13
  %253 = add i16 %252, 1
  store i16 %253, ptr %25, align 2, !tbaa !13
  br label %274

254:                                              ; preds = %246
  %255 = load i64, ptr %9, align 8, !tbaa !9
  %256 = load ptr, ptr %21, align 8, !tbaa !5
  %257 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %256)
          to label %258 unwind label %126

258:                                              ; preds = %254
  %259 = load i32, ptr %257, align 4, !tbaa !54
  %260 = sext i32 %259 to i64
  %261 = icmp sle i64 %255, %260
  br i1 %261, label %262, label %273

262:                                              ; preds = %258
  %263 = load i64, ptr %10, align 8, !tbaa !9
  %264 = load ptr, ptr %21, align 8, !tbaa !5
  %265 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef -1, ptr noundef %264)
          to label %266 unwind label %126

266:                                              ; preds = %262
  %267 = load i32, ptr %265, align 4, !tbaa !54
  %268 = sext i32 %267 to i64
  %269 = icmp sge i64 %263, %268
  br i1 %269, label %270, label %273

270:                                              ; preds = %266
  %271 = load i16, ptr %26, align 2, !tbaa !13
  %272 = add i16 %271, 1
  store i16 %272, ptr %26, align 2, !tbaa !13
  br label %273

273:                                              ; preds = %270, %266, %258
  br label %274

274:                                              ; preds = %273, %251
  %275 = load ptr, ptr %21, align 8, !tbaa !5
  %276 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %275)
          to label %277 unwind label %126

277:                                              ; preds = %274
  %278 = load i32, ptr %276, align 4, !tbaa !54
  %279 = sext i32 %278 to i64
  %280 = load i64, ptr %24, align 8, !tbaa !9
  %281 = icmp eq i64 %279, %280
  br i1 %281, label %282, label %285

282:                                              ; preds = %277
  %283 = load i16, ptr %25, align 2, !tbaa !13
  %284 = add i16 %283, 1
  store i16 %284, ptr %25, align 2, !tbaa !13
  br label %305

285:                                              ; preds = %277
  %286 = load i64, ptr %9, align 8, !tbaa !9
  %287 = load ptr, ptr %21, align 8, !tbaa !5
  %288 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %287)
          to label %289 unwind label %126

289:                                              ; preds = %285
  %290 = load i32, ptr %288, align 4, !tbaa !54
  %291 = sext i32 %290 to i64
  %292 = icmp sle i64 %286, %291
  br i1 %292, label %293, label %304

293:                                              ; preds = %289
  %294 = load i64, ptr %10, align 8, !tbaa !9
  %295 = load ptr, ptr %21, align 8, !tbaa !5
  %296 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %13, i32 noundef 1, ptr noundef %295)
          to label %297 unwind label %126

297:                                              ; preds = %293
  %298 = load i32, ptr %296, align 4, !tbaa !54
  %299 = sext i32 %298 to i64
  %300 = icmp sge i64 %294, %299
  br i1 %300, label %301, label %304

301:                                              ; preds = %297
  %302 = load i16, ptr %26, align 2, !tbaa !13
  %303 = add i16 %302, 1
  store i16 %303, ptr %26, align 2, !tbaa !13
  br label %304

304:                                              ; preds = %301, %297, %289
  br label %305

305:                                              ; preds = %304, %282
  %306 = load i16, ptr %26, align 2, !tbaa !13
  %307 = sext i16 %306 to i32
  %308 = icmp sgt i32 %307, 0
  br i1 %308, label %309, label %327

309:                                              ; preds = %305
  %310 = load i16, ptr %25, align 2, !tbaa !13
  %311 = sext i16 %310 to i32
  %312 = icmp sgt i32 %311, 0
  br i1 %312, label %313, label %327

313:                                              ; preds = %309
  %314 = load i64, ptr %12, align 8, !tbaa !9
  %315 = trunc i64 %314 to i32
  %316 = load ptr, ptr %8, align 8, !tbaa !5
  %317 = load i16, ptr %20, align 2, !tbaa !13
  %318 = sext i16 %317 to i32
  %319 = load i16, ptr %17, align 2, !tbaa !13
  %320 = sext i16 %319 to i32
  %321 = load i16, ptr %15, align 2, !tbaa !13
  %322 = sext i16 %321 to i64
  %323 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN10voxelFieldIiEclEiim(ptr noundef nonnull align 8 dereferenceable(56) %316, i32 noundef %318, i32 noundef %320, i64 noundef %322)
          to label %324 unwind label %126

324:                                              ; preds = %313
  store i32 %315, ptr %323, align 4, !tbaa !54
  %325 = load i64, ptr %14, align 8, !tbaa !11
  %326 = add nsw i64 %325, 1
  store i64 %326, ptr %14, align 8, !tbaa !11
  br label %327

327:                                              ; preds = %324, %309, %305
  br label %328

328:                                              ; preds = %327, %107, %100
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %329

329:                                              ; preds = %328
  %330 = load i16, ptr %20, align 2, !tbaa !13
  %331 = add i16 %330, 1
  store i16 %331, ptr %20, align 2, !tbaa !13
  br label %77, !llvm.loop !55

332:                                              ; preds = %126, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #5
  br label %357

333:                                              ; preds = %91
  br label %334

334:                                              ; preds = %333
  %335 = load i16, ptr %19, align 2, !tbaa !13
  %336 = add i16 %335, 1
  store i16 %336, ptr %19, align 2, !tbaa !13
  br label %58, !llvm.loop !57

337:                                              ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %338

338:                                              ; preds = %337
  %339 = load i16, ptr %17, align 2, !tbaa !13
  %340 = add i16 %339, 1
  store i16 %340, ptr %17, align 2, !tbaa !13
  br label %37, !llvm.loop !58

341:                                              ; preds = %44
  br label %342

342:                                              ; preds = %341
  %343 = load i16, ptr %15, align 2, !tbaa !13
  %344 = add i16 %343, 1
  store i16 %344, ptr %15, align 2, !tbaa !13
  br label %28, !llvm.loop !59

345:                                              ; preds = %35
  %346 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.63)
          to label %347 unwind label %353

347:                                              ; preds = %345
  %348 = load i64, ptr %14, align 8, !tbaa !11
  %349 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %346, i64 noundef %348)
          to label %350 unwind label %353

350:                                              ; preds = %347
  %351 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8) %349)
          to label %352 unwind label %353

352:                                              ; preds = %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZN10voxelFieldIiED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #5
  ret void

353:                                              ; preds = %350, %347, %345
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %22, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %23, align 4
  br label %357

357:                                              ; preds = %353, %332
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZN10voxelFieldIiED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #5
  br label %358

358:                                              ; preds = %357
  %359 = load ptr, ptr %22, align 8
  %360 = load i32, ptr %23, align 4
  %361 = insertvalue { ptr, i32 } poison, ptr %359, 0
  %362 = insertvalue { ptr, i32 } %361, i32 %360, 1
  resume { ptr, i32 } %362
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10voxelFieldIiEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { "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 }

!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 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !25, i64 132}
!16 = !{!"_ZTS11inputDataNE", !17, i64 0, !25, i64 124, !25, i64 128, !25, i64 132, !25, i64 136, !26, i64 144, !27, i64 152, !22, i64 176, !12, i64 208, !22, i64 216, !28, i64 248, !32, i64 272, !33, i64 288, !37, i64 312, !41, i64 336}
!17 = !{!"_ZTS9InputFile", !18, i64 0, !22, i64 24, !22, i64 56, !22, i64 88, !24, i64 120, !24, i64 121}
!18 = !{!"_ZTSSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !10, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = !{!"_ZTS4var3IdE", !26, i64 0, !26, i64 8, !26, i64 16}
!28 = !{!"_ZTSSt6vectorIS_I8segmentsSaIS0_EESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseISt6vectorI8segmentsSaIS1_EESaIS3_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseISt6vectorI8segmentsSaIS1_EESaIS3_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseISt6vectorI8segmentsSaIS1_EESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTS7segment", !25, i64 0, !7, i64 4, !6, i64 8}
!33 = !{!"_ZTSSt6vectorIiSaIiEE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorI9poroRangeSaIS0_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseI9poroRangeSaIS0_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseI9poroRangeSaIS0_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseI9poroRangeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTS11voxelImageTIhE", !42, i64 0, !43, i64 8, !27, i64 64, !27, i64 88}
!42 = !{!"_ZTS15voxelImageTBase"}
!43 = !{!"_ZTS10voxelFieldIhE", !12, i64 8, !44, i64 16, !45, i64 32}
!44 = !{!"_ZTS4var3IiE", !25, i64 0, !25, i64 4, !25, i64 8}
!45 = !{!"_ZTSSt6vectorIhSaIhEE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!16, !25, i64 128}
!50 = !{!51, !25, i64 8}
!51 = !{!"_ZTS8segments", !6, i64 0, !25, i64 8}
!52 = !{!51, !6, i64 0}
!53 = !{!32, !25, i64 0}
!54 = !{!25, !25, i64 0}
!55 = distinct !{!55, !56}
!56 = !{!"llvm.loop.mustprogress"}
!57 = distinct !{!57, !56}
!58 = distinct !{!58, !56}
!59 = distinct !{!59, !56}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.voxelField.35 = type { ptr, i64, %class.var3.28, %"class.std::vector.18" }
%class.var3.28 = type { i32, i32, i32 }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.segment = type { i32, i8, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.63 = external hidden unnamed_addr constant [12 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18retreatPoresMedianRK11inputDataNER10voxelFieldIiEllRKSt6vectorIP6poreNESaIS7_EEl(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull align 8 dereferenceable(56) %1, i64 noundef %2, i64 noundef %3, ptr nocapture noundef nonnull readnone align 8 dereferenceable(24) %4, i64 noundef %5) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca %class.voxelField.35, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #5
  call void @_ZN10voxelFieldIiEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(56) %7, ptr noundef nonnull align 8 dereferenceable(56) %1)
  %8 = getelementptr inbounds i8, ptr %0, i64 132
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %.not147 = icmp slt i32 %9, 1
  br i1 %.not147, label %._crit_edge150, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 128
  %11 = getelementptr inbounds i8, ptr %0, i64 248
  %12 = trunc i64 %5 to i32
  %13 = load i32, ptr %10, align 8, !tbaa !44
  %14 = icmp slt i32 %13, 1
  br i1 %14, label %._crit_edge150, label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge145
  %15 = phi i32 [ %22, %._crit_edge145 ], [ %9, %.preheader.lr.ph ]
  %16 = phi i32 [ %23, %._crit_edge145 ], [ %13, %.preheader.lr.ph ]
  %17 = phi i32 [ %25, %._crit_edge145 ], [ 1, %.preheader.lr.ph ]
  %.093149 = phi i64 [ %.194.lcssa, %._crit_edge145 ], [ 0, %.preheader.lr.ph ]
  %.098148 = phi i16 [ %24, %._crit_edge145 ], [ 1, %.preheader.lr.ph ]
  %.not109141 = icmp slt i32 %16, 1
  br i1 %.not109141, label %._crit_edge145, label %.lr.ph144

.lr.ph144:                                        ; preds = %.preheader
  %18 = add nsw i32 %17, -1
  %19 = sext i32 %18 to i64
  %20 = sext i16 %.098148 to i64
  br label %26

._crit_edge150:                                   ; preds = %._crit_edge145, %.preheader.lr.ph, %6
  %.093.lcssa = phi i64 [ 0, %6 ], [ 0, %.preheader.lr.ph ], [ %.194.lcssa, %._crit_edge145 ]
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.63)
          to label %153 unwind label %158

._crit_edge145.loopexit:                          ; preds = %._crit_edge139
  %.pre154 = load i32, ptr %8, align 4, !tbaa !5
  br label %._crit_edge145

._crit_edge145:                                   ; preds = %._crit_edge145.loopexit, %.preheader
  %22 = phi i32 [ %15, %.preheader ], [ %.pre154, %._crit_edge145.loopexit ]
  %23 = phi i32 [ %16, %.preheader ], [ %37, %._crit_edge145.loopexit ]
  %.194.lcssa = phi i64 [ %.093149, %.preheader ], [ %.295.lcssa, %._crit_edge145.loopexit ]
  %24 = add i16 %.098148, 1
  %25 = sext i16 %24 to i32
  %.not = icmp slt i32 %22, %25
  br i1 %.not, label %._crit_edge150, label %.preheader, !llvm.loop !45

26:                                               ; preds = %.lr.ph144, %._crit_edge139
  %27 = phi i32 [ 1, %.lr.ph144 ], [ %36, %._crit_edge139 ]
  %.194143 = phi i64 [ %.093149, %.lr.ph144 ], [ %.295.lcssa, %._crit_edge139 ]
  %.099142 = phi i16 [ 1, %.lr.ph144 ], [ %35, %._crit_edge139 ]
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_I8segmentsSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %19) #5
  %29 = add nsw i32 %27, -1
  %30 = sext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNKSt6vectorI8segmentsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30) #5
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load i32, ptr %32, align 8, !tbaa !48
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph138.preheader, label %._crit_edge139

.lr.ph138.preheader:                              ; preds = %26
  %.pre = load ptr, ptr %31, align 8, !tbaa !50
  br label %.lr.ph138

._crit_edge139:                                   ; preds = %._crit_edge, %26
  %.295.lcssa = phi i64 [ %.194143, %26 ], [ %.396.lcssa, %._crit_edge ]
  %35 = add i16 %.099142, 1
  %36 = sext i16 %35 to i32
  %37 = load i32, ptr %10, align 8, !tbaa !44
  %.not109 = icmp slt i32 %37, %36
  br i1 %.not109, label %._crit_edge145.loopexit, label %26, !llvm.loop !51

.lr.ph138:                                        ; preds = %.lr.ph138.preheader, %._crit_edge
  %38 = phi i32 [ %47, %._crit_edge ], [ %33, %.lr.ph138.preheader ]
  %39 = phi ptr [ %48, %._crit_edge ], [ %.pre, %.lr.ph138.preheader ]
  %.295136 = phi i64 [ %.396.lcssa, %._crit_edge ], [ %.194143, %.lr.ph138.preheader ]
  %.0101135 = phi i16 [ %49, %._crit_edge ], [ 0, %.lr.ph138.preheader ]
  %40 = sext i16 %.0101135 to i64
  %41 = getelementptr %class.segment, ptr %39, i64 %40
  %42 = load i32, ptr %41, align 8, !tbaa !52
  %43 = trunc i32 %42 to i16
  %.0100131 = add i16 %43, 1
  %44 = sext i16 %.0100131 to i32
  %45 = getelementptr i8, ptr %41, i64 16
  %46 = load i32, ptr %45, align 8, !tbaa !52
  %.not110132 = icmp slt i32 %46, %44
  br i1 %.not110132, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %147
  %.pre153 = load i32, ptr %32, align 8, !tbaa !48
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph138
  %47 = phi i32 [ %38, %.lr.ph138 ], [ %.pre153, %._crit_edge.loopexit ]
  %48 = phi ptr [ %39, %.lr.ph138 ], [ %149, %._crit_edge.loopexit ]
  %.396.lcssa = phi i64 [ %.295136, %.lr.ph138 ], [ %.497, %._crit_edge.loopexit ]
  %49 = add i16 %.0101135, 1
  %50 = sext i16 %49 to i32
  %51 = icmp sgt i32 %47, %50
  br i1 %51, label %.lr.ph138, label %._crit_edge139, !llvm.loop !53

.lr.ph:                                           ; preds = %.lr.ph138, %147
  %52 = phi i32 [ %148, %147 ], [ %44, %.lr.ph138 ]
  %.0100134 = phi i16 [ %.0100, %147 ], [ %.0100131, %.lr.ph138 ]
  %.396133 = phi i64 [ %.497, %147 ], [ %.295136, %.lr.ph138 ]
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN10voxelFieldIiEclEiim(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef %52, i32 noundef %27, i64 noundef %20)
  %54 = load i32, ptr %53, align 4, !tbaa !54
  %55 = sext i32 %54 to i64
  %.not111 = icmp slt i64 %55, %2
  %.not112 = icmp sgt i64 %55, %3
  %or.cond125 = or i1 %.not111, %.not112
  br i1 %or.cond125, label %147, label %56

56:                                               ; preds = %.lr.ph
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %58 = load i32, ptr %57, align 4, !tbaa !54
  %59 = icmp eq i32 %58, %54
  br i1 %59, label %68, label %60

60:                                               ; preds = %56
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %62 = load i32, ptr %61, align 4, !tbaa !54
  %63 = sext i32 %62 to i64
  %.not113 = icmp slt i64 %63, %2
  br i1 %.not113, label %68, label %64

64:                                               ; preds = %60
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %66 = load i32, ptr %65, align 4, !tbaa !54
  %67 = sext i32 %66 to i64
  %.not114 = icmp sle i64 %67, %3
  %spec.select = zext i1 %.not114 to i16
  br label %68

68:                                               ; preds = %64, %56, %60
  %.087 = phi i16 [ 0, %60 ], [ 1, %56 ], [ 0, %64 ]
  %.0 = phi i16 [ 0, %60 ], [ 0, %56 ], [ %spec.select, %64 ]
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %70 = load i32, ptr %69, align 4, !tbaa !54
  %71 = icmp eq i32 %70, %54
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = add nuw nsw i16 %.087, 1
  br label %83

74:                                               ; preds = %68
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %76 = load i32, ptr %75, align 4, !tbaa !54
  %77 = sext i32 %76 to i64
  %.not115 = icmp slt i64 %77, %2
  br i1 %.not115, label %83, label %78

78:                                               ; preds = %74
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %80 = load i32, ptr %79, align 4, !tbaa !54
  %81 = sext i32 %80 to i64
  %.not116 = icmp sle i64 %81, %3
  %82 = zext i1 %.not116 to i16
  %spec.select126 = add nuw nsw i16 %.0, %82
  br label %83

83:                                               ; preds = %78, %74, %72
  %.188 = phi i16 [ %73, %72 ], [ %.087, %74 ], [ %.087, %78 ]
  %.1 = phi i16 [ %.0, %72 ], [ %.0, %74 ], [ %spec.select126, %78 ]
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %85 = load i32, ptr %84, align 4, !tbaa !54
  %86 = icmp eq i32 %85, %54
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = add nuw nsw i16 %.188, 1
  br label %98

89:                                               ; preds = %83
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %91 = load i32, ptr %90, align 4, !tbaa !54
  %92 = sext i32 %91 to i64
  %.not117 = icmp slt i64 %92, %2
  br i1 %.not117, label %98, label %93

93:                                               ; preds = %89
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %95 = load i32, ptr %94, align 4, !tbaa !54
  %96 = sext i32 %95 to i64
  %.not118 = icmp sle i64 %96, %3
  %97 = zext i1 %.not118 to i16
  %spec.select127 = add nuw nsw i16 %.1, %97
  br label %98

98:                                               ; preds = %93, %89, %87
  %.289 = phi i16 [ %88, %87 ], [ %.188, %89 ], [ %.188, %93 ]
  %.2 = phi i16 [ %.1, %87 ], [ %.1, %89 ], [ %spec.select127, %93 ]
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %100 = load i32, ptr %99, align 4, !tbaa !54
  %101 = icmp eq i32 %100, %54
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = add nuw nsw i16 %.289, 1
  br label %113

104:                                              ; preds = %98
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %106 = load i32, ptr %105, align 4, !tbaa !54
  %107 = sext i32 %106 to i64
  %.not119 = icmp slt i64 %107, %2
  br i1 %.not119, label %113, label %108

108:                                              ; preds = %104
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %110 = load i32, ptr %109, align 4, !tbaa !54
  %111 = sext i32 %110 to i64
  %.not120 = icmp sle i64 %111, %3
  %112 = zext i1 %.not120 to i16
  %spec.select128 = add nuw nsw i16 %.2, %112
  br label %113

113:                                              ; preds = %108, %104, %102
  %.390 = phi i16 [ %103, %102 ], [ %.289, %104 ], [ %.289, %108 ]
  %.3 = phi i16 [ %.2, %102 ], [ %.2, %104 ], [ %spec.select128, %108 ]
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %115 = load i32, ptr %114, align 4, !tbaa !54
  %116 = icmp eq i32 %115, %54
  br i1 %116, label %117, label %119

117:                                              ; preds = %113
  %118 = add nuw nsw i16 %.390, 1
  br label %128

119:                                              ; preds = %113
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %121 = load i32, ptr %120, align 4, !tbaa !54
  %122 = sext i32 %121 to i64
  %.not121 = icmp slt i64 %122, %2
  br i1 %.not121, label %128, label %123

123:                                              ; preds = %119
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef -1, ptr noundef nonnull %53)
  %125 = load i32, ptr %124, align 4, !tbaa !54
  %126 = sext i32 %125 to i64
  %.not122 = icmp sle i64 %126, %3
  %127 = zext i1 %.not122 to i16
  %spec.select129 = add nuw nsw i16 %.3, %127
  br label %128

128:                                              ; preds = %123, %119, %117
  %.491 = phi i16 [ %118, %117 ], [ %.390, %119 ], [ %.390, %123 ]
  %.4 = phi i16 [ %.3, %117 ], [ %.3, %119 ], [ %spec.select129, %123 ]
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %130 = load i32, ptr %129, align 4, !tbaa !54
  %131 = icmp eq i32 %130, %54
  br i1 %131, label %141, label %132

132:                                              ; preds = %128
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %134 = load i32, ptr %133, align 4, !tbaa !54
  %135 = sext i32 %134 to i64
  %.not123 = icmp slt i64 %135, %2
  br i1 %.not123, label %141, label %136

136:                                              ; preds = %132
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56) %7, i32 noundef 1, ptr noundef nonnull %53)
  %138 = load i32, ptr %137, align 4, !tbaa !54
  %139 = sext i32 %138 to i64
  %.not124 = icmp sle i64 %139, %3
  %140 = zext i1 %.not124 to i16
  %spec.select130 = add nuw nsw i16 %.4, %140
  br label %141

141:                                              ; preds = %128, %136, %132
  %.592 = phi i16 [ %.491, %132 ], [ %.491, %136 ], [ 1, %128 ]
  %.5 = phi i16 [ %.4, %132 ], [ %spec.select130, %136 ], [ %.4, %128 ]
  %142 = icmp ne i16 %.5, 0
  %143 = icmp ne i16 %.592, 0
  %or.cond = select i1 %142, i1 %143, i1 false
  br i1 %or.cond, label %144, label %147

144:                                              ; preds = %141
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN10voxelFieldIiEclEiim(ptr noundef nonnull align 8 dereferenceable(56) %1, i32 noundef %52, i32 noundef %27, i64 noundef %20)
  store i32 %12, ptr %145, align 4, !tbaa !54
  %146 = add nsw i64 %.396133, 1
  br label %147

147:                                              ; preds = %141, %144, %.lr.ph
  %.497 = phi i64 [ %146, %144 ], [ %.396133, %141 ], [ %.396133, %.lr.ph ]
  %.0100 = add i16 %.0100134, 1
  %148 = sext i16 %.0100 to i32
  %149 = load ptr, ptr %31, align 8, !tbaa !50
  %150 = getelementptr %class.segment, ptr %149, i64 %40
  %151 = getelementptr i8, ptr %150, i64 16
  %152 = load i32, ptr %151, align 8, !tbaa !52
  %.not110 = icmp slt i32 %152, %148
  br i1 %.not110, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !55

153:                                              ; preds = %._crit_edge150
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %.093.lcssa)
          to label %155 unwind label %158

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8) %154)
          to label %157 unwind label %158

157:                                              ; preds = %155
  call void @_ZN10voxelFieldIiED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #5
  ret void

158:                                              ; preds = %155, %153, %._crit_edge150
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10voxelFieldIiED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %7) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #5
  resume { ptr, i32 } %159
}

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10voxelFieldIiEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_iEiPKi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_jEiPKi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK10voxelFieldIiE3v_kEiPKi(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { "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 }

!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, !19, i64 132}
!6 = !{!"_ZTS11inputDataNE", !7, i64 0, !19, i64 124, !19, i64 128, !19, i64 132, !19, i64 136, !20, i64 144, !21, i64 152, !15, i64 176, !22, i64 208, !15, i64 216, !23, i64 248, !27, i64 272, !28, i64 288, !32, i64 312, !36, i64 336}
!7 = !{!"_ZTS9InputFile", !8, i64 0, !15, i64 24, !15, i64 56, !15, i64 88, !18, i64 120, !18, i64 121}
!8 = !{!"_ZTSSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE", !9, i64 0}
!9 = !{!"_ZTSSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE12_Vector_implE", !11, i64 0}
!11 = !{!"_ZTSNSt12_Vector_baseISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !13, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !12, i64 0}
!17 = !{!"long", !13, i64 0}
!18 = !{!"bool", !13, i64 0}
!19 = !{!"int", !13, i64 0}
!20 = !{!"double", !13, i64 0}
!21 = !{!"_ZTS4var3IdE", !20, i64 0, !20, i64 8, !20, i64 16}
!22 = !{!"long long", !13, i64 0}
!23 = !{!"_ZTSSt6vectorIS_I8segmentsSaIS0_EESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseISt6vectorI8segmentsSaIS1_EESaIS3_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseISt6vectorI8segmentsSaIS1_EESaIS3_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt6vectorI8segmentsSaIS1_EESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!27 = !{!"_ZTS7segment", !19, i64 0, !13, i64 4, !12, i64 8}
!28 = !{!"_ZTSSt6vectorIiSaIiEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!32 = !{!"_ZTSSt6vectorI9poroRangeSaIS0_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseI9poroRangeSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseI9poroRangeSaIS0_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI9poroRangeSaIS0_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!36 = !{!"_ZTS11voxelImageTIhE", !37, i64 0, !38, i64 8, !21, i64 64, !21, i64 88}
!37 = !{!"_ZTS15voxelImageTBase"}
!38 = !{!"_ZTS10voxelFieldIhE", !22, i64 8, !39, i64 16, !40, i64 32}
!39 = !{!"_ZTS4var3IiE", !19, i64 0, !19, i64 4, !19, i64 8}
!40 = !{!"_ZTSSt6vectorIhSaIhEE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!44 = !{!6, !19, i64 128}
!45 = distinct !{!45, !46, !47}
!46 = !{!"llvm.loop.mustprogress"}
!47 = !{!"llvm.loop.unswitch.partial.disable"}
!48 = !{!49, !19, i64 8}
!49 = !{!"_ZTS8segments", !12, i64 0, !19, i64 8}
!50 = !{!49, !12, i64 0}
!51 = distinct !{!51, !46}
!52 = !{!27, !19, i64 0}
!53 = distinct !{!53, !46}
!54 = !{!19, !19, i64 0}
!55 = distinct !{!55, !46}


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