; LLVM IR from NishkarshRaj/Design-and-Analysis-of-Algorithms :: Divide And Conquer (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
@.str.6 = external hidden unnamed_addr constant [34 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
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca float, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %37, %0
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 2
  br i1 %20, label %21, label %40

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

22:                                               ; preds = %33, %21
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = icmp slt i32 %23, 2
  br i1 %24, label %25, label %36

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

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

36:                                               ; preds = %22
  br label %37

37:                                               ; preds = %36
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %5, align 4, !tbaa !5
  br label %18, !llvm.loop !11

40:                                               ; preds = %18
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %61, %40
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 2
  br i1 %44, label %45, label %64

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

46:                                               ; preds = %57, %45
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = icmp slt i32 %47, 2
  br i1 %48, label %49, label %60

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

57:                                               ; preds = %49
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %6, align 4, !tbaa !5
  br label %46, !llvm.loop !12

60:                                               ; preds = %46
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %5, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %5, align 4, !tbaa !5
  br label %42, !llvm.loop !13

64:                                               ; preds = %42
  %65 = call i64 @clock() #4
  store i64 %65, ptr %14, align 8, !tbaa !14
  %66 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %67 = getelementptr inbounds [2 x i32], ptr %66, i64 0, i64 0
  %68 = load i32, ptr %67, align 16, !tbaa !5
  %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 1
  %71 = load i32, ptr %70, align 4, !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 = sub 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 0
  %78 = getelementptr inbounds [2 x i32], ptr %77, i64 0, i64 0
  %79 = load i32, ptr %78, align 16, !tbaa !5
  %80 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %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 1
  %85 = getelementptr inbounds [2 x i32], ptr %84, i64 0, i64 1
  %86 = load i32, ptr %85, align 4, !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 1
  %89 = getelementptr inbounds [2 x i32], ptr %88, i64 0, i64 0
  %90 = load i32, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %92 = getelementptr inbounds [2 x i32], ptr %91, i64 0, i64 1
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = add nsw i32 %90, %93
  %95 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %96 = getelementptr inbounds [2 x i32], ptr %95, i64 0, i64 0
  %97 = load i32, ptr %96, align 16, !tbaa !5
  %98 = mul nsw i32 %94, %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 1
  %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 0
  %118 = getelementptr inbounds [2 x i32], ptr %117, i64 0, i64 0
  %119 = load i32, ptr %118, align 16, !tbaa !5
  %120 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %121 = getelementptr inbounds [2 x i32], ptr %120, i64 0, i64 1
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = add nsw i32 %119, %122
  %124 = mul nsw i32 %116, %123
  store i32 %124, ptr %11, align 4, !tbaa !5
  %125 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 0
  %126 = getelementptr inbounds [2 x i32], ptr %125, i64 0, i64 1
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = getelementptr inbounds [2 x [2 x i32]], ptr %2, i64 0, i64 1
  %129 = getelementptr inbounds [2 x i32], ptr %128, i64 0, i64 1
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = sub nsw i32 %127, %130
  %132 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %133 = getelementptr inbounds [2 x i32], ptr %132, i64 0, i64 0
  %134 = load i32, ptr %133, align 8, !tbaa !5
  %135 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 1
  %136 = getelementptr inbounds [2 x i32], ptr %135, i64 0, i64 1
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = add nsw i32 %134, %137
  %139 = mul nsw i32 %131, %138
  store i32 %139, ptr %12, 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 %2, 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 = sub nsw i32 %142, %145
  %147 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %148 = getelementptr inbounds [2 x i32], ptr %147, i64 0, i64 0
  %149 = load i32, ptr %148, align 16, !tbaa !5
  %150 = getelementptr inbounds [2 x [2 x i32]], ptr %3, i64 0, i64 0
  %151 = getelementptr inbounds [2 x i32], ptr %150, i64 0, i64 1
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = add nsw i32 %149, %152
  %154 = mul nsw i32 %146, %153
  store i32 %154, ptr %13, align 4, !tbaa !5
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = add nsw i32 %155, %156
  %158 = load i32, ptr %8, align 4, !tbaa !5
  %159 = sub nsw i32 %157, %158
  %160 = load i32, ptr %12, align 4, !tbaa !5
  %161 = add nsw i32 %159, %160
  %162 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 0
  %163 = getelementptr inbounds [2 x i32], ptr %162, i64 0, i64 0
  store i32 %161, ptr %163, align 16, !tbaa !5
  %164 = load i32, ptr %7, align 4, !tbaa !5
  %165 = load i32, ptr %8, align 4, !tbaa !5
  %166 = add nsw i32 %164, %165
  %167 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 0
  %168 = getelementptr inbounds [2 x i32], ptr %167, i64 0, i64 1
  store i32 %166, ptr %168, align 4, !tbaa !5
  %169 = load i32, ptr %9, align 4, !tbaa !5
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = add nsw i32 %169, %170
  %172 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 1
  %173 = getelementptr inbounds [2 x i32], ptr %172, i64 0, i64 0
  store i32 %171, ptr %173, align 8, !tbaa !5
  %174 = load i32, ptr %7, align 4, !tbaa !5
  %175 = load i32, ptr %11, align 4, !tbaa !5
  %176 = add nsw i32 %174, %175
  %177 = load i32, ptr %9, align 4, !tbaa !5
  %178 = sub nsw i32 %176, %177
  %179 = load i32, ptr %13, align 4, !tbaa !5
  %180 = sub nsw i32 %178, %179
  %181 = getelementptr inbounds [2 x [2 x i32]], ptr %4, i64 0, i64 1
  %182 = getelementptr inbounds [2 x i32], ptr %181, i64 0, i64 1
  store i32 %180, ptr %182, align 4, !tbaa !5
  %183 = call i64 @clock() #4
  store i64 %183, ptr %15, align 8, !tbaa !14
  %184 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %206, %64
  %186 = load i32, ptr %5, align 4, !tbaa !5
  %187 = icmp slt i32 %186, 2
  br i1 %187, label %188, label %209

188:                                              ; preds = %185
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %201, %188
  %190 = load i32, ptr %6, align 4, !tbaa !5
  %191 = icmp slt i32 %190, 2
  br i1 %191, label %192, label %204

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

201:                                              ; preds = %192
  %202 = load i32, ptr %6, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %6, align 4, !tbaa !5
  br label %189, !llvm.loop !16

204:                                              ; preds = %189
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %206

206:                                              ; preds = %204
  %207 = load i32, ptr %5, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %5, align 4, !tbaa !5
  br label %185, !llvm.loop !17

209:                                              ; preds = %185
  %210 = load i64, ptr %15, align 8, !tbaa !14
  %211 = sitofp i64 %210 to float
  %212 = load i64, ptr %14, align 8, !tbaa !14
  %213 = sdiv i64 %212, 1000000
  %214 = sitofp i64 %213 to float
  %215 = fsub float %211, %214
  store float %215, ptr %16, align 4, !tbaa !18
  %216 = load float, ptr %16, align 4, !tbaa !18
  %217 = fpext float %216 to double
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %217)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #4
  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: nounwind
declare i64 @clock() #3

; 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader39:
  %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) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #4
  %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 i64 @clock() #4
  %19 = load i32, ptr %0, align 16, !tbaa !5
  %20 = load i32, ptr %12, align 4, !tbaa !5
  %21 = load i32, ptr %16, align 4, !tbaa !5
  %22 = sub nsw i32 %20, %21
  %23 = mul nsw i32 %22, %19
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = add nsw i32 %24, %19
  %26 = mul nsw i32 %25, %21
  %27 = load i32, ptr %6, align 8, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = add nsw i32 %28, %27
  %30 = load i32, ptr %1, align 16, !tbaa !5
  %31 = mul nsw i32 %29, %30
  %32 = load i32, ptr %14, align 8, !tbaa !5
  %33 = sub nsw i32 %32, %30
  %34 = mul nsw i32 %33, %28
  %35 = add nsw i32 %28, %19
  %36 = add nsw i32 %30, %21
  %37 = mul nsw i32 %36, %35
  %38 = sub nsw i32 %24, %28
  %39 = add nsw i32 %32, %21
  %40 = mul nsw i32 %39, %38
  %.neg = sub i32 %27, %19
  %41 = add nsw i32 %30, %20
  %.neg35 = mul i32 %41, %.neg
  %42 = sub i32 %37, %26
  %43 = add i32 %42, %34
  %44 = add nsw i32 %43, %40
  %45 = add nsw i32 %26, %23
  %46 = add nsw i32 %34, %31
  %47 = sub i32 %23, %31
  %48 = add i32 %47, %37
  %49 = add i32 %48, %.neg35
  %50 = call i64 @clock() #4
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %44)
  %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.5)
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %46)
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %49)
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %58 = sitofp i64 %50 to float
  %59 = sdiv i64 %18, 1000000
  %60 = sitofp i64 %59 to float
  %61 = fsub float %58, %60
  %62 = fpext float %61 to double
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %62)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %0) #4
  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: nounwind
declare i64 @clock() local_unnamed_addr #3

; Function Attrs: mustprogress 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 = { 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!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