; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/ply.ll (Z9get_wordsP8_IO_FILEPiPPc)

; 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.9 = external hidden unnamed_addr constant [85 x i8], align 1
@_ZZ9get_wordsP8_IO_FILEPiPPcE3str = external hidden global [4096 x i8], align 16
@_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy = external hidden global [4096 x i8], align 16

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z8my_allociiPc(i32 noundef, i32 noundef, 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 allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z9get_wordsP8_IO_FILEPiPPc(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 10, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %15 = load i32, ptr %9, align 4, !tbaa !9
  %16 = sext i32 %15 to i64
  %17 = mul i64 8, %16
  %18 = trunc i64 %17 to i32
  %19 = call noundef ptr @_Z8my_allociiPc(i32 noundef %18, i32 noundef 1856, ptr noundef @.str.9)
  store ptr %19, ptr %8, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call ptr @fgets(ptr noundef @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, i32 noundef 4096, ptr noundef %20)
  store ptr %21, ptr %13, align 8, !tbaa !5
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %3
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %25, align 4, !tbaa !9
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr null, ptr %26, align 8, !tbaa !5
  store ptr null, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %124

27:                                               ; preds = %3
  store i8 32, ptr getelementptr inbounds ([4096 x i8], ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, i64 0, i64 4094), align 2, !tbaa !11
  store i8 0, ptr getelementptr inbounds ([4096 x i8], ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, i64 0, i64 4095), align 1, !tbaa !11
  store ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, ptr %11, align 8, !tbaa !5
  store ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy, ptr %12, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %63, %27
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = load i8, ptr %29, align 1, !tbaa !11
  %31 = sext i8 %30 to i32
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %68

33:                                               ; preds = %28
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 %35, ptr %36, align 1, !tbaa !11
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = sext i8 %38 to i32
  %40 = icmp eq i32 %39, 9
  br i1 %40, label %41, label %44

41:                                               ; preds = %33
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 32, ptr %42, align 1, !tbaa !11
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 32, ptr %43, align 1, !tbaa !11
  br label %62

44:                                               ; preds = %33
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = sext i8 %46 to i32
  %48 = icmp eq i32 %47, 10
  br i1 %48, label %49, label %52

49:                                               ; preds = %44
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 32, ptr %50, align 1, !tbaa !11
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 0, ptr %51, align 1, !tbaa !11
  br label %68

52:                                               ; preds = %44
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 13
  br i1 %56, label %57, label %60

57:                                               ; preds = %52
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  store i8 32, ptr %58, align 1, !tbaa !11
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  store i8 0, ptr %59, align 1, !tbaa !11
  br label %60

60:                                               ; preds = %57, %52
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61, %41
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i32 1
  store ptr %65, ptr %11, align 8, !tbaa !5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i32 1
  store ptr %67, ptr %12, align 8, !tbaa !5
  br label %28, !llvm.loop !12

68:                                               ; preds = %49, %28
  store ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, ptr %11, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %116, %68
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = load i8, ptr %70, align 1, !tbaa !11
  %72 = sext i8 %71 to i32
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %119

74:                                               ; preds = %69
  br label %75

75:                                               ; preds = %80, %74
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = load i8, ptr %76, align 1, !tbaa !11
  %78 = sext i8 %77 to i32
  %79 = icmp eq i32 %78, 32
  br i1 %79, label %80, label %83

80:                                               ; preds = %75
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i32 1
  store ptr %82, ptr %11, align 8, !tbaa !5
  br label %75, !llvm.loop !14

83:                                               ; preds = %75
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = load i8, ptr %84, align 1, !tbaa !11
  %86 = sext i8 %85 to i32
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %83
  br label %119

89:                                               ; preds = %83
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = icmp sge i32 %90, %91
  br i1 %92, label %93, label %101

93:                                               ; preds = %89
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = add nsw i32 %94, 10
  store i32 %95, ptr %9, align 4, !tbaa !9
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = mul i64 8, %98
  %100 = call ptr @realloc(ptr noundef %96, i64 noundef %99) #6
  store ptr %100, ptr %8, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %93, %89
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %10, align 4, !tbaa !9
  %106 = sext i32 %104 to i64
  %107 = getelementptr inbounds ptr, ptr %103, i64 %106
  store ptr %102, ptr %107, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %113, %101
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i8, ptr %109, align 1, !tbaa !11
  %111 = sext i8 %110 to i32
  %112 = icmp ne i32 %111, 32
  br i1 %112, label %113, label %116

113:                                              ; preds = %108
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i32 1
  store ptr %115, ptr %11, align 8, !tbaa !5
  br label %108, !llvm.loop !15

116:                                              ; preds = %108
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i32 1
  store ptr %118, ptr %11, align 8, !tbaa !5
  store i8 0, ptr %117, align 1, !tbaa !11
  br label %69, !llvm.loop !16

119:                                              ; preds = %88, %69
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %120, ptr %121, align 4, !tbaa !9
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy, ptr %122, align 8, !tbaa !5
  %123 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %123, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %124

124:                                              ; preds = %119, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %125 = load ptr, ptr %4, align 8
  ret ptr %125
}

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #4

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

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !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.9 = external hidden unnamed_addr constant [85 x i8], align 1
@_ZZ9get_wordsP8_IO_FILEPiPPcE3str = external hidden global [4096 x i8], align 16
@_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy = external hidden global [4096 x i8], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z8my_allociiPc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef ptr @_Z9get_wordsP8_IO_FILEPiPPc(ptr nocapture noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = tail call noundef ptr @_Z8my_allociiPc(i32 noundef 80, i32 noundef 1856, ptr noundef nonnull @.str.9)
  %5 = tail call ptr @fgets(ptr noundef nonnull @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, i32 noundef 4096, ptr noundef %0)
  %6 = icmp eq ptr %5, null
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %3
  store i8 32, ptr getelementptr inbounds (i8, ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, i64 4094), align 2, !tbaa !5
  store i8 0, ptr getelementptr inbounds (i8, ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, i64 4095), align 1, !tbaa !5
  %8 = load i8, ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, align 16, !tbaa !5
  %.not58 = icmp eq i8 %8, 0
  br i1 %.not58, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %7, %12
  %9 = phi i8 [ %15, %12 ], [ %8, %7 ]
  %.03860 = phi ptr [ %14, %12 ], [ @_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy, %7 ]
  %.03959 = phi ptr [ %13, %12 ], [ @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, %7 ]
  store i8 %9, ptr %.03860, align 1, !tbaa !5
  switch i8 %9, label %12 [
    i8 9, label %.sink.split
    i8 10, label %10
    i8 13, label %11
  ]

10:                                               ; preds = %.lr.ph
  store i8 32, ptr %.03959, align 1, !tbaa !5
  store i8 0, ptr %.03860, align 1, !tbaa !5
  br label %.loopexit52

11:                                               ; preds = %.lr.ph
  br label %.sink.split

.sink.split:                                      ; preds = %.lr.ph, %11
  %.sink = phi i8 [ 0, %11 ], [ 32, %.lr.ph ]
  store i8 32, ptr %.03959, align 1, !tbaa !5
  store i8 %.sink, ptr %.03860, align 1, !tbaa !5
  br label %12

12:                                               ; preds = %.sink.split, %.lr.ph
  %13 = getelementptr inbounds i8, ptr %.03959, i64 1
  %14 = getelementptr inbounds i8, ptr %.03860, i64 1
  %15 = load i8, ptr %13, align 1, !tbaa !5
  %.not = icmp eq i8 %15, 0
  br i1 %.not, label %.loopexit52, label %.lr.ph, !llvm.loop !8

.loopexit52:                                      ; preds = %12, %10
  %.pr73 = load i8, ptr @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, align 16, !tbaa !5
  %.not4761 = icmp eq i8 %.pr73, 0
  br i1 %.not4761, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.loopexit52, %33
  %indvars.iv = phi i64 [ %indvars.iv.next, %33 ], [ 0, %.loopexit52 ]
  %16 = phi i8 [ %34, %33 ], [ %.pr73, %.loopexit52 ]
  %.165 = phi ptr [ %32, %33 ], [ @_ZZ9get_wordsP8_IO_FILEPiPPcE3str, %.loopexit52 ]
  %.04163 = phi i32 [ %.142, %33 ], [ 10, %.loopexit52 ]
  %.04362 = phi ptr [ %.144, %33 ], [ %4, %.loopexit52 ]
  br label %17

17:                                               ; preds = %.preheader, %19
  %18 = phi i8 [ %.pr, %19 ], [ %16, %.preheader ]
  %.2 = phi ptr [ %20, %19 ], [ %.165, %.preheader ]
  switch i8 %18, label %21 [
    i8 32, label %19
    i8 0, label %.loopexit.loopexit
  ]

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %.2, i64 1
  %.pr = load i8, ptr %20, align 1, !tbaa !5
  br label %17, !llvm.loop !10

21:                                               ; preds = %17
  %22 = sext i32 %.04163 to i64
  %.not48 = icmp slt i64 %indvars.iv, %22
  br i1 %.not48, label %28, label %23

23:                                               ; preds = %21
  %24 = add nsw i32 %.04163, 10
  %25 = sext i32 %24 to i64
  %26 = shl nsw i64 %25, 3
  %27 = tail call ptr @realloc(ptr noundef %.04362, i64 noundef %26) #3
  br label %28

28:                                               ; preds = %23, %21
  %.144 = phi ptr [ %27, %23 ], [ %.04362, %21 ]
  %.142 = phi i32 [ %24, %23 ], [ %.04163, %21 ]
  %29 = getelementptr inbounds ptr, ptr %.144, i64 %indvars.iv
  store ptr %.2, ptr %29, align 8, !tbaa !11
  br label %30

30:                                               ; preds = %30, %28
  %.3 = phi ptr [ %.2, %28 ], [ %32, %30 ]
  %31 = load i8, ptr %.3, align 1, !tbaa !5
  %.not49 = icmp eq i8 %31, 32
  %32 = getelementptr inbounds i8, ptr %.3, i64 1
  br i1 %.not49, label %33, label %30, !llvm.loop !13

33:                                               ; preds = %30
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  store i8 0, ptr %.3, align 1, !tbaa !5
  %34 = load i8, ptr %32, align 1, !tbaa !5
  %.not47 = icmp eq i8 %34, 0
  br i1 %.not47, label %.loopexit.loopexit67, label %.preheader, !llvm.loop !14

.loopexit.loopexit:                               ; preds = %17
  %35 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.loopexit

.loopexit.loopexit67:                             ; preds = %33
  %36 = trunc nuw i64 %indvars.iv.next to i32
  br label %.loopexit

.loopexit:                                        ; preds = %7, %.loopexit.loopexit67, %.loopexit.loopexit, %.loopexit52, %3
  %storemerge50 = phi i32 [ 0, %3 ], [ 0, %.loopexit52 ], [ %35, %.loopexit.loopexit ], [ %36, %.loopexit.loopexit67 ], [ 0, %7 ]
  %storemerge = phi ptr [ null, %3 ], [ @_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy, %.loopexit52 ], [ @_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy, %.loopexit.loopexit ], [ @_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy, %.loopexit.loopexit67 ], [ @_ZZ9get_wordsP8_IO_FILEPiPPcE8str_copy, %7 ]
  %.0 = phi ptr [ null, %3 ], [ %4, %.loopexit52 ], [ %.04362, %.loopexit.loopexit ], [ %.144, %.loopexit.loopexit67 ], [ %4, %7 ]
  store i32 %storemerge50, ptr %1, align 4, !tbaa !15
  store ptr %storemerge, ptr %2, align 8, !tbaa !11
  ret ptr %.0
}

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #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 = { nounwind allocsize(1) }

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


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