; LLVM IR from ljm941004/HYPERCV_PUBLIC :: modules/core/src/c_src (hypermat)

; 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.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [23 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @writehdr(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %23, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %30, %7
  %25 = load ptr, ptr %15, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i32 1
  store ptr %26, ptr %15, align 8, !tbaa !5
  %27 = load i8, ptr %25, align 1, !tbaa !11
  %28 = sext i8 %27 to i32
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %33

30:                                               ; preds = %24
  %31 = load i32, ptr %16, align 4, !tbaa !9
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %16, align 4, !tbaa !9
  br label %24, !llvm.loop !12

33:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %34 = load i32, ptr %16, align 4, !tbaa !9
  %35 = add nsw i32 %34, 5
  %36 = sext i32 %35 to i64
  %37 = mul i64 %36, 1
  %38 = call noalias ptr @malloc(i64 noundef %37) #6
  store ptr %38, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %54, %33
  %40 = load i32, ptr %18, align 4, !tbaa !9
  %41 = load i32, ptr %16, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %57

44:                                               ; preds = %39
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load i32, ptr %18, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %45, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  %51 = load i32, ptr %18, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i8, ptr %50, i64 %52
  store i8 %49, ptr %53, align 1, !tbaa !11
  br label %54

54:                                               ; preds = %44
  %55 = load i32, ptr %18, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %18, align 4, !tbaa !9
  br label %39, !llvm.loop !14

57:                                               ; preds = %43
  %58 = load ptr, ptr %17, align 8, !tbaa !5
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i8, ptr %58, i64 %60
  store i8 46, ptr %61, align 1, !tbaa !11
  %62 = load ptr, ptr %17, align 8, !tbaa !5
  %63 = load i32, ptr %16, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %62, i64 %65
  store i8 104, ptr %66, align 1, !tbaa !11
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = add nsw i32 %68, 2
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %67, i64 %70
  store i8 100, ptr %71, align 1, !tbaa !11
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = add nsw i32 %73, 3
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i8, ptr %72, i64 %75
  store i8 114, ptr %76, align 1, !tbaa !11
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = add nsw i32 %78, 4
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i8, ptr %77, i64 %80
  store i8 0, ptr %81, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = call noalias ptr @fopen(ptr noundef %82, ptr noundef @.str.14)
  store ptr %83, ptr %19, align 8, !tbaa !5
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  %85 = call i32 @fputs(ptr noundef @.str.15, ptr noundef %84)
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = call i32 @fputs(ptr noundef @.str.16, ptr noundef %86)
  %88 = load ptr, ptr %19, align 8, !tbaa !5
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.17, i32 noundef %89) #5
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = call i32 @fputs(ptr noundef @.str.18, ptr noundef %91)
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.17, i32 noundef %94) #5
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = call i32 @fputs(ptr noundef @.str.19, ptr noundef %96)
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.17, i32 noundef %99) #5
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = call i32 @fputs(ptr noundef @.str.20, ptr noundef %101)
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.17, i32 noundef %104) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %106 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %106, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %121, %57
  %108 = load i32, ptr %21, align 4, !tbaa !9
  %109 = icmp slt i32 %108, 3
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %124

111:                                              ; preds = %107
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i8, ptr %112, i64 %114
  %116 = load i8, ptr %115, align 1, !tbaa !11
  %117 = load ptr, ptr %20, align 8, !tbaa !5
  %118 = load i32, ptr %21, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i8, ptr %117, i64 %119
  store i8 %116, ptr %120, align 1, !tbaa !11
  br label %121

121:                                              ; preds = %111
  %122 = load i32, ptr %21, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %21, align 4, !tbaa !9
  br label %107, !llvm.loop !15

124:                                              ; preds = %110
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 3
  store i8 0, ptr %126, align 1, !tbaa !11
  %127 = load ptr, ptr %19, align 8, !tbaa !5
  %128 = call i32 @fputs(ptr noundef @.str.21, ptr noundef %127)
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = load ptr, ptr %20, align 8, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.22, ptr noundef %130) #5
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %165

134:                                              ; preds = %124
  %135 = load ptr, ptr %19, align 8, !tbaa !5
  %136 = call i32 @fputs(ptr noundef @.str.23, ptr noundef %135)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %152, %134
  %138 = load i32, ptr %22, align 4, !tbaa !9
  %139 = load i32, ptr %11, align 4, !tbaa !9
  %140 = sub nsw i32 %139, 1
  %141 = icmp slt i32 %138, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %155

143:                                              ; preds = %137
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = load i32, ptr %22, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds float, ptr %145, i64 %147
  %149 = load float, ptr %148, align 4, !tbaa !16
  %150 = fpext float %149 to double
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.24, double noundef %150) #5
  br label %152

152:                                              ; preds = %143
  %153 = load i32, ptr %22, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %22, align 4, !tbaa !9
  br label %137, !llvm.loop !18

155:                                              ; preds = %142
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = sub nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds float, ptr %157, i64 %160
  %162 = load float, ptr %161, align 4, !tbaa !16
  %163 = fpext float %162 to double
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.25, double noundef %163) #5
  br label %168

165:                                              ; preds = %124
  %166 = load ptr, ptr %19, align 8, !tbaa !5
  %167 = call i32 @fputs(ptr noundef @.str.26, ptr noundef %166)
  br label %168

168:                                              ; preds = %165, %155
  %169 = load ptr, ptr %19, align 8, !tbaa !5
  %170 = call i32 @fclose(ptr noundef %169)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret void
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { 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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !13}


; 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.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [23 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind uwtable
define dso_local void @writehdr(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr nocapture noundef readonly %5, ptr noundef readonly %6) local_unnamed_addr #2 {
  %8 = load i8, ptr %0, align 1, !tbaa !5
  %.not64 = icmp eq i8 %8, 0
  br i1 %.not64, label %._crit_edge.._crit_edge70_crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %7, %.lr.ph
  %.05866 = phi ptr [ %9, %.lr.ph ], [ %0, %7 ]
  %.05965 = phi i32 [ %10, %.lr.ph ], [ 0, %7 ]
  %9 = getelementptr inbounds i8, ptr %.05866, i64 1
  %10 = add nuw nsw i32 %.05965, 1
  %11 = load i8, ptr %9, align 1, !tbaa !5
  %.not = icmp eq i8 %11, 0
  br i1 %.not, label %.lr.ph69.preheader, label %.lr.ph, !llvm.loop !8

._crit_edge.._crit_edge70_crit_edge:              ; preds = %7
  %12 = tail call noalias dereferenceable_or_null(5) ptr @malloc(i64 noundef 5) #4
  br label %._crit_edge70

.lr.ph69.preheader:                               ; preds = %.lr.ph
  %13 = add nuw nsw i32 %.05965, 6
  %14 = zext nneg i32 %13 to i64
  %15 = tail call noalias ptr @malloc(i64 noundef %14) #4
  %16 = zext nneg i32 %10 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %0, i64 %16, i1 false), !tbaa !5
  br label %._crit_edge70

._crit_edge70:                                    ; preds = %._crit_edge.._crit_edge70_crit_edge, %.lr.ph69.preheader
  %17 = phi ptr [ %12, %._crit_edge.._crit_edge70_crit_edge ], [ %15, %.lr.ph69.preheader ]
  %.pre-phi = phi i64 [ 0, %._crit_edge.._crit_edge70_crit_edge ], [ %16, %.lr.ph69.preheader ]
  %18 = getelementptr inbounds i8, ptr %17, i64 %.pre-phi
  store <4 x i8> <i8 46, i8 104, i8 100, i8 114>, ptr %18, align 1, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 4
  store i8 0, ptr %19, align 1, !tbaa !5
  %20 = tail call noalias ptr @fopen(ptr noundef %17, ptr noundef nonnull @.str.14)
  %21 = tail call i32 @fputs(ptr noundef nonnull @.str.15, ptr noundef %20)
  %22 = tail call i32 @fputs(ptr noundef nonnull @.str.16, ptr noundef %20)
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.17, i32 noundef %1) #5
  %24 = tail call i32 @fputs(ptr noundef nonnull @.str.18, ptr noundef %20)
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.17, i32 noundef %2) #5
  %26 = tail call i32 @fputs(ptr noundef nonnull @.str.19, ptr noundef %20)
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.17, i32 noundef %3) #5
  %28 = tail call i32 @fputs(ptr noundef nonnull @.str.20, ptr noundef %20)
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.17, i32 noundef %4) #5
  %30 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #4
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %30, ptr noundef nonnull align 1 dereferenceable(3) %5, i64 3, i1 false), !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 3
  store i8 0, ptr %31, align 1, !tbaa !5
  %32 = tail call i32 @fputs(ptr noundef nonnull @.str.21, ptr noundef %20)
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.22, ptr noundef %30) #5
  %.not63 = icmp eq ptr %6, null
  br i1 %.not63, label %47, label %34

34:                                               ; preds = %._crit_edge70
  %35 = tail call i32 @fputs(ptr noundef nonnull @.str.23, ptr noundef %20)
  %36 = add i32 %3, -1
  %37 = icmp sgt i32 %3, 1
  br i1 %37, label %.lr.ph74.preheader, label %._crit_edge75

.lr.ph74.preheader:                               ; preds = %34
  %wide.trip.count = zext nneg i32 %36 to i64
  br label %.lr.ph74

._crit_edge75:                                    ; preds = %.lr.ph74, %34
  %38 = sext i32 %36 to i64
  %39 = getelementptr inbounds float, ptr %6, i64 %38
  %40 = load float, ptr %39, align 4, !tbaa !10
  %41 = fpext float %40 to double
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.25, double noundef %41) #5
  br label %49

.lr.ph74:                                         ; preds = %.lr.ph74.preheader, %.lr.ph74
  %indvars.iv = phi i64 [ 0, %.lr.ph74.preheader ], [ %indvars.iv.next, %.lr.ph74 ]
  %43 = getelementptr inbounds float, ptr %6, i64 %indvars.iv
  %44 = load float, ptr %43, align 4, !tbaa !10
  %45 = fpext float %44 to double
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.24, double noundef %45) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge75, label %.lr.ph74, !llvm.loop !12

47:                                               ; preds = %._crit_edge70
  %48 = tail call i32 @fputs(ptr noundef nonnull @.str.26, ptr noundef %20)
  br label %49

49:                                               ; preds = %47, %._crit_edge75
  %50 = tail call i32 @fclose(ptr noundef %20)
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fputs(ptr nocapture noundef readonly, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) 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 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 #1 = { 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 #2 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind allocsize(0) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !6, i64 0}
!12 = distinct !{!12, !9}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass