; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder (basisu_basis_file)

; 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.basisu::basisu_backend_output" = type { i32, i8, i8, i8, i32, i32, %"class.basisu::vector.3", %"class.basisu::vector.3", %"class.basisu::vector.5", %"class.basisu::vector.3", %"class.basisu::vector.7", %"class.basisu::vector.9" }
%"class.basisu::vector.5" = type { ptr, i32, i32 }
%"class.basisu::vector.3" = type { ptr, i32, i32 }
%"class.basisu::vector.7" = type { ptr, i32, i32 }
%"class.basisu::vector.9" = type { ptr, i32, i32 }
%"class.basisu::basisu_file" = type <{ %"struct.basist::basis_file_header", [3 x i8], %"class.basisu::vector", %"class.basisu::vector.3", i32, i32, i32, i32, i32, i32, i32, [4 x i8] }>
%"struct.basist::basis_file_header" = type { %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.2", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.2", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.1", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0", %"struct.basisu::packed_uint.0" }
%"struct.basisu::packed_uint.2" = type { [1 x i8] }
%"struct.basisu::packed_uint" = type { [2 x i8] }
%"struct.basisu::packed_uint.1" = type { [3 x i8] }
%"struct.basisu::packed_uint.0" = type { [4 x i8] }
%"class.basisu::vector" = type { ptr, i32, i32 }

@.str.3 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE = external hidden unnamed_addr constant [74 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE(ptr noundef nonnull align 8 dereferenceable(140) %0, ptr noundef nonnull align 8 dereferenceable(112) %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %8, i32 0, i32 8
  store ptr %9, ptr %5, align 8, !tbaa !5
  %10 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %11 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 0
  call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %11, i64 noundef 77)
  %12 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %13 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
  %14 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 5
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = icmp eq i32 %13, %15
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  br label %20

18:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 152, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #6
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  %21 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %22 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 2
  %23 = call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %22, i64 noundef 0)
  %24 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 2
  %25 = call noundef i32 @_ZNK6basisu6vectorIN6basist16basis_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %26 = zext i32 %25 to i64
  %27 = mul i64 %26, 23
  call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef %23, i64 noundef %27)
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %28, i32 0, i32 2
  %30 = load i8, ptr %29, align 1, !tbaa !19, !range !26, !noundef !27
  %31 = trunc i8 %30 to i1
  br i1 %31, label %79, label %32

32:                                               ; preds = %20
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %33, i32 0, i32 6
  %35 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %34)
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %55

37:                                               ; preds = %32
  %38 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %39 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
  %40 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 6
  %41 = load i32, ptr %40, align 8, !tbaa !28
  %42 = icmp eq i32 %39, %41
  br i1 %42, label %43, label %44

43:                                               ; preds = %37
  br label %46

44:                                               ; preds = %37
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 159, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #6
  unreachable

45:                                               ; No predecessors!
  br label %46

46:                                               ; preds = %45, %43
  %47 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %48, i32 0, i32 6
  %50 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %49, i64 noundef 0)
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %51, i32 0, i32 6
  %53 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %52)
  %54 = zext i32 %53 to i64
  call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef %50, i64 noundef %54)
  br label %55

55:                                               ; preds = %46, %32
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %56, i32 0, i32 7
  %58 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %57)
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %78

60:                                               ; preds = %55
  %61 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %62 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %61)
  %63 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 7
  %64 = load i32, ptr %63, align 4, !tbaa !29
  %65 = icmp eq i32 %62, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %60
  br label %69

67:                                               ; preds = %60
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.3, i32 noundef 165, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #6
  unreachable

68:                                               ; No predecessors!
  br label %69

69:                                               ; preds = %68, %66
  %70 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %71, i32 0, i32 7
  %73 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %72, i64 noundef 0)
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %74, i32 0, i32 7
  %76 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %75)
  %77 = zext i32 %76 to i64
  call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef %73, i64 noundef %77)
  br label %78

78:                                               ; preds = %69, %55
  br label %79

79:                                               ; preds = %78, %20
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %80, i32 0, i32 9
  %82 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %81)
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %102

84:                                               ; preds = %79
  %85 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %86 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %85)
  %87 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 8
  %88 = load i32, ptr %87, align 8, !tbaa !30
  %89 = icmp eq i32 %86, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %84
  br label %93

91:                                               ; preds = %84
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.3, i32 noundef 172, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #6
  unreachable

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92, %90
  %94 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %95, i32 0, i32 9
  %97 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %96, i64 noundef 0)
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %98, i32 0, i32 9
  %100 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %99)
  %101 = zext i32 %100 to i64
  call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef %97, i64 noundef %101)
  br label %102

102:                                              ; preds = %93, %79
  %103 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %104 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %103)
  %105 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 9
  %106 = load i32, ptr %105, align 4, !tbaa !31
  %107 = icmp eq i32 %104, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %102
  br label %111

109:                                              ; preds = %102
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.3, i32 noundef 176, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #6
  unreachable

110:                                              ; No predecessors!
  br label %111

111:                                              ; preds = %110, %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !32
  br label %112

112:                                              ; preds = %133, %111
  %113 = load i32, ptr %6, align 4, !tbaa !32
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = call noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %114)
  %116 = icmp ult i32 %113, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %136

118:                                              ; preds = %112
  %119 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %120, i32 0, i32 10
  %122 = load i32, ptr %6, align 4, !tbaa !32
  %123 = zext i32 %122 to i64
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %121, i64 noundef %123)
  %125 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %124, i64 noundef 0)
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.basisu::basisu_backend_output", ptr %126, i32 0, i32 10
  %128 = load i32, ptr %6, align 4, !tbaa !32
  %129 = zext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %127, i64 noundef %129)
  %131 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %130)
  %132 = zext i32 %131 to i64
  call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %119, ptr noundef %125, i64 noundef %132)
  br label %133

133:                                              ; preds = %118
  %134 = load i32, ptr %6, align 4, !tbaa !32
  %135 = add i32 %134, 1
  store i32 %135, ptr %6, align 4, !tbaa !32
  br label %112, !llvm.loop !33

136:                                              ; preds = %117
  %137 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 3
  %138 = call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %137)
  %139 = getelementptr inbounds %"class.basisu::basisu_file", ptr %7, i32 0, i32 10
  %140 = load i32, ptr %139, align 8, !tbaa !35
  %141 = icmp eq i32 %138, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %136
  br label %145

143:                                              ; preds = %136
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.3, i32 noundef 180, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #6
  unreachable

144:                                              ; No predecessors!
  br label %145

145:                                              ; preds = %144, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6vectorIN6basist16basis_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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, !17, i64 116}
!10 = !{!"_ZTSN6basisu11basisu_fileE", !11, i64 0, !16, i64 80, !18, i64 96, !17, i64 112, !17, i64 116, !17, i64 120, !17, i64 124, !17, i64 128, !17, i64 132, !17, i64 136}
!11 = !{!"_ZTSN6basist17basis_file_headerE", !12, i64 0, !12, i64 2, !12, i64 4, !12, i64 6, !13, i64 8, !12, i64 12, !14, i64 14, !14, i64 17, !15, i64 20, !12, i64 21, !15, i64 23, !14, i64 24, !13, i64 27, !13, i64 31, !13, i64 35, !12, i64 39, !13, i64 41, !14, i64 45, !12, i64 48, !13, i64 50, !14, i64 54, !13, i64 57, !13, i64 61, !13, i64 65, !13, i64 69, !13, i64 73}
!12 = !{!"_ZTSN6basisu11packed_uintILj2EEE", !7, i64 0}
!13 = !{!"_ZTSN6basisu11packed_uintILj4EEE", !7, i64 0}
!14 = !{!"_ZTSN6basisu11packed_uintILj3EEE", !7, i64 0}
!15 = !{!"_ZTSN6basisu11packed_uintILj1EEE", !7, i64 0}
!16 = !{!"_ZTSN6basisu6vectorIN6basist16basis_slice_descEEE", !6, i64 0, !17, i64 8, !17, i64 12}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN6basisu6vectorIhEE", !6, i64 0, !17, i64 8, !17, i64 12}
!19 = !{!20, !22, i64 5}
!20 = !{!"_ZTSN6basisu21basisu_backend_outputE", !21, i64 0, !22, i64 4, !22, i64 5, !22, i64 6, !17, i64 8, !17, i64 12, !18, i64 16, !18, i64 32, !23, i64 48, !18, i64 64, !24, i64 80, !25, i64 96}
!21 = !{!"_ZTSN6basist16basis_tex_formatE", !7, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN6basisu6vectorINS_25basisu_backend_slice_descEEE", !6, i64 0, !17, i64 8, !17, i64 12}
!24 = !{!"_ZTSN6basisu6vectorINS0_IhEEEE", !6, i64 0, !17, i64 8, !17, i64 12}
!25 = !{!"_ZTSN6basisu6vectorItEE", !6, i64 0, !17, i64 8, !17, i64 12}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!10, !17, i64 120}
!29 = !{!10, !17, i64 124}
!30 = !{!10, !17, i64 128}
!31 = !{!10, !17, i64 132}
!32 = !{!17, !17, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!10, !17, i64 136}


; 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"

@.str.3 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE = external hidden unnamed_addr constant [74 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE(ptr noundef nonnull align 8 dereferenceable(140) %0, ptr noundef nonnull align 8 dereferenceable(112) %1) local_unnamed_addr #2 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 48
  %4 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %0, i64 noundef 77)
  %5 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %6 = getelementptr inbounds i8, ptr %0, i64 116
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = icmp eq i32 %5, %7
  br i1 %8, label %10, label %9

9:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 152, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #4
  unreachable

10:                                               ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 80
  %12 = tail call noundef nonnull align 1 dereferenceable(23) ptr @_ZN6basisu6vectorIN6basist16basis_slice_descEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef 0)
  %13 = tail call noundef i32 @_ZNK6basisu6vectorIN6basist16basis_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %14 = zext i32 %13 to i64
  %15 = mul nuw nsw i64 %14, 23
  tail call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %12, i64 noundef %15)
  %16 = getelementptr inbounds i8, ptr %1, i64 5
  %17 = load i8, ptr %16, align 1, !tbaa !18, !range !25, !noundef !26
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %45, label %19

19:                                               ; preds = %10
  %20 = getelementptr inbounds i8, ptr %1, i64 16
  %21 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %32, label %22

22:                                               ; preds = %19
  %23 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %24 = getelementptr inbounds i8, ptr %0, i64 120
  %25 = load i32, ptr %24, align 8, !tbaa !27
  %26 = icmp eq i32 %23, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 159, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #4
  unreachable

28:                                               ; preds = %22
  %29 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef 0)
  %30 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
  %31 = zext i32 %30 to i64
  tail call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %29, i64 noundef %31)
  br label %32

32:                                               ; preds = %28, %19
  %33 = getelementptr inbounds i8, ptr %1, i64 32
  %34 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
  %.not18 = icmp eq i32 %34, 0
  br i1 %.not18, label %45, label %35

35:                                               ; preds = %32
  %36 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %37 = getelementptr inbounds i8, ptr %0, i64 124
  %38 = load i32, ptr %37, align 4, !tbaa !28
  %39 = icmp eq i32 %36, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %35
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.3, i32 noundef 165, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #4
  unreachable

41:                                               ; preds = %35
  %42 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef 0)
  %43 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
  %44 = zext i32 %43 to i64
  tail call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %42, i64 noundef %44)
  br label %45

45:                                               ; preds = %32, %41, %10
  %46 = getelementptr inbounds i8, ptr %1, i64 64
  %47 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %46)
  %.not19 = icmp eq i32 %47, 0
  br i1 %.not19, label %58, label %48

48:                                               ; preds = %45
  %49 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %50 = getelementptr inbounds i8, ptr %0, i64 128
  %51 = load i32, ptr %50, align 8, !tbaa !29
  %52 = icmp eq i32 %49, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %48
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.3, i32 noundef 172, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #4
  unreachable

54:                                               ; preds = %48
  %55 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %46, i64 noundef 0)
  %56 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %46)
  %57 = zext i32 %56 to i64
  tail call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %55, i64 noundef %57)
  br label %58

58:                                               ; preds = %54, %45
  %59 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %60 = getelementptr inbounds i8, ptr %0, i64 132
  %61 = load i32, ptr %60, align 4, !tbaa !30
  %62 = icmp eq i32 %59, %61
  br i1 %62, label %.preheader, label %65

.preheader:                                       ; preds = %58
  %63 = tail call noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %.not21 = icmp eq i32 %63, 0
  br i1 %.not21, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %64 = getelementptr inbounds i8, ptr %1, i64 80
  br label %70

65:                                               ; preds = %58
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.3, i32 noundef 176, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #4
  unreachable

._crit_edge:                                      ; preds = %70, %.preheader
  %66 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %67 = getelementptr inbounds i8, ptr %0, i64 136
  %68 = load i32, ptr %67, align 8, !tbaa !31
  %69 = icmp eq i32 %66, %68
  br i1 %69, label %80, label %79

70:                                               ; preds = %.lr.ph, %70
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %70 ]
  %71 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %64, i64 noundef %indvars.iv)
  %72 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %71, i64 noundef 0)
  %73 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6basisu6vectorINS0_IhEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %64, i64 noundef %indvars.iv)
  %74 = tail call noundef i32 @_ZNK6basisu6vectorIhE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %73)
  %75 = zext i32 %74 to i64
  tail call void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %72, i64 noundef %75)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %76 = tail call noundef i32 @_ZNK6basisu6vectorINS_25basisu_backend_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %77 = zext i32 %76 to i64
  %78 = icmp ult i64 %indvars.iv.next, %77
  br i1 %78, label %70, label %._crit_edge, !llvm.loop !32

79:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.3, i32 noundef 180, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu11basisu_file16create_comp_dataERKNS_21basisu_backend_outputE) #4
  unreachable

80:                                               ; preds = %._crit_edge
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu13append_vectorINS_6vectorIhEEhEEvRT_PKT0_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu6vectorIN6basist16basis_slice_descEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { noreturn 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 #2 = { 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 = { 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 #4 = { noreturn 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, !16, i64 116}
!6 = !{!"_ZTSN6basisu11basisu_fileE", !7, i64 0, !14, i64 80, !17, i64 96, !16, i64 112, !16, i64 116, !16, i64 120, !16, i64 124, !16, i64 128, !16, i64 132, !16, i64 136}
!7 = !{!"_ZTSN6basist17basis_file_headerE", !8, i64 0, !8, i64 2, !8, i64 4, !8, i64 6, !11, i64 8, !8, i64 12, !12, i64 14, !12, i64 17, !13, i64 20, !8, i64 21, !13, i64 23, !12, i64 24, !11, i64 27, !11, i64 31, !11, i64 35, !8, i64 39, !11, i64 41, !12, i64 45, !8, i64 48, !11, i64 50, !12, i64 54, !11, i64 57, !11, i64 61, !11, i64 65, !11, i64 69, !11, i64 73}
!8 = !{!"_ZTSN6basisu11packed_uintILj2EEE", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN6basisu11packed_uintILj4EEE", !9, i64 0}
!12 = !{!"_ZTSN6basisu11packed_uintILj3EEE", !9, i64 0}
!13 = !{!"_ZTSN6basisu11packed_uintILj1EEE", !9, i64 0}
!14 = !{!"_ZTSN6basisu6vectorIN6basist16basis_slice_descEEE", !15, i64 0, !16, i64 8, !16, i64 12}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!"_ZTSN6basisu6vectorIhEE", !15, i64 0, !16, i64 8, !16, i64 12}
!18 = !{!19, !21, i64 5}
!19 = !{!"_ZTSN6basisu21basisu_backend_outputE", !20, i64 0, !21, i64 4, !21, i64 5, !21, i64 6, !16, i64 8, !16, i64 12, !17, i64 16, !17, i64 32, !22, i64 48, !17, i64 64, !23, i64 80, !24, i64 96}
!20 = !{!"_ZTSN6basist16basis_tex_formatE", !9, i64 0}
!21 = !{!"bool", !9, i64 0}
!22 = !{!"_ZTSN6basisu6vectorINS_25basisu_backend_slice_descEEE", !15, i64 0, !16, i64 8, !16, i64 12}
!23 = !{!"_ZTSN6basisu6vectorINS0_IhEEEE", !15, i64 0, !16, i64 8, !16, i64 12}
!24 = !{!"_ZTSN6basisu6vectorItEE", !15, i64 0, !16, i64 8, !16, i64 12}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!6, !16, i64 120}
!28 = !{!6, !16, i64 124}
!29 = !{!6, !16, i64 128}
!30 = !{!6, !16, i64 132}
!31 = !{!6, !16, i64 136}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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