; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/v2/indexing/train (flat_desc_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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.buildIndex::flatDescsFile" = type <{ ptr, i32, i8, [3 x i8], i32, i32, i8, [7 x i8] }>

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@__FUNCTION__._ZNK10buildIndex13flatDescsFile8getDescsEjjRPf = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10buildIndex13flatDescsFile8getDescsEjjRPf(ptr noundef nonnull align 8 dereferenceable(25) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = load i32, ptr %6, align 4, !tbaa !9
  %18 = icmp uge i32 %16, %17
  br i1 %18, label %25, label %19

19:                                               ; preds = %4
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.7)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef @__FUNCTION__._ZNK10buildIndex13flatDescsFile8getDescsEjjRPf)
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef @.str.3)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 44)
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str.4)
  call void @exit(i32 noundef 1) #8
  unreachable

25:                                               ; preds = %4
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = sub i32 %26, %27
  %29 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %31 = mul i32 %28, %30
  %32 = zext i32 %31 to i64
  %33 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %32, i64 4)
  %34 = extractvalue { i64, i1 } %33, 1
  %35 = extractvalue { i64, i1 } %33, 0
  %36 = select i1 %34, i64 -1, i64 %35
  %37 = call noalias noundef nonnull ptr @_Znam(i64 noundef %36) #9
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %37, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  %39 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 2
  %40 = load i8, ptr %39, align 4, !tbaa !14
  %41 = zext i8 %40 to i32
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %103

43:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !9
  %46 = sub i32 %44, %45
  %47 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = mul i32 %46, %48
  %50 = zext i32 %49 to i64
  %51 = call noalias noundef nonnull ptr @_Znam(i64 noundef %50) #9
  store ptr %51, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 1
  %53 = load i32, ptr %52, align 8, !tbaa !15
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = sub i32 %55, %56
  %58 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %59 = load i32, ptr %58, align 8, !tbaa !11
  %60 = mul i32 %57, %59
  %61 = zext i32 %60 to i64
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %65 = load i32, ptr %64, align 8, !tbaa !11
  %66 = zext i32 %65 to i64
  %67 = mul i64 %63, %66
  %68 = add i64 %67, 5
  %69 = call i64 @pread64(i32 noundef %53, ptr noundef %54, i64 noundef %61, i64 noundef %68)
  %70 = trunc i64 %69 to i32
  store i32 %70, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %71, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  store ptr %73, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = load i32, ptr %6, align 4, !tbaa !9
  %78 = sub i32 %76, %77
  %79 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %80 = load i32, ptr %79, align 8, !tbaa !11
  %81 = mul i32 %78, %80
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds float, ptr %75, i64 %82
  store ptr %83, ptr %13, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %93, %43
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = icmp ne ptr %85, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %84
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load i8, ptr %89, align 1, !tbaa !16
  %91 = uitofp i8 %90 to float
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  store float %91, ptr %92, align 4, !tbaa !17
  br label %93

93:                                               ; preds = %88
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i32 1
  store ptr %95, ptr %11, align 8, !tbaa !5
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds float, ptr %96, i32 1
  store ptr %97, ptr %12, align 8, !tbaa !5
  br label %84, !llvm.loop !19

98:                                               ; preds = %84
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = icmp eq ptr %99, null
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  call void @_ZdaPv(ptr noundef %99) #11
  br label %102

102:                                              ; preds = %101, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %137

103:                                              ; preds = %25
  %104 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 2
  %105 = load i8, ptr %104, align 4, !tbaa !14
  %106 = zext i8 %105 to i32
  %107 = icmp eq i32 %106, 4
  br i1 %107, label %108, label %130

108:                                              ; preds = %103
  %109 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 1
  %110 = load i32, ptr %109, align 8, !tbaa !15
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = load i32, ptr %6, align 4, !tbaa !9
  %115 = sub i32 %113, %114
  %116 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %117 = load i32, ptr %116, align 8, !tbaa !11
  %118 = mul i32 %115, %117
  %119 = zext i32 %118 to i64
  %120 = mul i64 %119, 4
  %121 = load i32, ptr %6, align 4, !tbaa !9
  %122 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %123 = load i32, ptr %122, align 8, !tbaa !11
  %124 = mul i32 %121, %123
  %125 = zext i32 %124 to i64
  %126 = mul i64 %125, 4
  %127 = add i64 5, %126
  %128 = call i64 @pread64(i32 noundef %110, ptr noundef %112, i64 noundef %120, i64 noundef %127)
  %129 = trunc i64 %128 to i32
  store i32 %129, ptr %9, align 4, !tbaa !9
  br label %136

130:                                              ; preds = %103
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.8)
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef @__FUNCTION__._ZNK10buildIndex13flatDescsFile8getDescsEjjRPf)
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @.str.3)
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %133, i32 noundef 78)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef @.str.4)
  call void @exit(i32 noundef 1) #8
  unreachable

136:                                              ; preds = %108
  br label %137

137:                                              ; preds = %136, %102
  %138 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 6
  %139 = load i8, ptr %138, align 8, !tbaa !21, !range !22, !noundef !23
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %161

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  store ptr %143, ptr %14, align 8, !tbaa !5
  br label %144

144:                                              ; preds = %152, %141
  %145 = load i32, ptr %6, align 4, !tbaa !9
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = icmp ne i32 %145, %146
  br i1 %147, label %148, label %160

148:                                              ; preds = %144
  %149 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %150 = load i32, ptr %149, align 8, !tbaa !11
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN10descToHell13convertToHellEjPf(i32 noundef %150, ptr noundef %151)
  br label %152

152:                                              ; preds = %148
  %153 = load i32, ptr %6, align 4, !tbaa !9
  %154 = add i32 %153, 1
  store i32 %154, ptr %6, align 4, !tbaa !9
  %155 = getelementptr inbounds %"class.buildIndex::flatDescsFile", ptr %15, i32 0, i32 4
  %156 = load i32, ptr %155, align 8, !tbaa !11
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = zext i32 %156 to i64
  %159 = getelementptr inbounds float, ptr %157, i64 %158
  store ptr %159, ptr %14, align 8, !tbaa !5
  br label %144, !llvm.loop !24

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

161:                                              ; preds = %160, %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  ret void
}

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

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

declare i64 @pread64(i32 noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10descToHell13convertToHellEjPf(i32 noundef, ptr noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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 #8 = { noreturn nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { nounwind }
attributes #11 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTSN10buildIndex13flatDescsFileE", !6, i64 0, !10, i64 8, !7, i64 12, !10, i64 16, !10, i64 20, !13, i64 24}
!13 = !{!"bool", !7, i64 0}
!14 = !{!12, !7, i64 12}
!15 = !{!12, !10, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !13, i64 24}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !20}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@__FUNCTION__._ZNK10buildIndex13flatDescsFile8getDescsEjjRPf = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10buildIndex13flatDescsFile8getDescsEjjRPf(ptr nocapture noundef nonnull readonly align 8 dereferenceable(25) %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef nonnull align 8 dereferenceable(8) %3) local_unnamed_addr #3 align 2 {
  %.not = icmp ult i32 %2, %1
  br i1 %.not, label %5, label %11

5:                                                ; preds = %4
  %6 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.7)
  %7 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @__FUNCTION__._ZNK10buildIndex13flatDescsFile8getDescsEjjRPf)
  %8 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.3)
  %9 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %8, i32 noundef 44)
  %10 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.4)
  tail call void @exit(i32 noundef 1) #6
  unreachable

11:                                               ; preds = %4
  %12 = sub i32 %2, %1
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = mul i32 %14, %12
  %16 = zext i32 %15 to i64
  %17 = shl nuw nsw i64 %16, 2
  %18 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %17) #7
  store ptr %18, ptr %3, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %0, i64 12
  %20 = load i8, ptr %19, align 4, !tbaa !13
  switch i8 %20, label %61 [
    i8 0, label %21
    i8 4, label %53
  ]

21:                                               ; preds = %11
  %22 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %16) #7
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = load i32, ptr %23, align 8, !tbaa !14
  %25 = zext i32 %1 to i64
  %26 = zext i32 %14 to i64
  %27 = mul nuw i64 %26, %25
  %28 = add nuw i64 %27, 5
  %29 = tail call i64 @pread64(i32 noundef %24, ptr noundef nonnull %22, i64 noundef %16, i64 noundef %28)
  %30 = load ptr, ptr %3, align 8, !tbaa !12
  %31 = load i32, ptr %13, align 8, !tbaa !5
  %32 = mul i32 %31, %12
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds float, ptr %30, i64 %33
  %.not3941 = icmp eq i32 %32, 0
  br i1 %.not3941, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %21
  %35 = add nuw nsw i64 %33, 4611686018427387903
  %36 = and i64 %35, 4611686018427387903
  %37 = add nuw nsw i64 %36, 1
  %min.iters.check = icmp ult i64 %36, 15
  br i1 %min.iters.check, label %.lr.ph.preheader57, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %38 = add nuw nsw i64 %33, 4611686018427387903
  %39 = and i64 %38, 4611686018427387903
  %40 = shl nuw i64 %39, 2
  %41 = getelementptr i8, ptr %30, i64 %40
  %scevgep = getelementptr i8, ptr %41, i64 4
  %42 = getelementptr i8, ptr %22, i64 %39
  %scevgep50 = getelementptr i8, ptr %42, i64 1
  %bound0 = icmp ult ptr %30, %scevgep50
  %bound1 = icmp ult ptr %22, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader57, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %37, 9223372036854775800
  %43 = shl i64 %n.vec, 2
  %ind.end = getelementptr i8, ptr %30, i64 %43
  %ind.end51 = getelementptr i8, ptr %22, i64 %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 2
  %next.gep = getelementptr i8, ptr %30, i64 %offset.idx
  %next.gep54 = getelementptr i8, ptr %22, i64 %index
  %44 = getelementptr i8, ptr %next.gep54, i64 4
  %wide.load = load <4 x i8>, ptr %next.gep54, align 1, !tbaa !15, !alias.scope !16
  %wide.load56 = load <4 x i8>, ptr %44, align 1, !tbaa !15, !alias.scope !16
  %45 = uitofp <4 x i8> %wide.load to <4 x float>
  %46 = uitofp <4 x i8> %wide.load56 to <4 x float>
  %47 = getelementptr i8, ptr %next.gep, i64 16
  store <4 x float> %45, ptr %next.gep, align 4, !tbaa !19, !alias.scope !21, !noalias !16
  store <4 x float> %46, ptr %47, align 4, !tbaa !19, !alias.scope !21, !noalias !16
  %index.next = add nuw i64 %index, 8
  %48 = icmp eq i64 %index.next, %n.vec
  br i1 %48, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %37, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader57

.lr.ph.preheader57:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %.03443.ph = phi ptr [ %30, %vector.memcheck ], [ %30, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.03542.ph = phi ptr [ %22, %vector.memcheck ], [ %22, %.lr.ph.preheader ], [ %ind.end51, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader57, %.lr.ph
  %.03443 = phi ptr [ %52, %.lr.ph ], [ %.03443.ph, %.lr.ph.preheader57 ]
  %.03542 = phi ptr [ %51, %.lr.ph ], [ %.03542.ph, %.lr.ph.preheader57 ]
  %49 = load i8, ptr %.03542, align 1, !tbaa !15
  %50 = uitofp i8 %49 to float
  store float %50, ptr %.03443, align 4, !tbaa !19
  %51 = getelementptr inbounds i8, ptr %.03542, i64 1
  %52 = getelementptr inbounds i8, ptr %.03443, i64 4
  %.not39 = icmp eq ptr %52, %34
  br i1 %.not39, label %._crit_edge, label %.lr.ph, !llvm.loop !27

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %21
  tail call void @_ZdaPv(ptr noundef nonnull %22) #8
  br label %67

53:                                               ; preds = %11
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !14
  %56 = mul i32 %14, %1
  %57 = zext i32 %56 to i64
  %58 = shl nuw nsw i64 %57, 2
  %59 = add nuw nsw i64 %58, 5
  %60 = tail call i64 @pread64(i32 noundef %55, ptr noundef nonnull %18, i64 noundef %17, i64 noundef %59)
  br label %67

61:                                               ; preds = %11
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.8)
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @__FUNCTION__._ZNK10buildIndex13flatDescsFile8getDescsEjjRPf)
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.3)
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %64, i32 noundef 78)
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @.str.4)
  tail call void @exit(i32 noundef 1) #6
  unreachable

67:                                               ; preds = %53, %._crit_edge
  %68 = getelementptr inbounds i8, ptr %0, i64 24
  %69 = load i8, ptr %68, align 8, !tbaa !28, !range !29, !noundef !30
  %70 = trunc nuw i8 %69 to i1
  %.not4044 = icmp ne i32 %1, %2
  %or.cond.not = and i1 %.not4044, %70
  br i1 %or.cond.not, label %.lr.ph48.preheader, label %.loopexit

.lr.ph48.preheader:                               ; preds = %67
  %71 = load ptr, ptr %3, align 8
  %.pre = load i32, ptr %13, align 8, !tbaa !5
  br label %.lr.ph48

.lr.ph48:                                         ; preds = %.lr.ph48.preheader, %.lr.ph48
  %72 = phi i32 [ %74, %.lr.ph48 ], [ %.pre, %.lr.ph48.preheader ]
  %.046 = phi ptr [ %76, %.lr.ph48 ], [ %71, %.lr.ph48.preheader ]
  %.03345 = phi i32 [ %73, %.lr.ph48 ], [ %1, %.lr.ph48.preheader ]
  tail call void @_ZN10descToHell13convertToHellEjPf(i32 noundef %72, ptr noundef %.046)
  %73 = add i32 %.03345, 1
  %74 = load i32, ptr %13, align 8, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds float, ptr %.046, i64 %75
  %.not40 = icmp eq i32 %73, %2
  br i1 %.not40, label %.loopexit, label %.lr.ph48, !llvm.loop !31

.loopexit:                                        ; preds = %.lr.ph48, %67
  ret void
}

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

declare i64 @pread64(i32 noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10descToHell13convertToHellEjPf(i32 noundef, ptr noundef) local_unnamed_addr #3 align 2

attributes #0 = { 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 #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 = { 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 = { 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 = { noreturn nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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 16}
!6 = !{!"_ZTSN10buildIndex13flatDescsFileE", !7, i64 0, !10, i64 8, !8, i64 12, !10, i64 16, !10, i64 20, !11, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !8, i64 12}
!14 = !{!6, !10, i64 8}
!15 = !{!8, !8, i64 0}
!16 = !{!17}
!17 = distinct !{!17, !18}
!18 = distinct !{!18, !"LVerDomain"}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !8, i64 0}
!21 = !{!22}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !24, !25, !26}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !24, !25}
!28 = !{!6, !11, i64 24}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass