; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x49-总结与练习/258. 石头剪子布 (main)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@line = external dso_local global [1530 x i32], align 16
@op = external dso_local global [2010 x i8], align 16
@x = external dso_local global [2010 x i32], align 16
@y = external dso_local global [2010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4initv() #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3geti(i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mergeii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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 i8, align 1
  %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
  store i32 0, ptr %1, align 4
  br label %17

17:                                               ; preds = %241, %0
  %18 = 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)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %19, i64 %22
  %24 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %23)
  br i1 %24, label %25, label %242

25:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !8
  br label %26

26:                                               ; preds = %58, %25
  %27 = load i32, ptr %2, align 4, !tbaa !8
  %28 = load i32, ptr @m, align 4, !tbaa !8
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %61

31:                                               ; preds = %26
  %32 = load i32, ptr %2, align 4, !tbaa !8
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [2010 x i32], ptr @x, i64 0, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %34)
  %36 = load i32, ptr %2, align 4, !tbaa !8
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [2010 x i8], ptr @op, i64 0, i64 %37
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 1 dereferenceable(1) %38)
  %40 = load i32, ptr %2, align 4, !tbaa !8
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [2010 x i32], ptr @y, i64 0, i64 %41
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %44 = load i32, ptr %2, align 4, !tbaa !8
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [2010 x i8], ptr @op, i64 0, i64 %45
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = sext i8 %47 to i32
  %49 = icmp eq i32 %48, 60
  br i1 %49, label %50, label %57

50:                                               ; preds = %31
  %51 = load i32, ptr %2, align 4, !tbaa !8
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [2010 x i32], ptr @x, i64 0, i64 %52
  %54 = load i32, ptr %2, align 4, !tbaa !8
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [2010 x i32], ptr @y, i64 0, i64 %55
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %53, ptr noundef nonnull align 4 dereferenceable(4) %56) #8
  br label %57

57:                                               ; preds = %50, %31
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %2, align 4, !tbaa !8
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %2, align 4, !tbaa !8
  br label %26, !llvm.loop !12

61:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !8
  call void @llvm.memset.p0.i64(ptr align 16 @line, i8 0, i64 6120, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !8
  br label %62

62:                                               ; preds = %201, %61
  %63 = load i32, ptr %6, align 4, !tbaa !8
  %64 = load i32, ptr @n, align 4, !tbaa !8
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %62
  call void @_Z4initv()
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  store i8 1, ptr %8, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %68

68:                                               ; preds = %186, %67
  %69 = load i32, ptr %9, align 4, !tbaa !8
  %70 = load i32, ptr @m, align 4, !tbaa !8
  %71 = icmp sle i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 10, ptr %7, align 4
  br label %189

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %74 = load i32, ptr %9, align 4, !tbaa !8
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [2010 x i32], ptr @x, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !8
  store i32 %77, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %78 = load i32, ptr %9, align 4, !tbaa !8
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [2010 x i32], ptr @x, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !8
  %82 = load i32, ptr @n, align 4, !tbaa !8
  %83 = add nsw i32 %81, %82
  store i32 %83, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %84 = load i32, ptr %9, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [2010 x i32], ptr @x, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !8
  %88 = load i32, ptr @n, align 4, !tbaa !8
  %89 = mul nsw i32 2, %88
  %90 = add nsw i32 %87, %89
  store i32 %90, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %91 = load i32, ptr %9, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [2010 x i32], ptr @y, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !8
  store i32 %94, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %95 = load i32, ptr %9, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [2010 x i32], ptr @y, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %99 = load i32, ptr @n, align 4, !tbaa !8
  %100 = add nsw i32 %98, %99
  store i32 %100, ptr %14, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %101 = load i32, ptr %9, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [2010 x i32], ptr @y, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !8
  %105 = load i32, ptr @n, align 4, !tbaa !8
  %106 = mul nsw i32 2, %105
  %107 = add nsw i32 %104, %106
  store i32 %107, ptr %15, align 4, !tbaa !8
  %108 = load i32, ptr %9, align 4, !tbaa !8
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [2010 x i8], ptr @op, i64 0, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !11
  %112 = sext i8 %111 to i32
  %113 = icmp eq i32 %112, 61
  br i1 %113, label %114, label %148

114:                                              ; preds = %73
  %115 = load i32, ptr %11, align 4, !tbaa !8
  %116 = call noundef i32 @_Z3geti(i32 noundef %115)
  %117 = load i32, ptr %13, align 4, !tbaa !8
  %118 = call noundef i32 @_Z3geti(i32 noundef %117)
  %119 = icmp eq i32 %116, %118
  br i1 %119, label %126, label %120

120:                                              ; preds = %114
  %121 = load i32, ptr %12, align 4, !tbaa !8
  %122 = call noundef i32 @_Z3geti(i32 noundef %121)
  %123 = load i32, ptr %13, align 4, !tbaa !8
  %124 = call noundef i32 @_Z3geti(i32 noundef %123)
  %125 = icmp eq i32 %122, %124
  br i1 %125, label %126, label %131

126:                                              ; preds = %120, %114
  store i8 0, ptr %8, align 1, !tbaa !14
  %127 = load i32, ptr %9, align 4, !tbaa !8
  %128 = load i32, ptr %6, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1530 x i32], ptr @line, i64 0, i64 %129
  store i32 %127, ptr %130, align 4, !tbaa !8
  store i32 10, ptr %7, align 4
  br label %183

131:                                              ; preds = %120
  %132 = load i32, ptr %10, align 4, !tbaa !8
  %133 = load i32, ptr %6, align 4, !tbaa !8
  %134 = icmp eq i32 %132, %133
  br i1 %134, label %139, label %135

135:                                              ; preds = %131
  %136 = load i32, ptr %13, align 4, !tbaa !8
  %137 = load i32, ptr %6, align 4, !tbaa !8
  %138 = icmp eq i32 %136, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %135, %131
  store i32 12, ptr %7, align 4
  br label %183

140:                                              ; preds = %135
  %141 = load i32, ptr %10, align 4, !tbaa !8
  %142 = load i32, ptr %13, align 4, !tbaa !8
  call void @_Z5mergeii(i32 noundef %141, i32 noundef %142)
  %143 = load i32, ptr %11, align 4, !tbaa !8
  %144 = load i32, ptr %14, align 4, !tbaa !8
  call void @_Z5mergeii(i32 noundef %143, i32 noundef %144)
  %145 = load i32, ptr %12, align 4, !tbaa !8
  %146 = load i32, ptr %15, align 4, !tbaa !8
  call void @_Z5mergeii(i32 noundef %145, i32 noundef %146)
  br label %147

147:                                              ; preds = %140
  br label %182

148:                                              ; preds = %73
  %149 = load i32, ptr %10, align 4, !tbaa !8
  %150 = call noundef i32 @_Z3geti(i32 noundef %149)
  %151 = load i32, ptr %13, align 4, !tbaa !8
  %152 = call noundef i32 @_Z3geti(i32 noundef %151)
  %153 = icmp eq i32 %150, %152
  br i1 %153, label %160, label %154

154:                                              ; preds = %148
  %155 = load i32, ptr %14, align 4, !tbaa !8
  %156 = call noundef i32 @_Z3geti(i32 noundef %155)
  %157 = load i32, ptr %10, align 4, !tbaa !8
  %158 = call noundef i32 @_Z3geti(i32 noundef %157)
  %159 = icmp eq i32 %156, %158
  br i1 %159, label %160, label %165

160:                                              ; preds = %154, %148
  store i8 0, ptr %8, align 1, !tbaa !14
  %161 = load i32, ptr %9, align 4, !tbaa !8
  %162 = load i32, ptr %6, align 4, !tbaa !8
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [1530 x i32], ptr @line, i64 0, i64 %163
  store i32 %161, ptr %164, align 4, !tbaa !8
  store i32 10, ptr %7, align 4
  br label %183

165:                                              ; preds = %154
  %166 = load i32, ptr %10, align 4, !tbaa !8
  %167 = load i32, ptr %6, align 4, !tbaa !8
  %168 = icmp eq i32 %166, %167
  br i1 %168, label %173, label %169

169:                                              ; preds = %165
  %170 = load i32, ptr %13, align 4, !tbaa !8
  %171 = load i32, ptr %6, align 4, !tbaa !8
  %172 = icmp eq i32 %170, %171
  br i1 %172, label %173, label %174

173:                                              ; preds = %169, %165
  store i32 12, ptr %7, align 4
  br label %183

174:                                              ; preds = %169
  %175 = load i32, ptr %10, align 4, !tbaa !8
  %176 = load i32, ptr %15, align 4, !tbaa !8
  call void @_Z5mergeii(i32 noundef %175, i32 noundef %176)
  %177 = load i32, ptr %11, align 4, !tbaa !8
  %178 = load i32, ptr %13, align 4, !tbaa !8
  call void @_Z5mergeii(i32 noundef %177, i32 noundef %178)
  %179 = load i32, ptr %12, align 4, !tbaa !8
  %180 = load i32, ptr %14, align 4, !tbaa !8
  call void @_Z5mergeii(i32 noundef %179, i32 noundef %180)
  br label %181

181:                                              ; preds = %174
  br label %182

182:                                              ; preds = %181, %147
  store i32 0, ptr %7, align 4
  br label %183

183:                                              ; preds = %182, %173, %160, %139, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %184 = load i32, ptr %7, align 4
  switch i32 %184, label %189 [
    i32 0, label %185
    i32 12, label %186
  ]

185:                                              ; preds = %183
  br label %186

186:                                              ; preds = %185, %183
  %187 = load i32, ptr %9, align 4, !tbaa !8
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %9, align 4, !tbaa !8
  br label %68, !llvm.loop !16

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

190:                                              ; preds = %189
  %191 = load i8, ptr %8, align 1, !tbaa !14, !range !17, !noundef !18
  %192 = trunc i8 %191 to i1
  %193 = zext i1 %192 to i32
  %194 = load i32, ptr %3, align 4, !tbaa !8
  %195 = add nsw i32 %194, %193
  store i32 %195, ptr %3, align 4, !tbaa !8
  %196 = load i8, ptr %8, align 1, !tbaa !14, !range !17, !noundef !18
  %197 = trunc i8 %196 to i1
  br i1 %197, label %198, label %200

198:                                              ; preds = %190
  %199 = load i32, ptr %6, align 4, !tbaa !8
  store i32 %199, ptr %4, align 4, !tbaa !8
  br label %200

200:                                              ; preds = %198, %190
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %6, align 4, !tbaa !8
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %6, align 4, !tbaa !8
  br label %62, !llvm.loop !19

204:                                              ; preds = %66
  %205 = load i32, ptr %3, align 4, !tbaa !8
  %206 = icmp eq i32 %205, 0
  br i1 %206, label %207, label %210

207:                                              ; preds = %204
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %241

210:                                              ; preds = %204
  %211 = load i32, ptr %3, align 4, !tbaa !8
  %212 = icmp eq i32 %211, 1
  br i1 %212, label %213, label %237

213:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %214

214:                                              ; preds = %225, %213
  %215 = load i32, ptr %16, align 4, !tbaa !8
  %216 = load i32, ptr @n, align 4, !tbaa !8
  %217 = icmp slt i32 %215, %216
  br i1 %217, label %219, label %218

218:                                              ; preds = %214
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %228

219:                                              ; preds = %214
  %220 = load i32, ptr %16, align 4, !tbaa !8
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [1530 x i32], ptr @line, i64 0, i64 %221
  %223 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %222)
  %224 = load i32, ptr %223, align 4, !tbaa !8
  store i32 %224, ptr %5, align 4, !tbaa !8
  br label %225

225:                                              ; preds = %219
  %226 = load i32, ptr %16, align 4, !tbaa !8
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %16, align 4, !tbaa !8
  br label %214, !llvm.loop !20

228:                                              ; preds = %218
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %230 = load i32, ptr %4, align 4, !tbaa !8
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %229, i32 noundef %230)
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @.str.2)
  %233 = load i32, ptr %5, align 4, !tbaa !8
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %232, i32 noundef %233)
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef @.str.3)
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %240

237:                                              ; preds = %210
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %238, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %240

240:                                              ; preds = %237, %228
  br label %241

241:                                              ; preds = %240, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %17, !llvm.loop !21

242:                                              ; preds = %17
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #2 align 2

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

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

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

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

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

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@line = external dso_local global [1530 x i32], align 16
@op = external dso_local global [2010 x i8], align 16
@x = external dso_local global [2010 x i32], align 16
@y = external dso_local global [2010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4initv() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3geti(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mergeii(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = 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)
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr %3, i64 %6
  %8 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %7)
  br i1 %8, label %.preheader80, label %._crit_edge100

.preheader80:                                     ; preds = %0, %92
  %.06499 = phi i32 [ %.1.lcssa115, %92 ], [ undef, %0 ]
  %9 = load i32, ptr @m, align 4, !tbaa !8
  %.not83 = icmp slt i32 %9, 1
  br i1 %.not83, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %21, %.preheader80
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  store i32 0, ptr %1, align 4, !tbaa !8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(6120) @line, i8 0, i64 6120, i1 false)
  %10 = load i32, ptr @n, align 4, !tbaa !8
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph93, label %._crit_edge94.thread

.lr.ph:                                           ; preds = %.preheader80, %21
  %indvars.iv = phi i64 [ %indvars.iv.next, %21 ], [ 1, %.preheader80 ]
  %12 = getelementptr inbounds [2010 x i32], ptr @x, i64 0, i64 %indvars.iv
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %14 = getelementptr inbounds [2010 x i8], ptr @op, i64 0, i64 %indvars.iv
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
  %16 = getelementptr inbounds [2010 x i32], ptr @y, i64 0, i64 %indvars.iv
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %18 = load i8, ptr %14, align 1, !tbaa !11
  %19 = icmp eq i8 %18, 60
  br i1 %19, label %20, label %21

20:                                               ; preds = %.lr.ph
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %16) #8
  br label %21

21:                                               ; preds = %.lr.ph, %20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = load i32, ptr @m, align 4, !tbaa !8
  %23 = sext i32 %22 to i64
  %.not.not = icmp slt i64 %indvars.iv, %23
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge94:                                    ; preds = %.loopexit
  switch i32 %72, label %90 [
    i32 0, label %._crit_edge94.thread
    i32 1, label %.preheader
  ]

.preheader:                                       ; preds = %._crit_edge94
  %24 = icmp sgt i32 %74, 0
  br i1 %24, label %.lr.ph97, label %._crit_edge98

.lr.ph93:                                         ; preds = %._crit_edge, %.loopexit
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %.loopexit ], [ 0, %._crit_edge ]
  %.06391 = phi i32 [ %72, %.loopexit ], [ 0, %._crit_edge ]
  %.190 = phi i32 [ %spec.select, %.loopexit ], [ %.06499, %._crit_edge ]
  call void @_Z4initv()
  %25 = load i32, ptr @m, align 4, !tbaa !8
  %.not7585 = icmp slt i32 %25, 1
  br i1 %.not7585, label %.loopexit, label %.lr.ph88

.lr.ph88:                                         ; preds = %.lr.ph93, %65
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %65 ], [ 1, %.lr.ph93 ]
  %26 = getelementptr inbounds [2010 x i32], ptr @x, i64 0, i64 %indvars.iv104
  %27 = load i32, ptr %26, align 4, !tbaa !8
  %28 = load i32, ptr @n, align 4, !tbaa !8
  %29 = add nsw i32 %28, %27
  %30 = shl nsw i32 %28, 1
  %31 = add nsw i32 %30, %27
  %32 = getelementptr inbounds [2010 x i32], ptr @y, i64 0, i64 %indvars.iv104
  %33 = load i32, ptr %32, align 4, !tbaa !8
  %34 = add nsw i32 %33, %28
  %35 = add nsw i32 %33, %30
  %36 = getelementptr inbounds [2010 x i8], ptr @op, i64 0, i64 %indvars.iv104
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = icmp eq i8 %37, 61
  br i1 %38, label %39, label %52

39:                                               ; preds = %.lr.ph88
  %40 = call noundef i32 @_Z3geti(i32 noundef %29)
  %41 = call noundef i32 @_Z3geti(i32 noundef %33)
  %42 = icmp eq i32 %40, %41
  br i1 %42, label %.loopexit.sink.split, label %43

43:                                               ; preds = %39
  %44 = call noundef i32 @_Z3geti(i32 noundef %31)
  %45 = call noundef i32 @_Z3geti(i32 noundef %33)
  %46 = icmp eq i32 %44, %45
  br i1 %46, label %.loopexit.sink.split, label %47

47:                                               ; preds = %43
  %48 = zext i32 %27 to i64
  %49 = icmp eq i64 %indvars.iv107, %48
  %50 = zext i32 %33 to i64
  %51 = icmp eq i64 %indvars.iv107, %50
  %or.cond = select i1 %49, i1 true, i1 %51
  br i1 %or.cond, label %65, label %.sink.split

52:                                               ; preds = %.lr.ph88
  %53 = call noundef i32 @_Z3geti(i32 noundef %27)
  %54 = call noundef i32 @_Z3geti(i32 noundef %33)
  %55 = icmp eq i32 %53, %54
  br i1 %55, label %.loopexit.sink.split, label %56

56:                                               ; preds = %52
  %57 = call noundef i32 @_Z3geti(i32 noundef %34)
  %58 = call noundef i32 @_Z3geti(i32 noundef %27)
  %59 = icmp eq i32 %57, %58
  br i1 %59, label %.loopexit.sink.split, label %60

60:                                               ; preds = %56
  %61 = zext i32 %27 to i64
  %62 = icmp eq i64 %indvars.iv107, %61
  %63 = zext i32 %33 to i64
  %64 = icmp eq i64 %indvars.iv107, %63
  %or.cond76 = select i1 %62, i1 true, i1 %64
  br i1 %or.cond76, label %65, label %.sink.split

.sink.split:                                      ; preds = %60, %47
  %.sink122 = phi i32 [ %33, %47 ], [ %35, %60 ]
  %.sink121 = phi i32 [ %34, %47 ], [ %33, %60 ]
  %.sink = phi i32 [ %35, %47 ], [ %34, %60 ]
  call void @_Z5mergeii(i32 noundef %27, i32 noundef %.sink122)
  call void @_Z5mergeii(i32 noundef %29, i32 noundef %.sink121)
  call void @_Z5mergeii(i32 noundef %31, i32 noundef %.sink)
  br label %65

65:                                               ; preds = %.sink.split, %47, %60
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %66 = load i32, ptr @m, align 4, !tbaa !8
  %67 = sext i32 %66 to i64
  %.not75.not = icmp slt i64 %indvars.iv104, %67
  br i1 %.not75.not, label %.lr.ph88, label %.loopexit, !llvm.loop !14

.loopexit.sink.split:                             ; preds = %52, %56, %39, %43
  %68 = trunc nuw nsw i64 %indvars.iv104 to i32
  %69 = getelementptr inbounds [1530 x i32], ptr @line, i64 0, i64 %indvars.iv107
  store i32 %68, ptr %69, align 4, !tbaa !8
  br label %.loopexit

.loopexit:                                        ; preds = %65, %.loopexit.sink.split, %.lr.ph93
  %.269 = phi i8 [ 1, %.lr.ph93 ], [ 0, %.loopexit.sink.split ], [ 1, %65 ]
  %70 = trunc nuw i8 %.269 to i1
  %71 = zext nneg i8 %.269 to i32
  %72 = add nuw nsw i32 %.06391, %71
  %73 = trunc nuw nsw i64 %indvars.iv107 to i32
  %spec.select = select i1 %70, i32 %73, i32 %.190
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %74 = load i32, ptr @n, align 4, !tbaa !8
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next108, %75
  br i1 %76, label %.lr.ph93, label %._crit_edge94, !llvm.loop !15

._crit_edge94.thread:                             ; preds = %._crit_edge, %._crit_edge94
  %.1.lcssa116 = phi i32 [ %spec.select, %._crit_edge94 ], [ %.06499, %._crit_edge ]
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  br label %92

._crit_edge98:                                    ; preds = %.lr.ph97, %.preheader
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %78, i32 noundef %spec.select)
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull @.str.2)
  %81 = load i32, ptr %1, align 4, !tbaa !8
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %80, i32 noundef %81)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull @.str.3)
  br label %92

.lr.ph97:                                         ; preds = %.preheader, %.lr.ph97
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %.lr.ph97 ], [ 0, %.preheader ]
  %84 = getelementptr inbounds [1530 x i32], ptr @line, i64 0, i64 %indvars.iv110
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %84)
  %86 = load i32, ptr %85, align 4, !tbaa !8
  store i32 %86, ptr %1, align 4, !tbaa !8
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %87 = load i32, ptr @n, align 4, !tbaa !8
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next111, %88
  br i1 %89, label %.lr.ph97, label %._crit_edge98, !llvm.loop !16

90:                                               ; preds = %._crit_edge94
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  br label %92

92:                                               ; preds = %._crit_edge98, %90, %._crit_edge94.thread
  %.sink125 = phi ptr [ %83, %._crit_edge98 ], [ %91, %90 ], [ %77, %._crit_edge94.thread ]
  %.1.lcssa115 = phi i32 [ %spec.select, %._crit_edge98 ], [ %spec.select, %90 ], [ %.1.lcssa116, %._crit_edge94.thread ]
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %.sink125, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  %94 = 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)
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = getelementptr i8, ptr %96, i64 -24
  %98 = load i64, ptr %97, align 8
  %99 = getelementptr inbounds i8, ptr %95, i64 %98
  %100 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %99)
  br i1 %100, label %.preheader80, label %._crit_edge100, !llvm.loop !17

._crit_edge100:                                   ; preds = %92, %0
  ret i32 0
}

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 #4

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #2 align 2

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

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

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

; 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 #7

; 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 #2 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)) #7

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

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

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

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

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


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