; LLVM IR from lelegard/cryptobench :: src/bench_reference.ll (ZN15bench_reference13one_iterationEv)

; 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.bench_reference = type { %class.bench, %"class.std::vector" }
%class.bench = type { ptr, %"class.std::__cxx11::basic_string", i64, i64, i64, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN15bench_reference13one_iterationEv(ptr noundef nonnull align 8 dereferenceable(96) %0) unnamed_addr #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  store i64 0, ptr %3, align 8, !tbaa !9
  br label %12

12:                                               ; preds = %25, %1
  %13 = load i64, ptr %3, align 8, !tbaa !9
  %14 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %15 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #2
  %16 = icmp ult i64 %13, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  br label %28

18:                                               ; preds = %12
  %19 = load i64, ptr %3, align 8, !tbaa !9
  %20 = mul i64 7, %19
  %21 = add i64 3, %20
  %22 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %23 = load i64, ptr %3, align 8, !tbaa !9
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %23) #2
  store i64 %21, ptr %24, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %18
  %26 = load i64, ptr %3, align 8, !tbaa !9
  %27 = add i64 %26, 1
  store i64 %27, ptr %3, align 8, !tbaa !9
  br label %12, !llvm.loop !11

28:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  store i64 0, ptr %4, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %158, %28
  %30 = load i64, ptr %4, align 8, !tbaa !9
  %31 = icmp ult i64 %30, 2048
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  br label %161

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %52, %33
  %35 = load i64, ptr %6, align 8, !tbaa !9
  %36 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %37 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #2
  %38 = sub i64 %37, 1
  %39 = icmp ult i64 %35, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %34
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  br label %55

41:                                               ; preds = %34
  %42 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %43 = load i64, ptr %6, align 8, !tbaa !9
  %44 = add i64 %43, 1
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44) #2
  %46 = load i64, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %48 = load i64, ptr %6, align 8, !tbaa !9
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %48) #2
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = add i64 %50, %46
  store i64 %51, ptr %49, align 8, !tbaa !9
  br label %52

52:                                               ; preds = %41
  %53 = load i64, ptr %6, align 8, !tbaa !9
  %54 = add i64 %53, 1
  store i64 %54, ptr %6, align 8, !tbaa !9
  br label %34, !llvm.loop !13

55:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %74, %55
  %57 = load i64, ptr %7, align 8, !tbaa !9
  %58 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %59 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #2
  %60 = sub i64 %59, 1
  %61 = icmp ult i64 %57, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  br label %77

63:                                               ; preds = %56
  %64 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %65 = load i64, ptr %7, align 8, !tbaa !9
  %66 = add i64 %65, 1
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #2
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %70 = load i64, ptr %7, align 8, !tbaa !9
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %70) #2
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = mul i64 %72, %68
  store i64 %73, ptr %71, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %63
  %75 = load i64, ptr %7, align 8, !tbaa !9
  %76 = add i64 %75, 1
  store i64 %76, ptr %7, align 8, !tbaa !9
  br label %56, !llvm.loop !14

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

78:                                               ; preds = %96, %77
  %79 = load i64, ptr %8, align 8, !tbaa !9
  %80 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %81 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #2
  %82 = sub i64 %81, 1
  %83 = icmp ult i64 %79, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %78
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  br label %99

85:                                               ; preds = %78
  %86 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %87 = load i64, ptr %8, align 8, !tbaa !9
  %88 = add i64 %87, 1
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88) #2
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %92 = load i64, ptr %8, align 8, !tbaa !9
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %92) #2
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = sub i64 %94, %90
  store i64 %95, ptr %93, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %85
  %97 = load i64, ptr %8, align 8, !tbaa !9
  %98 = add i64 %97, 1
  store i64 %98, ptr %8, align 8, !tbaa !9
  br label %78, !llvm.loop !15

99:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %126, %99
  %101 = load i64, ptr %9, align 8, !tbaa !9
  %102 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %103 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #2
  %104 = sub i64 %103, 1
  %105 = icmp ult i64 %101, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %100
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  br label %129

107:                                              ; preds = %100
  %108 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %109 = load i64, ptr %9, align 8, !tbaa !9
  %110 = add i64 %109, 1
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %110) #2
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = icmp ne i64 %112, 0
  br i1 %113, label %114, label %125

114:                                              ; preds = %107
  %115 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = add i64 %116, 1
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117) #2
  %119 = load i64, ptr %118, align 8, !tbaa !9
  %120 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %121 = load i64, ptr %9, align 8, !tbaa !9
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %121) #2
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = sub i64 %123, %119
  store i64 %124, ptr %122, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %114, %107
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %9, align 8, !tbaa !9
  %128 = add i64 %127, 1
  store i64 %128, ptr %9, align 8, !tbaa !9
  br label %100, !llvm.loop !16

129:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  store i64 1, ptr %10, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %154, %129
  %131 = load i64, ptr %10, align 8, !tbaa !9
  %132 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %133 = call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #2
  %134 = sub i64 %133, 1
  %135 = icmp ult i64 %131, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %130
  store i32 20, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  br label %157

137:                                              ; preds = %130
  %138 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %139 = load i64, ptr %10, align 8, !tbaa !9
  %140 = sub i64 %139, 1
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #2
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = shl i64 %142, 3
  %144 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %145 = load i64, ptr %10, align 8, !tbaa !9
  %146 = add i64 %145, 1
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #2
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = lshr i64 %148, 2
  %150 = xor i64 %143, %149
  %151 = getelementptr inbounds %class.bench_reference, ptr %11, i32 0, i32 1
  %152 = load i64, ptr %10, align 8, !tbaa !9
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %152) #2
  store i64 %150, ptr %153, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %137
  %155 = load i64, ptr %10, align 8, !tbaa !9
  %156 = add i64 %155, 1
  store i64 %156, ptr %10, align 8, !tbaa !9
  br label %130, !llvm.loop !17

157:                                              ; preds = %136
  br label %158

158:                                              ; preds = %157
  %159 = load i64, ptr %4, align 8, !tbaa !9
  %160 = add i64 %159, 1
  store i64 %160, ptr %4, align 8, !tbaa !9
  br label %29, !llvm.loop !18

161:                                              ; preds = %32
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 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 = { 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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !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"

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN15bench_reference13one_iterationEv(ptr noundef nonnull align 8 dereferenceable(96) %0) unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 72
  %3 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %.not51 = icmp eq i64 %3, 0
  br i1 %.not51, label %.preheader37.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.03339 = phi i64 [ %7, %.lr.ph ], [ 0, %1 ]
  %4 = mul i64 %.03339, 7
  %5 = add i64 %4, 3
  %6 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03339) #1
  store i64 %5, ptr %6, align 8, !tbaa !5
  %7 = add nuw i64 %.03339, 1
  %8 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %9 = icmp ult i64 %7, %8
  br i1 %9, label %.lr.ph, label %.preheader37.preheader, !llvm.loop !9

.preheader37.preheader:                           ; preds = %.lr.ph, %1
  br label %.preheader37

.preheader37:                                     ; preds = %.preheader37.preheader, %._crit_edge
  %.03250 = phi i64 [ %58, %._crit_edge ], [ 0, %.preheader37.preheader ]
  %10 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %.not52 = icmp eq i64 %10, 1
  br i1 %.not52, label %.preheader36, label %.lr.ph41

11:                                               ; preds = %._crit_edge
  ret void

.preheader36:                                     ; preds = %.lr.ph41, %.preheader37
  %12 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %.not53 = icmp eq i64 %12, 1
  br i1 %.not53, label %.preheader35, label %.lr.ph43

.lr.ph41:                                         ; preds = %.preheader37, %.lr.ph41
  %.03140 = phi i64 [ %13, %.lr.ph41 ], [ 0, %.preheader37 ]
  %13 = add nuw i64 %.03140, 1
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %13) #1
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03140) #1
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = add i64 %17, %15
  store i64 %18, ptr %16, align 8, !tbaa !5
  %19 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %20 = add i64 %19, -1
  %21 = icmp ult i64 %13, %20
  br i1 %21, label %.lr.ph41, label %.preheader36, !llvm.loop !11

.preheader35:                                     ; preds = %.lr.ph43, %.preheader36
  %22 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %.not54 = icmp eq i64 %22, 1
  br i1 %.not54, label %.preheader34, label %.lr.ph45

.lr.ph43:                                         ; preds = %.preheader36, %.lr.ph43
  %.03042 = phi i64 [ %23, %.lr.ph43 ], [ 0, %.preheader36 ]
  %23 = add nuw i64 %.03042, 1
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %23) #1
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03042) #1
  %27 = load i64, ptr %26, align 8, !tbaa !5
  %28 = mul i64 %27, %25
  store i64 %28, ptr %26, align 8, !tbaa !5
  %29 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %30 = add i64 %29, -1
  %31 = icmp ult i64 %23, %30
  br i1 %31, label %.lr.ph43, label %.preheader35, !llvm.loop !12

.preheader34:                                     ; preds = %.lr.ph45, %.preheader35
  %32 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %.not55 = icmp eq i64 %32, 1
  br i1 %.not55, label %.preheader, label %.lr.ph47

.lr.ph45:                                         ; preds = %.preheader35, %.lr.ph45
  %.02944 = phi i64 [ %33, %.lr.ph45 ], [ 0, %.preheader35 ]
  %33 = add nuw i64 %.02944, 1
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %33) #1
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.02944) #1
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = sub i64 %37, %35
  store i64 %38, ptr %36, align 8, !tbaa !5
  %39 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %40 = add i64 %39, -1
  %41 = icmp ult i64 %33, %40
  br i1 %41, label %.lr.ph45, label %.preheader34, !llvm.loop !13

.preheader:                                       ; preds = %54, %.preheader34
  %42 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %43 = add i64 %42, -3
  %44 = icmp ult i64 %43, -2
  br i1 %44, label %.lr.ph49, label %._crit_edge

.lr.ph47:                                         ; preds = %.preheader34, %54
  %.02846 = phi i64 [ %45, %54 ], [ 0, %.preheader34 ]
  %45 = add nuw i64 %.02846, 1
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %45) #1
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %.not = icmp eq i64 %47, 0
  br i1 %.not, label %54, label %48

48:                                               ; preds = %.lr.ph47
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %45) #1
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.02846) #1
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = sub i64 %52, %50
  store i64 %53, ptr %51, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %.lr.ph47, %48
  %55 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %56 = add i64 %55, -1
  %57 = icmp ult i64 %45, %56
  br i1 %57, label %.lr.ph47, label %.preheader, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph49, %.preheader
  %58 = add nuw nsw i64 %.03250, 1
  %exitcond.not = icmp eq i64 %58, 2048
  br i1 %exitcond.not, label %11, label %.preheader37, !llvm.loop !15

.lr.ph49:                                         ; preds = %.preheader, %.lr.ph49
  %.048 = phi i64 [ %63, %.lr.ph49 ], [ 1, %.preheader ]
  %59 = add i64 %.048, -1
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %59) #1
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = shl i64 %61, 3
  %63 = add nuw i64 %.048, 1
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %63) #1
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = lshr i64 %65, 2
  %67 = xor i64 %66, %62
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.048) #1
  store i64 %67, ptr %68, align 8, !tbaa !5
  %69 = tail call noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %70 = add i64 %69, -1
  %71 = icmp ult i64 %63, %70
  br i1 %71, label %.lr.ph49, label %._crit_edge, !llvm.loop !16
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorImSaImEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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