; LLVM IR from eyangch/competitive-programming :: Codeforces/1511 (e)

; 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 i32, align 4
@N = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@w = external dso_local global i32, align 4
@p2 = external dso_local global [300001 x i32], align 16
@len = external dso_local global [300005 x i32], align 16
@_Z1bB5cxx11 = external dso_local global [300000 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  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)
  %20 = 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)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) @M)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %22

22:                                               ; preds = %54, %0
  %23 = load i32, ptr %2, align 4, !tbaa !8
  %24 = load i32, ptr @N, align 4, !tbaa !8
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %57

27:                                               ; preds = %22
  %28 = load i32, ptr %2, align 4, !tbaa !8
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [300000 x %"class.std::__cxx11::basic_string"], ptr @_Z1bB5cxx11, i64 0, i64 %29
  %31 = 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) %30)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %32

32:                                               ; preds = %50, %27
  %33 = load i32, ptr %4, align 4, !tbaa !8
  %34 = load i32, ptr @M, align 4, !tbaa !8
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %53

37:                                               ; preds = %32
  %38 = load i32, ptr %2, align 4, !tbaa !8
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [300000 x %"class.std::__cxx11::basic_string"], ptr @_Z1bB5cxx11, i64 0, i64 %39
  %41 = load i32, ptr %4, align 4, !tbaa !8
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %40, i64 noundef %42)
  %44 = load i8, ptr %43, align 1, !tbaa !11
  %45 = sext i8 %44 to i32
  %46 = icmp eq i32 %45, 111
  %47 = zext i1 %46 to i32
  %48 = load i32, ptr @w, align 4, !tbaa !8
  %49 = add nsw i32 %48, %47
  store i32 %49, ptr @w, align 4, !tbaa !8
  br label %50

50:                                               ; preds = %37
  %51 = load i32, ptr %4, align 4, !tbaa !8
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %4, align 4, !tbaa !8
  br label %32, !llvm.loop !12

53:                                               ; preds = %36
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %2, align 4, !tbaa !8
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %2, align 4, !tbaa !8
  br label %22, !llvm.loop !14

57:                                               ; preds = %26
  %58 = load i32, ptr @w, align 4, !tbaa !8
  %59 = icmp slt i32 %58, 2
  br i1 %59, label %60, label %63

60:                                               ; preds = %57
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @.str)
  store i32 0, ptr %1, align 4
  br label %208

63:                                               ; preds = %57
  store i32 1, ptr @p2, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !8
  br label %64

64:                                               ; preds = %80, %63
  %65 = load i32, ptr %5, align 4, !tbaa !8
  %66 = icmp sle i32 %65, 300000
  br i1 %66, label %68, label %67

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

68:                                               ; preds = %64
  %69 = load i32, ptr %5, align 4, !tbaa !8
  %70 = sub nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !8
  %74 = mul nsw i32 %73, 2
  %75 = load i32, ptr @MOD, align 4, !tbaa !8
  %76 = srem i32 %74, %75
  %77 = load i32, ptr %5, align 4, !tbaa !8
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %78
  store i32 %76, ptr %79, align 4, !tbaa !8
  br label %80

80:                                               ; preds = %68
  %81 = load i32, ptr %5, align 4, !tbaa !8
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %5, align 4, !tbaa !8
  br label %64, !llvm.loop !15

83:                                               ; preds = %67
  %84 = load i32, ptr @w, align 4, !tbaa !8
  %85 = sub nsw i32 %84, 2
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !8
  store i32 %88, ptr getelementptr inbounds ([300005 x i32], ptr @len, i64 0, i64 2), align 8, !tbaa !8
  %89 = load i32, ptr @w, align 4, !tbaa !8
  %90 = sub nsw i32 %89, 3
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !8
  store i32 %93, ptr getelementptr inbounds ([300005 x i32], ptr @len, i64 0, i64 3), align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 4, ptr %6, align 4, !tbaa !8
  br label %94

94:                                               ; preds = %119, %83
  %95 = load i32, ptr %6, align 4, !tbaa !8
  %96 = load i32, ptr @w, align 4, !tbaa !8
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %122

99:                                               ; preds = %94
  %100 = load i32, ptr %6, align 4, !tbaa !8
  %101 = sdiv i32 %100, 2
  %102 = mul nsw i32 %101, 2
  %103 = sub nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !8
  %107 = load i32, ptr @w, align 4, !tbaa !8
  %108 = load i32, ptr %6, align 4, !tbaa !8
  %109 = sub nsw i32 %107, %108
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !8
  %113 = add nsw i32 %106, %112
  %114 = load i32, ptr @MOD, align 4, !tbaa !8
  %115 = srem i32 %113, %114
  %116 = load i32, ptr %6, align 4, !tbaa !8
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %117
  store i32 %115, ptr %118, align 4, !tbaa !8
  br label %119

119:                                              ; preds = %99
  %120 = load i32, ptr %6, align 4, !tbaa !8
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %6, align 4, !tbaa !8
  br label %94, !llvm.loop !16

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

123:                                              ; preds = %160, %122
  %124 = load i32, ptr %8, align 4, !tbaa !8
  %125 = load i32, ptr @N, align 4, !tbaa !8
  %126 = icmp slt i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %163

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !8
  br label %129

129:                                              ; preds = %156, %128
  %130 = load i32, ptr %10, align 4, !tbaa !8
  %131 = load i32, ptr @M, align 4, !tbaa !8
  %132 = icmp slt i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %159

134:                                              ; preds = %129
  %135 = load i32, ptr %8, align 4, !tbaa !8
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [300000 x %"class.std::__cxx11::basic_string"], ptr @_Z1bB5cxx11, i64 0, i64 %136
  %138 = load i32, ptr %10, align 4, !tbaa !8
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %137, i64 noundef %139)
  %141 = load i8, ptr %140, align 1, !tbaa !11
  %142 = sext i8 %141 to i32
  %143 = icmp ne i32 %142, 111
  br i1 %143, label %144, label %145

144:                                              ; preds = %134
  store i32 0, ptr %9, align 4, !tbaa !8
  br label %156

145:                                              ; preds = %134
  %146 = load i32, ptr %9, align 4, !tbaa !8
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %9, align 4, !tbaa !8
  %148 = load i32, ptr %7, align 4, !tbaa !8
  %149 = load i32, ptr %9, align 4, !tbaa !8
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !8
  %153 = add nsw i32 %148, %152
  %154 = load i32, ptr @MOD, align 4, !tbaa !8
  %155 = srem i32 %153, %154
  store i32 %155, ptr %7, align 4, !tbaa !8
  br label %156

156:                                              ; preds = %145, %144
  %157 = load i32, ptr %10, align 4, !tbaa !8
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %10, align 4, !tbaa !8
  br label %129, !llvm.loop !17

159:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %8, align 4, !tbaa !8
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %8, align 4, !tbaa !8
  br label %123, !llvm.loop !18

163:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %164

164:                                              ; preds = %201, %163
  %165 = load i32, ptr %11, align 4, !tbaa !8
  %166 = load i32, ptr @M, align 4, !tbaa !8
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %204

169:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %170

170:                                              ; preds = %197, %169
  %171 = load i32, ptr %13, align 4, !tbaa !8
  %172 = load i32, ptr @N, align 4, !tbaa !8
  %173 = icmp slt i32 %171, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %170
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %200

175:                                              ; preds = %170
  %176 = load i32, ptr %13, align 4, !tbaa !8
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [300000 x %"class.std::__cxx11::basic_string"], ptr @_Z1bB5cxx11, i64 0, i64 %177
  %179 = load i32, ptr %11, align 4, !tbaa !8
  %180 = sext i32 %179 to i64
  %181 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %178, i64 noundef %180)
  %182 = load i8, ptr %181, align 1, !tbaa !11
  %183 = sext i8 %182 to i32
  %184 = icmp ne i32 %183, 111
  br i1 %184, label %185, label %186

185:                                              ; preds = %175
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %197

186:                                              ; preds = %175
  %187 = load i32, ptr %12, align 4, !tbaa !8
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %12, align 4, !tbaa !8
  %189 = load i32, ptr %7, align 4, !tbaa !8
  %190 = load i32, ptr %12, align 4, !tbaa !8
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !8
  %194 = add nsw i32 %189, %193
  %195 = load i32, ptr @MOD, align 4, !tbaa !8
  %196 = srem i32 %194, %195
  store i32 %196, ptr %7, align 4, !tbaa !8
  br label %197

197:                                              ; preds = %186, %185
  %198 = load i32, ptr %13, align 4, !tbaa !8
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %13, align 4, !tbaa !8
  br label %170, !llvm.loop !19

200:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %201

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

204:                                              ; preds = %168
  %205 = load i32, ptr %7, align 4, !tbaa !8
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %205)
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef @.str)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %208

208:                                              ; preds = %204, %60
  %209 = load i32, ptr %1, align 4
  ret i32 %209
}

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

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

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

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

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

; Function Attrs: 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #5 = { 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}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !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::__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 i32, align 4
@N = external dso_local global i32, align 4
@M = external dso_local global i32, align 4
@w = external dso_local local_unnamed_addr global i32, align 4
@p2 = external dso_local local_unnamed_addr global [300001 x i32], align 16
@len = external dso_local local_unnamed_addr global [300005 x i32], align 16
@_Z1bB5cxx11 = external dso_local global [300000 x %"class.std::__cxx11::basic_string"], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %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)
  %7 = 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)
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) @M)
  %9 = load i32, ptr @N, align 4, !tbaa !8
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph58, label %._crit_edge59

._crit_edge59:                                    ; preds = %._crit_edge, %0
  %11 = phi i32 [ %9, %0 ], [ %18, %._crit_edge ]
  %12 = load i32, ptr @w, align 4, !tbaa !8
  %13 = icmp slt i32 %12, 2
  br i1 %13, label %._crit_edge81, label %30

.lr.ph58:                                         ; preds = %0, %._crit_edge
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %._crit_edge ], [ 0, %0 ]
  %14 = getelementptr inbounds [300000 x %"class.std::__cxx11::basic_string"], ptr @_Z1bB5cxx11, i64 0, i64 %indvars.iv87
  %15 = 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) %14)
  %16 = load i32, ptr @M, align 4, !tbaa !8
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph58
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %18 = load i32, ptr @N, align 4, !tbaa !8
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %indvars.iv.next88, %19
  br i1 %20, label %.lr.ph58, label %._crit_edge59, !llvm.loop !11

.lr.ph:                                           ; preds = %.lr.ph58, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph58 ]
  %21 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %14, i64 noundef %indvars.iv)
  %22 = load i8, ptr %21, align 1, !tbaa !13
  %23 = icmp eq i8 %22, 111
  %24 = zext i1 %23 to i32
  %25 = load i32, ptr @w, align 4, !tbaa !8
  %26 = add nsw i32 %25, %24
  store i32 %26, ptr @w, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = load i32, ptr @M, align 4, !tbaa !8
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next, %28
  br i1 %29, label %.lr.ph, label %._crit_edge, !llvm.loop !14

30:                                               ; preds = %._crit_edge59
  store i32 1, ptr @p2, align 16, !tbaa !8
  %31 = load i32, ptr @MOD, align 4, !tbaa !8
  br label %46

32:                                               ; preds = %46
  %33 = add nsw i32 %12, -2
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !8
  store i32 %36, ptr getelementptr inbounds (i8, ptr @len, i64 8), align 8, !tbaa !8
  %37 = add nsw i32 %12, -3
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !8
  store i32 %40, ptr getelementptr inbounds (i8, ptr @len, i64 12), align 4, !tbaa !8
  %.not61 = icmp slt i32 %12, 4
  br i1 %.not61, label %.preheader54, label %.lr.ph64

.lr.ph64:                                         ; preds = %32
  %41 = zext nneg i32 %12 to i64
  %42 = add nuw i32 %12, 1
  %wide.trip.count = zext i32 %42 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %43 = icmp eq i32 %42, 5
  br i1 %43, label %.preheader54.loopexit.unr-lcssa, label %.lr.ph64.new

.lr.ph64.new:                                     ; preds = %.lr.ph64
  %44 = and i64 %wide.trip.count, 4294967294
  %45 = add nsw i64 %44, -6
  br label %69

46:                                               ; preds = %46, %30
  %47 = phi i32 [ 1, %30 ], [ %55, %46 ]
  %indvars.iv90 = phi i64 [ 1, %30 ], [ %indvars.iv.next91.2, %46 ]
  %48 = shl nsw i32 %47, 1
  %49 = srem i32 %48, %31
  %50 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %indvars.iv90
  store i32 %49, ptr %50, align 4, !tbaa !8
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %51 = shl nsw i32 %49, 1
  %52 = srem i32 %51, %31
  %53 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %indvars.iv.next91
  store i32 %52, ptr %53, align 4, !tbaa !8
  %indvars.iv.next91.1 = add nuw nsw i64 %indvars.iv90, 2
  %54 = shl nsw i32 %52, 1
  %55 = srem i32 %54, %31
  %56 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %indvars.iv.next91.1
  store i32 %55, ptr %56, align 4, !tbaa !8
  %indvars.iv.next91.2 = add nuw nsw i64 %indvars.iv90, 3
  %exitcond.not.2 = icmp eq i64 %indvars.iv.next91.2, 300001
  br i1 %exitcond.not.2, label %32, label %46, !llvm.loop !15

.preheader54.loopexit.unr-lcssa:                  ; preds = %69, %.lr.ph64
  %indvars.iv93.unr = phi i64 [ 4, %.lr.ph64 ], [ %indvars.iv.next94.1, %69 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader54, label %.preheader54.loopexit.epilog-lcssa

.preheader54.loopexit.epilog-lcssa:               ; preds = %.preheader54.loopexit.unr-lcssa
  %57 = and i64 %indvars.iv93.unr, 2147483646
  %58 = add nsw i64 %57, -1
  %59 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !8
  %61 = sub nsw i64 %41, %indvars.iv93.unr
  %62 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !8
  %64 = add nsw i32 %63, %60
  %65 = srem i32 %64, %31
  %66 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %indvars.iv93.unr
  store i32 %65, ptr %66, align 4, !tbaa !8
  br label %.preheader54

.preheader54:                                     ; preds = %.preheader54.loopexit.epilog-lcssa, %.preheader54.loopexit.unr-lcssa, %32
  %67 = icmp sgt i32 %11, 0
  %.pre109 = load i32, ptr @M, align 4, !tbaa !8
  br i1 %67, label %.preheader53.lr.ph, label %.preheader52

.preheader53.lr.ph:                               ; preds = %.preheader54
  %68 = icmp sgt i32 %.pre109, 0
  br i1 %68, label %.preheader53, label %._crit_edge81

69:                                               ; preds = %69, %.lr.ph64.new
  %indvars.iv93 = phi i64 [ 4, %.lr.ph64.new ], [ %indvars.iv.next94.1, %69 ]
  %niter = phi i64 [ 0, %.lr.ph64.new ], [ %niter.next.1, %69 ]
  %70 = and i64 %indvars.iv93, 2147483646
  %71 = add nsw i64 %70, -1
  %72 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !8
  %74 = sub nsw i64 %41, %indvars.iv93
  %75 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !8
  %77 = add nsw i32 %76, %73
  %78 = srem i32 %77, %31
  %79 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %indvars.iv93
  store i32 %78, ptr %79, align 8, !tbaa !8
  %indvars.iv.next94 = or disjoint i64 %indvars.iv93, 1
  %80 = and i64 %indvars.iv93, 2147483646
  %81 = add nsw i64 %80, -1
  %82 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !8
  %84 = sub nsw i64 %41, %indvars.iv.next94
  %85 = getelementptr inbounds [300001 x i32], ptr @p2, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !8
  %87 = add nsw i32 %86, %83
  %88 = srem i32 %87, %31
  %89 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %indvars.iv.next94
  store i32 %88, ptr %89, align 4, !tbaa !8
  %indvars.iv.next94.1 = add nuw nsw i64 %indvars.iv93, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter, %45
  br i1 %niter.ncmp.1, label %.preheader54.loopexit.unr-lcssa, label %69, !llvm.loop !16

.preheader53:                                     ; preds = %.preheader53.lr.ph, %._crit_edge69
  %90 = phi i32 [ %98, %._crit_edge69 ], [ %11, %.preheader53.lr.ph ]
  %91 = phi i32 [ %99, %._crit_edge69 ], [ %.pre109, %.preheader53.lr.ph ]
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %._crit_edge69 ], [ 0, %.preheader53.lr.ph ]
  %.04270 = phi i32 [ %.143.lcssa, %._crit_edge69 ], [ 0, %.preheader53.lr.ph ]
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %.lr.ph68, label %._crit_edge69

.lr.ph68:                                         ; preds = %.preheader53
  %93 = getelementptr inbounds [300000 x %"class.std::__cxx11::basic_string"], ptr @_Z1bB5cxx11, i64 0, i64 %indvars.iv100
  br label %102

.preheader52:                                     ; preds = %._crit_edge69, %.preheader54
  %94 = phi i32 [ %11, %.preheader54 ], [ %98, %._crit_edge69 ]
  %95 = phi i32 [ %.pre109, %.preheader54 ], [ %99, %._crit_edge69 ]
  %.042.lcssa = phi i32 [ 0, %.preheader54 ], [ %.143.lcssa, %._crit_edge69 ]
  %96 = icmp sgt i32 %95, 0
  %97 = icmp sgt i32 %94, 0
  %or.cond = and i1 %96, %97
  br i1 %or.cond, label %.preheader, label %._crit_edge81

._crit_edge69.loopexit:                           ; preds = %113
  %.pre = load i32, ptr @N, align 4, !tbaa !8
  br label %._crit_edge69

._crit_edge69:                                    ; preds = %._crit_edge69.loopexit, %.preheader53
  %98 = phi i32 [ %90, %.preheader53 ], [ %.pre, %._crit_edge69.loopexit ]
  %99 = phi i32 [ %91, %.preheader53 ], [ %114, %._crit_edge69.loopexit ]
  %.143.lcssa = phi i32 [ %.04270, %.preheader53 ], [ %.2, %._crit_edge69.loopexit ]
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %100 = sext i32 %98 to i64
  %101 = icmp slt i64 %indvars.iv.next101, %100
  br i1 %101, label %.preheader53, label %.preheader52, !llvm.loop !17

102:                                              ; preds = %.lr.ph68, %113
  %indvars.iv97 = phi i64 [ 0, %.lr.ph68 ], [ %indvars.iv.next98, %113 ]
  %.03966 = phi i32 [ 0, %.lr.ph68 ], [ %.140, %113 ]
  %.14365 = phi i32 [ %.04270, %.lr.ph68 ], [ %.2, %113 ]
  %103 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %93, i64 noundef %indvars.iv97)
  %104 = load i8, ptr %103, align 1, !tbaa !13
  %.not51 = icmp eq i8 %104, 111
  br i1 %.not51, label %105, label %113

105:                                              ; preds = %102
  %106 = add nsw i32 %.03966, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !8
  %110 = add nsw i32 %109, %.14365
  %111 = load i32, ptr @MOD, align 4, !tbaa !8
  %112 = srem i32 %110, %111
  br label %113

113:                                              ; preds = %102, %105
  %.2 = phi i32 [ %112, %105 ], [ %.14365, %102 ]
  %.140 = phi i32 [ %106, %105 ], [ 0, %102 ]
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %114 = load i32, ptr @M, align 4, !tbaa !8
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next98, %115
  br i1 %116, label %102, label %._crit_edge69.loopexit, !llvm.loop !19

.preheader:                                       ; preds = %.preheader52, %._crit_edge77
  %117 = phi i32 [ %120, %._crit_edge77 ], [ %95, %.preheader52 ]
  %118 = phi i32 [ %121, %._crit_edge77 ], [ %94, %.preheader52 ]
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %._crit_edge77 ], [ 0, %.preheader52 ]
  %.379 = phi i32 [ %.4.lcssa, %._crit_edge77 ], [ %.042.lcssa, %.preheader52 ]
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %.lr.ph76, label %._crit_edge77

._crit_edge77.loopexit:                           ; preds = %135
  %.pre110 = load i32, ptr @M, align 4, !tbaa !8
  br label %._crit_edge77

._crit_edge77:                                    ; preds = %._crit_edge77.loopexit, %.preheader
  %120 = phi i32 [ %117, %.preheader ], [ %.pre110, %._crit_edge77.loopexit ]
  %121 = phi i32 [ %118, %.preheader ], [ %136, %._crit_edge77.loopexit ]
  %.4.lcssa = phi i32 [ %.379, %.preheader ], [ %.5, %._crit_edge77.loopexit ]
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %122 = sext i32 %120 to i64
  %123 = icmp slt i64 %indvars.iv.next107, %122
  br i1 %123, label %.preheader, label %._crit_edge81, !llvm.loop !20

.lr.ph76:                                         ; preds = %.preheader, %135
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %135 ], [ 0, %.preheader ]
  %.03674 = phi i32 [ %.1, %135 ], [ 0, %.preheader ]
  %.473 = phi i32 [ %.5, %135 ], [ %.379, %.preheader ]
  %124 = getelementptr inbounds [300000 x %"class.std::__cxx11::basic_string"], ptr @_Z1bB5cxx11, i64 0, i64 %indvars.iv103
  %125 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %124, i64 noundef %indvars.iv106)
  %126 = load i8, ptr %125, align 1, !tbaa !13
  %.not50 = icmp eq i8 %126, 111
  br i1 %.not50, label %127, label %135

127:                                              ; preds = %.lr.ph76
  %128 = add nsw i32 %.03674, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [300005 x i32], ptr @len, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !8
  %132 = add nsw i32 %131, %.473
  %133 = load i32, ptr @MOD, align 4, !tbaa !8
  %134 = srem i32 %132, %133
  br label %135

135:                                              ; preds = %.lr.ph76, %127
  %.5 = phi i32 [ %134, %127 ], [ %.473, %.lr.ph76 ]
  %.1 = phi i32 [ %128, %127 ], [ 0, %.lr.ph76 ]
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %136 = load i32, ptr @N, align 4, !tbaa !8
  %137 = sext i32 %136 to i64
  %138 = icmp slt i64 %indvars.iv.next104, %137
  br i1 %138, label %.lr.ph76, label %._crit_edge77.loopexit, !llvm.loop !21

._crit_edge81:                                    ; preds = %._crit_edge77, %.preheader52, %.preheader53.lr.ph, %._crit_edge59
  %.3.lcssa.sink = phi i32 [ 0, %._crit_edge59 ], [ %.042.lcssa, %.preheader52 ], [ 0, %.preheader53.lr.ph ], [ %.4.lcssa, %._crit_edge77 ]
  %139 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.3.lcssa.sink)
  %140 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull @.str)
  ret i32 0
}

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

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

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!10, !10, i64 0}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12, !18}
!18 = !{!"llvm.loop.unswitch.partial.disable"}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12, !18}
!21 = distinct !{!21, !12}


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