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

; 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 [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 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

; 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 = 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 %3, i64 0, i64 0
  %66 = getelementptr inbounds [2 x i32], ptr %65, i64 0, i64 1
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %69 = getelementptr inbounds [2 x i32], ptr %68, i64 0, i64 1
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = sub nsw i32 %67, %70
  %72 = mul nsw i32 %64, %71
  store i32 %72, ptr %7, align 4, !tbaa !5
  %73 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %74 = getelementptr inbounds [2 x i32], ptr %73, i64 0, i64 0
  %75 = load i32, ptr %74, align 16, !tbaa !5
  %76 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %77 = getelementptr inbounds [2 x i32], ptr %76, i64 0, i64 1
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %75, %78
  %80 = getelementptr inbounds [2 x [2 x i32]], ptr %3, 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 = mul nsw i32 %79, %82
  store i32 %83, ptr %8, align 4, !tbaa !5
  %84 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %85 = getelementptr inbounds [2 x i32], ptr %84, i64 0, i64 0
  %86 = load i32, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %88 = getelementptr inbounds [2 x i32], ptr %87, i64 0, i64 1
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = add nsw i32 %86, %89
  %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 0
  %93 = load i32, ptr %92, align 16, !tbaa !5
  %94 = mul nsw i32 %90, %93
  store i32 %94, ptr %9, align 4, !tbaa !5
  %95 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %96 = getelementptr inbounds [2 x i32], ptr %95, i64 0, i64 1
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %99 = getelementptr inbounds [2 x i32], ptr %98, i64 0, i64 0
  %100 = load i32, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %102 = getelementptr inbounds [2 x i32], ptr %101, i64 0, i64 0
  %103 = load i32, ptr %102, align 16, !tbaa !5
  %104 = sub nsw i32 %100, %103
  %105 = mul nsw i32 %97, %104
  store i32 %105, ptr %10, align 4, !tbaa !5
  %106 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %107 = getelementptr inbounds [2 x i32], ptr %106, i64 0, i64 0
  %108 = load i32, ptr %107, align 16, !tbaa !5
  %109 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %110 = getelementptr inbounds [2 x i32], ptr %109, i64 0, i64 1
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = add nsw i32 %108, %111
  %113 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %114 = getelementptr inbounds [2 x i32], ptr %113, i64 0, i64 0
  %115 = load i32, ptr %114, align 16, !tbaa !5
  %116 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %117 = getelementptr inbounds [2 x i32], ptr %116, i64 0, i64 1
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = add nsw i32 %115, %118
  %120 = mul nsw i32 %112, %119
  store i32 %120, ptr %11, align 4, !tbaa !5
  %121 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %122 = getelementptr inbounds [2 x i32], ptr %121, i64 0, i64 1
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = getelementptr inbounds [2 x [2 x i32]], ptr %2, 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 = sub nsw i32 %123, %126
  %128 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %129 = getelementptr inbounds [2 x i32], ptr %128, i64 0, i64 0
  %130 = load i32, ptr %129, align 8, !tbaa !5
  %131 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %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 0
  %138 = load i32, ptr %137, align 16, !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 0
  %141 = load i32, ptr %140, align 8, !tbaa !5
  %142 = sub nsw i32 %138, %141
  %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 0
  %145 = load i32, ptr %144, align 16, !tbaa !5
  %146 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %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 %11, align 4, !tbaa !5
  %152 = load i32, ptr %10, align 4, !tbaa !5
  %153 = add nsw i32 %151, %152
  %154 = load i32, ptr %8, align 4, !tbaa !5
  %155 = sub nsw i32 %153, %154
  %156 = load i32, ptr %12, 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 %7, align 4, !tbaa !5
  %161 = load i32, ptr %8, 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 %9, 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 %11, align 4, !tbaa !5
  %172 = add nsw i32 %170, %171
  %173 = load i32, ptr %9, align 4, !tbaa !5
  %174 = sub nsw i32 %172, %173
  %175 = load i32, ptr %13, align 4, !tbaa !5
  %176 = sub 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
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %184

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

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

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

199:                                              ; preds = %184
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %201

201:                                              ; preds = %199
  %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 [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 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

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader37:
  %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 = load i32, ptr %0, align 16, !tbaa !5
  %19 = load i32, ptr %12, align 4, !tbaa !5
  %20 = load i32, ptr %16, align 4, !tbaa !5
  %21 = sub nsw i32 %19, %20
  %22 = mul nsw i32 %21, %18
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = add nsw i32 %23, %18
  %25 = mul nsw i32 %24, %20
  %26 = load i32, ptr %6, align 8, !tbaa !5
  %27 = load i32, ptr %8, align 4, !tbaa !5
  %28 = add nsw i32 %27, %26
  %29 = load i32, ptr %1, align 16, !tbaa !5
  %30 = mul nsw i32 %28, %29
  %31 = load i32, ptr %14, align 8, !tbaa !5
  %32 = sub nsw i32 %31, %29
  %33 = mul nsw i32 %32, %27
  %34 = add nsw i32 %27, %18
  %35 = add nsw i32 %29, %20
  %36 = mul nsw i32 %35, %34
  %37 = sub nsw i32 %23, %27
  %38 = add nsw i32 %31, %20
  %39 = mul nsw i32 %38, %37
  %.neg = sub i32 %26, %18
  %40 = add nsw i32 %29, %19
  %.neg33 = mul i32 %40, %.neg
  %41 = sub i32 %36, %25
  %42 = add i32 %41, %33
  %43 = add nsw i32 %42, %39
  %44 = add nsw i32 %25, %22
  %45 = add nsw i32 %33, %30
  %46 = sub i32 %22, %30
  %47 = add i32 %46, %36
  %48 = add i32 %47, %.neg33
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %43)
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %44)
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %45)
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %48)
  %55 = 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,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass