; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/Material (MaterialSystem)

; 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%struct.aiMaterial = type { ptr, i32, i32 }
%struct.aiMaterialProperty = type { %struct.aiString, i32, i32, i32, i32, ptr }
%struct.aiString = type { i32, [1024 x i8] }

@.str.1 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1
@_ZTISt9bad_alloc = external constant ptr

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) #0

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN10aiMaterial17AddBinaryPropertyEPKvjPKcjj18aiPropertyTypeInfo(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #7 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::unique_ptr", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !11
  %26 = load ptr, ptr %9, align 8
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %30, label %29

29:                                               ; preds = %7
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.24, ptr noundef @.str.1, i32 noundef 544)
  br label %30

30:                                               ; preds = %29, %7
  %31 = phi i1 [ true, %7 ], [ false, %29 ]
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 545)
  br label %35

35:                                               ; preds = %34, %30
  %36 = phi i1 [ true, %30 ], [ false, %34 ]
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = icmp ne i32 0, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.25, ptr noundef @.str.1, i32 noundef 546)
  br label %40

40:                                               ; preds = %39, %35
  %41 = phi i1 [ true, %35 ], [ false, %39 ]
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = icmp eq i32 0, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  store i32 -1, ptr %8, align 4
  br label %223

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #11
  store i32 -1, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #11
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %93, %45
  %47 = load i32, ptr %17, align 4, !tbaa !9
  %48 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 1
  %49 = load i32, ptr %48, align 8, !tbaa !13
  %50 = icmp ult i32 %47, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #11
  br label %96

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  %53 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = load i32, ptr %17, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %54, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  store ptr %58, ptr %18, align 8, !tbaa !5
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %92

61:                                               ; preds = %52
  %62 = load ptr, ptr %18, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.aiMaterialProperty, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds %struct.aiString, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds [1024 x i8], ptr %64, i64 0, i64 0
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = call i32 @strcmp(ptr noundef %65, ptr noundef %66) #12
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %92, label %69

69:                                               ; preds = %61
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.aiMaterialProperty, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !16
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = icmp eq i32 %72, %73
  br i1 %74, label %75, label %92

75:                                               ; preds = %69
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.aiMaterialProperty, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 8, !tbaa !19
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = icmp eq i32 %78, %79
  br i1 %80, label %81, label %92

81:                                               ; preds = %75
  %82 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !15
  %84 = load i32, ptr %17, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = icmp eq ptr %87, null
  br i1 %88, label %90, label %89

89:                                               ; preds = %81
  call void @_ZN18aiMaterialPropertyD2Ev(ptr noundef nonnull align 8 dereferenceable(1056) %87) #11
  call void @_ZdlPvm(ptr noundef %87, i64 noundef 1056) #13
  br label %90

90:                                               ; preds = %89, %81
  %91 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %91, ptr %16, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %90, %75, %69, %61, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %17, align 4, !tbaa !9
  %95 = add i32 %94, 1
  store i32 %95, ptr %17, align 4, !tbaa !9
  br label %46, !llvm.loop !20

96:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  %97 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 1056) #14
  call void @_ZN18aiMaterialPropertyC2Ev(ptr noundef nonnull align 8 dereferenceable(1056) %97) #11
  call void @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEC2IS2_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %97) #11
  %98 = load i32, ptr %15, align 4, !tbaa !11
  %99 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %100 = getelementptr inbounds %struct.aiMaterialProperty, ptr %99, i32 0, i32 4
  store i32 %98, ptr %100, align 8, !tbaa !22
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %103 = getelementptr inbounds %struct.aiMaterialProperty, ptr %102, i32 0, i32 1
  store i32 %101, ptr %103, align 4, !tbaa !16
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %106 = getelementptr inbounds %struct.aiMaterialProperty, ptr %105, i32 0, i32 2
  store i32 %104, ptr %106, align 8, !tbaa !19
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %109 = getelementptr inbounds %struct.aiMaterialProperty, ptr %108, i32 0, i32 3
  store i32 %107, ptr %109, align 4, !tbaa !23
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %111) #14
          to label %113 unwind label %153

113:                                              ; preds = %96
  %114 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %115 = getelementptr inbounds %struct.aiMaterialProperty, ptr %114, i32 0, i32 5
  store ptr %112, ptr %115, align 8, !tbaa !24
  %116 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %117 = getelementptr inbounds %struct.aiMaterialProperty, ptr %116, i32 0, i32 5
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %118, ptr align 1 %119, i64 %121, i1 false)
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = call i64 @strlen(ptr noundef %122) #12
  %124 = trunc i64 %123 to i32
  %125 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %126 = getelementptr inbounds %struct.aiMaterialProperty, ptr %125, i32 0, i32 0
  %127 = getelementptr inbounds %struct.aiString, ptr %126, i32 0, i32 0
  store i32 %124, ptr %127, align 8, !tbaa !25
  %128 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %129 = getelementptr inbounds %struct.aiMaterialProperty, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds %struct.aiString, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 8, !tbaa !25
  %132 = zext i32 %131 to i64
  %133 = icmp ugt i64 1024, %132
  br i1 %133, label %136, label %134

134:                                              ; preds = %113
  invoke void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.26, ptr noundef @.str.1, i32 noundef 578)
          to label %135 unwind label %153

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135, %113
  %137 = phi i1 [ true, %113 ], [ false, %135 ]
  %138 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %139 = getelementptr inbounds %struct.aiMaterialProperty, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds %struct.aiString, ptr %139, i32 0, i32 1
  %141 = getelementptr inbounds [1024 x i8], ptr %140, i64 0, i64 0
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = call ptr @strcpy(ptr noundef %141, ptr noundef %142) #11
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = icmp ne i32 -1, %144
  br i1 %145, label %146, label %157

146:                                              ; preds = %136
  %147 = call noundef ptr @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %148 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !15
  %150 = load i32, ptr %16, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds ptr, ptr %149, i64 %151
  store ptr %147, ptr %152, align 8, !tbaa !5
  store i32 0, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %221

153:                                              ; preds = %134, %96
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %20, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %21, align 4
  br label %222

157:                                              ; preds = %136
  %158 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 1
  %159 = load i32, ptr %158, align 8, !tbaa !13
  %160 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 2
  %161 = load i32, ptr %160, align 4, !tbaa !26
  %162 = icmp eq i32 %159, %161
  br i1 %162, label %163, label %212

163:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #11
  %164 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 2
  %165 = load i32, ptr %164, align 4, !tbaa !26
  store i32 %165, ptr %23, align 4, !tbaa !9
  %166 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 2
  %167 = load i32, ptr %166, align 4, !tbaa !26
  %168 = mul i32 %167, 2
  store i32 %168, ptr %166, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #11
  %169 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 2
  %170 = load i32, ptr %169, align 4, !tbaa !26
  %171 = zext i32 %170 to i64
  %172 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %171, i64 8)
  %173 = extractvalue { i64, i1 } %172, 1
  %174 = extractvalue { i64, i1 } %172, 0
  %175 = select i1 %173, i64 -1, i64 %174
  %176 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %175) #14
          to label %177 unwind label %178

177:                                              ; preds = %163
  store ptr %176, ptr %24, align 8, !tbaa !5
  br label %194

178:                                              ; preds = %163
  %179 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9bad_alloc
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %20, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %21, align 4
  br label %182

182:                                              ; preds = %178
  %183 = load i32, ptr %21, align 4
  %184 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9bad_alloc) #11
  %185 = icmp eq i32 %183, %184
  br i1 %185, label %186, label %211

186:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #11
  %187 = load ptr, ptr %20, align 8
  %188 = call ptr @__cxa_begin_catch(ptr %187) #11
  store ptr %188, ptr %25, align 8
  store i32 -3, ptr %8, align 4
  store i32 1, ptr %22, align 4
  invoke void @__cxa_end_catch()
          to label %189 unwind label %190

189:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  br label %208

190:                                              ; preds = %186
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %20, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  br label %211

194:                                              ; preds = %177
  %195 = load ptr, ptr %24, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !15
  %198 = load i32, ptr %23, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = mul i64 %199, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %195, ptr align 8 %197, i64 %200, i1 false)
  %201 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !15
  %203 = icmp eq ptr %202, null
  br i1 %203, label %205, label %204

204:                                              ; preds = %194
  call void @_ZdaPv(ptr noundef %202) #13
  br label %205

205:                                              ; preds = %204, %194
  %206 = load ptr, ptr %24, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 0
  store ptr %206, ptr %207, align 8, !tbaa !15
  store i32 0, ptr %22, align 4
  br label %208

208:                                              ; preds = %205, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  %209 = load i32, ptr %22, align 4
  switch i32 %209, label %221 [
    i32 0, label %210
  ]

210:                                              ; preds = %208
  br label %212

211:                                              ; preds = %190, %182
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  br label %222

212:                                              ; preds = %210, %157
  %213 = call noundef ptr @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  %214 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !15
  %216 = getelementptr inbounds %struct.aiMaterial, ptr %26, i32 0, i32 1
  %217 = load i32, ptr %216, align 8, !tbaa !13
  %218 = add i32 %217, 1
  store i32 %218, ptr %216, align 8, !tbaa !13
  %219 = zext i32 %217 to i64
  %220 = getelementptr inbounds ptr, ptr %215, i64 %219
  store ptr %213, ptr %220, align 8, !tbaa !5
  store i32 0, ptr %8, align 4
  store i32 1, ptr %22, align 4
  br label %221

221:                                              ; preds = %212, %208, %146
  call void @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  br label %223

222:                                              ; preds = %211, %153
  call void @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  br label %225

223:                                              ; preds = %221, %44
  %224 = load i32, ptr %8, align 4
  ret i32 %224

225:                                              ; preds = %222
  %226 = load ptr, ptr %20, align 8
  %227 = load i32, ptr %21, align 4
  %228 = insertvalue { ptr, i32 } poison, ptr %226, 0
  %229 = insertvalue { ptr, i32 } %228, i32 %227, 1
  resume { ptr, i32 } %229
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #8

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #9

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #10

declare void @__cxa_end_catch()

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind willreturn memory(read) "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind memory(none) }
attributes #11 = { nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { builtin nounwind }
attributes #14 = { builtin allocsize(0) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS18aiPropertyTypeInfo", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS10aiMaterial", !6, i64 0, !10, i64 8, !10, i64 12}
!15 = !{!14, !6, i64 0}
!16 = !{!17, !10, i64 1028}
!17 = !{!"_ZTS18aiMaterialProperty", !18, i64 0, !10, i64 1028, !10, i64 1032, !10, i64 1036, !12, i64 1040, !6, i64 1048}
!18 = !{!"_ZTS8aiString", !10, i64 0, !7, i64 4}
!19 = !{!17, !10, i64 1032}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!17, !12, i64 1040}
!23 = !{!17, !10, i64 1036}
!24 = !{!17, !6, i64 1048}
!25 = !{!17, !10, i64 0}
!26 = !{!14, !10, i64 12}


; 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::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1
@_ZTISt9bad_alloc = external constant ptr

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress 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) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -3, 1) i32 @_ZN10aiMaterial17AddBinaryPropertyEPKvjPKcjj18aiPropertyTypeInfo(ptr nocapture noundef nonnull align 8 dereferenceable(16) %0, ptr noundef readonly %1, i32 noundef %2, ptr noundef readonly %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #7 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::unique_ptr", align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %9, label %10

9:                                                ; preds = %7
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.1, i32 noundef 544)
  br label %10

10:                                               ; preds = %9, %7
  %.not48 = icmp eq ptr %3, null
  br i1 %.not48, label %11, label %12

11:                                               ; preds = %10
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 545)
  br label %12

12:                                               ; preds = %11, %10
  %cond = icmp eq i32 %2, 0
  br i1 %cond, label %15, label %.preheader

.preheader:                                       ; preds = %12
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %.not55 = icmp eq i32 %14, 0
  br i1 %.not55, label %._crit_edge, label %.lr.ph

15:                                               ; preds = %12
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.1, i32 noundef 546)
  br label %105

._crit_edge:                                      ; preds = %44, %.preheader
  %.036.lcssa = phi i32 [ -1, %.preheader ], [ %.137, %44 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  %16 = tail call noalias noundef nonnull dereferenceable(1056) ptr @_Znwm(i64 noundef 1056) #11
  tail call void @_ZN18aiMaterialPropertyC2Ev(ptr noundef nonnull align 8 dereferenceable(1056) %16) #10
  call void @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEC2IS2_vEEPS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %16) #10
  %17 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %18 = getelementptr inbounds i8, ptr %17, i64 1040
  store i32 %6, ptr %18, align 8, !tbaa !11
  %19 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %20 = getelementptr inbounds i8, ptr %19, i64 1028
  store i32 %4, ptr %20, align 4, !tbaa !15
  %21 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %22 = getelementptr inbounds i8, ptr %21, i64 1032
  store i32 %5, ptr %22, align 8, !tbaa !16
  %23 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %24 = getelementptr inbounds i8, ptr %23, i64 1036
  store i32 %2, ptr %24, align 4, !tbaa !17
  %25 = zext i32 %2 to i64
  %26 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %25) #11
          to label %48 unwind label %68

.lr.ph:                                           ; preds = %.preheader, %44
  %27 = phi i32 [ %45, %44 ], [ %14, %.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %44 ], [ 0, %.preheader ]
  %.03654 = phi i32 [ %.137, %44 ], [ -1, %.preheader ]
  %28 = load ptr, ptr %0, align 8, !tbaa !18
  %29 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv
  %30 = load ptr, ptr %29, align 8, !tbaa !19
  %.not51 = icmp eq ptr %30, null
  br i1 %.not51, label %44, label %31

31:                                               ; preds = %.lr.ph
  %32 = getelementptr inbounds i8, ptr %30, i64 4
  %33 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %32, ptr noundef nonnull dereferenceable(1) %3) #12
  %.not52 = icmp eq i32 %33, 0
  br i1 %.not52, label %34, label %44

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %30, i64 1028
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = icmp eq i32 %36, %4
  br i1 %37, label %38, label %44

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %30, i64 1032
  %40 = load i32, ptr %39, align 8, !tbaa !16
  %41 = icmp eq i32 %40, %5
  br i1 %41, label %42, label %44

42:                                               ; preds = %38
  tail call void @_ZN18aiMaterialPropertyD2Ev(ptr noundef nonnull align 8 dereferenceable(1056) %30) #10
  tail call void @_ZdlPvm(ptr noundef nonnull %30, i64 noundef 1056) #13
  %43 = trunc nuw i64 %indvars.iv to i32
  %.pre = load i32, ptr %13, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %42, %38, %34, %31, %.lr.ph
  %45 = phi i32 [ %27, %31 ], [ %.pre, %42 ], [ %27, %38 ], [ %27, %34 ], [ %27, %.lr.ph ]
  %.137 = phi i32 [ %.03654, %31 ], [ %43, %42 ], [ %.03654, %38 ], [ %.03654, %34 ], [ %.03654, %.lr.ph ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = zext i32 %45 to i64
  %47 = icmp ult i64 %indvars.iv.next, %46
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !20

48:                                               ; preds = %._crit_edge
  %49 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %50 = getelementptr inbounds i8, ptr %49, i64 1048
  store ptr %26, ptr %50, align 8, !tbaa !22
  %51 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %52 = getelementptr inbounds i8, ptr %51, i64 1048
  %53 = load ptr, ptr %52, align 8, !tbaa !22
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %53, ptr align 1 %1, i64 %25, i1 false)
  %54 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %3) #12
  %55 = trunc i64 %54 to i32
  %56 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  store i32 %55, ptr %56, align 8, !tbaa !23
  %57 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %58 = load i32, ptr %57, align 8, !tbaa !23
  %59 = icmp ult i32 %58, 1024
  br i1 %59, label %61, label %60

60:                                               ; preds = %48
  invoke void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.1, i32 noundef 578)
          to label %61 unwind label %68

61:                                               ; preds = %60, %48
  %62 = call noundef ptr @_ZNKSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %63 = getelementptr inbounds i8, ptr %62, i64 4
  %64 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %63, ptr noundef nonnull dereferenceable(1) %3) #10
  %.not50 = icmp eq i32 %.036.lcssa, -1
  br i1 %.not50, label %70, label %65

65:                                               ; preds = %61
  %66 = call noundef ptr @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %67 = load ptr, ptr %0, align 8, !tbaa !18
  br label %.sink.split

68:                                               ; preds = %60, %._crit_edge
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %104

70:                                               ; preds = %61
  %71 = load i32, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %0, i64 12
  %73 = load i32, ptr %72, align 4, !tbaa !24
  %74 = icmp eq i32 %71, %73
  br i1 %74, label %75, label %96

75:                                               ; preds = %70
  %76 = shl i32 %71, 1
  store i32 %76, ptr %72, align 4, !tbaa !24
  %77 = zext i32 %76 to i64
  %78 = shl nuw nsw i64 %77, 3
  %79 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %78) #11
          to label %80 unwind label %85

80:                                               ; preds = %75
  %81 = load ptr, ptr %0, align 8, !tbaa !18
  %82 = zext i32 %71 to i64
  %83 = shl nuw nsw i64 %82, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %79, ptr align 8 %81, i64 %83, i1 false)
  %84 = icmp eq ptr %81, null
  br i1 %84, label %.critedge, label %95

85:                                               ; preds = %75
  %86 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9bad_alloc
  %87 = extractvalue { ptr, i32 } %86, 1
  %88 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9bad_alloc) #10
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %104

90:                                               ; preds = %85
  %91 = extractvalue { ptr, i32 } %86, 0
  %92 = call ptr @__cxa_begin_catch(ptr %91) #10
  invoke void @__cxa_end_catch()
          to label %103 unwind label %93

93:                                               ; preds = %90
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %104

95:                                               ; preds = %80
  call void @_ZdaPv(ptr noundef nonnull %81) #13
  br label %.critedge

.critedge:                                        ; preds = %95, %80
  store ptr %79, ptr %0, align 8, !tbaa !18
  br label %96

96:                                               ; preds = %.critedge, %70
  %97 = call noundef ptr @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  %98 = load ptr, ptr %0, align 8, !tbaa !18
  %99 = load i32, ptr %13, align 8, !tbaa !5
  %100 = add i32 %99, 1
  store i32 %100, ptr %13, align 8, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %65, %96
  %.sink60 = phi i32 [ %99, %96 ], [ %.036.lcssa, %65 ]
  %.sink58 = phi ptr [ %98, %96 ], [ %67, %65 ]
  %.sink = phi ptr [ %97, %96 ], [ %66, %65 ]
  %101 = zext i32 %.sink60 to i64
  %102 = getelementptr inbounds ptr, ptr %.sink58, i64 %101
  store ptr %.sink, ptr %102, align 8, !tbaa !19
  br label %103

103:                                              ; preds = %.sink.split, %90
  %.1 = phi i32 [ -3, %90 ], [ 0, %.sink.split ]
  call void @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  br label %105

104:                                              ; preds = %85, %93, %68
  %.merged = phi { ptr, i32 } [ %69, %68 ], [ %94, %93 ], [ %86, %85 ]
  call void @_ZNSt10unique_ptrI18aiMaterialPropertySt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  resume { ptr, i32 } %.merged

105:                                              ; preds = %15, %103
  %.2 = phi i32 [ %.1, %103 ], [ -1, %15 ]
  ret i32 %.2
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #8

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #9

declare void @__cxa_end_catch() local_unnamed_addr

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #9 = { nofree nosync nounwind memory(none) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { builtin 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, !10, i64 8}
!6 = !{!"_ZTS10aiMaterial", !7, i64 0, !10, i64 8, !10, i64 12}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !14, i64 1040}
!12 = !{!"_ZTS18aiMaterialProperty", !13, i64 0, !10, i64 1028, !10, i64 1032, !10, i64 1036, !14, i64 1040, !7, i64 1048}
!13 = !{!"_ZTS8aiString", !10, i64 0, !8, i64 4}
!14 = !{!"_ZTS18aiPropertyTypeInfo", !8, i64 0}
!15 = !{!12, !10, i64 1028}
!16 = !{!12, !10, i64 1032}
!17 = !{!12, !10, i64 1036}
!18 = !{!6, !7, i64 0}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !7, i64 1048}
!23 = !{!12, !10, i64 0}
!24 = !{!6, !10, i64 12}


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