; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnextract/medialSurf.ll (ZN13medialSurface15buildvoxelspaceEv)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%class.medialSurface = type <{ ptr, i32, i32, i32, [4 x i8], i64, i64, ptr, %class.segment, %"class.std::vector", %"class.std::vector.0", %class.medialBall, float, [4 x i8], double, double, double, double, double, double, i32, [4 x i8], double, float, [4 x i8] }>
%class.segment = type { i32, i8, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<voxel, std::allocator<voxel>>::_Vector_impl" }
%"struct.std::_Vector_base<voxel, std::allocator<voxel>>::_Vector_impl" = type { %"struct.std::_Vector_base<voxel, std::allocator<voxel>>::_Vector_impl_data" }
%"struct.std::_Vector_base<voxel, std::allocator<voxel>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<medialBall, std::allocator<medialBall>>::_Vector_impl" }
%"struct.std::_Vector_base<medialBall, std::allocator<medialBall>>::_Vector_impl" = type { %"struct.std::_Vector_base<medialBall, std::allocator<medialBall>>::_Vector_impl_data" }
%"struct.std::_Vector_base<medialBall, std::allocator<medialBall>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.medialBall = type { ptr, float, float, float, i16, float, i16, i16, i16, i16, i16, ptr, ptr, ptr }
%class.inputDataNE = type { %class.InputFile.base, i32, i32, i32, i32, double, %class.var3.10, %"class.std::__cxx11::basic_string", i64, %"class.std::__cxx11::basic_string", %"class.std::vector.21", %class.segment, %"class.std::vector.44", %"class.std::vector.49", %class.voxelImageT }
%class.InputFile.base = type <{ %"class.std::vector.36", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i8 }>
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = 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.10 = 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.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = 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.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = 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.std::vector.49" = type { %"struct.std::_Vector_base.50" }
%"struct.std::_Vector_base.50" = 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.10, %class.var3.10 }
%class.voxelImageTBase = type { ptr }
%class.voxelField = type { ptr, i64, %class.var3, %"class.std::vector.5" }
%class.var3 = type { i32, i32, i32 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.poroRange = type { %"struct.std::pair", %"class.std::__cxx11::basic_string" }
%"struct.std::pair" = type { i8, i8 }
%class.segments = type <{ ptr, i32, [4 x i8] }>
%class.voxel = type <{ ptr, i16, i16, i16, [2 x i8], float, [4 x i8] }>

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.40 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [9 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

; 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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13medialSurface15buildvoxelspaceEv(ptr noundef nonnull align 8 dereferenceable(252) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %17 = load ptr, ptr %2, align 8
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.40)
  %19 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %class.inputDataNE, ptr %20, i32 0, i32 13
  %22 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI9poroRangeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0) #7
  %23 = getelementptr inbounds %class.poroRange, ptr %22, i32 0, i32 1
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(32) %23)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @.str.41)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.42)
  %28 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 5
  %29 = load i64, ptr %28, align 8, !tbaa !26
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %29)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @.str.43)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef 0)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout)
  %34 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 9
  %35 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 5
  %36 = load i64, ptr %35, align 8, !tbaa !26
  call void @_ZNSt6vectorI5voxelSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %37 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 9
  %38 = call ptr @_ZNSt6vectorI5voxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #7
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %3, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !27
  br label %40

40:                                               ; preds = %129, %1
  %41 = load i32, ptr %4, align 4, !tbaa !27
  %42 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 3
  %43 = load i32, ptr %42, align 8, !tbaa !28
  %44 = icmp slt i32 %41, %43
  br i1 %44, label %46, label %45

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

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !27
  br label %47

47:                                               ; preds = %125, %46
  %48 = load i32, ptr %6, align 4, !tbaa !27
  %49 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 2
  %50 = load i32, ptr %49, align 4, !tbaa !29
  %51 = icmp slt i32 %48, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %47
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %128

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %54 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 7
  %55 = load ptr, ptr %54, align 8, !tbaa !30
  %56 = load i32, ptr %4, align 4, !tbaa !27
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I8segmentsSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %57) #7
  %59 = load i32, ptr %6, align 4, !tbaa !27
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI8segmentsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #7
  store ptr %61, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !27
  br label %62

62:                                               ; preds = %121, %53
  %63 = load i32, ptr %8, align 4, !tbaa !27
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %class.segments, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !31
  %67 = icmp slt i32 %63, %66
  br i1 %67, label %69, label %68

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

69:                                               ; preds = %62
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %class.segments, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !33
  %73 = load i32, ptr %8, align 4, !tbaa !27
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %class.segment, ptr %72, i64 %74
  %76 = getelementptr inbounds %class.segment, ptr %75, i32 0, i32 1
  %77 = load i8, ptr %76, align 4, !tbaa !34
  %78 = zext i8 %77 to i32
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %120

80:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.segments, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !33
  %84 = load i32, ptr %8, align 4, !tbaa !27
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %class.segment, ptr %83, i64 %85
  %87 = getelementptr inbounds %class.segment, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !35
  store i32 %88, ptr %9, align 4, !tbaa !27
  br label %89

89:                                               ; preds = %116, %80
  %90 = load i32, ptr %9, align 4, !tbaa !27
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %class.segments, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !33
  %94 = load i32, ptr %8, align 4, !tbaa !27
  %95 = add nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %class.segment, ptr %93, i64 %96
  %98 = getelementptr inbounds %class.segment, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 8, !tbaa !35
  %100 = icmp slt i32 %90, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %89
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %119

102:                                              ; preds = %89
  %103 = load i32, ptr %9, align 4, !tbaa !27
  %104 = trunc i32 %103 to i16
  %105 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %106 = getelementptr inbounds %class.voxel, ptr %105, i32 0, i32 1
  store i16 %104, ptr %106, align 8, !tbaa !36
  %107 = load i32, ptr %6, align 4, !tbaa !27
  %108 = trunc i32 %107 to i16
  %109 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %110 = getelementptr inbounds %class.voxel, ptr %109, i32 0, i32 2
  store i16 %108, ptr %110, align 2, !tbaa !38
  %111 = load i32, ptr %4, align 4, !tbaa !27
  %112 = trunc i32 %111 to i16
  %113 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %114 = getelementptr inbounds %class.voxel, ptr %113, i32 0, i32 3
  store i16 %112, ptr %114, align 4, !tbaa !39
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br label %116

116:                                              ; preds = %102
  %117 = load i32, ptr %9, align 4, !tbaa !27
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %9, align 4, !tbaa !27
  br label %89, !llvm.loop !40

119:                                              ; preds = %101
  br label %120

120:                                              ; preds = %119, %69
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %8, align 4, !tbaa !27
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %8, align 4, !tbaa !27
  br label %62, !llvm.loop !42

124:                                              ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %6, align 4, !tbaa !27
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %6, align 4, !tbaa !27
  br label %47, !llvm.loop !43

128:                                              ; preds = %52
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %4, align 4, !tbaa !27
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %4, align 4, !tbaa !27
  br label %40, !llvm.loop !44

132:                                              ; preds = %45
  %133 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 5
  %134 = load i64, ptr %133, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %135 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 9
  %136 = call ptr @_ZNSt6vectorI5voxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #7
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = call noundef i64 @_ZN9__gnu_cxxmiIP5voxelSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  %139 = icmp ne i64 %134, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br i1 %139, label %140, label %149

140:                                              ; preds = %132
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.44)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %142 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 9
  %143 = call ptr @_ZNSt6vectorI5voxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #7
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %143, ptr %144, align 8
  %145 = call noundef i64 @_ZN9__gnu_cxxmiIP5voxelSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %141, i64 noundef %145)
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef @.str.45)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %149

149:                                              ; preds = %140, %132
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %151 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 9
  %152 = call ptr @_ZNSt6vectorI5voxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #7
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !27
  br label %154

154:                                              ; preds = %232, %149
  %155 = load i32, ptr %13, align 4, !tbaa !27
  %156 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 3
  %157 = load i32, ptr %156, align 8, !tbaa !28
  %158 = icmp slt i32 %155, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %154
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %235

160:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !27
  br label %161

161:                                              ; preds = %228, %160
  %162 = load i32, ptr %14, align 4, !tbaa !27
  %163 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 2
  %164 = load i32, ptr %163, align 4, !tbaa !29
  %165 = icmp slt i32 %162, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %161
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %231

167:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %168 = getelementptr inbounds %class.medialSurface, ptr %17, i32 0, i32 7
  %169 = load ptr, ptr %168, align 8, !tbaa !30
  %170 = load i32, ptr %13, align 4, !tbaa !27
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I8segmentsSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef %171) #7
  %173 = load i32, ptr %14, align 4, !tbaa !27
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI8segmentsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174) #7
  store ptr %175, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !27
  br label %176

176:                                              ; preds = %224, %167
  %177 = load i32, ptr %16, align 4, !tbaa !27
  %178 = load ptr, ptr %15, align 8, !tbaa !5
  %179 = getelementptr inbounds %class.segments, ptr %178, i32 0, i32 1
  %180 = load i32, ptr %179, align 8, !tbaa !31
  %181 = icmp slt i32 %177, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %176
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %227

183:                                              ; preds = %176
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = getelementptr inbounds %class.segments, ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !33
  %187 = load i32, ptr %16, align 4, !tbaa !27
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds %class.segment, ptr %186, i64 %188
  %190 = getelementptr inbounds %class.segment, ptr %189, i32 0, i32 1
  %191 = load i8, ptr %190, align 4, !tbaa !34
  %192 = zext i8 %191 to i32
  %193 = icmp eq i32 %192, 0
  br i1 %193, label %194, label %223

194:                                              ; preds = %183
  %195 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = getelementptr inbounds %class.segments, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !33
  %199 = load i32, ptr %16, align 4, !tbaa !27
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds %class.segment, ptr %198, i64 %200
  %202 = getelementptr inbounds %class.segment, ptr %201, i32 0, i32 2
  store ptr %195, ptr %202, align 8, !tbaa !46
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = getelementptr inbounds %class.segments, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !33
  %206 = load i32, ptr %16, align 4, !tbaa !27
  %207 = add nsw i32 %206, 1
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds %class.segment, ptr %205, i64 %208
  %210 = getelementptr inbounds %class.segment, ptr %209, i32 0, i32 0
  %211 = load i32, ptr %210, align 8, !tbaa !35
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = getelementptr inbounds %class.segments, ptr %212, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8, !tbaa !33
  %215 = load i32, ptr %16, align 4, !tbaa !27
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds %class.segment, ptr %214, i64 %216
  %218 = getelementptr inbounds %class.segment, ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 8, !tbaa !35
  %220 = sub nsw i32 %211, %219
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEpLEl(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %221) #7
  br label %223

223:                                              ; preds = %194, %183
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %16, align 4, !tbaa !27
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %16, align 4, !tbaa !27
  br label %176, !llvm.loop !47

227:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %14, align 4, !tbaa !27
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %14, align 4, !tbaa !27
  br label %161, !llvm.loop !48

231:                                              ; preds = %166
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %13, align 4, !tbaa !27
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %13, align 4, !tbaa !27
  br label %154, !llvm.loop !49

235:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret void
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIP5voxelSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEpLEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4 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 = { "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 = { 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS13medialSurface", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !13, i64 48, !14, i64 64, !18, i64 88, !22, i64 112, !23, i64 176, !25, i64 184, !25, i64 192, !25, i64 200, !25, i64 208, !25, i64 216, !25, i64 224, !11, i64 232, !25, i64 240, !23, i64 248}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTS7segment", !11, i64 0, !7, i64 4, !6, i64 8}
!14 = !{!"_ZTSSt6vectorI5voxelSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseI5voxelSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI5voxelSaIS0_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI5voxelSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorI10medialBallSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI10medialBallSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI10medialBallSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI10medialBallSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTS10medialBall", !6, i64 0, !23, i64 8, !23, i64 12, !23, i64 16, !24, i64 20, !23, i64 24, !24, i64 28, !24, i64 30, !24, i64 32, !24, i64 34, !24, i64 36, !6, i64 40, !6, i64 48, !6, i64 56}
!23 = !{!"float", !7, i64 0}
!24 = !{!"short", !7, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = !{!10, !12, i64 24}
!27 = !{!11, !11, i64 0}
!28 = !{!10, !11, i64 16}
!29 = !{!10, !11, i64 12}
!30 = !{!10, !6, i64 40}
!31 = !{!32, !11, i64 8}
!32 = !{!"_ZTS8segments", !6, i64 0, !11, i64 8}
!33 = !{!32, !6, i64 0}
!34 = !{!13, !7, i64 4}
!35 = !{!13, !11, i64 0}
!36 = !{!37, !24, i64 8}
!37 = !{!"_ZTS5voxel", !6, i64 0, !24, i64 8, !24, i64 10, !24, i64 12, !23, i64 16}
!38 = !{!37, !24, i64 10}
!39 = !{!37, !24, i64 12}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}
!43 = distinct !{!43, !41}
!44 = distinct !{!44, !41}
!45 = !{i64 0, i64 8, !5}
!46 = !{!13, !6, i64 8}
!47 = distinct !{!47, !41}
!48 = distinct !{!48, !41}
!49 = distinct !{!49, !41}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%class.segment = type { i32, i8, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.40 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [9 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

; 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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13medialSurface15buildvoxelspaceEv(ptr noundef nonnull align 8 dereferenceable(252) %0) local_unnamed_addr #3 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.40)
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 312
  %8 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorI9poroRangeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #6
  %9 = getelementptr inbounds i8, ptr %8, i64 8
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(32) %9)
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @.str.41)
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.42)
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load i64, ptr %14, align 8, !tbaa !25
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %15)
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.43)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 0)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSo5flushEv(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout)
  %20 = getelementptr inbounds i8, ptr %0, i64 64
  %21 = load i64, ptr %14, align 8, !tbaa !25
  tail call void @_ZNSt6vectorI5voxelSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %22 = tail call ptr @_ZNSt6vectorI5voxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  store ptr %22, ptr %2, align 8
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load i32, ptr %23, align 8, !tbaa !26
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.preheader43.lr.ph, label %._crit_edge51

.preheader43.lr.ph:                               ; preds = %1
  %26 = getelementptr inbounds i8, ptr %0, i64 12
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load i32, ptr %26, align 4, !tbaa !27
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.preheader43, label %._crit_edge51

.preheader43:                                     ; preds = %.preheader43.lr.ph, %._crit_edge49
  %30 = phi i32 [ %37, %._crit_edge49 ], [ %24, %.preheader43.lr.ph ]
  %31 = phi i32 [ %38, %._crit_edge49 ], [ %28, %.preheader43.lr.ph ]
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %._crit_edge49 ], [ 0, %.preheader43.lr.ph ]
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %.preheader43
  %33 = trunc i64 %indvars.iv67 to i16
  br label %41

._crit_edge51:                                    ; preds = %._crit_edge49, %.preheader43.lr.ph, %1
  %34 = load i64, ptr %14, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %35 = call ptr @_ZNSt6vectorI5voxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  store ptr %35, ptr %3, align 8
  %36 = call noundef i64 @_ZN9__gnu_cxxmiIP5voxelSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %.not = icmp eq i64 %34, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br i1 %.not, label %92, label %85

._crit_edge49.loopexit:                           ; preds = %._crit_edge
  %.pre80 = load i32, ptr %23, align 8, !tbaa !26
  br label %._crit_edge49

._crit_edge49:                                    ; preds = %._crit_edge49.loopexit, %.preheader43
  %37 = phi i32 [ %.pre80, %._crit_edge49.loopexit ], [ %30, %.preheader43 ]
  %38 = phi i32 [ %49, %._crit_edge49.loopexit ], [ %31, %.preheader43 ]
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  %39 = sext i32 %37 to i64
  %40 = icmp slt i64 %indvars.iv.next68, %39
  br i1 %40, label %.preheader43, label %._crit_edge51, !llvm.loop !28

41:                                               ; preds = %.lr.ph48, %._crit_edge
  %indvars.iv64 = phi i64 [ 0, %.lr.ph48 ], [ %indvars.iv.next65, %._crit_edge ]
  %42 = load ptr, ptr %27, align 8, !tbaa !31
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I8segmentsSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %indvars.iv67) #6
  %44 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI8segmentsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %indvars.iv64) #6
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load i32, ptr %45, align 8, !tbaa !32
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph46, label %._crit_edge

.lr.ph46:                                         ; preds = %41
  %48 = trunc i64 %indvars.iv64 to i16
  %.pre = load ptr, ptr %44, align 8, !tbaa !34
  br label %52

._crit_edge:                                      ; preds = %.loopexit, %41
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %49 = load i32, ptr %26, align 4, !tbaa !27
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next65, %50
  br i1 %51, label %41, label %._crit_edge49.loopexit, !llvm.loop !35

52:                                               ; preds = %.lr.ph46, %.loopexit
  %53 = phi i32 [ %46, %.lr.ph46 ], [ %80, %.loopexit ]
  %54 = phi ptr [ %.pre, %.lr.ph46 ], [ %81, %.loopexit ]
  %55 = phi ptr [ %.pre, %.lr.ph46 ], [ %82, %.loopexit ]
  %indvars.iv = phi i64 [ 0, %.lr.ph46 ], [ %indvars.iv.next, %.loopexit ]
  %56 = getelementptr inbounds %class.segment, ptr %55, i64 %indvars.iv
  %57 = getelementptr inbounds i8, ptr %56, i64 4
  %58 = load i8, ptr %57, align 4, !tbaa !36
  %59 = icmp eq i8 %58, 0
  br i1 %59, label %60, label %.loopexit

60:                                               ; preds = %52
  %61 = load i32, ptr %56, align 8, !tbaa !37
  %62 = getelementptr inbounds %class.segment, ptr %54, i64 %indvars.iv
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %64 = load i32, ptr %63, align 8, !tbaa !37
  %65 = icmp slt i32 %61, %64
  br i1 %65, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %60, %.lr.ph
  %.04044 = phi i32 [ %74, %.lr.ph ], [ %61, %60 ]
  %66 = trunc i32 %.04044 to i16
  %67 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  store i16 %66, ptr %68, align 8, !tbaa !38
  %69 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %70 = getelementptr inbounds i8, ptr %69, i64 10
  store i16 %48, ptr %70, align 2, !tbaa !40
  %71 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %72 = getelementptr inbounds i8, ptr %71, i64 12
  store i16 %33, ptr %72, align 4, !tbaa !41
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %74 = add nsw i32 %.04044, 1
  %75 = load ptr, ptr %44, align 8, !tbaa !34
  %76 = getelementptr inbounds %class.segment, ptr %75, i64 %indvars.iv
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  %78 = load i32, ptr %77, align 8, !tbaa !37
  %79 = icmp slt i32 %74, %78
  br i1 %79, label %.lr.ph, label %.loopexit.loopexit, !llvm.loop !42

.loopexit.loopexit:                               ; preds = %.lr.ph
  %.pre79 = load i32, ptr %45, align 8, !tbaa !32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %60, %52
  %80 = phi i32 [ %.pre79, %.loopexit.loopexit ], [ %53, %60 ], [ %53, %52 ]
  %81 = phi ptr [ %75, %.loopexit.loopexit ], [ %54, %60 ], [ %54, %52 ]
  %82 = phi ptr [ %75, %.loopexit.loopexit ], [ %54, %60 ], [ %55, %52 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %83 = sext i32 %80 to i64
  %84 = icmp slt i64 %indvars.iv.next, %83
  br i1 %84, label %52, label %._crit_edge, !llvm.loop !43

85:                                               ; preds = %._crit_edge51
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.44)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %87 = call ptr @_ZNSt6vectorI5voxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  store ptr %87, ptr %4, align 8
  %88 = call noundef i64 @_ZN9__gnu_cxxmiIP5voxelSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %86, i64 noundef %88)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @.str.45)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %92

92:                                               ; preds = %85, %._crit_edge51
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %94 = call ptr @_ZNSt6vectorI5voxelSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  store ptr %94, ptr %2, align 8, !tbaa !44
  %95 = load i32, ptr %23, align 8, !tbaa !26
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %.preheader.lr.ph, label %._crit_edge60

.preheader.lr.ph:                                 ; preds = %92
  %97 = getelementptr inbounds i8, ptr %0, i64 12
  %98 = getelementptr inbounds i8, ptr %0, i64 40
  %99 = load i32, ptr %97, align 4, !tbaa !27
  %100 = icmp sgt i32 %99, 0
  br i1 %100, label %.preheader, label %._crit_edge60

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge58
  %101 = phi i32 [ %104, %._crit_edge58 ], [ %95, %.preheader.lr.ph ]
  %102 = phi i32 [ %105, %._crit_edge58 ], [ %99, %.preheader.lr.ph ]
  %indvars.iv76 = phi i64 [ %indvars.iv.next77, %._crit_edge58 ], [ 0, %.preheader.lr.ph ]
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %.lr.ph57, label %._crit_edge58

._crit_edge60:                                    ; preds = %._crit_edge58, %.preheader.lr.ph, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void

._crit_edge58.loopexit:                           ; preds = %._crit_edge55
  %.pre82 = load i32, ptr %23, align 8, !tbaa !26
  br label %._crit_edge58

._crit_edge58:                                    ; preds = %._crit_edge58.loopexit, %.preheader
  %104 = phi i32 [ %.pre82, %._crit_edge58.loopexit ], [ %101, %.preheader ]
  %105 = phi i32 [ %114, %._crit_edge58.loopexit ], [ %102, %.preheader ]
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %106 = sext i32 %104 to i64
  %107 = icmp slt i64 %indvars.iv.next77, %106
  br i1 %107, label %.preheader, label %._crit_edge60, !llvm.loop !45

.lr.ph57:                                         ; preds = %.preheader, %._crit_edge55
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %._crit_edge55 ], [ 0, %.preheader ]
  %108 = load ptr, ptr %98, align 8, !tbaa !31
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I8segmentsSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %indvars.iv76) #6
  %110 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI8segmentsSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %indvars.iv73) #6
  %111 = getelementptr inbounds i8, ptr %110, i64 8
  %112 = load i32, ptr %111, align 8, !tbaa !32
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %.lr.ph54, label %._crit_edge55

._crit_edge55:                                    ; preds = %133, %.lr.ph57
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %114 = load i32, ptr %97, align 4, !tbaa !27
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next74, %115
  br i1 %116, label %.lr.ph57, label %._crit_edge58.loopexit, !llvm.loop !46

.lr.ph54:                                         ; preds = %.lr.ph57, %133
  %117 = phi i32 [ %134, %133 ], [ %112, %.lr.ph57 ]
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %133 ], [ 0, %.lr.ph57 ]
  %118 = load ptr, ptr %110, align 8, !tbaa !34
  %119 = getelementptr inbounds %class.segment, ptr %118, i64 %indvars.iv70, i32 1
  %120 = load i8, ptr %119, align 4, !tbaa !36
  %121 = icmp eq i8 %120, 0
  br i1 %121, label %122, label %133

122:                                              ; preds = %.lr.ph54
  %123 = call noundef nonnull align 8 dereferenceable(20) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %124 = load ptr, ptr %110, align 8, !tbaa !34
  %125 = getelementptr inbounds %class.segment, ptr %124, i64 %indvars.iv70, i32 2
  store ptr %123, ptr %125, align 8, !tbaa !47
  %126 = getelementptr inbounds %class.segment, ptr %124, i64 %indvars.iv70
  %127 = getelementptr inbounds i8, ptr %126, i64 16
  %128 = load i32, ptr %127, align 8, !tbaa !37
  %129 = load i32, ptr %126, align 8, !tbaa !37
  %130 = sub nsw i32 %128, %129
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEpLEl(ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %131) #6
  %.pre81 = load i32, ptr %111, align 8, !tbaa !32
  br label %133

133:                                              ; preds = %.lr.ph54, %122
  %134 = phi i32 [ %117, %.lr.ph54 ], [ %.pre81, %122 ]
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %135 = sext i32 %134 to i64
  %136 = icmp slt i64 %indvars.iv.next71, %135
  br i1 %136, label %.lr.ph54, label %._crit_edge55, !llvm.loop !48
}

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIP5voxelSt6vectorIS1_SaIS1_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS9_SC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP5voxelSt6vectorIS1_SaIS1_EEEpLEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 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 = { "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 = { 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 = { 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 #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, !7, i64 0}
!6 = !{!"_ZTS13medialSurface", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !12, i64 48, !13, i64 64, !17, i64 88, !21, i64 112, !22, i64 176, !24, i64 184, !24, i64 192, !24, i64 200, !24, i64 208, !24, i64 216, !24, i64 224, !10, i64 232, !24, i64 240, !22, i64 248}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTS7segment", !10, i64 0, !8, i64 4, !7, i64 8}
!13 = !{!"_ZTSSt6vectorI5voxelSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI5voxelSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI5voxelSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI5voxelSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!17 = !{!"_ZTSSt6vectorI10medialBallSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI10medialBallSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI10medialBallSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI10medialBallSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!21 = !{!"_ZTS10medialBall", !7, i64 0, !22, i64 8, !22, i64 12, !22, i64 16, !23, i64 20, !22, i64 24, !23, i64 28, !23, i64 30, !23, i64 32, !23, i64 34, !23, i64 36, !7, i64 40, !7, i64 48, !7, i64 56}
!22 = !{!"float", !8, i64 0}
!23 = !{!"short", !8, i64 0}
!24 = !{!"double", !8, i64 0}
!25 = !{!6, !11, i64 24}
!26 = !{!6, !10, i64 16}
!27 = !{!6, !10, i64 12}
!28 = distinct !{!28, !29, !30}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!"llvm.loop.unswitch.partial.disable"}
!31 = !{!6, !7, i64 40}
!32 = !{!33, !10, i64 8}
!33 = !{!"_ZTS8segments", !7, i64 0, !10, i64 8}
!34 = !{!33, !7, i64 0}
!35 = distinct !{!35, !29}
!36 = !{!12, !8, i64 4}
!37 = !{!12, !10, i64 0}
!38 = !{!39, !23, i64 8}
!39 = !{!"_ZTS5voxel", !7, i64 0, !23, i64 8, !23, i64 10, !23, i64 12, !22, i64 16}
!40 = !{!39, !23, i64 10}
!41 = !{!39, !23, i64 12}
!42 = distinct !{!42, !29}
!43 = distinct !{!43, !29}
!44 = !{!7, !7, i64 0}
!45 = distinct !{!45, !29, !30}
!46 = distinct !{!46, !29}
!47 = !{!12, !7, i64 8}
!48 = distinct !{!48, !29}


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