; LLVM IR from pixelsdb/mini-pixels :: pixels-core/lib/utils (EncodingUtils)

; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.EncodingUtils = type { ptr, ptr }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EncodingUtils19writeRemainingLongsESt10shared_ptrI10ByteBufferEiPlii(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #2 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::shared_ptr", align 8
  %16 = alloca %"class.std::shared_ptr", align 8
  %17 = alloca %"class.std::shared_ptr", align 8
  %18 = alloca %"class.std::shared_ptr", align 8
  %19 = alloca %"class.std::shared_ptr", align 8
  %20 = alloca %"class.std::shared_ptr", align 8
  %21 = alloca %"class.std::shared_ptr", align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %23 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %24 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %24, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  %25 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %25, label %183 [
    i32 1, label %26
    i32 2, label %50
    i32 3, label %69
    i32 4, label %88
    i32 5, label %107
    i32 6, label %126
    i32 7, label %145
    i32 8, label %164
  ]

26:                                               ; preds = %6
  br label %27

27:                                               ; preds = %30, %26
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %30, label %49

30:                                               ; preds = %27
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = load i32, ptr %14, align 4, !tbaa !9
  %34 = add nsw i32 %32, %33
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i64, ptr %31, i64 %35
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = and i64 %37, 255
  %39 = trunc i64 %38 to i8
  %40 = getelementptr inbounds %class.EncodingUtils, ptr %23, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !13
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %41, i64 %43
  store i8 %39, ptr %44, align 1, !tbaa !15
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %11, align 4, !tbaa !9
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %14, align 4, !tbaa !9
  br label %27, !llvm.loop !16

49:                                               ; preds = %27
  br label %184

50:                                               ; preds = %6
  br label %51

51:                                               ; preds = %54, %50
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %54, label %68

54:                                               ; preds = %51
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = add nsw i32 %56, %57
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i64, ptr %55, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = mul nsw i32 %62, 2
  call void @_ZN13EncodingUtils12writeLongBE2ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %15, i64 noundef %61, i32 noundef %63)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr %11, align 4, !tbaa !9
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %14, align 4, !tbaa !9
  br label %51, !llvm.loop !18

68:                                               ; preds = %51
  br label %184

69:                                               ; preds = %6
  br label %70

70:                                               ; preds = %73, %69
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %73, label %87

73:                                               ; preds = %70
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = add nsw i32 %75, %76
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i64, ptr %74, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !11
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = mul nsw i32 %81, 3
  call void @_ZN13EncodingUtils12writeLongBE3ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %16, i64 noundef %80, i32 noundef %82)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = add nsw i32 %83, -1
  store i32 %84, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %14, align 4, !tbaa !9
  br label %70, !llvm.loop !19

87:                                               ; preds = %70
  br label %184

88:                                               ; preds = %6
  br label %89

89:                                               ; preds = %92, %88
  %90 = load i32, ptr %11, align 4, !tbaa !9
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %92, label %106

92:                                               ; preds = %89
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = add nsw i32 %94, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i64, ptr %93, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !11
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = mul nsw i32 %100, 4
  call void @_ZN13EncodingUtils12writeLongBE4ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %17, i64 noundef %99, i32 noundef %101)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = add nsw i32 %102, -1
  store i32 %103, ptr %11, align 4, !tbaa !9
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %14, align 4, !tbaa !9
  br label %89, !llvm.loop !20

106:                                              ; preds = %89
  br label %184

107:                                              ; preds = %6
  br label %108

108:                                              ; preds = %111, %107
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %111, label %125

111:                                              ; preds = %108
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = add nsw i32 %113, %114
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i64, ptr %112, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !11
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = mul nsw i32 %119, 5
  call void @_ZN13EncodingUtils12writeLongBE5ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %18, i64 noundef %118, i32 noundef %120)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = add nsw i32 %121, -1
  store i32 %122, ptr %11, align 4, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %14, align 4, !tbaa !9
  br label %108, !llvm.loop !21

125:                                              ; preds = %108
  br label %184

126:                                              ; preds = %6
  br label %127

127:                                              ; preds = %130, %126
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %130, label %144

130:                                              ; preds = %127
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = load i32, ptr %9, align 4, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = add nsw i32 %132, %133
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i64, ptr %131, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !11
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = mul nsw i32 %138, 6
  call void @_ZN13EncodingUtils12writeLongBE6ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %19, i64 noundef %137, i32 noundef %139)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = add nsw i32 %140, -1
  store i32 %141, ptr %11, align 4, !tbaa !9
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %14, align 4, !tbaa !9
  br label %127, !llvm.loop !22

144:                                              ; preds = %127
  br label %184

145:                                              ; preds = %6
  br label %146

146:                                              ; preds = %149, %145
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = icmp sgt i32 %147, 0
  br i1 %148, label %149, label %163

149:                                              ; preds = %146
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = add nsw i32 %151, %152
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds i64, ptr %150, i64 %154
  %156 = load i64, ptr %155, align 8, !tbaa !11
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = mul nsw i32 %157, 7
  call void @_ZN13EncodingUtils12writeLongBE7ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %20, i64 noundef %156, i32 noundef %158)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #4
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = add nsw i32 %159, -1
  store i32 %160, ptr %11, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %14, align 4, !tbaa !9
  br label %146, !llvm.loop !23

163:                                              ; preds = %146
  br label %184

164:                                              ; preds = %6
  br label %165

165:                                              ; preds = %168, %164
  %166 = load i32, ptr %11, align 4, !tbaa !9
  %167 = icmp sgt i32 %166, 0
  br i1 %167, label %168, label %182

168:                                              ; preds = %165
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %1) #4
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = add nsw i32 %170, %171
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i64, ptr %169, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !11
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = mul nsw i32 %176, 8
  call void @_ZN13EncodingUtils12writeLongBE8ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef %21, i64 noundef %175, i32 noundef %177)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #4
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = add nsw i32 %178, -1
  store i32 %179, ptr %11, align 4, !tbaa !9
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %14, align 4, !tbaa !9
  br label %165, !llvm.loop !24

182:                                              ; preds = %165
  br label %184

183:                                              ; preds = %6
  br label %184

184:                                              ; preds = %183, %182, %163, %144, %125, %106, %87, %68, %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = mul nsw i32 %185, %186
  store i32 %187, ptr %22, align 4, !tbaa !9
  %188 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #4
  %189 = getelementptr inbounds %class.EncodingUtils, ptr %23, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8, !tbaa !13
  %191 = load i32, ptr %22, align 4, !tbaa !9
  call void @_ZN10ByteBuffer8putBytesEPhj(ptr noundef nonnull align 8 dereferenceable(62) %188, ptr noundef %190, i32 noundef %191)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret void
}

declare void @_ZN10ByteBuffer8putBytesEPhj(ptr noundef nonnull align 8 dereferenceable(62), ptr noundef, i32 noundef) #3

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS13EncodingUtils", !6, i64 0, !6, i64 8}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}


; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EncodingUtils19writeRemainingLongsESt10shared_ptrI10ByteBufferEiPlii(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 align 2 {
  %7 = alloca %"class.std::shared_ptr", align 8
  %8 = alloca %"class.std::shared_ptr", align 8
  %9 = alloca %"class.std::shared_ptr", align 8
  %10 = alloca %"class.std::shared_ptr", align 8
  %11 = alloca %"class.std::shared_ptr", align 8
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca %"class.std::shared_ptr", align 8
  switch i32 %5, label %.loopexit [
    i32 1, label %.preheader
    i32 2, label %.preheader69
    i32 3, label %.preheader71
    i32 4, label %.preheader73
    i32 5, label %.preheader75
    i32 6, label %.preheader77
    i32 7, label %.preheader79
    i32 8, label %.preheader81
  ]

.preheader81:                                     ; preds = %6
  %14 = icmp sgt i32 %4, 0
  br i1 %14, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader81
  %15 = sext i32 %2 to i64
  %wide.trip.count = zext nneg i32 %4 to i64
  %invariant.gep = getelementptr i64, ptr %3, i64 %15
  br label %.lr.ph

.preheader79:                                     ; preds = %6
  %16 = icmp sgt i32 %4, 0
  br i1 %16, label %.lr.ph87.preheader, label %.loopexit

.lr.ph87.preheader:                               ; preds = %.preheader79
  %17 = sext i32 %2 to i64
  %wide.trip.count117 = zext nneg i32 %4 to i64
  %invariant.gep156 = getelementptr i64, ptr %3, i64 %17
  br label %.lr.ph87

.preheader77:                                     ; preds = %6
  %18 = icmp sgt i32 %4, 0
  br i1 %18, label %.lr.ph90.preheader, label %.loopexit

.lr.ph90.preheader:                               ; preds = %.preheader77
  %19 = sext i32 %2 to i64
  %wide.trip.count122 = zext nneg i32 %4 to i64
  %invariant.gep158 = getelementptr i64, ptr %3, i64 %19
  br label %.lr.ph90

.preheader75:                                     ; preds = %6
  %20 = icmp sgt i32 %4, 0
  br i1 %20, label %.lr.ph93.preheader, label %.loopexit

.lr.ph93.preheader:                               ; preds = %.preheader75
  %21 = sext i32 %2 to i64
  %wide.trip.count127 = zext nneg i32 %4 to i64
  %invariant.gep160 = getelementptr i64, ptr %3, i64 %21
  br label %.lr.ph93

.preheader73:                                     ; preds = %6
  %22 = icmp sgt i32 %4, 0
  br i1 %22, label %.lr.ph96.preheader, label %.loopexit

.lr.ph96.preheader:                               ; preds = %.preheader73
  %23 = sext i32 %2 to i64
  %wide.trip.count132 = zext nneg i32 %4 to i64
  %invariant.gep162 = getelementptr i64, ptr %3, i64 %23
  br label %.lr.ph96

.preheader71:                                     ; preds = %6
  %24 = icmp sgt i32 %4, 0
  br i1 %24, label %.lr.ph99.preheader, label %.loopexit

.lr.ph99.preheader:                               ; preds = %.preheader71
  %25 = sext i32 %2 to i64
  %wide.trip.count137 = zext nneg i32 %4 to i64
  %invariant.gep164 = getelementptr i64, ptr %3, i64 %25
  br label %.lr.ph99

.preheader69:                                     ; preds = %6
  %26 = icmp sgt i32 %4, 0
  br i1 %26, label %.lr.ph102.preheader, label %.loopexit

.lr.ph102.preheader:                              ; preds = %.preheader69
  %27 = sext i32 %2 to i64
  %wide.trip.count142 = zext nneg i32 %4 to i64
  %invariant.gep166 = getelementptr i64, ptr %3, i64 %27
  br label %.lr.ph102

.preheader:                                       ; preds = %6
  %28 = icmp sgt i32 %4, 0
  br i1 %28, label %.lr.ph105, label %.loopexit

.lr.ph105:                                        ; preds = %.preheader
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = sext i32 %2 to i64
  %wide.trip.count147 = zext nneg i32 %4 to i64
  %invariant.gep168 = getelementptr i64, ptr %3, i64 %30
  %xtraiter = and i64 %wide.trip.count147, 3
  %31 = icmp ult i32 %4, 4
  br i1 %31, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph105.new

.lr.ph105.new:                                    ; preds = %.lr.ph105
  %unroll_iter = and i64 %wide.trip.count147, 2147483644
  br label %32

32:                                               ; preds = %32, %.lr.ph105.new
  %indvars.iv144 = phi i64 [ 0, %.lr.ph105.new ], [ %indvars.iv.next145.3, %32 ]
  %niter = phi i64 [ 0, %.lr.ph105.new ], [ %niter.next.3, %32 ]
  %gep169 = getelementptr i64, ptr %invariant.gep168, i64 %indvars.iv144
  %33 = load i64, ptr %gep169, align 8, !tbaa !5
  %34 = trunc i64 %33 to i8
  %35 = load ptr, ptr %29, align 8, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %35, i64 %indvars.iv144
  store i8 %34, ptr %36, align 1, !tbaa !12
  %indvars.iv.next145 = or disjoint i64 %indvars.iv144, 1
  %gep169.1 = getelementptr i64, ptr %invariant.gep168, i64 %indvars.iv.next145
  %37 = load i64, ptr %gep169.1, align 8, !tbaa !5
  %38 = trunc i64 %37 to i8
  %39 = load ptr, ptr %29, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %39, i64 %indvars.iv.next145
  store i8 %38, ptr %40, align 1, !tbaa !12
  %indvars.iv.next145.1 = or disjoint i64 %indvars.iv144, 2
  %gep169.2 = getelementptr i64, ptr %invariant.gep168, i64 %indvars.iv.next145.1
  %41 = load i64, ptr %gep169.2, align 8, !tbaa !5
  %42 = trunc i64 %41 to i8
  %43 = load ptr, ptr %29, align 8, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %43, i64 %indvars.iv.next145.1
  store i8 %42, ptr %44, align 1, !tbaa !12
  %indvars.iv.next145.2 = or disjoint i64 %indvars.iv144, 3
  %gep169.3 = getelementptr i64, ptr %invariant.gep168, i64 %indvars.iv.next145.2
  %45 = load i64, ptr %gep169.3, align 8, !tbaa !5
  %46 = trunc i64 %45 to i8
  %47 = load ptr, ptr %29, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i64 %indvars.iv.next145.2
  store i8 %46, ptr %48, align 1, !tbaa !12
  %indvars.iv.next145.3 = add nuw nsw i64 %indvars.iv144, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %32, !llvm.loop !13

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %.lr.ph102
  %indvars.iv139 = phi i64 [ 0, %.lr.ph102.preheader ], [ %indvars.iv.next140, %.lr.ph102 ]
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %gep167 = getelementptr i64, ptr %invariant.gep166, i64 %indvars.iv139
  %49 = load i64, ptr %gep167, align 8, !tbaa !5
  %indvars.iv139.tr = trunc i64 %indvars.iv139 to i32
  %50 = shl i32 %indvars.iv139.tr, 1
  call void @_ZN13EncodingUtils12writeLongBE2ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %7, i64 noundef %49, i32 noundef %50)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #3
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %exitcond143.not = icmp eq i64 %indvars.iv.next140, %wide.trip.count142
  br i1 %exitcond143.not, label %.loopexit, label %.lr.ph102, !llvm.loop !15

.lr.ph99:                                         ; preds = %.lr.ph99.preheader, %.lr.ph99
  %indvars.iv134 = phi i64 [ 0, %.lr.ph99.preheader ], [ %indvars.iv.next135, %.lr.ph99 ]
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %gep165 = getelementptr i64, ptr %invariant.gep164, i64 %indvars.iv134
  %51 = load i64, ptr %gep165, align 8, !tbaa !5
  %52 = trunc i64 %indvars.iv134 to i32
  %53 = mul i32 %52, 3
  call void @_ZN13EncodingUtils12writeLongBE3ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %8, i64 noundef %51, i32 noundef %53)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #3
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %exitcond138.not = icmp eq i64 %indvars.iv.next135, %wide.trip.count137
  br i1 %exitcond138.not, label %.loopexit, label %.lr.ph99, !llvm.loop !16

.lr.ph96:                                         ; preds = %.lr.ph96.preheader, %.lr.ph96
  %indvars.iv129 = phi i64 [ 0, %.lr.ph96.preheader ], [ %indvars.iv.next130, %.lr.ph96 ]
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %gep163 = getelementptr i64, ptr %invariant.gep162, i64 %indvars.iv129
  %54 = load i64, ptr %gep163, align 8, !tbaa !5
  %indvars.iv129.tr = trunc i64 %indvars.iv129 to i32
  %55 = shl i32 %indvars.iv129.tr, 2
  call void @_ZN13EncodingUtils12writeLongBE4ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %9, i64 noundef %54, i32 noundef %55)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #3
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %exitcond133.not = icmp eq i64 %indvars.iv.next130, %wide.trip.count132
  br i1 %exitcond133.not, label %.loopexit, label %.lr.ph96, !llvm.loop !17

.lr.ph93:                                         ; preds = %.lr.ph93.preheader, %.lr.ph93
  %indvars.iv124 = phi i64 [ 0, %.lr.ph93.preheader ], [ %indvars.iv.next125, %.lr.ph93 ]
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %gep161 = getelementptr i64, ptr %invariant.gep160, i64 %indvars.iv124
  %56 = load i64, ptr %gep161, align 8, !tbaa !5
  %57 = trunc i64 %indvars.iv124 to i32
  %58 = mul i32 %57, 5
  call void @_ZN13EncodingUtils12writeLongBE5ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %10, i64 noundef %56, i32 noundef %58)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #3
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond128.not = icmp eq i64 %indvars.iv.next125, %wide.trip.count127
  br i1 %exitcond128.not, label %.loopexit, label %.lr.ph93, !llvm.loop !18

.lr.ph90:                                         ; preds = %.lr.ph90.preheader, %.lr.ph90
  %indvars.iv119 = phi i64 [ 0, %.lr.ph90.preheader ], [ %indvars.iv.next120, %.lr.ph90 ]
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %gep159 = getelementptr i64, ptr %invariant.gep158, i64 %indvars.iv119
  %59 = load i64, ptr %gep159, align 8, !tbaa !5
  %60 = trunc i64 %indvars.iv119 to i32
  %61 = mul i32 %60, 6
  call void @_ZN13EncodingUtils12writeLongBE6ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %11, i64 noundef %59, i32 noundef %61)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #3
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next120, %wide.trip.count122
  br i1 %exitcond123.not, label %.loopexit, label %.lr.ph90, !llvm.loop !19

.lr.ph87:                                         ; preds = %.lr.ph87.preheader, %.lr.ph87
  %indvars.iv114 = phi i64 [ 0, %.lr.ph87.preheader ], [ %indvars.iv.next115, %.lr.ph87 ]
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %gep157 = getelementptr i64, ptr %invariant.gep156, i64 %indvars.iv114
  %62 = load i64, ptr %gep157, align 8, !tbaa !5
  %63 = trunc i64 %indvars.iv114 to i32
  %64 = mul i32 %63, 7
  call void @_ZN13EncodingUtils12writeLongBE7ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %12, i64 noundef %62, i32 noundef %64)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #3
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %exitcond118.not = icmp eq i64 %indvars.iv.next115, %wide.trip.count117
  br i1 %exitcond118.not, label %.loopexit, label %.lr.ph87, !llvm.loop !20

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  call void @_ZNSt10shared_ptrI10ByteBufferEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %1) #3
  %gep = getelementptr i64, ptr %invariant.gep, i64 %indvars.iv
  %65 = load i64, ptr %gep, align 8, !tbaa !5
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %66 = shl i32 %indvars.iv.tr, 3
  call void @_ZN13EncodingUtils12writeLongBE8ESt10shared_ptrI10ByteBufferEli(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %13, i64 noundef %65, i32 noundef %66)
  call void @_ZNSt12__shared_ptrI10ByteBufferLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !21

.loopexit.loopexit.unr-lcssa:                     ; preds = %32, %.lr.ph105
  %indvars.iv144.unr = phi i64 [ 0, %.lr.ph105 ], [ %indvars.iv.next145.3, %32 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv144.epil = phi i64 [ %indvars.iv.next145.epil, %.epil.preheader ], [ %indvars.iv144.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %gep169.epil = getelementptr i64, ptr %invariant.gep168, i64 %indvars.iv144.epil
  %67 = load i64, ptr %gep169.epil, align 8, !tbaa !5
  %68 = trunc i64 %67 to i8
  %69 = load ptr, ptr %29, align 8, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %69, i64 %indvars.iv144.epil
  store i8 %68, ptr %70, align 1, !tbaa !12
  %indvars.iv.next145.epil = add nuw nsw i64 %indvars.iv144.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.epil.preheader, !llvm.loop !22

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph87, %.lr.ph90, %.lr.ph93, %.lr.ph96, %.lr.ph99, %.lr.ph102, %.loopexit.loopexit.unr-lcssa, %.epil.preheader, %.preheader81, %.preheader79, %.preheader77, %.preheader75, %.preheader73, %.preheader71, %.preheader69, %.preheader, %6
  %71 = mul nsw i32 %5, %4
  %72 = call noundef ptr @_ZNKSt19__shared_ptr_accessI10ByteBufferLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #3
  %73 = getelementptr inbounds i8, ptr %0, i64 8
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  call void @_ZN10ByteBuffer8putBytesEPhj(ptr noundef nonnull align 8 dereferenceable(62) %72, ptr noundef %74, i32 noundef %71)
  ret void
}

declare void @_ZN10ByteBuffer8putBytesEPhj(ptr noundef nonnull align 8 dereferenceable(62), ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

attributes #0 = { 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 = { 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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_ZTS13EncodingUtils", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}


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