; LLVM IR from yuanming-hu/taichi_mpm :: external/partio/src/core/Particle.ll (ZN6Partio5printEPKNS_13ParticlesDataE)

; 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.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl" }
%"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Partio::ParticleAttribute" = type <{ i32, i32, %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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.Partio::ParticleIterator" = type { ptr, i64, i64, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl" }
%"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl" = type { %"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Partio::ParticleAccessor" = type { i32, ptr, i32, i32, i32, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 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: mustprogress uwtable
define dso_local void @_ZN6Partio5printEPKNS_13ParticlesDataE(ptr noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.13", align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.Partio::ParticleAttribute", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.Partio::ParticleIterator", align 8
  %12 = alloca %"class.Partio::ParticleIterator", align 8
  %13 = alloca %"class.std::vector.31", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.Partio::ParticleAccessor", align 8
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 4
  %27 = load ptr, ptr %26, align 8
  %28 = call noundef i32 %27(ptr noundef nonnull align 8 dereferenceable(8) %24)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef %28)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds ptr, ptr %33, i64 3
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef i32 %35(ptr noundef nonnull align 8 dereferenceable(8) %32)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %31, i32 noundef %36)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %81, %1
  %40 = load i32, ptr %4, align 4, !tbaa !11
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %42, i64 3
  %44 = load ptr, ptr %43, align 8
  %45 = invoke noundef i32 %44(ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %46 unwind label %49

46:                                               ; preds = %39
  %47 = icmp slt i32 %40, %45
  br i1 %47, label %53, label %48

48:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %89

49:                                               ; preds = %39
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %5, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %6, align 4
  br label %88

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #6
  call void @_ZN6Partio17ParticleAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7) #6
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !11
  %56 = load ptr, ptr %54, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 6
  %58 = load ptr, ptr %57, align 8
  %59 = invoke noundef zeroext i1 %58(ptr noundef nonnull align 8 dereferenceable(8) %54, i32 noundef %55, ptr noundef nonnull align 8 dereferenceable(44) %7)
          to label %60 unwind label %84

60:                                               ; preds = %53
  invoke void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(44) %7)
          to label %61 unwind label %84

61:                                               ; preds = %60
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %63 unwind label %84

63:                                               ; preds = %61
  %64 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %7, i32 0, i32 2
  %65 = invoke 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) %62, ptr noundef nonnull align 8 dereferenceable(32) %64)
          to label %66 unwind label %84

66:                                               ; preds = %63
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.8)
          to label %68 unwind label %84

68:                                               ; preds = %66
  %69 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %7, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !13
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %67, i32 noundef %70)
          to label %72 unwind label %84

72:                                               ; preds = %68
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @.str.8)
          to label %74 unwind label %84

74:                                               ; preds = %72
  %75 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %7, i32 0, i32 1
  %76 = load i32, ptr %75, align 4, !tbaa !19
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %73, i32 noundef %76)
          to label %78 unwind label %84

78:                                               ; preds = %74
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %80 unwind label %84

80:                                               ; preds = %78
  call void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %4, align 4, !tbaa !11
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %4, align 4, !tbaa !11
  br label %39, !llvm.loop !20

84:                                               ; preds = %78, %74, %72, %68, %66, %63, %61, %60, %53
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  call void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %7) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #6
  br label %88

88:                                               ; preds = %84, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %300

89:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 10, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = getelementptr inbounds ptr, ptr %91, i64 4
  %93 = load ptr, ptr %92, align 8
  %94 = invoke noundef i32 %93(ptr noundef nonnull align 8 dereferenceable(8) %90)
          to label %95 unwind label %115

95:                                               ; preds = %89
  store i32 %94, ptr %10, align 4, !tbaa !11
  %96 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %97 unwind label %115

97:                                               ; preds = %95
  %98 = load i32, ptr %96, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  store i32 %98, ptr %8, align 4, !tbaa !11
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
          to label %100 unwind label %119

100:                                              ; preds = %97
  %101 = load i32, ptr %8, align 4, !tbaa !11
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %99, i32 noundef %101)
          to label %103 unwind label %119

103:                                              ; preds = %100
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %105 unwind label %119

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZNK6Partio13ParticlesData5beginEv(ptr dead_on_unwind writable sret(%"class.Partio::ParticleIterator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %106)
          to label %107 unwind label %123

107:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #6
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZNK6Partio13ParticlesData3endEv(ptr dead_on_unwind writable sret(%"class.Partio::ParticleIterator") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %108)
          to label %109 unwind label %127

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !22
  br label %110

110:                                              ; preds = %136, %109
  %111 = load i64, ptr %14, align 8, !tbaa !22
  %112 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %113 = icmp ult i64 %111, %112
  br i1 %113, label %131, label %114

114:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %143

115:                                              ; preds = %95, %89
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %5, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %299

119:                                              ; preds = %103, %100, %97
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %5, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %6, align 4
  br label %299

123:                                              ; preds = %105
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %5, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %6, align 4
  br label %298

127:                                              ; preds = %107
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %5, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %6, align 4
  br label %297

131:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #6
  %132 = load i64, ptr %14, align 8, !tbaa !22
  %133 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %132) #6
  invoke void @_ZN6Partio16ParticleAccessorC2ERKNS_17ParticleAttributeE(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(44) %133)
          to label %134 unwind label %139

134:                                              ; preds = %131
  invoke void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %135 unwind label %139

135:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  br label %136

136:                                              ; preds = %135
  %137 = load i64, ptr %14, align 8, !tbaa !22
  %138 = add i64 %137, 1
  store i64 %138, ptr %14, align 8, !tbaa !22
  br label %110, !llvm.loop !23

139:                                              ; preds = %134, %131
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %5, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %296

143:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 0, ptr %16, align 8, !tbaa !22
  br label %144

144:                                              ; preds = %153, %143
  %145 = load i64, ptr %16, align 8, !tbaa !22
  %146 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %147 = icmp ult i64 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %160

149:                                              ; preds = %144
  %150 = load i64, ptr %16, align 8, !tbaa !22
  %151 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %150) #6
  invoke void @_ZN6Partio16ParticleIteratorILb1EE11addAccessorERNS_16ParticleAccessorE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(40) %151)
          to label %152 unwind label %156

152:                                              ; preds = %149
  br label %153

153:                                              ; preds = %152
  %154 = load i64, ptr %16, align 8, !tbaa !22
  %155 = add i64 %154, 1
  store i64 %155, ptr %16, align 8, !tbaa !22
  br label %144, !llvm.loop !24

156:                                              ; preds = %149
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %5, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %296

160:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %161

161:                                              ; preds = %291, %160
  %162 = load i32, ptr %17, align 4, !tbaa !11
  %163 = load i32, ptr %8, align 4, !tbaa !11
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %165, label %168

165:                                              ; preds = %161
  %166 = invoke noundef zeroext i1 @_ZN6Partio16ParticleIteratorILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %167 unwind label %171

167:                                              ; preds = %165
  br label %168

168:                                              ; preds = %167, %161
  %169 = phi i1 [ false, %161 ], [ %166, %167 ]
  br i1 %169, label %175, label %170

170:                                              ; preds = %168
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %295

171:                                              ; preds = %288, %178, %175, %165
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %5, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %6, align 4
  br label %294

175:                                              ; preds = %168
  %176 = load i32, ptr %17, align 4, !tbaa !11
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %176)
          to label %178 unwind label %171

178:                                              ; preds = %175
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef @.str.10)
          to label %180 unwind label %171

180:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %181

181:                                              ; preds = %284, %180
  %182 = load i32, ptr %19, align 4, !tbaa !11
  %183 = zext i32 %182 to i64
  %184 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %185 = icmp ult i64 %183, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %181
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %288

187:                                              ; preds = %181
  %188 = load i32, ptr %19, align 4, !tbaa !11
  %189 = zext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %189) #6
  %191 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %190, i32 0, i32 0
  %192 = load i32, ptr %191, align 8, !tbaa !13
  switch i32 %192, label %283 [
    i32 0, label %283
    i32 2, label %193
    i32 1, label %193
    i32 3, label %223
    i32 4, label %253
  ]

193:                                              ; preds = %187, %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %194

194:                                              ; preds = %215, %193
  %195 = load i32, ptr %20, align 4, !tbaa !11
  %196 = load i32, ptr %19, align 4, !tbaa !11
  %197 = zext i32 %196 to i64
  %198 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %197) #6
  %199 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %198, i32 0, i32 1
  %200 = load i32, ptr %199, align 4, !tbaa !19
  %201 = icmp slt i32 %195, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %194
  store i32 18, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %222

203:                                              ; preds = %194
  %204 = load i32, ptr %19, align 4, !tbaa !11
  %205 = zext i32 %204 to i64
  %206 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %205) #6
  %207 = invoke noundef ptr @_ZN6Partio16ParticleAccessor3rawIfNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40) %206, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %208 unwind label %218

208:                                              ; preds = %203
  %209 = load i32, ptr %20, align 4, !tbaa !11
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds float, ptr %207, i64 %210
  %212 = load float, ptr %211, align 4, !tbaa !25
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %212)
          to label %214 unwind label %218

214:                                              ; preds = %208
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %20, align 4, !tbaa !11
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %20, align 4, !tbaa !11
  br label %194, !llvm.loop !27

218:                                              ; preds = %208, %203
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %5, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %287

222:                                              ; preds = %202
  br label %283

223:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %224

224:                                              ; preds = %245, %223
  %225 = load i32, ptr %21, align 4, !tbaa !11
  %226 = load i32, ptr %19, align 4, !tbaa !11
  %227 = zext i32 %226 to i64
  %228 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %227) #6
  %229 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %228, i32 0, i32 1
  %230 = load i32, ptr %229, align 4, !tbaa !19
  %231 = icmp slt i32 %225, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %224
  store i32 21, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %252

233:                                              ; preds = %224
  %234 = load i32, ptr %19, align 4, !tbaa !11
  %235 = zext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %235) #6
  %237 = invoke noundef ptr @_ZN6Partio16ParticleAccessor3rawIiNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40) %236, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %238 unwind label %248

238:                                              ; preds = %233
  %239 = load i32, ptr %21, align 4, !tbaa !11
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds i32, ptr %237, i64 %240
  %242 = load i32, ptr %241, align 4, !tbaa !11
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %242)
          to label %244 unwind label %248

244:                                              ; preds = %238
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %21, align 4, !tbaa !11
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %21, align 4, !tbaa !11
  br label %224, !llvm.loop !28

248:                                              ; preds = %238, %233
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %5, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %287

252:                                              ; preds = %232
  br label %283

253:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %254

254:                                              ; preds = %275, %253
  %255 = load i32, ptr %22, align 4, !tbaa !11
  %256 = load i32, ptr %19, align 4, !tbaa !11
  %257 = zext i32 %256 to i64
  %258 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %257) #6
  %259 = getelementptr inbounds %"class.Partio::ParticleAttribute", ptr %258, i32 0, i32 1
  %260 = load i32, ptr %259, align 4, !tbaa !19
  %261 = icmp slt i32 %255, %260
  br i1 %261, label %263, label %262

262:                                              ; preds = %254
  store i32 24, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %282

263:                                              ; preds = %254
  %264 = load i32, ptr %19, align 4, !tbaa !11
  %265 = zext i32 %264 to i64
  %266 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %265) #6
  %267 = invoke noundef ptr @_ZN6Partio16ParticleAccessor3rawIiNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40) %266, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %268 unwind label %278

268:                                              ; preds = %263
  %269 = load i32, ptr %22, align 4, !tbaa !11
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds i32, ptr %267, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !11
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %272)
          to label %274 unwind label %278

274:                                              ; preds = %268
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %22, align 4, !tbaa !11
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %22, align 4, !tbaa !11
  br label %254, !llvm.loop !29

278:                                              ; preds = %268, %263
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %5, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %287

282:                                              ; preds = %262
  br label %283

283:                                              ; preds = %282, %252, %222, %187, %187
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %19, align 4, !tbaa !11
  %286 = add i32 %285, 1
  store i32 %286, ptr %19, align 4, !tbaa !11
  br label %181, !llvm.loop !30

287:                                              ; preds = %278, %248, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %294

288:                                              ; preds = %186
  %289 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %290 unwind label %171

290:                                              ; preds = %288
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %17, align 4, !tbaa !11
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %17, align 4, !tbaa !11
  br label %161, !llvm.loop !31

294:                                              ; preds = %287, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %296

295:                                              ; preds = %170
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  ret void

296:                                              ; preds = %294, %156, %139
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %297

297:                                              ; preds = %296, %127
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #6
  br label %298

298:                                              ; preds = %297, %123
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %299

299:                                              ; preds = %298, %119, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %300

300:                                              ; preds = %299, %88
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  br label %301

301:                                              ; preds = %300
  %302 = load ptr, ptr %5, align 8
  %303 = load i32, ptr %6, align 4
  %304 = insertvalue { ptr, i32 } poison, ptr %302, 0
  %305 = insertvalue { ptr, i32 } %304, i32 %303, 1
  resume { ptr, i32 } %305
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 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)) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio17ParticleAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Partio13ParticlesData5beginEv(ptr dead_on_unwind noalias writable sret(%"class.Partio::ParticleIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Partio13ParticlesData3endEv(ptr dead_on_unwind noalias writable sret(%"class.Partio::ParticleIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio16ParticleAccessorC2ERKNS_17ParticleAttributeE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Partio16ParticleIteratorILb1EE11addAccessorERNS_16ParticleAccessorE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Partio16ParticleIteratorILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #1 align 2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { "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, !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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSN6Partio17ParticleAttributeE", !15, i64 0, !12, i64 4, !16, i64 8, !12, i64 40}
!15 = !{!"_ZTSN6Partio21ParticleAttributeTypeE", !7, i64 0}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!14, !12, i64 4}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!18, !18, i64 0}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = !{!26, !26, i64 0}
!26 = !{!"float", !7, i64 0}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}


; 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.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl" }
%"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Partio::ParticleAttribute, std::allocator<Partio::ParticleAttribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Partio::ParticleAttribute" = type <{ i32, i32, %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"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.Partio::ParticleIterator" = type { ptr, i64, i64, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl" }
%"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl" = type { %"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Partio::ParticleAccessor, std::allocator<Partio::ParticleAccessor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Partio::ParticleAccessor" = type { i32, ptr, i32, i32, i32, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 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: mustprogress uwtable
define dso_local void @_ZN6Partio5printEPKNS_13ParticlesDataE(ptr noundef %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.13", align 8
  %3 = alloca %"class.Partio::ParticleAttribute", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.Partio::ParticleIterator", align 8
  %7 = alloca %"class.Partio::ParticleIterator", align 8
  %8 = alloca %"class.std::vector.31", align 8
  %9 = alloca %"struct.Partio::ParticleAccessor", align 8
  %10 = 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.5)
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 32
  %13 = load ptr, ptr %12, align 8
  %14 = tail call noundef i32 %13(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %14)
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %17 = 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.6)
  %18 = load ptr, ptr %0, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 24
  %20 = load ptr, ptr %19, align 8
  %21 = tail call noundef i32 %20(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef %21)
  %23 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %24 = getelementptr inbounds i8, ptr %3, i64 8
  %25 = getelementptr inbounds i8, ptr %3, i64 4
  br label %26

26:                                               ; preds = %62, %1
  %.046 = phi i32 [ 0, %1 ], [ %63, %62 ]
  %27 = load ptr, ptr %0, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 24
  %29 = load ptr, ptr %28, align 8
  %30 = invoke noundef i32 %29(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %31 unwind label %38

31:                                               ; preds = %26
  %32 = icmp slt i32 %.046, %30
  br i1 %32, label %40, label %33

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 10, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %34 = load ptr, ptr %0, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 32
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef i32 %36(ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %66 unwind label %79

38:                                               ; preds = %26
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %176

40:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #6
  call void @_ZN6Partio17ParticleAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(44) %3) #6
  %41 = load ptr, ptr %0, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 48
  %43 = load ptr, ptr %42, align 8
  %44 = invoke noundef zeroext i1 %43(ptr noundef nonnull align 8 dereferenceable(8) %0, i32 noundef %.046, ptr noundef nonnull align 8 dereferenceable(44) %3)
          to label %45 unwind label %64

45:                                               ; preds = %40
  invoke void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(44) %3)
          to label %46 unwind label %64

46:                                               ; preds = %45
  %47 = 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.7)
          to label %48 unwind label %64

48:                                               ; preds = %46
  %49 = invoke 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) %47, ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %50 unwind label %64

50:                                               ; preds = %48
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @.str.8)
          to label %52 unwind label %64

52:                                               ; preds = %50
  %53 = load i32, ptr %3, align 8, !tbaa !11
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %51, i32 noundef %53)
          to label %55 unwind label %64

55:                                               ; preds = %52
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @.str.8)
          to label %57 unwind label %64

57:                                               ; preds = %55
  %58 = load i32, ptr %25, align 4, !tbaa !18
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %56, i32 noundef %58)
          to label %60 unwind label %64

60:                                               ; preds = %57
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %62 unwind label %64

62:                                               ; preds = %60
  call void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #6
  %63 = add nuw nsw i32 %.046, 1
  br label %26, !llvm.loop !19

64:                                               ; preds = %60, %57, %55, %52, %50, %48, %46, %45, %40
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %3) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #6
  br label %176

66:                                               ; preds = %33
  store i32 %37, ptr %5, align 4, !tbaa !8
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %68 = load i32, ptr %67, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %69 = 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.9)
          to label %70 unwind label %81

70:                                               ; preds = %66
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %68)
          to label %72 unwind label %81

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %74 unwind label %81

74:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  invoke void @_ZNK6Partio13ParticlesData5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.Partio::ParticleIterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %75 unwind label %83

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  invoke void @_ZNK6Partio13ParticlesData3endEv(ptr dead_on_unwind nonnull writable sret(%"class.Partio::ParticleIterator") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %0)
          to label %76 unwind label %85

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %77 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.not = icmp eq i64 %77, 0
  br i1 %.not, label %.preheader72, label %.lr.ph

.preheader72:                                     ; preds = %88, %76
  %78 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.not87 = icmp eq i64 %78, 0
  br i1 %.not87, label %.preheader71, label %.lr.ph75

79:                                               ; preds = %33
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %176

81:                                               ; preds = %72, %70, %66
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %176

83:                                               ; preds = %74
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %175

85:                                               ; preds = %75
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %174

.lr.ph:                                           ; preds = %76, %88
  %.04573 = phi i64 [ %89, %88 ], [ 0, %76 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #6
  %87 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04573) #6
  call void @_ZN6Partio16ParticleAccessorC2ERKNS_17ParticleAttributeE(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(44) %87)
  invoke void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %88 unwind label %92

88:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  %89 = add nuw i64 %.04573, 1
  %90 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %.lr.ph, label %.preheader72, !llvm.loop !21

92:                                               ; preds = %.lr.ph
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  br label %173

.preheader71:                                     ; preds = %96, %.preheader72
  %94 = icmp sgt i32 %68, 0
  br i1 %94, label %.lr.ph85, label %.critedge

.lr.ph75:                                         ; preds = %.preheader72, %96
  %.04474 = phi i64 [ %97, %96 ], [ 0, %.preheader72 ]
  %95 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.04474) #6
  invoke void @_ZN6Partio16ParticleIteratorILb1EE11addAccessorERNS_16ParticleAccessorE(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(40) %95)
          to label %96 unwind label %100

96:                                               ; preds = %.lr.ph75
  %97 = add nuw i64 %.04474, 1
  %98 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %99 = icmp ult i64 %97, %98
  br i1 %99, label %.lr.ph75, label %.preheader71, !llvm.loop !22

100:                                              ; preds = %.lr.ph75
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %173

.lr.ph85:                                         ; preds = %.preheader71, %171
  %.04384 = phi i32 [ %172, %171 ], [ 0, %.preheader71 ]
  %102 = invoke noundef zeroext i1 @_ZN6Partio16ParticleIteratorILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %103 unwind label %104

103:                                              ; preds = %.lr.ph85
  br i1 %102, label %106, label %.critedge

.critedge:                                        ; preds = %103, %171, %.preheader71
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret void

104:                                              ; preds = %._crit_edge, %108, %106, %.lr.ph85
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %173

106:                                              ; preds = %103
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.04384)
          to label %108 unwind label %104

108:                                              ; preds = %106
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %107, ptr noundef nonnull @.str.10)
          to label %.preheader70 unwind label %104

.preheader70:                                     ; preds = %108
  %110 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.not88 = icmp eq i64 %110, 0
  br i1 %.not88, label %._crit_edge, label %.lr.ph83

._crit_edge:                                      ; preds = %.loopexit, %.preheader70
  %111 = invoke 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_)
          to label %171 unwind label %104

.lr.ph83:                                         ; preds = %.preheader70, %.loopexit
  %112 = phi i64 [ %168, %.loopexit ], [ 0, %.preheader70 ]
  %.04282 = phi i32 [ %167, %.loopexit ], [ 0, %.preheader70 ]
  %113 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #6
  %114 = load i32, ptr %113, align 8, !tbaa !11
  switch i32 %114, label %.loopexit [
    i32 4, label %.preheader
    i32 2, label %123
    i32 1, label %123
    i32 3, label %.preheader68
  ]

.preheader68:                                     ; preds = %.lr.ph83
  %115 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #6
  %116 = getelementptr inbounds i8, ptr %115, i64 4
  %117 = load i32, ptr %116, align 4, !tbaa !18
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %.lr.ph77, label %.loopexit

.preheader:                                       ; preds = %.lr.ph83
  %119 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #6
  %120 = getelementptr inbounds i8, ptr %119, i64 4
  %121 = load i32, ptr %120, align 4, !tbaa !18
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %.lr.ph81, label %.loopexit

123:                                              ; preds = %.lr.ph83, %.lr.ph83
  %124 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #6
  %125 = getelementptr inbounds i8, ptr %124, i64 4
  %126 = load i32, ptr %125, align 4, !tbaa !18
  %127 = icmp sgt i32 %126, 0
  br i1 %127, label %.lr.ph79, label %.loopexit

.lr.ph79:                                         ; preds = %123, %133
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %133 ], [ 0, %123 ]
  %128 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %112) #6
  %129 = call noundef ptr @_ZN6Partio16ParticleAccessor3rawIfNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40) %128, ptr noundef nonnull align 8 dereferenceable(32) %6)
  %130 = getelementptr inbounds float, ptr %129, i64 %indvars.iv92
  %131 = load float, ptr %130, align 4, !tbaa !23
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, float noundef %131)
          to label %133 unwind label %139

133:                                              ; preds = %.lr.ph79
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %134 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #6
  %135 = getelementptr inbounds i8, ptr %134, i64 4
  %136 = load i32, ptr %135, align 4, !tbaa !18
  %137 = sext i32 %136 to i64
  %138 = icmp slt i64 %indvars.iv.next93, %137
  br i1 %138, label %.lr.ph79, label %.loopexit, !llvm.loop !25

139:                                              ; preds = %.lr.ph79
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %173

.lr.ph77:                                         ; preds = %.preheader68, %146
  %indvars.iv = phi i64 [ %indvars.iv.next, %146 ], [ 0, %.preheader68 ]
  %141 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %112) #6
  %142 = call noundef ptr @_ZN6Partio16ParticleAccessor3rawIiNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40) %141, ptr noundef nonnull align 8 dereferenceable(32) %6)
  %143 = getelementptr inbounds i32, ptr %142, i64 %indvars.iv
  %144 = load i32, ptr %143, align 4, !tbaa !8
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %144)
          to label %146 unwind label %152

146:                                              ; preds = %.lr.ph77
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %147 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #6
  %148 = getelementptr inbounds i8, ptr %147, i64 4
  %149 = load i32, ptr %148, align 4, !tbaa !18
  %150 = sext i32 %149 to i64
  %151 = icmp slt i64 %indvars.iv.next, %150
  br i1 %151, label %.lr.ph77, label %.loopexit, !llvm.loop !26

152:                                              ; preds = %.lr.ph77
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %173

.lr.ph81:                                         ; preds = %.preheader, %159
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %159 ], [ 0, %.preheader ]
  %154 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %112) #6
  %155 = call noundef ptr @_ZN6Partio16ParticleAccessor3rawIiNS_16ParticleIteratorILb1EEEEEPT_RKT0_(ptr noundef nonnull align 8 dereferenceable(40) %154, ptr noundef nonnull align 8 dereferenceable(32) %6)
  %156 = getelementptr inbounds i32, ptr %155, i64 %indvars.iv95
  %157 = load i32, ptr %156, align 4, !tbaa !8
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %157)
          to label %159 unwind label %165

159:                                              ; preds = %.lr.ph81
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %160 = call noundef nonnull align 8 dereferenceable(44) ptr @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #6
  %161 = getelementptr inbounds i8, ptr %160, i64 4
  %162 = load i32, ptr %161, align 4, !tbaa !18
  %163 = sext i32 %162 to i64
  %164 = icmp slt i64 %indvars.iv.next96, %163
  br i1 %164, label %.lr.ph81, label %.loopexit, !llvm.loop !27

165:                                              ; preds = %.lr.ph81
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %173

.loopexit:                                        ; preds = %146, %133, %159, %.preheader68, %123, %.preheader, %.lr.ph83
  %167 = add i32 %.04282, 1
  %168 = zext i32 %167 to i64
  %169 = call noundef i64 @_ZNKSt6vectorIN6Partio17ParticleAttributeESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %170 = icmp ugt i64 %169, %168
  br i1 %170, label %.lr.ph83, label %._crit_edge, !llvm.loop !28

171:                                              ; preds = %._crit_edge
  %172 = add nuw nsw i32 %.04384, 1
  %exitcond.not = icmp eq i32 %172, %68
  br i1 %exitcond.not, label %.critedge, label %.lr.ph85, !llvm.loop !29

173:                                              ; preds = %104, %165, %152, %139, %100, %92
  %.pn59 = phi { ptr, i32 } [ %93, %92 ], [ %101, %100 ], [ %105, %104 ], [ %153, %152 ], [ %140, %139 ], [ %166, %165 ]
  call void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %174

174:                                              ; preds = %173, %85
  %.pn59.pn = phi { ptr, i32 } [ %.pn59, %173 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %175

175:                                              ; preds = %174, %83
  %.pn59.pn.pn = phi { ptr, i32 } [ %.pn59.pn, %174 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  br label %176

176:                                              ; preds = %79, %81, %175, %38, %64
  %.pn64.pn = phi { ptr, i32 } [ %65, %64 ], [ %39, %38 ], [ %.pn59.pn.pn, %175 ], [ %82, %81 ], [ %80, %79 ]
  call void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn64.pn
}

; 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 #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio17ParticleAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN6Partio17ParticleAttributeESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(44)) local_unnamed_addr #1 align 2

; 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 #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio17ParticleAttributeD2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Partio13ParticlesData5beginEv(ptr dead_on_unwind noalias writable sret(%"class.Partio::ParticleIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK6Partio13ParticlesData3endEv(ptr dead_on_unwind noalias writable sret(%"class.Partio::ParticleIterator") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN6Partio16ParticleAccessorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6Partio16ParticleAccessorC2ERKNS_17ParticleAttributeE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Partio16ParticleIteratorILb1EE11addAccessorERNS_16ParticleAccessorE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Partio16ParticleIteratorILb1EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { "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, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN6Partio17ParticleAttributeE", !13, i64 0, !9, i64 4, !14, i64 8, !9, i64 40}
!13 = !{!"_ZTSN6Partio21ParticleAttributeTypeE", !10, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !17, i64 8, !10, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!16 = !{!"any pointer", !10, i64 0}
!17 = !{!"long", !10, i64 0}
!18 = !{!12, !9, i64 4}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !10, i64 0}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass