; LLVM IR from eyangch/competitive-programming :: USACOcontests/platinum/2023.02 (problem_setting)

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

@MOD = external dso_local global i64, align 8
@f = external dso_local global [100001 x i64], align 16
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@_Z1SB5cxx11 = external dso_local global [20 x %"class.std::__cxx11::basic_string"], align 16
@C = external dso_local global [1048576 x i64], align 16
@sos = external dso_local global [1048576 x [21 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3ncrxx(i64 noundef, i64 noundef) #1

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

20:                                               ; preds = %35, %0
  %21 = load i64, ptr %2, align 8, !tbaa !8
  %22 = icmp sle i64 %21, 100000
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %38

24:                                               ; preds = %20
  %25 = load i64, ptr %2, align 8, !tbaa !8
  %26 = sub nsw i64 %25, 1
  %27 = getelementptr inbounds [100001 x i64], ptr @f, i64 0, i64 %26
  %28 = load i64, ptr %27, align 8, !tbaa !8
  %29 = load i64, ptr %2, align 8, !tbaa !8
  %30 = mul nsw i64 %28, %29
  %31 = load i64, ptr @MOD, align 8, !tbaa !8
  %32 = srem i64 %30, %31
  %33 = load i64, ptr %2, align 8, !tbaa !8
  %34 = getelementptr inbounds [100001 x i64], ptr @f, i64 0, i64 %33
  store i64 %32, ptr %34, align 8, !tbaa !8
  br label %35

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

38:                                               ; preds = %23
  %39 = 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)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %41

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

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

46:                                               ; preds = %41
  %47 = load i64, ptr %3, align 8, !tbaa !8
  %48 = getelementptr inbounds [20 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %47
  %49 = 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) %48)
  br label %50

50:                                               ; preds = %46
  %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 %41, !llvm.loop !13

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

54:                                               ; preds = %89, %53
  %55 = load i64, ptr %4, 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 %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %92

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

60:                                               ; preds = %81, %59
  %61 = load i64, ptr %7, align 8, !tbaa !8
  %62 = load i64, ptr @M, align 8, !tbaa !8
  %63 = icmp slt i64 %61, %62
  br i1 %63, label %65, label %64

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

65:                                               ; preds = %60
  %66 = load i64, ptr %7, align 8, !tbaa !8
  %67 = getelementptr inbounds [20 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %66
  %68 = load i64, ptr %4, align 8, !tbaa !8
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %68)
  %70 = load i8, ptr %69, align 1, !tbaa !14
  %71 = sext i8 %70 to i32
  %72 = icmp eq i32 %71, 72
  br i1 %72, label %73, label %80

73:                                               ; preds = %65
  %74 = load i64, ptr %7, align 8, !tbaa !8
  %75 = trunc i64 %74 to i32
  %76 = shl i32 1, %75
  %77 = sext i32 %76 to i64
  %78 = load i64, ptr %6, align 8, !tbaa !8
  %79 = or i64 %78, %77
  store i64 %79, ptr %6, align 8, !tbaa !8
  br label %80

80:                                               ; preds = %73, %65
  br label %81

81:                                               ; preds = %80
  %82 = load i64, ptr %7, align 8, !tbaa !8
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %7, align 8, !tbaa !8
  br label %60, !llvm.loop !15

84:                                               ; preds = %64
  %85 = load i64, ptr %6, align 8, !tbaa !8
  %86 = getelementptr inbounds [1048576 x i64], ptr @C, i64 0, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !8
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %86, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %89

89:                                               ; preds = %84
  %90 = load i64, ptr %4, align 8, !tbaa !8
  %91 = add nsw i64 %90, 1
  store i64 %91, ptr %4, align 8, !tbaa !8
  br label %54, !llvm.loop !16

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

93:                                               ; preds = %245, %92
  %94 = load i64, ptr %8, align 8, !tbaa !8
  %95 = load i64, ptr @M, align 8, !tbaa !8
  %96 = trunc i64 %95 to i32
  %97 = shl i32 1, %96
  %98 = sext i32 %97 to i64
  %99 = icmp slt i64 %94, %98
  br i1 %99, label %101, label %100

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

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

102:                                              ; preds = %123, %101
  %103 = load i64, ptr %10, align 8, !tbaa !8
  %104 = load i64, ptr %8, align 8, !tbaa !8
  %105 = getelementptr inbounds [1048576 x i64], ptr @C, i64 0, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !8
  %107 = icmp sle i64 %103, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %102
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %126

109:                                              ; preds = %102
  %110 = load i64, ptr %9, align 8, !tbaa !8
  %111 = load i64, ptr %8, align 8, !tbaa !8
  %112 = getelementptr inbounds [1048576 x i64], ptr @C, i64 0, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !8
  %114 = load i64, ptr %10, align 8, !tbaa !8
  %115 = call noundef i64 @_Z3ncrxx(i64 noundef %113, i64 noundef %114)
  %116 = load i64, ptr %10, align 8, !tbaa !8
  %117 = getelementptr inbounds [100001 x i64], ptr @f, i64 0, i64 %116
  %118 = load i64, ptr %117, align 8, !tbaa !8
  %119 = mul nsw i64 %115, %118
  %120 = add nsw i64 %110, %119
  %121 = load i64, ptr @MOD, align 8, !tbaa !8
  %122 = srem i64 %120, %121
  store i64 %122, ptr %9, align 8, !tbaa !8
  br label %123

123:                                              ; preds = %109
  %124 = load i64, ptr %10, align 8, !tbaa !8
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %10, align 8, !tbaa !8
  br label %102, !llvm.loop !17

126:                                              ; preds = %108
  %127 = load i64, ptr %8, align 8, !tbaa !8
  %128 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %127
  %129 = getelementptr inbounds [21 x i64], ptr %128, i64 0, i64 0
  store i64 1, ptr %129, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !8
  br label %130

130:                                              ; preds = %177, %126
  %131 = load i64, ptr %11, align 8, !tbaa !8
  %132 = load i64, ptr @M, align 8, !tbaa !8
  %133 = icmp slt i64 %131, %132
  br i1 %133, label %135, label %134

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

135:                                              ; preds = %130
  %136 = load i64, ptr %8, align 8, !tbaa !8
  %137 = load i64, ptr %11, align 8, !tbaa !8
  %138 = ashr i64 %136, %137
  %139 = and i64 %138, 1
  %140 = icmp ne i64 %139, 0
  br i1 %140, label %141, label %165

141:                                              ; preds = %135
  %142 = load i64, ptr %8, align 8, !tbaa !8
  %143 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %142
  %144 = load i64, ptr %11, align 8, !tbaa !8
  %145 = getelementptr inbounds [21 x i64], ptr %143, i64 0, i64 %144
  %146 = load i64, ptr %145, align 8, !tbaa !8
  %147 = load i64, ptr %8, align 8, !tbaa !8
  %148 = load i64, ptr %11, align 8, !tbaa !8
  %149 = trunc i64 %148 to i32
  %150 = shl i32 1, %149
  %151 = sext i32 %150 to i64
  %152 = xor i64 %147, %151
  %153 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %152
  %154 = load i64, ptr %11, align 8, !tbaa !8
  %155 = getelementptr inbounds [21 x i64], ptr %153, i64 0, i64 %154
  %156 = load i64, ptr %155, align 8, !tbaa !8
  %157 = add nsw i64 %146, %156
  %158 = load i64, ptr @MOD, align 8, !tbaa !8
  %159 = srem i64 %157, %158
  %160 = load i64, ptr %8, align 8, !tbaa !8
  %161 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %160
  %162 = load i64, ptr %11, align 8, !tbaa !8
  %163 = add nsw i64 %162, 1
  %164 = getelementptr inbounds [21 x i64], ptr %161, i64 0, i64 %163
  store i64 %159, ptr %164, align 8, !tbaa !8
  br label %176

165:                                              ; preds = %135
  %166 = load i64, ptr %8, align 8, !tbaa !8
  %167 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %166
  %168 = load i64, ptr %11, align 8, !tbaa !8
  %169 = getelementptr inbounds [21 x i64], ptr %167, i64 0, i64 %168
  %170 = load i64, ptr %169, align 8, !tbaa !8
  %171 = load i64, ptr %8, align 8, !tbaa !8
  %172 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %171
  %173 = load i64, ptr %11, align 8, !tbaa !8
  %174 = add nsw i64 %173, 1
  %175 = getelementptr inbounds [21 x i64], ptr %172, i64 0, i64 %174
  store i64 %170, ptr %175, align 8, !tbaa !8
  br label %176

176:                                              ; preds = %165, %141
  br label %177

177:                                              ; preds = %176
  %178 = load i64, ptr %11, align 8, !tbaa !8
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %11, align 8, !tbaa !8
  br label %130, !llvm.loop !18

180:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %181 = load i64, ptr %8, align 8, !tbaa !8
  %182 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %181
  %183 = load i64, ptr @M, align 8, !tbaa !8
  %184 = getelementptr inbounds [21 x i64], ptr %182, i64 0, i64 %183
  %185 = load i64, ptr %184, align 8, !tbaa !8
  %186 = load i64, ptr %9, align 8, !tbaa !8
  %187 = mul nsw i64 %185, %186
  %188 = load i64, ptr @MOD, align 8, !tbaa !8
  %189 = srem i64 %187, %188
  store i64 %189, ptr %12, align 8, !tbaa !8
  %190 = load i64, ptr %12, align 8, !tbaa !8
  %191 = load i64, ptr %8, align 8, !tbaa !8
  %192 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %191
  %193 = getelementptr inbounds [21 x i64], ptr %192, i64 0, i64 0
  store i64 %190, ptr %193, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !8
  br label %194

194:                                              ; preds = %241, %180
  %195 = load i64, ptr %13, align 8, !tbaa !8
  %196 = load i64, ptr @M, align 8, !tbaa !8
  %197 = icmp slt i64 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 23, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %244

199:                                              ; preds = %194
  %200 = load i64, ptr %8, align 8, !tbaa !8
  %201 = load i64, ptr %13, align 8, !tbaa !8
  %202 = ashr i64 %200, %201
  %203 = and i64 %202, 1
  %204 = icmp ne i64 %203, 0
  br i1 %204, label %205, label %229

205:                                              ; preds = %199
  %206 = load i64, ptr %8, align 8, !tbaa !8
  %207 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %206
  %208 = load i64, ptr %13, align 8, !tbaa !8
  %209 = getelementptr inbounds [21 x i64], ptr %207, i64 0, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !8
  %211 = load i64, ptr %8, align 8, !tbaa !8
  %212 = load i64, ptr %13, align 8, !tbaa !8
  %213 = trunc i64 %212 to i32
  %214 = shl i32 1, %213
  %215 = sext i32 %214 to i64
  %216 = xor i64 %211, %215
  %217 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %216
  %218 = load i64, ptr %13, align 8, !tbaa !8
  %219 = getelementptr inbounds [21 x i64], ptr %217, i64 0, i64 %218
  %220 = load i64, ptr %219, align 8, !tbaa !8
  %221 = add nsw i64 %210, %220
  %222 = load i64, ptr @MOD, align 8, !tbaa !8
  %223 = srem i64 %221, %222
  %224 = load i64, ptr %8, align 8, !tbaa !8
  %225 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %224
  %226 = load i64, ptr %13, align 8, !tbaa !8
  %227 = add nsw i64 %226, 1
  %228 = getelementptr inbounds [21 x i64], ptr %225, i64 0, i64 %227
  store i64 %223, ptr %228, align 8, !tbaa !8
  br label %240

229:                                              ; preds = %199
  %230 = load i64, ptr %8, align 8, !tbaa !8
  %231 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %230
  %232 = load i64, ptr %13, align 8, !tbaa !8
  %233 = getelementptr inbounds [21 x i64], ptr %231, i64 0, i64 %232
  %234 = load i64, ptr %233, align 8, !tbaa !8
  %235 = load i64, ptr %8, align 8, !tbaa !8
  %236 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %235
  %237 = load i64, ptr %13, align 8, !tbaa !8
  %238 = add nsw i64 %237, 1
  %239 = getelementptr inbounds [21 x i64], ptr %236, i64 0, i64 %238
  store i64 %234, ptr %239, align 8, !tbaa !8
  br label %240

240:                                              ; preds = %229, %205
  br label %241

241:                                              ; preds = %240
  %242 = load i64, ptr %13, align 8, !tbaa !8
  %243 = add nsw i64 %242, 1
  store i64 %243, ptr %13, align 8, !tbaa !8
  br label %194, !llvm.loop !19

244:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %245

245:                                              ; preds = %244
  %246 = load i64, ptr %8, align 8, !tbaa !8
  %247 = add nsw i64 %246, 1
  store i64 %247, ptr %8, align 8, !tbaa !8
  br label %93, !llvm.loop !20

248:                                              ; preds = %100
  %249 = load i64, ptr @M, align 8, !tbaa !8
  %250 = trunc i64 %249 to i32
  %251 = shl i32 1, %250
  %252 = sub nsw i32 %251, 1
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %253
  %255 = load i64, ptr @M, align 8, !tbaa !8
  %256 = getelementptr inbounds [21 x i64], ptr %254, i64 0, i64 %255
  %257 = load i64, ptr %256, align 8, !tbaa !8
  %258 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %257)
  %259 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %258, i8 noundef signext 10)
  %260 = load i32, ptr %1, align 4
  ret i32 %260
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 #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 = { 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 = !{!10, !10, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !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" }

@MOD = external dso_local local_unnamed_addr global i64, align 8
@f = external dso_local local_unnamed_addr global [100001 x i64], align 16
@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@_Z1SB5cxx11 = external dso_local global [20 x %"class.std::__cxx11::basic_string"], align 16
@C = external dso_local local_unnamed_addr global [1048576 x i64], align 16
@sos = external dso_local local_unnamed_addr global [1048576 x [21 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3ncrxx(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %2 = getelementptr i8, ptr %1, i64 -24
  %3 = load i64, ptr %2, align 8
  %4 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %3
  %5 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %4, ptr noundef null)
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  store i64 1, ptr @f, align 16, !tbaa !8
  %7 = load i64, ptr @MOD, align 8, !tbaa !8
  br label %13

8:                                                ; preds = %13
  %9 = 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)
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %11 = load i64, ptr @M, align 8, !tbaa !8
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph, label %.preheader77

13:                                               ; preds = %13, %0
  %14 = phi i64 [ 1, %0 ], [ %20, %13 ]
  %.06280 = phi i64 [ 1, %0 ], [ %22, %13 ]
  %15 = mul nsw i64 %14, %.06280
  %16 = srem i64 %15, %7
  %17 = getelementptr inbounds [100001 x i64], ptr @f, i64 0, i64 %.06280
  store i64 %16, ptr %17, align 8, !tbaa !8
  %18 = add nuw nsw i64 %.06280, 1
  %19 = mul nsw i64 %16, %18
  %20 = srem i64 %19, %7
  %21 = getelementptr inbounds [100001 x i64], ptr @f, i64 0, i64 %18
  store i64 %20, ptr %21, align 8, !tbaa !8
  %22 = add nuw nsw i64 %.06280, 2
  %exitcond.not.1 = icmp eq i64 %22, 100001
  br i1 %exitcond.not.1, label %8, label %13, !llvm.loop !11

.preheader77:                                     ; preds = %.lr.ph, %8
  %23 = phi i64 [ %11, %8 ], [ %31, %.lr.ph ]
  %24 = load i64, ptr @N, align 8, !tbaa !8
  %25 = icmp sgt i64 %24, 0
  br i1 %25, label %.preheader76.lr.ph, label %.preheader75

.preheader76.lr.ph:                               ; preds = %.preheader77
  %26 = icmp sgt i64 %23, 0
  br i1 %26, label %.preheader76, label %.preheader76.lr.ph.split.us

.preheader76.lr.ph.split.us:                      ; preds = %.preheader76.lr.ph
  %C.promoted = load i64, ptr @C, align 16, !tbaa !8
  %27 = add i64 %C.promoted, %24
  store i64 %27, ptr @C, align 16, !tbaa !8
  br label %.preheader75

.lr.ph:                                           ; preds = %8, %.lr.ph
  %.07081 = phi i64 [ %30, %.lr.ph ], [ 0, %8 ]
  %28 = getelementptr inbounds [20 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.07081
  %29 = 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) %28)
  %30 = add nuw nsw i64 %.07081, 1
  %31 = load i64, ptr @M, align 8, !tbaa !8
  %32 = icmp slt i64 %30, %31
  br i1 %32, label %.lr.ph, label %.preheader77, !llvm.loop !13

.preheader76:                                     ; preds = %.preheader76.lr.ph, %._crit_edge
  %33 = phi i64 [ %38, %._crit_edge ], [ %24, %.preheader76.lr.ph ]
  %34 = phi i64 [ %39, %._crit_edge ], [ %23, %.preheader76.lr.ph ]
  %.06985 = phi i64 [ %43, %._crit_edge ], [ 0, %.preheader76.lr.ph ]
  %35 = icmp sgt i64 %34, 0
  br i1 %35, label %.lr.ph84, label %._crit_edge

.preheader75:                                     ; preds = %._crit_edge, %.preheader76.lr.ph.split.us, %.preheader77
  %36 = phi i64 [ %23, %.preheader76.lr.ph.split.us ], [ %23, %.preheader77 ], [ %39, %._crit_edge ]
  %37 = and i64 %36, 4294967295
  %.not106 = icmp eq i64 %37, 31
  br i1 %.not106, label %._crit_edge103, label %.preheader

._crit_edge.loopexit:                             ; preds = %.lr.ph84
  %.pre = load i64, ptr @N, align 8, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader76
  %38 = phi i64 [ %33, %.preheader76 ], [ %.pre, %._crit_edge.loopexit ]
  %39 = phi i64 [ %34, %.preheader76 ], [ %54, %._crit_edge.loopexit ]
  %.068.lcssa = phi i64 [ 0, %.preheader76 ], [ %.1, %._crit_edge.loopexit ]
  %40 = getelementptr inbounds [1048576 x i64], ptr @C, i64 0, i64 %.068.lcssa
  %41 = load i64, ptr %40, align 8, !tbaa !8
  %42 = add nsw i64 %41, 1
  store i64 %42, ptr %40, align 8, !tbaa !8
  %43 = add nuw nsw i64 %.06985, 1
  %44 = icmp slt i64 %43, %38
  br i1 %44, label %.preheader76, label %.preheader75, !llvm.loop !14

.lr.ph84:                                         ; preds = %.preheader76, %.lr.ph84
  %.06783 = phi i64 [ %53, %.lr.ph84 ], [ 0, %.preheader76 ]
  %.06882 = phi i64 [ %.1, %.lr.ph84 ], [ 0, %.preheader76 ]
  %45 = getelementptr inbounds [20 x %"class.std::__cxx11::basic_string"], ptr @_Z1SB5cxx11, i64 0, i64 %.06783
  %46 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %45, i64 noundef %.06985)
  %47 = load i8, ptr %46, align 1, !tbaa !16
  %48 = icmp eq i8 %47, 72
  %49 = trunc i64 %.06783 to i32
  %50 = shl nuw i32 1, %49
  %51 = sext i32 %50 to i64
  %52 = select i1 %48, i64 %51, i64 0
  %.1 = or i64 %52, %.06882
  %53 = add nuw nsw i64 %.06783, 1
  %54 = load i64, ptr @M, align 8, !tbaa !8
  %55 = icmp slt i64 %53, %54
  br i1 %55, label %.lr.ph84, label %._crit_edge.loopexit, !llvm.loop !17

.preheader:                                       ; preds = %.preheader75, %._crit_edge101
  %56 = phi i64 [ %65, %._crit_edge101 ], [ %36, %.preheader75 ]
  %.066102 = phi i64 [ %102, %._crit_edge101 ], [ 0, %.preheader75 ]
  %57 = getelementptr inbounds [1048576 x i64], ptr @C, i64 0, i64 %.066102
  %58 = load i64, ptr %57, align 8, !tbaa !8
  %.not87 = icmp slt i64 %58, 1
  br i1 %.not87, label %.preheader.._crit_edge91_crit_edge, label %.lr.ph90

.preheader.._crit_edge91_crit_edge:               ; preds = %.preheader
  %.pre113.pre = load i64, ptr @MOD, align 8
  br label %._crit_edge91

._crit_edge103.loopexit:                          ; preds = %._crit_edge101
  %59 = add nsw i32 %104, -1
  %60 = sext i32 %59 to i64
  br label %._crit_edge103

._crit_edge103:                                   ; preds = %._crit_edge103.loopexit, %.preheader75
  %.lcssa79 = phi i64 [ %36, %.preheader75 ], [ %65, %._crit_edge103.loopexit ]
  %.lcssa78 = phi i64 [ 2147483647, %.preheader75 ], [ %60, %._crit_edge103.loopexit ]
  %61 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %.lcssa78, i64 %.lcssa79
  %62 = load i64, ptr %61, align 8, !tbaa !8
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %62)
  %64 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %63, i8 noundef signext 10)
  ret i32 0

._crit_edge91.loopexit:                           ; preds = %.lr.ph90
  %.pre112 = load i64, ptr @M, align 8, !tbaa !8
  br label %._crit_edge91

._crit_edge91:                                    ; preds = %.preheader.._crit_edge91_crit_edge, %._crit_edge91.loopexit
  %.pre113 = phi i64 [ %.pre113.pre, %.preheader.._crit_edge91_crit_edge ], [ %78, %._crit_edge91.loopexit ]
  %65 = phi i64 [ %56, %.preheader.._crit_edge91_crit_edge ], [ %.pre112, %._crit_edge91.loopexit ]
  %.065.lcssa = phi i64 [ 0, %.preheader.._crit_edge91_crit_edge ], [ %79, %._crit_edge91.loopexit ]
  %66 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %.066102
  store i64 1, ptr %66, align 8, !tbaa !8
  %67 = icmp sgt i64 %65, 0
  br i1 %67, label %.lr.ph95, label %._crit_edge96.thread

._crit_edge96.thread:                             ; preds = %._crit_edge91
  %68 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %.066102, i64 %65
  %69 = load i64, ptr %68, align 8, !tbaa !8
  %70 = mul nsw i64 %69, %.065.lcssa
  %71 = srem i64 %70, %.pre113
  store i64 %71, ptr %66, align 8, !tbaa !8
  br label %._crit_edge101

.lr.ph90:                                         ; preds = %.preheader, %.lr.ph90
  %72 = phi i64 [ %81, %.lr.ph90 ], [ %58, %.preheader ]
  %.06489 = phi i64 [ %80, %.lr.ph90 ], [ 1, %.preheader ]
  %.06588 = phi i64 [ %79, %.lr.ph90 ], [ 0, %.preheader ]
  %73 = tail call noundef i64 @_Z3ncrxx(i64 noundef %72, i64 noundef %.06489)
  %74 = getelementptr inbounds [100001 x i64], ptr @f, i64 0, i64 %.06489
  %75 = load i64, ptr %74, align 8, !tbaa !8
  %76 = mul nsw i64 %75, %73
  %77 = add nsw i64 %76, %.06588
  %78 = load i64, ptr @MOD, align 8
  %79 = srem i64 %77, %78
  %80 = add nuw nsw i64 %.06489, 1
  %81 = load i64, ptr %57, align 8, !tbaa !8
  %.not.not = icmp slt i64 %.06489, %81
  br i1 %.not.not, label %.lr.ph90, label %._crit_edge91.loopexit, !llvm.loop !18

._crit_edge96:                                    ; preds = %99
  %82 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %.066102, i64 %65
  %83 = load i64, ptr %82, align 8, !tbaa !8
  %84 = mul nsw i64 %83, %.065.lcssa
  %85 = srem i64 %84, %.pre113
  store i64 %85, ptr %66, align 8, !tbaa !8
  br i1 %67, label %.lr.ph100, label %._crit_edge101

.lr.ph95:                                         ; preds = %._crit_edge91, %99
  %.06393 = phi i64 [ %100, %99 ], [ 0, %._crit_edge91 ]
  %86 = shl nuw i64 1, %.06393
  %87 = and i64 %86, %.066102
  %.not74 = icmp eq i64 %87, 0
  %88 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %.066102, i64 %.06393
  %89 = load i64, ptr %88, align 8, !tbaa !8
  br i1 %.not74, label %99, label %90

90:                                               ; preds = %.lr.ph95
  %91 = trunc i64 %.06393 to i32
  %92 = shl nuw i32 1, %91
  %93 = sext i32 %92 to i64
  %94 = xor i64 %.066102, %93
  %95 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %94, i64 %.06393
  %96 = load i64, ptr %95, align 8, !tbaa !8
  %97 = add nsw i64 %96, %89
  %98 = srem i64 %97, %.pre113
  br label %99

99:                                               ; preds = %.lr.ph95, %90
  %.sink = phi i64 [ %98, %90 ], [ %89, %.lr.ph95 ]
  %100 = add nuw nsw i64 %.06393, 1
  %101 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %.066102, i64 %100
  store i64 %.sink, ptr %101, align 8, !tbaa !8
  %exitcond110.not = icmp eq i64 %100, %65
  br i1 %exitcond110.not, label %._crit_edge96, label %.lr.ph95, !llvm.loop !19

._crit_edge101:                                   ; preds = %120, %._crit_edge96.thread, %._crit_edge96
  %102 = add nuw nsw i64 %.066102, 1
  %103 = trunc i64 %65 to i32
  %104 = shl nuw i32 1, %103
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %102, %105
  br i1 %106, label %.preheader, label %._crit_edge103.loopexit, !llvm.loop !20

.lr.ph100:                                        ; preds = %._crit_edge96, %120
  %.098 = phi i64 [ %121, %120 ], [ 0, %._crit_edge96 ]
  %107 = shl nuw i64 1, %.098
  %108 = and i64 %107, %.066102
  %.not73 = icmp eq i64 %108, 0
  %109 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %.066102, i64 %.098
  %110 = load i64, ptr %109, align 8, !tbaa !8
  br i1 %.not73, label %120, label %111

111:                                              ; preds = %.lr.ph100
  %112 = trunc i64 %.098 to i32
  %113 = shl nuw i32 1, %112
  %114 = sext i32 %113 to i64
  %115 = xor i64 %.066102, %114
  %116 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %115, i64 %.098
  %117 = load i64, ptr %116, align 8, !tbaa !8
  %118 = add nsw i64 %117, %110
  %119 = srem i64 %118, %.pre113
  br label %120

120:                                              ; preds = %.lr.ph100, %111
  %.sink124 = phi i64 [ %119, %111 ], [ %110, %.lr.ph100 ]
  %121 = add nuw nsw i64 %.098, 1
  %122 = getelementptr inbounds [1048576 x [21 x i64]], ptr @sos, i64 0, i64 %.066102, i64 %121
  store i64 %.sink124, ptr %122, align 8, !tbaa !8
  %exitcond111.not = icmp eq i64 %121, %65
  br i1 %exitcond111.not, label %._crit_edge101, label %.lr.ph100, !llvm.loop !21
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #0 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

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 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 #0 align 2

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

; 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 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 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 #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 = { 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" }

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

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


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