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

; 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.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 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: mustprogress nounwind uwtable
declare hidden void @_ZL8end_linev() #3

; 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
define dso_local void @_Z16write_point_meshPKciiPfiPiPKS0_PS1_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %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 i32, align 4
  %18 = alloca [128 x i8], align 16
  %19 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store ptr null, ptr %19, align 8, !tbaa !5
  %20 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %20, ptr @_ZL9useBinary, align 4, !tbaa !9
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZL9open_filePKc(ptr noundef %21)
  call void @_ZL12write_headerv()
  call void @_ZL12write_stringPKc(ptr noundef @.str.10)
  %22 = getelementptr inbounds [128 x i8], ptr %18, i64 0, i64 0
  %23 = load i32, ptr %11, align 4, !tbaa !9
  %24 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %22, ptr noundef @.str.11, i32 noundef %23) #5
  %25 = getelementptr inbounds [128 x i8], ptr %18, i64 0, i64 0
  call void @_ZL12write_stringPKc(ptr noundef %25)
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %37, %8
  %27 = load i32, ptr %17, align 4, !tbaa !9
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = mul nsw i32 3, %28
  %30 = icmp slt i32 %27, %29
  br i1 %30, label %31, label %40

31:                                               ; preds = %26
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = load i32, ptr %17, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds float, ptr %32, i64 %34
  %36 = load float, ptr %35, align 4, !tbaa !11
  call void @_ZL11write_floatf(float noundef %36)
  br label %37

37:                                               ; preds = %31
  %38 = load i32, ptr %17, align 4, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %17, align 4, !tbaa !9
  br label %26, !llvm.loop !13

40:                                               ; preds = %26
  call void @_ZL11new_sectionv()
  %41 = getelementptr inbounds [128 x i8], ptr %18, i64 0, i64 0
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = mul nsw i32 2, %43
  %45 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %41, ptr noundef @.str.12, i32 noundef %42, i32 noundef %44) #5
  %46 = getelementptr inbounds [128 x i8], ptr %18, i64 0, i64 0
  call void @_ZL12write_stringPKc(ptr noundef %46)
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %53, %40
  %48 = load i32, ptr %17, align 4, !tbaa !9
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %51, label %56

51:                                               ; preds = %47
  call void @_ZL9write_inti(i32 noundef 1)
  %52 = load i32, ptr %17, align 4, !tbaa !9
  call void @_ZL9write_inti(i32 noundef %52)
  call void @_ZL8end_linev()
  br label %53

53:                                               ; preds = %51
  %54 = load i32, ptr %17, align 4, !tbaa !9
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %17, align 4, !tbaa !9
  br label %47, !llvm.loop !15

56:                                               ; preds = %47
  call void @_ZL11new_sectionv()
  %57 = getelementptr inbounds [128 x i8], ptr %18, i64 0, i64 0
  %58 = load i32, ptr %11, align 4, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %57, ptr noundef @.str.13, i32 noundef %58) #5
  %60 = getelementptr inbounds [128 x i8], ptr %18, i64 0, i64 0
  call void @_ZL12write_stringPKc(ptr noundef %60)
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %66, %56
  %62 = load i32, ptr %17, align 4, !tbaa !9
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %65, label %69

65:                                               ; preds = %61
  call void @_ZL9write_inti(i32 noundef 1)
  call void @_ZL8end_linev()
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %17, align 4, !tbaa !9
  br label %61, !llvm.loop !16

69:                                               ; preds = %61
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = mul i64 %71, 4
  %73 = call noalias ptr @malloc(i64 noundef %72) #6
  store ptr %73, ptr %19, align 8, !tbaa !5
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %83, %69
  %75 = load i32, ptr %17, align 4, !tbaa !9
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %78, label %86

78:                                               ; preds = %74
  %79 = load ptr, ptr %19, align 8, !tbaa !5
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %79, i64 %81
  store i32 1, ptr %82, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %78
  %84 = load i32, ptr %17, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %17, align 4, !tbaa !9
  br label %74, !llvm.loop !17

86:                                               ; preds = %74
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = load ptr, ptr %16, align 8, !tbaa !5
  %92 = load i32, ptr %11, align 4, !tbaa !9
  %93 = load i32, ptr %11, align 4, !tbaa !9
  call void @_Z15write_variablesiPiS_PKPKcPPfii(i32 noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, i32 noundef %92, i32 noundef %93)
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %94) #5
  call void @_ZL10close_filev()
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  ret void
}

; 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 @_ZL9write_inti(i32 noundef) #0

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

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

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

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 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 #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++ 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}
!17 = distinct !{!17, !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.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [15 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 nounwind uwtable
declare hidden void @_ZL8end_linev() local_unnamed_addr #3

; 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
define dso_local void @_Z16write_point_meshPKciiPfiPiPKS0_PS1_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca [128 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %9) #7
  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.10)
  %10 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %2) #7
  call void @_ZL12write_stringPKc(ptr noundef nonnull %9)
  %11 = icmp sgt i32 %2, 0
  br i1 %11, label %.lr.ph.preheader, label %._crit_edge37.critedge

.lr.ph.preheader:                                 ; preds = %8
  %12 = mul i32 %2, 3
  %smax = call i32 @llvm.smax.i32(i32 %12, i32 1)
  %wide.trip.count = zext nneg i32 %smax to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %13 = getelementptr inbounds float, ptr %3, i64 %indvars.iv
  %14 = load float, ptr %13, align 4, !tbaa !9
  call void @_ZL11write_floatf(float noundef %14)
  %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_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph
  call void @_ZL11new_sectionv()
  %15 = shl nuw nsw i32 %2, 1
  %16 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %2, i32 noundef %15) #7
  call void @_ZL12write_stringPKc(ptr noundef nonnull %9)
  br i1 %11, label %.lr.ph36, label %._crit_edge41.critedge

.lr.ph36:                                         ; preds = %._crit_edge, %.lr.ph36
  %.134 = phi i32 [ %17, %.lr.ph36 ], [ 0, %._crit_edge ]
  call void @_ZL9write_inti(i32 noundef 1)
  call void @_ZL9write_inti(i32 noundef %.134)
  call void @_ZL8end_linev()
  %17 = add nuw nsw i32 %.134, 1
  %exitcond47.not = icmp eq i32 %17, %2
  br i1 %exitcond47.not, label %._crit_edge37, label %.lr.ph36, !llvm.loop !13

._crit_edge37.critedge:                           ; preds = %8
  call void @_ZL11new_sectionv()
  %18 = shl nsw i32 %2, 1
  %19 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %2, i32 noundef %18) #7
  call void @_ZL12write_stringPKc(ptr noundef nonnull %9)
  br label %._crit_edge37

._crit_edge37:                                    ; preds = %.lr.ph36, %._crit_edge37.critedge
  call void @_ZL11new_sectionv()
  %20 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %2) #7
  call void @_ZL12write_stringPKc(ptr noundef nonnull %9)
  br i1 %11, label %.lr.ph40, label %._crit_edge41

.lr.ph40:                                         ; preds = %._crit_edge37, %.lr.ph40
  %.238 = phi i32 [ %21, %.lr.ph40 ], [ 0, %._crit_edge37 ]
  call void @_ZL9write_inti(i32 noundef 1)
  call void @_ZL8end_linev()
  %21 = add nuw nsw i32 %.238, 1
  %exitcond48.not = icmp eq i32 %21, %2
  br i1 %exitcond48.not, label %._crit_edge41, label %.lr.ph40, !llvm.loop !14

._crit_edge41.critedge:                           ; preds = %._crit_edge
  call void @_ZL11new_sectionv()
  %22 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %2) #7
  call void @_ZL12write_stringPKc(ptr noundef nonnull %9)
  br label %._crit_edge41

._crit_edge41:                                    ; preds = %.lr.ph40, %._crit_edge41.critedge, %._crit_edge37
  %23 = sext i32 %4 to i64
  %24 = shl nsw i64 %23, 2
  %25 = call noalias ptr @malloc(i64 noundef %24) #8
  %26 = icmp sgt i32 %4, 0
  br i1 %26, label %.lr.ph44.preheader, label %._crit_edge45

.lr.ph44.preheader:                               ; preds = %._crit_edge41
  %wide.trip.count52 = zext nneg i32 %4 to i64
  %min.iters.check = icmp ult i32 %4, 8
  br i1 %min.iters.check, label %.lr.ph44.preheader55, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph44.preheader
  %n.vec = and i64 %wide.trip.count52, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %27 = getelementptr inbounds i32, ptr %25, i64 %index
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %27, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %28, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %29 = icmp eq i64 %index.next, %n.vec
  br i1 %29, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count52
  br i1 %cmp.n, label %._crit_edge45, label %.lr.ph44.preheader55

.lr.ph44.preheader55:                             ; preds = %middle.block, %.lr.ph44.preheader
  %indvars.iv49.ph = phi i64 [ 0, %.lr.ph44.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph44

.lr.ph44:                                         ; preds = %.lr.ph44.preheader55, %.lr.ph44
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %.lr.ph44 ], [ %indvars.iv49.ph, %.lr.ph44.preheader55 ]
  %30 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv49
  store i32 1, ptr %30, align 4, !tbaa !5
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %exitcond53.not = icmp eq i64 %indvars.iv.next50, %wide.trip.count52
  br i1 %exitcond53.not, label %._crit_edge45, label %.lr.ph44, !llvm.loop !18

._crit_edge45:                                    ; preds = %.lr.ph44, %middle.block, %._crit_edge41
  call void @_Z15write_variablesiPiS_PKPKcPPfii(i32 noundef %4, ptr noundef %5, ptr noundef %25, ptr noundef %6, ptr noundef %7, i32 noundef %2, i32 noundef %2)
  call void @free(ptr noundef %25) #7
  call void @_ZL10close_filev()
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %9) #7
  ret void
}

; 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 @_ZL9write_inti(i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #6

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 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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 = !{!"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}
!15 = distinct !{!15, !12, !16, !17}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !12, !17, !16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass