; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 10/1926. The Tournament of Intelligences (main)

; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, std::pair<const long long, long long>, std::_Select1st<std::pair<const long long, long long>>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, std::pair<const long long, long long>, std::_Select1st<std::pair<const long long, long long>>, std::less<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 }
%"class.std::set" = type { %"class.std::_Rb_tree.0" }
%"class.std::_Rb_tree.0" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.4" = type { %"class.std::_Rb_tree.5" }
%"class.std::_Rb_tree.5" = type { %"struct.std::_Rb_tree<long long, std::pair<const long long, int>, std::_Select1st<std::pair<const long long, int>>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, std::pair<const long long, int>, std::_Select1st<std::pair<const long long, int>>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@SZ = external dso_local global i64, align 8
@numbers = external dso_local global [15 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %4 = alloca [100005 x i64], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::map", align 8
  %9 = alloca %"class.std::set", align 8
  %10 = alloca %"class.std::map.4", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca [100005 x i64], align 16
  %19 = alloca [100005 x i64], align 16
  %20 = alloca [100005 x i64], align 16
  %21 = alloca [100005 x i64], align 16
  %22 = alloca [100005 x i64], align 16
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca i32, align 4
  %36 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 1, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %50, %0
  %38 = load i32, ptr %3, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = load i64, ptr @SZ, align 8, !tbaa !5
  %41 = icmp slt i64 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %53

43:                                               ; preds = %37
  %44 = load i32, ptr %3, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %45
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = load i64, ptr %2, align 8, !tbaa !5
  %49 = mul nsw i64 %48, %47
  store i64 %49, ptr %2, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %43
  %51 = load i32, ptr %3, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %3, align 4, !tbaa !9
  br label %37, !llvm.loop !11

53:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 800040, ptr %4) #7
  %54 = getelementptr inbounds [100005 x i64], ptr %4, i64 0, i64 0
  store i64 1, ptr %54, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %85, %53
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = icmp slt i32 %56, 100005
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %88

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %81, %59
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 10
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %84

64:                                               ; preds = %60
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %66 = sub nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100005 x i64], ptr %4, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100005 x i64], ptr %4, i64 0, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = add nsw i64 %73, %69
  store i64 %74, ptr %72, align 8, !tbaa !5
  %75 = load i64, ptr %2, align 8, !tbaa !5
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100005 x i64], ptr %4, i64 0, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = srem i64 %79, %75
  store i64 %80, ptr %78, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %64
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %7, align 4, !tbaa !9
  br label %60, !llvm.loop !13

84:                                               ; preds = %63
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %5, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %5, align 4, !tbaa !9
  br label %55, !llvm.loop !14

88:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #7
  call void @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #7
  call void @_ZNSt3setIxSt4lessIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #7
  call void @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %89 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %90 unwind label %107

90:                                               ; preds = %88
  %91 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  %93 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %96, ptr %98)
          to label %99 unwind label %107

99:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %100 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %101 unwind label %111

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 800040, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 800040, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 800040, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 800040, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 800040, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %178, %101
  %103 = load i32, ptr %24, align 4, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !9
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %115, label %106

106:                                              ; preds = %102
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %181

107:                                              ; preds = %90, %88
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %13, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %14, align 4
  br label %409

111:                                              ; preds = %99
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %13, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %14, align 4
  br label %408

115:                                              ; preds = %102
  %116 = load i32, ptr %24, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100005 x i64], ptr %18, i64 0, i64 %117
  %119 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %118)
          to label %120 unwind label %142

120:                                              ; preds = %115
  %121 = load i32, ptr %24, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %122
  %124 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %119, ptr noundef nonnull align 8 dereferenceable(8) %123)
          to label %125 unwind label %142

125:                                              ; preds = %120
  %126 = load i32, ptr %24, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100005 x i64], ptr %18, i64 0, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !5
  %130 = icmp eq i64 %129, 1
  br i1 %130, label %131, label %146

131:                                              ; preds = %125
  %132 = load i32, ptr %24, align 4, !tbaa !9
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [100005 x i64], ptr %20, i64 0, i64 %133
  %135 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %134)
          to label %136 unwind label %142

136:                                              ; preds = %131
  %137 = load i32, ptr %24, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !5
  %141 = add nsw i64 %140, -1
  store i64 %141, ptr %139, align 8, !tbaa !5
  br label %177

142:                                              ; preds = %159, %153, %146, %131, %120, %115
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %13, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %407

146:                                              ; preds = %125
  %147 = load i32, ptr %24, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %148
  %150 = invoke noundef i64 @_ZNKSt3mapIxiSt4lessIxESaISt4pairIKxiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %149)
          to label %151 unwind label %142

151:                                              ; preds = %146
  %152 = icmp ne i64 %150, 0
  br i1 %152, label %176, label %153

153:                                              ; preds = %151
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = load i32, ptr %24, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %156
  %158 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %157)
          to label %159 unwind label %142

159:                                              ; preds = %153
  store i32 %154, ptr %158, align 4, !tbaa !9
  %160 = load i32, ptr %24, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %161
  %163 = load i64, ptr %162, align 8, !tbaa !5
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [100005 x i64], ptr %21, i64 0, i64 %165
  store i64 %163, ptr %166, align 8, !tbaa !5
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100005 x i64], ptr %22, i64 0, i64 %168
  store i64 0, ptr %169, align 8, !tbaa !5
  %170 = load i32, ptr %24, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %171
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %172)
          to label %173 unwind label %142

173:                                              ; preds = %159
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %11, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %173, %151
  br label %177

177:                                              ; preds = %176, %136
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %24, align 4, !tbaa !9
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %24, align 4, !tbaa !9
  br label %102, !llvm.loop !15

181:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %209, %181
  %183 = load i32, ptr %25, align 4, !tbaa !9
  %184 = load i32, ptr %17, align 4, !tbaa !9
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %182
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %212

187:                                              ; preds = %182
  %188 = load i32, ptr %25, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [100005 x i64], ptr %18, i64 0, i64 %189
  %191 = load i64, ptr %190, align 8, !tbaa !5
  %192 = icmp eq i64 %191, 0
  br i1 %192, label %193, label %208

193:                                              ; preds = %187
  %194 = load i32, ptr %25, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %195
  %197 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(8) %196)
          to label %198 unwind label %204

198:                                              ; preds = %193
  %199 = load i32, ptr %197, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = load i32, ptr %25, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %202
  store i64 %200, ptr %203, align 8, !tbaa !5
  br label %208

204:                                              ; preds = %193
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %13, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %407

208:                                              ; preds = %198, %187
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %25, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %25, align 4, !tbaa !9
  br label %182, !llvm.loop !16

212:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store i64 0, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %213

213:                                              ; preds = %249, %212
  %214 = load i32, ptr %27, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %217 = icmp ult i64 %215, %216
  br i1 %217, label %219, label %218

218:                                              ; preds = %213
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %252

219:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %245, %219
  %221 = load i32, ptr %28, align 4, !tbaa !9
  %222 = load i32, ptr %27, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %223)
          to label %225 unwind label %231

225:                                              ; preds = %220
  %226 = load i8, ptr %224, align 1, !tbaa !17
  %227 = sext i8 %226 to i32
  %228 = sub nsw i32 %227, 48
  %229 = icmp slt i32 %221, %228
  br i1 %229, label %235, label %230

230:                                              ; preds = %225
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %248

231:                                              ; preds = %220
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %13, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %406

235:                                              ; preds = %225
  %236 = load i32, ptr %27, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [100005 x i64], ptr %4, i64 0, i64 %237
  %239 = load i64, ptr %238, align 8, !tbaa !5
  %240 = load i64, ptr %26, align 8, !tbaa !5
  %241 = add nsw i64 %240, %239
  store i64 %241, ptr %26, align 8, !tbaa !5
  %242 = load i64, ptr %2, align 8, !tbaa !5
  %243 = load i64, ptr %26, align 8, !tbaa !5
  %244 = srem i64 %243, %242
  store i64 %244, ptr %26, align 8, !tbaa !5
  br label %245

245:                                              ; preds = %235
  %246 = load i32, ptr %28, align 4, !tbaa !9
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %28, align 4, !tbaa !9
  br label %220, !llvm.loop !18

248:                                              ; preds = %230
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %27, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %27, align 4, !tbaa !9
  br label %213, !llvm.loop !19

252:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %253

253:                                              ; preds = %268, %252
  %254 = load i32, ptr %29, align 4, !tbaa !9
  %255 = load i32, ptr %11, align 4, !tbaa !9
  %256 = icmp slt i32 %254, %255
  br i1 %256, label %258, label %257

257:                                              ; preds = %253
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %271

258:                                              ; preds = %253
  %259 = load i64, ptr %26, align 8, !tbaa !5
  %260 = load i32, ptr %29, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [100005 x i64], ptr %21, i64 0, i64 %261
  %263 = load i64, ptr %262, align 8, !tbaa !5
  %264 = srem i64 %259, %263
  %265 = load i32, ptr %29, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [100005 x i64], ptr %22, i64 0, i64 %266
  store i64 %264, ptr %267, align 8, !tbaa !5
  br label %268

268:                                              ; preds = %258
  %269 = load i32, ptr %29, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %29, align 4, !tbaa !9
  br label %253, !llvm.loop !20

271:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %400, %271
  %273 = load i32, ptr %30, align 4, !tbaa !9
  %274 = load i32, ptr %17, align 4, !tbaa !9
  %275 = icmp slt i32 %273, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %272
  store i32 26, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %404

277:                                              ; preds = %272
  %278 = load i32, ptr %30, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [100005 x i64], ptr %18, i64 0, i64 %279
  %281 = load i64, ptr %280, align 8, !tbaa !5
  %282 = icmp eq i64 %281, 0
  br i1 %282, label %283, label %298

283:                                              ; preds = %277
  %284 = load i32, ptr %30, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %285
  %287 = load i64, ptr %286, align 8, !tbaa !5
  %288 = getelementptr inbounds [100005 x i64], ptr %22, i64 0, i64 %287
  %289 = load i64, ptr %288, align 8, !tbaa !5
  %290 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %289)
          to label %291 unwind label %294

291:                                              ; preds = %283
  %292 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %290, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %293 unwind label %294

293:                                              ; preds = %291
  br label %399

294:                                              ; preds = %291, %283
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %13, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %14, align 4
  br label %403

298:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store i64 0, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %299 = load i32, ptr %30, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [100005 x i64], ptr %20, i64 0, i64 %300
  %302 = load i64, ptr %301, align 8, !tbaa !5
  %303 = add nsw i64 %302, 48
  %304 = trunc i64 %303 to i8
  %305 = sext i8 %304 to i32
  %306 = load i32, ptr %30, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %307
  %309 = load i64, ptr %308, align 8, !tbaa !5
  %310 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %309)
          to label %311 unwind label %333

311:                                              ; preds = %298
  %312 = load i8, ptr %310, align 1, !tbaa !17
  %313 = sext i8 %312 to i32
  %314 = sub nsw i32 %305, %313
  store i32 %314, ptr %32, align 4, !tbaa !9
  %315 = load i32, ptr %30, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [100005 x i64], ptr %20, i64 0, i64 %316
  %318 = load i64, ptr %317, align 8, !tbaa !5
  %319 = add nsw i64 %318, 48
  %320 = trunc i64 %319 to i8
  %321 = load i32, ptr %30, align 4, !tbaa !9
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %322
  %324 = load i64, ptr %323, align 8, !tbaa !5
  %325 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %324)
          to label %326 unwind label %333

326:                                              ; preds = %311
  store i8 %320, ptr %325, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %327

327:                                              ; preds = %349, %326
  %328 = load i32, ptr %33, align 4, !tbaa !9
  %329 = load i32, ptr %32, align 4, !tbaa !9
  %330 = call i32 @llvm.abs.i32(i32 %329, i1 true)
  %331 = icmp slt i32 %328, %330
  br i1 %331, label %337, label %332

332:                                              ; preds = %327
  store i32 29, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %352

333:                                              ; preds = %311, %298
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %13, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %403

337:                                              ; preds = %327
  %338 = load i32, ptr %30, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [100005 x i64], ptr %19, i64 0, i64 %339
  %341 = load i64, ptr %340, align 8, !tbaa !5
  %342 = getelementptr inbounds [100005 x i64], ptr %4, i64 0, i64 %341
  %343 = load i64, ptr %342, align 8, !tbaa !5
  %344 = load i64, ptr %31, align 8, !tbaa !5
  %345 = add nsw i64 %344, %343
  store i64 %345, ptr %31, align 8, !tbaa !5
  %346 = load i64, ptr %2, align 8, !tbaa !5
  %347 = load i64, ptr %31, align 8, !tbaa !5
  %348 = srem i64 %347, %346
  store i64 %348, ptr %31, align 8, !tbaa !5
  br label %349

349:                                              ; preds = %337
  %350 = load i32, ptr %33, align 4, !tbaa !9
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %33, align 4, !tbaa !9
  br label %327, !llvm.loop !21

352:                                              ; preds = %332
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store i64 1, ptr %34, align 8, !tbaa !5
  %353 = load i32, ptr %32, align 4, !tbaa !9
  %354 = icmp slt i32 %353, 0
  br i1 %354, label %355, label %358

355:                                              ; preds = %352
  %356 = load i64, ptr %34, align 8, !tbaa !5
  %357 = sub nsw i64 0, %356
  store i64 %357, ptr %34, align 8, !tbaa !5
  br label %358

358:                                              ; preds = %355, %352
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %359

359:                                              ; preds = %395, %358
  %360 = load i32, ptr %35, align 4, !tbaa !9
  %361 = load i32, ptr %11, align 4, !tbaa !9
  %362 = icmp slt i32 %360, %361
  br i1 %362, label %364, label %363

363:                                              ; preds = %359
  store i32 32, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %398

364:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %365 = load i32, ptr %35, align 4, !tbaa !9
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [100005 x i64], ptr %22, i64 0, i64 %366
  %368 = load i64, ptr %367, align 8, !tbaa !5
  store i64 %368, ptr %36, align 8, !tbaa !5
  %369 = load i64, ptr %34, align 8, !tbaa !5
  %370 = load i64, ptr %31, align 8, !tbaa !5
  %371 = mul nsw i64 %369, %370
  %372 = load i64, ptr %36, align 8, !tbaa !5
  %373 = add nsw i64 %372, %371
  store i64 %373, ptr %36, align 8, !tbaa !5
  %374 = load i32, ptr %35, align 4, !tbaa !9
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds [100005 x i64], ptr %21, i64 0, i64 %375
  %377 = load i64, ptr %376, align 8, !tbaa !5
  %378 = load i64, ptr %36, align 8, !tbaa !5
  %379 = srem i64 %378, %377
  store i64 %379, ptr %36, align 8, !tbaa !5
  br label %380

380:                                              ; preds = %383, %364
  %381 = load i64, ptr %36, align 8, !tbaa !5
  %382 = icmp slt i64 %381, 0
  br i1 %382, label %383, label %390

383:                                              ; preds = %380
  %384 = load i32, ptr %35, align 4, !tbaa !9
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds [100005 x i64], ptr %21, i64 0, i64 %385
  %387 = load i64, ptr %386, align 8, !tbaa !5
  %388 = load i64, ptr %36, align 8, !tbaa !5
  %389 = add nsw i64 %388, %387
  store i64 %389, ptr %36, align 8, !tbaa !5
  br label %380, !llvm.loop !22

390:                                              ; preds = %380
  %391 = load i64, ptr %36, align 8, !tbaa !5
  %392 = load i32, ptr %35, align 4, !tbaa !9
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [100005 x i64], ptr %22, i64 0, i64 %393
  store i64 %391, ptr %394, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %395

395:                                              ; preds = %390
  %396 = load i32, ptr %35, align 4, !tbaa !9
  %397 = add nsw i32 %396, 1
  store i32 %397, ptr %35, align 4, !tbaa !9
  br label %359, !llvm.loop !23

398:                                              ; preds = %363
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %399

399:                                              ; preds = %398, %293
  br label %400

400:                                              ; preds = %399
  %401 = load i32, ptr %30, align 4, !tbaa !9
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %30, align 4, !tbaa !9
  br label %272, !llvm.loop !24

403:                                              ; preds = %333, %294
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %406

404:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @_ZNSt3setIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #7
  call void @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %405 = load i32, ptr %1, align 4
  ret i32 %405

406:                                              ; preds = %403, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %407

407:                                              ; preds = %406, %204, %142
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %18) #7
  br label %408

408:                                              ; preds = %407, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %409

409:                                              ; preds = %408, %107
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @_ZNSt3setIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #7
  call void @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 800040, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %410

410:                                              ; preds = %409
  %411 = load ptr, ptr %13, align 8
  %412 = load i32, ptr %14, align 4
  %413 = insertvalue { ptr, i32 } poison, ptr %411, 0
  %414 = insertvalue { ptr, i32 } %413, i32 %412, 1
  resume { ptr, i32 } %414
}

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) #4

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

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

attributes #0 = { mustprogress norecurse 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 = { "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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}


; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<long long, std::pair<const long long, long long>, std::_Select1st<std::pair<const long long, long long>>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, std::pair<const long long, long long>, std::_Select1st<std::pair<const long long, long long>>, std::less<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 }
%"class.std::set" = type { %"class.std::_Rb_tree.0" }
%"class.std::_Rb_tree.0" = type { %"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, long long, std::_Identity<long long>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::map.4" = type { %"class.std::_Rb_tree.5" }
%"class.std::_Rb_tree.5" = type { %"struct.std::_Rb_tree<long long, std::pair<const long long, int>, std::_Select1st<std::pair<const long long, int>>, std::less<long long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<long long, std::pair<const long long, int>, std::_Select1st<std::pair<const long long, int>>, std::less<long long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@SZ = external dso_local local_unnamed_addr global i64, align 8
@numbers = external dso_local local_unnamed_addr global [15 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [100005 x i64], align 16
  %2 = alloca %"class.std::map", align 8
  %3 = alloca %"class.std::set", align 8
  %4 = alloca %"class.std::map.4", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca i32, align 4
  %7 = alloca [100005 x i64], align 16
  %8 = alloca [100005 x i64], align 16
  %9 = alloca [100005 x i64], align 16
  %10 = alloca [100005 x i64], align 16
  %11 = alloca [100005 x i64], align 16
  %12 = alloca %"class.std::vector", align 8
  %13 = load i64, ptr @SZ, align 8, !tbaa !5
  %14 = icmp sgt i64 %13, 0
  br i1 %14, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %xtraiter = and i64 %13, 7
  %15 = icmp ult i64 %13, 8
  br i1 %15, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %13, 9223372036854775800
  br label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa192.ph = phi i64 [ poison, %.lr.ph.preheader ], [ %42, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.7, %.lr.ph ]
  %.084115.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %42, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.084115.epil = phi i64 [ %18, %.lr.ph.epil ], [ %.084115.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %16 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv.epil
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = mul nsw i64 %17, %.084115.epil
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !9

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %0
  %.084.lcssa = phi i64 [ 1, %0 ], [ %.lcssa192.ph, %._crit_edge.loopexit.unr-lcssa ], [ %18, %.lr.ph.epil ]
  call void @llvm.lifetime.start.p0(i64 800040, ptr nonnull %1) #8
  store i64 1, ptr %1, align 16, !tbaa !5
  br label %.preheader112

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.7, %.lr.ph ]
  %.084115 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %42, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %19 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv
  %20 = load i64, ptr %19, align 16, !tbaa !5
  %21 = mul nsw i64 %20, %.084115
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %22 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv.next
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = mul nsw i64 %23, %21
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %25 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv.next.1
  %26 = load i64, ptr %25, align 16, !tbaa !5
  %27 = mul nsw i64 %26, %24
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %28 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv.next.2
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = mul nsw i64 %29, %27
  %indvars.iv.next.3 = or disjoint i64 %indvars.iv, 4
  %31 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv.next.3
  %32 = load i64, ptr %31, align 16, !tbaa !5
  %33 = mul nsw i64 %32, %30
  %indvars.iv.next.4 = or disjoint i64 %indvars.iv, 5
  %34 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv.next.4
  %35 = load i64, ptr %34, align 8, !tbaa !5
  %36 = mul nsw i64 %35, %33
  %indvars.iv.next.5 = or disjoint i64 %indvars.iv, 6
  %37 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv.next.5
  %38 = load i64, ptr %37, align 16, !tbaa !5
  %39 = mul nsw i64 %38, %36
  %indvars.iv.next.6 = or disjoint i64 %indvars.iv, 7
  %40 = getelementptr inbounds [15 x i64], ptr @numbers, i64 0, i64 %indvars.iv.next.6
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = mul nsw i64 %41, %39
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !11

.preheader112:                                    ; preds = %._crit_edge, %.preheader112
  %43 = phi i64 [ 1, %._crit_edge ], [ %64, %.preheader112 ]
  %indvars.iv154 = phi i64 [ 1, %._crit_edge ], [ %indvars.iv.next155, %.preheader112 ]
  %44 = getelementptr inbounds [100005 x i64], ptr %1, i64 0, i64 %indvars.iv154
  %.promoted = load i64, ptr %44, align 8, !tbaa !5
  %45 = add nsw i64 %.promoted, %43
  %46 = srem i64 %45, %.084.lcssa
  %47 = add nsw i64 %46, %43
  %48 = srem i64 %47, %.084.lcssa
  %49 = add nsw i64 %48, %43
  %50 = srem i64 %49, %.084.lcssa
  %51 = add nsw i64 %50, %43
  %52 = srem i64 %51, %.084.lcssa
  %53 = add nsw i64 %52, %43
  %54 = srem i64 %53, %.084.lcssa
  %55 = add nsw i64 %54, %43
  %56 = srem i64 %55, %.084.lcssa
  %57 = add nsw i64 %56, %43
  %58 = srem i64 %57, %.084.lcssa
  %59 = add nsw i64 %58, %43
  %60 = srem i64 %59, %.084.lcssa
  %61 = add nsw i64 %60, %43
  %62 = srem i64 %61, %.084.lcssa
  %63 = add nsw i64 %62, %43
  %64 = srem i64 %63, %.084.lcssa
  store i64 %64, ptr %44, align 8, !tbaa !5
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %exitcond157.not = icmp eq i64 %indvars.iv.next155, 100005
  br i1 %exitcond157.not, label %65, label %.preheader112, !llvm.loop !13

65:                                               ; preds = %.preheader112
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #8
  call void @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #8
  call void @_ZNSt3setIxSt4lessIxESaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #8
  call void @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %67 unwind label %76

67:                                               ; preds = %65
  %68 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %69 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %68, ptr %69)
          to label %70 unwind label %76

70:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %71 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %72 unwind label %78

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 800040, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 800040, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 800040, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 800040, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 800040, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  %73 = load i32, ptr %6, align 4, !tbaa !14
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.lr.ph121, label %.preheader110

.preheader111:                                    ; preds = %108
  %75 = icmp sgt i32 %109, 0
  br i1 %75, label %.lr.ph124, label %.preheader110

76:                                               ; preds = %67, %65
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %228

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

.lr.ph121:                                        ; preds = %72, %108
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %108 ], [ 0, %72 ]
  %.0100118 = phi i32 [ %.1101, %108 ], [ 0, %72 ]
  %80 = getelementptr inbounds [100005 x i64], ptr %7, i64 0, i64 %indvars.iv158
  %81 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %80)
          to label %82 unwind label %94

82:                                               ; preds = %.lr.ph121
  %83 = getelementptr inbounds [100005 x i64], ptr %8, i64 0, i64 %indvars.iv158
  %84 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %81, ptr noundef nonnull align 8 dereferenceable(8) %83)
          to label %85 unwind label %94

85:                                               ; preds = %82
  %86 = load i64, ptr %80, align 8, !tbaa !5
  %87 = icmp eq i64 %86, 1
  br i1 %87, label %88, label %96

88:                                               ; preds = %85
  %89 = getelementptr inbounds [100005 x i64], ptr %9, i64 0, i64 %indvars.iv158
  %90 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %89)
          to label %91 unwind label %94

91:                                               ; preds = %88
  %92 = load i64, ptr %83, align 8, !tbaa !5
  %93 = add nsw i64 %92, -1
  store i64 %93, ptr %83, align 8, !tbaa !5
  br label %108

94:                                               ; preds = %101, %99, %96, %88, %82, %.lr.ph121
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %226

96:                                               ; preds = %85
  %97 = invoke noundef i64 @_ZNKSt3mapIxiSt4lessIxESaISt4pairIKxiEEE5countERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %83)
          to label %98 unwind label %94

98:                                               ; preds = %96
  %.not = icmp eq i64 %97, 0
  br i1 %.not, label %99, label %108

99:                                               ; preds = %98
  %100 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %83)
          to label %101 unwind label %94

101:                                              ; preds = %99
  store i32 %.0100118, ptr %100, align 4, !tbaa !14
  %102 = load i64, ptr %83, align 8, !tbaa !5
  %103 = sext i32 %.0100118 to i64
  %104 = getelementptr inbounds [100005 x i64], ptr %10, i64 0, i64 %103
  store i64 %102, ptr %104, align 8, !tbaa !5
  %105 = getelementptr inbounds [100005 x i64], ptr %11, i64 0, i64 %103
  store i64 0, ptr %105, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(8) %83)
          to label %106 unwind label %94

106:                                              ; preds = %101
  %107 = add nsw i32 %.0100118, 1
  br label %108

108:                                              ; preds = %91, %106, %98
  %.1101 = phi i32 [ %.0100118, %91 ], [ %.0100118, %98 ], [ %107, %106 ]
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %109 = load i32, ptr %6, align 4, !tbaa !14
  %110 = sext i32 %109 to i64
  %111 = icmp slt i64 %indvars.iv.next159, %110
  br i1 %111, label %.lr.ph121, label %.preheader111, !llvm.loop !16

.preheader110:                                    ; preds = %125, %72, %.preheader111
  %.0100.lcssa183 = phi i32 [ %.1101, %.preheader111 ], [ 0, %72 ], [ %.1101, %125 ]
  %112 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %.not147 = icmp eq i64 %112, 0
  br i1 %.not147, label %.preheader108, label %.preheader109

.lr.ph124:                                        ; preds = %.preheader111, %125
  %113 = phi i32 [ %126, %125 ], [ %109, %.preheader111 ]
  %indvars.iv161 = phi i64 [ %indvars.iv.next162, %125 ], [ 0, %.preheader111 ]
  %114 = getelementptr inbounds [100005 x i64], ptr %7, i64 0, i64 %indvars.iv161
  %115 = load i64, ptr %114, align 8, !tbaa !5
  %116 = icmp eq i64 %115, 0
  br i1 %116, label %117, label %125

117:                                              ; preds = %.lr.ph124
  %118 = getelementptr inbounds [100005 x i64], ptr %8, i64 0, i64 %indvars.iv161
  %119 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %118)
          to label %120 unwind label %123

120:                                              ; preds = %117
  %121 = load i32, ptr %119, align 4, !tbaa !14
  %122 = sext i32 %121 to i64
  store i64 %122, ptr %118, align 8, !tbaa !5
  %.pre = load i32, ptr %6, align 4, !tbaa !14
  br label %125

123:                                              ; preds = %117
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %226

125:                                              ; preds = %.lr.ph124, %120
  %126 = phi i32 [ %113, %.lr.ph124 ], [ %.pre, %120 ]
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %127 = sext i32 %126 to i64
  %128 = icmp slt i64 %indvars.iv.next162, %127
  br i1 %128, label %.lr.ph124, label %.preheader110, !llvm.loop !17

.preheader109:                                    ; preds = %.preheader110, %._crit_edge128
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %._crit_edge128 ], [ 0, %.preheader110 ]
  %.090130 = phi i64 [ %.1.lcssa, %._crit_edge128 ], [ 0, %.preheader110 ]
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %indvars.iv164)
  %130 = load i8, ptr %129, align 1, !tbaa !18
  %131 = icmp sgt i8 %130, 48
  br i1 %131, label %.lr.ph127, label %._crit_edge128

.lr.ph127:                                        ; preds = %.preheader109
  %132 = getelementptr inbounds [100005 x i64], ptr %1, i64 0, i64 %indvars.iv164
  %133 = load i64, ptr %132, align 8, !tbaa !5
  br label %138

.preheader108:                                    ; preds = %._crit_edge128, %.preheader110
  %.090.lcssa = phi i64 [ 0, %.preheader110 ], [ %.1.lcssa, %._crit_edge128 ]
  %134 = icmp sgt i32 %.0100.lcssa183, 0
  br i1 %134, label %.lr.ph134.preheader, label %.preheader

.lr.ph134.preheader:                              ; preds = %.preheader108
  %wide.trip.count = zext nneg i32 %.0100.lcssa183 to i64
  %xtraiter194 = and i64 %wide.trip.count, 1
  %135 = icmp eq i32 %.0100.lcssa183, 1
  br i1 %135, label %.preheader.loopexit.unr-lcssa, label %.lr.ph134.preheader.new

.lr.ph134.preheader.new:                          ; preds = %.lr.ph134.preheader
  %unroll_iter197 = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph134

._crit_edge128:                                   ; preds = %138, %.preheader109
  %.1.lcssa = phi i64 [ %.090130, %.preheader109 ], [ %140, %138 ]
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %136 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %137 = icmp ugt i64 %136, %indvars.iv.next165
  br i1 %137, label %.preheader109, label %.preheader108, !llvm.loop !19

138:                                              ; preds = %.lr.ph127, %138
  %.088126 = phi i32 [ 0, %.lr.ph127 ], [ %141, %138 ]
  %.1125 = phi i64 [ %.090130, %.lr.ph127 ], [ %140, %138 ]
  %139 = add nsw i64 %133, %.1125
  %140 = srem i64 %139, %.084.lcssa
  %141 = add nuw nsw i32 %.088126, 1
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %indvars.iv164)
  %143 = load i8, ptr %142, align 1, !tbaa !18
  %144 = sext i8 %143 to i32
  %145 = add nsw i32 %144, -48
  %146 = icmp slt i32 %141, %145
  br i1 %146, label %138, label %._crit_edge128, !llvm.loop !20

.preheader.loopexit.unr-lcssa:                    ; preds = %.lr.ph134, %.lr.ph134.preheader
  %indvars.iv167.unr = phi i64 [ 0, %.lr.ph134.preheader ], [ %indvars.iv.next168.1, %.lr.ph134 ]
  %lcmp.mod196.not = icmp eq i64 %xtraiter194, 0
  br i1 %lcmp.mod196.not, label %.preheader, label %.lr.ph134.epil

.lr.ph134.epil:                                   ; preds = %.preheader.loopexit.unr-lcssa
  %147 = getelementptr inbounds [100005 x i64], ptr %10, i64 0, i64 %indvars.iv167.unr
  %148 = load i64, ptr %147, align 8, !tbaa !5
  %149 = srem i64 %.090.lcssa, %148
  %150 = getelementptr inbounds [100005 x i64], ptr %11, i64 0, i64 %indvars.iv167.unr
  store i64 %149, ptr %150, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph134.epil, %.preheader.loopexit.unr-lcssa, %.preheader108
  %151 = load i32, ptr %6, align 4, !tbaa !14
  %152 = icmp sgt i32 %151, 0
  br i1 %152, label %.lr.ph145, label %._crit_edge146

.lr.ph145:                                        ; preds = %.preheader
  %wide.trip.count177 = zext nneg i32 %.0100.lcssa183 to i64
  br label %161

.lr.ph134:                                        ; preds = %.lr.ph134, %.lr.ph134.preheader.new
  %indvars.iv167 = phi i64 [ 0, %.lr.ph134.preheader.new ], [ %indvars.iv.next168.1, %.lr.ph134 ]
  %niter198 = phi i64 [ 0, %.lr.ph134.preheader.new ], [ %niter198.next.1, %.lr.ph134 ]
  %153 = getelementptr inbounds [100005 x i64], ptr %10, i64 0, i64 %indvars.iv167
  %154 = load i64, ptr %153, align 16, !tbaa !5
  %155 = srem i64 %.090.lcssa, %154
  %156 = getelementptr inbounds [100005 x i64], ptr %11, i64 0, i64 %indvars.iv167
  store i64 %155, ptr %156, align 16, !tbaa !5
  %indvars.iv.next168 = or disjoint i64 %indvars.iv167, 1
  %157 = getelementptr inbounds [100005 x i64], ptr %10, i64 0, i64 %indvars.iv.next168
  %158 = load i64, ptr %157, align 8, !tbaa !5
  %159 = srem i64 %.090.lcssa, %158
  %160 = getelementptr inbounds [100005 x i64], ptr %11, i64 0, i64 %indvars.iv.next168
  store i64 %159, ptr %160, align 8, !tbaa !5
  %indvars.iv.next168.1 = add nuw nsw i64 %indvars.iv167, 2
  %niter198.next.1 = add i64 %niter198, 2
  %niter198.ncmp.1 = icmp eq i64 %niter198.next.1, %unroll_iter197
  br i1 %niter198.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %.lr.ph134, !llvm.loop !21

._crit_edge146:                                   ; preds = %.loopexit, %.preheader
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #8
  call void @_ZNSt3setIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #8
  call void @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %1) #8
  ret i32 0

161:                                              ; preds = %.lr.ph145, %.loopexit
  %indvars.iv179 = phi i64 [ 0, %.lr.ph145 ], [ %indvars.iv.next180, %.loopexit ]
  %162 = getelementptr inbounds [100005 x i64], ptr %7, i64 0, i64 %indvars.iv179
  %163 = load i64, ptr %162, align 8, !tbaa !5
  %164 = icmp eq i64 %163, 0
  br i1 %164, label %165, label %175

165:                                              ; preds = %161
  %166 = getelementptr inbounds [100005 x i64], ptr %8, i64 0, i64 %indvars.iv179
  %167 = load i64, ptr %166, align 8, !tbaa !5
  %168 = getelementptr inbounds [100005 x i64], ptr %11, i64 0, i64 %167
  %169 = load i64, ptr %168, align 8, !tbaa !5
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %169)
          to label %171 unwind label %173

171:                                              ; preds = %165
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit unwind label %173

173:                                              ; preds = %171, %165
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %226

175:                                              ; preds = %161
  %176 = getelementptr inbounds [100005 x i64], ptr %9, i64 0, i64 %indvars.iv179
  %177 = load i64, ptr %176, align 8, !tbaa !5
  %178 = trunc i64 %177 to i32
  %179 = shl i32 %178, 24
  %sext = add i32 %179, 805306368
  %180 = ashr exact i32 %sext, 24
  %181 = getelementptr inbounds [100005 x i64], ptr %8, i64 0, i64 %indvars.iv179
  %182 = load i64, ptr %181, align 8, !tbaa !5
  %183 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %182)
  %184 = load i8, ptr %183, align 1, !tbaa !18
  %185 = sext i8 %184 to i32
  %186 = sub nsw i32 %180, %185
  %187 = load i64, ptr %176, align 8, !tbaa !5
  %188 = trunc i64 %187 to i8
  %189 = add i8 %188, 48
  %190 = load i64, ptr %181, align 8, !tbaa !5
  %191 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %190)
  store i8 %189, ptr %191, align 1, !tbaa !18
  %.not148 = icmp eq i32 %180, %185
  br i1 %.not148, label %._crit_edge139, label %.lr.ph138

.lr.ph138:                                        ; preds = %175
  %192 = load i64, ptr %181, align 8, !tbaa !5
  %193 = getelementptr inbounds [100005 x i64], ptr %1, i64 0, i64 %192
  %194 = load i64, ptr %193, align 8, !tbaa !5
  %smax = call i32 @llvm.abs.i32(i32 %186, i1 true)
  %umax = call i32 @llvm.umax.i32(i32 %smax, i32 1)
  %xtraiter199 = and i32 %umax, 3
  %195 = icmp ult i32 %smax, 4
  br i1 %195, label %._crit_edge139.loopexit.unr-lcssa, label %.lr.ph138.new

.lr.ph138.new:                                    ; preds = %.lr.ph138
  %unroll_iter203 = and i32 %umax, 2147483644
  br label %201

._crit_edge139.loopexit.unr-lcssa:                ; preds = %201, %.lr.ph138
  %.lcssa.ph = phi i64 [ poison, %.lr.ph138 ], [ %209, %201 ]
  %.085135.unr = phi i64 [ 0, %.lr.ph138 ], [ %209, %201 ]
  %lcmp.mod201.not = icmp eq i32 %xtraiter199, 0
  br i1 %lcmp.mod201.not, label %._crit_edge139, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge139.loopexit.unr-lcssa, %.epil.preheader
  %.085135.epil = phi i64 [ %197, %.epil.preheader ], [ %.085135.unr, %._crit_edge139.loopexit.unr-lcssa ]
  %epil.iter200 = phi i32 [ %epil.iter200.next, %.epil.preheader ], [ 0, %._crit_edge139.loopexit.unr-lcssa ]
  %196 = add nsw i64 %194, %.085135.epil
  %197 = srem i64 %196, %.084.lcssa
  %epil.iter200.next = add i32 %epil.iter200, 1
  %epil.iter200.cmp.not = icmp eq i32 %epil.iter200.next, %xtraiter199
  br i1 %epil.iter200.cmp.not, label %._crit_edge139, label %.epil.preheader, !llvm.loop !22

._crit_edge139:                                   ; preds = %._crit_edge139.loopexit.unr-lcssa, %.epil.preheader, %175
  %.085.lcssa = phi i64 [ 0, %175 ], [ %.lcssa.ph, %._crit_edge139.loopexit.unr-lcssa ], [ %197, %.epil.preheader ]
  br i1 %134, label %.lr.ph143, label %.loopexit

.lr.ph143:                                        ; preds = %._crit_edge139
  %198 = icmp slt i32 %186, 0
  %199 = sub nsw i64 0, %.085.lcssa
  %200 = select i1 %198, i64 %199, i64 %.085.lcssa
  br label %210

201:                                              ; preds = %201, %.lr.ph138.new
  %.085135 = phi i64 [ 0, %.lr.ph138.new ], [ %209, %201 ]
  %niter204 = phi i32 [ 0, %.lr.ph138.new ], [ %niter204.next.3, %201 ]
  %202 = add nsw i64 %194, %.085135
  %203 = srem i64 %202, %.084.lcssa
  %204 = add nsw i64 %194, %203
  %205 = srem i64 %204, %.084.lcssa
  %206 = add nsw i64 %194, %205
  %207 = srem i64 %206, %.084.lcssa
  %208 = add nsw i64 %194, %207
  %209 = srem i64 %208, %.084.lcssa
  %niter204.next.3 = add i32 %niter204, 4
  %niter204.ncmp.3 = icmp eq i32 %niter204.next.3, %unroll_iter203
  br i1 %niter204.ncmp.3, label %._crit_edge139.loopexit.unr-lcssa, label %201, !llvm.loop !23

210:                                              ; preds = %.lr.ph143, %210
  %indvars.iv174 = phi i64 [ 0, %.lr.ph143 ], [ %indvars.iv.next175, %210 ]
  %211 = getelementptr inbounds [100005 x i64], ptr %11, i64 0, i64 %indvars.iv174
  %212 = load i64, ptr %211, align 8, !tbaa !5
  %213 = add nsw i64 %212, %200
  %214 = getelementptr inbounds [100005 x i64], ptr %10, i64 0, i64 %indvars.iv174
  %215 = load i64, ptr %214, align 8, !tbaa !5
  %216 = srem i64 %213, %215
  %smax172 = call i64 @llvm.smax.i64(i64 %216, i64 0)
  %.lobit = lshr i64 %216, 63
  %217 = add i64 %216, %.lobit
  %218 = sub i64 %smax172, %217
  %umax173 = call i64 @llvm.umax.i64(i64 %215, i64 1)
  %219 = udiv i64 %218, %umax173
  %220 = add i64 %.lobit, %219
  %221 = mul i64 %215, %220
  %222 = add i64 %216, %221
  store i64 %222, ptr %211, align 8, !tbaa !5
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next175, %wide.trip.count177
  br i1 %exitcond178.not, label %.loopexit, label %210, !llvm.loop !24

.loopexit:                                        ; preds = %210, %._crit_edge139, %171
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %223 = load i32, ptr %6, align 4, !tbaa !14
  %224 = sext i32 %223 to i64
  %225 = icmp slt i64 %indvars.iv.next180, %224
  br i1 %225, label %161, label %._crit_edge146, !llvm.loop !25

226:                                              ; preds = %173, %123, %94
  %.pn = phi { ptr, i32 } [ %95, %94 ], [ %124, %123 ], [ %174, %173 ]
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %7) #8
  br label %227

227:                                              ; preds = %226, %78
  %.pn.pn = phi { ptr, i32 } [ %.pn, %226 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %228

228:                                              ; preds = %227, %76
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %227 ], [ %77, %76 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZNSt3mapIxiSt4lessIxESaISt4pairIKxiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #8
  call void @_ZNSt3setIxSt4lessIxESaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #8
  call void @_ZNSt3mapIxxSt4lessIxESaISt4pairIKxxEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %2) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 800040, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) local_unnamed_addr #4

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #7

attributes #0 = { mustprogress norecurse 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 = { "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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


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