; LLVM IR from ftylitak/qzxing :: src/zxing/bigint/BigUnsigned.ll (ZN11BigUnsigned8multiplyERKS_S1_)

; 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.BigUnsigned = type { %class.NumberlikeArray }
%class.NumberlikeArray = type { i32, i32, ptr }

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress uwtable
declare dso_local void @_ZN11BigUnsignedC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11BigUnsigned8multiplyERKS_S1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %class.BigUnsigned, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = icmp eq ptr %17, %18
  br i1 %19, label %23, label %20

20:                                               ; preds = %3
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = icmp eq ptr %17, %21
  br i1 %22, label %23, label %32

23:                                               ; preds = %20, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  call void @_ZN11BigUnsignedC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN11BigUnsigned8multiplyERKS_S1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %26 unwind label %28

26:                                               ; preds = %23
  invoke void @_ZN11BigUnsignedaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %27 unwind label %28

27:                                               ; preds = %26
  call void @_ZN15NumberlikeArrayImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  br label %198

28:                                               ; preds = %26, %23
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %8, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %9, align 4
  call void @_ZN15NumberlikeArrayImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  br label %199

32:                                               ; preds = %20
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %class.NumberlikeArray, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %42, label %37

37:                                               ; preds = %32
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %class.NumberlikeArray, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %37, %32
  %43 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 1
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %198

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.NumberlikeArray, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %class.NumberlikeArray, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = add i32 %47, %50
  %52 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 1
  store i32 %51, ptr %52, align 4, !tbaa !9
  %53 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 1
  %54 = load i32, ptr %53, align 4, !tbaa !9
  call void @_ZN15NumberlikeArrayImE8allocateEj(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef %54)
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %55

55:                                               ; preds = %66, %44
  %56 = load i32, ptr %10, align 4, !tbaa !12
  %57 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 1
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = icmp ult i32 %56, %58
  br i1 %59, label %60, label %69

60:                                               ; preds = %55
  %61 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = load i32, ptr %10, align 4, !tbaa !12
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds i64, ptr %62, i64 %64
  store i64 0, ptr %65, align 8, !tbaa !14
  br label %66

66:                                               ; preds = %60
  %67 = load i32, ptr %10, align 4, !tbaa !12
  %68 = add i32 %67, 1
  store i32 %68, ptr %10, align 4, !tbaa !12
  br label %55, !llvm.loop !16

69:                                               ; preds = %55
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %70

70:                                               ; preds = %180, %69
  %71 = load i32, ptr %10, align 4, !tbaa !12
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %class.NumberlikeArray, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = icmp ult i32 %71, %74
  br i1 %75, label %76, label %183

76:                                               ; preds = %70
  store i32 0, ptr %13, align 4, !tbaa !12
  br label %77

77:                                               ; preds = %176, %76
  %78 = load i32, ptr %13, align 4, !tbaa !12
  %79 = icmp ult i32 %78, 64
  br i1 %79, label %80, label %179

80:                                               ; preds = %77
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %class.NumberlikeArray, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = load i32, ptr %10, align 4, !tbaa !12
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds i64, ptr %83, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !14
  %88 = load i32, ptr %13, align 4, !tbaa !12
  %89 = zext i32 %88 to i64
  %90 = shl i64 1, %89
  %91 = and i64 %87, %90
  %92 = icmp eq i64 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %80
  br label %176

94:                                               ; preds = %80
  store i32 0, ptr %11, align 4, !tbaa !12
  %95 = load i32, ptr %10, align 4, !tbaa !12
  store i32 %95, ptr %12, align 4, !tbaa !12
  store i8 0, ptr %15, align 1, !tbaa !18
  br label %96

96:                                               ; preds = %147, %94
  %97 = load i32, ptr %11, align 4, !tbaa !12
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %class.NumberlikeArray, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = icmp ule i32 %97, %100
  br i1 %101, label %102, label %152

102:                                              ; preds = %96
  %103 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = load i32, ptr %12, align 4, !tbaa !12
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds i64, ptr %104, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !14
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load i32, ptr %11, align 4, !tbaa !12
  %111 = load i32, ptr %13, align 4, !tbaa !12
  %112 = call noundef i64 @_Z15getShiftedBlockRK11BigUnsignedjj(ptr noundef nonnull align 8 dereferenceable(16) %109, i32 noundef %110, i32 noundef %111)
  %113 = add i64 %108, %112
  store i64 %113, ptr %14, align 8, !tbaa !14
  %114 = load i64, ptr %14, align 8, !tbaa !14
  %115 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 2
  %116 = load ptr, ptr %115, align 8, !tbaa !13
  %117 = load i32, ptr %12, align 4, !tbaa !12
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds i64, ptr %116, i64 %118
  %120 = load i64, ptr %119, align 8, !tbaa !14
  %121 = icmp ult i64 %114, %120
  %122 = zext i1 %121 to i8
  store i8 %122, ptr %16, align 1, !tbaa !18
  %123 = load i8, ptr %15, align 1, !tbaa !18, !range !20, !noundef !21
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %137

125:                                              ; preds = %102
  %126 = load i64, ptr %14, align 8, !tbaa !14
  %127 = add i64 %126, 1
  store i64 %127, ptr %14, align 8, !tbaa !14
  %128 = load i64, ptr %14, align 8, !tbaa !14
  %129 = icmp eq i64 %128, 0
  %130 = zext i1 %129 to i32
  %131 = load i8, ptr %16, align 1, !tbaa !18, !range !20, !noundef !21
  %132 = trunc i8 %131 to i1
  %133 = zext i1 %132 to i32
  %134 = or i32 %133, %130
  %135 = icmp ne i32 %134, 0
  %136 = zext i1 %135 to i8
  store i8 %136, ptr %16, align 1, !tbaa !18
  br label %137

137:                                              ; preds = %125, %102
  %138 = load i64, ptr %14, align 8, !tbaa !14
  %139 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !13
  %141 = load i32, ptr %12, align 4, !tbaa !12
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds i64, ptr %140, i64 %142
  store i64 %138, ptr %143, align 8, !tbaa !14
  %144 = load i8, ptr %16, align 1, !tbaa !18, !range !20, !noundef !21
  %145 = trunc i8 %144 to i1
  %146 = zext i1 %145 to i8
  store i8 %146, ptr %15, align 1, !tbaa !18
  br label %147

147:                                              ; preds = %137
  %148 = load i32, ptr %11, align 4, !tbaa !12
  %149 = add i32 %148, 1
  store i32 %149, ptr %11, align 4, !tbaa !12
  %150 = load i32, ptr %12, align 4, !tbaa !12
  %151 = add i32 %150, 1
  store i32 %151, ptr %12, align 4, !tbaa !12
  br label %96, !llvm.loop !22

152:                                              ; preds = %96
  br label %153

153:                                              ; preds = %172, %152
  %154 = load i8, ptr %15, align 1, !tbaa !18, !range !20, !noundef !21
  %155 = trunc i8 %154 to i1
  br i1 %155, label %156, label %175

156:                                              ; preds = %153
  %157 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !13
  %159 = load i32, ptr %12, align 4, !tbaa !12
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds i64, ptr %158, i64 %160
  %162 = load i64, ptr %161, align 8, !tbaa !14
  %163 = add i64 %162, 1
  store i64 %163, ptr %161, align 8, !tbaa !14
  %164 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 2
  %165 = load ptr, ptr %164, align 8, !tbaa !13
  %166 = load i32, ptr %12, align 4, !tbaa !12
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds i64, ptr %165, i64 %167
  %169 = load i64, ptr %168, align 8, !tbaa !14
  %170 = icmp eq i64 %169, 0
  %171 = zext i1 %170 to i8
  store i8 %171, ptr %15, align 1, !tbaa !18
  br label %172

172:                                              ; preds = %156
  %173 = load i32, ptr %12, align 4, !tbaa !12
  %174 = add i32 %173, 1
  store i32 %174, ptr %12, align 4, !tbaa !12
  br label %153, !llvm.loop !23

175:                                              ; preds = %153
  br label %176

176:                                              ; preds = %175, %93
  %177 = load i32, ptr %13, align 4, !tbaa !12
  %178 = add i32 %177, 1
  store i32 %178, ptr %13, align 4, !tbaa !12
  br label %77, !llvm.loop !24

179:                                              ; preds = %77
  br label %180

180:                                              ; preds = %179
  %181 = load i32, ptr %10, align 4, !tbaa !12
  %182 = add i32 %181, 1
  store i32 %182, ptr %10, align 4, !tbaa !12
  br label %70, !llvm.loop !25

183:                                              ; preds = %70
  %184 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !13
  %186 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = sub i32 %187, 1
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds i64, ptr %185, i64 %189
  %191 = load i64, ptr %190, align 8, !tbaa !14
  %192 = icmp eq i64 %191, 0
  br i1 %192, label %193, label %197

193:                                              ; preds = %183
  %194 = getelementptr inbounds %class.NumberlikeArray, ptr %17, i32 0, i32 1
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = add i32 %195, -1
  store i32 %196, ptr %194, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %193, %183
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %198

198:                                              ; preds = %197, %42, %27
  ret void

199:                                              ; preds = %28
  %200 = load ptr, ptr %8, align 8
  %201 = load i32, ptr %9, align 4
  %202 = insertvalue { ptr, i32 } poison, ptr %200, 0
  %203 = insertvalue { ptr, i32 } %202, i32 %201, 1
  resume { ptr, i32 } %203
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z15getShiftedBlockRK11BigUnsignedjj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #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, !11, i64 4}
!10 = !{!"_ZTS15NumberlikeArrayImE", !11, i64 0, !11, i64 4, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !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.BigUnsigned = type { %class.NumberlikeArray }
%class.NumberlikeArray = type { i32, i32, ptr }

declare i32 @__gxx_personality_v0(...)

; 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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11BigUnsigned8multiplyERKS_S1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.BigUnsigned, align 8
  %5 = icmp eq ptr %0, %1
  %6 = icmp eq ptr %0, %2
  %or.cond = or i1 %5, %6
  br i1 %or.cond, label %7, label %12

7:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN11BigUnsignedC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  invoke void @_ZN11BigUnsigned8multiplyERKS_S1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %8 unwind label %10

8:                                                ; preds = %7
  invoke void @_ZN11BigUnsignedaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %9 unwind label %10

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

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

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %1, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %20, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %2, i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %16, %12
  %21 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %77

22:                                               ; preds = %16
  %23 = add i32 %18, %14
  %24 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %23, ptr %24, align 4, !tbaa !5
  tail call void @_ZN15NumberlikeArrayImE8allocateEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %23)
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %.not68 = icmp eq i32 %25, 0
  br i1 %.not68, label %.preheader59, label %.lr.ph

.lr.ph:                                           ; preds = %22
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = zext i32 %25 to i64
  %29 = shl nuw nsw i64 %28, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 %29, i1 false), !tbaa !12
  br label %.preheader59

.preheader59:                                     ; preds = %.lr.ph, %22
  %30 = load i32, ptr %13, align 4, !tbaa !5
  %.not69 = icmp eq i32 %30, 0
  br i1 %.not69, label %._crit_edge, label %.preheader58.lr.ph

.preheader58.lr.ph:                               ; preds = %.preheader59
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  br label %.preheader58

.preheader58:                                     ; preds = %.preheader58.lr.ph, %64
  %indvars.iv72 = phi i64 [ 0, %.preheader58.lr.ph ], [ %indvars.iv.next73, %64 ]
  %33 = trunc nuw i64 %indvars.iv72 to i32
  br label %34

34:                                               ; preds = %.preheader58, %.loopexit
  %indvars.iv = phi i64 [ 0, %.preheader58 ], [ %indvars.iv.next, %.loopexit ]
  %35 = load ptr, ptr %31, align 8, !tbaa !11
  %36 = getelementptr inbounds i64, ptr %35, i64 %indvars.iv72
  %37 = load i64, ptr %36, align 8, !tbaa !12
  %38 = shl nuw i64 1, %indvars.iv
  %39 = and i64 %37, %38
  %40 = icmp eq i64 %39, 0
  br i1 %40, label %.loopexit, label %.preheader57.preheader

.preheader57.preheader:                           ; preds = %34
  %.pre = load ptr, ptr %32, align 8, !tbaa !11
  %41 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.preheader57

.preheader:                                       ; preds = %.preheader57
  br i1 %.0.in, label %.lr.ph65, label %.loopexit

.preheader57:                                     ; preds = %.preheader57.preheader, %.preheader57
  %42 = phi ptr [ %48, %.preheader57 ], [ %.pre, %.preheader57.preheader ]
  %.04463 = phi i1 [ %.0.in, %.preheader57 ], [ false, %.preheader57.preheader ]
  %.04762 = phi i32 [ %56, %.preheader57 ], [ %33, %.preheader57.preheader ]
  %.04961 = phi i32 [ %55, %.preheader57 ], [ 0, %.preheader57.preheader ]
  %43 = zext i32 %.04762 to i64
  %44 = getelementptr inbounds i64, ptr %42, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !12
  %46 = tail call noundef i64 @_Z15getShiftedBlockRK11BigUnsignedjj(ptr noundef nonnull align 8 dereferenceable(16) %2, i32 noundef %.04961, i32 noundef %41)
  %47 = add i64 %46, %45
  %48 = load ptr, ptr %32, align 8, !tbaa !11
  %49 = getelementptr inbounds i64, ptr %48, i64 %43
  %50 = load i64, ptr %49, align 8, !tbaa !12
  %51 = icmp ult i64 %47, %50
  %52 = add i64 %47, 1
  %53 = icmp eq i64 %52, 0
  %.045 = select i1 %.04463, i64 %52, i64 %47
  %54 = select i1 %.04463, i1 %53, i1 false
  %.0.in = or i1 %51, %54
  store i64 %.045, ptr %49, align 8, !tbaa !12
  %55 = add i32 %.04961, 1
  %56 = add i32 %.04762, 1
  %57 = load i32, ptr %17, align 4, !tbaa !5
  %.not = icmp ugt i32 %55, %57
  br i1 %.not, label %.preheader, label %.preheader57, !llvm.loop !14

.lr.ph65:                                         ; preds = %.preheader, %.lr.ph65
  %.14864 = phi i32 [ %63, %.lr.ph65 ], [ %56, %.preheader ]
  %58 = zext i32 %.14864 to i64
  %59 = getelementptr inbounds i64, ptr %48, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !12
  %61 = add i64 %60, 1
  store i64 %61, ptr %59, align 8, !tbaa !12
  %62 = icmp eq i64 %61, 0
  %63 = add i32 %.14864, 1
  br i1 %62, label %.lr.ph65, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %.lr.ph65, %.preheader, %34
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 64
  br i1 %exitcond.not, label %64, label %34, !llvm.loop !17

64:                                               ; preds = %.loopexit
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %65 = load i32, ptr %13, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = icmp ult i64 %indvars.iv.next73, %66
  br i1 %67, label %.preheader58, label %._crit_edge.loopexit, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %64
  %.pre75 = load i32, ptr %24, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader59
  %68 = phi i32 [ %.pre75, %._crit_edge.loopexit ], [ %25, %.preheader59 ]
  %69 = getelementptr inbounds i8, ptr %0, i64 8
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = add i32 %68, -1
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds i64, ptr %70, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !12
  %75 = icmp eq i64 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %._crit_edge
  store i32 %71, ptr %24, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %._crit_edge, %76, %20, %9
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"_ZTS15NumberlikeArrayImE", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


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