; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnflow/psPrc/vtuWriter.ll (Z17findOrInsertPointRSt6vectorI4var3IdESaIS1_EERS1_)

; 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::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::reverse_iterator.20" = type { %"class.__gnu_cxx::__normal_iterator.22" }
%"class.__gnu_cxx::__normal_iterator.22" = type { 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 uwtable
define dso_local noundef i32 @_Z17findOrInsertPointRSt6vectorI4var3IdESaIS1_EERS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::reverse_iterator", align 8
  %7 = alloca %"class.std::reverse_iterator.20", align 8
  %8 = alloca %"class.std::reverse_iterator.20", align 8
  %9 = alloca %"class.std::reverse_iterator.20", align 8
  %10 = alloca %"class.std::reverse_iterator.20", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::reverse_iterator.20", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorI4var3IdESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator.20") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEEEC2INS1_IPS3_S8_EEEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %14

14:                                               ; preds = %33, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorI4var3IdESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator.20") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIP4var3IdESt6vectorIS3_SaIS3_EEEEEplEl(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator.20") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 200)
  %16 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPS3_S8_EEEbRKSt16reverse_iteratorIT_ERKSC_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  br i1 %16, label %17, label %20

17:                                               ; preds = %14
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorI4var3IdESaIS1_EE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator.20") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  %19 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPS3_S8_EEEbRKSt16reverse_iteratorIT_ERKSC_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %10)
  br label %20

20:                                               ; preds = %17, %14
  %21 = phi i1 [ false, %14 ], [ %19, %17 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br i1 %21, label %23, label %22

22:                                               ; preds = %20
  store i32 2, ptr %11, align 4
  br label %35

23:                                               ; preds = %20
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef zeroext i1 @_ZNK4var3IdEeqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %25)
  br i1 %26, label %27, label %32

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorI4var3IdESaIS1_EE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator.20") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %28) #4
  %29 = call noundef i64 @_ZStmiIN9__gnu_cxx17__normal_iteratorIP4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPKS3_S7_EEEDTmicldtfp0_4baseEcldtfp_4baseEERKSt16reverse_iteratorIT_ERKSD_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %30 = trunc i64 %29 to i32
  %31 = sub nsw i32 %30, 1
  store i32 %31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  store i32 1, ptr %11, align 4
  br label %35

32:                                               ; preds = %23
  br label %33

33:                                               ; preds = %32
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br label %14, !llvm.loop !9

35:                                               ; preds = %27, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %36 = load i32, ptr %11, align 4
  switch i32 %36, label %46 [
    i32 2, label %37
    i32 1, label %44
  ]

37:                                               ; preds = %35
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNSt6vectorI4var3IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %39)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = call noundef i64 @_ZNKSt6vectorI4var3IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #4
  %42 = sub i64 %41, 1
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %3, align 4
  br label %44

44:                                               ; preds = %37, %35
  %45 = load i32, ptr %3, align 4
  ret i32 %45

46:                                               ; preds = %35
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4var3IdESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.20") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPS3_S8_EEEbRKSt16reverse_iteratorIT_ERKSC_IT0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIP4var3IdESt6vectorIS3_SaIS3_EEEEEplEl(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.20") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4var3IdESaIS1_EE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.20") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4var3IdEeqERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

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

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

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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; 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::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::reverse_iterator.20" = type { %"class.__gnu_cxx::__normal_iterator.22" }
%"class.__gnu_cxx::__normal_iterator.22" = type { ptr }

; 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
define dso_local noundef i32 @_Z17findOrInsertPointRSt6vectorI4var3IdESaIS1_EERS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #1 {
  %3 = alloca %"class.std::reverse_iterator", align 8
  %4 = alloca %"class.std::reverse_iterator.20", align 8
  %5 = alloca %"class.std::reverse_iterator.20", align 8
  %6 = alloca %"class.std::reverse_iterator.20", align 8
  %7 = alloca %"class.std::reverse_iterator.20", align 8
  %8 = alloca %"class.std::reverse_iterator.20", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @_ZNSt6vectorI4var3IdESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.20") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEEEC2INS1_IPS3_S8_EEEERKS_IT_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @_ZNSt6vectorI4var3IdESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.20") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIP4var3IdESt6vectorIS3_SaIS3_EEEEEplEl(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.20") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef 200)
  %9 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPS3_S8_EEEbRKSt16reverse_iteratorIT_ERKSC_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  br i1 %9, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %2, %14
  call void @_ZNSt6vectorI4var3IdESaIS1_EE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.20") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %10 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPS3_S8_EEEbRKSt16reverse_iteratorIT_ERKSC_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %10, label %11, label %.loopexit

.critedge:                                        ; preds = %14, %2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br label %.loopexit

11:                                               ; preds = %.lr.ph
  %12 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %13 = call noundef zeroext i1 @_ZNK4var3IdEeqERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %1)
  br i1 %13, label %17, label %14

14:                                               ; preds = %11
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @_ZNSt6vectorI4var3IdESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.20") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  call void @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIP4var3IdESt6vectorIS3_SaIS3_EEEEEplEl(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.20") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef 200)
  %16 = call noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPS3_S8_EEEbRKSt16reverse_iteratorIT_ERKSC_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  br i1 %16, label %.lr.ph, label %.critedge, !llvm.loop !5

17:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZNSt6vectorI4var3IdESaIS1_EE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator.20") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %18 = call noundef i64 @_ZStmiIN9__gnu_cxx17__normal_iteratorIP4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPKS3_S7_EEEDTmicldtfp0_4baseEcldtfp_4baseEERKSt16reverse_iteratorIT_ERKSD_IT0_E(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %20

.loopexit:                                        ; preds = %.lr.ph, %.critedge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @_ZNSt6vectorI4var3IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %1)
  %19 = call noundef i64 @_ZNKSt6vectorI4var3IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %20

20:                                               ; preds = %17, %.loopexit
  %.1.in.in = phi i64 [ %18, %17 ], [ %19, %.loopexit ]
  %.1.in = trunc i64 %.1.in.in to i32
  %.1 = add i32 %.1.in, -1
  ret i32 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4var3IdESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.20") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPK4var3IdESt6vectorIS3_SaIS3_EEEENS1_IPS3_S8_EEEbRKSt16reverse_iteratorIT_ERKSC_IT0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIP4var3IdESt6vectorIS3_SaIS3_EEEEEplEl(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.20") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI4var3IdESaIS1_EE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator.20") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4var3IdEeqERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

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

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

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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass