; LLVM IR from SanketSarmalkar/Numerical_Methods :: System_of_Equation (DirectMethod)

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [100 x [100 x double]], align 16
  %3 = alloca [100 x double], align 16
  %4 = alloca [100 x ptr], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 80000, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 100, i32 noundef 99)
  br label %9

9:                                                ; preds = %41, %0
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
  %11 = icmp eq i32 %10, 2
  br i1 %11, label %12, label %47

12:                                               ; preds = %9
  %13 = getelementptr inbounds [100 x [100 x double]], ptr %2, i64 0, i64 0
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z15get_coefficientPA100_dii(ptr noundef %13, i32 noundef %14, i32 noundef %15)
  %16 = getelementptr inbounds [100 x double], ptr %3, i64 0, i64 0
  %17 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z10get_vectorPdi(ptr noundef %16, i32 noundef %17)
  %18 = getelementptr inbounds [100 x [100 x double]], ptr %2, i64 0, i64 0
  %19 = getelementptr inbounds [100 x double], ptr %3, i64 0, i64 0
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = load i32, ptr %6, align 4, !tbaa !5
  call void @_Z9create_AbPA100_dPdii(ptr noundef %18, ptr noundef %19, i32 noundef %20, i32 noundef %21)
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %23 = getelementptr inbounds [100 x [100 x double]], ptr %2, i64 0, i64 0
  %24 = load i32, ptr %5, align 4, !tbaa !5
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  call void @_Z11show_matrixPA100_dii(ptr noundef %23, i32 noundef %24, i32 noundef %26)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %38, %12
  %28 = load i32, ptr %7, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 100
  br i1 %29, label %30, label %41

30:                                               ; preds = %27
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100 x [100 x double]], ptr %2, i64 0, i64 %32
  %34 = getelementptr inbounds [100 x double], ptr %33, i64 0, i64 0
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [100 x ptr], ptr %4, i64 0, i64 %36
  store ptr %34, ptr %37, align 8, !tbaa !9
  br label %38

38:                                               ; preds = %30
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %7, align 4, !tbaa !5
  br label %27, !llvm.loop !11

41:                                               ; preds = %27
  %42 = getelementptr inbounds [100 x ptr], ptr %4, i64 0, i64 0
  %43 = load i32, ptr %5, align 4, !tbaa !5
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  call void @_Z17guass_eliminationPPdii(ptr noundef %42, i32 noundef %43, i32 noundef %45)
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 100, i32 noundef 99)
  br label %9, !llvm.loop !13

47:                                               ; preds = %9
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 80000, ptr %2) #5
  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: mustprogress uwtable
declare dso_local void @_Z15get_coefficientPA100_dii(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10get_vectorPdi(ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9create_AbPA100_dPdii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11show_matrixPA100_dii(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17guass_eliminationPPdii(ptr noundef, i32 noundef, i32 noundef) #3

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [100 x [100 x double]], align 16
  %2 = alloca [100 x double], align 16
  %3 = alloca [100 x ptr], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %6 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 100, i32 noundef 99)
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %8 = icmp eq i32 %7, 2
  br i1 %8, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %9 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 0, i64 1>
  %10 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 2, i64 3>
  %11 = getelementptr inbounds i8, ptr %3, i64 16
  %12 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 4, i64 5>
  %13 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 6, i64 7>
  %14 = getelementptr inbounds i8, ptr %3, i64 32
  %15 = getelementptr inbounds i8, ptr %3, i64 48
  %16 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 8, i64 9>
  %17 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 10, i64 11>
  %18 = getelementptr inbounds i8, ptr %3, i64 64
  %19 = getelementptr inbounds i8, ptr %3, i64 80
  %20 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 12, i64 13>
  %21 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 14, i64 15>
  %22 = getelementptr inbounds i8, ptr %3, i64 96
  %23 = getelementptr inbounds i8, ptr %3, i64 112
  %24 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 16, i64 17>
  %25 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 18, i64 19>
  %26 = getelementptr inbounds i8, ptr %3, i64 128
  %27 = getelementptr inbounds i8, ptr %3, i64 144
  %28 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 20, i64 21>
  %29 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 22, i64 23>
  %30 = getelementptr inbounds i8, ptr %3, i64 160
  %31 = getelementptr inbounds i8, ptr %3, i64 176
  %32 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 24, i64 25>
  %33 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 26, i64 27>
  %34 = getelementptr inbounds i8, ptr %3, i64 192
  %35 = getelementptr inbounds i8, ptr %3, i64 208
  %36 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 28, i64 29>
  %37 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 30, i64 31>
  %38 = getelementptr inbounds i8, ptr %3, i64 224
  %39 = getelementptr inbounds i8, ptr %3, i64 240
  %40 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 32, i64 33>
  %41 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 34, i64 35>
  %42 = getelementptr inbounds i8, ptr %3, i64 256
  %43 = getelementptr inbounds i8, ptr %3, i64 272
  %44 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 36, i64 37>
  %45 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 38, i64 39>
  %46 = getelementptr inbounds i8, ptr %3, i64 288
  %47 = getelementptr inbounds i8, ptr %3, i64 304
  %48 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 40, i64 41>
  %49 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 42, i64 43>
  %50 = getelementptr inbounds i8, ptr %3, i64 320
  %51 = getelementptr inbounds i8, ptr %3, i64 336
  %52 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 44, i64 45>
  %53 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 46, i64 47>
  %54 = getelementptr inbounds i8, ptr %3, i64 352
  %55 = getelementptr inbounds i8, ptr %3, i64 368
  %56 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 48, i64 49>
  %57 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 50, i64 51>
  %58 = getelementptr inbounds i8, ptr %3, i64 384
  %59 = getelementptr inbounds i8, ptr %3, i64 400
  %60 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 52, i64 53>
  %61 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 54, i64 55>
  %62 = getelementptr inbounds i8, ptr %3, i64 416
  %63 = getelementptr inbounds i8, ptr %3, i64 432
  %64 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 56, i64 57>
  %65 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 58, i64 59>
  %66 = getelementptr inbounds i8, ptr %3, i64 448
  %67 = getelementptr inbounds i8, ptr %3, i64 464
  %68 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 60, i64 61>
  %69 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 62, i64 63>
  %70 = getelementptr inbounds i8, ptr %3, i64 480
  %71 = getelementptr inbounds i8, ptr %3, i64 496
  %72 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 64, i64 65>
  %73 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 66, i64 67>
  %74 = getelementptr inbounds i8, ptr %3, i64 512
  %75 = getelementptr inbounds i8, ptr %3, i64 528
  %76 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 68, i64 69>
  %77 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 70, i64 71>
  %78 = getelementptr inbounds i8, ptr %3, i64 544
  %79 = getelementptr inbounds i8, ptr %3, i64 560
  %80 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 72, i64 73>
  %81 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 74, i64 75>
  %82 = getelementptr inbounds i8, ptr %3, i64 576
  %83 = getelementptr inbounds i8, ptr %3, i64 592
  %84 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 76, i64 77>
  %85 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 78, i64 79>
  %86 = getelementptr inbounds i8, ptr %3, i64 608
  %87 = getelementptr inbounds i8, ptr %3, i64 624
  %88 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 80, i64 81>
  %89 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 82, i64 83>
  %90 = getelementptr inbounds i8, ptr %3, i64 640
  %91 = getelementptr inbounds i8, ptr %3, i64 656
  %92 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 84, i64 85>
  %93 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 86, i64 87>
  %94 = getelementptr inbounds i8, ptr %3, i64 672
  %95 = getelementptr inbounds i8, ptr %3, i64 688
  %96 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 88, i64 89>
  %97 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 90, i64 91>
  %98 = getelementptr inbounds i8, ptr %3, i64 704
  %99 = getelementptr inbounds i8, ptr %3, i64 720
  %100 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 92, i64 93>
  %101 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 94, i64 95>
  %102 = getelementptr inbounds i8, ptr %3, i64 736
  %103 = getelementptr inbounds i8, ptr %3, i64 752
  %104 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 96, i64 97>
  %105 = getelementptr inbounds [100 x [100 x double]], ptr %1, i64 0, <2 x i64> <i64 98, i64 99>
  %106 = getelementptr inbounds i8, ptr %3, i64 768
  %107 = getelementptr inbounds i8, ptr %3, i64 784
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %108 = load i32, ptr %4, align 4, !tbaa !5
  %109 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z15get_coefficientPA100_dii(ptr noundef nonnull %1, i32 noundef %108, i32 noundef %109)
  %110 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z10get_vectorPdi(ptr noundef nonnull %2, i32 noundef %110)
  %111 = load i32, ptr %4, align 4, !tbaa !5
  %112 = load i32, ptr %5, align 4, !tbaa !5
  call void @_Z9create_AbPA100_dPdii(ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef %111, i32 noundef %112)
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %114 = load i32, ptr %4, align 4, !tbaa !5
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  call void @_Z11show_matrixPA100_dii(ptr noundef nonnull %1, i32 noundef %114, i32 noundef %116)
  store <2 x ptr> %9, ptr %3, align 16, !tbaa !9
  store <2 x ptr> %10, ptr %11, align 16, !tbaa !9
  store <2 x ptr> %12, ptr %14, align 16, !tbaa !9
  store <2 x ptr> %13, ptr %15, align 16, !tbaa !9
  store <2 x ptr> %16, ptr %18, align 16, !tbaa !9
  store <2 x ptr> %17, ptr %19, align 16, !tbaa !9
  store <2 x ptr> %20, ptr %22, align 16, !tbaa !9
  store <2 x ptr> %21, ptr %23, align 16, !tbaa !9
  store <2 x ptr> %24, ptr %26, align 16, !tbaa !9
  store <2 x ptr> %25, ptr %27, align 16, !tbaa !9
  store <2 x ptr> %28, ptr %30, align 16, !tbaa !9
  store <2 x ptr> %29, ptr %31, align 16, !tbaa !9
  store <2 x ptr> %32, ptr %34, align 16, !tbaa !9
  store <2 x ptr> %33, ptr %35, align 16, !tbaa !9
  store <2 x ptr> %36, ptr %38, align 16, !tbaa !9
  store <2 x ptr> %37, ptr %39, align 16, !tbaa !9
  store <2 x ptr> %40, ptr %42, align 16, !tbaa !9
  store <2 x ptr> %41, ptr %43, align 16, !tbaa !9
  store <2 x ptr> %44, ptr %46, align 16, !tbaa !9
  store <2 x ptr> %45, ptr %47, align 16, !tbaa !9
  store <2 x ptr> %48, ptr %50, align 16, !tbaa !9
  store <2 x ptr> %49, ptr %51, align 16, !tbaa !9
  store <2 x ptr> %52, ptr %54, align 16, !tbaa !9
  store <2 x ptr> %53, ptr %55, align 16, !tbaa !9
  store <2 x ptr> %56, ptr %58, align 16, !tbaa !9
  store <2 x ptr> %57, ptr %59, align 16, !tbaa !9
  store <2 x ptr> %60, ptr %62, align 16, !tbaa !9
  store <2 x ptr> %61, ptr %63, align 16, !tbaa !9
  store <2 x ptr> %64, ptr %66, align 16, !tbaa !9
  store <2 x ptr> %65, ptr %67, align 16, !tbaa !9
  store <2 x ptr> %68, ptr %70, align 16, !tbaa !9
  store <2 x ptr> %69, ptr %71, align 16, !tbaa !9
  store <2 x ptr> %72, ptr %74, align 16, !tbaa !9
  store <2 x ptr> %73, ptr %75, align 16, !tbaa !9
  store <2 x ptr> %76, ptr %78, align 16, !tbaa !9
  store <2 x ptr> %77, ptr %79, align 16, !tbaa !9
  store <2 x ptr> %80, ptr %82, align 16, !tbaa !9
  store <2 x ptr> %81, ptr %83, align 16, !tbaa !9
  store <2 x ptr> %84, ptr %86, align 16, !tbaa !9
  store <2 x ptr> %85, ptr %87, align 16, !tbaa !9
  store <2 x ptr> %88, ptr %90, align 16, !tbaa !9
  store <2 x ptr> %89, ptr %91, align 16, !tbaa !9
  store <2 x ptr> %92, ptr %94, align 16, !tbaa !9
  store <2 x ptr> %93, ptr %95, align 16, !tbaa !9
  store <2 x ptr> %96, ptr %98, align 16, !tbaa !9
  store <2 x ptr> %97, ptr %99, align 16, !tbaa !9
  store <2 x ptr> %100, ptr %102, align 16, !tbaa !9
  store <2 x ptr> %101, ptr %103, align 16, !tbaa !9
  store <2 x ptr> %104, ptr %106, align 16, !tbaa !9
  store <2 x ptr> %105, ptr %107, align 16, !tbaa !9
  %117 = load i32, ptr %4, align 4, !tbaa !5
  %118 = load i32, ptr %5, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  call void @_Z17guass_eliminationPPdii(ptr noundef nonnull %3, i32 noundef %117, i32 noundef %119)
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 100, i32 noundef 99)
  %121 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %122 = icmp eq i32 %121, 2
  br i1 %122, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %0
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %1) #5
  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 uwtable
declare dso_local void @_Z15get_coefficientPA100_dii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10get_vectorPdi(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9create_AbPA100_dPdii(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11show_matrixPA100_dii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z17guass_eliminationPPdii(ptr noundef, i32 noundef, i32 noundef) 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass