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

; 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.basisu::vector.16" = type { ptr, i32, i32 }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef, i32 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initEjPKjj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.basisu::vector.16", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  %18 = load ptr, ptr %6, align 8
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = icmp ne i32 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %4
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = icmp ugt i32 %22, 16384
  br i1 %23, label %24, label %25

24:                                               ; preds = %21, %4
  store i1 false, ptr %5, align 1
  br label %135

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  call void @_ZN6basisu6vectorItEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %27)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %42, %25
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = icmp ult i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %49

33:                                               ; preds = %28
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %35, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = invoke noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef %34, i32 noundef %39)
          to label %41 unwind label %45

41:                                               ; preds = %33
  store i32 %40, ptr %11, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = add i32 %43, 1
  store i32 %44, ptr %12, align 4, !tbaa !9
  br label %28, !llvm.loop !11

45:                                               ; preds = %33
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %13, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %134

49:                                               ; preds = %32
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = icmp ult i32 %50, 65535
  br i1 %51, label %52, label %77

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %69, %52
  %54 = load i32, ptr %15, align 4, !tbaa !9
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = icmp ult i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %76

58:                                               ; preds = %53
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %59, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = trunc i32 %63 to i16
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = invoke noundef nonnull align 2 dereferenceable(2) ptr @_ZN6basisu6vectorItEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %66)
          to label %68 unwind label %72

68:                                               ; preds = %58
  store i16 %64, ptr %67, align 2, !tbaa !13
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = add i32 %70, 1
  store i32 %71, ptr %15, align 4, !tbaa !9
  br label %53, !llvm.loop !15

72:                                               ; preds = %58
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %134

76:                                               ; preds = %57
  br label %123

77:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %119, %77
  %79 = load i32, ptr %16, align 4, !tbaa !9
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = icmp ult i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %122

83:                                               ; preds = %78
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i32, ptr %16, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %118

90:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load i32, ptr %16, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds i32, ptr %91, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = mul i64 %96, 65534
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = lshr i32 %98, 1
  %100 = zext i32 %99 to i64
  %101 = add i64 %97, %100
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = udiv i64 %101, %103
  %105 = trunc i64 %104 to i32
  store i32 %105, ptr %17, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = invoke noundef i32 @_ZN6basisu5clampIjEET_S1_S1_S1_(i32 noundef %106, i32 noundef 1, i32 noundef 65534)
          to label %108 unwind label %114

108:                                              ; preds = %90
  %109 = trunc i32 %107 to i16
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = invoke noundef nonnull align 2 dereferenceable(2) ptr @_ZN6basisu6vectorItEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %111)
          to label %113 unwind label %114

113:                                              ; preds = %108
  store i16 %109, ptr %112, align 2, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %118

114:                                              ; preds = %108, %90
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %13, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %134

118:                                              ; preds = %113, %83
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = add i32 %120, 1
  store i32 %121, ptr %16, align 4, !tbaa !9
  br label %78, !llvm.loop !16

122:                                              ; preds = %82
  br label %123

123:                                              ; preds = %122, %76
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = invoke noundef nonnull align 2 dereferenceable(2) ptr @_ZN6basisu6vectorItEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef 0)
          to label %126 unwind label %130

126:                                              ; preds = %123
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = invoke noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initEjPKtj(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef %124, ptr noundef %125, i32 noundef %127)
          to label %129 unwind label %130

129:                                              ; preds = %126
  store i1 %128, ptr %5, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @_ZN6basisu6vectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  br label %135

130:                                              ; preds = %126, %123
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %13, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %14, align 4
  br label %134

134:                                              ; preds = %130, %114, %72, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @_ZN6basisu6vectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  br label %137

135:                                              ; preds = %129, %24
  %136 = load i1, ptr %5, align 1
  ret i1 %136

137:                                              ; preds = %134
  %138 = load ptr, ptr %13, align 8
  %139 = load i32, ptr %14, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu5clampIjEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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

%"class.basisu::vector.16" = type { ptr, i32, i32 }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initEjPKjj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.basisu::vector.16", align 8
  %6 = add i32 %1, -16385
  %or.cond = icmp ult i32 %6, -16384
  br i1 %or.cond, label %37, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %7 = zext nneg i32 %1 to i64
  call void @_ZN6basisu6vectorItEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %7)
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph
  %8 = icmp ult i32 %14, 65535
  br i1 %8, label %.lr.ph46, label %.lr.ph44

.lr.ph44:                                         ; preds = %._crit_edge
  %9 = lshr i32 %14, 1
  %10 = zext nneg i32 %9 to i64
  %11 = zext i32 %14 to i64
  br label %19

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.03542 = phi i32 [ 0, %.lr.ph.preheader ], [ %14, %.lr.ph ]
  %12 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = call noundef i32 @_ZN6basisu7maximumIjEET_S1_S1_(i32 noundef %.03542, i32 noundef %13)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %7
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

.lr.ph46:                                         ; preds = %._crit_edge, %.lr.ph46
  %indvars.iv57 = phi i64 [ %indvars.iv.next58, %.lr.ph46 ], [ 0, %._crit_edge ]
  %15 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv57
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = trunc i32 %16 to i16
  %18 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN6basisu6vectorItEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %indvars.iv57)
  store i16 %17, ptr %18, align 2, !tbaa !11
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %exitcond61.not = icmp eq i64 %indvars.iv.next58, %7
  br i1 %exitcond61.not, label %.loopexit, label %.lr.ph46, !llvm.loop !13

19:                                               ; preds = %.lr.ph44, %31
  %indvars.iv52 = phi i64 [ 0, %.lr.ph44 ], [ %indvars.iv.next53, %31 ]
  %20 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv52
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %31, label %22

22:                                               ; preds = %19
  %23 = zext i32 %21 to i64
  %24 = mul nuw nsw i64 %23, 65534
  %25 = add nuw nsw i64 %24, %10
  %26 = udiv i64 %25, %11
  %27 = trunc nuw i64 %26 to i32
  %28 = call noundef i32 @_ZN6basisu5clampIjEET_S1_S1_S1_(i32 noundef %27, i32 noundef 1, i32 noundef 65534)
  %29 = trunc i32 %28 to i16
  %30 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN6basisu6vectorItEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %indvars.iv52)
  store i16 %29, ptr %30, align 2, !tbaa !11
  br label %31

31:                                               ; preds = %19, %22
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next53, %7
  br i1 %exitcond56.not, label %.loopexit, label %19, !llvm.loop !14

.loopexit:                                        ; preds = %31, %.lr.ph46
  %32 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZN6basisu6vectorItEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 0)
  %33 = invoke noundef zeroext i1 @_ZN6basisu22huffman_encoding_table4initEjPKtj(ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1, ptr noundef nonnull %32, i32 noundef %3)
          to label %34 unwind label %35

34:                                               ; preds = %.loopexit
  call void @_ZN6basisu6vectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %37

35:                                               ; preds = %.loopexit
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6basisu6vectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  resume { ptr, i32 } %36

37:                                               ; preds = %4, %34
  %.0 = phi i1 [ %33, %34 ], [ false, %4 ]
  ret i1 %.0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu5clampIjEET_S1_S1_S1_(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu6vectorItED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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