; LLVM IR from NishkarshRaj/Design-and-Analysis-of-Algorithms :: matrix (strassens)

; 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 [48 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 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 sle 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 sle 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 sle 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 sle 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 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %63 = getelementptr inbounds [2 x i32], ptr %62, i64 0, i64 0
  %64 = load i32, ptr %63, align 16, !tbaa !5
  %65 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %66 = getelementptr inbounds [2 x i32], ptr %65, i64 0, i64 1
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %64, %67
  %69 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %70 = getelementptr inbounds [2 x i32], ptr %69, i64 0, i64 0
  %71 = load i32, ptr %70, align 16, !tbaa !5
  %72 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %73 = getelementptr inbounds [2 x i32], ptr %72, i64 0, i64 1
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = add nsw i32 %71, %74
  %76 = mul nsw i32 %68, %75
  store i32 %76, ptr %7, align 4, !tbaa !5
  %77 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %78 = getelementptr inbounds [2 x i32], ptr %77, i64 0, i64 0
  %79 = load i32, ptr %78, align 8, !tbaa !5
  %80 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %81 = getelementptr inbounds [2 x i32], ptr %80, i64 0, i64 1
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = add nsw i32 %79, %82
  %84 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %85 = getelementptr inbounds [2 x i32], ptr %84, i64 0, i64 0
  %86 = load i32, ptr %85, align 16, !tbaa !5
  %87 = mul nsw i32 %83, %86
  store i32 %87, ptr %8, align 4, !tbaa !5
  %88 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %89 = getelementptr inbounds [2 x i32], ptr %88, i64 0, i64 0
  %90 = load i32, ptr %89, align 16, !tbaa !5
  %91 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %92 = getelementptr inbounds [2 x i32], ptr %91, i64 0, i64 1
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %95 = getelementptr inbounds [2 x i32], ptr %94, i64 0, i64 1
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = sub nsw i32 %93, %96
  %98 = mul nsw i32 %90, %97
  store i32 %98, ptr %9, align 4, !tbaa !5
  %99 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %100 = getelementptr inbounds [2 x i32], ptr %99, i64 0, i64 1
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %103 = getelementptr inbounds [2 x i32], ptr %102, i64 0, i64 0
  %104 = load i32, ptr %103, align 8, !tbaa !5
  %105 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %106 = getelementptr inbounds [2 x i32], ptr %105, i64 0, i64 0
  %107 = load i32, ptr %106, align 16, !tbaa !5
  %108 = sub nsw i32 %104, %107
  %109 = mul nsw i32 %101, %108
  store i32 %109, ptr %10, align 4, !tbaa !5
  %110 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %111 = getelementptr inbounds [2 x i32], ptr %110, i64 0, i64 0
  %112 = load i32, ptr %111, align 16, !tbaa !5
  %113 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %114 = getelementptr inbounds [2 x i32], ptr %113, i64 0, i64 1
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = add nsw i32 %112, %115
  %117 = getelementptr inbounds [2 x [2 x i32]], ptr %3, 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 = mul nsw i32 %116, %119
  store i32 %120, ptr %11, align 4, !tbaa !5
  %121 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %122 = getelementptr inbounds [2 x i32], ptr %121, i64 0, i64 0
  %123 = load i32, ptr %122, align 8, !tbaa !5
  %124 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %125 = getelementptr inbounds [2 x i32], ptr %124, i64 0, i64 0
  %126 = load i32, ptr %125, align 16, !tbaa !5
  %127 = sub nsw i32 %123, %126
  %128 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %129 = getelementptr inbounds [2 x i32], ptr %128, i64 0, i64 0
  %130 = load i32, ptr %129, align 16, !tbaa !5
  %131 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %132 = getelementptr inbounds [2 x i32], ptr %131, i64 0, i64 1
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = add nsw i32 %130, %133
  %135 = mul nsw i32 %127, %134
  store i32 %135, ptr %12, align 4, !tbaa !5
  %136 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %137 = getelementptr inbounds [2 x i32], ptr %136, i64 0, i64 1
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %140 = getelementptr inbounds [2 x i32], ptr %139, i64 0, i64 1
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = sub nsw i32 %138, %141
  %143 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %144 = getelementptr inbounds [2 x i32], ptr %143, i64 0, i64 0
  %145 = load i32, ptr %144, align 8, !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 = add nsw i32 %145, %148
  %150 = mul nsw i32 %142, %149
  store i32 %150, ptr %13, align 4, !tbaa !5
  %151 = load i32, ptr %7, align 4, !tbaa !5
  %152 = load i32, ptr %10, align 4, !tbaa !5
  %153 = add nsw i32 %151, %152
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = sub nsw i32 %153, %154
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = add nsw i32 %155, %156
  %158 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 0
  %159 = getelementptr inbounds [2 x i32], ptr %158, i64 0, i64 0
  store i32 %157, ptr %159, align 16, !tbaa !5
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = load i32, ptr %11, align 4, !tbaa !5
  %162 = add nsw i32 %160, %161
  %163 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 0
  %164 = getelementptr inbounds [2 x i32], ptr %163, i64 0, i64 1
  store i32 %162, ptr %164, align 4, !tbaa !5
  %165 = load i32, ptr %8, align 4, !tbaa !5
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = add nsw i32 %165, %166
  %168 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 1
  %169 = getelementptr inbounds [2 x i32], ptr %168, i64 0, i64 0
  store i32 %167, ptr %169, align 8, !tbaa !5
  %170 = load i32, ptr %7, align 4, !tbaa !5
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = sub nsw i32 %170, %171
  %173 = load i32, ptr %9, align 4, !tbaa !5
  %174 = add nsw i32 %172, %173
  %175 = load i32, ptr %12, align 4, !tbaa !5
  %176 = add nsw i32 %174, %175
  %177 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 1
  %178 = getelementptr inbounds [2 x i32], ptr %177, i64 0, i64 1
  store i32 %176, ptr %178, align 4, !tbaa !5
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %180

180:                                              ; preds = %201, %61
  %181 = load i32, ptr %5, align 4, !tbaa !5
  %182 = icmp slt i32 %181, 2
  br i1 %182, label %183, label %204

183:                                              ; preds = %180
  %184 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %197, %183
  %186 = load i32, ptr %6, align 4, !tbaa !5
  %187 = icmp slt i32 %186, 2
  br i1 %187, label %188, label %200

188:                                              ; preds = %185
  %189 = load i32, ptr %5, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 %190
  %192 = load i32, ptr %6, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [2 x i32], ptr %191, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %195)
  br label %197

197:                                              ; preds = %188
  %198 = load i32, ptr %6, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %6, align 4, !tbaa !5
  br label %185, !llvm.loop !14

200:                                              ; preds = %185
  br label %201

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

204:                                              ; preds = %180
  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}


; 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 [48 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader34:
  %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 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6)
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %9)
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %11)
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %11)
  %14 = getelementptr inbounds i8, ptr %0, i64 20
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %14)
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %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.2)
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %20 = getelementptr inbounds i8, ptr %1, i64 4
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %20)
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %22)
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %22)
  %25 = getelementptr inbounds i8, ptr %1, i64 12
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %25)
  %27 = getelementptr inbounds i8, ptr %1, i64 16
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %27)
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %27)
  %30 = getelementptr inbounds i8, ptr %1, i64 20
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %30)
  %32 = getelementptr inbounds i8, ptr %1, i64 24
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %32)
  %34 = load i32, ptr %0, align 16, !tbaa !5
  %35 = load i32, ptr %9, align 4, !tbaa !5
  %36 = add nsw i32 %35, %34
  %37 = load i32, ptr %1, align 16, !tbaa !5
  %38 = load i32, ptr %25, align 4, !tbaa !5
  %39 = add nsw i32 %38, %37
  %40 = mul nsw i32 %39, %36
  %41 = load i32, ptr %6, align 8, !tbaa !5
  %42 = add nsw i32 %41, %35
  %43 = mul nsw i32 %42, %37
  %44 = load i32, ptr %20, align 4, !tbaa !5
  %45 = sub nsw i32 %44, %38
  %46 = mul nsw i32 %45, %34
  %47 = load i32, ptr %22, align 8, !tbaa !5
  %48 = sub nsw i32 %47, %37
  %49 = mul nsw i32 %48, %35
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = add nsw i32 %50, %34
  %52 = mul nsw i32 %51, %38
  %53 = sub nsw i32 %41, %34
  %54 = add nsw i32 %44, %37
  %55 = mul nsw i32 %54, %53
  %56 = sub nsw i32 %50, %35
  %57 = add nsw i32 %47, %38
  %58 = mul nsw i32 %56, %57
  %59 = add nsw i32 %49, %40
  %60 = sub i32 %59, %52
  %61 = add nsw i32 %60, %58
  %62 = add nsw i32 %52, %46
  %63 = add nsw i32 %49, %43
  %64 = sub i32 %40, %43
  %65 = add nsw i32 %64, %46
  %66 = add nsw i32 %65, %55
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %61)
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %62)
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %63)
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %66)
  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,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass