; LLVM IR from eyangch/competitive-programming :: USACOtraining/3.2 (spin)

; 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" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [5 x %"struct.std::pair"], align 16
  %3 = alloca [5 x %"class.std::vector"], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 4
  %11 = alloca i32, align 4
  %12 = alloca [360 x i32], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"struct.std::pair", align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i8, align 1
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %27 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %28 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %30
  %32 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  %33 = load ptr, ptr @stdin, align 8, !tbaa !8
  %34 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %33)
  %35 = load ptr, ptr @stdout, align 8, !tbaa !8
  %36 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %35)
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #8
  %37 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %2, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.std::pair", ptr %37, i64 5
  br label %39

39:                                               ; preds = %39, %0
  %40 = phi ptr [ %37, %0 ], [ %41, %39 ]
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %40)
  %41 = getelementptr inbounds %"struct.std::pair", ptr %40, i64 1
  %42 = icmp eq ptr %41, %38
  br i1 %42, label %43, label %39

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 120, ptr %3) #8
  %44 = getelementptr inbounds [5 x %"class.std::vector"], ptr %3, i32 0, i32 0
  %45 = getelementptr inbounds %"class.std::vector", ptr %44, i64 5
  br label %46

46:                                               ; preds = %46, %43
  %47 = phi ptr [ %44, %43 ], [ %48, %46 ]
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %47) #8
  %48 = getelementptr inbounds %"class.std::vector", ptr %47, i64 1
  %49 = icmp eq ptr %48, %45
  br i1 %49, label %50, label %46

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %51

51:                                               ; preds = %101, %50
  %52 = load i32, ptr %4, align 4, !tbaa !11
  %53 = icmp slt i32 %52, 5
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %106

55:                                               ; preds = %51
  %56 = load i32, ptr %4, align 4, !tbaa !11
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %2, i64 0, i64 %57
  %59 = getelementptr inbounds %"struct.std::pair", ptr %58, i32 0, i32 1
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %59)
          to label %61 unwind label %73

61:                                               ; preds = %55
  %62 = load i32, ptr %4, align 4, !tbaa !11
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %2, i64 0, i64 %63
  %65 = getelementptr inbounds %"struct.std::pair", ptr %64, i32 0, i32 0
  store i32 0, ptr %65, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %67 unwind label %77

67:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %93, %67
  %69 = load i32, ptr %9, align 4, !tbaa !11
  %70 = load i32, ptr %8, align 4, !tbaa !11
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %81, label %72

72:                                               ; preds = %68
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %100

73:                                               ; preds = %55
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %6, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %7, align 4
  br label %105

77:                                               ; preds = %61
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %6, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %7, align 4
  br label %104

81:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  invoke void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %82 unwind label %96

82:                                               ; preds = %81
  %83 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 0
  %84 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %83)
          to label %85 unwind label %96

85:                                               ; preds = %82
  %86 = getelementptr inbounds %"struct.std::pair", ptr %10, i32 0, i32 1
  %87 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %84, ptr noundef nonnull align 4 dereferenceable(4) %86)
          to label %88 unwind label %96

88:                                               ; preds = %85
  %89 = load i32, ptr %4, align 4, !tbaa !11
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [5 x %"class.std::vector"], ptr %3, i64 0, i64 %90
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %92 unwind label %96

92:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %9, align 4, !tbaa !11
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %9, align 4, !tbaa !11
  br label %68, !llvm.loop !15

96:                                               ; preds = %88, %85, %82, %81
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %6, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %104

100:                                              ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %4, align 4, !tbaa !11
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %4, align 4, !tbaa !11
  br label %51, !llvm.loop !17

104:                                              ; preds = %96, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %105

105:                                              ; preds = %104, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %281

106:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %107

107:                                              ; preds = %265, %106
  br i1 true, label %109, label %108

108:                                              ; preds = %107
  store i32 8, ptr %5, align 4
  br label %269

109:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 1440, ptr %12) #8
  %110 = getelementptr inbounds [360 x i32], ptr %12, i64 0, i64 0
  %111 = getelementptr inbounds [360 x i32], ptr %12, i64 0, i64 0
  %112 = getelementptr inbounds i32, ptr %111, i64 360
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !11
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %110, ptr noundef %112, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %113 unwind label %118

113:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %114

114:                                              ; preds = %166, %113
  %115 = load i32, ptr %14, align 4, !tbaa !11
  %116 = icmp slt i32 %115, 5
  br i1 %116, label %122, label %117

117:                                              ; preds = %114
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %169

118:                                              ; preds = %109
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %6, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %268

122:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %123 = load i32, ptr %14, align 4, !tbaa !11
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [5 x %"class.std::vector"], ptr %3, i64 0, i64 %124
  store ptr %125, ptr %15, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %126 = load ptr, ptr %15, align 8, !tbaa !8
  %127 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #8
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %127, ptr %128, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %129 = load ptr, ptr %15, align 8, !tbaa !8
  %130 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %129) #8
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %130, ptr %131, align 8
  br label %132

132:                                              ; preds = %163, %122
  %133 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br i1 %133, label %135, label %134

134:                                              ; preds = %132
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %165

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %136 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %136, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %137

137:                                              ; preds = %159, %135
  %138 = load i32, ptr %19, align 4, !tbaa !11
  %139 = getelementptr inbounds %"struct.std::pair", ptr %18, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !18
  %141 = icmp sle i32 %138, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %137
  store i32 16, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %162

143:                                              ; preds = %137
  %144 = getelementptr inbounds %"struct.std::pair", ptr %18, i32 0, i32 0
  %145 = load i32, ptr %144, align 4, !tbaa !13
  %146 = load i32, ptr %19, align 4, !tbaa !11
  %147 = add nsw i32 %145, %146
  %148 = load i32, ptr %14, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %2, i64 0, i64 %149
  %151 = getelementptr inbounds %"struct.std::pair", ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !13
  %153 = add nsw i32 %147, %152
  %154 = srem i32 %153, 360
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [360 x i32], ptr %12, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !11
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %156, align 4, !tbaa !11
  br label %159

159:                                              ; preds = %143
  %160 = load i32, ptr %19, align 4, !tbaa !11
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %19, align 4, !tbaa !11
  br label %137, !llvm.loop !19

162:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %163

163:                                              ; preds = %162
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br label %132

165:                                              ; preds = %134
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %14, align 4, !tbaa !11
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %14, align 4, !tbaa !11
  br label %114, !llvm.loop !20

169:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store ptr %12, ptr %20, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %170 = load ptr, ptr %20, align 8, !tbaa !8
  %171 = getelementptr inbounds [360 x i32], ptr %170, i64 0, i64 0
  store ptr %171, ptr %21, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %172 = load ptr, ptr %20, align 8, !tbaa !8
  %173 = getelementptr inbounds [360 x i32], ptr %172, i64 0, i64 0
  %174 = getelementptr inbounds i32, ptr %173, i64 360
  store ptr %174, ptr %22, align 8, !tbaa !8
  br label %175

175:                                              ; preds = %199, %169
  %176 = load ptr, ptr %21, align 8, !tbaa !8
  %177 = load ptr, ptr %22, align 8, !tbaa !8
  %178 = icmp ne ptr %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 19, ptr %5, align 4
  br label %202

180:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %181 = load ptr, ptr %21, align 8, !tbaa !8
  %182 = load i32, ptr %181, align 4, !tbaa !11
  store i32 %182, ptr %23, align 4, !tbaa !11
  %183 = load i32, ptr %23, align 4, !tbaa !11
  %184 = icmp eq i32 %183, 5
  br i1 %184, label %185, label %195

185:                                              ; preds = %180
  %186 = load i32, ptr %11, align 4, !tbaa !11
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %186)
          to label %188 unwind label %191

188:                                              ; preds = %185
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %190 unwind label %191

190:                                              ; preds = %188
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %196

191:                                              ; preds = %188, %185
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %6, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %268

195:                                              ; preds = %180
  store i32 0, ptr %5, align 4
  br label %196

196:                                              ; preds = %195, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  %197 = load i32, ptr %5, align 4
  switch i32 %197, label %202 [
    i32 0, label %198
  ]

198:                                              ; preds = %196
  br label %199

199:                                              ; preds = %198
  %200 = load ptr, ptr %21, align 8, !tbaa !8
  %201 = getelementptr inbounds i32, ptr %200, i32 1
  store ptr %201, ptr %21, align 8, !tbaa !8
  br label %175

202:                                              ; preds = %196, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %203 = load i32, ptr %5, align 4
  switch i32 %203, label %262 [
    i32 19, label %204
  ]

204:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %205

205:                                              ; preds = %227, %204
  %206 = load i32, ptr %24, align 4, !tbaa !11
  %207 = icmp slt i32 %206, 5
  br i1 %207, label %209, label %208

208:                                              ; preds = %205
  store i32 21, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %230

209:                                              ; preds = %205
  %210 = load i32, ptr %24, align 4, !tbaa !11
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %2, i64 0, i64 %211
  %213 = getelementptr inbounds %"struct.std::pair", ptr %212, i32 0, i32 1
  %214 = load i32, ptr %213, align 4, !tbaa !18
  %215 = load i32, ptr %24, align 4, !tbaa !11
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %2, i64 0, i64 %216
  %218 = getelementptr inbounds %"struct.std::pair", ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 8, !tbaa !13
  %220 = add nsw i32 %219, %214
  store i32 %220, ptr %218, align 8, !tbaa !13
  %221 = load i32, ptr %24, align 4, !tbaa !11
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %2, i64 0, i64 %222
  %224 = getelementptr inbounds %"struct.std::pair", ptr %223, i32 0, i32 0
  %225 = load i32, ptr %224, align 8, !tbaa !13
  %226 = srem i32 %225, 360
  store i32 %226, ptr %224, align 8, !tbaa !13
  br label %227

227:                                              ; preds = %209
  %228 = load i32, ptr %24, align 4, !tbaa !11
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %24, align 4, !tbaa !11
  br label %205, !llvm.loop !21

230:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #8
  store i8 1, ptr %25, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %231

231:                                              ; preds = %244, %230
  %232 = load i32, ptr %26, align 4, !tbaa !11
  %233 = icmp slt i32 %232, 5
  br i1 %233, label %235, label %234

234:                                              ; preds = %231
  store i32 24, ptr %5, align 4
  br label %247

235:                                              ; preds = %231
  %236 = load i32, ptr %26, align 4, !tbaa !11
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [5 x %"struct.std::pair"], ptr %2, i64 0, i64 %237
  %239 = getelementptr inbounds %"struct.std::pair", ptr %238, i32 0, i32 0
  %240 = load i32, ptr %239, align 8, !tbaa !13
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %243

242:                                              ; preds = %235
  store i8 0, ptr %25, align 1, !tbaa !22
  store i32 24, ptr %5, align 4
  br label %247

243:                                              ; preds = %235
  br label %244

244:                                              ; preds = %243
  %245 = load i32, ptr %26, align 4, !tbaa !11
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %26, align 4, !tbaa !11
  br label %231, !llvm.loop !24

247:                                              ; preds = %242, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %248

248:                                              ; preds = %247
  %249 = load i8, ptr %25, align 1, !tbaa !22, !range !25, !noundef !26
  %250 = trunc i8 %249 to i1
  br i1 %250, label %251, label %260

251:                                              ; preds = %248
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %253 unwind label %256

253:                                              ; preds = %251
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %252, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %255 unwind label %256

255:                                              ; preds = %253
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %261

256:                                              ; preds = %253, %251
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %6, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %268

260:                                              ; preds = %248
  store i32 0, ptr %5, align 4
  br label %261

261:                                              ; preds = %260, %255
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #8
  br label %262

262:                                              ; preds = %261, %202
  call void @llvm.lifetime.end.p0(i64 1440, ptr %12) #8
  %263 = load i32, ptr %5, align 4
  switch i32 %263, label %269 [
    i32 0, label %264
  ]

264:                                              ; preds = %262
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %11, align 4, !tbaa !11
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %11, align 4, !tbaa !11
  br label %107, !llvm.loop !27

268:                                              ; preds = %256, %191, %118
  call void @llvm.lifetime.end.p0(i64 1440, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %281

269:                                              ; preds = %262, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  %270 = load i32, ptr %5, align 4
  switch i32 %270, label %272 [
    i32 8, label %271
  ]

271:                                              ; preds = %269
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %272

272:                                              ; preds = %271, %269
  %273 = getelementptr inbounds [5 x %"class.std::vector"], ptr %3, i32 0, i32 0
  %274 = getelementptr inbounds %"class.std::vector", ptr %273, i64 5
  br label %275

275:                                              ; preds = %275, %272
  %276 = phi ptr [ %274, %272 ], [ %277, %275 ]
  %277 = getelementptr inbounds %"class.std::vector", ptr %276, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %277) #8
  %278 = icmp eq ptr %277, %273
  br i1 %278, label %279, label %275

279:                                              ; preds = %275
  call void @llvm.lifetime.end.p0(i64 120, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #8
  %280 = load i32, ptr %1, align 4
  ret i32 %280

281:                                              ; preds = %268, %105
  %282 = getelementptr inbounds [5 x %"class.std::vector"], ptr %3, i32 0, i32 0
  %283 = getelementptr inbounds %"class.std::vector", ptr %282, i64 5
  br label %284

284:                                              ; preds = %284, %281
  %285 = phi ptr [ %283, %281 ], [ %286, %284 ]
  %286 = getelementptr inbounds %"class.std::vector", ptr %285, i64 -1
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %286) #8
  %287 = icmp eq ptr %286, %282
  br i1 %287, label %288, label %284

288:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 120, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #8
  br label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr %6, align 8
  %291 = load i32, ptr %7, align 4
  %292 = insertvalue { ptr, i32 } poison, ptr %290, 0
  %293 = insertvalue { ptr, i32 } %292, i32 %291, 1
  resume { ptr, i32 } %293
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { 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 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!14, !12, i64 4}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = !{!23, !23, i64 0}
!23 = !{!"bool", !10, i64 0}
!24 = distinct !{!24, !16}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !16}


; 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" }
%"struct.std::pair" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
.preheader90:
  %0 = alloca [5 x %"struct.std::pair"], align 16
  %1 = alloca [5 x %"class.std::vector"], align 16
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair", align 4
  %4 = alloca [360 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = load ptr, ptr @stdin, align 8, !tbaa !8
  %15 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %14)
  %16 = load ptr, ptr @stdout, align 8, !tbaa !8
  %17 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %0) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %0)
  %.ptr.1 = getelementptr inbounds i8, ptr %0, i64 8
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %0, i64 16
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %0, i64 24
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %0, i64 32
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.4)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %1) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %.ptr70.1 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.1) #7
  %.ptr70.2 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.2) #7
  %.ptr70.3 = getelementptr inbounds i8, ptr %1, i64 72
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.3) #7
  %.ptr70.4 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.4) #7
  %18 = getelementptr inbounds i8, ptr %3, i64 4
  %19 = getelementptr inbounds i8, ptr %0, i64 4
  %20 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %21 unwind label %82

21:                                               ; preds = %.preheader90
  store i32 0, ptr %0, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %.preheader89 unwind label %84

.preheader89:                                     ; preds = %21
  %23 = load i32, ptr %2, align 4, !tbaa !14
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %90, %.preheader89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %25 = getelementptr inbounds i8, ptr %0, i64 12
  %26 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %27 unwind label %82

27:                                               ; preds = %._crit_edge
  store i32 0, ptr %.ptr.1, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %.preheader89.1 unwind label %84

.preheader89.1:                                   ; preds = %27
  %29 = load i32, ptr %2, align 4, !tbaa !14
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %.preheader89.1, %35
  %.06193.1 = phi i32 [ %36, %35 ], [ 0, %.preheader89.1 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %32 unwind label %.loopexit.split-lp.loopexit

32:                                               ; preds = %.lr.ph.1
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %34 unwind label %.loopexit.split-lp.loopexit

34:                                               ; preds = %32
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.1, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %35 unwind label %.loopexit.split-lp.loopexit

35:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %36 = add nuw nsw i32 %.06193.1, 1
  %37 = load i32, ptr %2, align 4, !tbaa !14
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !15

._crit_edge.1:                                    ; preds = %35, %.preheader89.1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %39 = getelementptr inbounds i8, ptr %0, i64 20
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %39)
          to label %41 unwind label %82

41:                                               ; preds = %._crit_edge.1
  store i32 0, ptr %.ptr.2, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %.preheader89.2 unwind label %84

.preheader89.2:                                   ; preds = %41
  %43 = load i32, ptr %2, align 4, !tbaa !14
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph.2, label %._crit_edge.2

.lr.ph.2:                                         ; preds = %.preheader89.2, %49
  %.06193.2 = phi i32 [ %50, %49 ], [ 0, %.preheader89.2 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %46 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

46:                                               ; preds = %.lr.ph.2
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %48 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

48:                                               ; preds = %46
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.2, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %49 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

49:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %50 = add nuw nsw i32 %.06193.2, 1
  %51 = load i32, ptr %2, align 4, !tbaa !14
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %.lr.ph.2, label %._crit_edge.2, !llvm.loop !15

._crit_edge.2:                                    ; preds = %49, %.preheader89.2
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %53 = getelementptr inbounds i8, ptr %0, i64 28
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %53)
          to label %55 unwind label %82

55:                                               ; preds = %._crit_edge.2
  store i32 0, ptr %.ptr.3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %.preheader89.3 unwind label %84

.preheader89.3:                                   ; preds = %55
  %57 = load i32, ptr %2, align 4, !tbaa !14
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph.3, label %._crit_edge.3

.lr.ph.3:                                         ; preds = %.preheader89.3, %63
  %.06193.3 = phi i32 [ %64, %63 ], [ 0, %.preheader89.3 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %59 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %60 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

60:                                               ; preds = %.lr.ph.3
  %61 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %62 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

62:                                               ; preds = %60
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.3, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %63 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %64 = add nuw nsw i32 %.06193.3, 1
  %65 = load i32, ptr %2, align 4, !tbaa !14
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %.lr.ph.3, label %._crit_edge.3, !llvm.loop !15

._crit_edge.3:                                    ; preds = %63, %.preheader89.3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %67 = getelementptr inbounds i8, ptr %0, i64 36
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %67)
          to label %69 unwind label %82

69:                                               ; preds = %._crit_edge.3
  store i32 0, ptr %.ptr.4, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %.preheader89.4 unwind label %84

.preheader89.4:                                   ; preds = %69
  %71 = load i32, ptr %2, align 4, !tbaa !14
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %.lr.ph.4, label %._crit_edge.4

.lr.ph.4:                                         ; preds = %.preheader89.4, %77
  %.06193.4 = phi i32 [ %78, %77 ], [ 0, %.preheader89.4 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %73 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %74 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

74:                                               ; preds = %.lr.ph.4
  %75 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %76 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

76:                                               ; preds = %74
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.4, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %77 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

77:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %78 = add nuw nsw i32 %.06193.4, 1
  %79 = load i32, ptr %2, align 4, !tbaa !14
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %.lr.ph.4, label %._crit_edge.4, !llvm.loop !15

._crit_edge.4:                                    ; preds = %77, %.preheader89.4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %81 = getelementptr inbounds i8, ptr %4, i64 1440
  %invariant.gep = getelementptr inbounds i8, ptr %4, i64 8
  %invariant.gep160 = getelementptr inbounds i8, ptr %4, i64 12
  %invariant.gep162 = getelementptr inbounds i8, ptr %4, i64 16
  %invariant.gep164 = getelementptr inbounds i8, ptr %4, i64 20
  br label %95

82:                                               ; preds = %._crit_edge.3, %._crit_edge.2, %._crit_edge.1, %._crit_edge, %.preheader90
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %315

84:                                               ; preds = %69, %55, %41, %27, %21
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %94

.lr.ph:                                           ; preds = %.preheader89, %90
  %.06193 = phi i32 [ %91, %90 ], [ 0, %.preheader89 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 4 dereferenceable(8) %3)
  %86 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %87 unwind label %.loopexit

87:                                               ; preds = %.lr.ph
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %89 unwind label %.loopexit

89:                                               ; preds = %87
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %90 unwind label %.loopexit

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %91 = add nuw nsw i32 %.06193, 1
  %92 = load i32, ptr %2, align 4, !tbaa !14
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %.lr.ph, label %._crit_edge, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph, %87, %89
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %34, %32, %.lr.ph.1
  %lpad.loopexit110 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.lr.ph.2, %46, %48
  %lpad.loopexit113 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %62, %60, %.lr.ph.3
  %lpad.loopexit115 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %76, %74, %.lr.ph.4
  %lpad.loopexit.split-lp116 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit110, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit113, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit115, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp116, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %94

94:                                               ; preds = %.loopexit.split-lp, %84
  %.pn77 = phi { ptr, i32 } [ %lpad.phi, %.loopexit.split-lp ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %315

95:                                               ; preds = %._crit_edge.4, %312
  %.063 = phi i32 [ %313, %312 ], [ 0, %._crit_edge.4 ]
  call void @llvm.lifetime.start.p0(i64 1440, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !14
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %4, ptr noundef nonnull %81, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %96 unwind label %100

96:                                               ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %97 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %97, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %98 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %98, ptr %7, align 8
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %99, label %.lr.ph101, label %._crit_edge102

100:                                              ; preds = %95
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %314

._crit_edge102:                                   ; preds = %._crit_edge99, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %102 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.1) #7
  store ptr %102, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %103 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.1) #7
  store ptr %103, ptr %7, align 8
  %104 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %104, label %.lr.ph101.1, label %._crit_edge102.1

.lr.ph101.1:                                      ; preds = %._crit_edge102, %._crit_edge99.1
  %105 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %.sroa.0.0.copyload.1 = load i32, ptr %105, align 4
  %.sroa.4.0..sroa_idx.1 = getelementptr inbounds i8, ptr %105, i64 4
  %.sroa.4.0.copyload.1 = load i32, ptr %.sroa.4.0..sroa_idx.1, align 4
  %.not7695.1 = icmp slt i32 %.sroa.4.0.copyload.1, 0
  br i1 %.not7695.1, label %._crit_edge99.1, label %.lr.ph98.1

.lr.ph98.1:                                       ; preds = %.lr.ph101.1
  %106 = load i32, ptr %.ptr.1, align 8, !tbaa !11
  %107 = icmp eq i32 %.sroa.4.0.copyload.1, 0
  br i1 %107, label %._crit_edge99.1.loopexit.unr-lcssa, label %.lr.ph98.1.new

.lr.ph98.1.new:                                   ; preds = %.lr.ph98.1
  %108 = add nuw i32 %.sroa.4.0.copyload.1, 1
  %unroll_iter137 = and i32 %108, -2
  br label %109

109:                                              ; preds = %109, %.lr.ph98.1.new
  %.05296.1 = phi i32 [ 0, %.lr.ph98.1.new ], [ %125, %109 ]
  %niter138 = phi i32 [ 0, %.lr.ph98.1.new ], [ %niter138.next.1, %109 ]
  %110 = add nsw i32 %.05296.1, %.sroa.0.0.copyload.1
  %111 = add nsw i32 %110, %106
  %112 = srem i32 %111, 360
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !14
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %114, align 4, !tbaa !14
  %117 = or disjoint i32 %.05296.1, 1
  %118 = add nsw i32 %117, %.sroa.0.0.copyload.1
  %119 = add nsw i32 %118, %106
  %120 = srem i32 %119, 360
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !14
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %122, align 4, !tbaa !14
  %125 = add nuw i32 %.05296.1, 2
  %niter138.next.1 = add i32 %niter138, 2
  %niter138.ncmp.1 = icmp eq i32 %niter138.next.1, %unroll_iter137
  br i1 %niter138.ncmp.1, label %._crit_edge99.1.loopexit.unr-lcssa, label %109, !llvm.loop !17

._crit_edge99.1.loopexit.unr-lcssa:               ; preds = %109, %.lr.ph98.1
  %.05296.1.unr = phi i32 [ 0, %.lr.ph98.1 ], [ %125, %109 ]
  %126 = and i32 %.sroa.4.0.copyload.1, 1
  %lcmp.mod136.not.not = icmp eq i32 %126, 0
  br i1 %lcmp.mod136.not.not, label %._crit_edge99.1.loopexit.epilog-lcssa, label %._crit_edge99.1

._crit_edge99.1.loopexit.epilog-lcssa:            ; preds = %._crit_edge99.1.loopexit.unr-lcssa
  %127 = add nsw i32 %.05296.1.unr, %.sroa.0.0.copyload.1
  %128 = add nsw i32 %127, %106
  %129 = srem i32 %128, 360
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !14
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %131, align 4, !tbaa !14
  br label %._crit_edge99.1

._crit_edge99.1:                                  ; preds = %._crit_edge99.1.loopexit.epilog-lcssa, %._crit_edge99.1.loopexit.unr-lcssa, %.lr.ph101.1
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %135, label %.lr.ph101.1, label %._crit_edge102.1

._crit_edge102.1:                                 ; preds = %._crit_edge99.1, %._crit_edge102
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %136 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.2) #7
  store ptr %136, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %137 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.2) #7
  store ptr %137, ptr %7, align 8
  %138 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %138, label %.lr.ph101.2, label %._crit_edge102.2

.lr.ph101.2:                                      ; preds = %._crit_edge102.1, %._crit_edge99.2
  %139 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %.sroa.0.0.copyload.2 = load i32, ptr %139, align 4
  %.sroa.4.0..sroa_idx.2 = getelementptr inbounds i8, ptr %139, i64 4
  %.sroa.4.0.copyload.2 = load i32, ptr %.sroa.4.0..sroa_idx.2, align 4
  %.not7695.2 = icmp slt i32 %.sroa.4.0.copyload.2, 0
  br i1 %.not7695.2, label %._crit_edge99.2, label %.lr.ph98.2

.lr.ph98.2:                                       ; preds = %.lr.ph101.2
  %140 = load i32, ptr %.ptr.2, align 16, !tbaa !11
  %141 = icmp eq i32 %.sroa.4.0.copyload.2, 0
  br i1 %141, label %._crit_edge99.2.loopexit.unr-lcssa, label %.lr.ph98.2.new

.lr.ph98.2.new:                                   ; preds = %.lr.ph98.2
  %142 = add nuw i32 %.sroa.4.0.copyload.2, 1
  %unroll_iter142 = and i32 %142, -2
  br label %143

143:                                              ; preds = %143, %.lr.ph98.2.new
  %.05296.2 = phi i32 [ 0, %.lr.ph98.2.new ], [ %159, %143 ]
  %niter143 = phi i32 [ 0, %.lr.ph98.2.new ], [ %niter143.next.1, %143 ]
  %144 = add nsw i32 %.05296.2, %.sroa.0.0.copyload.2
  %145 = add nsw i32 %144, %140
  %146 = srem i32 %145, 360
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !14
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %148, align 4, !tbaa !14
  %151 = or disjoint i32 %.05296.2, 1
  %152 = add nsw i32 %151, %.sroa.0.0.copyload.2
  %153 = add nsw i32 %152, %140
  %154 = srem i32 %153, 360
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !14
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %156, align 4, !tbaa !14
  %159 = add nuw i32 %.05296.2, 2
  %niter143.next.1 = add i32 %niter143, 2
  %niter143.ncmp.1 = icmp eq i32 %niter143.next.1, %unroll_iter142
  br i1 %niter143.ncmp.1, label %._crit_edge99.2.loopexit.unr-lcssa, label %143, !llvm.loop !17

._crit_edge99.2.loopexit.unr-lcssa:               ; preds = %143, %.lr.ph98.2
  %.05296.2.unr = phi i32 [ 0, %.lr.ph98.2 ], [ %159, %143 ]
  %160 = and i32 %.sroa.4.0.copyload.2, 1
  %lcmp.mod141.not.not = icmp eq i32 %160, 0
  br i1 %lcmp.mod141.not.not, label %._crit_edge99.2.loopexit.epilog-lcssa, label %._crit_edge99.2

._crit_edge99.2.loopexit.epilog-lcssa:            ; preds = %._crit_edge99.2.loopexit.unr-lcssa
  %161 = add nsw i32 %.05296.2.unr, %.sroa.0.0.copyload.2
  %162 = add nsw i32 %161, %140
  %163 = srem i32 %162, 360
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !14
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %165, align 4, !tbaa !14
  br label %._crit_edge99.2

._crit_edge99.2:                                  ; preds = %._crit_edge99.2.loopexit.epilog-lcssa, %._crit_edge99.2.loopexit.unr-lcssa, %.lr.ph101.2
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %169 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %169, label %.lr.ph101.2, label %._crit_edge102.2

._crit_edge102.2:                                 ; preds = %._crit_edge99.2, %._crit_edge102.1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %170 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.3) #7
  store ptr %170, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %171 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.3) #7
  store ptr %171, ptr %7, align 8
  %172 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %172, label %.lr.ph101.3, label %._crit_edge102.3

.lr.ph101.3:                                      ; preds = %._crit_edge102.2, %._crit_edge99.3
  %173 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %.sroa.0.0.copyload.3 = load i32, ptr %173, align 4
  %.sroa.4.0..sroa_idx.3 = getelementptr inbounds i8, ptr %173, i64 4
  %.sroa.4.0.copyload.3 = load i32, ptr %.sroa.4.0..sroa_idx.3, align 4
  %.not7695.3 = icmp slt i32 %.sroa.4.0.copyload.3, 0
  br i1 %.not7695.3, label %._crit_edge99.3, label %.lr.ph98.3

.lr.ph98.3:                                       ; preds = %.lr.ph101.3
  %174 = load i32, ptr %.ptr.3, align 8, !tbaa !11
  %175 = icmp eq i32 %.sroa.4.0.copyload.3, 0
  br i1 %175, label %._crit_edge99.3.loopexit.unr-lcssa, label %.lr.ph98.3.new

.lr.ph98.3.new:                                   ; preds = %.lr.ph98.3
  %176 = add nuw i32 %.sroa.4.0.copyload.3, 1
  %unroll_iter147 = and i32 %176, -2
  br label %177

177:                                              ; preds = %177, %.lr.ph98.3.new
  %.05296.3 = phi i32 [ 0, %.lr.ph98.3.new ], [ %193, %177 ]
  %niter148 = phi i32 [ 0, %.lr.ph98.3.new ], [ %niter148.next.1, %177 ]
  %178 = add nsw i32 %.05296.3, %.sroa.0.0.copyload.3
  %179 = add nsw i32 %178, %174
  %180 = srem i32 %179, 360
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !14
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %182, align 4, !tbaa !14
  %185 = or disjoint i32 %.05296.3, 1
  %186 = add nsw i32 %185, %.sroa.0.0.copyload.3
  %187 = add nsw i32 %186, %174
  %188 = srem i32 %187, 360
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !14
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %190, align 4, !tbaa !14
  %193 = add nuw i32 %.05296.3, 2
  %niter148.next.1 = add i32 %niter148, 2
  %niter148.ncmp.1 = icmp eq i32 %niter148.next.1, %unroll_iter147
  br i1 %niter148.ncmp.1, label %._crit_edge99.3.loopexit.unr-lcssa, label %177, !llvm.loop !17

._crit_edge99.3.loopexit.unr-lcssa:               ; preds = %177, %.lr.ph98.3
  %.05296.3.unr = phi i32 [ 0, %.lr.ph98.3 ], [ %193, %177 ]
  %194 = and i32 %.sroa.4.0.copyload.3, 1
  %lcmp.mod146.not.not = icmp eq i32 %194, 0
  br i1 %lcmp.mod146.not.not, label %._crit_edge99.3.loopexit.epilog-lcssa, label %._crit_edge99.3

._crit_edge99.3.loopexit.epilog-lcssa:            ; preds = %._crit_edge99.3.loopexit.unr-lcssa
  %195 = add nsw i32 %.05296.3.unr, %.sroa.0.0.copyload.3
  %196 = add nsw i32 %195, %174
  %197 = srem i32 %196, 360
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !14
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %199, align 4, !tbaa !14
  br label %._crit_edge99.3

._crit_edge99.3:                                  ; preds = %._crit_edge99.3.loopexit.epilog-lcssa, %._crit_edge99.3.loopexit.unr-lcssa, %.lr.ph101.3
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %203 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %203, label %.lr.ph101.3, label %._crit_edge102.3

._crit_edge102.3:                                 ; preds = %._crit_edge99.3, %._crit_edge102.2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %204 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.4) #7
  store ptr %204, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %205 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr70.4) #7
  store ptr %205, ptr %7, align 8
  %206 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %206, label %.lr.ph101.4, label %._crit_edge102.4

.lr.ph101.4:                                      ; preds = %._crit_edge102.3, %._crit_edge99.4
  %207 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %.sroa.0.0.copyload.4 = load i32, ptr %207, align 4
  %.sroa.4.0..sroa_idx.4 = getelementptr inbounds i8, ptr %207, i64 4
  %.sroa.4.0.copyload.4 = load i32, ptr %.sroa.4.0..sroa_idx.4, align 4
  %.not7695.4 = icmp slt i32 %.sroa.4.0.copyload.4, 0
  br i1 %.not7695.4, label %._crit_edge99.4, label %.lr.ph98.4

.lr.ph98.4:                                       ; preds = %.lr.ph101.4
  %208 = load i32, ptr %.ptr.4, align 16, !tbaa !11
  %209 = icmp eq i32 %.sroa.4.0.copyload.4, 0
  br i1 %209, label %._crit_edge99.4.loopexit.unr-lcssa, label %.lr.ph98.4.new

.lr.ph98.4.new:                                   ; preds = %.lr.ph98.4
  %210 = add nuw i32 %.sroa.4.0.copyload.4, 1
  %unroll_iter152 = and i32 %210, -2
  br label %211

211:                                              ; preds = %211, %.lr.ph98.4.new
  %.05296.4 = phi i32 [ 0, %.lr.ph98.4.new ], [ %227, %211 ]
  %niter153 = phi i32 [ 0, %.lr.ph98.4.new ], [ %niter153.next.1, %211 ]
  %212 = add nsw i32 %.05296.4, %.sroa.0.0.copyload.4
  %213 = add nsw i32 %212, %208
  %214 = srem i32 %213, 360
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %215
  %217 = load i32, ptr %216, align 4, !tbaa !14
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %216, align 4, !tbaa !14
  %219 = or disjoint i32 %.05296.4, 1
  %220 = add nsw i32 %219, %.sroa.0.0.copyload.4
  %221 = add nsw i32 %220, %208
  %222 = srem i32 %221, 360
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !14
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %224, align 4, !tbaa !14
  %227 = add nuw i32 %.05296.4, 2
  %niter153.next.1 = add i32 %niter153, 2
  %niter153.ncmp.1 = icmp eq i32 %niter153.next.1, %unroll_iter152
  br i1 %niter153.ncmp.1, label %._crit_edge99.4.loopexit.unr-lcssa, label %211, !llvm.loop !17

._crit_edge99.4.loopexit.unr-lcssa:               ; preds = %211, %.lr.ph98.4
  %.05296.4.unr = phi i32 [ 0, %.lr.ph98.4 ], [ %227, %211 ]
  %228 = and i32 %.sroa.4.0.copyload.4, 1
  %lcmp.mod151.not.not = icmp eq i32 %228, 0
  br i1 %lcmp.mod151.not.not, label %._crit_edge99.4.loopexit.epilog-lcssa, label %._crit_edge99.4

._crit_edge99.4.loopexit.epilog-lcssa:            ; preds = %._crit_edge99.4.loopexit.unr-lcssa
  %229 = add nsw i32 %.05296.4.unr, %.sroa.0.0.copyload.4
  %230 = add nsw i32 %229, %208
  %231 = srem i32 %230, 360
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !14
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %233, align 4, !tbaa !14
  br label %._crit_edge99.4

._crit_edge99.4:                                  ; preds = %._crit_edge99.4.loopexit.epilog-lcssa, %._crit_edge99.4.loopexit.unr-lcssa, %.lr.ph101.4
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %237 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %237, label %.lr.ph101.4, label %._crit_edge102.4

._crit_edge102.4:                                 ; preds = %._crit_edge99.4, %._crit_edge102.3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %.critedge

.lr.ph101:                                        ; preds = %96, %._crit_edge99
  %238 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %.sroa.0.0.copyload = load i32, ptr %238, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %238, i64 4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4
  %.not7695 = icmp slt i32 %.sroa.4.0.copyload, 0
  br i1 %.not7695, label %._crit_edge99, label %.lr.ph98

.lr.ph98:                                         ; preds = %.lr.ph101
  %239 = load i32, ptr %0, align 16, !tbaa !11
  %240 = icmp eq i32 %.sroa.4.0.copyload, 0
  br i1 %240, label %._crit_edge99.loopexit.unr-lcssa, label %.lr.ph98.new

.lr.ph98.new:                                     ; preds = %.lr.ph98
  %241 = add nuw i32 %.sroa.4.0.copyload, 1
  %unroll_iter = and i32 %241, -2
  br label %252

._crit_edge99.loopexit.unr-lcssa:                 ; preds = %252, %.lr.ph98
  %.05296.unr = phi i32 [ 0, %.lr.ph98 ], [ %268, %252 ]
  %242 = and i32 %.sroa.4.0.copyload, 1
  %lcmp.mod.not.not = icmp eq i32 %242, 0
  br i1 %lcmp.mod.not.not, label %._crit_edge99.loopexit.epilog-lcssa, label %._crit_edge99

._crit_edge99.loopexit.epilog-lcssa:              ; preds = %._crit_edge99.loopexit.unr-lcssa
  %243 = add nsw i32 %.05296.unr, %.sroa.0.0.copyload
  %244 = add nsw i32 %243, %239
  %245 = srem i32 %244, 360
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !14
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %247, align 4, !tbaa !14
  br label %._crit_edge99

._crit_edge99:                                    ; preds = %._crit_edge99.loopexit.epilog-lcssa, %._crit_edge99.loopexit.unr-lcssa, %.lr.ph101
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %251 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  br i1 %251, label %.lr.ph101, label %._crit_edge102

252:                                              ; preds = %252, %.lr.ph98.new
  %.05296 = phi i32 [ 0, %.lr.ph98.new ], [ %268, %252 ]
  %niter = phi i32 [ 0, %.lr.ph98.new ], [ %niter.next.1, %252 ]
  %253 = add nsw i32 %.05296, %.sroa.0.0.copyload
  %254 = add nsw i32 %253, %239
  %255 = srem i32 %254, 360
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !14
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %257, align 4, !tbaa !14
  %260 = or disjoint i32 %.05296, 1
  %261 = add nsw i32 %260, %.sroa.0.0.copyload
  %262 = add nsw i32 %261, %239
  %263 = srem i32 %262, 360
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [360 x i32], ptr %4, i64 0, i64 %264
  %266 = load i32, ptr %265, align 4, !tbaa !14
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %265, align 4, !tbaa !14
  %268 = add nuw i32 %.05296, 2
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge99.loopexit.unr-lcssa, label %252, !llvm.loop !17

.critedge.1:                                      ; preds = %.critedge
  %.047.add = or disjoint i64 %.047.idx104, 4
  %.047.ptr.1 = getelementptr inbounds i8, ptr %4, i64 %.047.add
  %269 = load i32, ptr %.047.ptr.1, align 4, !tbaa !14
  %.not73.1 = icmp eq i32 %269, 5
  br i1 %.not73.1, label %296, label %.critedge.2

.critedge.2:                                      ; preds = %.critedge.1
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %.047.idx104
  %270 = load i32, ptr %gep, align 8, !tbaa !14
  %.not73.2 = icmp eq i32 %270, 5
  br i1 %.not73.2, label %296, label %.critedge.3

.critedge.3:                                      ; preds = %.critedge.2
  %gep161 = getelementptr inbounds i8, ptr %invariant.gep160, i64 %.047.idx104
  %271 = load i32, ptr %gep161, align 4, !tbaa !14
  %.not73.3 = icmp eq i32 %271, 5
  br i1 %.not73.3, label %296, label %.critedge.4

.critedge.4:                                      ; preds = %.critedge.3
  %gep163 = getelementptr inbounds i8, ptr %invariant.gep162, i64 %.047.idx104
  %272 = load i32, ptr %gep163, align 8, !tbaa !14
  %.not73.4 = icmp eq i32 %272, 5
  br i1 %.not73.4, label %296, label %.critedge.5

.critedge.5:                                      ; preds = %.critedge.4
  %gep165 = getelementptr inbounds i8, ptr %invariant.gep164, i64 %.047.idx104
  %273 = load i32, ptr %gep165, align 4, !tbaa !14
  %.not73.5 = icmp eq i32 %273, 5
  br i1 %.not73.5, label %296, label %274

274:                                              ; preds = %.critedge.5
  %.047.add.5 = add nuw nsw i64 %.047.idx104, 24
  %.not.5 = icmp eq i64 %.047.add.5, 1440
  br i1 %.not.5, label %.critedge82.preheader, label %.critedge

.critedge82.preheader:                            ; preds = %274
  %275 = load i32, ptr %19, align 4, !tbaa !18
  %276 = load i32, ptr %0, align 16, !tbaa !11
  %277 = add nsw i32 %276, %275
  %278 = srem i32 %277, 360
  store i32 %278, ptr %0, align 16, !tbaa !11
  %279 = load i32, ptr %25, align 4, !tbaa !18
  %280 = load i32, ptr %.ptr.1, align 8, !tbaa !11
  %281 = add nsw i32 %280, %279
  %282 = srem i32 %281, 360
  store i32 %282, ptr %.ptr.1, align 8, !tbaa !11
  %283 = load i32, ptr %39, align 4, !tbaa !18
  %284 = load i32, ptr %.ptr.2, align 16, !tbaa !11
  %285 = add nsw i32 %284, %283
  %286 = srem i32 %285, 360
  store i32 %286, ptr %.ptr.2, align 16, !tbaa !11
  %287 = load i32, ptr %53, align 4, !tbaa !18
  %288 = load i32, ptr %.ptr.3, align 8, !tbaa !11
  %289 = add nsw i32 %288, %287
  %290 = srem i32 %289, 360
  store i32 %290, ptr %.ptr.3, align 8, !tbaa !11
  %291 = load i32, ptr %67, align 4, !tbaa !18
  %292 = load i32, ptr %.ptr.4, align 16, !tbaa !11
  %293 = add nsw i32 %292, %291
  %294 = srem i32 %293, 360
  store i32 %294, ptr %.ptr.4, align 16, !tbaa !11
  %.not74 = icmp eq i32 %278, 0
  %.not74.1 = icmp eq i32 %282, 0
  %or.cond = select i1 %.not74, i1 %.not74.1, i1 false
  %.not74.2 = icmp eq i32 %286, 0
  %or.cond126 = select i1 %or.cond, i1 %.not74.2, i1 false
  %.not74.3 = icmp eq i32 %290, 0
  %or.cond127 = select i1 %or.cond126, i1 %.not74.3, i1 false
  %.not74.4 = icmp eq i32 %294, 0
  %or.cond128 = select i1 %or.cond127, i1 %.not74.4, i1 false
  br i1 %or.cond128, label %.critedge84, label %312

.critedge:                                        ; preds = %274, %._crit_edge102.4
  %.047.idx104 = phi i64 [ 0, %._crit_edge102.4 ], [ %.047.add.5, %274 ]
  %.047.ptr = getelementptr inbounds i8, ptr %4, i64 %.047.idx104
  %295 = load i32, ptr %.047.ptr, align 8, !tbaa !14
  %.not73 = icmp eq i32 %295, 5
  br i1 %.not73, label %296, label %.critedge.1

296:                                              ; preds = %.critedge.5, %.critedge.4, %.critedge.3, %.critedge.2, %.critedge.1, %.critedge
  %297 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.063)
          to label %298 unwind label %300

298:                                              ; preds = %296
  %299 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %297, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %307 unwind label %300

300:                                              ; preds = %298, %296
  %301 = landingpad { ptr, i32 }
          cleanup
  br label %314

.critedge84:                                      ; preds = %.critedge82.preheader
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %303 unwind label %305

303:                                              ; preds = %.critedge84
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %302, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %307 unwind label %305

305:                                              ; preds = %303, %.critedge84
  %306 = landingpad { ptr, i32 }
          cleanup
  br label %314

307:                                              ; preds = %298, %303
  call void @llvm.lifetime.end.p0(i64 1440, ptr nonnull %4) #7
  %308 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %308) #7
  %309 = getelementptr inbounds i8, ptr %1, i64 72
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %309) #7
  %310 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %310) #7
  %311 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %311) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %0) #7
  ret i32 0

312:                                              ; preds = %.critedge82.preheader
  call void @llvm.lifetime.end.p0(i64 1440, ptr nonnull %4) #7
  %313 = add nuw nsw i32 %.063, 1
  br label %95, !llvm.loop !19

314:                                              ; preds = %305, %300, %100
  %.pn = phi { ptr, i32 } [ %306, %305 ], [ %301, %300 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 1440, ptr nonnull %4) #7
  br label %315

315:                                              ; preds = %82, %94, %314
  %.pn77.pn.pn = phi { ptr, i32 } [ %.pn, %314 ], [ %.pn77, %94 ], [ %83, %82 ]
  %316 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %316) #7
  %317 = getelementptr inbounds i8, ptr %1, i64 72
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %317) #7
  %318 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %318) #7
  %319 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %319) #7
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %0) #7
  resume { ptr, i32 } %.pn77.pn.pn
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

; 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 #4 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)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { 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 = { 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 #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSSt4pairIiiE", !13, i64 0, !13, i64 4}
!13 = !{!"int", !10, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!12, !13, i64 4}
!19 = distinct !{!19, !16}


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