; LLVM IR from eyangch/competitive-programming :: CNOI/2020 (delicacy)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.fest = type { i64, i64, i64 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@T = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@C = external dso_local global [50 x i64], align 16
@A = external dso_local global [30 x [50 x [5 x [50 x [5 x i64]]]]], align 16
@H = external dso_local global [50 x [5 x i64]], align 16
@G = external dso_local global [50 x [5 x %"class.std::vector"]], align 16
@F = external dso_local global [201 x %struct.fest], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3addx(i64 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca %struct.fest, align 8
  %34 = alloca %class.anon, align 1
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %41 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %42 = getelementptr i8, ptr %41, i64 -24
  %43 = load i64, ptr %42, align 8
  %44 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %43
  %45 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %44, ptr noundef null)
  %46 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %47, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(8) @K)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %51

51:                                               ; preds = %60, %0
  %52 = load i64, ptr %2, align 8, !tbaa !8
  %53 = load i64, ptr @N, align 8, !tbaa !8
  %54 = icmp slt i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %63

56:                                               ; preds = %51
  %57 = load i64, ptr %2, align 8, !tbaa !8
  %58 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %57
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %58)
  br label %60

60:                                               ; preds = %56
  %61 = load i64, ptr %2, align 8, !tbaa !8
  %62 = add nsw i64 %61, 1
  store i64 %62, ptr %2, align 8, !tbaa !8
  br label %51, !llvm.loop !11

63:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %64

64:                                               ; preds = %83, %63
  %65 = load i64, ptr %3, align 8, !tbaa !8
  %66 = load i64, ptr @M, align 8, !tbaa !8
  %67 = icmp slt i64 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %86

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %73 = load i64, ptr %4, align 8, !tbaa !8
  %74 = add nsw i64 %73, -1
  store i64 %74, ptr %4, align 8, !tbaa !8
  %75 = load i64, ptr %5, align 8, !tbaa !8
  %76 = add nsw i64 %75, -1
  store i64 %76, ptr %5, align 8, !tbaa !8
  %77 = load i64, ptr %6, align 8, !tbaa !8
  %78 = add nsw i64 %77, -1
  store i64 %78, ptr %6, align 8, !tbaa !8
  %79 = load i64, ptr %4, align 8, !tbaa !8
  %80 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %79
  %81 = load i64, ptr %6, align 8, !tbaa !8
  %82 = getelementptr inbounds [5 x %"class.std::vector"], ptr %80, i64 0, i64 %81
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %83

83:                                               ; preds = %69
  %84 = load i64, ptr %3, align 8, !tbaa !8
  %85 = add nsw i64 %84, 1
  store i64 %85, ptr %3, align 8, !tbaa !8
  br label %64, !llvm.loop !13

86:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store i64 0, ptr %7, align 8, !tbaa !8
  br label %87

87:                                               ; preds = %138, %86
  %88 = load i64, ptr %7, align 8, !tbaa !8
  %89 = icmp slt i64 %88, 30
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %141

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %92

92:                                               ; preds = %134, %91
  %93 = load i64, ptr %9, align 8, !tbaa !8
  %94 = icmp slt i64 %93, 50
  br i1 %94, label %96, label %95

95:                                               ; preds = %92
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %137

96:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 0, ptr %10, align 8, !tbaa !8
  br label %97

97:                                               ; preds = %130, %96
  %98 = load i64, ptr %10, align 8, !tbaa !8
  %99 = icmp slt i64 %98, 5
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %133

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %102

102:                                              ; preds = %126, %101
  %103 = load i64, ptr %11, align 8, !tbaa !8
  %104 = icmp slt i64 %103, 50
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %129

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

107:                                              ; preds = %122, %106
  %108 = load i64, ptr %12, align 8, !tbaa !8
  %109 = icmp slt i64 %108, 5
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  store i32 20, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %125

111:                                              ; preds = %107
  %112 = load i64, ptr %7, align 8, !tbaa !8
  %113 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %112
  %114 = load i64, ptr %9, align 8, !tbaa !8
  %115 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr %113, i64 0, i64 %114
  %116 = load i64, ptr %10, align 8, !tbaa !8
  %117 = getelementptr inbounds [5 x [50 x [5 x i64]]], ptr %115, i64 0, i64 %116
  %118 = load i64, ptr %11, align 8, !tbaa !8
  %119 = getelementptr inbounds [50 x [5 x i64]], ptr %117, i64 0, i64 %118
  %120 = load i64, ptr %12, align 8, !tbaa !8
  %121 = getelementptr inbounds [5 x i64], ptr %119, i64 0, i64 %120
  store i64 -100000000000000, ptr %121, align 8, !tbaa !8
  br label %122

122:                                              ; preds = %111
  %123 = load i64, ptr %12, align 8, !tbaa !8
  %124 = add nsw i64 %123, 1
  store i64 %124, ptr %12, align 8, !tbaa !8
  br label %107, !llvm.loop !14

125:                                              ; preds = %110
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %11, align 8, !tbaa !8
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %11, align 8, !tbaa !8
  br label %102, !llvm.loop !15

129:                                              ; preds = %105
  br label %130

130:                                              ; preds = %129
  %131 = load i64, ptr %10, align 8, !tbaa !8
  %132 = add nsw i64 %131, 1
  store i64 %132, ptr %10, align 8, !tbaa !8
  br label %97, !llvm.loop !16

133:                                              ; preds = %100
  br label %134

134:                                              ; preds = %133
  %135 = load i64, ptr %9, align 8, !tbaa !8
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %9, align 8, !tbaa !8
  br label %92, !llvm.loop !17

137:                                              ; preds = %95
  br label %138

138:                                              ; preds = %137
  %139 = load i64, ptr %7, align 8, !tbaa !8
  %140 = add nsw i64 %139, 1
  store i64 %140, ptr %7, align 8, !tbaa !8
  br label %87, !llvm.loop !18

141:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i64 0, ptr %13, align 8, !tbaa !8
  br label %142

142:                                              ; preds = %239, %141
  %143 = load i64, ptr %13, align 8, !tbaa !8
  %144 = load i64, ptr @N, align 8, !tbaa !8
  %145 = icmp slt i64 %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  store i32 23, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %242

147:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %148 = load i64, ptr %13, align 8, !tbaa !8
  %149 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %148
  %150 = getelementptr inbounds [5 x %"class.std::vector"], ptr %149, i64 0, i64 0
  store ptr %150, ptr %14, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %151 = load ptr, ptr %14, align 8, !tbaa !19
  %152 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #8
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %154 = load ptr, ptr %14, align 8, !tbaa !19
  %155 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #8
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %155, ptr %156, align 8
  br label %157

157:                                              ; preds = %176, %147
  %158 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  br i1 %158, label %160, label %159

159:                                              ; preds = %157
  store i32 26, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %178

160:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %162 = load i64, ptr %161, align 8, !tbaa !8
  store i64 %162, ptr %17, align 8, !tbaa !8
  %163 = load i64, ptr %13, align 8, !tbaa !8
  %164 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %163
  %165 = getelementptr inbounds [5 x [50 x [5 x i64]]], ptr %164, i64 0, i64 0
  %166 = load i64, ptr %17, align 8, !tbaa !8
  %167 = getelementptr inbounds [50 x [5 x i64]], ptr %165, i64 0, i64 %166
  %168 = getelementptr inbounds [5 x i64], ptr %167, i64 0, i64 0
  %169 = load i64, ptr %13, align 8, !tbaa !8
  %170 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %169
  %171 = load i64, ptr %170, align 8, !tbaa !8
  %172 = load i64, ptr %17, align 8, !tbaa !8
  %173 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %172
  %174 = load i64, ptr %173, align 8, !tbaa !8
  %175 = add nsw i64 %171, %174
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %168, i64 noundef %175)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %176

176:                                              ; preds = %160
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  br label %157

178:                                              ; preds = %159
  %179 = load i64, ptr %13, align 8, !tbaa !8
  %180 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %179
  %181 = getelementptr inbounds [5 x [50 x [5 x i64]]], ptr %180, i64 0, i64 0
  %182 = load i64, ptr %13, align 8, !tbaa !8
  %183 = getelementptr inbounds [50 x [5 x i64]], ptr %181, i64 0, i64 %182
  %184 = getelementptr inbounds [5 x i64], ptr %183, i64 0, i64 1
  %185 = load i64, ptr %13, align 8, !tbaa !8
  %186 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %185
  %187 = load i64, ptr %186, align 8, !tbaa !8
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %184, i64 noundef %187)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store i64 1, ptr %18, align 8, !tbaa !8
  br label %188

188:                                              ; preds = %235, %178
  %189 = load i64, ptr %18, align 8, !tbaa !8
  %190 = icmp slt i64 %189, 5
  br i1 %190, label %192, label %191

191:                                              ; preds = %188
  store i32 28, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %238

192:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %193 = load i64, ptr %13, align 8, !tbaa !8
  %194 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %193
  %195 = load i64, ptr %18, align 8, !tbaa !8
  %196 = getelementptr inbounds [5 x %"class.std::vector"], ptr %194, i64 0, i64 %195
  store ptr %196, ptr %19, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %197 = load ptr, ptr %19, align 8, !tbaa !19
  %198 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %197) #8
  %199 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %198, ptr %199, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %200 = load ptr, ptr %19, align 8, !tbaa !19
  %201 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %200) #8
  %202 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %201, ptr %202, align 8
  br label %203

203:                                              ; preds = %219, %192
  %204 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br i1 %204, label %206, label %205

205:                                              ; preds = %203
  store i32 31, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %221

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %208 = load i64, ptr %207, align 8, !tbaa !8
  store i64 %208, ptr %22, align 8, !tbaa !8
  %209 = load i64, ptr %13, align 8, !tbaa !8
  %210 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %209
  %211 = load i64, ptr %18, align 8, !tbaa !8
  %212 = getelementptr inbounds [5 x [50 x [5 x i64]]], ptr %210, i64 0, i64 %211
  %213 = load i64, ptr %22, align 8, !tbaa !8
  %214 = getelementptr inbounds [50 x [5 x i64]], ptr %212, i64 0, i64 %213
  %215 = getelementptr inbounds [5 x i64], ptr %214, i64 0, i64 0
  %216 = load i64, ptr %22, align 8, !tbaa !8
  %217 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %216
  %218 = load i64, ptr %217, align 8, !tbaa !8
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %215, i64 noundef %218)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %219

219:                                              ; preds = %206
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %203

221:                                              ; preds = %205
  %222 = load i64, ptr %18, align 8, !tbaa !8
  %223 = icmp slt i64 %222, 4
  br i1 %223, label %224, label %234

224:                                              ; preds = %221
  %225 = load i64, ptr %13, align 8, !tbaa !8
  %226 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %225
  %227 = load i64, ptr %18, align 8, !tbaa !8
  %228 = getelementptr inbounds [5 x [50 x [5 x i64]]], ptr %226, i64 0, i64 %227
  %229 = load i64, ptr %13, align 8, !tbaa !8
  %230 = getelementptr inbounds [50 x [5 x i64]], ptr %228, i64 0, i64 %229
  %231 = load i64, ptr %18, align 8, !tbaa !8
  %232 = add nsw i64 %231, 1
  %233 = getelementptr inbounds [5 x i64], ptr %230, i64 0, i64 %232
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %233, i64 noundef 0)
  br label %234

234:                                              ; preds = %224, %221
  br label %235

235:                                              ; preds = %234
  %236 = load i64, ptr %18, align 8, !tbaa !8
  %237 = add nsw i64 %236, 1
  store i64 %237, ptr %18, align 8, !tbaa !8
  br label %188, !llvm.loop !21

238:                                              ; preds = %191
  br label %239

239:                                              ; preds = %238
  %240 = load i64, ptr %13, align 8, !tbaa !8
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %13, align 8, !tbaa !8
  br label %142, !llvm.loop !22

242:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store i64 1, ptr %23, align 8, !tbaa !8
  br label %243

243:                                              ; preds = %365, %242
  %244 = load i64, ptr %23, align 8, !tbaa !8
  %245 = icmp slt i64 %244, 30
  br i1 %245, label %247, label %246

246:                                              ; preds = %243
  store i32 33, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %368

247:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !8
  br label %248

248:                                              ; preds = %361, %247
  %249 = load i64, ptr %24, align 8, !tbaa !8
  %250 = load i64, ptr @N, align 8, !tbaa !8
  %251 = icmp slt i64 %249, %250
  br i1 %251, label %253, label %252

252:                                              ; preds = %248
  store i32 36, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %364

253:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store i64 0, ptr %25, align 8, !tbaa !8
  br label %254

254:                                              ; preds = %357, %253
  %255 = load i64, ptr %25, align 8, !tbaa !8
  %256 = icmp slt i64 %255, 5
  br i1 %256, label %258, label %257

257:                                              ; preds = %254
  store i32 39, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %360

258:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store i64 0, ptr %26, align 8, !tbaa !8
  br label %259

259:                                              ; preds = %353, %258
  %260 = load i64, ptr %26, align 8, !tbaa !8
  %261 = load i64, ptr @N, align 8, !tbaa !8
  %262 = icmp slt i64 %260, %261
  br i1 %262, label %264, label %263

263:                                              ; preds = %259
  store i32 42, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %356

264:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  store i64 0, ptr %27, align 8, !tbaa !8
  br label %265

265:                                              ; preds = %349, %264
  %266 = load i64, ptr %27, align 8, !tbaa !8
  %267 = icmp slt i64 %266, 5
  br i1 %267, label %269, label %268

268:                                              ; preds = %265
  store i32 45, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %352

269:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %270 = load i64, ptr %23, align 8, !tbaa !8
  %271 = sub nsw i64 %270, 1
  %272 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %271
  %273 = load i64, ptr %24, align 8, !tbaa !8
  %274 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr %272, i64 0, i64 %273
  %275 = load i64, ptr %25, align 8, !tbaa !8
  %276 = getelementptr inbounds [5 x [50 x [5 x i64]]], ptr %274, i64 0, i64 %275
  %277 = load i64, ptr %26, align 8, !tbaa !8
  %278 = getelementptr inbounds [50 x [5 x i64]], ptr %276, i64 0, i64 %277
  %279 = load i64, ptr %27, align 8, !tbaa !8
  %280 = getelementptr inbounds [5 x i64], ptr %278, i64 0, i64 %279
  %281 = load i64, ptr %280, align 8, !tbaa !8
  store i64 %281, ptr %28, align 8, !tbaa !8
  %282 = load i64, ptr %28, align 8, !tbaa !8
  %283 = icmp slt i64 %282, 0
  br i1 %283, label %284, label %285

284:                                              ; preds = %269
  store i32 47, ptr %8, align 4
  br label %346

285:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store i64 0, ptr %29, align 8, !tbaa !8
  br label %286

286:                                              ; preds = %342, %285
  %287 = load i64, ptr %29, align 8, !tbaa !8
  %288 = load i64, ptr @N, align 8, !tbaa !8
  %289 = icmp slt i64 %287, %288
  br i1 %289, label %291, label %290

290:                                              ; preds = %286
  store i32 48, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %345

291:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  store i64 0, ptr %30, align 8, !tbaa !8
  br label %292

292:                                              ; preds = %338, %291
  %293 = load i64, ptr %30, align 8, !tbaa !8
  %294 = icmp slt i64 %293, 5
  br i1 %294, label %296, label %295

295:                                              ; preds = %292
  store i32 51, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %341

296:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %297 = load i64, ptr %23, align 8, !tbaa !8
  %298 = sub nsw i64 %297, 1
  %299 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %298
  %300 = load i64, ptr %26, align 8, !tbaa !8
  %301 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr %299, i64 0, i64 %300
  %302 = load i64, ptr %27, align 8, !tbaa !8
  %303 = getelementptr inbounds [5 x [50 x [5 x i64]]], ptr %301, i64 0, i64 %302
  %304 = load i64, ptr %29, align 8, !tbaa !8
  %305 = getelementptr inbounds [50 x [5 x i64]], ptr %303, i64 0, i64 %304
  %306 = load i64, ptr %30, align 8, !tbaa !8
  %307 = getelementptr inbounds [5 x i64], ptr %305, i64 0, i64 %306
  %308 = load i64, ptr %307, align 8, !tbaa !8
  store i64 %308, ptr %31, align 8, !tbaa !8
  %309 = load i64, ptr %31, align 8, !tbaa !8
  %310 = icmp slt i64 %309, 0
  br i1 %310, label %311, label %312

311:                                              ; preds = %296
  store i32 53, ptr %8, align 4
  br label %335

312:                                              ; preds = %296
  %313 = load i64, ptr %27, align 8, !tbaa !8
  %314 = icmp eq i64 %313, 0
  br i1 %314, label %315, label %321

315:                                              ; preds = %312
  %316 = load i64, ptr %26, align 8, !tbaa !8
  %317 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %316
  %318 = load i64, ptr %317, align 8, !tbaa !8
  %319 = load i64, ptr %31, align 8, !tbaa !8
  %320 = sub nsw i64 %319, %318
  store i64 %320, ptr %31, align 8, !tbaa !8
  br label %321

321:                                              ; preds = %315, %312
  %322 = load i64, ptr %23, align 8, !tbaa !8
  %323 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %322
  %324 = load i64, ptr %24, align 8, !tbaa !8
  %325 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr %323, i64 0, i64 %324
  %326 = load i64, ptr %25, align 8, !tbaa !8
  %327 = getelementptr inbounds [5 x [50 x [5 x i64]]], ptr %325, i64 0, i64 %326
  %328 = load i64, ptr %29, align 8, !tbaa !8
  %329 = getelementptr inbounds [50 x [5 x i64]], ptr %327, i64 0, i64 %328
  %330 = load i64, ptr %30, align 8, !tbaa !8
  %331 = getelementptr inbounds [5 x i64], ptr %329, i64 0, i64 %330
  %332 = load i64, ptr %28, align 8, !tbaa !8
  %333 = load i64, ptr %31, align 8, !tbaa !8
  %334 = add nsw i64 %332, %333
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %331, i64 noundef %334)
  store i32 0, ptr %8, align 4
  br label %335

335:                                              ; preds = %321, %311
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  %336 = load i32, ptr %8, align 4
  switch i32 %336, label %489 [
    i32 0, label %337
    i32 53, label %338
  ]

337:                                              ; preds = %335
  br label %338

338:                                              ; preds = %337, %335
  %339 = load i64, ptr %30, align 8, !tbaa !8
  %340 = add nsw i64 %339, 1
  store i64 %340, ptr %30, align 8, !tbaa !8
  br label %292, !llvm.loop !23

341:                                              ; preds = %295
  br label %342

342:                                              ; preds = %341
  %343 = load i64, ptr %29, align 8, !tbaa !8
  %344 = add nsw i64 %343, 1
  store i64 %344, ptr %29, align 8, !tbaa !8
  br label %286, !llvm.loop !24

345:                                              ; preds = %290
  store i32 0, ptr %8, align 4
  br label %346

346:                                              ; preds = %345, %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  %347 = load i32, ptr %8, align 4
  switch i32 %347, label %489 [
    i32 0, label %348
    i32 47, label %349
  ]

348:                                              ; preds = %346
  br label %349

349:                                              ; preds = %348, %346
  %350 = load i64, ptr %27, align 8, !tbaa !8
  %351 = add nsw i64 %350, 1
  store i64 %351, ptr %27, align 8, !tbaa !8
  br label %265, !llvm.loop !25

352:                                              ; preds = %268
  br label %353

353:                                              ; preds = %352
  %354 = load i64, ptr %26, align 8, !tbaa !8
  %355 = add nsw i64 %354, 1
  store i64 %355, ptr %26, align 8, !tbaa !8
  br label %259, !llvm.loop !26

356:                                              ; preds = %263
  br label %357

357:                                              ; preds = %356
  %358 = load i64, ptr %25, align 8, !tbaa !8
  %359 = add nsw i64 %358, 1
  store i64 %359, ptr %25, align 8, !tbaa !8
  br label %254, !llvm.loop !27

360:                                              ; preds = %257
  br label %361

361:                                              ; preds = %360
  %362 = load i64, ptr %24, align 8, !tbaa !8
  %363 = add nsw i64 %362, 1
  store i64 %363, ptr %24, align 8, !tbaa !8
  br label %248, !llvm.loop !28

364:                                              ; preds = %252
  br label %365

365:                                              ; preds = %364
  %366 = load i64, ptr %23, align 8, !tbaa !8
  %367 = add nsw i64 %366, 1
  store i64 %367, ptr %23, align 8, !tbaa !8
  br label %243, !llvm.loop !29

368:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store i64 0, ptr %32, align 8, !tbaa !8
  br label %369

369:                                              ; preds = %392, %368
  %370 = load i64, ptr %32, align 8, !tbaa !8
  %371 = load i64, ptr @K, align 8, !tbaa !8
  %372 = icmp slt i64 %370, %371
  br i1 %372, label %374, label %373

373:                                              ; preds = %369
  store i32 54, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %395

374:                                              ; preds = %369
  %375 = load i64, ptr %32, align 8, !tbaa !8
  %376 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %375
  %377 = getelementptr inbounds %struct.fest, ptr %376, i32 0, i32 0
  %378 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %377)
  %379 = load i64, ptr %32, align 8, !tbaa !8
  %380 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %379
  %381 = getelementptr inbounds %struct.fest, ptr %380, i32 0, i32 1
  %382 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %378, ptr noundef nonnull align 8 dereferenceable(8) %381)
  %383 = load i64, ptr %32, align 8, !tbaa !8
  %384 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %383
  %385 = getelementptr inbounds %struct.fest, ptr %384, i32 0, i32 2
  %386 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %382, ptr noundef nonnull align 8 dereferenceable(8) %385)
  %387 = load i64, ptr %32, align 8, !tbaa !8
  %388 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %387
  %389 = getelementptr inbounds %struct.fest, ptr %388, i32 0, i32 1
  %390 = load i64, ptr %389, align 8, !tbaa !30
  %391 = add nsw i64 %390, -1
  store i64 %391, ptr %389, align 8, !tbaa !30
  br label %392

392:                                              ; preds = %374
  %393 = load i64, ptr %32, align 8, !tbaa !8
  %394 = add nsw i64 %393, 1
  store i64 %394, ptr %32, align 8, !tbaa !8
  br label %369, !llvm.loop !32

395:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  %396 = getelementptr inbounds %struct.fest, ptr %33, i32 0, i32 0
  %397 = load i64, ptr @T, align 8, !tbaa !8
  store i64 %397, ptr %396, align 8, !tbaa !33
  %398 = getelementptr inbounds %struct.fest, ptr %33, i32 0, i32 1
  store i64 0, ptr %398, align 8, !tbaa !30
  %399 = getelementptr inbounds %struct.fest, ptr %33, i32 0, i32 2
  store i64 0, ptr %399, align 8, !tbaa !34
  %400 = load i64, ptr @K, align 8, !tbaa !8
  %401 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %400
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %401, ptr align 8 %33, i64 24, i1 false), !tbaa.struct !35
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  %402 = load i64, ptr @K, align 8, !tbaa !8
  %403 = getelementptr inbounds %struct.fest, ptr @F, i64 %402
  %404 = getelementptr inbounds %struct.fest, ptr %403, i64 1
  call void @"_ZSt4sortIP4festZ4mainE3$_0EvT_S3_T0_"(ptr noundef @F, ptr noundef %404)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  store i64 0, ptr %35, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  store i64 0, ptr %36, align 8, !tbaa !8
  br label %405

405:                                              ; preds = %424, %395
  %406 = load i64, ptr %36, align 8, !tbaa !8
  %407 = load i64, ptr @N, align 8, !tbaa !8
  %408 = icmp slt i64 %406, %407
  br i1 %408, label %410, label %409

409:                                              ; preds = %405
  store i32 57, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %427

410:                                              ; preds = %405
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  store i64 0, ptr %37, align 8, !tbaa !8
  br label %411

411:                                              ; preds = %420, %410
  %412 = load i64, ptr %37, align 8, !tbaa !8
  %413 = icmp slt i64 %412, 5
  br i1 %413, label %415, label %414

414:                                              ; preds = %411
  store i32 60, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %423

415:                                              ; preds = %411
  %416 = load i64, ptr %36, align 8, !tbaa !8
  %417 = getelementptr inbounds [50 x [5 x i64]], ptr @H, i64 0, i64 %416
  %418 = load i64, ptr %37, align 8, !tbaa !8
  %419 = getelementptr inbounds [5 x i64], ptr %417, i64 0, i64 %418
  store i64 -100000000000000, ptr %419, align 8, !tbaa !8
  br label %420

420:                                              ; preds = %415
  %421 = load i64, ptr %37, align 8, !tbaa !8
  %422 = add nsw i64 %421, 1
  store i64 %422, ptr %37, align 8, !tbaa !8
  br label %411, !llvm.loop !36

423:                                              ; preds = %414
  br label %424

424:                                              ; preds = %423
  %425 = load i64, ptr %36, align 8, !tbaa !8
  %426 = add nsw i64 %425, 1
  store i64 %426, ptr %36, align 8, !tbaa !8
  br label %405, !llvm.loop !37

427:                                              ; preds = %409
  %428 = load i64, ptr @C, align 16, !tbaa !8
  store i64 %428, ptr @H, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  store i64 0, ptr %38, align 8, !tbaa !8
  br label %429

429:                                              ; preds = %475, %427
  %430 = load i64, ptr %38, align 8, !tbaa !8
  %431 = load i64, ptr @K, align 8, !tbaa !8
  %432 = add nsw i64 %431, 1
  %433 = icmp slt i64 %430, %432
  br i1 %433, label %435, label %434

434:                                              ; preds = %429
  store i32 63, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %478

435:                                              ; preds = %429
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %436 = load i64, ptr %38, align 8, !tbaa !8
  %437 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %436
  %438 = getelementptr inbounds %struct.fest, ptr %437, i32 0, i32 0
  %439 = load i64, ptr %438, align 8, !tbaa !33
  %440 = load i64, ptr %35, align 8, !tbaa !8
  %441 = sub nsw i64 %439, %440
  store i64 %441, ptr %39, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  store i64 0, ptr %40, align 8, !tbaa !8
  br label %442

442:                                              ; preds = %455, %435
  %443 = load i64, ptr %40, align 8, !tbaa !8
  %444 = icmp slt i64 %443, 30
  br i1 %444, label %446, label %445

445:                                              ; preds = %442
  store i32 66, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %458

446:                                              ; preds = %442
  %447 = load i64, ptr %39, align 8, !tbaa !8
  %448 = load i64, ptr %40, align 8, !tbaa !8
  %449 = ashr i64 %447, %448
  %450 = and i64 %449, 1
  %451 = icmp ne i64 %450, 0
  br i1 %451, label %452, label %454

452:                                              ; preds = %446
  %453 = load i64, ptr %40, align 8, !tbaa !8
  call void @_Z3addx(i64 noundef %453)
  br label %454

454:                                              ; preds = %452, %446
  br label %455

455:                                              ; preds = %454
  %456 = load i64, ptr %40, align 8, !tbaa !8
  %457 = add nsw i64 %456, 1
  store i64 %457, ptr %40, align 8, !tbaa !8
  br label %442, !llvm.loop !38

458:                                              ; preds = %445
  %459 = load i64, ptr %38, align 8, !tbaa !8
  %460 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %459
  %461 = getelementptr inbounds %struct.fest, ptr %460, i32 0, i32 2
  %462 = load i64, ptr %461, align 8, !tbaa !34
  %463 = load i64, ptr %38, align 8, !tbaa !8
  %464 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %463
  %465 = getelementptr inbounds %struct.fest, ptr %464, i32 0, i32 1
  %466 = load i64, ptr %465, align 8, !tbaa !30
  %467 = getelementptr inbounds [50 x [5 x i64]], ptr @H, i64 0, i64 %466
  %468 = getelementptr inbounds [5 x i64], ptr %467, i64 0, i64 0
  %469 = load i64, ptr %468, align 8, !tbaa !8
  %470 = add nsw i64 %469, %462
  store i64 %470, ptr %468, align 8, !tbaa !8
  %471 = load i64, ptr %38, align 8, !tbaa !8
  %472 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %471
  %473 = getelementptr inbounds %struct.fest, ptr %472, i32 0, i32 0
  %474 = load i64, ptr %473, align 8, !tbaa !33
  store i64 %474, ptr %35, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %475

475:                                              ; preds = %458
  %476 = load i64, ptr %38, align 8, !tbaa !8
  %477 = add nsw i64 %476, 1
  store i64 %477, ptr %38, align 8, !tbaa !8
  br label %429, !llvm.loop !39

478:                                              ; preds = %434
  %479 = load i64, ptr @H, align 16, !tbaa !8
  %480 = icmp slt i64 %479, 0
  br i1 %480, label %481, label %482

481:                                              ; preds = %478
  br label %484

482:                                              ; preds = %478
  %483 = load i64, ptr @H, align 16, !tbaa !8
  br label %484

484:                                              ; preds = %482, %481
  %485 = phi i64 [ -1, %481 ], [ %483, %482 ]
  %486 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %485)
  %487 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %486, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  %488 = load i32, ptr %1, align 4
  ret i32 %488

489:                                              ; preds = %346, %335
  unreachable
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 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) #6

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIP4festZ4mainE3$_0EvT_S3_T0_"(ptr noundef, ptr noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #7

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

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.fest = type { i64, i64, i64 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@T = external dso_local global i64, align 8
@K = external dso_local global i64, align 8
@C = external dso_local global [50 x i64], align 16
@A = external dso_local global [30 x [50 x [5 x [50 x [5 x i64]]]]], align 16
@H = external dso_local local_unnamed_addr global [50 x [5 x i64]], align 16
@G = external dso_local global [50 x [5 x %"class.std::vector"]], align 16
@F = external dso_local global [201 x %struct.fest], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3addx(i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %10
  %12 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %11, ptr noundef null)
  %13 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) @T)
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) @K)
  %18 = load i64, ptr @N, align 8, !tbaa !8
  %19 = icmp sgt i64 %18, 0
  br i1 %19, label %.lr.ph, label %.preheader148

.preheader148:                                    ; preds = %.lr.ph, %0
  %20 = load i64, ptr @M, align 8, !tbaa !8
  %21 = icmp sgt i64 %20, 0
  br i1 %21, label %.lr.ph151, label %.preheader146.preheader

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.0107149 = phi i64 [ %24, %.lr.ph ], [ 0, %0 ]
  %22 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %.0107149
  %23 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %24 = add nuw nsw i64 %.0107149, 1
  %25 = load i64, ptr @N, align 8, !tbaa !8
  %26 = icmp slt i64 %24, %25
  br i1 %26, label %.lr.ph, label %.preheader148, !llvm.loop !11

.lr.ph151:                                        ; preds = %.preheader148, %.lr.ph151
  %.0112150 = phi i64 [ %37, %.lr.ph151 ], [ 0, %.preheader148 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %30 = load i64, ptr %1, align 8, !tbaa !8
  %31 = add nsw i64 %30, -1
  store i64 %31, ptr %1, align 8, !tbaa !8
  %32 = load i64, ptr %2, align 8, !tbaa !8
  %33 = add nsw i64 %32, -1
  store i64 %33, ptr %2, align 8, !tbaa !8
  %34 = load i64, ptr %3, align 8, !tbaa !8
  %35 = add nsw i64 %34, -1
  store i64 %35, ptr %3, align 8, !tbaa !8
  %36 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %31, i64 %35
  call void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  %37 = add nuw nsw i64 %.0112150, 1
  %38 = load i64, ptr @M, align 8, !tbaa !8
  %39 = icmp slt i64 %37, %38
  br i1 %39, label %.lr.ph151, label %.preheader146.preheader, !llvm.loop !13

.preheader146.preheader:                          ; preds = %.lr.ph151, %.preheader148
  br label %.preheader146

.preheader146:                                    ; preds = %.preheader146.preheader, %42
  %.0113156 = phi i64 [ %43, %42 ], [ 0, %.preheader146.preheader ]
  br label %.preheader145

.preheader142:                                    ; preds = %42
  %40 = load i64, ptr @N, align 8
  %41 = icmp sgt i64 %40, 0
  br i1 %41, label %.lr.ph163, label %.preheader134

.preheader145:                                    ; preds = %.preheader146, %74
  %.0118155 = phi i64 [ 0, %.preheader146 ], [ %75, %74 ]
  br label %.preheader143

42:                                               ; preds = %74
  %43 = add nuw nsw i64 %.0113156, 1
  %exitcond199.not = icmp eq i64 %43, 30
  br i1 %exitcond199.not, label %.preheader142, label %.preheader146, !llvm.loop !14

.preheader143:                                    ; preds = %.preheader145, %.preheader143
  %.0125153 = phi i64 [ 0, %.preheader145 ], [ %49, %.preheader143 ]
  %44 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 0, i64 %.0125153, i64 0
  store i64 -100000000000000, ptr %44, align 8, !tbaa !8
  %45 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 0, i64 %.0125153, i64 1
  store i64 -100000000000000, ptr %45, align 8, !tbaa !8
  %46 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 0, i64 %.0125153, i64 2
  store i64 -100000000000000, ptr %46, align 8, !tbaa !8
  %47 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 0, i64 %.0125153, i64 3
  store i64 -100000000000000, ptr %47, align 8, !tbaa !8
  %48 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 0, i64 %.0125153, i64 4
  store i64 -100000000000000, ptr %48, align 8, !tbaa !8
  %49 = add nuw nsw i64 %.0125153, 1
  %exitcond.not = icmp eq i64 %49, 50
  br i1 %exitcond.not, label %.preheader143.1, label %.preheader143, !llvm.loop !15

.preheader143.1:                                  ; preds = %.preheader143, %.preheader143.1
  %.0125153.1 = phi i64 [ %55, %.preheader143.1 ], [ 0, %.preheader143 ]
  %50 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 1, i64 %.0125153.1, i64 0
  store i64 -100000000000000, ptr %50, align 8, !tbaa !8
  %51 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 1, i64 %.0125153.1, i64 1
  store i64 -100000000000000, ptr %51, align 8, !tbaa !8
  %52 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 1, i64 %.0125153.1, i64 2
  store i64 -100000000000000, ptr %52, align 8, !tbaa !8
  %53 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 1, i64 %.0125153.1, i64 3
  store i64 -100000000000000, ptr %53, align 8, !tbaa !8
  %54 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 1, i64 %.0125153.1, i64 4
  store i64 -100000000000000, ptr %54, align 8, !tbaa !8
  %55 = add nuw nsw i64 %.0125153.1, 1
  %exitcond.1.not = icmp eq i64 %55, 50
  br i1 %exitcond.1.not, label %.preheader143.2, label %.preheader143.1, !llvm.loop !15

.preheader143.2:                                  ; preds = %.preheader143.1, %.preheader143.2
  %.0125153.2 = phi i64 [ %61, %.preheader143.2 ], [ 0, %.preheader143.1 ]
  %56 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 2, i64 %.0125153.2, i64 0
  store i64 -100000000000000, ptr %56, align 8, !tbaa !8
  %57 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 2, i64 %.0125153.2, i64 1
  store i64 -100000000000000, ptr %57, align 8, !tbaa !8
  %58 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 2, i64 %.0125153.2, i64 2
  store i64 -100000000000000, ptr %58, align 8, !tbaa !8
  %59 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 2, i64 %.0125153.2, i64 3
  store i64 -100000000000000, ptr %59, align 8, !tbaa !8
  %60 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 2, i64 %.0125153.2, i64 4
  store i64 -100000000000000, ptr %60, align 8, !tbaa !8
  %61 = add nuw nsw i64 %.0125153.2, 1
  %exitcond.2.not = icmp eq i64 %61, 50
  br i1 %exitcond.2.not, label %.preheader143.3, label %.preheader143.2, !llvm.loop !15

.preheader143.3:                                  ; preds = %.preheader143.2, %.preheader143.3
  %.0125153.3 = phi i64 [ %67, %.preheader143.3 ], [ 0, %.preheader143.2 ]
  %62 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 3, i64 %.0125153.3, i64 0
  store i64 -100000000000000, ptr %62, align 8, !tbaa !8
  %63 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 3, i64 %.0125153.3, i64 1
  store i64 -100000000000000, ptr %63, align 8, !tbaa !8
  %64 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 3, i64 %.0125153.3, i64 2
  store i64 -100000000000000, ptr %64, align 8, !tbaa !8
  %65 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 3, i64 %.0125153.3, i64 3
  store i64 -100000000000000, ptr %65, align 8, !tbaa !8
  %66 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 3, i64 %.0125153.3, i64 4
  store i64 -100000000000000, ptr %66, align 8, !tbaa !8
  %67 = add nuw nsw i64 %.0125153.3, 1
  %exitcond.3.not = icmp eq i64 %67, 50
  br i1 %exitcond.3.not, label %.preheader143.4, label %.preheader143.3, !llvm.loop !15

.preheader143.4:                                  ; preds = %.preheader143.3, %.preheader143.4
  %.0125153.4 = phi i64 [ %73, %.preheader143.4 ], [ 0, %.preheader143.3 ]
  %68 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 4, i64 %.0125153.4, i64 0
  store i64 -100000000000000, ptr %68, align 8, !tbaa !8
  %69 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 4, i64 %.0125153.4, i64 1
  store i64 -100000000000000, ptr %69, align 8, !tbaa !8
  %70 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 4, i64 %.0125153.4, i64 2
  store i64 -100000000000000, ptr %70, align 8, !tbaa !8
  %71 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 4, i64 %.0125153.4, i64 3
  store i64 -100000000000000, ptr %71, align 8, !tbaa !8
  %72 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0113156, i64 %.0118155, i64 4, i64 %.0125153.4, i64 4
  store i64 -100000000000000, ptr %72, align 8, !tbaa !8
  %73 = add nuw nsw i64 %.0125153.4, 1
  %exitcond.4.not = icmp eq i64 %73, 50
  br i1 %exitcond.4.not, label %74, label %.preheader143.4, !llvm.loop !15

74:                                               ; preds = %.preheader143.4
  %75 = add nuw nsw i64 %.0118155, 1
  %exitcond198.not = icmp eq i64 %75, 50
  br i1 %exitcond198.not, label %42, label %.preheader145, !llvm.loop !16

.preheader141:                                    ; preds = %.loopexit211
  %76 = icmp sgt i64 %.pre, 0
  br i1 %76, label %.preheader140, label %.preheader134

.lr.ph163:                                        ; preds = %.preheader142, %.loopexit211
  %.0128162 = phi i64 [ %144, %.loopexit211 ], [ 0, %.preheader142 ]
  %77 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %.0128162
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %78 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
  store ptr %78, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %79 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #9
  store ptr %79, ptr %5, align 8
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br i1 %80, label %.lr.ph157, label %._crit_edge

.lr.ph157:                                        ; preds = %.lr.ph163
  %81 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162
  %82 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %.0128162
  br label %91

._crit_edge:                                      ; preds = %91, %.lr.ph163
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  %83 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162
  %84 = getelementptr inbounds [50 x [5 x i64]], ptr %83, i64 0, i64 %.0128162, i64 1
  %85 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %.0128162
  %86 = load i64, ptr %85, align 8, !tbaa !8
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %84, i64 noundef %86)
  %87 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %.0128162, i64 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %88 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  store ptr %88, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %89 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #9
  store ptr %89, ptr %7, align 8
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %90, label %.lr.ph159, label %.loopexit214

91:                                               ; preds = %.lr.ph157, %91
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %93 = load i64, ptr %92, align 8, !tbaa !8
  %94 = getelementptr inbounds [50 x [5 x i64]], ptr %81, i64 0, i64 %93
  %95 = load i64, ptr %82, align 8, !tbaa !8
  %96 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %93
  %97 = load i64, ptr %96, align 8, !tbaa !8
  %98 = add nsw i64 %97, %95
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %94, i64 noundef %98)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  br i1 %100, label %91, label %._crit_edge

.lr.ph159:                                        ; preds = %._crit_edge, %.lr.ph159
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %102 = load i64, ptr %101, align 8, !tbaa !8
  %103 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162, i64 1, i64 %102
  %104 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %102
  %105 = load i64, ptr %104, align 8, !tbaa !8
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %103, i64 noundef %105)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %107 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %107, label %.lr.ph159, label %.loopexit214

.loopexit214:                                     ; preds = %.lr.ph159, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %108 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162, i64 1, i64 %.0128162, i64 2
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %108, i64 noundef 0)
  %109 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %.0128162, i64 2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %110 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #9
  store ptr %110, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %111 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %109) #9
  store ptr %111, ptr %7, align 8
  %112 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %112, label %.lr.ph159.1, label %.loopexit213

.lr.ph159.1:                                      ; preds = %.loopexit214, %.lr.ph159.1
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %114 = load i64, ptr %113, align 8, !tbaa !8
  %115 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162, i64 2, i64 %114
  %116 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %114
  %117 = load i64, ptr %116, align 8, !tbaa !8
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %115, i64 noundef %117)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %119 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %119, label %.lr.ph159.1, label %.loopexit213

.loopexit213:                                     ; preds = %.lr.ph159.1, %.loopexit214
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %120 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162, i64 2, i64 %.0128162, i64 3
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %120, i64 noundef 0)
  %121 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %.0128162, i64 3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %122 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #9
  store ptr %122, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %123 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #9
  store ptr %123, ptr %7, align 8
  %124 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %124, label %.lr.ph159.2, label %.loopexit212

.lr.ph159.2:                                      ; preds = %.loopexit213, %.lr.ph159.2
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %126 = load i64, ptr %125, align 8, !tbaa !8
  %127 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162, i64 3, i64 %126
  %128 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %126
  %129 = load i64, ptr %128, align 8, !tbaa !8
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %127, i64 noundef %129)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %131 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %131, label %.lr.ph159.2, label %.loopexit212

.loopexit212:                                     ; preds = %.lr.ph159.2, %.loopexit213
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %132 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162, i64 3, i64 %.0128162, i64 4
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %132, i64 noundef 0)
  %133 = getelementptr inbounds [50 x [5 x %"class.std::vector"]], ptr @G, i64 0, i64 %.0128162, i64 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %134 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #9
  store ptr %134, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %135 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #9
  store ptr %135, ptr %7, align 8
  %136 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %136, label %.lr.ph159.3, label %.loopexit211

.lr.ph159.3:                                      ; preds = %.loopexit212, %.lr.ph159.3
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %138 = load i64, ptr %137, align 8, !tbaa !8
  %139 = getelementptr inbounds [50 x [5 x [50 x [5 x i64]]]], ptr @A, i64 0, i64 %.0128162, i64 4, i64 %138
  %140 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %138
  %141 = load i64, ptr %140, align 8, !tbaa !8
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %139, i64 noundef %141)
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  %143 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #9
  br i1 %143, label %.lr.ph159.3, label %.loopexit211

.loopexit211:                                     ; preds = %.lr.ph159.3, %.loopexit212
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %.pre = load i64, ptr @N, align 8
  %144 = add nuw nsw i64 %.0128162, 1
  %145 = icmp slt i64 %144, %.pre
  br i1 %145, label %.lr.ph163, label %.preheader141, !llvm.loop !17

.preheader140:                                    ; preds = %.preheader141, %._crit_edge175
  %146 = phi i64 [ %157, %._crit_edge175 ], [ %.pre, %.preheader141 ]
  %147 = phi i64 [ %158, %._crit_edge175 ], [ %.pre, %.preheader141 ]
  %148 = phi i64 [ %159, %._crit_edge175 ], [ %.pre, %.preheader141 ]
  %.0123176 = phi i64 [ %160, %._crit_edge175 ], [ 1, %.preheader141 ]
  %149 = icmp sgt i64 %148, 0
  br i1 %149, label %.preheader139.lr.ph, label %._crit_edge175

.preheader139.lr.ph:                              ; preds = %.preheader140
  %150 = add nsw i64 %.0123176, -1
  %151 = icmp sgt i64 %147, 0
  br i1 %151, label %.preheader139, label %._crit_edge175

.preheader134:                                    ; preds = %._crit_edge175, %.preheader142, %.preheader141
  %152 = load i64, ptr @K, align 8, !tbaa !8
  %153 = icmp sgt i64 %152, 0
  br i1 %153, label %.lr.ph179, label %._crit_edge180

.preheader139:                                    ; preds = %.preheader139.lr.ph, %.split173.us
  %154 = phi i64 [ %165, %.split173.us ], [ %146, %.preheader139.lr.ph ]
  %155 = phi i64 [ %165, %.split173.us ], [ %147, %.preheader139.lr.ph ]
  %.0122174 = phi i64 [ %166, %.split173.us ], [ 0, %.preheader139.lr.ph ]
  %156 = icmp sgt i64 %155, 0
  br i1 %156, label %.preheader138, label %.split173.us

._crit_edge175:                                   ; preds = %.split173.us, %.preheader139.lr.ph, %.preheader140
  %157 = phi i64 [ %146, %.preheader140 ], [ %146, %.preheader139.lr.ph ], [ %165, %.split173.us ]
  %158 = phi i64 [ %147, %.preheader140 ], [ %147, %.preheader139.lr.ph ], [ %165, %.split173.us ]
  %159 = phi i64 [ %148, %.preheader140 ], [ %147, %.preheader139.lr.ph ], [ %165, %.split173.us ]
  %160 = add nuw nsw i64 %.0123176, 1
  %exitcond205.not = icmp eq i64 %160, 30
  br i1 %exitcond205.not, label %.preheader134, label %.preheader140, !llvm.loop !18

.preheader138:                                    ; preds = %.preheader139, %._crit_edge170
  %161 = phi i64 [ %172, %._crit_edge170 ], [ %154, %.preheader139 ]
  %162 = phi i64 [ %173, %._crit_edge170 ], [ %155, %.preheader139 ]
  %163 = phi i64 [ %174, %._crit_edge170 ], [ %155, %.preheader139 ]
  %.0121171 = phi i64 [ %175, %._crit_edge170 ], [ 0, %.preheader139 ]
  %164 = icmp sgt i64 %163, 0
  br i1 %164, label %.preheader137, label %._crit_edge170

.split173.us:                                     ; preds = %._crit_edge170, %.preheader139
  %165 = phi i64 [ %154, %.preheader139 ], [ %172, %._crit_edge170 ]
  %166 = add nuw nsw i64 %.0122174, 1
  %167 = icmp slt i64 %166, %165
  br i1 %167, label %.preheader139, label %._crit_edge175, !llvm.loop !20

.preheader137:                                    ; preds = %.preheader138, %176
  %168 = phi i64 [ %272, %176 ], [ %161, %.preheader138 ]
  %169 = phi i64 [ %273, %176 ], [ %162, %.preheader138 ]
  %170 = phi i64 [ %273, %176 ], [ %163, %.preheader138 ]
  %.0120169 = phi i64 [ %177, %176 ], [ 0, %.preheader138 ]
  %171 = getelementptr inbounds [50 x i64], ptr @C, i64 0, i64 %.0120169
  br label %179

._crit_edge170:                                   ; preds = %176, %.preheader138
  %172 = phi i64 [ %161, %.preheader138 ], [ %272, %176 ]
  %173 = phi i64 [ %162, %.preheader138 ], [ %273, %176 ]
  %174 = phi i64 [ %163, %.preheader138 ], [ %273, %176 ]
  %175 = add nuw nsw i64 %.0121171, 1
  %exitcond204.not = icmp eq i64 %175, 5
  br i1 %exitcond204.not, label %.split173.us, label %.preheader138, !llvm.loop !21

176:                                              ; preds = %.loopexit
  %177 = add nuw nsw i64 %.0120169, 1
  %178 = icmp slt i64 %177, %273
  br i1 %178, label %.preheader137, label %._crit_edge170, !llvm.loop !22

179:                                              ; preds = %.preheader137, %.loopexit
  %180 = phi i64 [ %168, %.preheader137 ], [ %272, %.loopexit ]
  %181 = phi i64 [ %169, %.preheader137 ], [ %273, %.loopexit ]
  %182 = phi i64 [ %170, %.preheader137 ], [ %274, %.loopexit ]
  %.0119166 = phi i64 [ 0, %.preheader137 ], [ %275, %.loopexit ]
  %183 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0122174, i64 %.0121171, i64 %.0120169, i64 %.0119166
  %184 = load i64, ptr %183, align 8, !tbaa !8
  %185 = icmp sgt i64 %184, -1
  %186 = icmp sgt i64 %182, 0
  %or.cond = select i1 %185, i1 %186, i1 false
  br i1 %or.cond, label %.preheader135.lr.ph, label %.loopexit

.preheader135.lr.ph:                              ; preds = %179
  %187 = icmp eq i64 %.0119166, 0
  br i1 %187, label %.preheader135.us, label %.preheader135

.preheader135.us:                                 ; preds = %.preheader135.lr.ph, %.split.us.us
  %.0117165.us = phi i64 [ %232, %.split.us.us ], [ 0, %.preheader135.lr.ph ]
  %188 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 0, i64 %.0117165.us, i64 0
  %189 = load i64, ptr %188, align 8, !tbaa !8
  %190 = icmp slt i64 %189, 0
  br i1 %190, label %196, label %191

191:                                              ; preds = %.preheader135.us
  %192 = load i64, ptr %171, align 8, !tbaa !8
  %193 = sub nsw i64 %189, %192
  %194 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165.us, i64 0
  %195 = add nsw i64 %193, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %194, i64 noundef %195)
  br label %196

196:                                              ; preds = %191, %.preheader135.us
  %197 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 0, i64 %.0117165.us, i64 1
  %198 = load i64, ptr %197, align 8, !tbaa !8
  %199 = icmp slt i64 %198, 0
  br i1 %199, label %205, label %200

200:                                              ; preds = %196
  %201 = load i64, ptr %171, align 8, !tbaa !8
  %202 = sub nsw i64 %198, %201
  %203 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165.us, i64 1
  %204 = add nsw i64 %202, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %203, i64 noundef %204)
  br label %205

205:                                              ; preds = %200, %196
  %206 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 0, i64 %.0117165.us, i64 2
  %207 = load i64, ptr %206, align 8, !tbaa !8
  %208 = icmp slt i64 %207, 0
  br i1 %208, label %214, label %209

209:                                              ; preds = %205
  %210 = load i64, ptr %171, align 8, !tbaa !8
  %211 = sub nsw i64 %207, %210
  %212 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165.us, i64 2
  %213 = add nsw i64 %211, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %212, i64 noundef %213)
  br label %214

214:                                              ; preds = %209, %205
  %215 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 0, i64 %.0117165.us, i64 3
  %216 = load i64, ptr %215, align 8, !tbaa !8
  %217 = icmp slt i64 %216, 0
  br i1 %217, label %223, label %218

218:                                              ; preds = %214
  %219 = load i64, ptr %171, align 8, !tbaa !8
  %220 = sub nsw i64 %216, %219
  %221 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165.us, i64 3
  %222 = add nsw i64 %220, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %221, i64 noundef %222)
  br label %223

223:                                              ; preds = %218, %214
  %224 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 0, i64 %.0117165.us, i64 4
  %225 = load i64, ptr %224, align 8, !tbaa !8
  %226 = icmp slt i64 %225, 0
  br i1 %226, label %.split.us.us, label %227

227:                                              ; preds = %223
  %228 = load i64, ptr %171, align 8, !tbaa !8
  %229 = sub nsw i64 %225, %228
  %230 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165.us, i64 4
  %231 = add nsw i64 %229, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %230, i64 noundef %231)
  br label %.split.us.us

.split.us.us:                                     ; preds = %227, %223
  %232 = add nuw nsw i64 %.0117165.us, 1
  %233 = load i64, ptr @N, align 8
  %234 = icmp slt i64 %232, %233
  br i1 %234, label %.preheader135.us, label %.loopexit, !llvm.loop !23

.preheader135:                                    ; preds = %.preheader135.lr.ph, %.split
  %.0117165 = phi i64 [ %269, %.split ], [ 0, %.preheader135.lr.ph ]
  %235 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 %.0119166, i64 %.0117165, i64 0
  %236 = load i64, ptr %235, align 8, !tbaa !8
  %237 = icmp slt i64 %236, 0
  br i1 %237, label %241, label %238

238:                                              ; preds = %.preheader135
  %239 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165, i64 0
  %240 = add nuw nsw i64 %236, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %239, i64 noundef %240)
  br label %241

241:                                              ; preds = %.preheader135, %238
  %242 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 %.0119166, i64 %.0117165, i64 1
  %243 = load i64, ptr %242, align 8, !tbaa !8
  %244 = icmp slt i64 %243, 0
  br i1 %244, label %248, label %245

245:                                              ; preds = %241
  %246 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165, i64 1
  %247 = add nuw nsw i64 %243, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %246, i64 noundef %247)
  br label %248

248:                                              ; preds = %245, %241
  %249 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 %.0119166, i64 %.0117165, i64 2
  %250 = load i64, ptr %249, align 8, !tbaa !8
  %251 = icmp slt i64 %250, 0
  br i1 %251, label %255, label %252

252:                                              ; preds = %248
  %253 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165, i64 2
  %254 = add nuw nsw i64 %250, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %253, i64 noundef %254)
  br label %255

255:                                              ; preds = %252, %248
  %256 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 %.0119166, i64 %.0117165, i64 3
  %257 = load i64, ptr %256, align 8, !tbaa !8
  %258 = icmp slt i64 %257, 0
  br i1 %258, label %262, label %259

259:                                              ; preds = %255
  %260 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165, i64 3
  %261 = add nuw nsw i64 %257, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %260, i64 noundef %261)
  br label %262

262:                                              ; preds = %259, %255
  %263 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %150, i64 %.0120169, i64 %.0119166, i64 %.0117165, i64 4
  %264 = load i64, ptr %263, align 8, !tbaa !8
  %265 = icmp slt i64 %264, 0
  br i1 %265, label %.split, label %266

266:                                              ; preds = %262
  %267 = getelementptr inbounds [30 x [50 x [5 x [50 x [5 x i64]]]]], ptr @A, i64 0, i64 %.0123176, i64 %.0122174, i64 %.0121171, i64 %.0117165, i64 4
  %268 = add nuw nsw i64 %264, %184
  call void @_Z2mxRxx(ptr noundef nonnull align 8 dereferenceable(8) %267, i64 noundef %268)
  br label %.split

.split:                                           ; preds = %266, %262
  %269 = add nuw nsw i64 %.0117165, 1
  %270 = load i64, ptr @N, align 8
  %271 = icmp slt i64 %269, %270
  br i1 %271, label %.preheader135, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %.split, %.split.us.us, %179
  %272 = phi i64 [ %180, %179 ], [ %233, %.split.us.us ], [ %270, %.split ]
  %273 = phi i64 [ %181, %179 ], [ %233, %.split.us.us ], [ %270, %.split ]
  %274 = phi i64 [ %182, %179 ], [ %233, %.split.us.us ], [ %270, %.split ]
  %275 = add nuw nsw i64 %.0119166, 1
  %exitcond203.not = icmp eq i64 %275, 5
  br i1 %exitcond203.not, label %176, label %179, !llvm.loop !24

._crit_edge180:                                   ; preds = %.lr.ph179, %.preheader134
  %.lcssa = phi i64 [ %152, %.preheader134 ], [ %290, %.lr.ph179 ]
  %276 = load i64, ptr @T, align 8, !tbaa !8
  %277 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %.lcssa
  store i64 %276, ptr %277, align 8, !tbaa !8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %277, i64 8
  %278 = getelementptr inbounds i8, ptr %277, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.4.0..sroa_idx, i8 0, i64 16, i1 false)
  call void @"_ZSt4sortIP4festZ4mainE3$_0EvT_S3_T0_"(ptr noundef nonnull @F, ptr noundef nonnull %278)
  %279 = load i64, ptr @N, align 8, !tbaa !8
  %280 = icmp sgt i64 %279, 0
  br i1 %280, label %.preheader, label %._crit_edge183

.lr.ph179:                                        ; preds = %.preheader134, %.lr.ph179
  %.0114178 = phi i64 [ %289, %.lr.ph179 ], [ 0, %.preheader134 ]
  %281 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %.0114178
  %282 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %281)
  %283 = getelementptr inbounds i8, ptr %281, i64 8
  %284 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %282, ptr noundef nonnull align 8 dereferenceable(8) %283)
  %285 = getelementptr inbounds i8, ptr %281, i64 16
  %286 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %284, ptr noundef nonnull align 8 dereferenceable(8) %285)
  %287 = load i64, ptr %283, align 8, !tbaa !25
  %288 = add nsw i64 %287, -1
  store i64 %288, ptr %283, align 8, !tbaa !25
  %289 = add nuw nsw i64 %.0114178, 1
  %290 = load i64, ptr @K, align 8, !tbaa !8
  %291 = icmp slt i64 %289, %290
  br i1 %291, label %.lr.ph179, label %._crit_edge180, !llvm.loop !27

.preheader:                                       ; preds = %._crit_edge180, %.preheader
  %.0110182 = phi i64 [ %297, %.preheader ], [ 0, %._crit_edge180 ]
  %292 = getelementptr inbounds [50 x [5 x i64]], ptr @H, i64 0, i64 %.0110182, i64 0
  store i64 -100000000000000, ptr %292, align 8, !tbaa !8
  %293 = getelementptr inbounds [50 x [5 x i64]], ptr @H, i64 0, i64 %.0110182, i64 1
  store i64 -100000000000000, ptr %293, align 8, !tbaa !8
  %294 = getelementptr inbounds [50 x [5 x i64]], ptr @H, i64 0, i64 %.0110182, i64 2
  store i64 -100000000000000, ptr %294, align 8, !tbaa !8
  %295 = getelementptr inbounds [50 x [5 x i64]], ptr @H, i64 0, i64 %.0110182, i64 3
  store i64 -100000000000000, ptr %295, align 8, !tbaa !8
  %296 = getelementptr inbounds [50 x [5 x i64]], ptr @H, i64 0, i64 %.0110182, i64 4
  store i64 -100000000000000, ptr %296, align 8, !tbaa !8
  %297 = add nuw nsw i64 %.0110182, 1
  %exitcond207.not = icmp eq i64 %297, %279
  br i1 %exitcond207.not, label %._crit_edge183, label %.preheader, !llvm.loop !28

._crit_edge183:                                   ; preds = %.preheader, %._crit_edge180
  %298 = load i64, ptr @C, align 16, !tbaa !8
  store i64 %298, ptr @H, align 16, !tbaa !8
  %299 = load i64, ptr @K, align 8, !tbaa !8
  %.not185 = icmp slt i64 %299, 0
  br i1 %.not185, label %._crit_edge190, label %.lr.ph189

._crit_edge190.loopexit:                          ; preds = %396
  %.pre209 = load i64, ptr @H, align 16
  br label %._crit_edge190

._crit_edge190:                                   ; preds = %._crit_edge190.loopexit, %._crit_edge183
  %300 = phi i64 [ %.pre209, %._crit_edge190.loopexit ], [ %298, %._crit_edge183 ]
  %301 = call i64 @llvm.smax.i64(i64 %300, i64 -1)
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %301)
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %302, i8 noundef signext 10)
  ret i32 0

.lr.ph189:                                        ; preds = %._crit_edge183, %396
  %.0108187 = phi i64 [ %405, %396 ], [ 0, %._crit_edge183 ]
  %.0111186 = phi i64 [ %404, %396 ], [ 0, %._crit_edge183 ]
  %304 = getelementptr inbounds [201 x %struct.fest], ptr @F, i64 0, i64 %.0108187
  %305 = load i64, ptr %304, align 8, !tbaa !29
  %306 = sub nsw i64 %305, %.0111186
  %307 = and i64 %306, 1
  %.not132 = icmp eq i64 %307, 0
  br i1 %.not132, label %309, label %308

308:                                              ; preds = %.lr.ph189
  call void @_Z3addx(i64 noundef 0)
  br label %309

309:                                              ; preds = %.lr.ph189, %308
  %310 = and i64 %306, 2
  %.not132.1 = icmp eq i64 %310, 0
  br i1 %.not132.1, label %312, label %311

311:                                              ; preds = %309
  call void @_Z3addx(i64 noundef 1)
  br label %312

312:                                              ; preds = %311, %309
  %313 = and i64 %306, 4
  %.not132.2 = icmp eq i64 %313, 0
  br i1 %.not132.2, label %315, label %314

314:                                              ; preds = %312
  call void @_Z3addx(i64 noundef 2)
  br label %315

315:                                              ; preds = %314, %312
  %316 = and i64 %306, 8
  %.not132.3 = icmp eq i64 %316, 0
  br i1 %.not132.3, label %318, label %317

317:                                              ; preds = %315
  call void @_Z3addx(i64 noundef 3)
  br label %318

318:                                              ; preds = %317, %315
  %319 = and i64 %306, 16
  %.not132.4 = icmp eq i64 %319, 0
  br i1 %.not132.4, label %321, label %320

320:                                              ; preds = %318
  call void @_Z3addx(i64 noundef 4)
  br label %321

321:                                              ; preds = %320, %318
  %322 = and i64 %306, 32
  %.not132.5 = icmp eq i64 %322, 0
  br i1 %.not132.5, label %324, label %323

323:                                              ; preds = %321
  call void @_Z3addx(i64 noundef 5)
  br label %324

324:                                              ; preds = %323, %321
  %325 = and i64 %306, 64
  %.not132.6 = icmp eq i64 %325, 0
  br i1 %.not132.6, label %327, label %326

326:                                              ; preds = %324
  call void @_Z3addx(i64 noundef 6)
  br label %327

327:                                              ; preds = %326, %324
  %328 = and i64 %306, 128
  %.not132.7 = icmp eq i64 %328, 0
  br i1 %.not132.7, label %330, label %329

329:                                              ; preds = %327
  call void @_Z3addx(i64 noundef 7)
  br label %330

330:                                              ; preds = %329, %327
  %331 = and i64 %306, 256
  %.not132.8 = icmp eq i64 %331, 0
  br i1 %.not132.8, label %333, label %332

332:                                              ; preds = %330
  call void @_Z3addx(i64 noundef 8)
  br label %333

333:                                              ; preds = %332, %330
  %334 = and i64 %306, 512
  %.not132.9 = icmp eq i64 %334, 0
  br i1 %.not132.9, label %336, label %335

335:                                              ; preds = %333
  call void @_Z3addx(i64 noundef 9)
  br label %336

336:                                              ; preds = %335, %333
  %337 = and i64 %306, 1024
  %.not132.10 = icmp eq i64 %337, 0
  br i1 %.not132.10, label %339, label %338

338:                                              ; preds = %336
  call void @_Z3addx(i64 noundef 10)
  br label %339

339:                                              ; preds = %338, %336
  %340 = and i64 %306, 2048
  %.not132.11 = icmp eq i64 %340, 0
  br i1 %.not132.11, label %342, label %341

341:                                              ; preds = %339
  call void @_Z3addx(i64 noundef 11)
  br label %342

342:                                              ; preds = %341, %339
  %343 = and i64 %306, 4096
  %.not132.12 = icmp eq i64 %343, 0
  br i1 %.not132.12, label %345, label %344

344:                                              ; preds = %342
  call void @_Z3addx(i64 noundef 12)
  br label %345

345:                                              ; preds = %344, %342
  %346 = and i64 %306, 8192
  %.not132.13 = icmp eq i64 %346, 0
  br i1 %.not132.13, label %348, label %347

347:                                              ; preds = %345
  call void @_Z3addx(i64 noundef 13)
  br label %348

348:                                              ; preds = %347, %345
  %349 = and i64 %306, 16384
  %.not132.14 = icmp eq i64 %349, 0
  br i1 %.not132.14, label %351, label %350

350:                                              ; preds = %348
  call void @_Z3addx(i64 noundef 14)
  br label %351

351:                                              ; preds = %350, %348
  %352 = and i64 %306, 32768
  %.not132.15 = icmp eq i64 %352, 0
  br i1 %.not132.15, label %354, label %353

353:                                              ; preds = %351
  call void @_Z3addx(i64 noundef 15)
  br label %354

354:                                              ; preds = %353, %351
  %355 = and i64 %306, 65536
  %.not132.16 = icmp eq i64 %355, 0
  br i1 %.not132.16, label %357, label %356

356:                                              ; preds = %354
  call void @_Z3addx(i64 noundef 16)
  br label %357

357:                                              ; preds = %356, %354
  %358 = and i64 %306, 131072
  %.not132.17 = icmp eq i64 %358, 0
  br i1 %.not132.17, label %360, label %359

359:                                              ; preds = %357
  call void @_Z3addx(i64 noundef 17)
  br label %360

360:                                              ; preds = %359, %357
  %361 = and i64 %306, 262144
  %.not132.18 = icmp eq i64 %361, 0
  br i1 %.not132.18, label %363, label %362

362:                                              ; preds = %360
  call void @_Z3addx(i64 noundef 18)
  br label %363

363:                                              ; preds = %362, %360
  %364 = and i64 %306, 524288
  %.not132.19 = icmp eq i64 %364, 0
  br i1 %.not132.19, label %366, label %365

365:                                              ; preds = %363
  call void @_Z3addx(i64 noundef 19)
  br label %366

366:                                              ; preds = %365, %363
  %367 = and i64 %306, 1048576
  %.not132.20 = icmp eq i64 %367, 0
  br i1 %.not132.20, label %369, label %368

368:                                              ; preds = %366
  call void @_Z3addx(i64 noundef 20)
  br label %369

369:                                              ; preds = %368, %366
  %370 = and i64 %306, 2097152
  %.not132.21 = icmp eq i64 %370, 0
  br i1 %.not132.21, label %372, label %371

371:                                              ; preds = %369
  call void @_Z3addx(i64 noundef 21)
  br label %372

372:                                              ; preds = %371, %369
  %373 = and i64 %306, 4194304
  %.not132.22 = icmp eq i64 %373, 0
  br i1 %.not132.22, label %375, label %374

374:                                              ; preds = %372
  call void @_Z3addx(i64 noundef 22)
  br label %375

375:                                              ; preds = %374, %372
  %376 = and i64 %306, 8388608
  %.not132.23 = icmp eq i64 %376, 0
  br i1 %.not132.23, label %378, label %377

377:                                              ; preds = %375
  call void @_Z3addx(i64 noundef 23)
  br label %378

378:                                              ; preds = %377, %375
  %379 = and i64 %306, 16777216
  %.not132.24 = icmp eq i64 %379, 0
  br i1 %.not132.24, label %381, label %380

380:                                              ; preds = %378
  call void @_Z3addx(i64 noundef 24)
  br label %381

381:                                              ; preds = %380, %378
  %382 = and i64 %306, 33554432
  %.not132.25 = icmp eq i64 %382, 0
  br i1 %.not132.25, label %384, label %383

383:                                              ; preds = %381
  call void @_Z3addx(i64 noundef 25)
  br label %384

384:                                              ; preds = %383, %381
  %385 = and i64 %306, 67108864
  %.not132.26 = icmp eq i64 %385, 0
  br i1 %.not132.26, label %387, label %386

386:                                              ; preds = %384
  call void @_Z3addx(i64 noundef 26)
  br label %387

387:                                              ; preds = %386, %384
  %388 = and i64 %306, 134217728
  %.not132.27 = icmp eq i64 %388, 0
  br i1 %.not132.27, label %390, label %389

389:                                              ; preds = %387
  call void @_Z3addx(i64 noundef 27)
  br label %390

390:                                              ; preds = %389, %387
  %391 = and i64 %306, 268435456
  %.not132.28 = icmp eq i64 %391, 0
  br i1 %.not132.28, label %393, label %392

392:                                              ; preds = %390
  call void @_Z3addx(i64 noundef 28)
  br label %393

393:                                              ; preds = %392, %390
  %394 = and i64 %306, 536870912
  %.not132.29 = icmp eq i64 %394, 0
  br i1 %.not132.29, label %396, label %395

395:                                              ; preds = %393
  call void @_Z3addx(i64 noundef 29)
  br label %396

396:                                              ; preds = %395, %393
  %397 = getelementptr inbounds i8, ptr %304, i64 16
  %398 = load i64, ptr %397, align 8, !tbaa !30
  %399 = getelementptr inbounds i8, ptr %304, i64 8
  %400 = load i64, ptr %399, align 8, !tbaa !25
  %401 = getelementptr inbounds [50 x [5 x i64]], ptr @H, i64 0, i64 %400
  %402 = load i64, ptr %401, align 8, !tbaa !8
  %403 = add nsw i64 %402, %398
  store i64 %403, ptr %401, align 8, !tbaa !8
  %404 = load i64, ptr %304, align 8, !tbaa !29
  %405 = add nuw nsw i64 %.0108187, 1
  %406 = load i64, ptr @K, align 8, !tbaa !8
  %.not.not = icmp slt i64 %.0108187, %406
  br i1 %.not.not, label %.lr.ph189, label %._crit_edge190.loopexit, !llvm.loop !31
}

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt4sortIP4festZ4mainE3$_0EvT_S3_T0_"(ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 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 #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12, !19}
!19 = !{!"llvm.loop.unswitch.partial.disable"}
!20 = distinct !{!20, !12, !19}
!21 = distinct !{!21, !12, !19}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = !{!26, !9, i64 8}
!26 = !{!"_ZTS4fest", !9, i64 0, !9, i64 8, !9, i64 16}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = !{!26, !9, i64 0}
!30 = !{!26, !9, i64 16}
!31 = distinct !{!31, !12}


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