; LLVM IR from sp-nitech/SPTK :: src/input/input_source_delay.ll (ZN4sptk16InputSourceDelayC2EibPNS_20InputSourceInterfaceE)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sptk::InputSourceDelay" = type <{ %"class.sptk::InputSourceInterface", i32, i8, [3 x i8], ptr, i8, [7 x i8], %"class.std::queue", i32, [4 x i8] }>
%"class.sptk::InputSourceInterface" = type { ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::vector<double>, std::allocator<std::vector<double>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::vector<double>, std::allocator<std::vector<double>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::vector<double>, std::allocator<std::vector<double>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::vector<double>, std::allocator<std::vector<double>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@_ZTVN4sptk16InputSourceDelayE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk16InputSourceDelayC2EibPNS_20InputSourceInterfaceE(ptr noundef nonnull align 8 dereferenceable(116) %0, i32 noundef %1, i1 noundef zeroext %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  %12 = zext i1 %2 to i8
  store i8 %12, ptr %7, align 1, !tbaa !11
  store ptr %3, ptr %8, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8
  call void @_ZN4sptk20InputSourceInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTVN4sptk16InputSourceDelayE, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !13
  %14 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 1
  %15 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %15, ptr %14, align 8, !tbaa !15
  %16 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 2
  %17 = load i8, ptr %7, align 1, !tbaa !11, !range !25, !noundef !26
  %18 = trunc i8 %17 to i1
  %19 = zext i1 %18 to i8
  store i8 %19, ptr %16, align 4, !tbaa !27
  %20 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 4
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %21, ptr %20, align 8, !tbaa !28
  %22 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 5
  store i8 1, ptr %22, align 8, !tbaa !29
  %23 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 7
  invoke void @_ZNSt5queueISt6vectorIdSaIdEESt5dequeIS2_SaIS2_EEEC2IS5_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %23)
          to label %24 unwind label %38

24:                                               ; preds = %4
  %25 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !28
  %27 = icmp eq ptr null, %26
  br i1 %27, label %36, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 4
  %30 = load ptr, ptr %29, align 8, !tbaa !28
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds ptr, ptr %31, i64 3
  %33 = load ptr, ptr %32, align 8
  %34 = invoke noundef zeroext i1 %33(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %35 unwind label %42

35:                                               ; preds = %28
  br i1 %34, label %46, label %36

36:                                               ; preds = %35, %24
  %37 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 5
  store i8 0, ptr %37, align 8, !tbaa !29
  br label %111

38:                                               ; preds = %4
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %9, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %10, align 4
  br label %113

42:                                               ; preds = %28
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %9, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %10, align 4
  br label %112

46:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  %47 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !15
  %49 = icmp sle i32 %48, 0
  br i1 %49, label %50, label %77

50:                                               ; preds = %46
  %51 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 8
  store i32 0, ptr %51, align 8, !tbaa !30
  br label %52

52:                                               ; preds = %72, %50
  %53 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 8
  %54 = load i32, ptr %53, align 8, !tbaa !30
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = sub nsw i32 0, %55
  %57 = icmp slt i32 %54, %56
  br i1 %57, label %58, label %76

58:                                               ; preds = %52
  %59 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !28
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = getelementptr inbounds ptr, ptr %61, i64 4
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef %11)
          to label %65 unwind label %67

65:                                               ; preds = %58
  br i1 %64, label %71, label %66

66:                                               ; preds = %65
  br label %76

67:                                               ; preds = %94, %85, %58
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %9, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %10, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  br label %112

71:                                               ; preds = %65
  br label %72

72:                                               ; preds = %71
  %73 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 8
  %74 = load i32, ptr %73, align 8, !tbaa !30
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %73, align 8, !tbaa !30
  br label %52, !llvm.loop !31

76:                                               ; preds = %66, %52
  br label %110

77:                                               ; preds = %46
  %78 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 8
  store i32 0, ptr %78, align 8, !tbaa !30
  br label %79

79:                                               ; preds = %97, %77
  %80 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 8
  %81 = load i32, ptr %80, align 8, !tbaa !30
  %82 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !15
  %84 = icmp slt i32 %81, %83
  br i1 %84, label %85, label %101

85:                                               ; preds = %79
  %86 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 4
  %87 = load ptr, ptr %86, align 8, !tbaa !28
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = getelementptr inbounds ptr, ptr %88, i64 4
  %90 = load ptr, ptr %89, align 8
  %91 = invoke noundef zeroext i1 %90(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef %11)
          to label %92 unwind label %67

92:                                               ; preds = %85
  br i1 %91, label %94, label %93

93:                                               ; preds = %92
  br label %101

94:                                               ; preds = %92
  %95 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 7
  invoke void @_ZNSt5queueISt6vectorIdSaIdEESt5dequeIS2_SaIS2_EEE4pushERKS2_(ptr noundef nonnull align 8 dereferenceable(80) %95, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %96 unwind label %67

96:                                               ; preds = %94
  br label %97

97:                                               ; preds = %96
  %98 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 8
  %99 = load i32, ptr %98, align 8, !tbaa !30
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %98, align 8, !tbaa !30
  br label %79, !llvm.loop !33

101:                                              ; preds = %93, %79
  %102 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 2
  %103 = load i8, ptr %102, align 4, !tbaa !27, !range !25, !noundef !26
  %104 = trunc i8 %103 to i1
  br i1 %104, label %109, label %105

105:                                              ; preds = %101
  %106 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !15
  %108 = getelementptr inbounds %"class.sptk::InputSourceDelay", ptr %13, i32 0, i32 8
  store i32 %107, ptr %108, align 8, !tbaa !30
  br label %109

109:                                              ; preds = %105, %101
  br label %110

110:                                              ; preds = %109, %76
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  br label %111

111:                                              ; preds = %110, %36
  ret void

112:                                              ; preds = %67, %42
  call void @_ZNSt5queueISt6vectorIdSaIdEESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %23) #4
  br label %113

113:                                              ; preds = %112, %38
  call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  br label %114

114:                                              ; preds = %113
  %115 = load ptr, ptr %9, align 8
  %116 = load i32, ptr %10, align 4
  %117 = insertvalue { ptr, i32 } poison, ptr %115, 0
  %118 = insertvalue { ptr, i32 } %117, i32 %116, 1
  resume { ptr, i32 } %118
}

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

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

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) #2

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

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

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

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

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

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

attributes #0 = { 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 #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 8}
!16 = !{!"_ZTSN4sptk16InputSourceDelayE", !17, i64 0, !10, i64 8, !12, i64 12, !6, i64 16, !12, i64 24, !18, i64 32, !10, i64 112}
!17 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!18 = !{!"_ZTSSt5queueISt6vectorIdSaIdEESt5dequeIS2_SaIS2_EEE", !19, i64 0}
!19 = !{!"_ZTSSt5dequeISt6vectorIdSaIdEESaIS2_EE", !20, i64 0}
!20 = !{!"_ZTSSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE11_Deque_implE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE16_Deque_impl_dataE", !6, i64 0, !23, i64 8, !24, i64 16, !24, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!16, !12, i64 12}
!28 = !{!16, !6, i64 16}
!29 = !{!16, !12, i64 24}
!30 = !{!16, !10, i64 112}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN4sptk16InputSourceDelayE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk16InputSourceDelayC2EibPNS_20InputSourceInterfaceE(ptr noundef nonnull align 8 dereferenceable(116) %0, i32 noundef %1, i1 noundef zeroext %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector", align 8
  %6 = zext i1 %2 to i8
  tail call void @_ZN4sptk20InputSourceInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN4sptk16InputSourceDelayE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  store i8 %6, ptr %8, align 4, !tbaa !22
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %3, ptr %9, align 8, !tbaa !23
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 1, ptr %10, align 8, !tbaa !24
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  invoke void @_ZNSt5queueISt6vectorIdSaIdEESt5dequeIS2_SaIS2_EEEC2IS5_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %11)
          to label %12 unwind label %22

12:                                               ; preds = %4
  %13 = load ptr, ptr %9, align 8, !tbaa !23
  %14 = icmp eq ptr %13, null
  br i1 %14, label %21, label %15

15:                                               ; preds = %12
  %16 = load ptr, ptr %13, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 24
  %18 = load ptr, ptr %17, align 8
  %19 = invoke noundef zeroext i1 %18(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %20 unwind label %24

20:                                               ; preds = %15
  br i1 %19, label %26, label %21

21:                                               ; preds = %20, %12
  store i8 0, ptr %10, align 8, !tbaa !24
  br label %60

22:                                               ; preds = %4
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %62

24:                                               ; preds = %15
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %61

26:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  %27 = load i32, ptr %7, align 8, !tbaa !8
  %28 = icmp slt i32 %27, 1
  %29 = getelementptr inbounds i8, ptr %0, i64 112
  br i1 %28, label %30, label %.lr.ph.preheader

30:                                               ; preds = %26
  %31 = sub nsw i32 0, %1
  store i32 0, ptr %29, align 8, !tbaa !25
  %32 = icmp slt i32 %1, 0
  br i1 %32, label %.lr.ph15, label %.loopexit

.lr.ph15:                                         ; preds = %30, %40
  %33 = load ptr, ptr %9, align 8, !tbaa !23
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 32
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef zeroext i1 %36(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull %5)
          to label %38 unwind label %.loopexit12

38:                                               ; preds = %.lr.ph15
  br i1 %37, label %40, label %.loopexit

.loopexit12:                                      ; preds = %.lr.ph15
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %39

.loopexit.split-lp:                               ; preds = %.lr.ph, %50
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %39

39:                                               ; preds = %.loopexit.split-lp, %.loopexit12
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit12 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  br label %61

40:                                               ; preds = %38
  %41 = load i32, ptr %29, align 8, !tbaa !25
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %29, align 8, !tbaa !25
  %43 = icmp slt i32 %42, %31
  br i1 %43, label %.lr.ph15, label %.loopexit, !llvm.loop !26

.lr.ph.preheader:                                 ; preds = %26
  store i32 0, ptr %29, align 8, !tbaa !25
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %51
  %44 = load ptr, ptr %9, align 8, !tbaa !23
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 32
  %47 = load ptr, ptr %46, align 8
  %48 = invoke noundef zeroext i1 %47(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull %5)
          to label %49 unwind label %.loopexit.split-lp

49:                                               ; preds = %.lr.ph
  br i1 %48, label %50, label %._crit_edge

50:                                               ; preds = %49
  invoke void @_ZNSt5queueISt6vectorIdSaIdEESt5dequeIS2_SaIS2_EEE4pushERKS2_(ptr noundef nonnull align 8 dereferenceable(80) %11, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %51 unwind label %.loopexit.split-lp

51:                                               ; preds = %50
  %52 = load i32, ptr %29, align 8, !tbaa !25
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %29, align 8, !tbaa !25
  %54 = load i32, ptr %7, align 8, !tbaa !8
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %.lr.ph, label %._crit_edge, !llvm.loop !28

._crit_edge:                                      ; preds = %51, %49
  %56 = load i8, ptr %8, align 4, !tbaa !22, !range !29, !noundef !30
  %57 = trunc nuw i8 %56 to i1
  br i1 %57, label %.loopexit, label %58

58:                                               ; preds = %._crit_edge
  %59 = load i32, ptr %7, align 8, !tbaa !8
  store i32 %59, ptr %29, align 8, !tbaa !25
  br label %.loopexit

.loopexit:                                        ; preds = %38, %40, %30, %._crit_edge, %58
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  br label %60

60:                                               ; preds = %.loopexit, %21
  ret void

61:                                               ; preds = %39, %24
  %.pn = phi { ptr, i32 } [ %lpad.phi, %39 ], [ %25, %24 ]
  call void @_ZNSt5queueISt6vectorIdSaIdEESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #4
  br label %62

62:                                               ; preds = %61, %22
  %.pn.pn = phi { ptr, i32 } [ %.pn, %61 ], [ %23, %22 ]
  call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  resume { ptr, i32 } %.pn.pn
}

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

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

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) #2

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

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

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

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

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

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

attributes #0 = { 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 #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTSN4sptk16InputSourceDelayE", !10, i64 0, !11, i64 8, !13, i64 12, !14, i64 16, !13, i64 24, !15, i64 32, !11, i64 112}
!10 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"bool", !12, i64 0}
!14 = !{!"any pointer", !12, i64 0}
!15 = !{!"_ZTSSt5queueISt6vectorIdSaIdEESt5dequeIS2_SaIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSSt5dequeISt6vectorIdSaIdEESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE11_Deque_implE", !19, i64 0}
!19 = !{!"_ZTSNSt11_Deque_baseISt6vectorIdSaIdEESaIS2_EE16_Deque_impl_dataE", !14, i64 0, !20, i64 8, !21, i64 16, !21, i64 48}
!20 = !{!"long", !12, i64 0}
!21 = !{!"_ZTSSt15_Deque_iteratorISt6vectorIdSaIdEERS2_PS2_E", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!22 = !{!9, !13, i64 12}
!23 = !{!9, !14, i64 16}
!24 = !{!9, !13, i64 24}
!25 = !{!9, !11, i64 112}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{i8 0, i8 2}
!30 = !{}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass