; LLVM IR from palatinuse/database-vertical-partitioning :: lib/metis/Programs (io)

; 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.graphdef = type { ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [4 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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

declare i32 @fclose(ptr noundef) #1

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #3

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

; Function Attrs: nounwind uwtable
define dso_local void @WriteMocGraph(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [256 x i8], align 16
  %11 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, 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 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 256, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.graphdef, ptr %12, i32 0, i32 2
  %14 = load i32, ptr %13, align 8, !tbaa !9
  store i32 %14, ptr %5, align 4, !tbaa !12
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.graphdef, ptr %15, i32 0, i32 24
  %17 = load i32, ptr %16, align 8, !tbaa !13
  store i32 %17, ptr %6, align 4, !tbaa !12
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.graphdef, ptr %18, i32 0, i32 4
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  store ptr %20, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.graphdef, ptr %21, i32 0, i32 7
  %23 = load ptr, ptr %22, align 8, !tbaa !15
  store ptr %23, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.graphdef, ptr %24, i32 0, i32 25
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  store ptr %26, ptr %9, align 8, !tbaa !5
  %27 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %28 = load i32, ptr %5, align 4, !tbaa !12
  %29 = load i32, ptr %6, align 4, !tbaa !12
  %30 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %27, ptr noundef @.str.40, i32 noundef %28, i32 noundef %29) #5
  %31 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %32 = call noalias ptr @fopen(ptr noundef %31, ptr noundef @.str.21)
  store ptr %32, ptr %11, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %1
  %35 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %35)
  call void @exit(i32 noundef 0) #6
  unreachable

37:                                               ; preds = %1
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = load i32, ptr %5, align 4, !tbaa !12
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !12
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %40, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !12
  %45 = sdiv i32 %44, 2
  %46 = load i32, ptr %6, align 4, !tbaa !12
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.41, i32 noundef %39, i32 noundef %45, i32 noundef %46) #5
  store i32 0, ptr %3, align 4, !tbaa !12
  br label %48

48:                                               ; preds = %104, %37
  %49 = load i32, ptr %3, align 4, !tbaa !12
  %50 = load i32, ptr %5, align 4, !tbaa !12
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %107

52:                                               ; preds = %48
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str.38) #5
  store i32 0, ptr %4, align 4, !tbaa !12
  br label %55

55:                                               ; preds = %73, %52
  %56 = load i32, ptr %4, align 4, !tbaa !12
  %57 = load i32, ptr %6, align 4, !tbaa !12
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %59, label %76

59:                                               ; preds = %55
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load i32, ptr %3, align 4, !tbaa !12
  %63 = load i32, ptr %6, align 4, !tbaa !12
  %64 = mul nsw i32 %62, %63
  %65 = load i32, ptr %4, align 4, !tbaa !12
  %66 = add nsw i32 %64, %65
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %61, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !17
  %70 = fmul float 1.000000e+07, %69
  %71 = fptosi float %70 to i32
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.42, i32 noundef %71) #5
  br label %73

73:                                               ; preds = %59
  %74 = load i32, ptr %4, align 4, !tbaa !12
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %4, align 4, !tbaa !12
  br label %55, !llvm.loop !19

76:                                               ; preds = %55
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load i32, ptr %3, align 4, !tbaa !12
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %77, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !12
  store i32 %81, ptr %4, align 4, !tbaa !12
  br label %82

82:                                               ; preds = %100, %76
  %83 = load i32, ptr %4, align 4, !tbaa !12
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = load i32, ptr %3, align 4, !tbaa !12
  %86 = add nsw i32 %85, 1
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %84, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !12
  %90 = icmp slt i32 %83, %89
  br i1 %90, label %91, label %103

91:                                               ; preds = %82
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load i32, ptr %4, align 4, !tbaa !12
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !12
  %98 = add nsw i32 %97, 1
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str.39, i32 noundef %98) #5
  br label %100

100:                                              ; preds = %91
  %101 = load i32, ptr %4, align 4, !tbaa !12
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %4, align 4, !tbaa !12
  br label %82, !llvm.loop !21

103:                                              ; preds = %82
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %3, align 4, !tbaa !12
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %3, align 4, !tbaa !12
  br label %48, !llvm.loop !22

107:                                              ; preds = %48
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = call i32 @fclose(ptr noundef %108)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 256, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"graphdef", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !6, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !11, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 176}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 48}
!16 = !{!10, !6, i64 184}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


; 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.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [4 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: 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 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) 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: nounwind uwtable
define dso_local void @WriteMocGraph(ptr nocapture noundef readonly %0) local_unnamed_addr #3 {
  %2 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #4
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 176
  %6 = load i32, ptr %5, align 8, !tbaa !11
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %0, i64 184
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str.40, i32 noundef %4, i32 noundef %6) #4
  %14 = call noalias ptr @fopen(ptr noundef nonnull %2, ptr noundef nonnull @.str.21)
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %18

16:                                               ; preds = %1
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull %2)
  call void @exit(i32 noundef 0) #5
  unreachable

18:                                               ; preds = %1
  %19 = sext i32 %4 to i64
  %20 = getelementptr inbounds i32, ptr %8, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !15
  %22 = sdiv i32 %21, 2
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.41, i32 noundef %4, i32 noundef %22, i32 noundef %6) #4
  %24 = icmp sgt i32 %4, 0
  br i1 %24, label %.lr.ph42, label %._crit_edge43

.lr.ph42:                                         ; preds = %18
  %25 = icmp sgt i32 %6, 0
  br i1 %25, label %.lr.ph.us.preheader, label %.lr.ph42.split.preheader

.lr.ph42.split.preheader:                         ; preds = %.lr.ph42
  %wide.trip.count = zext nneg i32 %4 to i64
  br label %.lr.ph42.split

.lr.ph.us.preheader:                              ; preds = %.lr.ph42
  %26 = zext nneg i32 %6 to i64
  %wide.trip.count60 = zext nneg i32 %4 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.loopexit.us
  %indvars.iv57 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next58, %.loopexit.us ]
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.38) #4
  %28 = mul nuw nsw i64 %indvars.iv57, %26
  %invariant.gep = getelementptr inbounds float, ptr %12, i64 %28
  br label %36

.lr.ph39.us:                                      ; preds = %.lr.ph39.us.preheader, %.lr.ph39.us
  %indvars.iv54 = phi i64 [ %46, %.lr.ph39.us.preheader ], [ %indvars.iv.next55, %.lr.ph39.us ]
  %29 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv54
  %30 = load i32, ptr %29, align 4, !tbaa !15
  %31 = add nsw i32 %30, 1
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.39, i32 noundef %31) #4
  %indvars.iv.next55 = add nsw i64 %indvars.iv54, 1
  %33 = load i32, ptr %43, align 4, !tbaa !15
  %34 = sext i32 %33 to i64
  %35 = icmp slt i64 %indvars.iv.next55, %34
  br i1 %35, label %.lr.ph39.us, label %.loopexit.us, !llvm.loop !16

36:                                               ; preds = %.lr.ph.us, %36
  %indvars.iv49 = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next50, %36 ]
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv49
  %37 = load float, ptr %gep, align 4, !tbaa !18
  %38 = fmul float %37, 1.000000e+07
  %39 = fptosi float %38 to i32
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.42, i32 noundef %39) #4
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %exitcond53.not = icmp eq i64 %indvars.iv.next50, %26
  br i1 %exitcond53.not, label %._crit_edge.us, label %36, !llvm.loop !20

.loopexit.us:                                     ; preds = %.lr.ph39.us, %._crit_edge.us
  %exitcond61.not = icmp eq i64 %indvars.iv.next58, %wide.trip.count60
  br i1 %exitcond61.not, label %._crit_edge43, label %.lr.ph.us, !llvm.loop !21

._crit_edge.us:                                   ; preds = %36
  %41 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv57
  %42 = load i32, ptr %41, align 4, !tbaa !15
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %43 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.next58
  %44 = load i32, ptr %43, align 4, !tbaa !15
  %45 = icmp slt i32 %42, %44
  br i1 %45, label %.lr.ph39.us.preheader, label %.loopexit.us

.lr.ph39.us.preheader:                            ; preds = %._crit_edge.us
  %46 = sext i32 %42 to i64
  br label %.lr.ph39.us

.loopexit:                                        ; preds = %.lr.ph39, %.lr.ph42.split
  %exitcond.not = icmp eq i64 %indvars.iv.next47, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge43, label %.lr.ph42.split, !llvm.loop !21

.lr.ph42.split:                                   ; preds = %.lr.ph42.split.preheader, %.loopexit
  %indvars.iv46 = phi i64 [ 0, %.lr.ph42.split.preheader ], [ %indvars.iv.next47, %.loopexit ]
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.38) #4
  %48 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv46
  %49 = load i32, ptr %48, align 4, !tbaa !15
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %50 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv.next47
  %51 = load i32, ptr %50, align 4, !tbaa !15
  %52 = icmp slt i32 %49, %51
  br i1 %52, label %.lr.ph39.preheader, label %.loopexit

.lr.ph39.preheader:                               ; preds = %.lr.ph42.split
  %53 = sext i32 %49 to i64
  br label %.lr.ph39

.lr.ph39:                                         ; preds = %.lr.ph39.preheader, %.lr.ph39
  %indvars.iv = phi i64 [ %53, %.lr.ph39.preheader ], [ %indvars.iv.next, %.lr.ph39 ]
  %54 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  %55 = load i32, ptr %54, align 4, !tbaa !15
  %56 = add nsw i32 %55, 1
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.39, i32 noundef %56) #4
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %58 = load i32, ptr %50, align 4, !tbaa !15
  %59 = sext i32 %58 to i64
  %60 = icmp slt i64 %indvars.iv.next, %59
  br i1 %60, label %.lr.ph39, label %.loopexit, !llvm.loop !16

._crit_edge43:                                    ; preds = %.loopexit, %.loopexit.us, %18
  %61 = tail call i32 @fclose(ptr noundef nonnull %14)
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 }
attributes #5 = { 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, !10, i64 16}
!6 = !{!"graphdef", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 104, !10, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !10, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 176}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 48}
!14 = !{!6, !7, i64 184}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !8, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass