; LLVM IR from eyangch/competitive-programming :: CSES/Additional_Problems/robot_path.ll (Z7solvehzv)

; 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<ins, std::allocator<ins>>::_Vector_impl" }
%"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl" = type { %"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.ins = type { i8, i64 }
%struct.seg = type { i64, i64, i64, i64, i64 }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%class.anon = type { i8 }
%struct.segset = type { %"class.std::set" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_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 }

@ans = external dso_local global i64, align 8
@I = external dso_local global %"class.std::vector", align 8

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP3insSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7solvehzv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.0", align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %struct.ins, align 8
  %9 = alloca %struct.seg, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.seg, align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %15 = alloca %class.anon, align 1
  %16 = alloca i64, align 8
  %17 = alloca %struct.segset, align 8
  %18 = alloca %struct.segset, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #6
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store ptr @I, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %24 = call ptr @_ZNSt6vectorI3insSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @I) #6
  %25 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %24, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %26 = call ptr @_ZNSt6vectorI3insSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @I) #6
  %27 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %26, ptr %27, align 8
  br label %28

28:                                               ; preds = %103, %0
  %29 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3insSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  br i1 %29, label %31, label %30

30:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %106

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !11
  %33 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 0
  %34 = load i8, ptr %33, align 8, !tbaa !13
  %35 = sext i8 %34 to i32
  %36 = icmp eq i32 %35, 76
  br i1 %36, label %37, label %55

37:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #6
  %38 = getelementptr inbounds %struct.seg, ptr %9, i32 0, i32 0
  %39 = load i64, ptr %2, align 8, !tbaa !5
  store i64 %39, ptr %38, align 8, !tbaa !15
  %40 = getelementptr inbounds %struct.seg, ptr %9, i32 0, i32 1
  %41 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %41, ptr %40, align 8, !tbaa !17
  %42 = getelementptr inbounds %struct.seg, ptr %9, i32 0, i32 2
  %43 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 1
  %44 = load i64, ptr %43, align 8, !tbaa !18
  %45 = load i64, ptr %3, align 8, !tbaa !5
  %46 = sub nsw i64 %45, %44
  store i64 %46, ptr %3, align 8, !tbaa !5
  store i64 %46, ptr %42, align 8, !tbaa !19
  %47 = getelementptr inbounds %struct.seg, ptr %9, i32 0, i32 3
  store i64 0, ptr %47, align 8, !tbaa !20
  %48 = getelementptr inbounds %struct.seg, ptr %9, i32 0, i32 4
  %49 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %49, ptr %48, align 8, !tbaa !21
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %50 unwind label %51

50:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  br label %55

51:                                               ; preds = %37
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %10, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #6
  br label %105

55:                                               ; preds = %50, %31
  %56 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 0
  %57 = load i8, ptr %56, align 8, !tbaa !13
  %58 = sext i8 %57 to i32
  %59 = icmp eq i32 %58, 82
  br i1 %59, label %60, label %78

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
  %61 = getelementptr inbounds %struct.seg, ptr %12, i32 0, i32 0
  %62 = load i64, ptr %2, align 8, !tbaa !5
  store i64 %62, ptr %61, align 8, !tbaa !15
  %63 = getelementptr inbounds %struct.seg, ptr %12, i32 0, i32 1
  %64 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %64, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds %struct.seg, ptr %12, i32 0, i32 2
  %66 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !18
  %68 = load i64, ptr %3, align 8, !tbaa !5
  %69 = add nsw i64 %68, %67
  store i64 %69, ptr %3, align 8, !tbaa !5
  store i64 %69, ptr %65, align 8, !tbaa !19
  %70 = getelementptr inbounds %struct.seg, ptr %12, i32 0, i32 3
  store i64 1, ptr %70, align 8, !tbaa !20
  %71 = getelementptr inbounds %struct.seg, ptr %12, i32 0, i32 4
  %72 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %72, ptr %71, align 8, !tbaa !21
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %73 unwind label %74

73:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  br label %78

74:                                               ; preds = %60
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %10, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  br label %105

78:                                               ; preds = %73, %55
  %79 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 0
  %80 = load i8, ptr %79, align 8, !tbaa !13
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 85
  br i1 %82, label %83, label %88

83:                                               ; preds = %78
  %84 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 1
  %85 = load i64, ptr %84, align 8, !tbaa !18
  %86 = load i64, ptr %2, align 8, !tbaa !5
  %87 = add nsw i64 %86, %85
  store i64 %87, ptr %2, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %83, %78
  %89 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 0
  %90 = load i8, ptr %89, align 8, !tbaa !13
  %91 = sext i8 %90 to i32
  %92 = icmp eq i32 %91, 68
  br i1 %92, label %93, label %98

93:                                               ; preds = %88
  %94 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !18
  %96 = load i64, ptr %2, align 8, !tbaa !5
  %97 = sub nsw i64 %96, %95
  store i64 %97, ptr %2, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %93, %88
  %99 = getelementptr inbounds %struct.ins, ptr %8, i32 0, i32 1
  %100 = load i64, ptr %99, align 8, !tbaa !18
  %101 = load i64, ptr %4, align 8, !tbaa !5
  %102 = add nsw i64 %101, %100
  store i64 %102, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  br label %103

103:                                              ; preds = %98
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br label %28

105:                                              ; preds = %74, %51
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %276

106:                                              ; preds = %30
  %107 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %13, i32 0, i32 0
  store ptr %107, ptr %108, align 8
  %109 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %110 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %14, i32 0, i32 0
  store ptr %109, ptr %110, align 8
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %13, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8
  %113 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %14, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solvehzvE3$_0EvT_S9_T0_"(ptr %112, ptr %114)
          to label %115 unwind label %121

115:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 -1, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #6
  call void @_ZN6segsetC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #6
  call void @_ZN6segsetC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store i64 0, ptr %19, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %271, %115
  %117 = load i64, ptr %19, align 8, !tbaa !5
  %118 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %119 = icmp slt i64 %117, %118
  br i1 %119, label %125, label %120

120:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %275

121:                                              ; preds = %106
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %10, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %11, align 4
  br label %276

125:                                              ; preds = %116
  %126 = load i64, ptr %19, align 8, !tbaa !5
  %127 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %126) #6
  %128 = getelementptr inbounds %struct.seg, ptr %127, i32 0, i32 0
  %129 = load i64, ptr %128, align 8, !tbaa !15
  %130 = load i64, ptr %16, align 8, !tbaa !5
  %131 = icmp ne i64 %129, %130
  br i1 %131, label %132, label %139

132:                                              ; preds = %125
  invoke void @_ZN6segset5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %133 unwind label %135

133:                                              ; preds = %132
  invoke void @_ZN6segset5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %134 unwind label %135

134:                                              ; preds = %133
  br label %139

135:                                              ; preds = %133, %132
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %10, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %11, align 4
  br label %274

139:                                              ; preds = %134, %125
  %140 = load i64, ptr %19, align 8, !tbaa !5
  %141 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %140) #6
  %142 = getelementptr inbounds %struct.seg, ptr %141, i32 0, i32 0
  %143 = load i64, ptr %142, align 8, !tbaa !15
  store i64 %143, ptr %16, align 8, !tbaa !5
  %144 = load i64, ptr %19, align 8, !tbaa !5
  %145 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %144) #6
  %146 = getelementptr inbounds %struct.seg, ptr %145, i32 0, i32 3
  %147 = load i64, ptr %146, align 8, !tbaa !20
  %148 = icmp eq i64 %147, 0
  br i1 %148, label %149, label %208

149:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %150 = load i64, ptr %19, align 8, !tbaa !5
  %151 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %150) #6
  %152 = getelementptr inbounds %struct.seg, ptr %151, i32 0, i32 2
  %153 = load i64, ptr %152, align 8, !tbaa !19
  %154 = load i64, ptr %19, align 8, !tbaa !5
  %155 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %154) #6
  %156 = getelementptr inbounds %struct.seg, ptr %155, i32 0, i32 1
  %157 = load i64, ptr %156, align 8, !tbaa !17
  %158 = invoke noundef i64 @_ZN6segset4isctExx(ptr noundef nonnull align 8 dereferenceable(48) %17, i64 noundef %153, i64 noundef %157)
          to label %159 unwind label %178

159:                                              ; preds = %149
  store i64 %158, ptr %20, align 8, !tbaa !5
  %160 = load i64, ptr %20, align 8, !tbaa !5
  %161 = sitofp i64 %160 to double
  %162 = fcmp une double %161, 1.000000e+18
  br i1 %162, label %163, label %186

163:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %164 = load i64, ptr %19, align 8, !tbaa !5
  %165 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %164) #6
  %166 = getelementptr inbounds %struct.seg, ptr %165, i32 0, i32 4
  %167 = load i64, ptr %166, align 8, !tbaa !21
  %168 = load i64, ptr %19, align 8, !tbaa !5
  %169 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %168) #6
  %170 = getelementptr inbounds %struct.seg, ptr %169, i32 0, i32 1
  %171 = load i64, ptr %170, align 8, !tbaa !17
  %172 = add nsw i64 %167, %171
  %173 = load i64, ptr %20, align 8, !tbaa !5
  %174 = sub nsw i64 %172, %173
  store i64 %174, ptr %21, align 8, !tbaa !5
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %176 unwind label %182

176:                                              ; preds = %163
  %177 = load i64, ptr %175, align 8, !tbaa !5
  store i64 %177, ptr @ans, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %186

178:                                              ; preds = %195, %186, %149
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %10, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %11, align 4
  br label %207

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

186:                                              ; preds = %176, %159
  %187 = load i64, ptr %19, align 8, !tbaa !5
  %188 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %187) #6
  %189 = getelementptr inbounds %struct.seg, ptr %188, i32 0, i32 2
  %190 = load i64, ptr %189, align 8, !tbaa !19
  %191 = load i64, ptr %19, align 8, !tbaa !5
  %192 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %191) #6
  %193 = getelementptr inbounds %struct.seg, ptr %192, i32 0, i32 1
  %194 = load i64, ptr %193, align 8, !tbaa !17
  invoke void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48) %17, i64 noundef %190, i64 noundef %194)
          to label %195 unwind label %178

195:                                              ; preds = %186
  %196 = load i64, ptr %19, align 8, !tbaa !5
  %197 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %196) #6
  %198 = getelementptr inbounds %struct.seg, ptr %197, i32 0, i32 1
  %199 = load i64, ptr %198, align 8, !tbaa !17
  %200 = sub nsw i64 0, %199
  %201 = load i64, ptr %19, align 8, !tbaa !5
  %202 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %201) #6
  %203 = getelementptr inbounds %struct.seg, ptr %202, i32 0, i32 2
  %204 = load i64, ptr %203, align 8, !tbaa !19
  %205 = sub nsw i64 0, %204
  invoke void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48) %18, i64 noundef %200, i64 noundef %205)
          to label %206 unwind label %178

206:                                              ; preds = %195
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %270

207:                                              ; preds = %182, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %274

208:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %209 = load i64, ptr %19, align 8, !tbaa !5
  %210 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %209) #6
  %211 = getelementptr inbounds %struct.seg, ptr %210, i32 0, i32 2
  %212 = load i64, ptr %211, align 8, !tbaa !19
  %213 = sub nsw i64 0, %212
  %214 = load i64, ptr %19, align 8, !tbaa !5
  %215 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %214) #6
  %216 = getelementptr inbounds %struct.seg, ptr %215, i32 0, i32 1
  %217 = load i64, ptr %216, align 8, !tbaa !17
  %218 = sub nsw i64 0, %217
  %219 = invoke noundef i64 @_ZN6segset4isctExx(ptr noundef nonnull align 8 dereferenceable(48) %18, i64 noundef %213, i64 noundef %218)
          to label %220 unwind label %240

220:                                              ; preds = %208
  %221 = sub nsw i64 0, %219
  store i64 %221, ptr %22, align 8, !tbaa !5
  %222 = load i64, ptr %22, align 8, !tbaa !5
  %223 = sitofp i64 %222 to double
  %224 = fcmp une double %223, -1.000000e+18
  br i1 %224, label %225, label %248

225:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %226 = load i64, ptr %19, align 8, !tbaa !5
  %227 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %226) #6
  %228 = getelementptr inbounds %struct.seg, ptr %227, i32 0, i32 4
  %229 = load i64, ptr %228, align 8, !tbaa !21
  %230 = load i64, ptr %22, align 8, !tbaa !5
  %231 = add nsw i64 %229, %230
  %232 = load i64, ptr %19, align 8, !tbaa !5
  %233 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %232) #6
  %234 = getelementptr inbounds %struct.seg, ptr %233, i32 0, i32 1
  %235 = load i64, ptr %234, align 8, !tbaa !17
  %236 = sub nsw i64 %231, %235
  store i64 %236, ptr %23, align 8, !tbaa !5
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %238 unwind label %244

238:                                              ; preds = %225
  %239 = load i64, ptr %237, align 8, !tbaa !5
  store i64 %239, ptr @ans, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %248

240:                                              ; preds = %257, %248, %208
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %10, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %11, align 4
  br label %269

244:                                              ; preds = %225
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %10, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %269

248:                                              ; preds = %238, %220
  %249 = load i64, ptr %19, align 8, !tbaa !5
  %250 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %249) #6
  %251 = getelementptr inbounds %struct.seg, ptr %250, i32 0, i32 1
  %252 = load i64, ptr %251, align 8, !tbaa !17
  %253 = load i64, ptr %19, align 8, !tbaa !5
  %254 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %253) #6
  %255 = getelementptr inbounds %struct.seg, ptr %254, i32 0, i32 2
  %256 = load i64, ptr %255, align 8, !tbaa !19
  invoke void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48) %17, i64 noundef %252, i64 noundef %256)
          to label %257 unwind label %240

257:                                              ; preds = %248
  %258 = load i64, ptr %19, align 8, !tbaa !5
  %259 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %258) #6
  %260 = getelementptr inbounds %struct.seg, ptr %259, i32 0, i32 2
  %261 = load i64, ptr %260, align 8, !tbaa !19
  %262 = sub nsw i64 0, %261
  %263 = load i64, ptr %19, align 8, !tbaa !5
  %264 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %263) #6
  %265 = getelementptr inbounds %struct.seg, ptr %264, i32 0, i32 1
  %266 = load i64, ptr %265, align 8, !tbaa !17
  %267 = sub nsw i64 0, %266
  invoke void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48) %18, i64 noundef %262, i64 noundef %267)
          to label %268 unwind label %240

268:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %270

269:                                              ; preds = %244, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %274

270:                                              ; preds = %268, %206
  br label %271

271:                                              ; preds = %270
  %272 = load i64, ptr %19, align 8, !tbaa !5
  %273 = add nsw i64 %272, 1
  store i64 %273, ptr %19, align 8, !tbaa !5
  br label %116, !llvm.loop !22

274:                                              ; preds = %269, %207, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @_ZN6segsetD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #6
  call void @_ZN6segsetD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %276

275:                                              ; preds = %120
  call void @_ZN6segsetD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #6
  call void @_ZN6segsetD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #6
  ret void

276:                                              ; preds = %274, %121, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #6
  br label %277

277:                                              ; preds = %276
  %278 = load ptr, ptr %10, align 8
  %279 = load i32, ptr %11, align 4
  %280 = insertvalue { ptr, i32 } poison, ptr %278, 0
  %281 = insertvalue { ptr, i32 } %280, i32 %279, 1
  resume { ptr, i32 } %281
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solvehzvE3$_0EvT_S9_T0_"(ptr, ptr) #5

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6segset4isctExx(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef) #3 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint 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 #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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 1, !12, i64 8, i64 8, !5}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTS3ins", !7, i64 0, !6, i64 8}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTS3seg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!16, !6, i64 8}
!18 = !{!14, !6, i64 8}
!19 = !{!16, !6, i64 16}
!20 = !{!16, !6, i64 24}
!21 = !{!16, !6, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; 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<ins, std::allocator<ins>>::_Vector_impl" }
%"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl" = type { %"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ins, std::allocator<ins>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.seg = type { i64, i64, i64, i64, i64 }
%struct.segset = type { %"class.std::set" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<long long, long long>, std::pair<long long, long long>, std::_Identity<std::pair<long long, long long>>, std::less<std::pair<long long, long long>>>::_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 }

@ans = external dso_local global i64, align 8
@I = external dso_local global %"class.std::vector", align 8

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP3insSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(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(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7solvehzv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.0", align 8
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %struct.seg, align 8
  %5 = alloca %struct.seg, align 8
  %6 = alloca %struct.segset, align 8
  %7 = alloca %struct.segset, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %10 = call ptr @_ZNSt6vectorI3insSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @I) #5
  store ptr %10, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %11 = call ptr @_ZNSt6vectorI3insSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @I) #5
  store ptr %11, ptr %3, align 8
  %12 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3insSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %13 = getelementptr inbounds i8, ptr %5, i64 8
  %14 = getelementptr inbounds i8, ptr %5, i64 16
  %15 = getelementptr inbounds i8, ptr %5, i64 24
  %16 = getelementptr inbounds i8, ptr %5, i64 32
  %17 = getelementptr inbounds i8, ptr %4, i64 8
  %18 = getelementptr inbounds i8, ptr %4, i64 16
  %19 = getelementptr inbounds i8, ptr %4, i64 24
  %20 = getelementptr inbounds i8, ptr %4, i64 32
  br label %23

._crit_edge:                                      ; preds = %34, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %21 = call ptr @_ZNSt6vectorI3segSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %22 = call ptr @_ZNSt6vectorI3segSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  invoke void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solvehzvE3$_0EvT_S9_T0_"(ptr %21, ptr %22)
          to label %43 unwind label %46

23:                                               ; preds = %.lr.ph, %34
  %.070 = phi i64 [ 0, %.lr.ph ], [ %.2, %34 ]
  %.04869 = phi i64 [ 0, %.lr.ph ], [ %.250, %34 ]
  %.05368 = phi i64 [ 0, %.lr.ph ], [ %39, %34 ]
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %.sroa.028.0.copyload = load i8, ptr %24, align 8, !tbaa !5
  %.sroa.832.0..sroa_idx = getelementptr inbounds i8, ptr %24, i64 8
  %.sroa.832.0.copyload = load i64, ptr %.sroa.832.0..sroa_idx, align 8, !tbaa !8
  switch i8 %.sroa.028.0.copyload, label %34 [
    i8 76, label %25
    i8 82, label %29
  ]

25:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #5
  store i64 %.070, ptr %4, align 8, !tbaa !10
  store i64 %.04869, ptr %17, align 8, !tbaa !12
  %26 = sub nsw i64 %.04869, %.sroa.832.0.copyload
  store i64 %26, ptr %18, align 8, !tbaa !13
  store i64 0, ptr %19, align 8, !tbaa !14
  store i64 %.05368, ptr %20, align 8, !tbaa !15
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %.thread unwind label %27

.thread:                                          ; preds = %25
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  br label %34

27:                                               ; preds = %25
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #5
  br label %42

29:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  store i64 %.070, ptr %5, align 8, !tbaa !10
  store i64 %.04869, ptr %13, align 8, !tbaa !12
  %30 = add nsw i64 %.sroa.832.0.copyload, %.04869
  store i64 %30, ptr %14, align 8, !tbaa !13
  store i64 1, ptr %15, align 8, !tbaa !14
  store i64 %.05368, ptr %16, align 8, !tbaa !15
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %31 unwind label %32

31:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %34

32:                                               ; preds = %29
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %42

34:                                               ; preds = %23, %.thread, %31
  %.250 = phi i64 [ %30, %31 ], [ %26, %.thread ], [ %.04869, %23 ]
  %35 = icmp eq i8 %.sroa.028.0.copyload, 85
  %36 = select i1 %35, i64 %.sroa.832.0.copyload, i64 0
  %spec.select = add nsw i64 %36, %.070
  %37 = icmp eq i8 %.sroa.028.0.copyload, 68
  %38 = select i1 %37, i64 %.sroa.832.0.copyload, i64 0
  %.2 = sub i64 %spec.select, %38
  %39 = add nsw i64 %.sroa.832.0.copyload, %.05368
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3insSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %41 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3insSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %41, label %23, label %._crit_edge

42:                                               ; preds = %32, %27
  %.pn61 = phi { ptr, i32 } [ %33, %32 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  br label %143

43:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #5
  call void @_ZN6segsetC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #5
  call void @_ZN6segsetC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  %44 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %45 = icmp sgt i64 %44, 0
  br i1 %45, label %.lr.ph74, label %._crit_edge75

._crit_edge75:                                    ; preds = %138, %43
  call void @_ZN6segsetD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #5
  call void @_ZN6segsetD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  ret void

46:                                               ; preds = %._crit_edge
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %143

.lr.ph74:                                         ; preds = %43, %138
  %.05172 = phi i64 [ %139, %138 ], [ 0, %43 ]
  %.05271 = phi i64 [ %53, %138 ], [ -1, %43 ]
  %48 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %49 = load i64, ptr %48, align 8, !tbaa !10
  %.not = icmp eq i64 %49, %.05271
  br i1 %.not, label %51, label %50

50:                                               ; preds = %.lr.ph74
  call void @_ZN6segset5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %6)
  call void @_ZN6segset5clearEv(ptr noundef nonnull align 8 dereferenceable(48) %7)
  br label %51

51:                                               ; preds = %50, %.lr.ph74
  %52 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %53 = load i64, ptr %52, align 8, !tbaa !10
  %54 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %55 = getelementptr inbounds i8, ptr %54, i64 24
  %56 = load i64, ptr %55, align 8, !tbaa !14
  %57 = icmp eq i64 %56, 0
  %58 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %60 = load i64, ptr %59, align 8, !tbaa !13
  br i1 %57, label %61, label %98

61:                                               ; preds = %51
  %62 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load i64, ptr %63, align 8, !tbaa !12
  %65 = invoke noundef i64 @_ZN6segset4isctExx(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %60, i64 noundef %64)
          to label %66 unwind label %80

66:                                               ; preds = %61
  %67 = sitofp i64 %65 to double
  %68 = fcmp une double %67, 1.000000e+18
  br i1 %68, label %69, label %82

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %70 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %71 = getelementptr inbounds i8, ptr %70, i64 32
  %72 = load i64, ptr %71, align 8, !tbaa !15
  %73 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load i64, ptr %74, align 8, !tbaa !12
  %76 = sub i64 %72, %65
  %77 = add i64 %76, %75
  store i64 %77, ptr %8, align 8, !tbaa !8
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %79 = load i64, ptr %78, align 8, !tbaa !8
  store i64 %79, ptr @ans, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %82

80:                                               ; preds = %89, %82, %61
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %142

82:                                               ; preds = %69, %66
  %83 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  %85 = load i64, ptr %84, align 8, !tbaa !13
  %86 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %88 = load i64, ptr %87, align 8, !tbaa !12
  invoke void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %85, i64 noundef %88)
          to label %89 unwind label %80

89:                                               ; preds = %82
  %90 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load i64, ptr %91, align 8, !tbaa !12
  %93 = sub nsw i64 0, %92
  %94 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  %96 = load i64, ptr %95, align 8, !tbaa !13
  %97 = sub nsw i64 0, %96
  invoke void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48) %7, i64 noundef %93, i64 noundef %97)
          to label %138 unwind label %80

98:                                               ; preds = %51
  %99 = sub nsw i64 0, %60
  %100 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %101 = getelementptr inbounds i8, ptr %100, i64 8
  %102 = load i64, ptr %101, align 8, !tbaa !12
  %103 = sub nsw i64 0, %102
  %104 = invoke noundef i64 @_ZN6segset4isctExx(ptr noundef nonnull align 8 dereferenceable(48) %7, i64 noundef %99, i64 noundef %103)
          to label %105 unwind label %120

105:                                              ; preds = %98
  %106 = sub i64 0, %104
  %107 = sitofp i64 %106 to double
  %108 = fcmp une double %107, -1.000000e+18
  br i1 %108, label %109, label %122

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %110 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %111 = getelementptr inbounds i8, ptr %110, i64 32
  %112 = load i64, ptr %111, align 8, !tbaa !15
  %113 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %114 = getelementptr inbounds i8, ptr %113, i64 8
  %115 = load i64, ptr %114, align 8, !tbaa !12
  %116 = add i64 %104, %115
  %117 = sub i64 %112, %116
  store i64 %117, ptr %9, align 8, !tbaa !8
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %119 = load i64, ptr %118, align 8, !tbaa !8
  store i64 %119, ptr @ans, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %122

120:                                              ; preds = %129, %122, %98
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %142

122:                                              ; preds = %109, %105
  %123 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %124 = getelementptr inbounds i8, ptr %123, i64 8
  %125 = load i64, ptr %124, align 8, !tbaa !12
  %126 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %127 = getelementptr inbounds i8, ptr %126, i64 16
  %128 = load i64, ptr %127, align 8, !tbaa !13
  invoke void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48) %6, i64 noundef %125, i64 noundef %128)
          to label %129 unwind label %120

129:                                              ; preds = %122
  %130 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %131 = getelementptr inbounds i8, ptr %130, i64 16
  %132 = load i64, ptr %131, align 8, !tbaa !13
  %133 = sub nsw i64 0, %132
  %134 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI3segSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.05172) #5
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  %136 = load i64, ptr %135, align 8, !tbaa !12
  %137 = sub nsw i64 0, %136
  invoke void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48) %7, i64 noundef %133, i64 noundef %137)
          to label %138 unwind label %120

138:                                              ; preds = %129, %89
  %139 = add nuw nsw i64 %.05172, 1
  %140 = call noundef i64 @_ZNKSt6vectorI3segSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %141 = icmp slt i64 %139, %140
  br i1 %141, label %.lr.ph74, label %._crit_edge75, !llvm.loop !16

142:                                              ; preds = %120, %80
  %.pn = phi { ptr, i32 } [ %81, %80 ], [ %121, %120 ]
  call void @_ZN6segsetD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #5
  call void @_ZN6segsetD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  br label %143

143:                                              ; preds = %142, %46, %42
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %42 ], [ %.pn, %142 ], [ %47, %46 ]
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn61.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3segSt6vectorIS2_SaIS2_EEEEZ7solvehzvE3$_0EvT_S9_T0_"(ptr, ptr) local_unnamed_addr #4

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6segset4isctExx(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6segset3addExx(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef, i64 noundef) local_unnamed_addr #3 align 2

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass