; LLVM IR from emathew1/3DCompactSolver :: VisitWriter.ll (Z22write_rectilinear_meshPKciPiPfS2_S2_iS1_S1_PKS0_PS2_)

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

@_ZL9useBinary = external hidden global i32, align 4
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15write_variablesiPiS_PKPKcPPfii(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 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: mustprogress uwtable
declare hidden void @_ZL11new_sectionv() #0

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12write_stringPKc(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11write_floatf(float noundef) #0

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9open_filePKc(ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12write_headerv() #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10close_filev() #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22write_rectilinear_meshPKciPiPfS2_S2_iS1_S1_PKS0_PS2_(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca [128 x i8], align 16
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store i32 %1, ptr %13, align 4, !tbaa !9
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store i32 %6, ptr %18, align 4, !tbaa !9
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = getelementptr inbounds i32, ptr %31, i64 0
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  %35 = getelementptr inbounds i32, ptr %34, i64 1
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = mul nsw i32 %33, %36
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = getelementptr inbounds i32, ptr %38, i64 2
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = mul nsw i32 %37, %40
  store i32 %41, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = getelementptr inbounds i32, ptr %42, i64 0
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = sub nsw i32 %44, 1
  %46 = icmp slt i32 %45, 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %11
  br label %53

48:                                               ; preds = %11
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = getelementptr inbounds i32, ptr %49, i64 0
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = sub nsw i32 %51, 1
  br label %53

53:                                               ; preds = %48, %47
  %54 = phi i32 [ 1, %47 ], [ %52, %48 ]
  store i32 %54, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = getelementptr inbounds i32, ptr %55, i64 1
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = sub nsw i32 %57, 1
  %59 = icmp slt i32 %58, 1
  br i1 %59, label %60, label %61

60:                                               ; preds = %53
  br label %66

61:                                               ; preds = %53
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = getelementptr inbounds i32, ptr %62, i64 1
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = sub nsw i32 %64, 1
  br label %66

66:                                               ; preds = %61, %60
  %67 = phi i32 [ 1, %60 ], [ %65, %61 ]
  store i32 %67, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds i32, ptr %68, i64 2
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = sub nsw i32 %70, 1
  %72 = icmp slt i32 %71, 1
  br i1 %72, label %73, label %74

73:                                               ; preds = %66
  br label %79

74:                                               ; preds = %66
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = getelementptr inbounds i32, ptr %75, i64 2
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = sub nsw i32 %77, 1
  br label %79

79:                                               ; preds = %74, %73
  %80 = phi i32 [ 1, %73 ], [ %78, %74 ]
  store i32 %80, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %81 = load i32, ptr %27, align 4, !tbaa !9
  %82 = load i32, ptr %28, align 4, !tbaa !9
  %83 = mul nsw i32 %81, %82
  %84 = load i32, ptr %29, align 4, !tbaa !9
  %85 = mul nsw i32 %83, %84
  store i32 %85, ptr %30, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %86, ptr @_ZL9useBinary, align 4, !tbaa !9
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL9open_filePKc(ptr noundef %87)
  call void @_ZL12write_headerv()
  call void @_ZL12write_stringPKc(ptr noundef @.str.14)
  %88 = getelementptr inbounds [128 x i8], ptr %25, i64 0, i64 0
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = getelementptr inbounds i32, ptr %89, i64 0
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds i32, ptr %92, i64 1
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds i32, ptr %95, i64 2
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %88, ptr noundef @.str.15, i32 noundef %91, i32 noundef %94, i32 noundef %97) #4
  %99 = getelementptr inbounds [128 x i8], ptr %25, i64 0, i64 0
  call void @_ZL12write_stringPKc(ptr noundef %99)
  %100 = getelementptr inbounds [128 x i8], ptr %25, i64 0, i64 0
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds i32, ptr %101, i64 0
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %100, ptr noundef @.str.16, i32 noundef %103) #4
  %105 = getelementptr inbounds [128 x i8], ptr %25, i64 0, i64 0
  call void @_ZL12write_stringPKc(ptr noundef %105)
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %118, %79
  %107 = load i32, ptr %23, align 4, !tbaa !9
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = getelementptr inbounds i32, ptr %108, i64 0
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = icmp slt i32 %107, %110
  br i1 %111, label %112, label %121

112:                                              ; preds = %106
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = load i32, ptr %23, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %113, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !11
  call void @_ZL11write_floatf(float noundef %117)
  br label %118

118:                                              ; preds = %112
  %119 = load i32, ptr %23, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %23, align 4, !tbaa !9
  br label %106, !llvm.loop !13

121:                                              ; preds = %106
  call void @_ZL11new_sectionv()
  %122 = getelementptr inbounds [128 x i8], ptr %25, i64 0, i64 0
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds i32, ptr %123, i64 1
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %122, ptr noundef @.str.17, i32 noundef %125) #4
  %127 = getelementptr inbounds [128 x i8], ptr %25, i64 0, i64 0
  call void @_ZL12write_stringPKc(ptr noundef %127)
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %140, %121
  %129 = load i32, ptr %23, align 4, !tbaa !9
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = getelementptr inbounds i32, ptr %130, i64 1
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = icmp slt i32 %129, %132
  br i1 %133, label %134, label %143

134:                                              ; preds = %128
  %135 = load ptr, ptr %16, align 8, !tbaa !5
  %136 = load i32, ptr %23, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds float, ptr %135, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !11
  call void @_ZL11write_floatf(float noundef %139)
  br label %140

140:                                              ; preds = %134
  %141 = load i32, ptr %23, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %23, align 4, !tbaa !9
  br label %128, !llvm.loop !15

143:                                              ; preds = %128
  call void @_ZL11new_sectionv()
  %144 = getelementptr inbounds [128 x i8], ptr %25, i64 0, i64 0
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = getelementptr inbounds i32, ptr %145, i64 2
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %144, ptr noundef @.str.18, i32 noundef %147) #4
  %149 = getelementptr inbounds [128 x i8], ptr %25, i64 0, i64 0
  call void @_ZL12write_stringPKc(ptr noundef %149)
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %162, %143
  %151 = load i32, ptr %23, align 4, !tbaa !9
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = getelementptr inbounds i32, ptr %152, i64 2
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = icmp slt i32 %151, %154
  br i1 %155, label %156, label %165

156:                                              ; preds = %150
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = load i32, ptr %23, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds float, ptr %157, i64 %159
  %161 = load float, ptr %160, align 4, !tbaa !11
  call void @_ZL11write_floatf(float noundef %161)
  br label %162

162:                                              ; preds = %156
  %163 = load i32, ptr %23, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %23, align 4, !tbaa !9
  br label %150, !llvm.loop !16

165:                                              ; preds = %150
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = load ptr, ptr %19, align 8, !tbaa !5
  %168 = load ptr, ptr %20, align 8, !tbaa !5
  %169 = load ptr, ptr %21, align 8, !tbaa !5
  %170 = load ptr, ptr %22, align 8, !tbaa !5
  %171 = load i32, ptr %26, align 4, !tbaa !9
  %172 = load i32, ptr %30, align 4, !tbaa !9
  call void @_Z15write_variablesiPiS_PKPKcPPfii(i32 noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %169, ptr noundef %170, i32 noundef %171, i32 noundef %172)
  call void @_ZL10close_filev()
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  ret void
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

@_ZL9useBinary = external hidden local_unnamed_addr global i32, align 4
@.str.14 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z15write_variablesiPiS_PKPKcPPfii(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 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 uwtable
declare hidden void @_ZL11new_sectionv() local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12write_stringPKc(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11write_floatf(float noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL9open_filePKc(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL12write_headerv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10close_filev() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22write_rectilinear_meshPKciPiPfS2_S2_iS1_S1_PKS0_PS2_(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5, i32 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca [128 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %12) #4
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %2, i64 4
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %2, i64 8
  %17 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %1, ptr @_ZL9useBinary, align 4, !tbaa !5
  tail call void @_ZL9open_filePKc(ptr noundef %0)
  tail call void @_ZL12write_headerv()
  tail call void @_ZL12write_stringPKc(ptr noundef nonnull @.str.14)
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr %14, align 4, !tbaa !5
  %20 = load i32, ptr %16, align 4, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef %18, i32 noundef %19, i32 noundef %20) #4
  call void @_ZL12write_stringPKc(ptr noundef nonnull %12)
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %22) #4
  call void @_ZL12write_stringPKc(ptr noundef nonnull %12)
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %11, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %11 ]
  %26 = getelementptr inbounds float, ptr %3, i64 %indvars.iv
  %27 = load float, ptr %26, align 4, !tbaa !9
  call void @_ZL11write_floatf(float noundef %27)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %11
  call void @_ZL11new_sectionv()
  %31 = load i32, ptr %14, align 4, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %31) #4
  call void @_ZL12write_stringPKc(ptr noundef nonnull %12)
  %33 = load i32, ptr %14, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph49, label %._crit_edge50

.lr.ph49:                                         ; preds = %._crit_edge, %.lr.ph49
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %.lr.ph49 ], [ 0, %._crit_edge ]
  %35 = getelementptr inbounds float, ptr %4, i64 %indvars.iv56
  %36 = load float, ptr %35, align 4, !tbaa !9
  call void @_ZL11write_floatf(float noundef %36)
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %37 = load i32, ptr %14, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next57, %38
  br i1 %39, label %.lr.ph49, label %._crit_edge50, !llvm.loop !13

._crit_edge50:                                    ; preds = %.lr.ph49, %._crit_edge
  call void @_ZL11new_sectionv()
  %40 = load i32, ptr %16, align 4, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %40) #4
  call void @_ZL12write_stringPKc(ptr noundef nonnull %12)
  %42 = load i32, ptr %16, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph53, label %._crit_edge54

.lr.ph53:                                         ; preds = %._crit_edge50, %.lr.ph53
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %.lr.ph53 ], [ 0, %._crit_edge50 ]
  %44 = getelementptr inbounds float, ptr %5, i64 %indvars.iv59
  %45 = load float, ptr %44, align 4, !tbaa !9
  call void @_ZL11write_floatf(float noundef %45)
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %46 = load i32, ptr %16, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.next60, %47
  br i1 %48, label %.lr.ph53, label %._crit_edge54, !llvm.loop !14

._crit_edge54:                                    ; preds = %.lr.ph53, %._crit_edge50
  %49 = add nsw i32 %17, -1
  %.inv45 = icmp sgt i32 %17, 1
  %50 = select i1 %.inv45, i32 %49, i32 1
  %51 = add nsw i32 %15, -1
  %.inv44 = icmp sgt i32 %15, 1
  %52 = select i1 %.inv44, i32 %51, i32 1
  %53 = add nsw i32 %13, -1
  %.inv = icmp sgt i32 %13, 1
  %spec.select = select i1 %.inv, i32 %53, i32 1
  %54 = mul nsw i32 %52, %spec.select
  %55 = mul nsw i32 %54, %50
  %56 = mul nsw i32 %15, %13
  %57 = mul nsw i32 %56, %17
  call void @_Z15write_variablesiPiS_PKPKcPPfii(i32 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, i32 noundef %57, i32 noundef %55)
  call void @_ZL10close_filev()
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %12) #4
  ret void
}

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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