; LLVM IR from tangjz/acm-icpc :: hdu (5318)

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

%struct.Matrix = type { i32, i32, [55 x [55 x i32]] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@num = external dso_local global [55 x i32], align 16
@len = external dso_local global [55 x i32], align 16
@str = external dso_local global [55 x [100 x i8]], align 16
@A = external dso_local global %struct.Matrix, align 4
@B = external dso_local global %struct.Matrix, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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 i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca %struct.Matrix, align 4
  %12 = alloca %struct.Matrix, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %16

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

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

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

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %35

27:                                               ; preds = %22
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i32, ptr @num, i64 %29
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %30)
  br label %32

32:                                               ; preds = %27
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %2, align 4, !tbaa !5
  br label %22, !llvm.loop !9

35:                                               ; preds = %26
  %36 = load i32, ptr @n, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr @num, i64 %37
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @num, ptr noundef %38)
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr @num, i64 %40
  %42 = call noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef @num, ptr noundef %41)
  %43 = ptrtoint ptr %42 to i64
  %44 = sub i64 %43, ptrtoint (ptr @num to i64)
  %45 = sdiv exact i64 %44, 4
  %46 = trunc i64 %45 to i32
  store i32 %46, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %71, %35
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = load i32, ptr @n, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %74

52:                                               ; preds = %47
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [55 x [100 x i8]], ptr @str, i64 0, i64 %54
  %56 = getelementptr inbounds [100 x i8], ptr %55, i64 0, i64 0
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [55 x i32], ptr @num, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %56, ptr noundef @.str, i32 noundef %60) #8
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [55 x [100 x i8]], ptr @str, i64 0, i64 %63
  %65 = getelementptr inbounds [100 x i8], ptr %64, i64 0, i64 0
  %66 = call i64 @strlen(ptr noundef %65) #9
  %67 = trunc i64 %66 to i32
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [55 x i32], ptr @len, i64 0, i64 %69
  store i32 %67, ptr %70, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %52
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %3, align 4, !tbaa !5
  br label %47, !llvm.loop !11

74:                                               ; preds = %51
  %75 = load i32, ptr @n, align 4, !tbaa !5
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = load i32, ptr @m, align 4, !tbaa !5
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %82, label %80

80:                                               ; preds = %77, %74
  %81 = call i32 @puts(ptr noundef @.str.2)
  br label %16, !llvm.loop !12

82:                                               ; preds = %77
  store i32 1, ptr @A, align 4, !tbaa !13
  %83 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %83, ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 1), align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %93, %82
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = load i32, ptr @n, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %96

89:                                               ; preds = %84
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [55 x i32], ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), i64 0, i64 %91
  store i32 1, ptr %92, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %89
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %4, align 4, !tbaa !5
  br label %84, !llvm.loop !16

96:                                               ; preds = %88
  %97 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %97, ptr getelementptr inbounds (%struct.Matrix, ptr @B, i32 0, i32 1), align 4, !tbaa !15
  store i32 %97, ptr @B, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %202, %96
  %99 = load i32, ptr %5, align 4, !tbaa !5
  %100 = load i32, ptr @n, align 4, !tbaa !5
  %101 = icmp slt i32 %99, %100
  br i1 %101, label %103, label %102

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

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

104:                                              ; preds = %198, %103
  %105 = load i32, ptr %7, align 4, !tbaa !5
  %106 = load i32, ptr @n, align 4, !tbaa !5
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %201

109:                                              ; preds = %104
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [55 x [55 x i32]], ptr getelementptr inbounds (%struct.Matrix, ptr @B, i32 0, i32 2), i64 0, i64 %111
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [55 x i32], ptr %112, i64 0, i64 %114
  store i32 0, ptr %115, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 2, ptr %8, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %193, %109
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = load i32, ptr %5, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [55 x i32], ptr @len, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = icmp sle i32 %117, %121
  br i1 %122, label %123, label %130

123:                                              ; preds = %116
  %124 = load i32, ptr %8, align 4, !tbaa !5
  %125 = load i32, ptr %7, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [55 x i32], ptr @len, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = icmp sle i32 %124, %128
  br label %130

130:                                              ; preds = %123, %116
  %131 = phi i1 [ false, %116 ], [ %129, %123 ]
  br i1 %131, label %133, label %132

132:                                              ; preds = %130
  store i32 19, ptr %6, align 4
  br label %196

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

134:                                              ; preds = %176, %133
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = load i32, ptr %8, align 4, !tbaa !5
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %138, label %141

138:                                              ; preds = %134
  %139 = load i8, ptr %9, align 1, !tbaa !17, !range !19, !noundef !20
  %140 = trunc i8 %139 to i1
  br label %141

141:                                              ; preds = %138, %134
  %142 = phi i1 [ false, %134 ], [ %140, %138 ]
  br i1 %142, label %144, label %143

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

144:                                              ; preds = %141
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [55 x [100 x i8]], ptr @str, i64 0, i64 %146
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [55 x i32], ptr @len, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = load i32, ptr %8, align 4, !tbaa !5
  %153 = sub nsw i32 %151, %152
  %154 = load i32, ptr %10, align 4, !tbaa !5
  %155 = add nsw i32 %153, %154
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100 x i8], ptr %147, i64 0, i64 %156
  %158 = load i8, ptr %157, align 1, !tbaa !21
  %159 = sext i8 %158 to i32
  %160 = load i32, ptr %7, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [55 x [100 x i8]], ptr @str, i64 0, i64 %161
  %163 = load i32, ptr %10, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [100 x i8], ptr %162, i64 0, i64 %164
  %166 = load i8, ptr %165, align 1, !tbaa !21
  %167 = sext i8 %166 to i32
  %168 = icmp eq i32 %159, %167
  %169 = zext i1 %168 to i32
  %170 = load i8, ptr %9, align 1, !tbaa !17, !range !19, !noundef !20
  %171 = trunc i8 %170 to i1
  %172 = zext i1 %171 to i32
  %173 = and i32 %172, %169
  %174 = icmp ne i32 %173, 0
  %175 = zext i1 %174 to i8
  store i8 %175, ptr %9, align 1, !tbaa !17
  br label %176

176:                                              ; preds = %144
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %10, align 4, !tbaa !5
  br label %134, !llvm.loop !22

179:                                              ; preds = %143
  %180 = load i8, ptr %9, align 1, !tbaa !17, !range !19, !noundef !20
  %181 = trunc i8 %180 to i1
  br i1 %181, label %182, label %189

182:                                              ; preds = %179
  %183 = load i32, ptr %5, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [55 x [55 x i32]], ptr getelementptr inbounds (%struct.Matrix, ptr @B, i32 0, i32 2), i64 0, i64 %184
  %186 = load i32, ptr %7, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [55 x i32], ptr %185, i64 0, i64 %187
  store i32 1, ptr %188, align 4, !tbaa !5
  store i32 19, ptr %6, align 4
  br label %190

189:                                              ; preds = %179
  store i32 0, ptr %6, align 4
  br label %190

190:                                              ; preds = %189, %182
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  %191 = load i32, ptr %6, align 4
  switch i32 %191, label %196 [
    i32 0, label %192
  ]

192:                                              ; preds = %190
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %8, align 4, !tbaa !5
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %8, align 4, !tbaa !5
  br label %116, !llvm.loop !23

196:                                              ; preds = %190, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %7, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %7, align 4, !tbaa !5
  br label %104, !llvm.loop !24

201:                                              ; preds = %108
  br label %202

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

205:                                              ; preds = %102
  %206 = load i32, ptr @m, align 4, !tbaa !5
  %207 = add nsw i32 %206, -1
  store i32 %207, ptr @m, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %216, %205
  %209 = load i32, ptr @m, align 4, !tbaa !5
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %219

211:                                              ; preds = %208
  %212 = load i32, ptr @m, align 4, !tbaa !5
  %213 = and i32 %212, 1
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %216

215:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 12108, ptr %11) #8
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%struct.Matrix) align 4 %11, ptr noundef nonnull align 4 dereferenceable(12108) @A, ptr noundef nonnull align 4 dereferenceable(12108) @B)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @A, ptr align 4 %11, i64 12108, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 12108, ptr %11) #8
  br label %216

216:                                              ; preds = %215, %211
  call void @llvm.lifetime.start.p0(i64 12108, ptr %12) #8
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind writable sret(%struct.Matrix) align 4 %12, ptr noundef nonnull align 4 dereferenceable(12108) @B, ptr noundef nonnull align 4 dereferenceable(12108) @B)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @B, ptr align 4 %12, i64 12108, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 12108, ptr %12) #8
  %217 = load i32, ptr @m, align 4, !tbaa !5
  %218 = ashr i32 %217, 1
  store i32 %218, ptr @m, align 4, !tbaa !5
  br label %208, !llvm.loop !27

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

220:                                              ; preds = %230, %219
  %221 = load i32, ptr %14, align 4, !tbaa !5
  %222 = load i32, ptr @n, align 4, !tbaa !5
  %223 = icmp slt i32 %221, %222
  br i1 %223, label %225, label %224

224:                                              ; preds = %220
  store i32 27, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %233

225:                                              ; preds = %220
  %226 = load i32, ptr %14, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [55 x i32], ptr getelementptr inbounds (%struct.Matrix, ptr @A, i32 0, i32 2), i64 0, i64 %227
  %229 = load i32, ptr %228, align 4, !tbaa !5
  call void @_Z3incRii(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef %229)
  br label %230

230:                                              ; preds = %225
  %231 = load i32, ptr %14, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %14, align 4, !tbaa !5
  br label %220, !llvm.loop !28

233:                                              ; preds = %224
  %234 = load i32, ptr %13, align 4, !tbaa !5
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %234)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %16, !llvm.loop !12

236:                                              ; preds = %16
  ret i32 0
}

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

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

; 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 dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

declare i32 @puts(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind noalias writable sret(%struct.Matrix) align 4, ptr noundef nonnull align 4 dereferenceable(12108), ptr noundef nonnull align 4 dereferenceable(12108)) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

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

!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 = !{!14, !6, i64 0}
!14 = !{!"_ZTS6Matrix", !6, i64 0, !6, i64 4, !7, i64 8}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !10}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 12100, !21}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !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"

%struct.Matrix = type { i32, i32, [55 x [55 x i32]] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@num = external dso_local global [55 x i32], align 16
@len = external dso_local local_unnamed_addr global [55 x i32], align 16
@str = external dso_local global [55 x [100 x i8]], align 16
@A = external dso_local global %struct.Matrix, align 4
@B = external dso_local global %struct.Matrix, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %struct.Matrix, align 4
  %2 = alloca %struct.Matrix, align 4
  %3 = alloca i32, align 4
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %5 = load i32, ptr @t, align 4, !tbaa !5
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr @t, align 4, !tbaa !5
  %.not97 = icmp eq i32 %5, 0
  br i1 %.not97, label %._crit_edge100, label %.lr.ph99

.lr.ph99:                                         ; preds = %0, %.backedge
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %.lr.ph99.._crit_edge_crit_edge

.lr.ph99.._crit_edge_crit_edge:                   ; preds = %.lr.ph99
  %.pre137 = sext i32 %8 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph99.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre137, %.lr.ph99.._crit_edge_crit_edge ], [ %23, %.lr.ph ]
  %10 = getelementptr inbounds i32, ptr @num, i64 %.pre-phi
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @num, ptr noundef nonnull %10)
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds i32, ptr @num, i64 %12
  %14 = call noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef nonnull @num, ptr noundef nonnull %13)
  %15 = ptrtoint ptr %14 to i64
  %16 = sub i64 %15, ptrtoint (ptr @num to i64)
  %17 = lshr exact i64 %16, 2
  %18 = trunc i64 %17 to i32
  store i32 %18, ptr @n, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph66, label %._crit_edge67

.lr.ph:                                           ; preds = %.lr.ph99, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph99 ]
  %20 = getelementptr inbounds i32, ptr @num, i64 %indvars.iv
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %20)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = icmp slt i64 %indvars.iv.next, %23
  br i1 %24, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge67:                                    ; preds = %.lr.ph66, %._crit_edge
  %.lcssa62 = phi i32 [ %18, %._crit_edge ], [ %35, %.lr.ph66 ]
  %25 = icmp ne i32 %.lcssa62, 0
  %26 = load i32, ptr @m, align 4
  %27 = icmp ne i32 %26, 0
  %or.cond = select i1 %25, i1 %27, i1 false
  br i1 %or.cond, label %42, label %38

.lr.ph66:                                         ; preds = %._crit_edge, %.lr.ph66
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %.lr.ph66 ], [ 0, %._crit_edge ]
  %28 = getelementptr inbounds [55 x [100 x i8]], ptr @str, i64 0, i64 %indvars.iv106
  %29 = getelementptr inbounds [55 x i32], ptr @num, i64 0, i64 %indvars.iv106
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %28, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %30) #9
  %32 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %28) #10
  %33 = trunc i64 %32 to i32
  %34 = getelementptr inbounds [55 x i32], ptr @len, i64 0, i64 %indvars.iv106
  store i32 %33, ptr %34, align 4, !tbaa !5
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %35 = load i32, ptr @n, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next107, %36
  br i1 %37, label %.lr.ph66, label %._crit_edge67, !llvm.loop !11

38:                                               ; preds = %._crit_edge67
  %39 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %.backedge

.backedge:                                        ; preds = %38, %._crit_edge96
  %40 = load i32, ptr @t, align 4, !tbaa !5
  %41 = add nsw i32 %40, -1
  store i32 %41, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %._crit_edge100, label %.lr.ph99, !llvm.loop !12

42:                                               ; preds = %._crit_edge67
  store i32 1, ptr @A, align 4, !tbaa !13
  store i32 %.lcssa62, ptr getelementptr inbounds (i8, ptr @A, i64 4), align 4, !tbaa !15
  %43 = icmp sgt i32 %.lcssa62, 0
  br i1 %43, label %.lr.ph71.preheader, label %._crit_edge72.thread

._crit_edge72.thread:                             ; preds = %42
  store i32 %.lcssa62, ptr getelementptr inbounds (i8, ptr @B, i64 4), align 4, !tbaa !15
  store i32 %.lcssa62, ptr @B, align 4, !tbaa !13
  br label %._crit_edge83.split.us

.lr.ph71.preheader:                               ; preds = %42
  %wide.trip.count = zext nneg i32 %.lcssa62 to i64
  %min.iters.check = icmp ult i32 %.lcssa62, 8
  br i1 %min.iters.check, label %.lr.ph71.preheader142, label %vector.ph

.lr.ph71.preheader142:                            ; preds = %middle.block, %.lr.ph71.preheader
  %indvars.iv109.ph = phi i64 [ 0, %.lr.ph71.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph71

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %44 = getelementptr inbounds [55 x i32], ptr getelementptr inbounds (i8, ptr @A, i64 8), i64 0, i64 %index
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %44, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %45, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %46 = icmp eq i64 %index.next, %n.vec
  br i1 %46, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge72, label %.lr.ph71.preheader142

._crit_edge72:                                    ; preds = %.lr.ph71, %middle.block
  store i32 %.lcssa62, ptr getelementptr inbounds (i8, ptr @B, i64 4), align 4, !tbaa !15
  store i32 %.lcssa62, ptr @B, align 4, !tbaa !13
  br i1 %43, label %.preheader61.us.preheader, label %._crit_edge83.split.us

.preheader61.us.preheader:                        ; preds = %._crit_edge72
  %47 = zext nneg i32 %.lcssa62 to i64
  %48 = shl nuw nsw i64 %47, 2
  br label %.preheader61.us

.preheader61.us:                                  ; preds = %.preheader61.us.preheader, %._crit_edge81.us
  %indvar = phi i64 [ 0, %.preheader61.us.preheader ], [ %indvar.next, %._crit_edge81.us ]
  %49 = getelementptr inbounds [55 x i32], ptr @len, i64 0, i64 %indvar
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %.not5774.us = icmp slt i32 %50, 2
  br i1 %.not5774.us, label %.critedge.loopexit.us.us.preheader, label %.lr.ph77.us.preheader

.lr.ph77.us.preheader:                            ; preds = %.preheader61.us
  %51 = zext nneg i32 %50 to i64
  %52 = add nuw i32 %50, 1
  %wide.trip.count120 = zext i32 %52 to i64
  br label %.lr.ph77.us

.critedge.loopexit.us.us.preheader:               ; preds = %.preheader61.us
  %53 = mul nuw nsw i64 %indvar, 220
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @B, i64 8), i64 %53
  call void @llvm.memset.p0.i64(ptr align 4 %gep, i8 0, i64 %48, i1 false), !tbaa !5
  br label %._crit_edge81.us

.lr.ph77.us:                                      ; preds = %.lr.ph77.us.preheader, %.critedge.us
  %indvars.iv122 = phi i64 [ 0, %.lr.ph77.us.preheader ], [ %indvars.iv.next123, %.critedge.us ]
  %54 = getelementptr inbounds [55 x [55 x i32]], ptr getelementptr inbounds (i8, ptr @B, i64 8), i64 0, i64 %indvar, i64 %indvars.iv122
  store i32 0, ptr %54, align 4, !tbaa !5
  %55 = getelementptr inbounds [55 x i32], ptr @len, i64 0, i64 %indvars.iv122
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %smax = call i32 @llvm.smax.i32(i32 %56, i32 1)
  %57 = add nuw i32 %smax, 1
  %wide.trip.count118 = zext i32 %57 to i64
  br label %59

58:                                               ; preds = %.critedge60.us
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %exitcond121.not = icmp eq i64 %indvars.iv.next116, %wide.trip.count120
  br i1 %exitcond121.not, label %.critedge.us, label %59, !llvm.loop !19

59:                                               ; preds = %58, %.lr.ph77.us
  %indvars.iv115 = phi i64 [ %indvars.iv.next116, %58 ], [ 2, %.lr.ph77.us ]
  %exitcond119 = icmp eq i64 %indvars.iv115, %wide.trip.count118
  br i1 %exitcond119, label %.critedge.us, label %.preheader.us

.critedge60.us:                                   ; preds = %61
  br i1 %67, label %60, label %58

60:                                               ; preds = %.critedge60.us
  store i32 1, ptr %54, align 4, !tbaa !5
  br label %.critedge.us

61:                                               ; preds = %.preheader.us, %61
  %indvars.iv112 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next113, %61 ]
  %62 = add nsw i64 %70, %indvars.iv112
  %63 = getelementptr inbounds [55 x [100 x i8]], ptr @str, i64 0, i64 %indvar, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !20
  %65 = getelementptr inbounds [55 x [100 x i8]], ptr @str, i64 0, i64 %indvars.iv122, i64 %indvars.iv112
  %66 = load i8, ptr %65, align 1, !tbaa !20
  %67 = icmp eq i8 %64, %66
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %68 = icmp ult i64 %indvars.iv.next113, %indvars.iv115
  %69 = select i1 %68, i1 %67, i1 false
  br i1 %69, label %61, label %.critedge60.us, !llvm.loop !21

.critedge.us:                                     ; preds = %59, %58, %60
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond126.not = icmp eq i64 %indvars.iv.next123, %47
  br i1 %exitcond126.not, label %._crit_edge81.us, label %.lr.ph77.us, !llvm.loop !22

.preheader.us:                                    ; preds = %59
  %70 = sub nsw i64 %51, %indvars.iv115
  br label %61

._crit_edge81.us:                                 ; preds = %.critedge.us, %.critedge.loopexit.us.us.preheader
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond132.not = icmp eq i64 %indvar.next, %47
  br i1 %exitcond132.not, label %._crit_edge83.split.us, label %.preheader61.us, !llvm.loop !23

.lr.ph71:                                         ; preds = %.lr.ph71.preheader142, %.lr.ph71
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %.lr.ph71 ], [ %indvars.iv109.ph, %.lr.ph71.preheader142 ]
  %71 = getelementptr inbounds [55 x i32], ptr getelementptr inbounds (i8, ptr @A, i64 8), i64 0, i64 %indvars.iv109
  store i32 1, ptr %71, align 4, !tbaa !5
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next110, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge72, label %.lr.ph71, !llvm.loop !24

._crit_edge83.split.us:                           ; preds = %._crit_edge81.us, %._crit_edge72.thread, %._crit_edge72
  %72 = add nsw i32 %26, -1
  store i32 %72, ptr @m, align 4, !tbaa !5
  %.not5588 = icmp eq i32 %72, 0
  br i1 %.not5588, label %._crit_edge92, label %.lr.ph91

.lr.ph91:                                         ; preds = %._crit_edge83.split.us, %75
  %storemerge89 = phi i32 [ %77, %75 ], [ %72, %._crit_edge83.split.us ]
  %73 = and i32 %storemerge89, 1
  %.not56 = icmp eq i32 %73, 0
  br i1 %.not56, label %75, label %74

74:                                               ; preds = %.lr.ph91
  call void @llvm.lifetime.start.p0(i64 12108, ptr nonnull %1) #9
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %1, ptr noundef nonnull align 4 dereferenceable(12108) @A, ptr noundef nonnull align 4 dereferenceable(12108) @B)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12108) @A, ptr noundef nonnull align 4 dereferenceable(12108) %1, i64 12108, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 12108, ptr nonnull %1) #9
  br label %75

75:                                               ; preds = %74, %.lr.ph91
  call void @llvm.lifetime.start.p0(i64 12108, ptr nonnull %2) #9
  call void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Matrix) align 4 %2, ptr noundef nonnull align 4 dereferenceable(12108) @B, ptr noundef nonnull align 4 dereferenceable(12108) @B)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12108) @B, ptr noundef nonnull align 4 dereferenceable(12108) %2, i64 12108, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 12108, ptr nonnull %2) #9
  %76 = load i32, ptr @m, align 4, !tbaa !5
  %77 = ashr i32 %76, 1
  store i32 %77, ptr @m, align 4, !tbaa !5
  %.not55 = icmp ult i32 %76, 2
  br i1 %.not55, label %._crit_edge92.loopexit, label %.lr.ph91, !llvm.loop !26

._crit_edge92.loopexit:                           ; preds = %75
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge92

._crit_edge92:                                    ; preds = %._crit_edge92.loopexit, %._crit_edge83.split.us
  %78 = phi i32 [ %.pre, %._crit_edge92.loopexit ], [ %.lcssa62, %._crit_edge83.split.us ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  store i32 0, ptr %3, align 4, !tbaa !5
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %.lr.ph95, label %._crit_edge96

._crit_edge96.loopexit:                           ; preds = %.lr.ph95
  %.pre136 = load i32, ptr %3, align 4, !tbaa !5
  br label %._crit_edge96

._crit_edge96:                                    ; preds = %._crit_edge96.loopexit, %._crit_edge92
  %80 = phi i32 [ %.pre136, %._crit_edge96.loopexit ], [ 0, %._crit_edge92 ]
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %80)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  br label %.backedge

.lr.ph95:                                         ; preds = %._crit_edge92, %.lr.ph95
  %indvars.iv133 = phi i64 [ %indvars.iv.next134, %.lr.ph95 ], [ 0, %._crit_edge92 ]
  %82 = getelementptr inbounds [55 x i32], ptr getelementptr inbounds (i8, ptr @A, i64 8), i64 0, i64 %indvars.iv133
  %83 = load i32, ptr %82, align 4, !tbaa !5
  call void @_Z3incRii(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %83)
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next134, %85
  br i1 %86, label %.lr.ph95, label %._crit_edge96.loopexit, !llvm.loop !27

._crit_edge100:                                   ; preds = %.backedge, %0
  ret i32 0
}

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

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

; Function Attrs: mustprogress 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 dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6uniqueIPiET_S1_S1_(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK6MatrixmlERKS_(ptr dead_on_unwind noalias writable sret(%struct.Matrix) align 4, ptr noundef nonnull align 4 dereferenceable(12108), ptr noundef nonnull align 4 dereferenceable(12108)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

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

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

!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 = !{!14, !6, i64 0}
!14 = !{!"_ZTS6Matrix", !6, i64 0, !6, i64 4, !7, i64 8}
!15 = !{!14, !6, i64 4}
!16 = distinct !{!16, !10, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !10}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10, !18, !17}
!25 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 12100, !20}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}


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