; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/Common (ScenePreprocessor)

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

%struct.aiString = type { i32, [1024 x i8] }
%struct.aiColor3D = type { float, float, float }
%"class.Assimp::ScenePreprocessor" = type { ptr }
%struct.aiScene = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, %struct.aiString, i32, ptr, ptr }
%struct.aiMesh = type { i32, i32, i32, ptr, ptr, ptr, ptr, [8 x ptr], [8 x ptr], [8 x i32], ptr, i32, ptr, i32, %struct.aiString, i32, ptr, i32, %struct.aiAABB, ptr }
%struct.aiAABB = type { %class.aiVector3t, %class.aiVector3t }
%class.aiVector3t = type { float, float, float }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [61 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp17ScenePreprocessor12ProcessSceneEv(ptr noundef nonnull align 8 dereferenceable(8) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.aiString, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.aiColor3D, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp ne ptr %13, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %1
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 51)
  br label %16

16:                                               ; preds = %15, %1
  %17 = phi i1 [ true, %1 ], [ false, %15 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !11
  br label %18

18:                                               ; preds = %46, %16
  %19 = load i32, ptr %3, align 4, !tbaa !11
  %20 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct.aiScene, ptr %21, i32 0, i32 2
  %23 = load i32, ptr %22, align 8, !tbaa !13
  %24 = icmp ult i32 %19, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %49

26:                                               ; preds = %18
  %27 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.aiScene, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = load i32, ptr %3, align 4, !tbaa !11
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds ptr, ptr %30, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = icmp eq ptr null, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %26
  br label %46

37:                                               ; preds = %26
  %38 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.aiScene, ptr %39, i32 0, i32 3
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  %42 = load i32, ptr %3, align 4, !tbaa !11
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds ptr, ptr %41, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  call void @_ZN6Assimp17ScenePreprocessor11ProcessMeshEP6aiMesh(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %45)
  br label %46

46:                                               ; preds = %37, %36
  %47 = load i32, ptr %3, align 4, !tbaa !11
  %48 = add i32 %47, 1
  store i32 %48, ptr %3, align 4, !tbaa !11
  br label %18, !llvm.loop !17

49:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %78, %49
  %51 = load i32, ptr %4, align 4, !tbaa !11
  %52 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.aiScene, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %54, align 8, !tbaa !19
  %56 = icmp ult i32 %51, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %81

58:                                               ; preds = %50
  %59 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.aiScene, ptr %60, i32 0, i32 7
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = load i32, ptr %4, align 4, !tbaa !11
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds ptr, ptr %62, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = icmp eq ptr null, %66
  br i1 %67, label %68, label %69

68:                                               ; preds = %58
  br label %78

69:                                               ; preds = %58
  %70 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.aiScene, ptr %71, i32 0, i32 7
  %73 = load ptr, ptr %72, align 8, !tbaa !20
  %74 = load i32, ptr %4, align 4, !tbaa !11
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds ptr, ptr %73, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  call void @_ZN6Assimp17ScenePreprocessor16ProcessAnimationEP11aiAnimation(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef %77)
  br label %78

78:                                               ; preds = %69, %68
  %79 = load i32, ptr %4, align 4, !tbaa !11
  %80 = add i32 %79, 1
  store i32 %80, ptr %4, align 4, !tbaa !11
  br label %50, !llvm.loop !21

81:                                               ; preds = %57
  %82 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.aiScene, ptr %83, i32 0, i32 4
  %85 = load i32, ptr %84, align 8, !tbaa !22
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %161, label %87

87:                                               ; preds = %81
  %88 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.aiScene, ptr %89, i32 0, i32 2
  %91 = load i32, ptr %90, align 8, !tbaa !13
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %161

93:                                               ; preds = %87
  %94 = call noalias noundef nonnull ptr @_Znam(i64 noundef 16) #9
  %95 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.aiScene, ptr %96, i32 0, i32 5
  store ptr %94, ptr %97, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 1028, ptr %6) #8
  call void @_ZN8aiStringC2Ev(ptr noundef nonnull align 4 dereferenceable(1028) %6) #8
  %98 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #9
  invoke void @_ZN10aiMaterialC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %98)
          to label %99 unwind label %123

99:                                               ; preds = %93
  store ptr %98, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.aiScene, ptr %101, i32 0, i32 5
  %103 = load ptr, ptr %102, align 8, !tbaa !23
  %104 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.aiScene, ptr %105, i32 0, i32 4
  %107 = load i32, ptr %106, align 8, !tbaa !22
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds ptr, ptr %103, i64 %108
  store ptr %98, ptr %109, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #8
  call void @_ZN9aiColor3DC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef 0x3FE3333340000000, float noundef 0x3FE3333340000000, float noundef 0x3FE3333340000000)
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = call noundef i32 @_ZN10aiMaterial11AddPropertyEPK9aiColor3DjPKcjj(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef %9, i32 noundef 1, ptr noundef @.str.2, i32 noundef 0, i32 noundef 0)
  call void @_ZN8aiString3SetEPKc(ptr noundef nonnull align 4 dereferenceable(1028) %6, ptr noundef @.str.3)
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = call noundef i32 @_ZN10aiMaterial11AddPropertyEPK8aiStringPKcjj(ptr noundef nonnull align 8 dereferenceable(16) %112, ptr noundef %6, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0)
  %114 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %114, ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %115

115:                                              ; preds = %152, %99
  %116 = load i32, ptr %10, align 4, !tbaa !11
  %117 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.aiScene, ptr %118, i32 0, i32 2
  %120 = load i32, ptr %119, align 8, !tbaa !13
  %121 = icmp ult i32 %116, %120
  br i1 %121, label %127, label %122

122:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %155

123:                                              ; preds = %93
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %7, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %8, align 4
  call void @_ZdlPvm(ptr noundef %98, i64 noundef 16) #10
  call void @llvm.lifetime.end.p0(i64 1028, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %162

127:                                              ; preds = %115
  %128 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.aiScene, ptr %129, i32 0, i32 3
  %131 = load ptr, ptr %130, align 8, !tbaa !16
  %132 = load i32, ptr %10, align 4, !tbaa !11
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %131, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = icmp eq ptr null, %135
  br i1 %136, label %137, label %138

137:                                              ; preds = %127
  br label %152

138:                                              ; preds = %127
  %139 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.aiScene, ptr %140, i32 0, i32 4
  %142 = load i32, ptr %141, align 8, !tbaa !22
  %143 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.aiScene, ptr %144, i32 0, i32 3
  %146 = load ptr, ptr %145, align 8, !tbaa !16
  %147 = load i32, ptr %10, align 4, !tbaa !11
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds ptr, ptr %146, i64 %148
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.aiMesh, ptr %150, i32 0, i32 13
  store i32 %142, ptr %151, align 8, !tbaa !24
  br label %152

152:                                              ; preds = %138, %137
  %153 = load i32, ptr %10, align 4, !tbaa !11
  %154 = add i32 %153, 1
  store i32 %154, ptr %10, align 4, !tbaa !11
  br label %115, !llvm.loop !30

155:                                              ; preds = %122
  %156 = getelementptr inbounds %"class.Assimp::ScenePreprocessor", ptr %11, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !9
  %158 = getelementptr inbounds %struct.aiScene, ptr %157, i32 0, i32 4
  %159 = load i32, ptr %158, align 8, !tbaa !22
  %160 = add i32 %159, 1
  store i32 %160, ptr %158, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 1028, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %161

161:                                              ; preds = %155, %87, %81
  ret void

162:                                              ; preds = %123
  %163 = load ptr, ptr %7, align 8
  %164 = load i32, ptr %8, align 4
  %165 = insertvalue { ptr, i32 } poison, ptr %163, 0
  %166 = insertvalue { ptr, i32 } %165, i32 %164, 1
  resume { ptr, i32 } %166
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp17ScenePreprocessor16ProcessAnimationEP11aiAnimation(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiStringC2Ev(ptr noundef nonnull align 4 dereferenceable(1028)) unnamed_addr #5 align 2

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

declare void @_ZN10aiMaterialC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9aiColor3DC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN10aiMaterial11AddPropertyEPK9aiColor3DjPKcjj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiString3SetEPKc(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef) #5 align 2

declare noundef i32 @_ZN10aiMaterial11AddPropertyEPK8aiStringPKcjj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #1

declare void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #1

attributes #0 = { 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 #1 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 = { 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 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN6Assimp17ScenePreprocessorE", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"_ZTS7aiScene", !12, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !12, i64 80, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !15, i64 120, !12, i64 1148, !6, i64 1152, !6, i64 1160}
!15 = !{!"_ZTS8aiString", !12, i64 0, !7, i64 4}
!16 = !{!14, !6, i64 24}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!14, !12, i64 48}
!20 = !{!14, !6, i64 56}
!21 = distinct !{!21, !18}
!22 = !{!14, !12, i64 32}
!23 = !{!14, !6, i64 40}
!24 = !{!25, !12, i64 232}
!25 = !{!"_ZTS6aiMesh", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 112, !7, i64 176, !6, i64 208, !12, i64 216, !6, i64 224, !12, i64 232, !15, i64 236, !12, i64 1264, !6, i64 1272, !26, i64 1280, !27, i64 1284, !6, i64 1312}
!26 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!27 = !{!"_ZTS6aiAABB", !28, i64 0, !28, i64 12}
!28 = !{!"_ZTS10aiVector3tIfE", !29, i64 0, !29, i64 4, !29, i64 8}
!29 = !{!"float", !7, i64 0}
!30 = distinct !{!30, !18}


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

%struct.aiString = type { i32, [1024 x i8] }
%struct.aiColor3D = type { float, float, float }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [61 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp17ScenePreprocessor12ProcessSceneEv(ptr noundef nonnull align 8 dereferenceable(8) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.aiString, align 4
  %3 = alloca %struct.aiColor3D, align 4
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %1
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 51)
  %.pre = load ptr, ptr %0, align 8, !tbaa !5
  br label %6

6:                                                ; preds = %5, %1
  %7 = phi ptr [ %.pre, %5 ], [ %4, %1 ]
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %9 = load i32, ptr %8, align 8, !tbaa !10
  %.not32 = icmp eq i32 %9, 0
  br i1 %.not32, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %20, %6
  %10 = phi ptr [ %7, %6 ], [ %21, %20 ]
  %11 = getelementptr inbounds i8, ptr %10, i64 48
  %12 = load i32, ptr %11, align 8, !tbaa !14
  %.not33 = icmp eq i32 %12, 0
  br i1 %.not33, label %._crit_edge, label %.lr.ph26

.lr.ph:                                           ; preds = %6, %20
  %13 = phi ptr [ %21, %20 ], [ %7, %6 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %20 ], [ 0, %6 ]
  %14 = getelementptr inbounds i8, ptr %13, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = getelementptr inbounds ptr, ptr %15, i64 %indvars.iv
  %17 = load ptr, ptr %16, align 8, !tbaa !16
  %18 = icmp eq ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %.lr.ph
  tail call void @_ZN6Assimp17ScenePreprocessor11ProcessMeshEP6aiMesh(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %17)
  %.pre42 = load ptr, ptr %0, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %.lr.ph, %19
  %21 = phi ptr [ %13, %.lr.ph ], [ %.pre42, %19 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %23 = load i32, ptr %22, align 8, !tbaa !10
  %24 = zext i32 %23 to i64
  %25 = icmp ult i64 %indvars.iv.next, %24
  br i1 %25, label %.lr.ph, label %.preheader, !llvm.loop !17

._crit_edge:                                      ; preds = %35, %.preheader
  %.lcssa23 = phi ptr [ %10, %.preheader ], [ %36, %35 ]
  %26 = getelementptr inbounds i8, ptr %.lcssa23, i64 32
  %27 = load i32, ptr %26, align 8, !tbaa !19
  %.not21 = icmp eq i32 %27, 0
  br i1 %.not21, label %41, label %92

.lr.ph26:                                         ; preds = %.preheader, %35
  %28 = phi ptr [ %36, %35 ], [ %10, %.preheader ]
  %indvars.iv36 = phi i64 [ %indvars.iv.next37, %35 ], [ 0, %.preheader ]
  %29 = getelementptr inbounds i8, ptr %28, i64 56
  %30 = load ptr, ptr %29, align 8, !tbaa !20
  %31 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv36
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = icmp eq ptr %32, null
  br i1 %33, label %35, label %34

34:                                               ; preds = %.lr.ph26
  tail call void @_ZN6Assimp17ScenePreprocessor16ProcessAnimationEP11aiAnimation(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %32)
  %.pre43 = load ptr, ptr %0, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %.lr.ph26, %34
  %36 = phi ptr [ %28, %.lr.ph26 ], [ %.pre43, %34 ]
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %37 = getelementptr inbounds i8, ptr %36, i64 48
  %38 = load i32, ptr %37, align 8, !tbaa !14
  %39 = zext i32 %38 to i64
  %40 = icmp ult i64 %indvars.iv.next37, %39
  br i1 %40, label %.lr.ph26, label %._crit_edge, !llvm.loop !21

41:                                               ; preds = %._crit_edge
  %42 = getelementptr inbounds i8, ptr %.lcssa23, i64 16
  %43 = load i32, ptr %42, align 8, !tbaa !10
  %.not22 = icmp eq i32 %43, 0
  br i1 %.not22, label %92, label %44

44:                                               ; preds = %41
  %45 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znam(i64 noundef 16) #8
  %46 = getelementptr inbounds i8, ptr %.lcssa23, i64 40
  store ptr %45, ptr %46, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 1028, ptr nonnull %2) #9
  call void @_ZN8aiStringC2Ev(ptr noundef nonnull align 4 dereferenceable(1028) %2) #9
  %47 = call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #8
  invoke void @_ZN10aiMaterialC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %47)
          to label %48 unwind label %75

48:                                               ; preds = %44
  %49 = load ptr, ptr %0, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 40
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %52 = getelementptr inbounds i8, ptr %49, i64 32
  %53 = load i32, ptr %52, align 8, !tbaa !19
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %51, i64 %54
  store ptr %47, ptr %55, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #9
  call void @_ZN9aiColor3DC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 0x3FE3333340000000, float noundef 0x3FE3333340000000, float noundef 0x3FE3333340000000)
  %56 = call noundef i32 @_ZN10aiMaterial11AddPropertyEPK9aiColor3DjPKcjj(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull @.str.2, i32 noundef 0, i32 noundef 0)
  call void @_ZN8aiString3SetEPKc(ptr noundef nonnull align 4 dereferenceable(1028) %2, ptr noundef nonnull @.str.3)
  %57 = call noundef i32 @_ZN10aiMaterial11AddPropertyEPK8aiStringPKcjj(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull %2, ptr noundef nonnull @.str.4, i32 noundef 0, i32 noundef 0)
  %58 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %58, ptr noundef nonnull @.str.5)
  %59 = load ptr, ptr %0, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %61 = load i32, ptr %60, align 8, !tbaa !10
  %.not34 = icmp eq i32 %61, 0
  br i1 %.not34, label %._crit_edge30, label %.lr.ph29

.lr.ph29:                                         ; preds = %48
  %62 = getelementptr inbounds i8, ptr %59, i64 24
  %63 = load ptr, ptr %62, align 8, !tbaa !15
  %64 = getelementptr inbounds i8, ptr %59, i64 32
  %wide.trip.count = zext i32 %61 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %65 = icmp eq i32 %61, 1
  br i1 %65, label %._crit_edge30.loopexit.unr-lcssa, label %.lr.ph29.new

.lr.ph29.new:                                     ; preds = %.lr.ph29
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %77

._crit_edge30.loopexit.unr-lcssa:                 ; preds = %91, %.lr.ph29
  %indvars.iv39.unr = phi i64 [ 0, %.lr.ph29 ], [ %indvars.iv.next40.1, %91 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge30, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge30.loopexit.unr-lcssa
  %66 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv39.unr
  %67 = load ptr, ptr %66, align 8, !tbaa !16
  %68 = icmp eq ptr %67, null
  br i1 %68, label %._crit_edge30, label %69

69:                                               ; preds = %.epil.preheader
  %70 = load i32, ptr %64, align 8, !tbaa !19
  %71 = getelementptr inbounds i8, ptr %67, i64 232
  store i32 %70, ptr %71, align 8, !tbaa !23
  br label %._crit_edge30

._crit_edge30:                                    ; preds = %._crit_edge30.loopexit.unr-lcssa, %69, %.epil.preheader, %48
  %72 = getelementptr inbounds i8, ptr %59, i64 32
  %73 = load i32, ptr %72, align 8, !tbaa !19
  %74 = add i32 %73, 1
  store i32 %74, ptr %72, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 1028, ptr nonnull %2) #9
  br label %92

75:                                               ; preds = %44
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %47, i64 noundef 16) #10
  call void @llvm.lifetime.end.p0(i64 1028, ptr nonnull %2) #9
  resume { ptr, i32 } %76

77:                                               ; preds = %91, %.lr.ph29.new
  %indvars.iv39 = phi i64 [ 0, %.lr.ph29.new ], [ %indvars.iv.next40.1, %91 ]
  %niter = phi i64 [ 0, %.lr.ph29.new ], [ %niter.next.1, %91 ]
  %78 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv39
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = icmp eq ptr %79, null
  br i1 %80, label %84, label %81

81:                                               ; preds = %77
  %82 = load i32, ptr %64, align 8, !tbaa !19
  %83 = getelementptr inbounds i8, ptr %79, i64 232
  store i32 %82, ptr %83, align 8, !tbaa !23
  br label %84

84:                                               ; preds = %77, %81
  %indvars.iv.next40 = or disjoint i64 %indvars.iv39, 1
  %85 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv.next40
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  %87 = icmp eq ptr %86, null
  br i1 %87, label %91, label %88

88:                                               ; preds = %84
  %89 = load i32, ptr %64, align 8, !tbaa !19
  %90 = getelementptr inbounds i8, ptr %86, i64 232
  store i32 %89, ptr %90, align 8, !tbaa !23
  br label %91

91:                                               ; preds = %88, %84
  %indvars.iv.next40.1 = add nuw nsw i64 %indvars.iv39, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge30.loopexit.unr-lcssa, label %77, !llvm.loop !29

92:                                               ; preds = %._crit_edge30, %41, %._crit_edge
  ret void
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp17ScenePreprocessor16ProcessAnimationEP11aiAnimation(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiStringC2Ev(ptr noundef nonnull align 4 dereferenceable(1028)) unnamed_addr #5 align 2

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

declare void @_ZN10aiMaterialC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9aiColor3DC2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN10aiMaterial11AddPropertyEPK9aiColor3DjPKcjj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8aiString3SetEPKc(ptr noundef nonnull align 4 dereferenceable(1028), ptr noundef) local_unnamed_addr #5 align 2

declare noundef i32 @_ZN10aiMaterial11AddPropertyEPK8aiStringPKcjj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #1

declare void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 = { 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 = { 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 #7 = { 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 #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { 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, !7, i64 0}
!6 = !{!"_ZTSN6Assimp17ScenePreprocessorE", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 16}
!11 = !{!"_ZTS7aiScene", !12, i64 0, !7, i64 8, !12, i64 16, !7, i64 24, !12, i64 32, !7, i64 40, !12, i64 48, !7, i64 56, !12, i64 64, !7, i64 72, !12, i64 80, !7, i64 88, !12, i64 96, !7, i64 104, !7, i64 112, !13, i64 120, !12, i64 1148, !7, i64 1152, !7, i64 1160}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTS8aiString", !12, i64 0, !8, i64 4}
!14 = !{!11, !12, i64 48}
!15 = !{!11, !7, i64 24}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!11, !12, i64 32}
!20 = !{!11, !7, i64 56}
!21 = distinct !{!21, !18}
!22 = !{!11, !7, i64 40}
!23 = !{!24, !12, i64 232}
!24 = !{!"_ZTS6aiMesh", !12, i64 0, !12, i64 4, !12, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !8, i64 48, !8, i64 112, !8, i64 176, !7, i64 208, !12, i64 216, !7, i64 224, !12, i64 232, !13, i64 236, !12, i64 1264, !7, i64 1272, !25, i64 1280, !26, i64 1284, !7, i64 1312}
!25 = !{!"_ZTS16aiMorphingMethod", !8, i64 0}
!26 = !{!"_ZTS6aiAABB", !27, i64 0, !27, i64 12}
!27 = !{!"_ZTS10aiVector3tIfE", !28, i64 0, !28, i64 4, !28, i64 8}
!28 = !{!"float", !8, i64 0}
!29 = distinct !{!29, !18}


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