; LLVM IR from tangjz/acm-icpc :: codechef/SEPT18 (CHEFLST)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@a = external dso_local global [61 x [61 x i32]], align 16
@f = external dso_local global [61 x [61 x [1025 x i32]]], align 16
@g = external dso_local global [1025 x i32], align 16
@mat = external dso_local global [61 x [61 x i32]], align 16
@chk = external dso_local global [1025 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3FWTiPi(i32 noundef, ptr 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 noundef i32 @_Z3detiPA61_i(i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca 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 = call i64 @time(ptr noundef null) #8
  %15 = trunc i64 %14 to i32
  call void @srand(i32 noundef %15) #8
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %17

17:                                               ; preds = %232, %0
  %18 = load i32, ptr @t, align 4, !tbaa !5
  %19 = add nsw i32 %18, -1
  store i32 %19, ptr @t, align 4, !tbaa !5
  %20 = icmp ne i32 %18, 0
  br i1 %20, label %21, label %234

21:                                               ; preds = %17
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  store i32 1, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %62, %21
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 4, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %65

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

29:                                               ; preds = %58, %28
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = load i32, ptr @n, align 4, !tbaa !5
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  store i32 7, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %61

34:                                               ; preds = %29
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [61 x [61 x i32]], ptr @a, i64 0, i64 %36
  %38 = getelementptr inbounds [61 x i32], ptr %37, i64 0, i64 0
  %39 = load i32, ptr %4, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr %38, i64 %40
  %42 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %41)
  br label %43

43:                                               ; preds = %54, %34
  %44 = load i32, ptr @m, align 4, !tbaa !5
  %45 = load i32, ptr %2, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [61 x [61 x i32]], ptr @a, i64 0, i64 %46
  %48 = load i32, ptr %4, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [61 x i32], ptr %47, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = icmp sle i32 %44, %51
  br i1 %52, label %53, label %57

53:                                               ; preds = %43
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr @m, align 4, !tbaa !5
  %56 = shl i32 %55, 1
  store i32 %56, ptr @m, align 4, !tbaa !5
  br label %43, !llvm.loop !9

57:                                               ; preds = %43
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %4, align 4, !tbaa !5
  br label %29, !llvm.loop !11

61:                                               ; preds = %33
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %2, align 4, !tbaa !5
  br label %23, !llvm.loop !12

65:                                               ; preds = %27
  %66 = load i32, ptr @m, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = mul i64 %67, 1
  call void @llvm.memset.p0.i64(ptr align 16 @chk, i8 0, i64 %68, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %204, %65
  %70 = load i32, ptr %5, align 4, !tbaa !5
  %71 = icmp slt i32 %70, 1
  br i1 %71, label %73, label %72

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

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

74:                                               ; preds = %125, %73
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = load i32, ptr @n, align 4, !tbaa !5
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  store i32 16, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %128

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

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

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

85:                                               ; preds = %80
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %87
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [61 x [1025 x i32]], ptr %88, i64 0, i64 %90
  %92 = getelementptr inbounds [1025 x i32], ptr %91, i64 0, i64 0
  %93 = load i32, ptr @m, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = mul i64 %94, 4
  call void @llvm.memset.p0.i64(ptr align 4 %92, i8 0, i64 %95, i1 false)
  %96 = call i32 @rand() #8
  %97 = srem i32 %96, 1000000007
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %99
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [61 x [1025 x i32]], ptr %100, i64 0, i64 %102
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [61 x [61 x i32]], ptr @a, i64 0, i64 %105
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [61 x i32], ptr %106, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1025 x i32], ptr %103, i64 0, i64 %111
  store i32 %97, ptr %112, align 4, !tbaa !5
  %113 = load i32, ptr @m, align 4, !tbaa !5
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %115
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [61 x [1025 x i32]], ptr %116, i64 0, i64 %118
  %120 = getelementptr inbounds [1025 x i32], ptr %119, i64 0, i64 0
  call void @_Z3FWTiPi(i32 noundef %113, ptr noundef %120)
  br label %121

121:                                              ; preds = %85
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %7, align 4, !tbaa !5
  br label %80, !llvm.loop !13

124:                                              ; preds = %84
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %6, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %6, align 4, !tbaa !5
  br label %74, !llvm.loop !14

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

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

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

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

135:                                              ; preds = %167, %134
  %136 = load i32, ptr %9, align 4, !tbaa !5
  %137 = load i32, ptr @n, align 4, !tbaa !5
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 25, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %170

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

141:                                              ; preds = %163, %140
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = load i32, ptr @n, align 4, !tbaa !5
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %141
  store i32 28, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %166

146:                                              ; preds = %141
  %147 = load i32, ptr %9, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %148
  %150 = load i32, ptr %10, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [61 x [1025 x i32]], ptr %149, i64 0, i64 %151
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [1025 x i32], ptr %152, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = load i32, ptr %9, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [61 x [61 x i32]], ptr @mat, i64 0, i64 %158
  %160 = load i32, ptr %10, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [61 x i32], ptr %159, i64 0, i64 %161
  store i32 %156, ptr %162, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %146
  %164 = load i32, ptr %10, align 4, !tbaa !5
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %10, align 4, !tbaa !5
  br label %141, !llvm.loop !15

166:                                              ; preds = %145
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %9, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %9, align 4, !tbaa !5
  br label %135, !llvm.loop !16

170:                                              ; preds = %139
  %171 = load i32, ptr @n, align 4, !tbaa !5
  %172 = call noundef i32 @_Z3detiPA61_i(i32 noundef %171, ptr noundef @mat)
  %173 = load i32, ptr %8, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [1025 x i32], ptr @g, i64 0, i64 %174
  store i32 %172, ptr %175, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %170
  %177 = load i32, ptr %8, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %8, align 4, !tbaa !5
  br label %129, !llvm.loop !17

179:                                              ; preds = %133
  %180 = load i32, ptr @m, align 4, !tbaa !5
  call void @_Z3FWTiPi(i32 noundef %180, ptr noundef @g)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %200, %179
  %182 = load i32, ptr %11, align 4, !tbaa !5
  %183 = load i32, ptr @m, align 4, !tbaa !5
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  store i32 31, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %203

186:                                              ; preds = %181
  %187 = load i32, ptr %11, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [1025 x i32], ptr @g, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = load i32, ptr %11, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [1025 x i8], ptr @chk, i64 0, i64 %192
  %194 = load i8, ptr %193, align 1, !tbaa !18, !range !20, !noundef !21
  %195 = trunc i8 %194 to i1
  %196 = zext i1 %195 to i32
  %197 = or i32 %196, %190
  %198 = icmp ne i32 %197, 0
  %199 = zext i1 %198 to i8
  store i8 %199, ptr %193, align 1, !tbaa !18
  br label %200

200:                                              ; preds = %186
  %201 = load i32, ptr %11, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %11, align 4, !tbaa !5
  br label %181, !llvm.loop !22

203:                                              ; preds = %185
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %5, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %5, align 4, !tbaa !5
  br label %69, !llvm.loop !23

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

208:                                              ; preds = %229, %207
  %209 = load i32, ptr %12, align 4, !tbaa !5
  %210 = load i32, ptr @m, align 4, !tbaa !5
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  store i32 34, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %232

213:                                              ; preds = %208
  %214 = load i32, ptr %12, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [1025 x i8], ptr @chk, i64 0, i64 %215
  %217 = load i8, ptr %216, align 1, !tbaa !18, !range !20, !noundef !21
  %218 = trunc i8 %217 to i1
  br i1 %218, label %219, label %228

219:                                              ; preds = %213
  %220 = load i32, ptr %13, align 4, !tbaa !5
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %222, label %224

222:                                              ; preds = %219
  %223 = call i32 @putchar(i32 noundef 32)
  br label %225

224:                                              ; preds = %219
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %225

225:                                              ; preds = %224, %222
  %226 = load i32, ptr %12, align 4, !tbaa !5
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %226)
  br label %228

228:                                              ; preds = %225, %213
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %12, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %12, align 4, !tbaa !5
  br label %208, !llvm.loop !24

232:                                              ; preds = %212
  %233 = call i32 @putchar(i32 noundef 10)
  br label %17, !llvm.loop !25

234:                                              ; preds = %17
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

declare i32 @__isoc99_scanf(ptr noundef, ...) #5

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

; Function Attrs: nounwind
declare i32 @rand() #4

; Function Attrs: inlinehint mustprogress uwtable
declare i32 @putchar(i32 noundef) #7

declare i32 @printf(ptr noundef, ...) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !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"

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local global [61 x [61 x i32]], align 16
@f = external dso_local global [61 x [61 x [1025 x i32]]], align 16
@g = external dso_local global [1025 x i32], align 16
@mat = external dso_local global [61 x [61 x i32]], align 16
@chk = external dso_local local_unnamed_addr global [1025 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3FWTiPi(i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3detiPA61_i(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = tail call i64 @time(ptr noundef null) #7
  %2 = trunc i64 %1 to i32
  tail call void @srand(i32 noundef %2) #7
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @t, align 4, !tbaa !5
  %.not88 = icmp eq i32 %4, 0
  br i1 %.not88, label %._crit_edge91, label %.lr.ph90

.lr.ph90:                                         ; preds = %0, %._crit_edge87
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  store i32 1, ptr @m, align 4, !tbaa !5
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.preheader60, label %.preheader62.thread

.preheader62.thread:                              ; preds = %.lr.ph90
  store i8 0, ptr @chk, align 16
  br label %.preheader58.preheader

.preheader60:                                     ; preds = %.lr.ph90, %._crit_edge68
  %9 = phi i32 [ %15, %._crit_edge68 ], [ 1, %.lr.ph90 ]
  %10 = phi i32 [ %16, %._crit_edge68 ], [ %7, %.lr.ph90 ]
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %._crit_edge68 ], [ 0, %.lr.ph90 ]
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph67, label %.preheader60.._crit_edge68_crit_edge

.preheader60.._crit_edge68_crit_edge:             ; preds = %.preheader60
  %.pre125 = sext i32 %10 to i64
  br label %._crit_edge68

.lr.ph67:                                         ; preds = %.preheader60
  %12 = getelementptr inbounds [61 x [61 x i32]], ptr @a, i64 0, i64 %indvars.iv96
  br label %18

.critedge:                                        ; preds = %._crit_edge68
  %13 = sext i32 %15 to i64
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @chk, i8 0, i64 %13, i1 false)
  %14 = icmp sgt i32 %16, 0
  br i1 %14, label %.preheader59, label %.preheader62

._crit_edge68:                                    ; preds = %25, %.preheader60.._crit_edge68_crit_edge
  %.pre-phi = phi i64 [ %.pre125, %.preheader60.._crit_edge68_crit_edge ], [ %28, %25 ]
  %15 = phi i32 [ %9, %.preheader60.._crit_edge68_crit_edge ], [ %26, %25 ]
  %16 = phi i32 [ %10, %.preheader60.._crit_edge68_crit_edge ], [ %27, %25 ]
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %17 = icmp slt i64 %indvars.iv.next97, %.pre-phi
  br i1 %17, label %.preheader60, label %.critedge, !llvm.loop !9

18:                                               ; preds = %.lr.ph67, %25
  %indvars.iv = phi i64 [ 0, %.lr.ph67 ], [ %indvars.iv.next, %25 ]
  %19 = getelementptr inbounds i32, ptr %12, i64 %indvars.iv
  %20 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %19)
  %21 = getelementptr inbounds [61 x [61 x i32]], ptr @a, i64 0, i64 %indvars.iv96, i64 %indvars.iv
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %m.promoted = load i32, ptr @m, align 4, !tbaa !5
  %.not5764 = icmp sgt i32 %m.promoted, %22
  br i1 %.not5764, label %25, label %.lr.ph

.lr.ph:                                           ; preds = %18, %.lr.ph
  %23 = phi i32 [ %24, %.lr.ph ], [ %m.promoted, %18 ]
  %24 = shl i32 %23, 1
  %.not57 = icmp sgt i32 %24, %22
  br i1 %.not57, label %._crit_edge, label %.lr.ph, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph
  store i32 %24, ptr @m, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %._crit_edge, %18
  %26 = phi i32 [ %24, %._crit_edge ], [ %m.promoted, %18 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = icmp slt i64 %indvars.iv.next, %28
  br i1 %29, label %18, label %._crit_edge68, !llvm.loop !13

.preheader62.loopexit:                            ; preds = %._crit_edge72
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  br label %.preheader62

.preheader62:                                     ; preds = %.preheader62.loopexit, %.critedge
  %30 = phi i32 [ %.pre, %.preheader62.loopexit ], [ %15, %.critedge ]
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.preheader58.preheader, label %._crit_edge80

.preheader58.preheader:                           ; preds = %.preheader62.thread, %.preheader62
  br label %.preheader58

.preheader59:                                     ; preds = %.critedge, %._crit_edge72
  %32 = phi i32 [ %34, %._crit_edge72 ], [ %16, %.critedge ]
  %indvars.iv102 = phi i64 [ %indvars.iv.next103, %._crit_edge72 ], [ 0, %.critedge ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph71, label %.preheader59.._crit_edge72_crit_edge

.preheader59.._crit_edge72_crit_edge:             ; preds = %.preheader59
  %.pre126 = sext i32 %32 to i64
  br label %._crit_edge72

._crit_edge72:                                    ; preds = %.lr.ph71, %.preheader59.._crit_edge72_crit_edge
  %.pre-phi127 = phi i64 [ %.pre126, %.preheader59.._crit_edge72_crit_edge ], [ %48, %.lr.ph71 ]
  %34 = phi i32 [ %32, %.preheader59.._crit_edge72_crit_edge ], [ %47, %.lr.ph71 ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %35 = icmp slt i64 %indvars.iv.next103, %.pre-phi127
  br i1 %35, label %.preheader59, label %.preheader62.loopexit, !llvm.loop !14

.lr.ph71:                                         ; preds = %.preheader59, %.lr.ph71
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph71 ], [ 0, %.preheader59 ]
  %36 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv102, i64 %indvars.iv99
  %37 = load i32, ptr @m, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = shl nsw i64 %38, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %36, i8 0, i64 %39, i1 false)
  %40 = tail call i32 @rand() #7
  %41 = srem i32 %40, 1000000007
  %42 = getelementptr inbounds [61 x [61 x i32]], ptr @a, i64 0, i64 %indvars.iv102, i64 %indvars.iv99
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv102, i64 %indvars.iv99, i64 %44
  store i32 %41, ptr %45, align 4, !tbaa !5
  %46 = load i32, ptr @m, align 4, !tbaa !5
  tail call void @_Z3FWTiPi(i32 noundef %46, ptr noundef nonnull %36)
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %47 = load i32, ptr @n, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next100, %48
  br i1 %49, label %.lr.ph71, label %._crit_edge72, !llvm.loop !15

.preheader58:                                     ; preds = %.preheader58.preheader, %._crit_edge78.split.us
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %._crit_edge78.split.us ], [ 0, %.preheader58.preheader ]
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %.preheader.lr.ph, label %._crit_edge78.split.us

.preheader.lr.ph:                                 ; preds = %.preheader58
  %wide.trip.count111 = zext nneg i32 %50 to i64
  %min.iters.check149 = icmp ult i32 %50, 8
  %n.vec152 = and i64 %wide.trip.count111, 2147483640
  %cmp.n157 = icmp eq i64 %n.vec152, %wide.trip.count111
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge76.us, %.preheader.lr.ph
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %._crit_edge76.us ], [ 0, %.preheader.lr.ph ]
  br i1 %min.iters.check149, label %scalar.ph148.preheader, label %vector.body154

vector.body154:                                   ; preds = %.preheader.us, %vector.body154
  %index155 = phi i64 [ %index.next156, %vector.body154 ], [ 0, %.preheader.us ]
  %52 = or disjoint i64 %index155, 1
  %53 = or disjoint i64 %index155, 2
  %54 = or disjoint i64 %index155, 3
  %55 = or disjoint i64 %index155, 4
  %56 = or disjoint i64 %index155, 5
  %57 = or disjoint i64 %index155, 6
  %58 = or disjoint i64 %index155, 7
  %59 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %index155, i64 %indvars.iv113
  %60 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %52, i64 %indvars.iv113
  %61 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %53, i64 %indvars.iv113
  %62 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %54, i64 %indvars.iv113
  %63 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %55, i64 %indvars.iv113
  %64 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %56, i64 %indvars.iv113
  %65 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %57, i64 %indvars.iv113
  %66 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %58, i64 %indvars.iv113
  %67 = load i32, ptr %59, align 4, !tbaa !5
  %68 = load i32, ptr %60, align 4, !tbaa !5
  %69 = load i32, ptr %61, align 4, !tbaa !5
  %70 = load i32, ptr %62, align 4, !tbaa !5
  %71 = insertelement <4 x i32> poison, i32 %67, i64 0
  %72 = insertelement <4 x i32> %71, i32 %68, i64 1
  %73 = insertelement <4 x i32> %72, i32 %69, i64 2
  %74 = insertelement <4 x i32> %73, i32 %70, i64 3
  %75 = load i32, ptr %63, align 4, !tbaa !5
  %76 = load i32, ptr %64, align 4, !tbaa !5
  %77 = load i32, ptr %65, align 4, !tbaa !5
  %78 = load i32, ptr %66, align 4, !tbaa !5
  %79 = insertelement <4 x i32> poison, i32 %75, i64 0
  %80 = insertelement <4 x i32> %79, i32 %76, i64 1
  %81 = insertelement <4 x i32> %80, i32 %77, i64 2
  %82 = insertelement <4 x i32> %81, i32 %78, i64 3
  %83 = getelementptr inbounds [61 x [61 x i32]], ptr @mat, i64 0, i64 %indvars.iv108, i64 %index155
  %84 = getelementptr inbounds i8, ptr %83, i64 16
  store <4 x i32> %74, ptr %83, align 4, !tbaa !5
  store <4 x i32> %82, ptr %84, align 4, !tbaa !5
  %index.next156 = add nuw i64 %index155, 8
  %85 = icmp eq i64 %index.next156, %n.vec152
  br i1 %85, label %middle.block147, label %vector.body154, !llvm.loop !16

middle.block147:                                  ; preds = %vector.body154
  br i1 %cmp.n157, label %._crit_edge76.us, label %scalar.ph148.preheader

scalar.ph148.preheader:                           ; preds = %middle.block147, %.preheader.us
  %indvars.iv105.ph = phi i64 [ 0, %.preheader.us ], [ %n.vec152, %middle.block147 ]
  br label %scalar.ph148

scalar.ph148:                                     ; preds = %scalar.ph148.preheader, %scalar.ph148
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %scalar.ph148 ], [ %indvars.iv105.ph, %scalar.ph148.preheader ]
  %86 = getelementptr inbounds [61 x [61 x [1025 x i32]]], ptr @f, i64 0, i64 %indvars.iv108, i64 %indvars.iv105, i64 %indvars.iv113
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = getelementptr inbounds [61 x [61 x i32]], ptr @mat, i64 0, i64 %indvars.iv108, i64 %indvars.iv105
  store i32 %87, ptr %88, align 4, !tbaa !5
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count111
  br i1 %exitcond.not, label %._crit_edge76.us, label %scalar.ph148, !llvm.loop !19

._crit_edge76.us:                                 ; preds = %scalar.ph148, %middle.block147
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %exitcond112.not = icmp eq i64 %indvars.iv.next109, %wide.trip.count111
  br i1 %exitcond112.not, label %._crit_edge78.split.us, label %.preheader.us, !llvm.loop !20

._crit_edge80:                                    ; preds = %._crit_edge78.split.us, %.preheader62
  %.lcssa63 = phi i32 [ %30, %.preheader62 ], [ %106, %._crit_edge78.split.us ]
  tail call void @_Z3FWTiPi(i32 noundef %.lcssa63, ptr noundef nonnull @g)
  %89 = load i32, ptr @m, align 4, !tbaa !5
  %90 = icmp sgt i32 %89, 0
  br i1 %90, label %.lr.ph83.preheader, label %._crit_edge87

.lr.ph83.preheader:                               ; preds = %._crit_edge80
  %wide.trip.count119 = zext nneg i32 %89 to i64
  %min.iters.check = icmp ult i32 %89, 8
  br i1 %min.iters.check, label %.lr.ph83.preheader158, label %vector.ph

.lr.ph83.preheader158:                            ; preds = %middle.block, %.lr.ph83.preheader
  %indvars.iv116.ph = phi i64 [ 0, %.lr.ph83.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph83

vector.ph:                                        ; preds = %.lr.ph83.preheader
  %n.vec = and i64 %wide.trip.count119, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %91 = getelementptr inbounds [1025 x i32], ptr @g, i64 0, i64 %index
  %92 = getelementptr inbounds i8, ptr %91, i64 16
  %wide.load = load <4 x i32>, ptr %91, align 16, !tbaa !5
  %wide.load144 = load <4 x i32>, ptr %92, align 16, !tbaa !5
  %93 = getelementptr inbounds [1025 x i8], ptr @chk, i64 0, i64 %index
  %94 = getelementptr inbounds i8, ptr %93, i64 4
  %wide.load145 = load <4 x i8>, ptr %93, align 8, !tbaa !21
  %wide.load146 = load <4 x i8>, ptr %94, align 4, !tbaa !21
  %95 = zext <4 x i8> %wide.load145 to <4 x i32>
  %96 = zext <4 x i8> %wide.load146 to <4 x i32>
  %97 = or <4 x i32> %wide.load, %95
  %98 = or <4 x i32> %wide.load144, %96
  %99 = icmp ne <4 x i32> %97, zeroinitializer
  %100 = icmp ne <4 x i32> %98, zeroinitializer
  %101 = zext <4 x i1> %99 to <4 x i8>
  %102 = zext <4 x i1> %100 to <4 x i8>
  store <4 x i8> %101, ptr %93, align 8, !tbaa !21
  store <4 x i8> %102, ptr %94, align 4, !tbaa !21
  %index.next = add nuw i64 %index, 8
  %103 = icmp eq i64 %index.next, %n.vec
  br i1 %103, label %middle.block, label %vector.body, !llvm.loop !23

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count119
  br i1 %cmp.n, label %.preheader61, label %.lr.ph83.preheader158

._crit_edge78.split.us:                           ; preds = %._crit_edge76.us, %.preheader58
  %104 = tail call noundef i32 @_Z3detiPA61_i(i32 noundef %50, ptr noundef nonnull @mat)
  %105 = getelementptr inbounds [1025 x i32], ptr @g, i64 0, i64 %indvars.iv113
  store i32 %104, ptr %105, align 4, !tbaa !5
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %106 = load i32, ptr @m, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = icmp slt i64 %indvars.iv.next114, %107
  br i1 %108, label %.preheader58, label %._crit_edge80, !llvm.loop !24

.preheader61:                                     ; preds = %.lr.ph83, %middle.block
  br i1 %90, label %.lr.ph86, label %._crit_edge87

.lr.ph83:                                         ; preds = %.lr.ph83.preheader158, %.lr.ph83
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %.lr.ph83 ], [ %indvars.iv116.ph, %.lr.ph83.preheader158 ]
  %109 = getelementptr inbounds [1025 x i32], ptr @g, i64 0, i64 %indvars.iv116
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = getelementptr inbounds [1025 x i8], ptr @chk, i64 0, i64 %indvars.iv116
  %112 = load i8, ptr %111, align 1, !tbaa !21, !range !25, !noundef !26
  %113 = zext nneg i8 %112 to i32
  %114 = or i32 %110, %113
  %115 = icmp ne i32 %114, 0
  %116 = zext i1 %115 to i8
  store i8 %116, ptr %111, align 1, !tbaa !21
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count119
  br i1 %exitcond120.not, label %.preheader61, label %.lr.ph83, !llvm.loop !27

._crit_edge87:                                    ; preds = %130, %._crit_edge80, %.preheader61
  %117 = tail call i32 @putchar(i32 noundef 10)
  %118 = load i32, ptr @t, align 4, !tbaa !5
  %119 = add nsw i32 %118, -1
  store i32 %119, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %118, 0
  br i1 %.not, label %._crit_edge91, label %.lr.ph90, !llvm.loop !28

.lr.ph86:                                         ; preds = %.preheader61, %130
  %120 = phi i32 [ %131, %130 ], [ %89, %.preheader61 ]
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %130 ], [ 0, %.preheader61 ]
  %.085 = phi i32 [ %.2, %130 ], [ 0, %.preheader61 ]
  %121 = getelementptr inbounds [1025 x i8], ptr @chk, i64 0, i64 %indvars.iv121
  %122 = load i8, ptr %121, align 1, !tbaa !21, !range !25, !noundef !26
  %123 = trunc nuw i8 %122 to i1
  br i1 %123, label %124, label %130

124:                                              ; preds = %.lr.ph86
  %.not56 = icmp eq i32 %.085, 0
  br i1 %.not56, label %127, label %125

125:                                              ; preds = %124
  %126 = tail call i32 @putchar(i32 noundef 32)
  br label %127

127:                                              ; preds = %124, %125
  %128 = trunc nuw nsw i64 %indvars.iv121 to i32
  %129 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %128)
  %.pre124 = load i32, ptr @m, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %.lr.ph86, %127
  %131 = phi i32 [ %.pre124, %127 ], [ %120, %.lr.ph86 ]
  %.2 = phi i32 [ 1, %127 ], [ %.085, %.lr.ph86 ]
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next122, %132
  br i1 %133, label %.lr.ph86, label %._crit_edge87, !llvm.loop !29

._crit_edge91:                                    ; preds = %._crit_edge87, %0
  ret i32 0
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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}
!14 = distinct !{!14, !10, !11}
!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 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = distinct !{!23, !10, !17, !18}
!24 = distinct !{!24, !10}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !10, !18, !17}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}


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