; LLVM IR from lzyrapx/Competitive-Programming :: Retired_code/String/BZOJ 1009 （AC自动机+矩阵乘法优化dp）.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 [1000100 x i32], align 16
@ch = external dso_local global [1000100 x [26 x i32]], align 16
@fail = external dso_local global [1000100 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 sle i32 %9, 9
  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 [1000100 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 %130

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 = %127, %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 %129

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 = %124, %46
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = icmp sle i32 %48, 9
  br i1 %49, label %59, label %50

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

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 %130

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 %128

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 [1000100 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 %106

69:                                               ; preds = %59
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [1000100 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 [1000100 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 [1000100 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 [1000100 x i32], ptr @fail, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %87
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [26 x i32], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = or i32 %99, %95
  store i32 %100, ptr %98, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %101 unwind label %102

101:                                              ; preds = %69
  br label %123

102:                                              ; preds = %69
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %3, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, 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 %128

106:                                              ; preds = %59
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %111
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [26 x i32], ptr %112, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %118
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [26 x i32], ptr %119, i64 0, i64 %121
  store i32 %116, ptr %122, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %106, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %6, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %6, align 4, !tbaa !5
  br label %47, !llvm.loop !11

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

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

129:                                              ; 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

130:                                              ; preds = %128, %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 %131

131:                                              ; preds = %130
  %132 = load ptr, ptr %3, align 8
  %133 = load i32, ptr %4, align 4
  %134 = insertvalue { ptr, i32 } poison, ptr %132, 0
  %135 = insertvalue { ptr, i32 } %134, i32 %133, 1
  resume { ptr, i32 } %135
}

; 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 [1000100 x i32], align 16
@ch = external dso_local global [1000100 x [26 x i32]], align 16
@fail = external dso_local local_unnamed_addr global [1000100 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
  %.not22 = icmp eq i32 %3, 0
  br i1 %.not22, 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 [1000100 x i32], ptr @fail, i64 0, i64 %7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %11

9:                                                ; preds = %69, %62, %55, %48, %41, %34, %27, %20, %13, %4
  %10 = landingpad { ptr, i32 }
          cleanup
  br label %291

11:                                               ; preds = %0, %5
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @ch, i64 4), align 4, !tbaa !5
  %.not22.1 = icmp eq i32 %12, 0
  br i1 %.not22.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 [1000100 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
  %.not22.2 = icmp eq i32 %19, 0
  br i1 %.not22.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 [1000100 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
  %.not22.3 = icmp eq i32 %26, 0
  br i1 %.not22.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 [1000100 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
  %.not22.4 = icmp eq i32 %33, 0
  br i1 %.not22.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 [1000100 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
  %.not22.5 = icmp eq i32 %40, 0
  br i1 %.not22.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 [1000100 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
  %.not22.6 = icmp eq i32 %47, 0
  br i1 %.not22.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 [1000100 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
  %.not22.7 = icmp eq i32 %54, 0
  br i1 %.not22.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 [1000100 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
  %.not22.8 = icmp eq i32 %61, 0
  br i1 %.not22.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 [1000100 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
  %.not22.9 = icmp eq i32 %68, 0
  br i1 %.not22.9, label %.preheader, 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 [1000100 x i32], ptr @fail, i64 0, i64 %72
  store i32 0, ptr %73, align 4, !tbaa !5
  br label %.preheader

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

.lr.ph:                                           ; preds = %.preheader, %.loopexit
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIiSt5dequeIiSaIiEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %76 = load i32, ptr %75, align 4, !tbaa !5
  call void @_ZNSt5queueIiSt5dequeIiSaIiEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %77
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %79 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 0
  %80 = load i32, ptr %79, align 8, !tbaa !5
  store i32 %80, ptr %2, align 4, !tbaa !5
  %.not = icmp eq i32 %80, 0
  %81 = load i32, ptr %78, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %82, i64 0
  %84 = load i32, ptr %83, align 8, !tbaa !5
  br i1 %.not, label %100, label %85

85:                                               ; preds = %.lr.ph
  %86 = sext i32 %80 to i64
  %87 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %86
  store i32 %84, ptr %87, align 4, !tbaa !5
  %88 = load i32, ptr %78, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %89, i64 0
  %91 = load i32, ptr %90, align 8, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %86
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = or i32 %96, %94
  store i32 %97, ptr %95, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %101 unwind label %98

98:                                               ; preds = %276, %255, %234, %213, %192, %171, %150, %129, %108, %85
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %291

100:                                              ; preds = %.lr.ph
  store i32 %84, ptr %79, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %85, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %102 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 1
  %103 = load i32, ptr %102, align 4, !tbaa !5
  store i32 %103, ptr %2, align 4, !tbaa !5
  %.not.1 = icmp eq i32 %103, 0
  %104 = load i32, ptr %78, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %105, i64 1
  %107 = load i32, ptr %106, align 4, !tbaa !5
  br i1 %.not.1, label %121, label %108

108:                                              ; preds = %101
  %109 = sext i32 %103 to i64
  %110 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %109
  store i32 %107, ptr %110, align 4, !tbaa !5
  %111 = load i32, ptr %78, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %112, i64 1
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %109
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = or i32 %119, %117
  store i32 %120, ptr %118, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %122 unwind label %98

121:                                              ; preds = %101
  store i32 %107, ptr %102, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %121, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %123 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 2
  %124 = load i32, ptr %123, align 8, !tbaa !5
  store i32 %124, ptr %2, align 4, !tbaa !5
  %.not.2 = icmp eq i32 %124, 0
  %125 = load i32, ptr %78, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %126, i64 2
  %128 = load i32, ptr %127, align 8, !tbaa !5
  br i1 %.not.2, label %142, label %129

129:                                              ; preds = %122
  %130 = sext i32 %124 to i64
  %131 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %130
  store i32 %128, ptr %131, align 4, !tbaa !5
  %132 = load i32, ptr %78, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %133, i64 2
  %135 = load i32, ptr %134, align 8, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %130
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = or i32 %140, %138
  store i32 %141, ptr %139, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %143 unwind label %98

142:                                              ; preds = %122
  store i32 %128, ptr %123, align 8, !tbaa !5
  br label %143

143:                                              ; preds = %142, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %144 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 3
  %145 = load i32, ptr %144, align 4, !tbaa !5
  store i32 %145, ptr %2, align 4, !tbaa !5
  %.not.3 = icmp eq i32 %145, 0
  %146 = load i32, ptr %78, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %147, i64 3
  %149 = load i32, ptr %148, align 4, !tbaa !5
  br i1 %.not.3, label %163, label %150

150:                                              ; preds = %143
  %151 = sext i32 %145 to i64
  %152 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %151
  store i32 %149, ptr %152, align 4, !tbaa !5
  %153 = load i32, ptr %78, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %154, i64 3
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %151
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = or i32 %161, %159
  store i32 %162, ptr %160, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %164 unwind label %98

163:                                              ; preds = %143
  store i32 %149, ptr %144, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %163, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %165 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 4
  %166 = load i32, ptr %165, align 8, !tbaa !5
  store i32 %166, ptr %2, align 4, !tbaa !5
  %.not.4 = icmp eq i32 %166, 0
  %167 = load i32, ptr %78, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %168, i64 4
  %170 = load i32, ptr %169, align 8, !tbaa !5
  br i1 %.not.4, label %184, label %171

171:                                              ; preds = %164
  %172 = sext i32 %166 to i64
  %173 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %172
  store i32 %170, ptr %173, align 4, !tbaa !5
  %174 = load i32, ptr %78, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %175, i64 4
  %177 = load i32, ptr %176, align 8, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !5
  %181 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %172
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = or i32 %182, %180
  store i32 %183, ptr %181, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %185 unwind label %98

184:                                              ; preds = %164
  store i32 %170, ptr %165, align 8, !tbaa !5
  br label %185

185:                                              ; preds = %184, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %186 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 5
  %187 = load i32, ptr %186, align 4, !tbaa !5
  store i32 %187, ptr %2, align 4, !tbaa !5
  %.not.5 = icmp eq i32 %187, 0
  %188 = load i32, ptr %78, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %189, i64 5
  %191 = load i32, ptr %190, align 4, !tbaa !5
  br i1 %.not.5, label %205, label %192

192:                                              ; preds = %185
  %193 = sext i32 %187 to i64
  %194 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %193
  store i32 %191, ptr %194, align 4, !tbaa !5
  %195 = load i32, ptr %78, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %196, i64 5
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %193
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = or i32 %203, %201
  store i32 %204, ptr %202, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %206 unwind label %98

205:                                              ; preds = %185
  store i32 %191, ptr %186, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %205, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %207 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 6
  %208 = load i32, ptr %207, align 8, !tbaa !5
  store i32 %208, ptr %2, align 4, !tbaa !5
  %.not.6 = icmp eq i32 %208, 0
  %209 = load i32, ptr %78, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %210, i64 6
  %212 = load i32, ptr %211, align 8, !tbaa !5
  br i1 %.not.6, label %226, label %213

213:                                              ; preds = %206
  %214 = sext i32 %208 to i64
  %215 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %214
  store i32 %212, ptr %215, align 4, !tbaa !5
  %216 = load i32, ptr %78, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %217, i64 6
  %219 = load i32, ptr %218, align 8, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %220
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %214
  %224 = load i32, ptr %223, align 4, !tbaa !5
  %225 = or i32 %224, %222
  store i32 %225, ptr %223, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %227 unwind label %98

226:                                              ; preds = %206
  store i32 %212, ptr %207, align 8, !tbaa !5
  br label %227

227:                                              ; preds = %226, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %228 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 7
  %229 = load i32, ptr %228, align 4, !tbaa !5
  store i32 %229, ptr %2, align 4, !tbaa !5
  %.not.7 = icmp eq i32 %229, 0
  %230 = load i32, ptr %78, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %231, i64 7
  %233 = load i32, ptr %232, align 4, !tbaa !5
  br i1 %.not.7, label %247, label %234

234:                                              ; preds = %227
  %235 = sext i32 %229 to i64
  %236 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %235
  store i32 %233, ptr %236, align 4, !tbaa !5
  %237 = load i32, ptr %78, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %238, i64 7
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %235
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = or i32 %245, %243
  store i32 %246, ptr %244, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %248 unwind label %98

247:                                              ; preds = %227
  store i32 %233, ptr %228, align 4, !tbaa !5
  br label %248

248:                                              ; preds = %247, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %249 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 8
  %250 = load i32, ptr %249, align 8, !tbaa !5
  store i32 %250, ptr %2, align 4, !tbaa !5
  %.not.8 = icmp eq i32 %250, 0
  %251 = load i32, ptr %78, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %252, i64 8
  %254 = load i32, ptr %253, align 8, !tbaa !5
  br i1 %.not.8, label %268, label %255

255:                                              ; preds = %248
  %256 = sext i32 %250 to i64
  %257 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %256
  store i32 %254, ptr %257, align 4, !tbaa !5
  %258 = load i32, ptr %78, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %259, i64 8
  %261 = load i32, ptr %260, align 8, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %262
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %256
  %266 = load i32, ptr %265, align 4, !tbaa !5
  %267 = or i32 %266, %264
  store i32 %267, ptr %265, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %269 unwind label %98

268:                                              ; preds = %248
  store i32 %254, ptr %249, align 8, !tbaa !5
  br label %269

269:                                              ; preds = %268, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %270 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %77, i64 9
  %271 = load i32, ptr %270, align 4, !tbaa !5
  store i32 %271, ptr %2, align 4, !tbaa !5
  %.not.9 = icmp eq i32 %271, 0
  %272 = load i32, ptr %78, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %273, i64 9
  %275 = load i32, ptr %274, align 4, !tbaa !5
  br i1 %.not.9, label %289, label %276

276:                                              ; preds = %269
  %277 = sext i32 %271 to i64
  %278 = getelementptr inbounds [1000100 x i32], ptr @fail, i64 0, i64 %277
  store i32 %275, ptr %278, align 4, !tbaa !5
  %279 = load i32, ptr %78, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [1000100 x [26 x i32]], ptr @ch, i64 0, i64 %280, i64 9
  %282 = load i32, ptr %281, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = getelementptr inbounds [1000100 x i32], ptr @End, i64 0, i64 %277
  %287 = load i32, ptr %286, align 4, !tbaa !5
  %288 = or i32 %287, %285
  store i32 %288, ptr %286, align 4, !tbaa !5
  invoke void @_ZNSt5queueIiSt5dequeIiSaIiEEE4pushERKi(ptr noundef nonnull align 8 dereferenceable(80) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %.loopexit unwind label %98

289:                                              ; preds = %269
  store i32 %275, ptr %270, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %289, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  %290 = call noundef zeroext i1 @_ZNKSt5queueIiSt5dequeIiSaIiEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  br i1 %290, 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

291:                                              ; preds = %98, %9
  %.pn = phi { ptr, i32 } [ %10, %9 ], [ %99, %98 ]
  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,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass