; LLVM IR from libxsmm/libxsmm :: samples/utilities/wrap (dgemv)

; 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 [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [149 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @init(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %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 double, align 8
  %14 = alloca double, align 8
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp eq i32 2, %24
  br i1 %25, label %26, label %31

26:                                               ; preds = %2
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %27, i64 1
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = call i32 @atoi(ptr noundef %29) #8
  br label %32

31:                                               ; preds = %2
  br label %32

32:                                               ; preds = %31, %26
  %33 = phi i32 [ %30, %26 ], [ 0, %31 ]
  store i32 %33, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = icmp slt i32 0, %34
  br i1 %35, label %36, label %38

36:                                               ; preds = %32
  %37 = load i32, ptr %6, align 4, !tbaa !5
  br label %39

38:                                               ; preds = %32
  br label %39

39:                                               ; preds = %38, %36
  %40 = phi i32 [ %37, %36 ], [ 500, %38 ]
  store i32 %40, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = icmp slt i32 2, %41
  br i1 %42, label %43, label %48

43:                                               ; preds = %39
  %44 = load ptr, ptr %5, align 8, !tbaa !9
  %45 = getelementptr inbounds ptr, ptr %44, i64 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call i32 @atoi(ptr noundef %46) #8
  br label %49

48:                                               ; preds = %39
  br label %49

49:                                               ; preds = %48, %43
  %50 = phi i32 [ %47, %43 ], [ 23, %48 ]
  store i32 %50, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = icmp slt i32 2, %51
  br i1 %52, label %53, label %58

53:                                               ; preds = %49
  %54 = load ptr, ptr %5, align 8, !tbaa !9
  %55 = getelementptr inbounds ptr, ptr %54, i64 2
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = call i32 @atoi(ptr noundef %56) #8
  br label %60

58:                                               ; preds = %49
  %59 = load i32, ptr %8, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %58, %53
  %61 = phi i32 [ %57, %53 ], [ %59, %58 ]
  store i32 %61, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = icmp slt i32 3, %62
  br i1 %63, label %64, label %69

64:                                               ; preds = %60
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i64 3
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = call i32 @atoi(ptr noundef %67) #8
  br label %71

69:                                               ; preds = %60
  %70 = load i32, ptr %8, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %69, %64
  %72 = phi i32 [ %68, %64 ], [ %70, %69 ]
  store i32 %72, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = icmp slt i32 4, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %71
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %76, i64 4
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = call i32 @atoi(ptr noundef %78) #8
  br label %81

80:                                               ; preds = %71
  br label %81

81:                                               ; preds = %80, %75
  %82 = phi i32 [ %79, %75 ], [ 1, %80 ]
  store i32 %82, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %83 = load i32, ptr %4, align 4, !tbaa !5
  %84 = icmp slt i32 5, %83
  br i1 %84, label %85, label %90

85:                                               ; preds = %81
  %86 = load ptr, ptr %5, align 8, !tbaa !9
  %87 = getelementptr inbounds ptr, ptr %86, i64 5
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = call i32 @atoi(ptr noundef %88) #8
  br label %91

90:                                               ; preds = %81
  br label %91

91:                                               ; preds = %90, %85
  %92 = phi i32 [ %89, %85 ], [ 1, %90 ]
  store i32 %92, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = icmp slt i32 6, %93
  br i1 %94, label %95, label %100

95:                                               ; preds = %91
  %96 = load ptr, ptr %5, align 8, !tbaa !9
  %97 = getelementptr inbounds ptr, ptr %96, i64 6
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = call double @atof(ptr noundef %98) #8
  br label %101

100:                                              ; preds = %91
  br label %101

101:                                              ; preds = %100, %95
  %102 = phi double [ %99, %95 ], [ 1.000000e+00, %100 ]
  store double %102, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %103 = load i32, ptr %4, align 4, !tbaa !5
  %104 = icmp slt i32 7, %103
  br i1 %104, label %105, label %110

105:                                              ; preds = %101
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %106, i64 7
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  %109 = call double @atof(ptr noundef %108) #8
  br label %111

110:                                              ; preds = %101
  br label %111

111:                                              ; preds = %110, %105
  %112 = phi double [ %109, %105 ], [ 1.000000e+00, %110 ]
  store double %112, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #7
  store i8 78, ptr %15, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = load i32, ptr %9, align 4, !tbaa !5
  %115 = mul nsw i32 %113, %114
  store i32 %115, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %116 = load i32, ptr %11, align 4, !tbaa !5
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = mul nsw i32 %116, %117
  store i32 %118, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %119 = load i32, ptr %12, align 4, !tbaa !5
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = mul nsw i32 %119, %120
  store i32 %121, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %122 = load i32, ptr %16, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = mul i64 8, %123
  %125 = call noalias ptr @malloc(i64 noundef %124) #9
  store ptr %125, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %126 = load i32, ptr %17, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = mul i64 8, %127
  %129 = call noalias ptr @malloc(i64 noundef %128) #9
  store ptr %129, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %130 = load i32, ptr %18, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = mul i64 8, %131
  %133 = call noalias ptr @malloc(i64 noundef %132) #9
  store ptr %133, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store double 1.000000e+00, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %134 = load ptr, ptr %19, align 8, !tbaa !9
  %135 = icmp ne ptr null, %134
  br i1 %135, label %136, label %143

136:                                              ; preds = %111
  %137 = load ptr, ptr %20, align 8, !tbaa !9
  %138 = icmp ne ptr null, %137
  br i1 %138, label %139, label %143

139:                                              ; preds = %136
  %140 = load ptr, ptr %21, align 8, !tbaa !9
  %141 = icmp ne ptr null, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %139
  br label %144

143:                                              ; preds = %139, %136, %111
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 78, ptr noundef @__PRETTY_FUNCTION__.main) #10
  unreachable

144:                                              ; preds = %142
  %145 = load i32, ptr %4, align 4, !tbaa !5
  %146 = icmp slt i32 8, %145
  br i1 %146, label %147, label %152

147:                                              ; preds = %144
  %148 = load ptr, ptr %5, align 8, !tbaa !9
  %149 = getelementptr inbounds ptr, ptr %148, i64 8
  %150 = load ptr, ptr %149, align 8, !tbaa !9
  %151 = call i32 @atoi(ptr noundef %150) #8
  store i32 %151, ptr %7, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %147, %144
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = load i32, ptr %9, align 4, !tbaa !5
  %155 = load double, ptr %13, align 8, !tbaa !11
  %156 = load ptr, ptr %19, align 8, !tbaa !9
  %157 = load i32, ptr %10, align 4, !tbaa !5
  %158 = load ptr, ptr %20, align 8, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !5
  %160 = load double, ptr %14, align 8, !tbaa !11
  %161 = load ptr, ptr %21, align 8, !tbaa !9
  %162 = load i32, ptr %12, align 4, !tbaa !5
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 78, i32 noundef %153, i32 noundef %154, double noundef %155, ptr noundef %156, i32 noundef %157, ptr noundef %158, i32 noundef %159, double noundef %160, ptr noundef %161, i32 noundef %162)
  %164 = load ptr, ptr %19, align 8, !tbaa !9
  %165 = load i32, ptr %8, align 4, !tbaa !5
  %166 = load i32, ptr %9, align 4, !tbaa !5
  %167 = load i32, ptr %10, align 4, !tbaa !5
  call void @init(i32 noundef 42, ptr noundef %164, i32 noundef %165, i32 noundef %166, i32 noundef %167, double noundef 1.000000e+00)
  %168 = load ptr, ptr %20, align 8, !tbaa !9
  %169 = load i32, ptr %9, align 4, !tbaa !5
  %170 = load i32, ptr %11, align 4, !tbaa !5
  call void @init(i32 noundef 24, ptr noundef %168, i32 noundef %169, i32 noundef 1, i32 noundef %170, double noundef 1.000000e+00)
  %171 = load ptr, ptr %21, align 8, !tbaa !9
  %172 = load i32, ptr %8, align 4, !tbaa !5
  %173 = load i32, ptr %12, align 4, !tbaa !5
  call void @init(i32 noundef 0, ptr noundef %171, i32 noundef %172, i32 noundef 1, i32 noundef %173, double noundef 1.000000e+00)
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %174

174:                                              ; preds = %182, %152
  %175 = load i32, ptr %23, align 4, !tbaa !5
  %176 = load i32, ptr %7, align 4, !tbaa !5
  %177 = icmp slt i32 %175, %176
  br i1 %177, label %178, label %185

178:                                              ; preds = %174
  %179 = load ptr, ptr %19, align 8, !tbaa !9
  %180 = load ptr, ptr %20, align 8, !tbaa !9
  %181 = load ptr, ptr %21, align 8, !tbaa !9
  call void @dgemv_(ptr noundef %15, ptr noundef %8, ptr noundef %9, ptr noundef %13, ptr noundef %179, ptr noundef %10, ptr noundef %180, ptr noundef %11, ptr noundef %14, ptr noundef %181, ptr noundef %12)
  br label %182

182:                                              ; preds = %178
  %183 = load i32, ptr %23, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %23, align 4, !tbaa !5
  br label %174, !llvm.loop !14

185:                                              ; preds = %174
  %186 = load i32, ptr %7, align 4, !tbaa !5
  %187 = icmp slt i32 0, %186
  br i1 %187, label %188, label %191

188:                                              ; preds = %185
  %189 = load i32, ptr %7, align 4, !tbaa !5
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %189)
  br label %194

191:                                              ; preds = %185
  %192 = load ptr, ptr @stderr, align 8, !tbaa !9
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %192, ptr noundef @.str.4) #7
  br label %194

194:                                              ; preds = %191, %188
  %195 = load ptr, ptr %19, align 8, !tbaa !9
  call void @free(ptr noundef %195) #7
  %196 = load ptr, ptr %20, align 8, !tbaa !9
  call void @free(ptr noundef %196) #7
  %197 = load ptr, ptr %21, align 8, !tbaa !9
  call void @free(ptr noundef %197) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  ret i32 0
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

declare i32 @printf(ptr noundef, ...) #5

declare void @dgemv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #6

; Function Attrs: nounwind
declare void @free(ptr noundef) #6

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 = { inlinehint nounwind willreturn memory(read) 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 #3 = { nounwind allocsize(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 = { noreturn 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 #5 = { "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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { noreturn 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; 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 [36 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [149 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @init(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef) local_unnamed_addr #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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i8, align 1
  %11 = icmp eq i32 %0, 2
  br i1 %11, label %.thread50, label %16

.thread50:                                        ; preds = %2
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = tail call i32 @atoi(ptr nocapture noundef %13) #8
  %.fr = freeze i32 %14
  %15 = icmp sgt i32 %.fr, 0
  %spec.select = select i1 %15, i32 %.fr, i32 500
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  br label %.thread51

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %17 = icmp sgt i32 %0, 2
  br i1 %17, label %19, label %.thread51

.thread51:                                        ; preds = %16, %.thread50
  %18 = phi i32 [ %spec.select, %.thread50 ], [ 500, %16 ]
  store i32 23, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  store i32 23, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  br label %.thread52

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = tail call i32 @atoi(ptr nocapture noundef %21) #8
  store i32 %22, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %23 = getelementptr inbounds i8, ptr %1, i64 16
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = tail call i32 @atoi(ptr nocapture noundef %24) #8
  store i32 %25, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %.not = icmp eq i32 %0, 3
  br i1 %.not, label %.thread52, label %29

.thread52:                                        ; preds = %19, %.thread51
  %26 = phi i32 [ 23, %.thread51 ], [ %22, %19 ]
  %27 = phi i32 [ 23, %.thread51 ], [ %25, %19 ]
  %28 = phi i32 [ %18, %.thread51 ], [ 500, %19 ]
  store i32 %26, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  br label %.thread57

29:                                               ; preds = %19
  %30 = getelementptr inbounds i8, ptr %1, i64 24
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = tail call i32 @atoi(ptr nocapture noundef %31) #8
  store i32 %32, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  %33 = icmp ugt i32 %0, 4
  br i1 %33, label %35, label %.thread57

.thread57:                                        ; preds = %.thread52, %29
  %34 = phi i32 [ %26, %.thread52 ], [ %22, %29 ]
  %.ph54 = phi i32 [ %26, %.thread52 ], [ %32, %29 ]
  %.ph55 = phi i32 [ %28, %.thread52 ], [ 500, %29 ]
  %.ph56 = phi i32 [ %27, %.thread52 ], [ %25, %29 ]
  store i32 1, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  br label %.thread63

35:                                               ; preds = %29
  %36 = getelementptr inbounds i8, ptr %1, i64 32
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = tail call i32 @atoi(ptr nocapture noundef %37) #8
  store i32 %38, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  %.not71 = icmp eq i32 %0, 5
  br i1 %.not71, label %.thread63, label %40

.thread63:                                        ; preds = %.thread57, %35
  %39 = phi i32 [ %34, %.thread57 ], [ %22, %35 ]
  %.ph59 = phi i32 [ 1, %.thread57 ], [ %38, %35 ]
  %.ph60 = phi i32 [ %.ph56, %.thread57 ], [ %25, %35 ]
  %.ph61 = phi i32 [ %.ph55, %.thread57 ], [ 500, %35 ]
  %.ph62 = phi i32 [ %.ph54, %.thread57 ], [ %32, %35 ]
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  br label %.thread70

40:                                               ; preds = %35
  %41 = getelementptr inbounds i8, ptr %1, i64 40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = tail call i32 @atoi(ptr nocapture noundef %42) #8
  store i32 %43, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %44 = icmp ugt i32 %0, 6
  br i1 %44, label %46, label %.thread70

.thread70:                                        ; preds = %.thread63, %40
  %45 = phi i32 [ %39, %.thread63 ], [ %22, %40 ]
  %.ph65 = phi i32 [ 1, %.thread63 ], [ %43, %40 ]
  %.ph66 = phi i32 [ %.ph62, %.thread63 ], [ %32, %40 ]
  %.ph67 = phi i32 [ %.ph61, %.thread63 ], [ 500, %40 ]
  %.ph68 = phi i32 [ %.ph60, %.thread63 ], [ %25, %40 ]
  %.ph69 = phi i32 [ %.ph59, %.thread63 ], [ %38, %40 ]
  store double 1.000000e+00, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  br label %54

46:                                               ; preds = %40
  %47 = getelementptr inbounds i8, ptr %1, i64 48
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = tail call double @atof(ptr noundef %48) #8
  store double %49, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %.not72 = icmp eq i32 %0, 7
  br i1 %.not72, label %54, label %50

50:                                               ; preds = %46
  %51 = getelementptr inbounds i8, ptr %1, i64 56
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = tail call double @atof(ptr noundef %52) #8
  br label %54

54:                                               ; preds = %.thread70, %46, %50
  %55 = phi i32 [ %22, %50 ], [ %22, %46 ], [ %45, %.thread70 ]
  %56 = phi double [ %49, %50 ], [ %49, %46 ], [ 1.000000e+00, %.thread70 ]
  %57 = phi i32 [ %38, %50 ], [ %38, %46 ], [ %.ph69, %.thread70 ]
  %58 = phi i32 [ %25, %50 ], [ %25, %46 ], [ %.ph68, %.thread70 ]
  %59 = phi i32 [ 500, %50 ], [ 500, %46 ], [ %.ph67, %.thread70 ]
  %60 = phi i32 [ %32, %50 ], [ %32, %46 ], [ %.ph66, %.thread70 ]
  %61 = phi i32 [ %43, %50 ], [ %43, %46 ], [ %.ph65, %.thread70 ]
  %62 = phi double [ %53, %50 ], [ 1.000000e+00, %46 ], [ 1.000000e+00, %.thread70 ]
  store double %62, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #9
  store i8 78, ptr %10, align 1, !tbaa !13
  %63 = mul nsw i32 %60, %58
  %64 = mul nsw i32 %58, %57
  %65 = mul nsw i32 %55, %61
  %66 = sext i32 %63 to i64
  %67 = shl nsw i64 %66, 3
  %68 = tail call noalias ptr @malloc(i64 noundef %67) #10
  %69 = sext i32 %64 to i64
  %70 = shl nsw i64 %69, 3
  %71 = tail call noalias ptr @malloc(i64 noundef %70) #10
  %72 = sext i32 %65 to i64
  %73 = shl nsw i64 %72, 3
  %74 = tail call noalias ptr @malloc(i64 noundef %73) #10
  %75 = icmp ne ptr %68, null
  %76 = icmp ne ptr %71, null
  %or.cond = and i1 %75, %76
  %77 = icmp ne ptr %74, null
  %or.cond3 = and i1 %or.cond, %77
  br i1 %or.cond3, label %79, label %78

78:                                               ; preds = %54
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 78, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #11
  unreachable

79:                                               ; preds = %54
  %80 = icmp sgt i32 %0, 8
  br i1 %80, label %81, label %85

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %1, i64 64
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = tail call i32 @atoi(ptr nocapture noundef %83) #8
  br label %85

85:                                               ; preds = %81, %79
  %.045 = phi i32 [ %84, %81 ], [ %59, %79 ]
  %86 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef 78, i32 noundef %55, i32 noundef %58, double noundef %56, ptr noundef nonnull %68, i32 noundef %60, ptr noundef nonnull %71, i32 noundef %57, double noundef %62, ptr noundef nonnull %74, i32 noundef %61)
  tail call void @init(i32 noundef 42, ptr noundef nonnull %68, i32 noundef %55, i32 noundef %58, i32 noundef %60, double noundef 1.000000e+00)
  tail call void @init(i32 noundef 24, ptr noundef nonnull %71, i32 noundef %58, i32 noundef 1, i32 noundef %57, double noundef 1.000000e+00)
  tail call void @init(i32 noundef 0, ptr noundef nonnull %74, i32 noundef %55, i32 noundef 1, i32 noundef %61, double noundef 1.000000e+00)
  %87 = icmp sgt i32 %.045, 0
  br i1 %87, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %85, %.lr.ph
  %.073 = phi i32 [ %88, %.lr.ph ], [ 0, %85 ]
  call void @dgemv_(ptr noundef nonnull %10, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %8, ptr noundef nonnull %68, ptr noundef nonnull %5, ptr noundef nonnull %71, ptr noundef nonnull %6, ptr noundef nonnull %9, ptr noundef nonnull %74, ptr noundef nonnull %7) #9
  %88 = add nuw nsw i32 %.073, 1
  %exitcond.not = icmp eq i32 %88, %.045
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph
  br i1 %87, label %89, label %._crit_edge.thread

89:                                               ; preds = %._crit_edge
  %90 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %.045)
  br label %93

._crit_edge.thread:                               ; preds = %85, %._crit_edge
  %91 = load ptr, ptr @stderr, align 8, !tbaa !5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef nonnull @.str.4) #12
  br label %93

93:                                               ; preds = %._crit_edge.thread, %89
  call void @free(ptr noundef %68) #9
  call void @free(ptr noundef %71) #9
  call void @free(ptr noundef %74) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  ret i32 0
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

declare void @dgemv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #7

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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { noreturn 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 #5 = { 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 #6 = { "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 #7 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { noreturn nounwind }
attributes #12 = { cold 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass