; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/BLAS/TESTING (dblat1)

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

%struct.anon = type { i64, i64, i64, i64, i64, i64 }
%struct.cilist = type { i64, i64, i64, ptr, i64 }

@combla_ = external dso_local global %struct.anon, align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@c__1 = external hidden global i64, align 8
@c__9 = external hidden global i64, align 8
@check1_.sa = external hidden global [10 x double], align 16
@check1_.dv = external hidden global [80 x double], align 16
@check1_.dtrue1 = external hidden global [5 x double], align 16
@check1_.dtrue3 = external hidden global [5 x double], align 16
@check1_.dtrue5 = external hidden global [80 x double], align 16
@check1_.itrue2 = external hidden global [5 x i64], align 16
@check1_.io___31 = external hidden global %struct.cilist, align 8
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @check1_(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca double, align 8
  %5 = alloca i64, align 8
  %6 = alloca [8 x double], align 16
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca [1 x double], align 8
  %10 = alloca [8 x double], align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #3
  store i64 1, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2), align 8, !tbaa !9
  br label %11

11:                                               ; preds = %145, %1
  %12 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2), align 8, !tbaa !9
  %13 = icmp sle i64 %12, 2
  br i1 %13, label %14, label %148

14:                                               ; preds = %11
  store i64 1, ptr %7, align 8, !tbaa !12
  br label %15

15:                                               ; preds = %141, %14
  %16 = load i64, ptr %7, align 8, !tbaa !12
  %17 = icmp sle i64 %16, 5
  br i1 %17, label %18, label %144

18:                                               ; preds = %15
  %19 = load i64, ptr %7, align 8, !tbaa !12
  %20 = sub nsw i64 %19, 1
  store i64 %20, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 1), align 8, !tbaa !13
  %21 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 1), align 8, !tbaa !13
  %22 = icmp sge i64 %21, 1
  br i1 %22, label %23, label %25

23:                                               ; preds = %18
  %24 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 1), align 8, !tbaa !13
  br label %26

25:                                               ; preds = %18
  br label %26

26:                                               ; preds = %25, %23
  %27 = phi i64 [ %24, %23 ], [ 1, %25 ]
  %28 = shl i64 %27, 1
  store i64 %28, ptr %8, align 8, !tbaa !12
  %29 = load i64, ptr %8, align 8, !tbaa !12
  store i64 %29, ptr %3, align 8, !tbaa !12
  store i64 1, ptr %5, align 8, !tbaa !12
  br label %30

30:                                               ; preds = %48, %26
  %31 = load i64, ptr %5, align 8, !tbaa !12
  %32 = load i64, ptr %3, align 8, !tbaa !12
  %33 = icmp sle i64 %31, %32
  br i1 %33, label %34, label %51

34:                                               ; preds = %30
  %35 = load i64, ptr %5, align 8, !tbaa !12
  %36 = load i64, ptr %7, align 8, !tbaa !12
  %37 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2), align 8, !tbaa !9
  %38 = mul nsw i64 %37, 5
  %39 = add nsw i64 %36, %38
  %40 = shl i64 %39, 3
  %41 = add nsw i64 %35, %40
  %42 = sub nsw i64 %41, 49
  %43 = getelementptr inbounds [80 x double], ptr @check1_.dv, i64 0, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !14
  %45 = load i64, ptr %5, align 8, !tbaa !12
  %46 = sub nsw i64 %45, 1
  %47 = getelementptr inbounds [8 x double], ptr %6, i64 0, i64 %46
  store double %44, ptr %47, align 8, !tbaa !14
  br label %48

48:                                               ; preds = %34
  %49 = load i64, ptr %5, align 8, !tbaa !12
  %50 = add nsw i64 %49, 1
  store i64 %50, ptr %5, align 8, !tbaa !12
  br label %30, !llvm.loop !16

51:                                               ; preds = %30
  %52 = load i64, ptr @combla_, align 8, !tbaa !18
  %53 = icmp eq i64 %52, 7
  br i1 %53, label %54, label %66

54:                                               ; preds = %51
  %55 = load i64, ptr %7, align 8, !tbaa !12
  %56 = sub nsw i64 %55, 1
  %57 = getelementptr inbounds [5 x double], ptr @check1_.dtrue1, i64 0, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !14
  %59 = getelementptr inbounds [1 x double], ptr %9, i64 0, i64 0
  store double %58, ptr %59, align 8, !tbaa !14
  %60 = getelementptr inbounds [8 x double], ptr %6, i64 0, i64 0
  %61 = call double @f2c_dnrm2(ptr noundef getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 1), ptr noundef %60, ptr noundef getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2))
  store double %61, ptr %4, align 8, !tbaa !14
  %62 = getelementptr inbounds [1 x double], ptr %9, i64 0, i64 0
  %63 = getelementptr inbounds [1 x double], ptr %9, i64 0, i64 0
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = call i32 @stest1_(ptr noundef %4, ptr noundef %62, ptr noundef %63, ptr noundef %64)
  br label %140

66:                                               ; preds = %51
  %67 = load i64, ptr @combla_, align 8, !tbaa !18
  %68 = icmp eq i64 %67, 8
  br i1 %68, label %69, label %81

69:                                               ; preds = %66
  %70 = load i64, ptr %7, align 8, !tbaa !12
  %71 = sub nsw i64 %70, 1
  %72 = getelementptr inbounds [5 x double], ptr @check1_.dtrue3, i64 0, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !14
  %74 = getelementptr inbounds [1 x double], ptr %9, i64 0, i64 0
  store double %73, ptr %74, align 8, !tbaa !14
  %75 = getelementptr inbounds [8 x double], ptr %6, i64 0, i64 0
  %76 = call double @f2c_dasum(ptr noundef getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 1), ptr noundef %75, ptr noundef getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2))
  store double %76, ptr %4, align 8, !tbaa !14
  %77 = getelementptr inbounds [1 x double], ptr %9, i64 0, i64 0
  %78 = getelementptr inbounds [1 x double], ptr %9, i64 0, i64 0
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = call i32 @stest1_(ptr noundef %4, ptr noundef %77, ptr noundef %78, ptr noundef %79)
  br label %139

81:                                               ; preds = %66
  %82 = load i64, ptr @combla_, align 8, !tbaa !18
  %83 = icmp eq i64 %82, 9
  br i1 %83, label %84, label %122

84:                                               ; preds = %81
  %85 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2), align 8, !tbaa !9
  %86 = sub nsw i64 %85, 1
  %87 = mul nsw i64 %86, 5
  %88 = load i64, ptr %7, align 8, !tbaa !12
  %89 = add nsw i64 %87, %88
  %90 = sub nsw i64 %89, 1
  %91 = getelementptr inbounds [10 x double], ptr @check1_.sa, i64 0, i64 %90
  %92 = getelementptr inbounds [8 x double], ptr %6, i64 0, i64 0
  %93 = call i32 @f2c_dscal(ptr noundef getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 1), ptr noundef %91, ptr noundef %92, ptr noundef getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2))
  %94 = load i64, ptr %8, align 8, !tbaa !12
  store i64 %94, ptr %3, align 8, !tbaa !12
  store i64 1, ptr %5, align 8, !tbaa !12
  br label %95

95:                                               ; preds = %113, %84
  %96 = load i64, ptr %5, align 8, !tbaa !12
  %97 = load i64, ptr %3, align 8, !tbaa !12
  %98 = icmp sle i64 %96, %97
  br i1 %98, label %99, label %116

99:                                               ; preds = %95
  %100 = load i64, ptr %5, align 8, !tbaa !12
  %101 = load i64, ptr %7, align 8, !tbaa !12
  %102 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2), align 8, !tbaa !9
  %103 = mul nsw i64 %102, 5
  %104 = add nsw i64 %101, %103
  %105 = shl i64 %104, 3
  %106 = add nsw i64 %100, %105
  %107 = sub nsw i64 %106, 49
  %108 = getelementptr inbounds [80 x double], ptr @check1_.dtrue5, i64 0, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !14
  %110 = load i64, ptr %5, align 8, !tbaa !12
  %111 = sub nsw i64 %110, 1
  %112 = getelementptr inbounds [8 x double], ptr %10, i64 0, i64 %111
  store double %109, ptr %112, align 8, !tbaa !14
  br label %113

113:                                              ; preds = %99
  %114 = load i64, ptr %5, align 8, !tbaa !12
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %5, align 8, !tbaa !12
  br label %95, !llvm.loop !19

116:                                              ; preds = %95
  %117 = getelementptr inbounds [8 x double], ptr %6, i64 0, i64 0
  %118 = getelementptr inbounds [8 x double], ptr %10, i64 0, i64 0
  %119 = getelementptr inbounds [8 x double], ptr %10, i64 0, i64 0
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = call i32 @stest_(ptr noundef %8, ptr noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %120)
  br label %138

122:                                              ; preds = %81
  %123 = load i64, ptr @combla_, align 8, !tbaa !18
  %124 = icmp eq i64 %123, 10
  br i1 %124, label %125, label %132

125:                                              ; preds = %122
  %126 = getelementptr inbounds [8 x double], ptr %6, i64 0, i64 0
  %127 = call i64 @f2c_idamax(ptr noundef getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 1), ptr noundef %126, ptr noundef getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2))
  store i64 %127, ptr %3, align 8, !tbaa !12
  %128 = load i64, ptr %7, align 8, !tbaa !12
  %129 = sub nsw i64 %128, 1
  %130 = getelementptr inbounds [5 x i64], ptr @check1_.itrue2, i64 0, i64 %129
  %131 = call i32 @itest1_(ptr noundef %3, ptr noundef %130)
  br label %137

132:                                              ; preds = %122
  %133 = call i64 @s_wsle(ptr noundef @check1_.io___31)
  %134 = call i64 @do_lio(ptr noundef @c__9, ptr noundef @c__1, ptr noundef @.str.2, i64 noundef 28)
  %135 = call i64 @e_wsle()
  %136 = call i32 @s_stop(ptr noundef @.str, i64 noundef 0)
  br label %137

137:                                              ; preds = %132, %125
  br label %138

138:                                              ; preds = %137, %116
  br label %139

139:                                              ; preds = %138, %69
  br label %140

140:                                              ; preds = %139, %54
  br label %141

141:                                              ; preds = %140
  %142 = load i64, ptr %7, align 8, !tbaa !12
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %7, align 8, !tbaa !12
  br label %15, !llvm.loop !20

144:                                              ; preds = %15
  br label %145

145:                                              ; preds = %144
  %146 = load i64, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2), align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr getelementptr inbounds (%struct.anon, ptr @combla_, i32 0, i32 2), align 8, !tbaa !9
  br label %11, !llvm.loop !21

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

declare i32 @s_stop(ptr noundef, i64 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @stest1_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i64 @s_wsle(ptr noundef) #2

declare i64 @do_lio(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare i64 @e_wsle() #2

declare double @f2c_dnrm2(ptr noundef, ptr noundef, ptr noundef) #2

declare double @f2c_dasum(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @f2c_dscal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @stest_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i64 @f2c_idamax(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @itest1_(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !11, i64 0}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


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

%struct.anon = type { i64, i64, i64, i64, i64, i64 }
%struct.cilist = type { i64, i64, i64, ptr, i64 }

@combla_ = external dso_local global %struct.anon, align 8
@.str = external hidden unnamed_addr constant [1 x i8], align 1
@c__1 = external hidden global i64, align 8
@c__9 = external hidden global i64, align 8
@check1_.sa = external hidden global [10 x double], align 16
@check1_.dv = external hidden local_unnamed_addr global [80 x double], align 16
@check1_.dtrue1 = external hidden local_unnamed_addr global [5 x double], align 16
@check1_.dtrue3 = external hidden local_unnamed_addr global [5 x double], align 16
@check1_.dtrue5 = external hidden local_unnamed_addr global [80 x double], align 16
@check1_.itrue2 = external hidden global [5 x i64], align 16
@check1_.io___31 = external hidden global %struct.cilist, align 8
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @check1_(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca i64, align 8
  %3 = alloca double, align 8
  %4 = alloca [8 x double], align 16
  %5 = alloca i64, align 8
  %6 = alloca [1 x double], align 8
  %7 = alloca [8 x double], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #4
  store i64 1, ptr getelementptr inbounds (i8, ptr @combla_, i64 16), align 8, !tbaa !5
  br label %._crit_edge.peel

._crit_edge.peel:                                 ; preds = %1, %.loopexit
  %8 = phi i64 [ 1, %1 ], [ %79, %.loopexit ]
  store i64 0, ptr getelementptr inbounds (i8, ptr @combla_, i64 8), align 8, !tbaa !10
  store i64 2, ptr %5, align 8, !tbaa !11
  store i64 2, ptr %2, align 8, !tbaa !11
  %9 = mul i64 %8, 320
  %scevgep30.peel = getelementptr i8, ptr getelementptr (i8, ptr @check1_.dv, i64 -320), i64 %9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) %scevgep30.peel, i64 16, i1 false), !tbaa !12
  %10 = load i64, ptr @combla_, align 8, !tbaa !14
  switch i64 %10, label %32 [
    i64 7, label %28
    i64 8, label %24
    i64 9, label %14
    i64 10, label %11
  ]

11:                                               ; preds = %._crit_edge.peel
  %12 = call i64 @f2c_idamax(ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 8), ptr noundef nonnull %4, ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 16)) #4
  store i64 %12, ptr %2, align 8, !tbaa !11
  %13 = call i32 @itest1_(ptr noundef nonnull %2, ptr noundef nonnull @check1_.itrue2)
  br label %._crit_edge.preheader

14:                                               ; preds = %._crit_edge.peel
  %15 = mul i64 %8, 5
  %16 = add i64 %15, -5
  %17 = getelementptr inbounds [10 x double], ptr @check1_.sa, i64 0, i64 %16
  %18 = call i32 @f2c_dscal(ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 8), ptr noundef nonnull %17, ptr noundef nonnull %4, ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 16)) #4
  %19 = load i64, ptr %5, align 8, !tbaa !11
  store i64 %19, ptr %2, align 8, !tbaa !11
  %.not2124.peel = icmp slt i64 %19, 1
  br i1 %.not2124.peel, label %._crit_edge28.peel, label %.lr.ph27.peel

.lr.ph27.peel:                                    ; preds = %14
  %20 = load i64, ptr getelementptr inbounds (i8, ptr @combla_, i64 16), align 8, !tbaa !5
  %21 = mul i64 %20, 320
  %scevgep32.peel = getelementptr i8, ptr getelementptr (i8, ptr @check1_.dtrue5, i64 -320), i64 %21
  %22 = shl nuw i64 %19, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %7, ptr align 16 %scevgep32.peel, i64 %22, i1 false), !tbaa !12
  br label %._crit_edge28.peel

._crit_edge28.peel:                               ; preds = %.lr.ph27.peel, %14
  %23 = call i32 @stest_(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %7, ptr noundef %0)
  br label %._crit_edge.preheader

24:                                               ; preds = %._crit_edge.peel
  %25 = load double, ptr @check1_.dtrue3, align 16, !tbaa !12
  store double %25, ptr %6, align 8, !tbaa !12
  %26 = call double @f2c_dasum(ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 8), ptr noundef nonnull %4, ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 16)) #4
  store double %26, ptr %3, align 8, !tbaa !12
  %27 = call i32 @stest1_(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef %0)
  br label %._crit_edge.preheader

28:                                               ; preds = %._crit_edge.peel
  %29 = load double, ptr @check1_.dtrue1, align 16, !tbaa !12
  store double %29, ptr %6, align 8, !tbaa !12
  %30 = call double @f2c_dnrm2(ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 8), ptr noundef nonnull %4, ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 16)) #4
  store double %30, ptr %3, align 8, !tbaa !12
  %31 = call i32 @stest1_(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef %0)
  br label %._crit_edge.preheader

32:                                               ; preds = %._crit_edge.peel
  %33 = call i64 @s_wsle(ptr noundef nonnull @check1_.io___31) #4
  %34 = call i64 @do_lio(ptr noundef nonnull @c__9, ptr noundef nonnull @c__1, ptr noundef nonnull @.str.2, i64 noundef 28) #4
  %35 = call i64 @e_wsle() #4
  %36 = call i32 @s_stop(ptr noundef nonnull @.str, i64 noundef 0) #4
  br label %._crit_edge.preheader

._crit_edge.preheader:                            ; preds = %11, %._crit_edge28.peel, %24, %28, %32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.preheader, %76
  %indvar = phi i64 [ %indvar.next, %76 ], [ 1, %._crit_edge.preheader ]
  %.029 = phi i64 [ %77, %76 ], [ 2, %._crit_edge.preheader ]
  %37 = shl nuw nsw i64 %indvar, 6
  %38 = add nuw nsw i64 %37, -320
  %scevgep31 = getelementptr i8, ptr @check1_.dtrue5, i64 %38
  %39 = add nsw i64 %.029, -1
  store i64 %39, ptr getelementptr inbounds (i8, ptr @combla_, i64 8), align 8, !tbaa !10
  %40 = shl i64 %39, 1
  store i64 %40, ptr %5, align 8, !tbaa !11
  store i64 %40, ptr %2, align 8, !tbaa !11
  %scevgep = getelementptr i8, ptr @check1_.dv, i64 %38
  %41 = load i64, ptr getelementptr inbounds (i8, ptr @combla_, i64 16), align 8, !tbaa !5
  %42 = mul i64 %41, 320
  %scevgep30 = getelementptr i8, ptr %scevgep, i64 %42
  %43 = shl i64 %39, 4
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %4, ptr align 16 %scevgep30, i64 %43, i1 false), !tbaa !12
  %44 = load i64, ptr @combla_, align 8, !tbaa !14
  switch i64 %44, label %71 [
    i64 7, label %45
    i64 8, label %50
    i64 9, label %55
    i64 10, label %67
  ]

45:                                               ; preds = %._crit_edge
  %46 = getelementptr inbounds [5 x double], ptr @check1_.dtrue1, i64 0, i64 %39
  %47 = load double, ptr %46, align 8, !tbaa !12
  store double %47, ptr %6, align 8, !tbaa !12
  %48 = call double @f2c_dnrm2(ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 8), ptr noundef nonnull %4, ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 16)) #4
  store double %48, ptr %3, align 8, !tbaa !12
  %49 = call i32 @stest1_(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef %0)
  br label %76

50:                                               ; preds = %._crit_edge
  %51 = getelementptr inbounds [5 x double], ptr @check1_.dtrue3, i64 0, i64 %39
  %52 = load double, ptr %51, align 8, !tbaa !12
  store double %52, ptr %6, align 8, !tbaa !12
  %53 = call double @f2c_dasum(ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 8), ptr noundef nonnull %4, ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 16)) #4
  store double %53, ptr %3, align 8, !tbaa !12
  %54 = call i32 @stest1_(ptr noundef nonnull %3, ptr noundef nonnull %6, ptr noundef nonnull %6, ptr noundef %0)
  br label %76

55:                                               ; preds = %._crit_edge
  %56 = load i64, ptr getelementptr inbounds (i8, ptr @combla_, i64 16), align 8, !tbaa !5
  %57 = mul i64 %56, 5
  %58 = add nuw nsw i64 %.029, -6
  %59 = add i64 %58, %57
  %60 = getelementptr inbounds [10 x double], ptr @check1_.sa, i64 0, i64 %59
  %61 = call i32 @f2c_dscal(ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 8), ptr noundef nonnull %60, ptr noundef nonnull %4, ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 16)) #4
  %62 = load i64, ptr %5, align 8, !tbaa !11
  store i64 %62, ptr %2, align 8, !tbaa !11
  %.not2124 = icmp slt i64 %62, 1
  br i1 %.not2124, label %._crit_edge28, label %.lr.ph27

.lr.ph27:                                         ; preds = %55
  %63 = load i64, ptr getelementptr inbounds (i8, ptr @combla_, i64 16), align 8, !tbaa !5
  %64 = mul i64 %63, 320
  %scevgep32 = getelementptr i8, ptr %scevgep31, i64 %64
  %65 = shl nuw i64 %62, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %7, ptr align 16 %scevgep32, i64 %65, i1 false), !tbaa !12
  br label %._crit_edge28

._crit_edge28:                                    ; preds = %.lr.ph27, %55
  %66 = call i32 @stest_(ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %7, ptr noundef %0)
  br label %76

67:                                               ; preds = %._crit_edge
  %68 = call i64 @f2c_idamax(ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 8), ptr noundef nonnull %4, ptr noundef nonnull getelementptr inbounds (i8, ptr @combla_, i64 16)) #4
  store i64 %68, ptr %2, align 8, !tbaa !11
  %69 = getelementptr inbounds [5 x i64], ptr @check1_.itrue2, i64 0, i64 %39
  %70 = call i32 @itest1_(ptr noundef nonnull %2, ptr noundef nonnull %69)
  br label %76

71:                                               ; preds = %._crit_edge
  %72 = call i64 @s_wsle(ptr noundef nonnull @check1_.io___31) #4
  %73 = call i64 @do_lio(ptr noundef nonnull @c__9, ptr noundef nonnull @c__1, ptr noundef nonnull @.str.2, i64 noundef 28) #4
  %74 = call i64 @e_wsle() #4
  %75 = call i32 @s_stop(ptr noundef nonnull @.str, i64 noundef 0) #4
  br label %76

76:                                               ; preds = %45, %._crit_edge28, %71, %67, %50
  %77 = add nuw nsw i64 %.029, 1
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond.not = icmp eq i64 %indvar.next, 5
  br i1 %exitcond.not, label %.loopexit, label %._crit_edge, !llvm.loop !15

.loopexit:                                        ; preds = %76
  %78 = load i64, ptr getelementptr inbounds (i8, ptr @combla_, i64 16), align 8, !tbaa !5
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr getelementptr inbounds (i8, ptr @combla_, i64 16), align 8, !tbaa !5
  %80 = icmp slt i64 %78, 2
  br i1 %80, label %._crit_edge.peel, label %81, !llvm.loop !18

81:                                               ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret i32 0
}

declare i32 @s_stop(ptr noundef, i64 noundef) 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) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @stest1_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @s_wsle(ptr noundef) local_unnamed_addr #2

declare i64 @do_lio(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i64 @e_wsle() local_unnamed_addr #2

declare double @f2c_dnrm2(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @f2c_dasum(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @f2c_dscal(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @stest_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @f2c_idamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @itest1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!6, !7, i64 0}
!15 = distinct !{!15, !16, !17}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.peeled.count", i32 1}
!18 = distinct !{!18, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass