; LLVM IR from eyangch/competitive-programming :: DMOJ/DMOPC22nov (6_subtask1)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::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 i64, align 8
@M = external dso_local global i64, align 8
@dp = external dso_local global [300 x [300 x i64]], align 16
@ele = external dso_local global [300 x i64], align 16
@_Z1SB5cxx11 = external dso_local global [50000 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %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 i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i8, align 1
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i8, align 1
  %16 = alloca i64, align 8
  %17 = alloca i8, align 1
  %18 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %19 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %21
  %23 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %22, ptr noundef null)
  %24 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %25 = 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)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %27

27:                                               ; preds = %36, %0
  %28 = load i64, ptr %2, align 8, !tbaa !8
  %29 = load i64, ptr @N, align 8, !tbaa !8
  %30 = icmp slt i64 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %39

32:                                               ; preds = %27
  %33 = load i64, ptr %2, align 8, !tbaa !8
  %34 = getelementptr inbounds [50000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %34)
  br label %36

36:                                               ; preds = %32
  %37 = load i64, ptr %2, align 8, !tbaa !8
  %38 = add nsw i64 %37, 1
  store i64 %38, ptr %2, align 8, !tbaa !8
  br label %27, !llvm.loop !11

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

40:                                               ; preds = %50, %39
  %41 = load i64, ptr %3, align 8, !tbaa !8
  %42 = load i64, ptr @N, align 8, !tbaa !8
  %43 = icmp slt i64 %41, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %40
  %46 = load i64, ptr %3, align 8, !tbaa !8
  %47 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %46
  %48 = load i64, ptr %3, align 8, !tbaa !8
  %49 = getelementptr inbounds [300 x i64], ptr %47, i64 0, i64 %48
  store i64 1, ptr %49, align 8, !tbaa !8
  br label %50

50:                                               ; preds = %45
  %51 = load i64, ptr %3, align 8, !tbaa !8
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %3, align 8, !tbaa !8
  br label %40, !llvm.loop !13

53:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 1, ptr %4, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !8
  br label %54

54:                                               ; preds = %201, %53
  %55 = load i64, ptr %5, align 8, !tbaa !8
  %56 = load i64, ptr @N, align 8, !tbaa !8
  %57 = icmp slt i64 %55, %56
  br i1 %57, label %59, label %58

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

59:                                               ; preds = %54
  %60 = load i64, ptr @M, align 8, !tbaa !8
  %61 = getelementptr inbounds i64, ptr @ele, i64 %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !14
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @ele, ptr noundef %61, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %62 = load i64, ptr %5, align 8, !tbaa !8
  store i64 %62, ptr %8, align 8, !tbaa !8
  br label %63

63:                                               ; preds = %127, %59
  %64 = load i64, ptr %8, align 8, !tbaa !8
  %65 = load i64, ptr @N, align 8, !tbaa !8
  %66 = icmp slt i64 %64, %65
  br i1 %66, label %68, label %67

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

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 0, ptr %9, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !8
  br label %69

69:                                               ; preds = %93, %68
  %70 = load i64, ptr %10, align 8, !tbaa !8
  %71 = load i64, ptr @M, align 8, !tbaa !8
  %72 = icmp slt i64 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %96

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  %75 = load i64, ptr %8, align 8, !tbaa !8
  %76 = getelementptr inbounds [50000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %75
  %77 = load i64, ptr %10, align 8, !tbaa !8
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %76, i64 noundef %77)
  %79 = load i8, ptr %78, align 1, !tbaa !18
  store i8 %79, ptr %11, align 1, !tbaa !18
  %80 = load i8, ptr %11, align 1, !tbaa !18
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 49
  br i1 %82, label %83, label %92

83:                                               ; preds = %74
  %84 = load i64, ptr %10, align 8, !tbaa !8
  %85 = getelementptr inbounds [300 x i64], ptr @ele, i64 0, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !8
  %87 = icmp eq i64 %86, 1
  br i1 %87, label %88, label %89

88:                                               ; preds = %83
  store i8 1, ptr %9, align 1, !tbaa !16
  br label %89

89:                                               ; preds = %88, %83
  %90 = load i64, ptr %10, align 8, !tbaa !8
  %91 = getelementptr inbounds [300 x i64], ptr @ele, i64 0, i64 %90
  store i64 1, ptr %91, align 8, !tbaa !8
  br label %92

92:                                               ; preds = %89, %74
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %93

93:                                               ; preds = %92
  %94 = load i64, ptr %10, align 8, !tbaa !8
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %10, align 8, !tbaa !8
  br label %69, !llvm.loop !19

96:                                               ; preds = %73
  %97 = load i8, ptr %9, align 1, !tbaa !16, !range !20, !noundef !21
  %98 = trunc i8 %97 to i1
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  store i32 13, ptr %6, align 4
  br label %124

100:                                              ; preds = %96
  %101 = load i64, ptr %8, align 8, !tbaa !8
  %102 = load i64, ptr %5, align 8, !tbaa !8
  %103 = icmp ne i64 %101, %102
  br i1 %103, label %104, label %113

104:                                              ; preds = %100
  %105 = load i64, ptr %5, align 8, !tbaa !8
  %106 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %105
  %107 = load i64, ptr %8, align 8, !tbaa !8
  %108 = sub nsw i64 %107, 1
  %109 = getelementptr inbounds [300 x i64], ptr %106, i64 0, i64 %108
  %110 = load i64, ptr %109, align 8, !tbaa !8
  %111 = icmp ne i64 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %104
  store i32 13, ptr %6, align 4
  br label %124

113:                                              ; preds = %104, %100
  %114 = load i64, ptr %5, align 8, !tbaa !8
  %115 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %114
  %116 = load i64, ptr %8, align 8, !tbaa !8
  %117 = getelementptr inbounds [300 x i64], ptr %115, i64 0, i64 %116
  store i64 1, ptr %117, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %118 = load i64, ptr %8, align 8, !tbaa !8
  %119 = load i64, ptr %5, align 8, !tbaa !8
  %120 = sub nsw i64 %118, %119
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %12, align 8, !tbaa !8
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %123 = load i64, ptr %122, align 8, !tbaa !8
  store i64 %123, ptr %4, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  store i32 0, ptr %6, align 4
  br label %124

124:                                              ; preds = %113, %112, %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  %125 = load i32, ptr %6, align 4
  switch i32 %125, label %209 [
    i32 0, label %126
    i32 13, label %127
  ]

126:                                              ; preds = %124
  br label %127

127:                                              ; preds = %126, %124
  %128 = load i64, ptr %8, align 8, !tbaa !8
  %129 = add nsw i64 %128, 1
  store i64 %129, ptr %8, align 8, !tbaa !8
  br label %63, !llvm.loop !22

130:                                              ; preds = %67
  %131 = load i64, ptr @M, align 8, !tbaa !8
  %132 = getelementptr inbounds i64, ptr @ele, i64 %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !14
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef @ele, ptr noundef %132, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %133 = load i64, ptr %5, align 8, !tbaa !8
  store i64 %133, ptr %14, align 8, !tbaa !8
  br label %134

134:                                              ; preds = %197, %130
  %135 = load i64, ptr %14, align 8, !tbaa !8
  %136 = icmp sge i64 %135, 0
  br i1 %136, label %138, label %137

137:                                              ; preds = %134
  store i32 17, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %200

138:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  store i8 0, ptr %15, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !8
  br label %139

139:                                              ; preds = %163, %138
  %140 = load i64, ptr %16, align 8, !tbaa !8
  %141 = load i64, ptr @M, align 8, !tbaa !8
  %142 = icmp slt i64 %140, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %139
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %166

144:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  %145 = load i64, ptr %14, align 8, !tbaa !8
  %146 = getelementptr inbounds [50000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %145
  %147 = load i64, ptr %16, align 8, !tbaa !8
  %148 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %146, i64 noundef %147)
  %149 = load i8, ptr %148, align 1, !tbaa !18
  store i8 %149, ptr %17, align 1, !tbaa !18
  %150 = load i8, ptr %17, align 1, !tbaa !18
  %151 = sext i8 %150 to i32
  %152 = icmp eq i32 %151, 49
  br i1 %152, label %153, label %162

153:                                              ; preds = %144
  %154 = load i64, ptr %16, align 8, !tbaa !8
  %155 = getelementptr inbounds [300 x i64], ptr @ele, i64 0, i64 %154
  %156 = load i64, ptr %155, align 8, !tbaa !8
  %157 = icmp eq i64 %156, 1
  br i1 %157, label %158, label %159

158:                                              ; preds = %153
  store i8 1, ptr %15, align 1, !tbaa !16
  br label %159

159:                                              ; preds = %158, %153
  %160 = load i64, ptr %16, align 8, !tbaa !8
  %161 = getelementptr inbounds [300 x i64], ptr @ele, i64 0, i64 %160
  store i64 1, ptr %161, align 8, !tbaa !8
  br label %162

162:                                              ; preds = %159, %144
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %163

163:                                              ; preds = %162
  %164 = load i64, ptr %16, align 8, !tbaa !8
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %16, align 8, !tbaa !8
  br label %139, !llvm.loop !23

166:                                              ; preds = %143
  %167 = load i8, ptr %15, align 1, !tbaa !16, !range !20, !noundef !21
  %168 = trunc i8 %167 to i1
  br i1 %168, label %170, label %169

169:                                              ; preds = %166
  store i32 19, ptr %6, align 4
  br label %194

170:                                              ; preds = %166
  %171 = load i64, ptr %14, align 8, !tbaa !8
  %172 = load i64, ptr %5, align 8, !tbaa !8
  %173 = icmp ne i64 %171, %172
  br i1 %173, label %174, label %183

174:                                              ; preds = %170
  %175 = load i64, ptr %14, align 8, !tbaa !8
  %176 = add nsw i64 %175, 1
  %177 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %176
  %178 = load i64, ptr %5, align 8, !tbaa !8
  %179 = getelementptr inbounds [300 x i64], ptr %177, i64 0, i64 %178
  %180 = load i64, ptr %179, align 8, !tbaa !8
  %181 = icmp ne i64 %180, 0
  br i1 %181, label %183, label %182

182:                                              ; preds = %174
  store i32 19, ptr %6, align 4
  br label %194

183:                                              ; preds = %174, %170
  %184 = load i64, ptr %14, align 8, !tbaa !8
  %185 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %184
  %186 = load i64, ptr %5, align 8, !tbaa !8
  %187 = getelementptr inbounds [300 x i64], ptr %185, i64 0, i64 %186
  store i64 1, ptr %187, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %188 = load i64, ptr %5, align 8, !tbaa !8
  %189 = load i64, ptr %14, align 8, !tbaa !8
  %190 = sub nsw i64 %188, %189
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %18, align 8, !tbaa !8
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %193 = load i64, ptr %192, align 8, !tbaa !8
  store i64 %193, ptr %4, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  store i32 0, ptr %6, align 4
  br label %194

194:                                              ; preds = %183, %182, %169
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  %195 = load i32, ptr %6, align 4
  switch i32 %195, label %209 [
    i32 0, label %196
    i32 19, label %197
  ]

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %196, %194
  %198 = load i64, ptr %14, align 8, !tbaa !8
  %199 = add nsw i64 %198, -1
  store i64 %199, ptr %14, align 8, !tbaa !8
  br label %134, !llvm.loop !24

200:                                              ; preds = %137
  br label %201

201:                                              ; preds = %200
  %202 = load i64, ptr %5, align 8, !tbaa !8
  %203 = add nsw i64 %202, 1
  store i64 %203, ptr %5, align 8, !tbaa !8
  br label %54, !llvm.loop !25

204:                                              ; preds = %58
  %205 = load i64, ptr %4, align 8, !tbaa !8
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %205)
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %206, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %208 = load i32, ptr %1, align 4
  ret i32 %208

209:                                              ; preds = %194, %124
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !10, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = !{!10, !10, i64 0}
!19 = distinct !{!19, !12}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::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 i64, align 8
@M = external dso_local global i64, align 8
@dp = external dso_local local_unnamed_addr global [300 x [300 x i64]], align 16
@ele = external dso_local global [300 x i64], align 16
@_Z1SB5cxx11 = external dso_local global [50000 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

.preheader63:                                     ; preds = %.lr.ph
  %16 = icmp sgt i64 %21, 0
  br i1 %16, label %.lr.ph66.preheader, label %._crit_edge.thread

.lr.ph66.preheader:                               ; preds = %.preheader63
  %xtraiter = and i64 %21, 3
  %17 = icmp ult i64 %21, 4
  br i1 %17, label %._crit_edge.unr-lcssa, label %.lr.ph66.preheader.new

.lr.ph66.preheader.new:                           ; preds = %.lr.ph66.preheader
  %unroll_iter = and i64 %21, 9223372036854775804
  br label %.lr.ph66

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.064 = phi i64 [ %20, %.lr.ph ], [ 0, %0 ]
  %18 = getelementptr inbounds [50000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.064
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %18)
  %20 = add nuw nsw i64 %.064, 1
  %21 = load i64, ptr @N, align 8, !tbaa !8
  %22 = icmp slt i64 %20, %21
  br i1 %22, label %.lr.ph, label %.preheader63, !llvm.loop !11

._crit_edge.thread:                               ; preds = %.preheader63, %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store i64 1, ptr %1, align 8, !tbaa !8
  br label %._crit_edge84

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph66, %.lr.ph66.preheader
  %.05165.unr = phi i64 [ 0, %.lr.ph66.preheader ], [ %32, %.lr.ph66 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph66.epil

.lr.ph66.epil:                                    ; preds = %._crit_edge.unr-lcssa, %.lr.ph66.epil
  %.05165.epil = phi i64 [ %24, %.lr.ph66.epil ], [ %.05165.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph66.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %23 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %.05165.epil, i64 %.05165.epil
  store i64 1, ptr %23, align 8, !tbaa !8
  %24 = add nuw nsw i64 %.05165.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph66.epil, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph66.epil, %._crit_edge.unr-lcssa
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store i64 1, ptr %1, align 8, !tbaa !8
  br i1 %16, label %.lr.ph83, label %._crit_edge84

.lr.ph66:                                         ; preds = %.lr.ph66, %.lr.ph66.preheader.new
  %.05165 = phi i64 [ 0, %.lr.ph66.preheader.new ], [ %32, %.lr.ph66 ]
  %niter = phi i64 [ 0, %.lr.ph66.preheader.new ], [ %niter.next.3, %.lr.ph66 ]
  %25 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %.05165, i64 %.05165
  store i64 1, ptr %25, align 16, !tbaa !8
  %26 = or disjoint i64 %.05165, 1
  %27 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %26, i64 %26
  store i64 1, ptr %27, align 8, !tbaa !8
  %28 = or disjoint i64 %.05165, 2
  %29 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %28, i64 %28
  store i64 1, ptr %29, align 16, !tbaa !8
  %30 = or disjoint i64 %.05165, 3
  %31 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %30, i64 %30
  store i64 1, ptr %31, align 8, !tbaa !8
  %32 = add nuw nsw i64 %.05165, 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_edge.unr-lcssa, label %.lr.ph66, !llvm.loop !15

._crit_edge84.loopexit:                           ; preds = %._crit_edge80
  %.pre91 = load i64, ptr %1, align 8, !tbaa !8
  br label %._crit_edge84

._crit_edge84:                                    ; preds = %._crit_edge.thread, %._crit_edge84.loopexit, %._crit_edge
  %33 = phi i64 [ %.pre91, %._crit_edge84.loopexit ], [ 1, %._crit_edge ], [ 1, %._crit_edge.thread ]
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %33)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %34, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0

.lr.ph83:                                         ; preds = %._crit_edge, %._crit_edge80
  %.05781 = phi i64 [ %45, %._crit_edge80 ], [ 0, %._crit_edge ]
  %36 = load i64, ptr @M, align 8, !tbaa !8
  %37 = getelementptr inbounds i64, ptr @ele, i64 %36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  store i32 0, ptr %2, align 4, !tbaa !16
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @ele, ptr noundef nonnull %37, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %38 = load i64, ptr @N, align 8, !tbaa !8
  %39 = icmp slt i64 %.05781, %38
  %.pre88 = load i64, ptr @M, align 8, !tbaa !8
  br i1 %39, label %.preheader62, label %.preheader.lr.ph

.preheader62:                                     ; preds = %.lr.ph83, %.critedge
  %40 = phi i64 [ %68, %.critedge ], [ %.pre88, %.lr.ph83 ]
  %.05672 = phi i64 [ %69, %.critedge ], [ %.05781, %.lr.ph83 ]
  %41 = icmp sgt i64 %40, 0
  br i1 %41, label %.lr.ph69, label %.critedge

.lr.ph69:                                         ; preds = %.preheader62
  %42 = getelementptr inbounds [50000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.05672
  br label %46

.preheader.lr.ph:                                 ; preds = %.critedge, %.lr.ph83
  %43 = phi i64 [ %.pre88, %.lr.ph83 ], [ %68, %.critedge ]
  %44 = getelementptr inbounds i64, ptr @ele, i64 %43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !16
  call void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull @ele, ptr noundef nonnull %44, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %45 = add nuw nsw i64 %.05781, 1
  %.pre90 = load i64, ptr @M, align 8, !tbaa !8
  br label %.preheader

._crit_edge70:                                    ; preds = %54
  br i1 %.255, label %58, label %.critedge

46:                                               ; preds = %.lr.ph69, %54
  %.05268 = phi i64 [ 0, %.lr.ph69 ], [ %55, %54 ]
  %.05367 = phi i1 [ false, %.lr.ph69 ], [ %.255, %54 ]
  %47 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %42, i64 noundef %.05268)
  %48 = load i8, ptr %47, align 1, !tbaa !18
  %49 = icmp eq i8 %48, 49
  br i1 %49, label %50, label %54

50:                                               ; preds = %46
  %51 = getelementptr inbounds [300 x i64], ptr @ele, i64 0, i64 %.05268
  %52 = load i64, ptr %51, align 8, !tbaa !8
  %53 = icmp eq i64 %52, 1
  %spec.select = select i1 %53, i1 true, i1 %.05367
  store i64 1, ptr %51, align 8, !tbaa !8
  br label %54

54:                                               ; preds = %50, %46
  %.255 = phi i1 [ %spec.select, %50 ], [ %.05367, %46 ]
  %55 = add nuw nsw i64 %.05268, 1
  %56 = load i64, ptr @M, align 8, !tbaa !8
  %57 = icmp slt i64 %55, %56
  br i1 %57, label %46, label %._crit_edge70, !llvm.loop !19

58:                                               ; preds = %._crit_edge70
  %.not59 = icmp eq i64 %.05672, %.05781
  br i1 %.not59, label %63, label %59

59:                                               ; preds = %58
  %60 = add nsw i64 %.05672, -1
  %61 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %.05781, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !8
  %.not60 = icmp eq i64 %62, 0
  br i1 %.not60, label %.critedge, label %63

63:                                               ; preds = %59, %58
  %64 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %.05781, i64 %.05672
  store i64 1, ptr %64, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %reass.sub = sub nuw nsw i64 %.05672, %.05781
  %65 = add nuw nsw i64 %reass.sub, 1
  store i64 %65, ptr %3, align 8, !tbaa !8
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %67 = load i64, ptr %66, align 8, !tbaa !8
  store i64 %67, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %.pre = load i64, ptr @M, align 8, !tbaa !8
  br label %.critedge

.critedge:                                        ; preds = %.preheader62, %59, %._crit_edge70, %63
  %68 = phi i64 [ %40, %.preheader62 ], [ %56, %59 ], [ %56, %._crit_edge70 ], [ %.pre, %63 ]
  %69 = add nuw nsw i64 %.05672, 1
  %70 = load i64, ptr @N, align 8, !tbaa !8
  %71 = icmp slt i64 %69, %70
  br i1 %71, label %.preheader62, label %.preheader.lr.ph, !llvm.loop !20

.preheader:                                       ; preds = %.preheader.lr.ph, %.critedge85
  %72 = phi i64 [ %.pre90, %.preheader.lr.ph ], [ %99, %.critedge85 ]
  %.05079 = phi i64 [ %.05781, %.preheader.lr.ph ], [ %100, %.critedge85 ]
  %73 = icmp sgt i64 %72, 0
  br i1 %73, label %.lr.ph76, label %.critedge85

.lr.ph76:                                         ; preds = %.preheader
  %74 = getelementptr inbounds [50000 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.05079
  br label %77

._crit_edge80:                                    ; preds = %.critedge85
  %75 = load i64, ptr @N, align 8, !tbaa !8
  %76 = icmp slt i64 %45, %75
  br i1 %76, label %.lr.ph83, label %._crit_edge84.loopexit, !llvm.loop !21

._crit_edge77:                                    ; preds = %85
  br i1 %.2, label %89, label %.critedge85

77:                                               ; preds = %.lr.ph76, %85
  %.04875 = phi i64 [ 0, %.lr.ph76 ], [ %86, %85 ]
  %.04974 = phi i1 [ false, %.lr.ph76 ], [ %.2, %85 ]
  %78 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %74, i64 noundef %.04875)
  %79 = load i8, ptr %78, align 1, !tbaa !18
  %80 = icmp eq i8 %79, 49
  br i1 %80, label %81, label %85

81:                                               ; preds = %77
  %82 = getelementptr inbounds [300 x i64], ptr @ele, i64 0, i64 %.04875
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = icmp eq i64 %83, 1
  %spec.select61 = select i1 %84, i1 true, i1 %.04974
  store i64 1, ptr %82, align 8, !tbaa !8
  br label %85

85:                                               ; preds = %81, %77
  %.2 = phi i1 [ %spec.select61, %81 ], [ %.04974, %77 ]
  %86 = add nuw nsw i64 %.04875, 1
  %87 = load i64, ptr @M, align 8, !tbaa !8
  %88 = icmp slt i64 %86, %87
  br i1 %88, label %77, label %._crit_edge77, !llvm.loop !22

89:                                               ; preds = %._crit_edge77
  %.not = icmp eq i64 %.05079, %.05781
  br i1 %.not, label %94, label %90

90:                                               ; preds = %89
  %91 = add nuw nsw i64 %.05079, 1
  %92 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %91, i64 %.05781
  %93 = load i64, ptr %92, align 8, !tbaa !8
  %.not58 = icmp eq i64 %93, 0
  br i1 %.not58, label %.critedge85, label %94

94:                                               ; preds = %90, %89
  %95 = getelementptr inbounds [300 x [300 x i64]], ptr @dp, i64 0, i64 %.05079, i64 %.05781
  store i64 1, ptr %95, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %96 = sub nuw nsw i64 %45, %.05079
  store i64 %96, ptr %5, align 8, !tbaa !8
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %98 = load i64, ptr %97, align 8, !tbaa !8
  store i64 %98, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %.pre89 = load i64, ptr @M, align 8, !tbaa !8
  br label %.critedge85

.critedge85:                                      ; preds = %.preheader, %90, %._crit_edge77, %94
  %99 = phi i64 [ %72, %.preheader ], [ %87, %90 ], [ %87, %._crit_edge77 ], [ %.pre89, %94 ]
  %100 = add nsw i64 %.05079, -1
  %101 = icmp sgt i64 %.05079, 0
  br i1 %101, label %.preheader, label %._crit_edge80, !llvm.loop !23
}

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

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

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

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

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

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

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

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

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

; 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 #3 align 2

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

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

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


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