; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2012-13/Jan 2013 (13 Jan G2)

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

%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }

@cin = external dso_local global %"class.std::basic_ifstream", align 8
@cout = external dso_local global %"class.std::basic_ofstream", align 8
@R = external dso_local global i32, align 4
@C = external dso_local global i32, align 4
@num = external dso_local global i32, align 4
@dist = external dso_local global [15 x [15 x i32]], align 16
@dp = external dso_local global [32768 x [15 x i32]], align 16
@grid = external dso_local global [50 x [50 x i8]], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4fillii(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: 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 void @_Z7getdisti(i32 noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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
  store i32 0, ptr %1, align 4
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) @R)
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) @C)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %41, %0
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @R, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %37, %23
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr @C, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

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

29:                                               ; preds = %24
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [50 x [50 x i8]], ptr @grid, i64 0, i64 %31
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [50 x i8], ptr %32, i64 0, i64 %34
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 1 dereferenceable(1) %35)
  br label %37

37:                                               ; preds = %29
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %4, align 4, !tbaa !5
  br label %24, !llvm.loop !9

40:                                               ; preds = %28
  br label %41

41:                                               ; preds = %40
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !11

44:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %76, %44
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = load i32, ptr @R, align 4, !tbaa !5
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

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

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

51:                                               ; preds = %72, %50
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = load i32, ptr @C, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %51
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [50 x [50 x i8]], ptr @grid, i64 0, i64 %58
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [50 x i8], ptr %59, i64 0, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !12
  %64 = sext i8 %63 to i32
  %65 = icmp eq i32 %64, 88
  br i1 %65, label %66, label %71

66:                                               ; preds = %56
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z4fillii(i32 noundef %67, i32 noundef %68)
  %69 = load i32, ptr @num, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr @num, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %66, %56
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %6, align 4, !tbaa !5
  br label %51, !llvm.loop !13

75:                                               ; preds = %55
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %5, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %5, align 4, !tbaa !5
  br label %45, !llvm.loop !14

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

80:                                               ; preds = %87, %79
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = load i32, ptr @num, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %90

85:                                               ; preds = %80
  %86 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z7getdisti(i32 noundef %86)
  br label %87

87:                                               ; preds = %85
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %7, align 4, !tbaa !5
  br label %80, !llvm.loop !15

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

91:                                               ; preds = %114, %90
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = load i32, ptr @num, align 4, !tbaa !5
  %94 = shl i32 1, %93
  %95 = icmp slt i32 %92, %94
  br i1 %95, label %97, label %96

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

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

98:                                               ; preds = %110, %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr @num, align 4, !tbaa !5
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %113

103:                                              ; preds = %98
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %105
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [15 x i32], ptr %106, i64 0, i64 %108
  store i32 1000000007, ptr %109, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %103
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %9, align 4, !tbaa !5
  br label %98, !llvm.loop !16

113:                                              ; preds = %102
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %8, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %8, align 4, !tbaa !5
  br label %91, !llvm.loop !17

117:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %206, %117
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = load i32, ptr @num, align 4, !tbaa !5
  %121 = shl i32 1, %120
  %122 = icmp slt i32 %119, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %118
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %209

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

125:                                              ; preds = %202, %124
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = load i32, ptr @num, align 4, !tbaa !5
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %130, label %129

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

130:                                              ; preds = %125
  %131 = load i32, ptr %10, align 4, !tbaa !5
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = shl i32 1, %132
  %134 = and i32 %131, %133
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %201

136:                                              ; preds = %130
  %137 = load i32, ptr %10, align 4, !tbaa !5
  %138 = load i32, ptr %11, align 4, !tbaa !5
  %139 = shl i32 1, %138
  %140 = icmp eq i32 %137, %139
  br i1 %140, label %141, label %148

141:                                              ; preds = %136
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %143
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [15 x i32], ptr %144, i64 0, i64 %146
  store i32 0, ptr %147, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %141, %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %197, %148
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = load i32, ptr @num, align 4, !tbaa !5
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %200

154:                                              ; preds = %149
  %155 = load i32, ptr %10, align 4, !tbaa !5
  %156 = load i32, ptr %12, align 4, !tbaa !5
  %157 = shl i32 1, %156
  %158 = and i32 %155, %157
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %196

160:                                              ; preds = %154
  %161 = load i32, ptr %10, align 4, !tbaa !5
  %162 = load i32, ptr %12, align 4, !tbaa !5
  %163 = shl i32 1, %162
  %164 = or i32 %161, %163
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %165
  %167 = load i32, ptr %12, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [15 x i32], ptr %166, i64 0, i64 %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %171
  %173 = load i32, ptr %11, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [15 x i32], ptr %172, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = load i32, ptr %11, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [15 x [15 x i32]], ptr @dist, i64 0, i64 %178
  %180 = load i32, ptr %12, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [15 x i32], ptr %179, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = add nsw i32 %176, %183
  store i32 %184, ptr %13, align 4, !tbaa !5
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %169, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = load i32, ptr %10, align 4, !tbaa !5
  %188 = load i32, ptr %12, align 4, !tbaa !5
  %189 = shl i32 1, %188
  %190 = or i32 %187, %189
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %191
  %193 = load i32, ptr %12, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [15 x i32], ptr %192, i64 0, i64 %194
  store i32 %186, ptr %195, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %196

196:                                              ; preds = %160, %154
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %12, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %12, align 4, !tbaa !5
  br label %149, !llvm.loop !18

200:                                              ; preds = %153
  br label %201

201:                                              ; preds = %200, %130
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %11, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %11, align 4, !tbaa !5
  br label %125, !llvm.loop !19

205:                                              ; preds = %129
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %10, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %10, align 4, !tbaa !5
  br label %118, !llvm.loop !20

209:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1000000007, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %210

210:                                              ; preds = %226, %209
  %211 = load i32, ptr %15, align 4, !tbaa !5
  %212 = load i32, ptr @num, align 4, !tbaa !5
  %213 = icmp slt i32 %211, %212
  br i1 %213, label %215, label %214

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

215:                                              ; preds = %210
  %216 = load i32, ptr @num, align 4, !tbaa !5
  %217 = shl i32 1, %216
  %218 = sub nsw i32 %217, 1
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %219
  %221 = load i32, ptr %15, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [15 x i32], ptr %220, i64 0, i64 %222
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %223)
  %225 = load i32, ptr %224, align 4, !tbaa !5
  store i32 %225, ptr %14, align 4, !tbaa !5
  br label %226

226:                                              ; preds = %215
  %227 = load i32, ptr %15, align 4, !tbaa !5
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %15, align 4, !tbaa !5
  br label %210, !llvm.loop !21

229:                                              ; preds = %214
  %230 = load i32, ptr %14, align 4, !tbaa !5
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @cout, i32 noundef %230)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %232 = load i32, ptr %1, align 4
  ret i32 %232
}

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

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

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

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

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 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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

%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"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::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }

@cin = external dso_local global %"class.std::basic_ifstream", align 8
@cout = external dso_local global %"class.std::basic_ofstream", align 8
@R = external dso_local global i32, align 4
@C = external dso_local global i32, align 4
@num = external dso_local local_unnamed_addr global i32, align 4
@dist = external dso_local local_unnamed_addr global [15 x [15 x i32]], align 16
@dp = external dso_local global [32768 x [15 x i32]], align 16
@grid = external dso_local global [50 x [50 x i8]], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4fillii(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 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 void @_Z7getdisti(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 4 dereferenceable(4) @R)
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) @C)
  %5 = load i32, ptr @R, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  %7 = load i32, ptr @C, align 4
  %8 = icmp sgt i32 %7, 0
  %or.cond = select i1 %6, i1 %8, i1 false
  br i1 %or.cond, label %.preheader68, label %.preheader65

.preheader68:                                     ; preds = %0, %._crit_edge
  %9 = phi i32 [ %14, %._crit_edge ], [ %5, %0 ]
  %10 = phi i32 [ %15, %._crit_edge ], [ %7, %0 ]
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %._crit_edge ], [ 0, %0 ]
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.preheader67:                                     ; preds = %._crit_edge
  %12 = icmp sgt i32 %14, 0
  %.pr = load i32, ptr @C, align 4
  %13 = icmp sgt i32 %.pr, 0
  %or.cond155 = select i1 %12, i1 %13, i1 false
  br i1 %or.cond155, label %.preheader66, label %.preheader65

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr @R, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader68
  %14 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %9, %.preheader68 ]
  %15 = phi i32 [ %20, %._crit_edge.loopexit ], [ %10, %.preheader68 ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %16 = sext i32 %14 to i64
  %17 = icmp slt i64 %indvars.iv.next103, %16
  br i1 %17, label %.preheader68, label %.preheader67, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader68, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader68 ]
  %18 = getelementptr inbounds [50 x [50 x i8]], ptr @grid, i64 0, i64 %indvars.iv102, i64 %indvars.iv
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @cin, ptr noundef nonnull align 1 dereferenceable(1) %18)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = load i32, ptr @C, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = icmp slt i64 %indvars.iv.next, %21
  br i1 %22, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !12

.preheader66:                                     ; preds = %.preheader67, %._crit_edge73
  %23 = phi i32 [ %30, %._crit_edge73 ], [ %14, %.preheader67 ]
  %24 = phi i32 [ %31, %._crit_edge73 ], [ %.pr, %.preheader67 ]
  %25 = phi i32 [ %32, %._crit_edge73 ], [ %.pr, %.preheader67 ]
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %._crit_edge73 ], [ 0, %.preheader67 ]
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph72, label %._crit_edge73

.lr.ph72:                                         ; preds = %.preheader66
  %27 = trunc nuw nsw i64 %indvars.iv108 to i32
  br label %35

.preheader65:                                     ; preds = %._crit_edge73, %0, %.preheader67
  %28 = load i32, ptr @num, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph76, label %._crit_edge89.thread145

._crit_edge73.loopexit:                           ; preds = %44
  %.pre132 = load i32, ptr @R, align 4, !tbaa !5
  br label %._crit_edge73

._crit_edge73:                                    ; preds = %._crit_edge73.loopexit, %.preheader66
  %30 = phi i32 [ %.pre132, %._crit_edge73.loopexit ], [ %23, %.preheader66 ]
  %31 = phi i32 [ %45, %._crit_edge73.loopexit ], [ %24, %.preheader66 ]
  %32 = phi i32 [ %45, %._crit_edge73.loopexit ], [ %25, %.preheader66 ]
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %33 = sext i32 %30 to i64
  %34 = icmp slt i64 %indvars.iv.next109, %33
  br i1 %34, label %.preheader66, label %.preheader65, !llvm.loop !13

35:                                               ; preds = %.lr.ph72, %44
  %36 = phi i32 [ %24, %.lr.ph72 ], [ %45, %44 ]
  %indvars.iv105 = phi i64 [ 0, %.lr.ph72 ], [ %indvars.iv.next106, %44 ]
  %37 = getelementptr inbounds [50 x [50 x i8]], ptr @grid, i64 0, i64 %indvars.iv108, i64 %indvars.iv105
  %38 = load i8, ptr %37, align 1, !tbaa !14
  %39 = icmp eq i8 %38, 88
  br i1 %39, label %40, label %44

40:                                               ; preds = %35
  %41 = trunc nuw nsw i64 %indvars.iv105 to i32
  tail call void @_Z4fillii(i32 noundef %27, i32 noundef %41)
  %42 = load i32, ptr @num, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr @num, align 4, !tbaa !5
  %.pre131 = load i32, ptr @C, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %35, %40
  %45 = phi i32 [ %36, %35 ], [ %.pre131, %40 ]
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %46 = sext i32 %45 to i64
  %47 = icmp slt i64 %indvars.iv.next106, %46
  br i1 %47, label %35, label %._crit_edge73.loopexit, !llvm.loop !15

.preheader64:                                     ; preds = %.lr.ph76
  %48 = shl nuw nsw i32 1, %55
  %.not94 = icmp eq i32 %55, 31
  br i1 %.not94, label %._crit_edge89.thread, label %.preheader63.lr.ph

.preheader63.lr.ph:                               ; preds = %.preheader64
  %49 = icmp sgt i32 %55, 0
  br i1 %49, label %.preheader63.us.preheader, label %._crit_edge89.thread145

.preheader63.us.preheader:                        ; preds = %.preheader63.lr.ph
  %wide.trip.count117 = zext nneg i32 %48 to i64
  %wide.trip.count = zext nneg i32 %55 to i64
  %min.iters.check = icmp ult i32 %55, 8
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader63.us

.preheader63.us:                                  ; preds = %.preheader63.us.preheader, %._crit_edge79.us
  %indvars.iv114 = phi i64 [ 0, %.preheader63.us.preheader ], [ %indvars.iv.next115, %._crit_edge79.us ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader63.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader63.us ]
  %50 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %indvars.iv114, i64 %index
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %50, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %51, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %52 = icmp eq i64 %index.next, %n.vec
  br i1 %52, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge79.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader63.us
  %indvars.iv111.ph = phi i64 [ 0, %.preheader63.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %scalar.ph ], [ %indvars.iv111.ph, %scalar.ph.preheader ]
  %53 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %indvars.iv114, i64 %indvars.iv111
  store i32 1000000007, ptr %53, align 4, !tbaa !5
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge79.us, label %scalar.ph, !llvm.loop !19

._crit_edge79.us:                                 ; preds = %scalar.ph, %middle.block
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %exitcond118.not = icmp eq i64 %indvars.iv.next115, %wide.trip.count117
  br i1 %exitcond118.not, label %.preheader, label %.preheader63.us, !llvm.loop !20

.lr.ph76:                                         ; preds = %.preheader65, %.lr.ph76
  %.05675 = phi i32 [ %54, %.lr.ph76 ], [ 0, %.preheader65 ]
  tail call void @_Z7getdisti(i32 noundef %.05675)
  %54 = add nuw nsw i32 %.05675, 1
  %55 = load i32, ptr @num, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %.lr.ph76, label %.preheader64, !llvm.loop !21

.preheader:                                       ; preds = %._crit_edge79.us, %._crit_edge87
  %57 = phi i32 [ %61, %._crit_edge87 ], [ %55, %._crit_edge79.us ]
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %._crit_edge87 ], [ 0, %._crit_edge79.us ]
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %.preheader
  %59 = trunc nuw nsw i64 %indvars.iv125 to i32
  br label %65

._crit_edge89.thread:                             ; preds = %.preheader64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 1000000007, ptr %2, align 4, !tbaa !5
  br label %.lr.ph92.preheader

._crit_edge89.thread145:                          ; preds = %.preheader65, %.preheader63.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 1000000007, ptr %2, align 4, !tbaa !5
  br label %._crit_edge93

._crit_edge89:                                    ; preds = %._crit_edge87
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 1000000007, ptr %2, align 4, !tbaa !5
  %60 = icmp sgt i32 %61, 0
  br i1 %60, label %.lr.ph92.preheader, label %._crit_edge93

.lr.ph92.preheader:                               ; preds = %._crit_edge89.thread, %._crit_edge89
  %.ph = phi i32 [ %61, %._crit_edge89 ], [ 31, %._crit_edge89.thread ]
  br label %.lr.ph92

._crit_edge87:                                    ; preds = %.loopexit, %.preheader
  %61 = phi i32 [ %57, %.preheader ], [ %103, %.loopexit ]
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %62 = shl nuw i32 1, %61
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next126, %63
  br i1 %64, label %.preheader, label %._crit_edge89, !llvm.loop !22

65:                                               ; preds = %.lr.ph86, %.loopexit
  %66 = phi i32 [ %57, %.lr.ph86 ], [ %103, %.loopexit ]
  %67 = phi i32 [ %57, %.lr.ph86 ], [ %104, %.loopexit ]
  %indvars.iv122 = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next123, %.loopexit ]
  %68 = trunc nuw nsw i64 %indvars.iv122 to i32
  %69 = shl nuw i32 1, %68
  %70 = and i32 %69, %59
  %.not = icmp eq i32 %70, 0
  br i1 %.not, label %.loopexit, label %71

71:                                               ; preds = %65
  %72 = zext i32 %69 to i64
  %73 = icmp eq i64 %indvars.iv125, %72
  br i1 %73, label %74, label %76

74:                                               ; preds = %71
  %75 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %indvars.iv125, i64 %indvars.iv122
  store i32 0, ptr %75, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %74, %71
  %77 = icmp sgt i32 %67, 0
  br i1 %77, label %.lr.ph83, label %.loopexit

.lr.ph83:                                         ; preds = %76
  %78 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %indvars.iv125, i64 %indvars.iv122
  br label %79

79:                                               ; preds = %.lr.ph83, %97
  %80 = phi i32 [ %66, %.lr.ph83 ], [ %98, %97 ]
  %81 = phi i32 [ %67, %.lr.ph83 ], [ %99, %97 ]
  %82 = phi i32 [ %67, %.lr.ph83 ], [ %100, %97 ]
  %indvars.iv119 = phi i64 [ 0, %.lr.ph83 ], [ %indvars.iv.next120, %97 ]
  %83 = trunc nuw nsw i64 %indvars.iv119 to i32
  %84 = shl nuw i32 1, %83
  %85 = and i32 %84, %59
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %97

87:                                               ; preds = %79
  %88 = or i32 %84, %59
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %89, i64 %indvars.iv119
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %91 = load i32, ptr %78, align 4, !tbaa !5
  %92 = getelementptr inbounds [15 x [15 x i32]], ptr @dist, i64 0, i64 %indvars.iv122, i64 %indvars.iv119
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = add nsw i32 %93, %91
  store i32 %94, ptr %1, align 4, !tbaa !5
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %90, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %96 = load i32, ptr %95, align 4, !tbaa !5
  store i32 %96, ptr %90, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %.pre133 = load i32, ptr @num, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %79, %87
  %98 = phi i32 [ %80, %79 ], [ %.pre133, %87 ]
  %99 = phi i32 [ %81, %79 ], [ %.pre133, %87 ]
  %100 = phi i32 [ %82, %79 ], [ %.pre133, %87 ]
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %101 = sext i32 %100 to i64
  %102 = icmp slt i64 %indvars.iv.next120, %101
  br i1 %102, label %79, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %97, %76, %65
  %103 = phi i32 [ %66, %76 ], [ %66, %65 ], [ %98, %97 ]
  %104 = phi i32 [ %67, %76 ], [ %67, %65 ], [ %99, %97 ]
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv.next123, %105
  br i1 %106, label %65, label %._crit_edge87, !llvm.loop !24

._crit_edge93:                                    ; preds = %.lr.ph92, %._crit_edge89.thread145, %._crit_edge89
  %107 = phi i32 [ 1000000007, %._crit_edge89 ], [ 1000000007, %._crit_edge89.thread145 ], [ %114, %.lr.ph92 ]
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @cout, i32 noundef %107)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  ret i32 0

.lr.ph92:                                         ; preds = %.lr.ph92.preheader, %.lr.ph92
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %.lr.ph92 ], [ 0, %.lr.ph92.preheader ]
  %109 = phi i32 [ %115, %.lr.ph92 ], [ %.ph, %.lr.ph92.preheader ]
  %notmask = shl nsw i32 -1, %109
  %110 = xor i32 %notmask, -1
  %111 = zext nneg i32 %110 to i64
  %112 = getelementptr inbounds [32768 x [15 x i32]], ptr @dp, i64 0, i64 %111, i64 %indvars.iv128
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %112)
  %114 = load i32, ptr %113, align 4, !tbaa !5
  store i32 %114, ptr %2, align 4, !tbaa !5
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %115 = load i32, ptr @num, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = icmp slt i64 %indvars.iv.next129, %116
  br i1 %117, label %.lr.ph92, label %._crit_edge93, !llvm.loop !25
}

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

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

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

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

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 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10, !11}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !10, !18, !17}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !11}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}


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