; LLVM IR from lzyrapx/Competitive-Programming :: Retired_code/String/洛谷 P2444 (AC自动机).ll (Z7getfailv)

; 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::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@End = external dso_local global [100100 x i32], align 16
@ch = external dso_local global [100100 x [26 x i32]], align 16
@fail = external dso_local global [100100 x i32], align 16

; 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 void @_Z7getfailv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::queue", align 8
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr %1) #4
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %34, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = icmp slt i32 %9, 26
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %37

12:                                               ; preds = %8
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [26 x i32], ptr @ch, i64 0, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %33

18:                                               ; preds = %12
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [26 x i32], ptr @ch, i64 0, i64 %20
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %22 unwind label %29

22:                                               ; preds = %18
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [26 x i32], ptr @ch, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %27
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %33

29:                                               ; preds = %18
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %3, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %139

33:                                               ; preds = %22, %12
  br label %34

34:                                               ; preds = %33
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %2, align 4, !tbaa !5
  br label %8, !llvm.loop !9

37:                                               ; preds = %11
  br label %38

38:                                               ; preds = %136, %37
  %39 = invoke noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
          to label %40 unwind label %51

40:                                               ; preds = %38
  %41 = xor i1 %39, true
  br i1 %41, label %42, label %138

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %43 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
          to label %44 unwind label %55

44:                                               ; preds = %42
  %45 = load i32, ptr %43, align 4, !tbaa !5
  store i32 %45, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
          to label %46 unwind label %55

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %133, %46
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = icmp sle i32 %48, 1
  br i1 %49, label %59, label %50

50:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %136

51:                                               ; preds = %38
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %3, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %4, align 4
  br label %139

55:                                               ; preds = %44, %42
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %3, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %4, align 4
  br label %137

59:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %61
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [26 x i32], ptr %62, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %7, align 4, !tbaa !5
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %115

69:                                               ; preds = %59
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %74
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [26 x i32], ptr %75, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %81
  store i32 %79, ptr %82, align 4, !tbaa !5
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %84
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [26 x i32], ptr %85, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [100100 x i32], ptr @End, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %109

97:                                               ; preds = %69
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %99
  %101 = load i32, ptr %6, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [26 x i32], ptr %100, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [100100 x i32], ptr @End, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %106, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %97, %69
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %110 unwind label %111

110:                                              ; preds = %109
  br label %132

111:                                              ; preds = %109
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %3, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %137

115:                                              ; preds = %59
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %120
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [26 x i32], ptr %121, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr %5, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %127
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [26 x i32], ptr %128, i64 0, i64 %130
  store i32 %125, ptr %131, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %115, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %6, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %6, align 4, !tbaa !5
  br label %47, !llvm.loop !11

136:                                              ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %38, !llvm.loop !12

137:                                              ; preds = %111, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %139

138:                                              ; preds = %40
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %1) #4
  ret void

139:                                              ; preds = %137, %51, %29
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %1) #4
  br label %140

140:                                              ; preds = %139
  %141 = load ptr, ptr %3, align 8
  %142 = load i32, ptr %4, align 4
  %143 = insertvalue { ptr, i32 } poison, ptr %141, 0
  %144 = insertvalue { ptr, i32 } %143, i32 %142, 1
  resume { ptr, i32 } %144
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 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 = !{!"int", !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}


; 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::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl" = type { %"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<int, std::allocator<int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@End = external dso_local local_unnamed_addr global [100100 x i32], align 16
@ch = external dso_local global [100100 x [26 x i32]], align 16
@fail = external dso_local local_unnamed_addr global [100100 x i32], align 16

; 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 void @_Z7getfailv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::queue", align 8
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #4
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %3 = load i32, ptr @ch, align 16, !tbaa !5
  %.not25 = icmp eq i32 %3, 0
  br i1 %.not25, label %11, label %4

4:                                                ; preds = %0
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) @ch)
          to label %5 unwind label %9

5:                                                ; preds = %4
  %6 = load i32, ptr @ch, align 16, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %11

9:                                                ; preds = %181, %174, %167, %160, %153, %146, %139, %132, %125, %118, %111, %104, %97, %90, %83, %76, %69, %62, %55, %48, %41, %34, %27, %20, %13, %4
  %10 = landingpad { ptr, i32 }
          cleanup
  br label %231

11:                                               ; preds = %0, %5
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 4), align 4, !tbaa !5
  %.not25.1 = icmp eq i32 %12, 0
  br i1 %.not25.1, label %18, label %13

13:                                               ; preds = %11
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 4))
          to label %14 unwind label %9

14:                                               ; preds = %13
  %15 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 4), align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %16
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %14, %11
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 8), align 8, !tbaa !5
  %.not25.2 = icmp eq i32 %19, 0
  br i1 %.not25.2, label %25, label %20

20:                                               ; preds = %18
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 8))
          to label %21 unwind label %9

21:                                               ; preds = %20
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 8), align 8, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %23
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %21, %18
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 12), align 4, !tbaa !5
  %.not25.3 = icmp eq i32 %26, 0
  br i1 %.not25.3, label %32, label %27

27:                                               ; preds = %25
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 12))
          to label %28 unwind label %9

28:                                               ; preds = %27
  %29 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 12), align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %30
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %28, %25
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 16), align 16, !tbaa !5
  %.not25.4 = icmp eq i32 %33, 0
  br i1 %.not25.4, label %39, label %34

34:                                               ; preds = %32
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 16))
          to label %35 unwind label %9

35:                                               ; preds = %34
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 16), align 16, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %37
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %35, %32
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 20), align 4, !tbaa !5
  %.not25.5 = icmp eq i32 %40, 0
  br i1 %.not25.5, label %46, label %41

41:                                               ; preds = %39
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 20))
          to label %42 unwind label %9

42:                                               ; preds = %41
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 20), align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %44
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %42, %39
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 24), align 8, !tbaa !5
  %.not25.6 = icmp eq i32 %47, 0
  br i1 %.not25.6, label %53, label %48

48:                                               ; preds = %46
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 24))
          to label %49 unwind label %9

49:                                               ; preds = %48
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 24), align 8, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %51
  store i32 0, ptr %52, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %49, %46
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 28), align 4, !tbaa !5
  %.not25.7 = icmp eq i32 %54, 0
  br i1 %.not25.7, label %60, label %55

55:                                               ; preds = %53
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 28))
          to label %56 unwind label %9

56:                                               ; preds = %55
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 28), align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %58
  store i32 0, ptr %59, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %56, %53
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 32), align 16, !tbaa !5
  %.not25.8 = icmp eq i32 %61, 0
  br i1 %.not25.8, label %67, label %62

62:                                               ; preds = %60
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 32))
          to label %63 unwind label %9

63:                                               ; preds = %62
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 32), align 16, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %65
  store i32 0, ptr %66, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %63, %60
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 36), align 4, !tbaa !5
  %.not25.9 = icmp eq i32 %68, 0
  br i1 %.not25.9, label %74, label %69

69:                                               ; preds = %67
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 36))
          to label %70 unwind label %9

70:                                               ; preds = %69
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 36), align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %72
  store i32 0, ptr %73, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %70, %67
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 40), align 8, !tbaa !5
  %.not25.10 = icmp eq i32 %75, 0
  br i1 %.not25.10, label %81, label %76

76:                                               ; preds = %74
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 40))
          to label %77 unwind label %9

77:                                               ; preds = %76
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 40), align 8, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %79
  store i32 0, ptr %80, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %77, %74
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 44), align 4, !tbaa !5
  %.not25.11 = icmp eq i32 %82, 0
  br i1 %.not25.11, label %88, label %83

83:                                               ; preds = %81
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 44))
          to label %84 unwind label %9

84:                                               ; preds = %83
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 44), align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %86
  store i32 0, ptr %87, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %84, %81
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 48), align 16, !tbaa !5
  %.not25.12 = icmp eq i32 %89, 0
  br i1 %.not25.12, label %95, label %90

90:                                               ; preds = %88
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 48))
          to label %91 unwind label %9

91:                                               ; preds = %90
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 48), align 16, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %93
  store i32 0, ptr %94, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %91, %88
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 52), align 4, !tbaa !5
  %.not25.13 = icmp eq i32 %96, 0
  br i1 %.not25.13, label %102, label %97

97:                                               ; preds = %95
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 52))
          to label %98 unwind label %9

98:                                               ; preds = %97
  %99 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 52), align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %100
  store i32 0, ptr %101, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %98, %95
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 56), align 8, !tbaa !5
  %.not25.14 = icmp eq i32 %103, 0
  br i1 %.not25.14, label %109, label %104

104:                                              ; preds = %102
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 56))
          to label %105 unwind label %9

105:                                              ; preds = %104
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 56), align 8, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %107
  store i32 0, ptr %108, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %105, %102
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 60), align 4, !tbaa !5
  %.not25.15 = icmp eq i32 %110, 0
  br i1 %.not25.15, label %116, label %111

111:                                              ; preds = %109
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 60))
          to label %112 unwind label %9

112:                                              ; preds = %111
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 60), align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %114
  store i32 0, ptr %115, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %112, %109
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 64), align 16, !tbaa !5
  %.not25.16 = icmp eq i32 %117, 0
  br i1 %.not25.16, label %123, label %118

118:                                              ; preds = %116
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 64))
          to label %119 unwind label %9

119:                                              ; preds = %118
  %120 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 64), align 16, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %121
  store i32 0, ptr %122, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %119, %116
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 68), align 4, !tbaa !5
  %.not25.17 = icmp eq i32 %124, 0
  br i1 %.not25.17, label %130, label %125

125:                                              ; preds = %123
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 68))
          to label %126 unwind label %9

126:                                              ; preds = %125
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 68), align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %128
  store i32 0, ptr %129, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %126, %123
  %131 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 72), align 8, !tbaa !5
  %.not25.18 = icmp eq i32 %131, 0
  br i1 %.not25.18, label %137, label %132

132:                                              ; preds = %130
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 72))
          to label %133 unwind label %9

133:                                              ; preds = %132
  %134 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 72), align 8, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %135
  store i32 0, ptr %136, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %133, %130
  %138 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 76), align 4, !tbaa !5
  %.not25.19 = icmp eq i32 %138, 0
  br i1 %.not25.19, label %144, label %139

139:                                              ; preds = %137
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 76))
          to label %140 unwind label %9

140:                                              ; preds = %139
  %141 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 76), align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %142
  store i32 0, ptr %143, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %140, %137
  %145 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 80), align 16, !tbaa !5
  %.not25.20 = icmp eq i32 %145, 0
  br i1 %.not25.20, label %151, label %146

146:                                              ; preds = %144
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 80))
          to label %147 unwind label %9

147:                                              ; preds = %146
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 80), align 16, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %149
  store i32 0, ptr %150, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %147, %144
  %152 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 84), align 4, !tbaa !5
  %.not25.21 = icmp eq i32 %152, 0
  br i1 %.not25.21, label %158, label %153

153:                                              ; preds = %151
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 84))
          to label %154 unwind label %9

154:                                              ; preds = %153
  %155 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 84), align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %156
  store i32 0, ptr %157, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %154, %151
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 88), align 8, !tbaa !5
  %.not25.22 = icmp eq i32 %159, 0
  br i1 %.not25.22, label %165, label %160

160:                                              ; preds = %158
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 88))
          to label %161 unwind label %9

161:                                              ; preds = %160
  %162 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 88), align 8, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %163
  store i32 0, ptr %164, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %161, %158
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 92), align 4, !tbaa !5
  %.not25.23 = icmp eq i32 %166, 0
  br i1 %.not25.23, label %172, label %167

167:                                              ; preds = %165
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 92))
          to label %168 unwind label %9

168:                                              ; preds = %167
  %169 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 92), align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %170
  store i32 0, ptr %171, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %168, %165
  %173 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 96), align 16, !tbaa !5
  %.not25.24 = icmp eq i32 %173, 0
  br i1 %.not25.24, label %179, label %174

174:                                              ; preds = %172
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 96))
          to label %175 unwind label %9

175:                                              ; preds = %174
  %176 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 96), align 16, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %177
  store i32 0, ptr %178, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %175, %172
  %180 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 100), align 4, !tbaa !5
  %.not25.25 = icmp eq i32 %180, 0
  br i1 %.not25.25, label %.preheader, label %181

181:                                              ; preds = %179
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @ch, i64 100))
          to label %182 unwind label %9

182:                                              ; preds = %181
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 100), align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %184
  store i32 0, ptr %185, align 4, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %182, %179
  %186 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %186, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.loopexit
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %188 = load i32, ptr %187, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %189
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %191 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %189, i64 0
  %192 = load i32, ptr %191, align 8, !tbaa !5
  store i32 %192, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %192, 0
  %193 = load i32, ptr %190, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %194, i64 0
  %196 = load i32, ptr %195, align 8, !tbaa !5
  br i1 %.not, label %210, label %197

197:                                              ; preds = %.lr.ph
  %198 = sext i32 %192 to i64
  %199 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %198
  store i32 %196, ptr %199, align 4, !tbaa !5
  %200 = sext i32 %196 to i64
  %201 = getelementptr inbounds [100100 x i32], ptr @End, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %.not24 = icmp eq i32 %202, 0
  br i1 %.not24, label %207, label %203

203:                                              ; preds = %197
  %204 = getelementptr inbounds [100100 x i32], ptr @End, i64 0, i64 %198
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %204, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %203, %197
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %211 unwind label %208

208:                                              ; preds = %228, %207
  %209 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %231

210:                                              ; preds = %.lr.ph
  store i32 %196, ptr %191, align 8, !tbaa !5
  br label %211

211:                                              ; preds = %207, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %212 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %189, i64 1
  %213 = load i32, ptr %212, align 4, !tbaa !5
  store i32 %213, ptr %2, align 4, !tbaa !5
  %.not.1 = icmp eq i32 %213, 0
  %214 = load i32, ptr %190, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [100100 x [26 x i32]], ptr @ch, i64 0, i64 %215, i64 1
  %217 = load i32, ptr %216, align 4, !tbaa !5
  br i1 %.not.1, label %229, label %218

218:                                              ; preds = %211
  %219 = sext i32 %213 to i64
  %220 = getelementptr inbounds [100100 x i32], ptr @fail, i64 0, i64 %219
  store i32 %217, ptr %220, align 4, !tbaa !5
  %221 = sext i32 %217 to i64
  %222 = getelementptr inbounds [100100 x i32], ptr @End, i64 0, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %.not24.1 = icmp eq i32 %223, 0
  br i1 %.not24.1, label %228, label %224

224:                                              ; preds = %218
  %225 = getelementptr inbounds [100100 x i32], ptr @End, i64 0, i64 %219
  %226 = load i32, ptr %225, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %225, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %224, %218
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %.loopexit unwind label %208

229:                                              ; preds = %211
  store i32 %217, ptr %212, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %229, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  %230 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %230, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.loopexit, %.preheader
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #4
  ret void

231:                                              ; preds = %208, %9
  %.pn = phi { ptr, i32 } [ %10, %9 ], [ %209, %208 ]
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %1) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #4
  resume { ptr, i32 } %.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIiSt5dequeIiSaIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 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 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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