; LLVM IR from ShahjalalShohag/code-library :: Data Structures (MOs Online)

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

%struct.MEX = type { [200002 x i32], [200002 x i32] }
%"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" }

@t = external dso_local global [286 x %struct.MEX], align 16
@st = external dso_local global [23 x i32], align 16
@en = external dso_local global [23 x i32], align 16
@BC = external dso_local global i32, align 4
@a = external dso_local global [100001 x i32], align 16
@I = external dso_local global [100001 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5queryii(i32 noundef, i32 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3MEX3addEi(ptr noundef nonnull align 4 dereferenceable(1600016), i32 noundef) #2 align 2

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

; 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 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
  store i32 0, ptr %1, align 4
  %19 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %20 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %22
  %24 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %23, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %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) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %27

27:                                               ; preds = %45, %0
  %28 = load i32, ptr %4, align 4, !tbaa !8
  %29 = load i32, ptr %2, align 4, !tbaa !8
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %27
  %33 = load i32, ptr %4, align 4, !tbaa !8
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %34
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %37 = load i32, ptr %4, align 4, !tbaa !8
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !8
  %41 = call noundef i32 @_Z3geti(i32 noundef %40)
  %42 = load i32, ptr %4, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %43
  store i32 %41, ptr %44, align 4, !tbaa !8
  br label %45

45:                                               ; preds = %32
  %46 = load i32, ptr %4, align 4, !tbaa !8
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %4, align 4, !tbaa !8
  br label %27, !llvm.loop !11

48:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !8
  br label %49

49:                                               ; preds = %82, %48
  %50 = load i32, ptr %5, align 4, !tbaa !8
  %51 = load i32, ptr %2, align 4, !tbaa !8
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %85

54:                                               ; preds = %49
  %55 = load i32, ptr %5, align 4, !tbaa !8
  %56 = srem i32 %55, 4500
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %66

58:                                               ; preds = %54
  %59 = load i32, ptr %5, align 4, !tbaa !8
  %60 = load i32, ptr %5, align 4, !tbaa !8
  %61 = sdiv i32 %60, 4500
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [23 x i32], ptr @st, i64 0, i64 %62
  store i32 %59, ptr %63, align 4, !tbaa !8
  %64 = load i32, ptr @BC, align 4, !tbaa !8
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr @BC, align 4, !tbaa !8
  br label %66

66:                                               ; preds = %58, %54
  %67 = load i32, ptr %5, align 4, !tbaa !8
  %68 = srem i32 %67, 4500
  %69 = icmp eq i32 %68, 4499
  br i1 %69, label %75, label %70

70:                                               ; preds = %66
  %71 = load i32, ptr %5, align 4, !tbaa !8
  %72 = load i32, ptr %2, align 4, !tbaa !8
  %73 = sub nsw i32 %72, 1
  %74 = icmp eq i32 %71, %73
  br i1 %74, label %75, label %81

75:                                               ; preds = %70, %66
  %76 = load i32, ptr %5, align 4, !tbaa !8
  %77 = load i32, ptr %5, align 4, !tbaa !8
  %78 = sdiv i32 %77, 4500
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [23 x i32], ptr @en, i64 0, i64 %79
  store i32 %76, ptr %80, align 4, !tbaa !8
  br label %81

81:                                               ; preds = %75, %70
  br label %82

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

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

86:                                               ; preds = %137, %85
  %87 = load i32, ptr %7, align 4, !tbaa !8
  %88 = load i32, ptr @BC, align 4, !tbaa !8
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

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

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %92 = load i32, ptr %7, align 4, !tbaa !8
  store i32 %92, ptr %9, align 4, !tbaa !8
  br label %93

93:                                               ; preds = %133, %91
  %94 = load i32, ptr %9, align 4, !tbaa !8
  %95 = load i32, ptr @BC, align 4, !tbaa !8
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %98, label %97

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

98:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %99 = load i32, ptr %6, align 4, !tbaa !8
  store i32 %99, ptr %10, align 4, !tbaa !8
  %100 = load i32, ptr %6, align 4, !tbaa !8
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %6, align 4, !tbaa !8
  %102 = load i32, ptr %7, align 4, !tbaa !8
  %103 = load i32, ptr @BC, align 4, !tbaa !8
  %104 = mul nsw i32 %102, %103
  %105 = load i32, ptr %9, align 4, !tbaa !8
  %106 = add nsw i32 %104, %105
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [100001 x i32], ptr @I, i64 0, i64 %107
  store i32 %100, ptr %108, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %109 = load i32, ptr %7, align 4, !tbaa !8
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [23 x i32], ptr @st, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !8
  store i32 %112, ptr %11, align 4, !tbaa !8
  br label %113

113:                                              ; preds = %129, %98
  %114 = load i32, ptr %11, align 4, !tbaa !8
  %115 = load i32, ptr %9, align 4, !tbaa !8
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [23 x i32], ptr @en, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !8
  %119 = icmp sle i32 %114, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %113
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %132

121:                                              ; preds = %113
  %122 = load i32, ptr %10, align 4, !tbaa !8
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [286 x %struct.MEX], ptr @t, i64 0, i64 %123
  %125 = load i32, ptr %11, align 4, !tbaa !8
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !8
  call void @_ZN3MEX3addEi(ptr noundef nonnull align 4 dereferenceable(1600016) %124, i32 noundef %128)
  br label %129

129:                                              ; preds = %121
  %130 = load i32, ptr %11, align 4, !tbaa !8
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %11, align 4, !tbaa !8
  br label %113, !llvm.loop !14

132:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %9, align 4, !tbaa !8
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %9, align 4, !tbaa !8
  br label %93, !llvm.loop !15

136:                                              ; preds = %97
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %7, align 4, !tbaa !8
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %7, align 4, !tbaa !8
  br label %86, !llvm.loop !16

140:                                              ; preds = %90
  br label %141

141:                                              ; preds = %218, %140
  %142 = load i32, ptr %3, align 4, !tbaa !8
  %143 = add nsw i32 %142, -1
  store i32 %143, ptr %3, align 4, !tbaa !8
  %144 = icmp ne i32 %142, 0
  br i1 %144, label %145, label %219

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %146 = 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)
  %147 = load i32, ptr %12, align 4, !tbaa !8
  %148 = icmp eq i32 %147, 1
  br i1 %148, label %149, label %161

149:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %150 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %151 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %150, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %152 = load i32, ptr %13, align 4, !tbaa !8
  %153 = add nsw i32 %152, -1
  store i32 %153, ptr %13, align 4, !tbaa !8
  %154 = load i32, ptr %14, align 4, !tbaa !8
  %155 = add nsw i32 %154, -1
  store i32 %155, ptr %14, align 4, !tbaa !8
  %156 = load i32, ptr %13, align 4, !tbaa !8
  %157 = load i32, ptr %14, align 4, !tbaa !8
  %158 = call noundef i32 @_Z5queryii(i32 noundef %156, i32 noundef %157)
  %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_c(ptr noundef nonnull align 8 dereferenceable(8) %159, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %218

161:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %162 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %163 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %162, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %164 = load i32, ptr %15, align 4, !tbaa !8
  %165 = add nsw i32 %164, -1
  store i32 %165, ptr %15, align 4, !tbaa !8
  %166 = load i32, ptr %16, align 4, !tbaa !8
  %167 = call noundef i32 @_Z3geti(i32 noundef %166)
  store i32 %167, ptr %16, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %168

168:                                              ; preds = %210, %161
  %169 = load i32, ptr %17, align 4, !tbaa !8
  %170 = load i32, ptr @BC, align 4, !tbaa !8
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  store i32 19, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %213

173:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %174 = load i32, ptr %17, align 4, !tbaa !8
  store i32 %174, ptr %18, align 4, !tbaa !8
  br label %175

175:                                              ; preds = %206, %173
  %176 = load i32, ptr %18, align 4, !tbaa !8
  %177 = load i32, ptr @BC, align 4, !tbaa !8
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 22, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %209

180:                                              ; preds = %175
  %181 = load i32, ptr %17, align 4, !tbaa !8
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [23 x i32], ptr @st, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !8
  %185 = load i32, ptr %15, align 4, !tbaa !8
  %186 = icmp sle i32 %184, %185
  br i1 %186, label %187, label %205

187:                                              ; preds = %180
  %188 = load i32, ptr %15, align 4, !tbaa !8
  %189 = load i32, ptr %18, align 4, !tbaa !8
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [23 x i32], ptr @en, i64 0, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !8
  %193 = icmp sle i32 %188, %192
  br i1 %193, label %194, label %205

194:                                              ; preds = %187
  %195 = load i32, ptr %17, align 4, !tbaa !8
  %196 = load i32, ptr @BC, align 4, !tbaa !8
  %197 = mul nsw i32 %195, %196
  %198 = load i32, ptr %18, align 4, !tbaa !8
  %199 = add nsw i32 %197, %198
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [100001 x i32], ptr @I, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !8
  %203 = load i32, ptr %15, align 4, !tbaa !8
  %204 = load i32, ptr %16, align 4, !tbaa !8
  call void @_Z3updiii(i32 noundef %202, i32 noundef %203, i32 noundef %204)
  br label %205

205:                                              ; preds = %194, %187, %180
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %18, align 4, !tbaa !8
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %18, align 4, !tbaa !8
  br label %175, !llvm.loop !17

209:                                              ; preds = %179
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %17, align 4, !tbaa !8
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %17, align 4, !tbaa !8
  br label %168, !llvm.loop !18

213:                                              ; preds = %172
  %214 = load i32, ptr %16, align 4, !tbaa !8
  %215 = load i32, ptr %15, align 4, !tbaa !8
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %216
  store i32 %214, ptr %217, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %218

218:                                              ; preds = %213, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %141, !llvm.loop !19

219:                                              ; preds = %141
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %220 = load i32, ptr %1, align 4
  ret i32 %220
}

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

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

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

; 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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3updiii(i32 noundef, i32 noundef, i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !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"

%struct.MEX = type { [200002 x i32], [200002 x i32] }
%"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" }

@t = external dso_local global [286 x %struct.MEX], align 16
@st = external dso_local local_unnamed_addr global [23 x i32], align 16
@en = external dso_local local_unnamed_addr global [23 x i32], align 16
@BC = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local global [100001 x i32], align 16
@I = external dso_local local_unnamed_addr global [100001 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z5queryii(i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3MEX3addEi(ptr noundef nonnull align 4 dereferenceable(1600016), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #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 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %16 = load i32, ptr %1, align 4, !tbaa !8
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %.preheader55..preheader54_crit_edge

.preheader55:                                     ; preds = %.lr.ph
  %18 = icmp sgt i32 %24, 0
  br i1 %18, label %.lr.ph58, label %.preheader55..preheader54_crit_edge

.preheader55..preheader54_crit_edge:              ; preds = %0, %.preheader55
  %.pre = load i32, ptr @BC, align 4, !tbaa !8
  br label %.preheader54

.lr.ph58:                                         ; preds = %.preheader55
  %BC.promoted = load i32, ptr @BC, align 4, !tbaa !8
  %19 = add nsw i32 %24, -1
  br label %29

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %20 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %22 = load i32, ptr %20, align 4, !tbaa !8
  %23 = call noundef i32 @_Z3geti(i32 noundef %22)
  store i32 %23, ptr %20, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i32, ptr %1, align 4, !tbaa !8
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next, %25
  br i1 %26, label %.lr.ph, label %.preheader55, !llvm.loop !11

.preheader54:                                     ; preds = %45, %.preheader55..preheader54_crit_edge
  %27 = phi i32 [ %.pre, %.preheader55..preheader54_crit_edge ], [ %46, %45 ]
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.preheader53, label %.preheader52

29:                                               ; preds = %.lr.ph58, %45
  %.04457 = phi i32 [ 0, %.lr.ph58 ], [ %47, %45 ]
  %30 = phi i32 [ %BC.promoted, %.lr.ph58 ], [ %46, %45 ]
  %31 = urem i32 %.04457, 4500
  %32 = udiv i32 %.04457, 4500
  switch i32 %31, label %38 [
    i32 0, label %33
    i32 4499, label %41
  ]

33:                                               ; preds = %29
  %34 = udiv i32 %.04457, 4500
  %35 = zext nneg i32 %34 to i64
  %36 = getelementptr inbounds [23 x i32], ptr @st, i64 0, i64 %35
  store i32 %.04457, ptr %36, align 4, !tbaa !8
  %37 = add nsw i32 %30, 1
  store i32 %37, ptr @BC, align 4, !tbaa !8
  br label %38

38:                                               ; preds = %33, %29
  %39 = phi i32 [ %37, %33 ], [ %30, %29 ]
  %40 = icmp eq i32 %.04457, %19
  br i1 %40, label %41, label %45

41:                                               ; preds = %29, %38
  %42 = phi i32 [ %30, %29 ], [ %39, %38 ]
  %43 = zext nneg i32 %32 to i64
  %44 = getelementptr inbounds [23 x i32], ptr @en, i64 0, i64 %43
  store i32 %.04457, ptr %44, align 4, !tbaa !8
  br label %45

45:                                               ; preds = %38, %41
  %46 = phi i32 [ %39, %38 ], [ %42, %41 ]
  %47 = add nuw nsw i32 %.04457, 1
  %exitcond.not = icmp eq i32 %47, %24
  br i1 %exitcond.not, label %.preheader54, label %29, !llvm.loop !13

.preheader53:                                     ; preds = %.preheader54, %._crit_edge65
  %48 = phi i32 [ %57, %._crit_edge65 ], [ %27, %.preheader54 ]
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %._crit_edge65 ], [ 0, %.preheader54 ]
  %.04367 = phi i32 [ %.1.lcssa, %._crit_edge65 ], [ 0, %.preheader54 ]
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv85, %49
  br i1 %50, label %.lr.ph64, label %._crit_edge65

.lr.ph64:                                         ; preds = %.preheader53
  %51 = getelementptr inbounds [23 x i32], ptr @st, i64 0, i64 %indvars.iv85
  %52 = sext i32 %.04367 to i64
  %53 = trunc nuw nsw i64 %indvars.iv85 to i32
  br label %59

.preheader52:                                     ; preds = %._crit_edge65, %.preheader54
  %54 = load i32, ptr %2, align 4, !tbaa !8
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr %2, align 4, !tbaa !8
  %.not75 = icmp eq i32 %54, 0
  br i1 %.not75, label %._crit_edge77, label %.lr.ph76

._crit_edge65.loopexit:                           ; preds = %._crit_edge
  %56 = trunc nsw i64 %indvars.iv.next90 to i32
  %.pre104 = sext i32 %73 to i64
  br label %._crit_edge65

._crit_edge65:                                    ; preds = %._crit_edge65.loopexit, %.preheader53
  %.pre-phi = phi i64 [ %.pre104, %._crit_edge65.loopexit ], [ %49, %.preheader53 ]
  %57 = phi i32 [ %73, %._crit_edge65.loopexit ], [ %48, %.preheader53 ]
  %.1.lcssa = phi i32 [ %56, %._crit_edge65.loopexit ], [ %.04367, %.preheader53 ]
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %58 = icmp slt i64 %indvars.iv.next86, %.pre-phi
  br i1 %58, label %.preheader53, label %.preheader52, !llvm.loop !14

59:                                               ; preds = %.lr.ph64, %._crit_edge
  %60 = phi i32 [ %48, %.lr.ph64 ], [ %73, %._crit_edge ]
  %61 = phi i32 [ %48, %.lr.ph64 ], [ %74, %._crit_edge ]
  %indvars.iv89 = phi i64 [ %52, %.lr.ph64 ], [ %indvars.iv.next90, %._crit_edge ]
  %indvars.iv87 = phi i64 [ %indvars.iv85, %.lr.ph64 ], [ %indvars.iv.next88, %._crit_edge ]
  %indvars.iv.next90 = add nsw i64 %indvars.iv89, 1
  %62 = mul nsw i32 %61, %53
  %63 = trunc nuw nsw i64 %indvars.iv87 to i32
  %64 = add nsw i32 %62, %63
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [100001 x i32], ptr @I, i64 0, i64 %65
  %67 = trunc nsw i64 %indvars.iv89 to i32
  store i32 %67, ptr %66, align 4, !tbaa !8
  %68 = load i32, ptr %51, align 4, !tbaa !8
  %69 = getelementptr inbounds [23 x i32], ptr @en, i64 0, i64 %indvars.iv87
  %70 = load i32, ptr %69, align 4, !tbaa !8
  %.not5159 = icmp sgt i32 %68, %70
  br i1 %.not5159, label %._crit_edge, label %.lr.ph61

.lr.ph61:                                         ; preds = %59
  %71 = getelementptr inbounds [286 x %struct.MEX], ptr @t, i64 0, i64 %indvars.iv89
  %72 = sext i32 %68 to i64
  br label %77

._crit_edge.loopexit:                             ; preds = %77
  %.pre101 = load i32, ptr @BC, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %59
  %73 = phi i32 [ %.pre101, %._crit_edge.loopexit ], [ %60, %59 ]
  %74 = phi i32 [ %.pre101, %._crit_edge.loopexit ], [ %61, %59 ]
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %75 = trunc nuw i64 %indvars.iv.next88 to i32
  %76 = icmp sgt i32 %74, %75
  br i1 %76, label %59, label %._crit_edge65.loopexit, !llvm.loop !15

77:                                               ; preds = %.lr.ph61, %77
  %indvars.iv82 = phi i64 [ %72, %.lr.ph61 ], [ %indvars.iv.next83, %77 ]
  %78 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %indvars.iv82
  %79 = load i32, ptr %78, align 4, !tbaa !8
  call void @_ZN3MEX3addEi(ptr noundef nonnull align 4 dereferenceable(1600016) %71, i32 noundef %79)
  %indvars.iv.next83 = add nsw i64 %indvars.iv82, 1
  %80 = load i32, ptr %69, align 4, !tbaa !8
  %81 = sext i32 %80 to i64
  %.not51.not = icmp slt i64 %indvars.iv82, %81
  br i1 %.not51.not, label %77, label %._crit_edge.loopexit, !llvm.loop !16

.lr.ph76:                                         ; preds = %.preheader52, %138
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %83 = load i32, ptr %3, align 4, !tbaa !8
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %85, label %95

85:                                               ; preds = %.lr.ph76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %86, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %88 = load i32, ptr %4, align 4, !tbaa !8
  %89 = add nsw i32 %88, -1
  store i32 %89, ptr %4, align 4, !tbaa !8
  %90 = load i32, ptr %5, align 4, !tbaa !8
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr %5, align 4, !tbaa !8
  %92 = call noundef i32 @_Z5queryii(i32 noundef %89, i32 noundef %91)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %92)
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %93, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %138

95:                                               ; preds = %.lr.ph76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %98 = load i32, ptr %6, align 4, !tbaa !8
  %99 = add nsw i32 %98, -1
  store i32 %99, ptr %6, align 4, !tbaa !8
  %100 = load i32, ptr %7, align 4, !tbaa !8
  %101 = call noundef i32 @_Z3geti(i32 noundef %100)
  store i32 %101, ptr %7, align 4, !tbaa !8
  %102 = load i32, ptr @BC, align 4, !tbaa !8
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %.preheader, label %._crit_edge74

.preheader:                                       ; preds = %95, %._crit_edge71
  %104 = phi i32 [ %116, %._crit_edge71 ], [ %102, %95 ]
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %._crit_edge71 ], [ 0, %95 ]
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv95, %105
  br i1 %106, label %.lr.ph70, label %._crit_edge71

.lr.ph70:                                         ; preds = %.preheader
  %107 = getelementptr inbounds [23 x i32], ptr @st, i64 0, i64 %indvars.iv95
  %108 = load i32, ptr %107, align 4, !tbaa !8
  %109 = load i32, ptr %6, align 4, !tbaa !8
  %110 = icmp sgt i32 %108, %109
  br i1 %110, label %._crit_edge71, label %.lr.ph70.split.preheader

.lr.ph70.split.preheader:                         ; preds = %.lr.ph70
  %111 = trunc nuw nsw i64 %indvars.iv95 to i32
  br label %.lr.ph70.split

._crit_edge74.loopexit:                           ; preds = %._crit_edge71
  %.pre103 = load i32, ptr %7, align 4, !tbaa !8
  br label %._crit_edge74

._crit_edge74:                                    ; preds = %._crit_edge74.loopexit, %95
  %112 = phi i32 [ %.pre103, %._crit_edge74.loopexit ], [ %101, %95 ]
  %113 = load i32, ptr %6, align 4, !tbaa !8
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100001 x i32], ptr @a, i64 0, i64 %114
  store i32 %112, ptr %115, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %138

._crit_edge71.loopexit78:                         ; preds = %133
  %.pre105 = sext i32 %134 to i64
  br label %._crit_edge71

._crit_edge71:                                    ; preds = %.lr.ph70, %._crit_edge71.loopexit78, %.preheader
  %.pre-phi106 = phi i64 [ %.pre105, %._crit_edge71.loopexit78 ], [ %105, %.preheader ], [ %105, %.lr.ph70 ]
  %116 = phi i32 [ %134, %._crit_edge71.loopexit78 ], [ %104, %.preheader ], [ %104, %.lr.ph70 ]
  %indvars.iv.next96 = add nuw nsw i64 %indvars.iv95, 1
  %117 = icmp slt i64 %indvars.iv.next96, %.pre-phi106
  br i1 %117, label %.preheader, label %._crit_edge74.loopexit, !llvm.loop !17

.lr.ph70.split:                                   ; preds = %.lr.ph70.split.preheader, %133
  %118 = phi i32 [ %104, %.lr.ph70.split.preheader ], [ %134, %133 ]
  %119 = phi i32 [ %104, %.lr.ph70.split.preheader ], [ %135, %133 ]
  %indvars.iv97 = phi i64 [ %indvars.iv95, %.lr.ph70.split.preheader ], [ %indvars.iv.next98, %133 ]
  %120 = load i32, ptr %107, align 4, !tbaa !8
  %121 = load i32, ptr %6, align 4, !tbaa !8
  %.not49 = icmp sgt i32 %120, %121
  br i1 %.not49, label %133, label %122

122:                                              ; preds = %.lr.ph70.split
  %123 = getelementptr inbounds [23 x i32], ptr @en, i64 0, i64 %indvars.iv97
  %124 = load i32, ptr %123, align 4, !tbaa !8
  %.not50 = icmp sgt i32 %121, %124
  br i1 %.not50, label %133, label %125

125:                                              ; preds = %122
  %126 = mul nsw i32 %119, %111
  %127 = trunc nuw nsw i64 %indvars.iv97 to i32
  %128 = add nsw i32 %126, %127
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [100001 x i32], ptr @I, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !8
  %132 = load i32, ptr %7, align 4, !tbaa !8
  call void @_Z3updiii(i32 noundef %131, i32 noundef %121, i32 noundef %132)
  %.pre102 = load i32, ptr @BC, align 4, !tbaa !8
  br label %133

133:                                              ; preds = %.lr.ph70.split, %122, %125
  %134 = phi i32 [ %118, %.lr.ph70.split ], [ %118, %122 ], [ %.pre102, %125 ]
  %135 = phi i32 [ %119, %.lr.ph70.split ], [ %119, %122 ], [ %.pre102, %125 ]
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %136 = trunc nuw i64 %indvars.iv.next98 to i32
  %137 = icmp sgt i32 %135, %136
  br i1 %137, label %.lr.ph70.split, label %._crit_edge71.loopexit78, !llvm.loop !18

138:                                              ; preds = %._crit_edge74, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %139 = load i32, ptr %2, align 4, !tbaa !8
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr %2, align 4, !tbaa !8
  %.not = icmp eq i32 %139, 0
  br i1 %.not, label %._crit_edge77, label %.lr.ph76, !llvm.loop !20

._crit_edge77:                                    ; preds = %138, %.preheader52
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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

declare 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: 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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3updiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12, !19}
!19 = !{!"llvm.loop.unswitch.partial.disable"}
!20 = distinct !{!20, !12}


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