; LLVM IR from lzyrapx/Competitive-Programming :: 百度之星/2016复赛/1001.ll (Z5solvev)

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

%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::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" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@xmin = external dso_local global i32, align 4
@xmax = external dso_local global i32, align 4
@d = external dso_local global [50 x i32], align 16
@t = external dso_local global [50 x i32], align 16
@f = external dso_local global [50 x [50 x i32]], align 16
@g = external dso_local global [50 x [50 x [50 x i32]]], align 16
@Fa = external dso_local global [50 x i32], align 16
@Fb = external dso_local global [50 x i32], align 16
@H = external dso_local global %"class.std::map", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) @xmin)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(4) @xmax)
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @H) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #7
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %38, %0
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #7
  br label %41

33:                                               ; preds = %28
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %35
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %36)
  br label %38

38:                                               ; preds = %33
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %1, align 4, !tbaa !5
  br label %28, !llvm.loop !9

41:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %56, %41
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = load i32, ptr @m, align 4, !tbaa !5
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %42
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [50 x i32], ptr @d, i64 0, i64 %49
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %50)
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [50 x i32], ptr @d, i64 0, i64 %53
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @H, ptr noundef nonnull align 4 dereferenceable(4) %54)
  store i32 1, ptr %55, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %47
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %2, align 4, !tbaa !5
  br label %42, !llvm.loop !11

59:                                               ; preds = %46
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 0, i64 10000, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %83, %59
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = icmp sle i32 %61, %62
  br i1 %63, label %65, label %64

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

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %66 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %66, ptr %5, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %79, %65
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = load i32, ptr @n, align 4, !tbaa !5
  %70 = icmp sle i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %82

72:                                               ; preds = %67
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %74
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [50 x i32], ptr %75, i64 0, i64 %77
  store i32 1000000000, ptr %78, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %72
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %5, align 4, !tbaa !5
  br label %67, !llvm.loop !12

82:                                               ; preds = %71
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %3, align 4, !tbaa !5
  br label %60, !llvm.loop !13

86:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %88 = sub nsw i32 %87, 1
  store i32 %88, ptr %6, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %381, %86
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = icmp sge i32 %90, 1
  br i1 %91, label %93, label %92

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

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %323, %93
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = load i32, ptr @m, align 4, !tbaa !5
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %326

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %8, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %127, %99
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = load i32, ptr @n, align 4, !tbaa !5
  %105 = icmp sle i32 %103, %104
  br i1 %105, label %107, label %106

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

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

108:                                              ; preds = %123, %107
  %109 = load i32, ptr %9, align 4, !tbaa !5
  %110 = load i32, ptr @xmax, align 4, !tbaa !5
  %111 = icmp sle i32 %109, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %126

113:                                              ; preds = %108
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %115
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [50 x [50 x i32]], ptr %116, i64 0, i64 %118
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [50 x i32], ptr %119, i64 0, i64 %121
  store i32 1000000000, ptr %122, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %113
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %9, align 4, !tbaa !5
  br label %108, !llvm.loop !14

126:                                              ; preds = %112
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %8, align 4, !tbaa !5
  br label %102, !llvm.loop !15

130:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %131 = load i32, ptr %6, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %10, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %273, %130
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = load i32, ptr @n, align 4, !tbaa !5
  %136 = icmp sle i32 %134, %135
  br i1 %136, label %138, label %137

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

138:                                              ; preds = %133
  %139 = load i32, ptr %10, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = load i32, ptr %6, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = sub nsw i32 %142, %146
  %148 = load i32, ptr %7, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [50 x i32], ptr @d, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = icmp eq i32 %147, %151
  br i1 %152, label %153, label %178

153:                                              ; preds = %138
  %154 = load i32, ptr %6, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [50 x [50 x i32]], ptr getelementptr inbounds ([50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 2), i64 0, i64 %155
  %157 = load i32, ptr %10, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [50 x i32], ptr %156, i64 0, i64 %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %160 = load i32, ptr %6, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %162
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [50 x i32], ptr %163, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %11, align 4, !tbaa !5
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %159, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = load i32, ptr %6, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [50 x [50 x i32]], ptr getelementptr inbounds ([50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 2), i64 0, i64 %173
  %175 = load i32, ptr %10, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [50 x i32], ptr %174, i64 0, i64 %176
  store i32 %171, ptr %177, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %178

178:                                              ; preds = %153, %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %269, %178
  %180 = load i32, ptr %12, align 4, !tbaa !5
  %181 = load i32, ptr @xmax, align 4, !tbaa !5
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %272

184:                                              ; preds = %179
  %185 = load i32, ptr %12, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %186
  %188 = load i32, ptr %6, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [50 x [50 x i32]], ptr %187, i64 0, i64 %189
  %191 = load i32, ptr %10, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [50 x i32], ptr %190, i64 0, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = load i32, ptr @n, align 4, !tbaa !5
  %196 = icmp sle i32 %194, %195
  br i1 %196, label %197, label %268

197:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %198 = load i32, ptr %10, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %13, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %264, %197
  %201 = load i32, ptr %13, align 4, !tbaa !5
  %202 = load i32, ptr @n, align 4, !tbaa !5
  %203 = icmp sle i32 %201, %202
  br i1 %203, label %205, label %204

204:                                              ; preds = %200
  store i32 32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %267

205:                                              ; preds = %200
  %206 = load i32, ptr %10, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %210 = load i32, ptr %7, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [50 x i32], ptr @d, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = add nsw i32 %209, %213
  %215 = load i32, ptr %13, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !5
  %219 = icmp eq i32 %214, %218
  br i1 %219, label %220, label %263

220:                                              ; preds = %205
  %221 = load i32, ptr %12, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %223
  %225 = load i32, ptr %6, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [50 x [50 x i32]], ptr %224, i64 0, i64 %226
  %228 = load i32, ptr %13, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [50 x i32], ptr %227, i64 0, i64 %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %231 = load i32, ptr %12, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %232
  %234 = load i32, ptr %6, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [50 x [50 x i32]], ptr %233, i64 0, i64 %235
  %237 = load i32, ptr %10, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [50 x i32], ptr %236, i64 0, i64 %238
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = load i32, ptr %10, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %243
  %245 = load i32, ptr %13, align 4, !tbaa !5
  %246 = sub nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [50 x i32], ptr %244, i64 0, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = add nsw i32 %240, %249
  store i32 %250, ptr %14, align 4, !tbaa !5
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %230, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = load i32, ptr %12, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %255
  %257 = load i32, ptr %6, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [50 x [50 x i32]], ptr %256, i64 0, i64 %258
  %260 = load i32, ptr %13, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [50 x i32], ptr %259, i64 0, i64 %261
  store i32 %252, ptr %262, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %263

263:                                              ; preds = %220, %205
  br label %264

264:                                              ; preds = %263
  %265 = load i32, ptr %13, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %13, align 4, !tbaa !5
  br label %200, !llvm.loop !16

267:                                              ; preds = %204
  br label %268

268:                                              ; preds = %267, %184
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %12, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %12, align 4, !tbaa !5
  br label %179, !llvm.loop !17

272:                                              ; preds = %183
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %10, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %10, align 4, !tbaa !5
  br label %133, !llvm.loop !18

276:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %277 = load i32, ptr %6, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %15, align 4, !tbaa !5
  br label %279

279:                                              ; preds = %319, %276
  %280 = load i32, ptr %15, align 4, !tbaa !5
  %281 = load i32, ptr @n, align 4, !tbaa !5
  %282 = icmp sle i32 %280, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %279
  store i32 35, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %322

284:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %285 = load i32, ptr @xmin, align 4, !tbaa !5
  store i32 %285, ptr %16, align 4, !tbaa !5
  br label %286

286:                                              ; preds = %315, %284
  %287 = load i32, ptr %16, align 4, !tbaa !5
  %288 = load i32, ptr @xmax, align 4, !tbaa !5
  %289 = icmp sle i32 %287, %288
  br i1 %289, label %291, label %290

290:                                              ; preds = %286
  store i32 38, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %318

291:                                              ; preds = %286
  %292 = load i32, ptr %6, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %293
  %295 = load i32, ptr %15, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [50 x i32], ptr %294, i64 0, i64 %296
  %298 = load i32, ptr %16, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %299
  %301 = load i32, ptr %6, align 4, !tbaa !5
  %302 = sext i32 %301 to i64
  %303 = getelementptr inbounds [50 x [50 x i32]], ptr %300, i64 0, i64 %302
  %304 = load i32, ptr %15, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [50 x i32], ptr %303, i64 0, i64 %305
  %307 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %297, ptr noundef nonnull align 4 dereferenceable(4) %306)
  %308 = load i32, ptr %307, align 4, !tbaa !5
  %309 = load i32, ptr %6, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %310
  %312 = load i32, ptr %15, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [50 x i32], ptr %311, i64 0, i64 %313
  store i32 %308, ptr %314, align 4, !tbaa !5
  br label %315

315:                                              ; preds = %291
  %316 = load i32, ptr %16, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %16, align 4, !tbaa !5
  br label %286, !llvm.loop !19

318:                                              ; preds = %290
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %15, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %15, align 4, !tbaa !5
  br label %279, !llvm.loop !20

322:                                              ; preds = %283
  br label %323

323:                                              ; preds = %322
  %324 = load i32, ptr %7, align 4, !tbaa !5
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %7, align 4, !tbaa !5
  br label %94, !llvm.loop !21

326:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %327 = load i32, ptr %6, align 4, !tbaa !5
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %17, align 4, !tbaa !5
  br label %329

329:                                              ; preds = %377, %326
  %330 = load i32, ptr %17, align 4, !tbaa !5
  %331 = load i32, ptr @n, align 4, !tbaa !5
  %332 = icmp sle i32 %330, %331
  br i1 %332, label %334, label %333

333:                                              ; preds = %329
  store i32 41, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %380

334:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %335 = load i32, ptr %17, align 4, !tbaa !5
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %18, align 4, !tbaa !5
  br label %337

337:                                              ; preds = %373, %334
  %338 = load i32, ptr %18, align 4, !tbaa !5
  %339 = load i32, ptr @n, align 4, !tbaa !5
  %340 = icmp sle i32 %338, %339
  br i1 %340, label %342, label %341

341:                                              ; preds = %337
  store i32 44, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %376

342:                                              ; preds = %337
  %343 = load i32, ptr %6, align 4, !tbaa !5
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %344
  %346 = load i32, ptr %18, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [50 x i32], ptr %345, i64 0, i64 %347
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %349 = load i32, ptr %6, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %350
  %352 = load i32, ptr %17, align 4, !tbaa !5
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds [50 x i32], ptr %351, i64 0, i64 %353
  %355 = load i32, ptr %354, align 4, !tbaa !5
  %356 = load i32, ptr %17, align 4, !tbaa !5
  %357 = add nsw i32 %356, 1
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %358
  %360 = load i32, ptr %18, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [50 x i32], ptr %359, i64 0, i64 %361
  %363 = load i32, ptr %362, align 4, !tbaa !5
  %364 = add nsw i32 %355, %363
  store i32 %364, ptr %19, align 4, !tbaa !5
  %365 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %348, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %366 = load i32, ptr %365, align 4, !tbaa !5
  %367 = load i32, ptr %6, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %368
  %370 = load i32, ptr %18, align 4, !tbaa !5
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [50 x i32], ptr %369, i64 0, i64 %371
  store i32 %366, ptr %372, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %373

373:                                              ; preds = %342
  %374 = load i32, ptr %18, align 4, !tbaa !5
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %18, align 4, !tbaa !5
  br label %337, !llvm.loop !22

376:                                              ; preds = %341
  br label %377

377:                                              ; preds = %376
  %378 = load i32, ptr %17, align 4, !tbaa !5
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %17, align 4, !tbaa !5
  br label %329, !llvm.loop !23

380:                                              ; preds = %333
  br label %381

381:                                              ; preds = %380
  %382 = load i32, ptr %6, align 4, !tbaa !5
  %383 = add nsw i32 %382, -1
  store i32 %383, ptr %6, align 4, !tbaa !5
  br label %89, !llvm.loop !24

384:                                              ; preds = %92
  call void @llvm.memset.p0.i64(ptr align 16 @Fa, i8 0, i64 200, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @Fb, i8 0, i64 200, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %385

385:                                              ; preds = %517, %384
  %386 = load i32, ptr %20, align 4, !tbaa !5
  %387 = load i32, ptr @n, align 4, !tbaa !5
  %388 = icmp sle i32 %386, %387
  br i1 %388, label %390, label %389

389:                                              ; preds = %385
  store i32 47, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %520

390:                                              ; preds = %385
  %391 = load i32, ptr %20, align 4, !tbaa !5
  %392 = sub nsw i32 %391, 1
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %393
  %395 = load i32, ptr %394, align 4, !tbaa !5
  %396 = load i32, ptr %20, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %397
  %399 = load i32, ptr %398, align 4, !tbaa !5
  %400 = icmp sgt i32 %395, %399
  br i1 %400, label %423, label %401

401:                                              ; preds = %390
  %402 = load i32, ptr %20, align 4, !tbaa !5
  %403 = sub nsw i32 %402, 1
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %404
  %406 = load i32, ptr %405, align 4, !tbaa !5
  %407 = load i32, ptr %20, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %408
  %410 = load i32, ptr %409, align 4, !tbaa !5
  %411 = icmp eq i32 %406, %410
  br i1 %411, label %412, label %440

412:                                              ; preds = %401
  %413 = load i32, ptr %20, align 4, !tbaa !5
  %414 = sub nsw i32 %413, 1
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %415
  %417 = load i32, ptr %416, align 4, !tbaa !5
  %418 = load i32, ptr %20, align 4, !tbaa !5
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %419
  %421 = load i32, ptr %420, align 4, !tbaa !5
  %422 = icmp slt i32 %417, %421
  br i1 %422, label %423, label %440

423:                                              ; preds = %412, %390
  %424 = load i32, ptr %20, align 4, !tbaa !5
  %425 = sub nsw i32 %424, 1
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %426
  %428 = load i32, ptr %427, align 4, !tbaa !5
  %429 = load i32, ptr %20, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %430
  store i32 %428, ptr %431, align 4, !tbaa !5
  %432 = load i32, ptr %20, align 4, !tbaa !5
  %433 = sub nsw i32 %432, 1
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %434
  %436 = load i32, ptr %435, align 4, !tbaa !5
  %437 = load i32, ptr %20, align 4, !tbaa !5
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %438
  store i32 %436, ptr %439, align 4, !tbaa !5
  br label %440

440:                                              ; preds = %423, %412, %401
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %441 = load i32, ptr %20, align 4, !tbaa !5
  %442 = add nsw i32 %441, 1
  store i32 %442, ptr %21, align 4, !tbaa !5
  br label %443

443:                                              ; preds = %513, %440
  %444 = load i32, ptr %21, align 4, !tbaa !5
  %445 = load i32, ptr @n, align 4, !tbaa !5
  %446 = icmp sle i32 %444, %445
  br i1 %446, label %448, label %447

447:                                              ; preds = %443
  store i32 50, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %516

448:                                              ; preds = %443
  %449 = load i32, ptr %20, align 4, !tbaa !5
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %450
  %452 = load i32, ptr %21, align 4, !tbaa !5
  %453 = sext i32 %452 to i64
  %454 = getelementptr inbounds [50 x i32], ptr %451, i64 0, i64 %453
  %455 = load i32, ptr %454, align 4, !tbaa !5
  %456 = load i32, ptr @n, align 4, !tbaa !5
  %457 = icmp sle i32 %455, %456
  br i1 %457, label %458, label %512

458:                                              ; preds = %448
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %459 = load i32, ptr %20, align 4, !tbaa !5
  %460 = sub nsw i32 %459, 1
  %461 = sext i32 %460 to i64
  %462 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %461
  %463 = load i32, ptr %462, align 4, !tbaa !5
  %464 = load i32, ptr %21, align 4, !tbaa !5
  %465 = add nsw i32 %463, %464
  %466 = load i32, ptr %20, align 4, !tbaa !5
  %467 = sub nsw i32 %465, %466
  %468 = add nsw i32 %467, 1
  store i32 %468, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %469 = load i32, ptr %20, align 4, !tbaa !5
  %470 = sub nsw i32 %469, 1
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %471
  %473 = load i32, ptr %472, align 4, !tbaa !5
  %474 = load i32, ptr %20, align 4, !tbaa !5
  %475 = sext i32 %474 to i64
  %476 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %475
  %477 = load i32, ptr %21, align 4, !tbaa !5
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds [50 x i32], ptr %476, i64 0, i64 %478
  %480 = load i32, ptr %479, align 4, !tbaa !5
  %481 = add nsw i32 %473, %480
  store i32 %481, ptr %23, align 4, !tbaa !5
  %482 = load i32, ptr %22, align 4, !tbaa !5
  %483 = load i32, ptr %21, align 4, !tbaa !5
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %484
  %486 = load i32, ptr %485, align 4, !tbaa !5
  %487 = icmp sgt i32 %482, %486
  br i1 %487, label %502, label %488

488:                                              ; preds = %458
  %489 = load i32, ptr %22, align 4, !tbaa !5
  %490 = load i32, ptr %21, align 4, !tbaa !5
  %491 = sext i32 %490 to i64
  %492 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %491
  %493 = load i32, ptr %492, align 4, !tbaa !5
  %494 = icmp eq i32 %489, %493
  br i1 %494, label %495, label %511

495:                                              ; preds = %488
  %496 = load i32, ptr %23, align 4, !tbaa !5
  %497 = load i32, ptr %21, align 4, !tbaa !5
  %498 = sext i32 %497 to i64
  %499 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %498
  %500 = load i32, ptr %499, align 4, !tbaa !5
  %501 = icmp slt i32 %496, %500
  br i1 %501, label %502, label %511

502:                                              ; preds = %495, %458
  %503 = load i32, ptr %22, align 4, !tbaa !5
  %504 = load i32, ptr %21, align 4, !tbaa !5
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %505
  store i32 %503, ptr %506, align 4, !tbaa !5
  %507 = load i32, ptr %23, align 4, !tbaa !5
  %508 = load i32, ptr %21, align 4, !tbaa !5
  %509 = sext i32 %508 to i64
  %510 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %509
  store i32 %507, ptr %510, align 4, !tbaa !5
  br label %511

511:                                              ; preds = %502, %495, %488
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %512

512:                                              ; preds = %511, %448
  br label %513

513:                                              ; preds = %512
  %514 = load i32, ptr %21, align 4, !tbaa !5
  %515 = add nsw i32 %514, 1
  store i32 %515, ptr %21, align 4, !tbaa !5
  br label %443, !llvm.loop !25

516:                                              ; preds = %447
  br label %517

517:                                              ; preds = %516
  %518 = load i32, ptr %20, align 4, !tbaa !5
  %519 = add nsw i32 %518, 1
  store i32 %519, ptr %20, align 4, !tbaa !5
  br label %385, !llvm.loop !26

520:                                              ; preds = %389
  %521 = load i32, ptr @n, align 4, !tbaa !5
  %522 = sext i32 %521 to i64
  %523 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %522
  %524 = load i32, ptr %523, align 4, !tbaa !5
  %525 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %524)
  %526 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %525, ptr noundef @.str)
  %527 = load i32, ptr @n, align 4, !tbaa !5
  %528 = sext i32 %527 to i64
  %529 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %528
  %530 = load i32, ptr %529, align 4, !tbaa !5
  %531 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %526, i32 noundef %530)
  %532 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %531, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::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" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@xmin = external dso_local global i32, align 4
@xmax = external dso_local global i32, align 4
@d = external dso_local global [50 x i32], align 16
@t = external dso_local global [50 x i32], align 16
@f = external dso_local global [50 x [50 x i32]], align 16
@g = external dso_local global [50 x [50 x [50 x i32]]], align 16
@Fa = external dso_local local_unnamed_addr global [50 x i32], align 16
@Fb = external dso_local local_unnamed_addr global [50 x i32], align 16
@H = external dso_local global %"class.std::map", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(4) @xmin)
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) @xmax)
  tail call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @H) #7
  %8 = load i32, ptr @n, align 4
  %.not172 = icmp slt i32 %8, 1
  br i1 %.not172, label %.preheader170, label %.lr.ph

.preheader170:                                    ; preds = %.lr.ph, %0
  %9 = phi i32 [ %8, %0 ], [ %13, %.lr.ph ]
  %10 = load i32, ptr @m, align 4, !tbaa !5
  %.not143174 = icmp slt i32 %10, 1
  br i1 %.not143174, label %._crit_edge, label %.lr.ph176

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %11 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %indvars.iv
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr @n, align 4
  %14 = sext i32 %13 to i64
  %.not.not = icmp slt i64 %indvars.iv, %14
  br i1 %.not.not, label %.lr.ph, label %.preheader170, !llvm.loop !9

._crit_edge.loopexit:                             ; preds = %.lr.ph176
  %.pre = load i32, ptr @n, align 4
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader170
  %15 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %9, %.preheader170 ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(10000) @f, i8 0, i64 10000, i1 false)
  %.not144178 = icmp slt i32 %15, 1
  br i1 %.not144178, label %._crit_edge219.thread, label %.preheader169.preheader

._crit_edge219.thread:                            ; preds = %._crit_edge
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) @Fa, i8 0, i64 200, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) @Fb, i8 0, i64 200, i1 false)
  br label %._crit_edge219.._crit_edge228_crit_edge

.preheader169.preheader:                          ; preds = %._crit_edge
  %16 = add nuw i32 %15, 1
  %wide.trip.count242 = zext i32 %16 to i64
  %17 = zext nneg i32 %15 to i64
  br label %.preheader169

.lr.ph176:                                        ; preds = %.preheader170, %.lr.ph176
  %indvars.iv233 = phi i64 [ %indvars.iv.next234, %.lr.ph176 ], [ 1, %.preheader170 ]
  %18 = getelementptr inbounds [50 x i32], ptr @d, i64 0, i64 %indvars.iv233
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %20 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) @H, ptr noundef nonnull align 4 dereferenceable(4) %18)
  store i32 1, ptr %20, align 4, !tbaa !5
  %indvars.iv.next234 = add nuw nsw i64 %indvars.iv233, 1
  %21 = load i32, ptr @m, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %.not143.not = icmp slt i64 %indvars.iv233, %22
  br i1 %.not143.not, label %.lr.ph176, label %._crit_edge.loopexit, !llvm.loop !11

.preheader169:                                    ; preds = %.preheader169.preheader, %.loopexit356
  %indvar = phi i64 [ 0, %.preheader169.preheader ], [ %indvar.next, %.loopexit356 ]
  %indvars.iv236 = phi i64 [ 1, %.preheader169.preheader ], [ %indvars.iv.next237, %.loopexit356 ]
  %23 = sub i64 %17, %indvar
  %min.iters.check = icmp ult i64 %23, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader169
  %indvars.iv238.ph = phi i64 [ %indvars.iv236, %.preheader169 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.preheader169
  %n.vec = and i64 %23, -8
  %ind.end = add i64 %indvars.iv236, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv236, %index
  %24 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %indvars.iv236, i64 %offset.idx
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr %24, align 4, !tbaa !5
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr %25, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %26 = icmp eq i64 %index.next, %n.vec
  br i1 %26, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %23, %n.vec
  br i1 %cmp.n, label %.loopexit356, label %scalar.ph.preheader

.preheader168:                                    ; preds = %.loopexit356
  %.not = icmp eq i32 %15, 1
  br i1 %.not, label %._crit_edge219, label %.preheader167.preheader

.preheader167.preheader:                          ; preds = %.preheader168
  %27 = zext nneg i32 %15 to i64
  %28 = add nuw i32 %15, 1
  br label %.preheader167

.loopexit356:                                     ; preds = %scalar.ph, %middle.block
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %exitcond243.not = icmp eq i64 %indvars.iv.next237, %wide.trip.count242
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond243.not, label %.preheader168, label %.preheader169, !llvm.loop !15

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv238 = phi i64 [ %indvars.iv.next239, %scalar.ph ], [ %indvars.iv238.ph, %scalar.ph.preheader ]
  %29 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %indvars.iv236, i64 %indvars.iv238
  store i32 1000000000, ptr %29, align 4, !tbaa !5
  %indvars.iv.next239 = add nuw nsw i64 %indvars.iv238, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next239, %wide.trip.count242
  br i1 %exitcond.not, label %.loopexit356, label %scalar.ph, !llvm.loop !16

.loopexit166:                                     ; preds = %.loopexit161, %.preheader165
  %.pre299307 = phi i32 [ %.pre299308, %.preheader165 ], [ %.pre299304, %.loopexit161 ]
  %30 = phi i32 [ %41, %.preheader165 ], [ %141, %.loopexit161 ]
  %31 = phi i32 [ %42, %.preheader165 ], [ %141, %.loopexit161 ]
  %32 = icmp sgt i64 %indvars.iv249, 2
  %indvars.iv.next255 = add i32 %indvars.iv254, -1
  br i1 %32, label %.preheader167, label %._crit_edge219, !llvm.loop !17

.preheader167:                                    ; preds = %.preheader167.preheader, %.loopexit166
  %.pre299306 = phi i32 [ %15, %.preheader167.preheader ], [ %.pre299307, %.loopexit166 ]
  %33 = phi i32 [ %15, %.preheader167.preheader ], [ %30, %.loopexit166 ]
  %34 = phi i32 [ %15, %.preheader167.preheader ], [ %31, %.loopexit166 ]
  %indvars.iv254 = phi i32 [ %28, %.preheader167.preheader ], [ %indvars.iv.next255, %.loopexit166 ]
  %indvars.iv249 = phi i64 [ %27, %.preheader167.preheader ], [ %indvars.iv.next250, %.loopexit166 ]
  %indvars.iv.next250 = add nsw i64 %indvars.iv249, -1
  %35 = load i32, ptr @m, align 4, !tbaa !5
  %.not149207 = icmp slt i32 %35, 1
  br i1 %.not149207, label %.preheader165, label %.preheader164.lr.ph

.preheader164.lr.ph:                              ; preds = %.preheader167
  %36 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %indvars.iv.next250
  br label %.preheader164

._crit_edge219:                                   ; preds = %.loopexit166, %.preheader168
  %37 = phi i32 [ %15, %.preheader168 ], [ %30, %.loopexit166 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) @Fa, i8 0, i64 200, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) @Fb, i8 0, i64 200, i1 false)
  %.not145224 = icmp slt i32 %37, 1
  br i1 %.not145224, label %._crit_edge219.._crit_edge228_crit_edge, label %.lr.ph227.preheader

._crit_edge219.._crit_edge228_crit_edge:          ; preds = %._crit_edge219.thread, %._crit_edge219
  %38 = phi i32 [ %15, %._crit_edge219.thread ], [ %37, %._crit_edge219 ]
  %.pre321 = sext i32 %38 to i64
  br label %._crit_edge228

.lr.ph227.preheader:                              ; preds = %._crit_edge219
  %39 = add nuw i32 %37, 1
  %40 = zext nneg i32 %37 to i64
  %wide.trip.count294 = zext i32 %39 to i64
  br label %.lr.ph227

.preheader165:                                    ; preds = %._crit_edge206, %.preheader167
  %.pre299308 = phi i32 [ %.pre299306, %.preheader167 ], [ %.pre299310, %._crit_edge206 ]
  %41 = phi i32 [ %33, %.preheader167 ], [ %117, %._crit_edge206 ]
  %42 = phi i32 [ %34, %.preheader167 ], [ %118, %._crit_edge206 ]
  %43 = sext i32 %42 to i64
  %.not150213 = icmp sgt i64 %indvars.iv249, %43
  br i1 %.not150213, label %.loopexit166, label %.lr.ph215

.preheader164:                                    ; preds = %.preheader164.lr.ph, %._crit_edge206
  %.pre299309 = phi i32 [ %.pre299306, %.preheader164.lr.ph ], [ %.pre299310, %._crit_edge206 ]
  %44 = phi i32 [ %33, %.preheader164.lr.ph ], [ %117, %._crit_edge206 ]
  %45 = phi i32 [ %34, %.preheader164.lr.ph ], [ %118, %._crit_edge206 ]
  %46 = phi i32 [ %34, %.preheader164.lr.ph ], [ %119, %._crit_edge206 ]
  %47 = phi i32 [ %34, %.preheader164.lr.ph ], [ %120, %._crit_edge206 ]
  %indvars.iv273 = phi i64 [ 1, %.preheader164.lr.ph ], [ %indvars.iv.next274, %._crit_edge206 ]
  %48 = sext i32 %47 to i64
  %.not152184 = icmp sgt i64 %indvars.iv249, %48
  br i1 %.not152184, label %.preheader162, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader164
  %49 = load i32, ptr @xmax, align 4, !tbaa !5
  %.not158180 = icmp slt i32 %49, 0
  br i1 %.not158180, label %.lr.ph197, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %50 = add nuw i32 %49, 1
  %wide.trip.count247 = zext i32 %50 to i64
  %xtraiter = and i64 %wide.trip.count247, 3
  %51 = icmp ult i32 %49, 3
  %unroll_iter = and i64 %wide.trip.count247, 4294967292
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader

.preheader163:                                    ; preds = %._crit_edge183
  br i1 %.not152184, label %.preheader162, label %.lr.ph197

.lr.ph197:                                        ; preds = %.preheader.lr.ph, %.preheader163
  %52 = getelementptr inbounds [50 x i32], ptr @d, i64 0, i64 %indvars.iv273
  br label %66

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge183
  %indvars.iv251 = phi i64 [ %indvars.iv249, %.preheader.preheader ], [ %indvars.iv.next252, %._crit_edge183 ]
  br i1 %51, label %._crit_edge183.unr-lcssa, label %.preheader.new

._crit_edge183.unr-lcssa:                         ; preds = %.preheader.new, %.preheader
  %indvars.iv244.unr = phi i64 [ 0, %.preheader ], [ %indvars.iv.next245.3, %.preheader.new ]
  br i1 %lcmp.mod.not, label %._crit_edge183, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge183.unr-lcssa, %.epil.preheader
  %indvars.iv244.epil = phi i64 [ %indvars.iv.next245.epil, %.epil.preheader ], [ %indvars.iv244.unr, %._crit_edge183.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge183.unr-lcssa ]
  %53 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %indvars.iv244.epil, i64 %indvars.iv.next250, i64 %indvars.iv251
  store i32 1000000000, ptr %53, align 4, !tbaa !5
  %indvars.iv.next245.epil = add nuw nsw i64 %indvars.iv244.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge183, label %.epil.preheader, !llvm.loop !18

._crit_edge183:                                   ; preds = %.epil.preheader, %._crit_edge183.unr-lcssa
  %indvars.iv.next252 = add nuw nsw i64 %indvars.iv251, 1
  %54 = trunc nuw i64 %indvars.iv251 to i32
  %.not152.not = icmp sgt i32 %47, %54
  br i1 %.not152.not, label %.preheader, label %.preheader163, !llvm.loop !20

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %indvars.iv244 = phi i64 [ %indvars.iv.next245.3, %.preheader.new ], [ 0, %.preheader ]
  %niter = phi i64 [ %niter.next.3, %.preheader.new ], [ 0, %.preheader ]
  %55 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %indvars.iv244, i64 %indvars.iv.next250, i64 %indvars.iv251
  store i32 1000000000, ptr %55, align 4, !tbaa !5
  %indvars.iv.next245 = or disjoint i64 %indvars.iv244, 1
  %56 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %indvars.iv.next245, i64 %indvars.iv.next250, i64 %indvars.iv251
  store i32 1000000000, ptr %56, align 4, !tbaa !5
  %indvars.iv.next245.1 = or disjoint i64 %indvars.iv244, 2
  %57 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %indvars.iv.next245.1, i64 %indvars.iv.next250, i64 %indvars.iv251
  store i32 1000000000, ptr %57, align 4, !tbaa !5
  %indvars.iv.next245.2 = or disjoint i64 %indvars.iv244, 3
  %58 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %indvars.iv.next245.2, i64 %indvars.iv.next250, i64 %indvars.iv251
  store i32 1000000000, ptr %58, align 4, !tbaa !5
  %indvars.iv.next245.3 = add nuw nsw i64 %indvars.iv244, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge183.unr-lcssa, label %.preheader.new, !llvm.loop !21

.preheader162.loopexit:                           ; preds = %._crit_edge194
  %.pre319 = sext i32 %88 to i64
  br label %.preheader162

.preheader162:                                    ; preds = %.preheader164, %.preheader162.loopexit, %.preheader163
  %.pre-phi = phi i64 [ %.pre319, %.preheader162.loopexit ], [ %48, %.preheader163 ], [ %48, %.preheader164 ]
  %.pre299311 = phi i32 [ %.pre299313, %.preheader162.loopexit ], [ %.pre299309, %.preheader163 ], [ %.pre299309, %.preheader164 ]
  %59 = phi i32 [ %88, %.preheader162.loopexit ], [ %44, %.preheader163 ], [ %44, %.preheader164 ]
  %60 = phi i32 [ %88, %.preheader162.loopexit ], [ %45, %.preheader163 ], [ %45, %.preheader164 ]
  %61 = phi i32 [ %88, %.preheader162.loopexit ], [ %46, %.preheader163 ], [ %46, %.preheader164 ]
  %62 = phi i32 [ %88, %.preheader162.loopexit ], [ %47, %.preheader163 ], [ %47, %.preheader164 ]
  %.not154203 = icmp sgt i64 %indvars.iv249, %.pre-phi
  br i1 %.not154203, label %._crit_edge206, label %.lr.ph205

.lr.ph205:                                        ; preds = %.preheader162
  %63 = load i32, ptr @xmin, align 4, !tbaa !5
  %64 = load i32, ptr @xmax, align 4, !tbaa !5
  %65 = icmp sgt i32 %63, %64
  br i1 %65, label %._crit_edge206, label %.lr.ph205.split

66:                                               ; preds = %.lr.ph197, %._crit_edge194
  %.pre299312 = phi i32 [ %.pre299309, %.lr.ph197 ], [ %.pre299313, %._crit_edge194 ]
  %indvars.iv264 = phi i64 [ %indvars.iv249, %.lr.ph197 ], [ %86, %._crit_edge194 ]
  %indvars.iv256 = phi i32 [ %indvars.iv254, %.lr.ph197 ], [ %indvars.iv.next257, %._crit_edge194 ]
  %67 = zext i32 %indvars.iv256 to i64
  %68 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %indvars.iv264
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = load i32, ptr %36, align 4, !tbaa !5
  %71 = sub nsw i32 %69, %70
  %72 = load i32, ptr %52, align 4, !tbaa !5
  %73 = icmp eq i32 %71, %72
  br i1 %73, label %74, label %83

74:                                               ; preds = %66
  %75 = getelementptr inbounds [50 x [50 x i32]], ptr getelementptr inbounds (i8, ptr @g, i64 20000), i64 0, i64 %indvars.iv.next250, i64 %indvars.iv264
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %76 = add i64 %indvars.iv264, 4294967295
  %77 = and i64 %76, 4294967295
  %78 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %indvars.iv249, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %1, align 4, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %75, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %82 = load i32, ptr %81, align 4, !tbaa !5
  store i32 %82, ptr %75, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %.pre299.pre = load i32, ptr @n, align 4
  br label %83

83:                                               ; preds = %74, %66
  %.pre299 = phi i32 [ %.pre299.pre, %74 ], [ %.pre299312, %66 ]
  %84 = load i32, ptr @xmax, align 4, !tbaa !5
  %85 = icmp sgt i32 %84, 0
  %86 = add nuw nsw i64 %indvars.iv264, 1
  %87 = trunc nuw i64 %indvars.iv264 to i32
  br i1 %85, label %.lr.ph193, label %._crit_edge194

._crit_edge194:                                   ; preds = %.loopexit160, %83
  %.pre299313 = phi i32 [ %.pre299, %83 ], [ %.pre299316, %.loopexit160 ]
  %88 = phi i32 [ %.pre299, %83 ], [ %113, %.loopexit160 ]
  %.not153.not = icmp sgt i32 %88, %87
  %indvars.iv.next257 = add i32 %indvars.iv256, 1
  br i1 %.not153.not, label %66, label %.preheader162.loopexit, !llvm.loop !22

.lr.ph193:                                        ; preds = %83, %.loopexit160
  %.pre299317 = phi i32 [ %.pre299316, %.loopexit160 ], [ %.pre299, %83 ]
  %89 = phi i32 [ %112, %.loopexit160 ], [ %84, %83 ]
  %90 = phi i32 [ %113, %.loopexit160 ], [ %.pre299, %83 ]
  %91 = phi i32 [ %114, %.loopexit160 ], [ %.pre299, %83 ]
  %indvars.iv261 = phi i64 [ %.pre323, %.loopexit160 ], [ 0, %83 ]
  %92 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %indvars.iv261, i64 %indvars.iv.next250, i64 %indvars.iv264
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %.not156 = icmp sgt i32 %93, %91
  %.not157186 = icmp sle i32 %91, %87
  %or.cond = or i1 %.not156, %.not157186
  %.pre323 = add nuw nsw i64 %indvars.iv261, 1
  br i1 %or.cond, label %.loopexit160, label %.lr.ph189

.lr.ph189:                                        ; preds = %.lr.ph193, %._crit_edge320
  %.pre299315 = phi i32 [ %.pre299314, %._crit_edge320 ], [ %.pre299317, %.lr.ph193 ]
  %94 = phi i32 [ %111, %._crit_edge320 ], [ %90, %.lr.ph193 ]
  %indvars.iv258 = phi i64 [ %indvars.iv.next259, %._crit_edge320 ], [ %67, %.lr.ph193 ]
  %95 = load i32, ptr %68, align 4, !tbaa !5
  %96 = load i32, ptr %52, align 4, !tbaa !5
  %97 = add nsw i32 %96, %95
  %98 = getelementptr inbounds [50 x i32], ptr @t, i64 0, i64 %indvars.iv258
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = icmp eq i32 %97, %99
  br i1 %100, label %101, label %._crit_edge320

101:                                              ; preds = %.lr.ph189
  %102 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %.pre323, i64 %indvars.iv.next250, i64 %indvars.iv258
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %103 = load i32, ptr %92, align 4, !tbaa !5
  %104 = add nuw i64 %indvars.iv258, 4294967295
  %105 = and i64 %104, 4294967295
  %106 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %86, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %107, %103
  store i32 %108, ptr %2, align 4, !tbaa !5
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %102, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %110 = load i32, ptr %109, align 4, !tbaa !5
  store i32 %110, ptr %102, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %.pre297 = load i32, ptr @n, align 4
  br label %._crit_edge320

._crit_edge320:                                   ; preds = %.lr.ph189, %101
  %.pre299314 = phi i32 [ %.pre297, %101 ], [ %.pre299315, %.lr.ph189 ]
  %111 = phi i32 [ %.pre297, %101 ], [ %94, %.lr.ph189 ]
  %.pre-phi328 = trunc i64 %indvars.iv258 to i32
  %indvars.iv.next259 = add nuw nsw i64 %indvars.iv258, 1
  %.not157.not = icmp sgt i32 %111, %.pre-phi328
  br i1 %.not157.not, label %.lr.ph189, label %.loopexit160.loopexit, !llvm.loop !23

.loopexit160.loopexit:                            ; preds = %._crit_edge320
  %.pre298 = load i32, ptr @xmax, align 4, !tbaa !5
  br label %.loopexit160

.loopexit160:                                     ; preds = %.lr.ph193, %.loopexit160.loopexit
  %.pre299316 = phi i32 [ %.pre299314, %.loopexit160.loopexit ], [ %.pre299317, %.lr.ph193 ]
  %112 = phi i32 [ %.pre298, %.loopexit160.loopexit ], [ %89, %.lr.ph193 ]
  %113 = phi i32 [ %111, %.loopexit160.loopexit ], [ %90, %.lr.ph193 ]
  %114 = phi i32 [ %111, %.loopexit160.loopexit ], [ %91, %.lr.ph193 ]
  %115 = sext i32 %112 to i64
  %116 = icmp slt i64 %.pre323, %115
  br i1 %116, label %.lr.ph193, label %._crit_edge194, !llvm.loop !24

._crit_edge206:                                   ; preds = %._crit_edge202, %.lr.ph205, %.preheader162
  %.pre299310 = phi i32 [ %.pre299311, %.preheader162 ], [ %.pre299311, %.lr.ph205 ], [ %.pre299302, %._crit_edge202 ]
  %117 = phi i32 [ %59, %.preheader162 ], [ %59, %.lr.ph205 ], [ %130, %._crit_edge202 ]
  %118 = phi i32 [ %60, %.preheader162 ], [ %60, %.lr.ph205 ], [ %131, %._crit_edge202 ]
  %119 = phi i32 [ %61, %.preheader162 ], [ %61, %.lr.ph205 ], [ %132, %._crit_edge202 ]
  %120 = phi i32 [ %62, %.preheader162 ], [ %62, %.lr.ph205 ], [ %132, %._crit_edge202 ]
  %indvars.iv.next274 = add nuw nsw i64 %indvars.iv273, 1
  %121 = load i32, ptr @m, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %.not149.not = icmp slt i64 %indvars.iv273, %122
  br i1 %.not149.not, label %.preheader164, label %.preheader165, !llvm.loop !25

.lr.ph205.split:                                  ; preds = %.lr.ph205, %._crit_edge202
  %.pre299303 = phi i32 [ %.pre299302, %._crit_edge202 ], [ %.pre299311, %.lr.ph205 ]
  %123 = phi i32 [ %130, %._crit_edge202 ], [ %59, %.lr.ph205 ]
  %124 = phi i32 [ %131, %._crit_edge202 ], [ %60, %.lr.ph205 ]
  %125 = phi i32 [ %132, %._crit_edge202 ], [ %61, %.lr.ph205 ]
  %126 = phi i32 [ %133, %._crit_edge202 ], [ %64, %.lr.ph205 ]
  %indvars.iv270 = phi i64 [ %indvars.iv.next271, %._crit_edge202 ], [ %indvars.iv249, %.lr.ph205 ]
  %127 = load i32, ptr @xmin, align 4, !tbaa !5
  %.not155198 = icmp sgt i32 %127, %126
  br i1 %.not155198, label %._crit_edge202, label %.lr.ph201

.lr.ph201:                                        ; preds = %.lr.ph205.split
  %128 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %indvars.iv.next250, i64 %indvars.iv270
  %129 = sext i32 %127 to i64
  br label %135

._crit_edge202.loopexit:                          ; preds = %135
  %.pre300 = load i32, ptr @n, align 4
  br label %._crit_edge202

._crit_edge202:                                   ; preds = %._crit_edge202.loopexit, %.lr.ph205.split
  %.pre299302 = phi i32 [ %.pre300, %._crit_edge202.loopexit ], [ %.pre299303, %.lr.ph205.split ]
  %130 = phi i32 [ %.pre300, %._crit_edge202.loopexit ], [ %123, %.lr.ph205.split ]
  %131 = phi i32 [ %.pre300, %._crit_edge202.loopexit ], [ %124, %.lr.ph205.split ]
  %132 = phi i32 [ %.pre300, %._crit_edge202.loopexit ], [ %125, %.lr.ph205.split ]
  %133 = phi i32 [ %139, %._crit_edge202.loopexit ], [ %126, %.lr.ph205.split ]
  %indvars.iv.next271 = add nuw nsw i64 %indvars.iv270, 1
  %134 = trunc nuw i64 %indvars.iv270 to i32
  %.not154.not = icmp sgt i32 %132, %134
  br i1 %.not154.not, label %.lr.ph205.split, label %._crit_edge206, !llvm.loop !26

135:                                              ; preds = %.lr.ph201, %135
  %indvars.iv267 = phi i64 [ %129, %.lr.ph201 ], [ %indvars.iv.next268, %135 ]
  %136 = getelementptr inbounds [50 x [50 x [50 x i32]]], ptr @g, i64 0, i64 %indvars.iv267, i64 %indvars.iv.next250, i64 %indvars.iv270
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %128, ptr noundef nonnull align 4 dereferenceable(4) %136)
  %138 = load i32, ptr %137, align 4, !tbaa !5
  store i32 %138, ptr %128, align 4, !tbaa !5
  %indvars.iv.next268 = add nsw i64 %indvars.iv267, 1
  %139 = load i32, ptr @xmax, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %.not155.not = icmp slt i64 %indvars.iv267, %140
  br i1 %.not155.not, label %135, label %._crit_edge202.loopexit, !llvm.loop !28

.loopexit161:                                     ; preds = %147, %.lr.ph215
  %.pre299304 = phi i32 [ %.pre299305, %.lr.ph215 ], [ %155, %147 ]
  %141 = phi i32 [ %142, %.lr.ph215 ], [ %155, %147 ]
  %.not150.not = icmp sgt i32 %141, %144
  %indvars.iv.next277 = add i32 %indvars.iv276, 1
  br i1 %.not150.not, label %.lr.ph215, label %.loopexit166, !llvm.loop !29

.lr.ph215:                                        ; preds = %.preheader165, %.loopexit161
  %.pre299305 = phi i32 [ %.pre299304, %.loopexit161 ], [ %.pre299308, %.preheader165 ]
  %142 = phi i32 [ %141, %.loopexit161 ], [ %41, %.preheader165 ]
  %143 = phi i32 [ %141, %.loopexit161 ], [ %42, %.preheader165 ]
  %indvars.iv281 = phi i64 [ %indvars.iv.next282, %.loopexit161 ], [ %indvars.iv249, %.preheader165 ]
  %indvars.iv276 = phi i32 [ %indvars.iv.next277, %.loopexit161 ], [ %indvars.iv254, %.preheader165 ]
  %indvars.iv.next282 = add nuw nsw i64 %indvars.iv281, 1
  %144 = trunc nuw i64 %indvars.iv281 to i32
  %.not151209.not = icmp sgt i32 %143, %144
  br i1 %.not151209.not, label %.lr.ph212, label %.loopexit161

.lr.ph212:                                        ; preds = %.lr.ph215
  %145 = zext i32 %indvars.iv276 to i64
  %146 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %indvars.iv.next250, i64 %indvars.iv281
  br label %147

147:                                              ; preds = %.lr.ph212, %147
  %indvars.iv278 = phi i64 [ %145, %.lr.ph212 ], [ %indvars.iv.next279, %147 ]
  %148 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %indvars.iv.next250, i64 %indvars.iv278
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %149 = load i32, ptr %146, align 4, !tbaa !5
  %150 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %indvars.iv.next282, i64 %indvars.iv278
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = add nsw i32 %151, %149
  store i32 %152, ptr %3, align 4, !tbaa !5
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %148, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %154 = load i32, ptr %153, align 4, !tbaa !5
  store i32 %154, ptr %148, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %indvars.iv.next279 = add nuw nsw i64 %indvars.iv278, 1
  %155 = load i32, ptr @n, align 4
  %156 = trunc nuw i64 %indvars.iv278 to i32
  %.not151.not = icmp sgt i32 %155, %156
  br i1 %.not151.not, label %147, label %.loopexit161, !llvm.loop !30

.loopexit:                                        ; preds = %208, %184
  %indvars.iv.next286 = add nuw nsw i64 %indvars.iv285, 1
  %exitcond295.not = icmp eq i64 %indvars.iv.next292, %wide.trip.count294
  br i1 %exitcond295.not, label %._crit_edge228, label %.lr.ph227, !llvm.loop !31

._crit_edge228:                                   ; preds = %.loopexit, %._crit_edge219.._crit_edge228_crit_edge
  %.pre-phi322 = phi i64 [ %.pre321, %._crit_edge219.._crit_edge228_crit_edge ], [ %40, %.loopexit ]
  %157 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %.pre-phi322
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %158)
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull @.str)
  %161 = load i32, ptr @n, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %160, i32 noundef %164)
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret void

.lr.ph227:                                        ; preds = %.lr.ph227.preheader, %.loopexit
  %indvars.iv291 = phi i64 [ 1, %.lr.ph227.preheader ], [ %indvars.iv.next292, %.loopexit ]
  %indvars.iv285 = phi i64 [ 2, %.lr.ph227.preheader ], [ %indvars.iv.next286, %.loopexit ]
  %167 = add nsw i64 %indvars.iv291, -1
  %168 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %indvars.iv291
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = icmp sgt i32 %169, %171
  br i1 %172, label %.lr.ph227._crit_edge, label %173

.lr.ph227._crit_edge:                             ; preds = %.lr.ph227
  %.phi.trans.insert = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %167
  %.pre301 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %181

173:                                              ; preds = %.lr.ph227
  %174 = icmp eq i32 %169, %171
  br i1 %174, label %175, label %184

175:                                              ; preds = %173
  %176 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %167
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %indvars.iv291
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = icmp slt i32 %177, %179
  br i1 %180, label %181, label %184

181:                                              ; preds = %.lr.ph227._crit_edge, %175
  %182 = phi i32 [ %.pre301, %.lr.ph227._crit_edge ], [ %177, %175 ]
  store i32 %169, ptr %170, align 4, !tbaa !5
  %183 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %indvars.iv291
  store i32 %182, ptr %183, align 4, !tbaa !5
  br label %184

184:                                              ; preds = %181, %175, %173
  %indvars.iv.next292 = add nuw nsw i64 %indvars.iv291, 1
  %.not146220.not = icmp ult i64 %indvars.iv291, %40
  br i1 %.not146220.not, label %.lr.ph223, label %.loopexit

.lr.ph223:                                        ; preds = %184
  %185 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %167
  %186 = trunc nuw nsw i64 %indvars.iv291 to i32
  br label %187

187:                                              ; preds = %.lr.ph223, %208
  %indvars.iv287 = phi i64 [ %indvars.iv285, %.lr.ph223 ], [ %indvars.iv.next288, %208 ]
  %188 = getelementptr inbounds [50 x [50 x i32]], ptr @f, i64 0, i64 %indvars.iv291, i64 %indvars.iv287
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %.not147 = icmp sgt i32 %189, %37
  br i1 %.not147, label %208, label %190

190:                                              ; preds = %187
  %191 = load i32, ptr %168, align 4, !tbaa !5
  %192 = trunc nuw i64 %indvars.iv287 to i32
  %193 = sub nsw i32 %192, %186
  %194 = add i32 %193, %191
  %195 = add nsw i32 %194, 1
  %196 = load i32, ptr %185, align 4, !tbaa !5
  %197 = add nsw i32 %196, %189
  %198 = getelementptr inbounds [50 x i32], ptr @Fa, i64 0, i64 %indvars.iv287
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %.not148 = icmp slt i32 %194, %199
  br i1 %.not148, label %200, label %206

200:                                              ; preds = %190
  %201 = icmp eq i32 %195, %199
  br i1 %201, label %202, label %208

202:                                              ; preds = %200
  %203 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %indvars.iv287
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %205 = icmp slt i32 %197, %204
  br i1 %205, label %206, label %208

206:                                              ; preds = %202, %190
  store i32 %195, ptr %198, align 4, !tbaa !5
  %207 = getelementptr inbounds [50 x i32], ptr @Fb, i64 0, i64 %indvars.iv287
  store i32 %197, ptr %207, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %200, %202, %206, %187
  %indvars.iv.next288 = add nuw nsw i64 %indvars.iv287, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next288 to i32
  %exitcond290.not = icmp eq i32 %39, %lftr.wideiv
  br i1 %exitcond290.not, label %.loopexit, label %187, !llvm.loop !32
}

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

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

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

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

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

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

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

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !14, !13}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10, !27}
!27 = !{!"llvm.loop.unswitch.partial.disable"}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !10}


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