; LLVM IR from smv1999/CompetitiveProgrammingQuestionBank :: 2D Arrays (Strassen's_Algo)

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

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [2 x [2 x i32]], align 16
  %3 = alloca [2 x [2 x i32]], align 16
  %4 = alloca [2 x [2 x i32]], align 16
  %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
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %34, %0
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = icmp slt i32 %16, 2
  br i1 %17, label %18, label %37

18:                                               ; preds = %15
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %30, %18
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 2
  br i1 %21, label %22, label %33

22:                                               ; preds = %19
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 %24
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [2 x i32], ptr %25, i64 0, i64 %27
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %28)
  br label %30

30:                                               ; preds = %22
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %6, align 4, !tbaa !5
  br label %19, !llvm.loop !9

33:                                               ; preds = %19
  br label %34

34:                                               ; preds = %33
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %5, align 4, !tbaa !5
  br label %15, !llvm.loop !11

37:                                               ; preds = %15
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %58, %37
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 2
  br i1 %41, label %42, label %61

42:                                               ; preds = %39
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %54, %42
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 2
  br i1 %45, label %46, label %57

46:                                               ; preds = %43
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 %48
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [2 x i32], ptr %49, i64 0, i64 %51
  %53 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %52)
  br label %54

54:                                               ; preds = %46
  %55 = load i32, ptr %6, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %6, align 4, !tbaa !5
  br label %43, !llvm.loop !12

57:                                               ; preds = %43
  br label %58

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

61:                                               ; preds = %39
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %84, %61
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = icmp slt i32 %64, 2
  br i1 %65, label %66, label %87

66:                                               ; preds = %63
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %79, %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 2
  br i1 %69, label %70, label %82

70:                                               ; preds = %67
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 %72
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [2 x i32], ptr %73, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %77)
  br label %79

79:                                               ; preds = %70
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %6, align 4, !tbaa !5
  br label %67, !llvm.loop !14

82:                                               ; preds = %67
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %84

84:                                               ; preds = %82
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %5, align 4, !tbaa !5
  br label %63, !llvm.loop !15

87:                                               ; preds = %63
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %110, %87
  %90 = load i32, ptr %5, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 2
  br i1 %91, label %92, label %113

92:                                               ; preds = %89
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %105, %92
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = icmp slt i32 %94, 2
  br i1 %95, label %96, label %108

96:                                               ; preds = %93
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 %98
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [2 x i32], ptr %99, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %103)
  br label %105

105:                                              ; preds = %96
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %6, align 4, !tbaa !5
  br label %93, !llvm.loop !16

108:                                              ; preds = %93
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %110

110:                                              ; preds = %108
  %111 = load i32, ptr %5, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %5, align 4, !tbaa !5
  br label %89, !llvm.loop !17

113:                                              ; preds = %89
  %114 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %115 = getelementptr inbounds [2 x i32], ptr %114, i64 0, i64 0
  %116 = load i32, ptr %115, align 16, !tbaa !5
  %117 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %118 = getelementptr inbounds [2 x i32], ptr %117, i64 0, i64 1
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = add nsw i32 %116, %119
  %121 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %122 = getelementptr inbounds [2 x i32], ptr %121, i64 0, i64 0
  %123 = load i32, ptr %122, align 16, !tbaa !5
  %124 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %125 = getelementptr inbounds [2 x i32], ptr %124, i64 0, i64 1
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = add nsw i32 %123, %126
  %128 = mul nsw i32 %120, %127
  store i32 %128, ptr %7, align 4, !tbaa !5
  %129 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %130 = getelementptr inbounds [2 x i32], ptr %129, i64 0, i64 0
  %131 = load i32, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %133 = getelementptr inbounds [2 x i32], ptr %132, i64 0, i64 1
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = add nsw i32 %131, %134
  %136 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %137 = getelementptr inbounds [2 x i32], ptr %136, i64 0, i64 0
  %138 = load i32, ptr %137, align 16, !tbaa !5
  %139 = mul nsw i32 %135, %138
  store i32 %139, ptr %8, align 4, !tbaa !5
  %140 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %141 = getelementptr inbounds [2 x i32], ptr %140, i64 0, i64 0
  %142 = load i32, ptr %141, align 16, !tbaa !5
  %143 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %144 = getelementptr inbounds [2 x i32], ptr %143, i64 0, i64 1
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %147 = getelementptr inbounds [2 x i32], ptr %146, i64 0, i64 1
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = sub nsw i32 %145, %148
  %150 = mul nsw i32 %142, %149
  store i32 %150, ptr %9, align 4, !tbaa !5
  %151 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %152 = getelementptr inbounds [2 x i32], ptr %151, i64 0, i64 1
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %155 = getelementptr inbounds [2 x i32], ptr %154, i64 0, i64 0
  %156 = load i32, ptr %155, align 8, !tbaa !5
  %157 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %158 = getelementptr inbounds [2 x i32], ptr %157, i64 0, i64 0
  %159 = load i32, ptr %158, align 16, !tbaa !5
  %160 = sub nsw i32 %156, %159
  %161 = mul nsw i32 %153, %160
  store i32 %161, ptr %10, align 4, !tbaa !5
  %162 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %163 = getelementptr inbounds [2 x i32], ptr %162, i64 0, i64 0
  %164 = load i32, ptr %163, align 16, !tbaa !5
  %165 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %166 = getelementptr inbounds [2 x i32], ptr %165, i64 0, i64 1
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = add nsw i32 %164, %167
  %169 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %170 = getelementptr inbounds [2 x i32], ptr %169, i64 0, i64 1
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = mul nsw i32 %168, %171
  store i32 %172, ptr %11, align 4, !tbaa !5
  %173 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %174 = getelementptr inbounds [2 x i32], ptr %173, i64 0, i64 0
  %175 = load i32, ptr %174, align 8, !tbaa !5
  %176 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %177 = getelementptr inbounds [2 x i32], ptr %176, i64 0, i64 0
  %178 = load i32, ptr %177, align 16, !tbaa !5
  %179 = sub nsw i32 %175, %178
  %180 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %181 = getelementptr inbounds [2 x i32], ptr %180, i64 0, i64 0
  %182 = load i32, ptr %181, align 16, !tbaa !5
  %183 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %184 = getelementptr inbounds [2 x i32], ptr %183, i64 0, i64 1
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = add nsw i32 %182, %185
  %187 = mul nsw i32 %179, %186
  store i32 %187, ptr %12, align 4, !tbaa !5
  %188 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %189 = getelementptr inbounds [2 x i32], ptr %188, i64 0, i64 1
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %192 = getelementptr inbounds [2 x i32], ptr %191, i64 0, i64 1
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = sub nsw i32 %190, %193
  %195 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %196 = getelementptr inbounds [2 x i32], ptr %195, i64 0, i64 0
  %197 = load i32, ptr %196, align 8, !tbaa !5
  %198 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %199 = getelementptr inbounds [2 x i32], ptr %198, i64 0, i64 1
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = add nsw i32 %197, %200
  %202 = mul nsw i32 %194, %201
  store i32 %202, ptr %13, align 4, !tbaa !5
  %203 = load i32, ptr %7, align 4, !tbaa !5
  %204 = load i32, ptr %10, align 4, !tbaa !5
  %205 = add nsw i32 %203, %204
  %206 = load i32, ptr %11, align 4, !tbaa !5
  %207 = sub nsw i32 %205, %206
  %208 = load i32, ptr %13, align 4, !tbaa !5
  %209 = add nsw i32 %207, %208
  %210 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 0
  %211 = getelementptr inbounds [2 x i32], ptr %210, i64 0, i64 0
  store i32 %209, ptr %211, align 16, !tbaa !5
  %212 = load i32, ptr %9, align 4, !tbaa !5
  %213 = load i32, ptr %11, align 4, !tbaa !5
  %214 = add nsw i32 %212, %213
  %215 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 0
  %216 = getelementptr inbounds [2 x i32], ptr %215, i64 0, i64 1
  store i32 %214, ptr %216, align 4, !tbaa !5
  %217 = load i32, ptr %8, align 4, !tbaa !5
  %218 = load i32, ptr %10, align 4, !tbaa !5
  %219 = add nsw i32 %217, %218
  %220 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 1
  %221 = getelementptr inbounds [2 x i32], ptr %220, i64 0, i64 0
  store i32 %219, ptr %221, align 8, !tbaa !5
  %222 = load i32, ptr %7, align 4, !tbaa !5
  %223 = load i32, ptr %8, align 4, !tbaa !5
  %224 = sub nsw i32 %222, %223
  %225 = load i32, ptr %9, align 4, !tbaa !5
  %226 = add nsw i32 %224, %225
  %227 = load i32, ptr %12, align 4, !tbaa !5
  %228 = add nsw i32 %226, %227
  %229 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 1
  %230 = getelementptr inbounds [2 x i32], ptr %229, i64 0, i64 1
  store i32 %228, ptr %230, align 4, !tbaa !5
  %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %253, %113
  %233 = load i32, ptr %5, align 4, !tbaa !5
  %234 = icmp slt i32 %233, 2
  br i1 %234, label %235, label %256

235:                                              ; preds = %232
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %236

236:                                              ; preds = %248, %235
  %237 = load i32, ptr %6, align 4, !tbaa !5
  %238 = icmp slt i32 %237, 2
  br i1 %238, label %239, label %251

239:                                              ; preds = %236
  %240 = load i32, ptr %5, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 %241
  %243 = load i32, ptr %6, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [2 x i32], ptr %242, i64 0, i64 %244
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %246)
  br label %248

248:                                              ; preds = %239
  %249 = load i32, ptr %6, align 4, !tbaa !5
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %6, align 4, !tbaa !5
  br label %236, !llvm.loop !18

251:                                              ; preds = %236
  %252 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %253

253:                                              ; preds = %251
  %254 = load i32, ptr %5, align 4, !tbaa !5
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %5, align 4, !tbaa !5
  br label %232, !llvm.loop !19

256:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #3
  ret i32 0
}

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

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

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

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

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

!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/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 = distinct !{!18, !10}
!19 = distinct !{!19, !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"

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader51:
  %0 = alloca [2 x [2 x i32]], align 16
  %1 = alloca [2 x [2 x i32]], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %0) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #3
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %3 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %0)
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %4)
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %8)
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %12 = getelementptr inbounds i8, ptr %1, i64 4
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %12)
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %14)
  %16 = getelementptr inbounds i8, ptr %1, i64 12
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %16)
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %19 = load i32, ptr %0, align 16, !tbaa !5
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %19)
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %21)
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %24 = load i32, ptr %6, align 8, !tbaa !5
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %24)
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %26)
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %30 = load i32, ptr %1, align 16, !tbaa !5
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %30)
  %32 = load i32, ptr %12, align 4, !tbaa !5
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %32)
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %35 = load i32, ptr %14, align 8, !tbaa !5
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %35)
  %37 = load i32, ptr %16, align 4, !tbaa !5
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %37)
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %40 = load i32, ptr %0, align 16, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = add nsw i32 %41, %40
  %43 = load i32, ptr %1, align 16, !tbaa !5
  %44 = load i32, ptr %16, align 4, !tbaa !5
  %45 = add nsw i32 %44, %43
  %46 = mul nsw i32 %45, %42
  %47 = load i32, ptr %6, align 8, !tbaa !5
  %48 = add nsw i32 %47, %41
  %49 = mul nsw i32 %48, %43
  %50 = load i32, ptr %12, align 4, !tbaa !5
  %51 = sub nsw i32 %50, %44
  %52 = mul nsw i32 %51, %40
  %53 = load i32, ptr %14, align 8, !tbaa !5
  %54 = sub nsw i32 %53, %43
  %55 = mul nsw i32 %54, %41
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = add nsw i32 %56, %40
  %58 = mul nsw i32 %57, %44
  %59 = sub nsw i32 %47, %40
  %60 = add nsw i32 %50, %43
  %61 = mul nsw i32 %60, %59
  %62 = sub nsw i32 %56, %41
  %63 = add nsw i32 %53, %44
  %64 = mul nsw i32 %62, %63
  %65 = add nsw i32 %55, %46
  %66 = sub i32 %65, %58
  %67 = add nsw i32 %66, %64
  %68 = add nsw i32 %58, %52
  %69 = add nsw i32 %55, %49
  %70 = sub i32 %46, %49
  %71 = add nsw i32 %70, %52
  %72 = add nsw i32 %71, %61
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %67)
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %68)
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %69)
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %72)
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %0) #3
  ret i32 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; 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.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass