; LLVM IR from xirc/cp-algorithm :: atcoder/abc218/D/main.ll (Z5solvev)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::array<int, 2>, std::pair<const std::array<int, 2>, int>, std::_Select1st<std::pair<const std::array<int, 2>, int>>, std::less<std::array<int, 2>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::array<int, 2>, std::pair<const std::array<int, 2>, int>, std::_Select1st<std::pair<const std::array<int, 2>, int>>, std::less<std::array<int, 2>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::map<std::array<int, 2>, int>>, std::_Select1st<std::pair<const int, std::map<std::array<int, 2>, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::map<std::array<int, 2>, int>>, std::_Select1st<std::pair<const int, std::map<std::array<int, 2>, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::array" = type { [2 x i32] }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, %"class.std::map" }
%"struct.std::_Rb_tree_iterator.9" = type { ptr }
%"struct.std::pair.10" = type { %"struct.std::array", i32 }

@N = external dso_local global i32, align 4
@xs = external dso_local global %"class.std::vector", align 8
@ys = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::map", align 8
  %2 = alloca %"class.std::map.3", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::array", align 4
  %12 = alloca %"struct.std::array", align 4
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca %"struct.std::pair", align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator.9", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator.9", align 8
  %22 = alloca %"struct.std::pair.10", align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::array", align 4
  %26 = alloca %"struct.std::array", align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %1) #6
  call void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #6
  call void @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %115, %0
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = load i32, ptr @N, align 4, !tbaa !5
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %118

32:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %5, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %93, %32
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = load i32, ptr @N, align 4, !tbaa !5
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %114

40:                                               ; preds = %35
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @xs, i64 noundef %42) #6
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = load i32, ptr %5, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @xs, i64 noundef %46) #6
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = icmp ne i32 %44, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %40
  br label %93

51:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @xs, i64 noundef %53) #6
  %55 = load i32, ptr %54, align 4, !tbaa !5
  store i32 %55, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ys, i64 noundef %57) #6
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ys, i64 noundef %60) #6
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef nonnull align 4 dereferenceable(4) %61)
          to label %63 unwind label %96

63:                                               ; preds = %51
  %64 = load i32, ptr %62, align 4, !tbaa !5
  store i32 %64, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ys, i64 noundef %66) #6
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ys, i64 noundef %70) #6
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = sub nsw i32 %68, %72
  %74 = call i32 @llvm.abs.i32(i32 %73, i1 true)
  store i32 %74, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %75 = getelementptr inbounds %"struct.std::array", ptr %11, i32 0, i32 0
  %76 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %76, ptr %75, align 4, !tbaa !5
  %77 = getelementptr inbounds i32, ptr %75, i64 1
  %78 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %78, ptr %77, align 4, !tbaa !5
  %79 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %80 unwind label %100

80:                                               ; preds = %63
  %81 = load i32, ptr %79, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %79, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %83 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %84 unwind label %104

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %85 = getelementptr inbounds %"struct.std::array", ptr %12, i32 0, i32 0
  %86 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %86, ptr %85, align 4, !tbaa !5
  %87 = getelementptr inbounds i32, ptr %85, i64 1
  %88 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %88, ptr %87, align 4, !tbaa !5
  %89 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %83, ptr noundef nonnull align 4 dereferenceable(8) %12)
          to label %90 unwind label %108

90:                                               ; preds = %84
  %91 = load i32, ptr %89, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %89, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %93

93:                                               ; preds = %90, %50
  %94 = load i32, ptr %5, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %5, align 4, !tbaa !5
  br label %35, !llvm.loop !9

96:                                               ; preds = %51
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %8, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %9, align 4
  br label %113

100:                                              ; preds = %63
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %8, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %112

104:                                              ; preds = %80
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %8, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %9, align 4
  br label %112

108:                                              ; preds = %84
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %8, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %112

112:                                              ; preds = %108, %104, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %113

113:                                              ; preds = %112, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %194

114:                                              ; preds = %39
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %3, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %3, align 4, !tbaa !5
  br label %27, !llvm.loop !11

118:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store ptr %2, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %119 = load ptr, ptr %14, align 8, !tbaa !14
  %120 = call ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %119) #6
  %121 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %120, ptr %121, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %122 = load ptr, ptr %14, align 8, !tbaa !14
  %123 = call ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %122) #6
  %124 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  br label %125

125:                                              ; preds = %187, %118
  %126 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS4_ESaIS0_IKS4_iEEEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %126, label %128, label %127

127:                                              ; preds = %125
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %190

128:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 56, ptr %17) #6
  %129 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS4_ESaIS0_IKS4_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  invoke void @_ZNSt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS3_ESaIS_IKS3_iEEEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(56) %129)
          to label %130 unwind label %143

130:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %131 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 0
  %132 = load i32, ptr %131, align 8, !tbaa !16
  store i32 %132, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %133 = getelementptr inbounds %"struct.std::pair", ptr %17, i32 0, i32 1
  store ptr %133, ptr %19, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %134 = load ptr, ptr %19, align 8, !tbaa !14
  %135 = call ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %134) #6
  %136 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.9", ptr %20, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %137 = load ptr, ptr %19, align 8, !tbaa !14
  %138 = call ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %137) #6
  %139 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.9", ptr %21, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  br label %140

140:                                              ; preds = %175, %130
  %141 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEES7_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br i1 %141, label %147, label %142

142:                                              ; preds = %140
  store i32 10, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %186

143:                                              ; preds = %128
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %8, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %9, align 4
  br label %189

147:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #6
  %148 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %148, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %149 = getelementptr inbounds %"struct.std::pair.10", ptr %22, i32 0, i32 0
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %149, i64 noundef 0) #6
  %151 = load i32, ptr %150, align 4, !tbaa !5
  store i32 %151, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %152 = getelementptr inbounds %"struct.std::pair.10", ptr %22, i32 0, i32 0
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %152, i64 noundef 1) #6
  %154 = load i32, ptr %153, align 4, !tbaa !5
  store i32 %154, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %155 = getelementptr inbounds %"struct.std::array", ptr %25, i32 0, i32 0
  %156 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %156, ptr %155, align 4, !tbaa !5
  %157 = getelementptr inbounds i32, ptr %155, i64 1
  %158 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %158, ptr %157, align 4, !tbaa !5
  %159 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(8) %25)
          to label %160 unwind label %177

160:                                              ; preds = %147
  %161 = load i32, ptr %159, align 4, !tbaa !5
  %162 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %163 unwind label %177

163:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %164 = getelementptr inbounds %"struct.std::array", ptr %26, i32 0, i32 0
  %165 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %165, ptr %164, align 4, !tbaa !5
  %166 = getelementptr inbounds i32, ptr %164, i64 1
  %167 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %167, ptr %166, align 4, !tbaa !5
  %168 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %162, ptr noundef nonnull align 4 dereferenceable(8) %26)
          to label %169 unwind label %181

169:                                              ; preds = %163
  %170 = load i32, ptr %168, align 4, !tbaa !5
  %171 = sub nsw i32 %161, %170
  %172 = sext i32 %171 to i64
  %173 = load i64, ptr %13, align 8, !tbaa !12
  %174 = add nsw i64 %173, %172
  store i64 %174, ptr %13, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #6
  br label %175

175:                                              ; preds = %169
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %140

177:                                              ; preds = %160, %147
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %8, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %9, align 4
  br label %185

181:                                              ; preds = %163
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %8, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %185

185:                                              ; preds = %181, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @_ZNSt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS3_ESaIS_IKS3_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  br label %189

186:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @_ZNSt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS3_ESaIS_IKS3_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %17) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #6
  br label %187

187:                                              ; preds = %186
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS4_ESaIS0_IKS4_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br label %125

189:                                              ; preds = %185, %143
  call void @llvm.lifetime.end.p0(i64 56, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %194

190:                                              ; preds = %127
  %191 = load i64, ptr %13, align 8, !tbaa !12
  %192 = sdiv i64 %191, 2
  store i64 %192, ptr %13, align 8, !tbaa !12
  %193 = load i64, ptr %13, align 8, !tbaa !12
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #6
  call void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %1) #6
  ret i64 %193

194:                                              ; preds = %189, %113
  call void @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #6
  call void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %1) #6
  br label %195

195:                                              ; preds = %194
  %196 = load ptr, ptr %8, align 8
  %197 = load i32, ptr %9, align 4
  %198 = insertvalue { ptr, i32 } poison, ptr %196, 0
  %199 = insertvalue { ptr, i32 } %198, i32 %197, 1
  resume { ptr, i32 } %199
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #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) #5

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSSt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS3_ESaIS_IKS3_iEEEE", !6, i64 0, !18, i64 8}
!18 = !{!"_ZTSSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEE", !19, i64 0}
!19 = !{!"_ZTSSt8_Rb_treeISt5arrayIiLm2EESt4pairIKS1_iESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !20, i64 0}
!20 = !{!"_ZTSNSt8_Rb_treeISt5arrayIiLm2EESt4pairIKS1_iESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !21, i64 0, !23, i64 8}
!21 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt5arrayIiLm2EEEE", !22, i64 0}
!22 = !{!"_ZTSSt4lessISt5arrayIiLm2EEE"}
!23 = !{!"_ZTSSt15_Rb_tree_header", !24, i64 0, !13, i64 32}
!24 = !{!"_ZTSSt18_Rb_tree_node_base", !25, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!25 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::array<int, 2>, std::pair<const std::array<int, 2>, int>, std::_Select1st<std::pair<const std::array<int, 2>, int>>, std::less<std::array<int, 2>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::array<int, 2>, std::pair<const std::array<int, 2>, int>, std::_Select1st<std::pair<const std::array<int, 2>, int>>, std::less<std::array<int, 2>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.3" = type { %"class.std::_Rb_tree.4" }
%"class.std::_Rb_tree.4" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::map<std::array<int, 2>, int>>, std::_Select1st<std::pair<const int, std::map<std::array<int, 2>, int>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::map<std::array<int, 2>, int>>, std::_Select1st<std::pair<const int, std::map<std::array<int, 2>, int>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::array" = type { [2 x i32] }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair" = type { i32, %"class.std::map" }
%"struct.std::_Rb_tree_iterator.9" = type { ptr }
%"struct.std::pair.10" = type { %"struct.std::array", i32 }

@N = external dso_local local_unnamed_addr global i32, align 4
@xs = external dso_local global %"class.std::vector", align 8
@ys = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i64 -4611686018427387904, 4611686018427387904) i64 @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::map", align 8
  %2 = alloca %"class.std::map.3", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::array", align 4
  %5 = alloca %"struct.std::array", align 4
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::_Rb_tree_iterator.9", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator.9", align 8
  %12 = alloca %"struct.std::pair.10", align 4
  %13 = alloca %"struct.std::array", align 4
  %14 = alloca %"struct.std::array", align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #6
  call void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #6
  call void @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  %15 = load i32, ptr @N, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph48, label %._crit_edge

.lr.ph48:                                         ; preds = %0
  %17 = getelementptr inbounds i8, ptr %4, i64 4
  %18 = getelementptr inbounds i8, ptr %5, i64 4
  br label %27

.loopexit.loopexit:                               ; preds = %58
  %.pre = sext i32 %59 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %27
  %.pre-phi = phi i64 [ %.pre, %.loopexit.loopexit ], [ %29, %27 ]
  %19 = phi i32 [ %59, %.loopexit.loopexit ], [ %28, %27 ]
  %20 = icmp slt i64 %indvars.iv.next62, %.pre-phi
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %20, label %27, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.loopexit, %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %21 = call ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  store ptr %21, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %22 = call ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  store ptr %22, ptr %7, align 8
  %23 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS4_ESaIS0_IKS4_iEEEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %23, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %._crit_edge
  %24 = getelementptr inbounds i8, ptr %8, i64 8
  %25 = getelementptr inbounds i8, ptr %13, i64 4
  %26 = getelementptr inbounds i8, ptr %14, i64 4
  br label %70

27:                                               ; preds = %.lr.ph48, %.loopexit
  %28 = phi i32 [ %15, %.lr.ph48 ], [ %19, %.loopexit ]
  %indvars.iv61 = phi i64 [ 0, %.lr.ph48 ], [ %indvars.iv.next62, %.loopexit ]
  %indvars.iv = phi i64 [ 1, %.lr.ph48 ], [ %indvars.iv.next, %.loopexit ]
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next62, %29
  br i1 %30, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %27, %58
  %indvars.iv58 = phi i64 [ %indvars.iv.next59, %58 ], [ %indvars.iv, %27 ]
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @xs, i64 noundef %indvars.iv61) #6
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @xs, i64 noundef %indvars.iv58) #6
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %.not = icmp eq i32 %32, %34
  br i1 %.not, label %35, label %58

35:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @xs, i64 noundef %indvars.iv61) #6
  %37 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %37, ptr %3, align 4, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ys, i64 noundef %indvars.iv61) #6
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ys, i64 noundef %indvars.iv58) #6
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %38, ptr noundef nonnull align 4 dereferenceable(4) %39)
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ys, i64 noundef %indvars.iv61) #6
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ys, i64 noundef %indvars.iv58) #6
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sub nsw i32 %43, %45
  %47 = call i32 @llvm.abs.i32(i32 %46, i1 true)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store i32 %41, ptr %4, align 4, !tbaa !5
  store i32 %47, ptr %17, align 4, !tbaa !5
  %48 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(8) %4)
          to label %49 unwind label %62

49:                                               ; preds = %35
  %50 = load i32, ptr %48, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %52 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %53 unwind label %64

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store i32 %41, ptr %5, align 4, !tbaa !5
  store i32 %47, ptr %18, align 4, !tbaa !5
  %54 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %52, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %55 unwind label %66

55:                                               ; preds = %53
  %56 = load i32, ptr %54, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %54, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %58

58:                                               ; preds = %.lr.ph, %55
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %59 = load i32, ptr @N, align 4, !tbaa !5
  %60 = trunc nuw i64 %indvars.iv.next59 to i32
  %61 = icmp sgt i32 %59, %60
  br i1 %61, label %.lr.ph, label %.loopexit.loopexit, !llvm.loop !11

62:                                               ; preds = %35
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %68

64:                                               ; preds = %49
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %68

66:                                               ; preds = %53
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %68

68:                                               ; preds = %66, %64, %62
  %.pn38 = phi { ptr, i32 } [ %67, %66 ], [ %65, %64 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %105

._crit_edge56.loopexit:                           ; preds = %._crit_edge52
  %69 = sdiv i64 %.131.lcssa, 2
  br label %._crit_edge56

._crit_edge56:                                    ; preds = %._crit_edge56.loopexit, %._crit_edge
  %.030.lcssa = phi i64 [ 0, %._crit_edge ], [ %69, %._crit_edge56.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  call void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #6
  ret i64 %.030.lcssa

70:                                               ; preds = %.lr.ph55, %._crit_edge52
  %.03053 = phi i64 [ 0, %.lr.ph55 ], [ %.131.lcssa, %._crit_edge52 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #6
  %71 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS4_ESaIS0_IKS4_iEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  invoke void @_ZNSt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS3_ESaIS_IKS3_iEEEEC2ERKSA_(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(56) %71)
          to label %72 unwind label %79

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %73 = load i32, ptr %8, align 8, !tbaa !12
  store i32 %73, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %74 = call ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  store ptr %74, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %75 = call ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %24) #6
  store ptr %75, ptr %11, align 8
  %76 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEES7_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %76, label %.lr.ph51, label %._crit_edge52

._crit_edge52:                                    ; preds = %92, %72
  %.131.lcssa = phi i64 [ %.03053, %72 ], [ %96, %92 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @_ZNSt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS3_ESaIS_IKS3_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS4_ESaIS0_IKS4_iEEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %78 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS4_ESaIS0_IKS4_iEEEEESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %78, label %70, label %._crit_edge56.loopexit

79:                                               ; preds = %70
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %104

.lr.ph51:                                         ; preds = %72, %92
  %.13149 = phi i64 [ %96, %92 ], [ %.03053, %72 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #6
  %81 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %81, i64 12, i1 false)
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %12, i64 noundef 0) #6
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %12, i64 noundef 1) #6
  %85 = load i32, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  store i32 %83, ptr %13, align 4, !tbaa !5
  store i32 %85, ptr %25, align 4, !tbaa !5
  %86 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 4 dereferenceable(8) %13)
          to label %87 unwind label %99

87:                                               ; preds = %.lr.ph51
  %88 = load i32, ptr %86, align 4, !tbaa !5
  %89 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %90 unwind label %99

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store i32 %83, ptr %14, align 4, !tbaa !5
  store i32 %85, ptr %26, align 4, !tbaa !5
  %91 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48) %89, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %92 unwind label %101

92:                                               ; preds = %90
  %93 = load i32, ptr %91, align 4, !tbaa !5
  %94 = sub nsw i32 %88, %93
  %95 = sext i32 %94 to i64
  %96 = add nsw i64 %.13149, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %98 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEES7_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %98, label %.lr.ph51, label %._crit_edge52

99:                                               ; preds = %87, %.lr.ph51
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %103

101:                                              ; preds = %90
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %103

103:                                              ; preds = %101, %99
  %.pn = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @_ZNSt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS3_ESaIS_IKS3_iEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #6
  br label %104

104:                                              ; preds = %103, %79
  %.pn.pn = phi { ptr, i32 } [ %.pn, %103 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %105

105:                                              ; preds = %104, %68
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %68 ], [ %.pn.pn, %104 ]
  call void @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #6
  call void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %1) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn38.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 nounwind uwtable
declare dso_local void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 align 2

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt3mapIiS_ISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEES2_IiESaIS4_IKiS8_EEEixERSA_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt5arrayIiLm2EEiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) 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) #5

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #2 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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!13, !6, i64 0}
!13 = !{!"_ZTSSt4pairIKiSt3mapISt5arrayIiLm2EEiSt4lessIS3_ESaIS_IKS3_iEEEE", !6, i64 0, !14, i64 8}
!14 = !{!"_ZTSSt3mapISt5arrayIiLm2EEiSt4lessIS1_ESaISt4pairIKS1_iEEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeISt5arrayIiLm2EESt4pairIKS1_iESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeISt5arrayIiLm2EESt4pairIKS1_iESt10_Select1stIS4_ESt4lessIS1_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt5arrayIiLm2EEEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessISt5arrayIiLm2EEE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !23, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !22, i64 8, !22, i64 16, !22, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!22 = !{!"any pointer", !7, i64 0}
!23 = !{!"long", !7, i64 0}


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