; LLVM IR from xirc/cp-algorithm :: spoj/nakanj/main.ll (Z5solve3posS_)

; 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"

%struct.pos = type { i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<pos, int>, std::allocator<std::pair<pos, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<pos, int>, std::allocator<std::pair<pos, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<pos, int>, std::allocator<std::pair<pos, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<pos, int>, std::allocator<std::pair<pos, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { %struct.pos, i32 }

@_ZZ5solve3posS_E2dx = external hidden global [8 x i32], align 16
@_ZZ5solve3posS_E2dy = external hidden global [8 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5solve3posS_(i64 %0, i64 %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca %struct.pos, align 4
  %5 = alloca %struct.pos, align 4
  %6 = alloca %"class.std::queue", align 8
  %7 = alloca %"struct.std::pair", align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.pos, align 4
  %15 = alloca %struct.pos, align 4
  %16 = alloca %"struct.std::pair", align 4
  %17 = alloca i32, align 4
  store i64 %0, ptr %4, align 4
  store i64 %1, ptr %5, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #5
  call void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEEC2IS5_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %18 unwind label %34

18:                                               ; preds = %2
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %19 unwind label %34

19:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #5
  br label %20

20:                                               ; preds = %105, %19
  %21 = invoke noundef zeroext i1 @_ZNKSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %22 unwind label %38

22:                                               ; preds = %20
  %23 = xor i1 %21, true
  br i1 %23, label %24, label %107

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #5
  %25 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %26 unwind label %42

26:                                               ; preds = %24
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %25, i64 12, i1 false)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %6)
          to label %27 unwind label %42

27:                                               ; preds = %26
  %28 = getelementptr inbounds %"struct.std::pair", ptr %11, i32 0, i32 0
  %29 = invoke noundef zeroext i1 @_ZN3poseqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %30 unwind label %42

30:                                               ; preds = %27
  br i1 %29, label %31, label %46

31:                                               ; preds = %30
  %32 = getelementptr inbounds %"struct.std::pair", ptr %11, i32 0, i32 1
  %33 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %33, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %103

34:                                               ; preds = %18, %2
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %9, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #5
  br label %110

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

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

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

47:                                               ; preds = %94, %46
  %48 = load i32, ptr %13, align 4, !tbaa !5
  %49 = icmp slt i32 %48, 8
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 4, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %102

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %52 = getelementptr inbounds %"struct.std::pair", ptr %11, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %53 = getelementptr inbounds %struct.pos, ptr %15, i32 0, i32 0
  %54 = load i32, ptr %13, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [8 x i32], ptr @_ZZ5solve3posS_E2dx, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  store i32 %57, ptr %53, align 4, !tbaa !12
  %58 = getelementptr inbounds %struct.pos, ptr %15, i32 0, i32 1
  %59 = load i32, ptr %13, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [8 x i32], ptr @_ZZ5solve3posS_E2dy, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %62, ptr %58, align 4, !tbaa !13
  %63 = invoke i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %64 unwind label %81

64:                                               ; preds = %51
  store i64 %63, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %65 = getelementptr inbounds %struct.pos, ptr %14, i32 0, i32 0
  %66 = load i32, ptr %65, align 4, !tbaa !12
  %67 = icmp slt i32 %66, 0
  br i1 %67, label %80, label %68

68:                                               ; preds = %64
  %69 = getelementptr inbounds %struct.pos, ptr %14, i32 0, i32 0
  %70 = load i32, ptr %69, align 4, !tbaa !12
  %71 = icmp sge i32 %70, 8
  br i1 %71, label %80, label %72

72:                                               ; preds = %68
  %73 = getelementptr inbounds %struct.pos, ptr %14, i32 0, i32 1
  %74 = load i32, ptr %73, align 4, !tbaa !13
  %75 = icmp slt i32 %74, 0
  br i1 %75, label %80, label %76

76:                                               ; preds = %72
  %77 = getelementptr inbounds %struct.pos, ptr %14, i32 0, i32 1
  %78 = load i32, ptr %77, align 4, !tbaa !13
  %79 = icmp sge i32 %78, 8
  br i1 %79, label %80, label %85

80:                                               ; preds = %76, %72, %68, %64
  store i32 6, ptr %12, align 4
  br label %91

81:                                               ; preds = %51
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %101

85:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %86 = getelementptr inbounds %"struct.std::pair", ptr %11, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %17, align 4, !tbaa !5
  invoke void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %89 unwind label %97

89:                                               ; preds = %85
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %90 unwind label %97

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  store i32 0, ptr %12, align 4
  br label %91

91:                                               ; preds = %90, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %92 = load i32, ptr %12, align 4
  switch i32 %92, label %116 [
    i32 0, label %93
    i32 6, label %94
  ]

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93, %91
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %13, align 4, !tbaa !5
  br label %47, !llvm.loop !14

97:                                               ; preds = %89, %85
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %9, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  br label %101

101:                                              ; preds = %97, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %106

102:                                              ; preds = %50
  store i32 0, ptr %12, align 4
  br label %103

103:                                              ; preds = %102, %31
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #5
  %104 = load i32, ptr %12, align 4
  switch i32 %104, label %108 [
    i32 0, label %105
  ]

105:                                              ; preds = %103
  br label %20, !llvm.loop !16

106:                                              ; preds = %101, %42
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #5
  br label %110

107:                                              ; preds = %22
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %108

108:                                              ; preds = %107, %103
  call void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #5
  %109 = load i32, ptr %3, align 4
  ret i32 %109

110:                                              ; preds = %106, %38, %34
  call void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #5
  br label %111

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

116:                                              ; preds = %91
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{!10, !6, i64 8}
!10 = !{!"_ZTSSt4pairI3posiE", !11, i64 0, !6, i64 8}
!11 = !{!"_ZTS3pos", !6, i64 0, !6, i64 4}
!12 = !{!11, !6, i64 0}
!13 = !{!11, !6, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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"

%struct.pos = type { i32, i32 }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<std::pair<pos, int>, std::allocator<std::pair<pos, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<pos, int>, std::allocator<std::pair<pos, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<pos, int>, std::allocator<std::pair<pos, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<pos, int>, std::allocator<std::pair<pos, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.std::pair" = type { %struct.pos, i32 }

@_ZZ5solve3posS_E2dx = external hidden local_unnamed_addr global [8 x i32], align 16
@_ZZ5solve3posS_E2dy = external hidden local_unnamed_addr global [8 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5solve3posS_(i64 %0, i64 %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.pos, align 8
  %4 = alloca %struct.pos, align 8
  %5 = alloca %"class.std::queue", align 8
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca %struct.pos, align 8
  %10 = alloca %struct.pos, align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca i32, align 4
  store i64 %0, ptr %3, align 8
  store i64 %1, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #5
  call void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEEC2IS5_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %7)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %13 unwind label %24

13:                                               ; preds = %2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  %14 = getelementptr inbounds i8, ptr %10, i64 4
  %15 = getelementptr inbounds i8, ptr %8, i64 8
  %16 = call noundef zeroext i1 @_ZNKSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  br i1 %16, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %13, %86
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  %17 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %17, i64 12, i1 false)
  call void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %18 = call noundef zeroext i1 @_ZN3poseqERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %4)
  br i1 %18, label %.thread, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %19 = load i32, ptr @_ZZ5solve3posS_E2dx, align 16, !tbaa !5
  store i32 %19, ptr %10, align 4, !tbaa !9
  %20 = load i32, ptr @_ZZ5solve3posS_E2dy, align 16, !tbaa !5
  store i32 %20, ptr %14, align 4, !tbaa !11
  %21 = call i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i64 %21, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %22 = and i64 %21, -30064771080
  %or.cond8.not = icmp eq i64 %22, 0
  br i1 %or.cond8.not, label %26, label %.preheader.1

.thread:                                          ; preds = %.lr.ph
  %23 = load i32, ptr %15, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  br label %.loopexit

24:                                               ; preds = %2
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  br label %90

26:                                               ; preds = %.preheader.preheader
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %27 = load i32, ptr %15, align 4, !tbaa !12
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %29 unwind label %88

29:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dx, i64 4), align 4, !tbaa !5
  store i32 %30, ptr %10, align 4, !tbaa !9
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dy, i64 4), align 4, !tbaa !5
  store i32 %31, ptr %14, align 4, !tbaa !11
  %32 = call i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i64 %32, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %33 = and i64 %32, -30064771080
  %or.cond8.1.not = icmp eq i64 %33, 0
  br i1 %or.cond8.1.not, label %34, label %.preheader.2

34:                                               ; preds = %.preheader.1
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %35 = load i32, ptr %15, align 4, !tbaa !12
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %37 unwind label %88

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

.preheader.2:                                     ; preds = %37, %.preheader.1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dx, i64 8), align 8, !tbaa !5
  store i32 %38, ptr %10, align 4, !tbaa !9
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dy, i64 8), align 8, !tbaa !5
  store i32 %39, ptr %14, align 4, !tbaa !11
  %40 = call i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i64 %40, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %41 = and i64 %40, -30064771080
  %or.cond8.2.not = icmp eq i64 %41, 0
  br i1 %or.cond8.2.not, label %42, label %.preheader.3

42:                                               ; preds = %.preheader.2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %43 = load i32, ptr %15, align 4, !tbaa !12
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %45 unwind label %88

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %.preheader.3

.preheader.3:                                     ; preds = %45, %.preheader.2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dx, i64 12), align 4, !tbaa !5
  store i32 %46, ptr %10, align 4, !tbaa !9
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dy, i64 12), align 4, !tbaa !5
  store i32 %47, ptr %14, align 4, !tbaa !11
  %48 = call i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i64 %48, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %49 = and i64 %48, -30064771080
  %or.cond8.3.not = icmp eq i64 %49, 0
  br i1 %or.cond8.3.not, label %50, label %.preheader.4

50:                                               ; preds = %.preheader.3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %51 = load i32, ptr %15, align 4, !tbaa !12
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %53 unwind label %88

53:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %.preheader.4

.preheader.4:                                     ; preds = %53, %.preheader.3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dx, i64 16), align 16, !tbaa !5
  store i32 %54, ptr %10, align 4, !tbaa !9
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dy, i64 16), align 16, !tbaa !5
  store i32 %55, ptr %14, align 4, !tbaa !11
  %56 = call i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i64 %56, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %57 = and i64 %56, -30064771080
  %or.cond8.4.not = icmp eq i64 %57, 0
  br i1 %or.cond8.4.not, label %58, label %.preheader.5

58:                                               ; preds = %.preheader.4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %59 = load i32, ptr %15, align 4, !tbaa !12
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %61 unwind label %88

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %.preheader.5

.preheader.5:                                     ; preds = %61, %.preheader.4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dx, i64 20), align 4, !tbaa !5
  store i32 %62, ptr %10, align 4, !tbaa !9
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dy, i64 20), align 4, !tbaa !5
  store i32 %63, ptr %14, align 4, !tbaa !11
  %64 = call i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i64 %64, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %65 = and i64 %64, -30064771080
  %or.cond8.5.not = icmp eq i64 %65, 0
  br i1 %or.cond8.5.not, label %66, label %.preheader.6

66:                                               ; preds = %.preheader.5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %67 = load i32, ptr %15, align 4, !tbaa !12
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %69 unwind label %88

69:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %.preheader.6

.preheader.6:                                     ; preds = %69, %.preheader.5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dx, i64 24), align 8, !tbaa !5
  store i32 %70, ptr %10, align 4, !tbaa !9
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dy, i64 24), align 8, !tbaa !5
  store i32 %71, ptr %14, align 4, !tbaa !11
  %72 = call i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i64 %72, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %73 = and i64 %72, -30064771080
  %or.cond8.6.not = icmp eq i64 %73, 0
  br i1 %or.cond8.6.not, label %74, label %.preheader.7

74:                                               ; preds = %.preheader.6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %75 = load i32, ptr %15, align 4, !tbaa !12
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %77 unwind label %88

77:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %.preheader.7

.preheader.7:                                     ; preds = %77, %.preheader.6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dx, i64 28), align 4, !tbaa !5
  store i32 %78, ptr %10, align 4, !tbaa !9
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @_ZZ5solve3posS_E2dy, i64 28), align 4, !tbaa !5
  store i32 %79, ptr %14, align 4, !tbaa !11
  %80 = call i64 @_ZN3posplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i64 %80, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %81 = and i64 %80, -30064771080
  %or.cond8.7.not = icmp eq i64 %81, 0
  br i1 %or.cond8.7.not, label %82, label %86

82:                                               ; preds = %.preheader.7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  %83 = load i32, ptr %15, align 4, !tbaa !12
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %12, align 4, !tbaa !5
  call void @_ZNSt4pairI3posiEC2IRS0_iTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE4pushEOS2_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %85 unwind label %88

85:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %86

86:                                               ; preds = %85, %.preheader.7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  %87 = call noundef zeroext i1 @_ZNKSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  br i1 %87, label %.loopexit, label %.lr.ph

88:                                               ; preds = %82, %74, %66, %58, %50, %42, %34, %26
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  br label %90

.loopexit:                                        ; preds = %86, %13, %.thread
  %.2 = phi i32 [ %23, %.thread ], [ -1, %13 ], [ -1, %86 ]
  call void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #5
  ret i32 %.2

90:                                               ; preds = %88, %24
  %.pn = phi { ptr, i32 } [ %89, %88 ], [ %25, %24 ]
  call void @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE5emptyEv(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(12) ptr @_ZNSt5queueISt4pairI3posiESt5dequeIS2_SaIS2_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 = !{!10, !6, i64 0}
!10 = !{!"_ZTS3pos", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}
!12 = !{!13, !6, i64 8}
!13 = !{!"_ZTSSt4pairI3posiE", !10, i64 0, !6, i64 8}


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