; LLVM IR from attractivechaos/klib :: test (kavl-lite_test)

; 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.my_node = type { i32, %struct.anon }
%struct.anon = type { [2 x ptr], i8 }
%struct.my_itr_t = type { [64 x ptr], ptr, ptr }

; 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 uwtable
declare dso_local ptr @my_insert(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @my_erase(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @my_itr_first(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @my_itr_next(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @shuffle(i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca [256 x i8], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.my_node, align 8
  %9 = alloca %struct.my_itr_t, align 8
  %10 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 256, ptr %2) #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 8, ptr %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 528, ptr %9) #5
  store i32 33, ptr %3, align 4, !tbaa !9
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %34, %0
  %12 = load i32, ptr %3, align 4, !tbaa !9
  %13 = icmp sle i32 %12, 126
  br i1 %13, label %14, label %37

14:                                               ; preds = %11
  %15 = load i32, ptr %3, align 4, !tbaa !9
  %16 = icmp ne i32 %15, 40
  br i1 %16, label %17, label %33

17:                                               ; preds = %14
  %18 = load i32, ptr %3, align 4, !tbaa !9
  %19 = icmp ne i32 %18, 41
  br i1 %19, label %20, label %33

20:                                               ; preds = %17
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 46
  br i1 %22, label %23, label %33

23:                                               ; preds = %20
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = icmp ne i32 %24, 59
  br i1 %25, label %26, label %33

26:                                               ; preds = %23
  %27 = load i32, ptr %3, align 4, !tbaa !9
  %28 = trunc i32 %27 to i8
  %29 = load i32, ptr %4, align 4, !tbaa !9
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %4, align 4, !tbaa !9
  %31 = sext i32 %29 to i64
  %32 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 %31
  store i8 %28, ptr %32, align 1, !tbaa !11
  br label %33

33:                                               ; preds = %26, %23, %20, %17, %14
  br label %34

34:                                               ; preds = %33
  %35 = load i32, ptr %3, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %3, align 4, !tbaa !9
  br label %11, !llvm.loop !12

37:                                               ; preds = %11
  %38 = load i32, ptr %4, align 4, !tbaa !9
  %39 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
  call void @shuffle(i32 noundef %38, ptr noundef %39)
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %61, %37
  %41 = load i32, ptr %3, align 4, !tbaa !9
  %42 = load i32, ptr %4, align 4, !tbaa !9
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %44, label %64

44:                                               ; preds = %40
  %45 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 32) #6
  store ptr %45, ptr %6, align 8, !tbaa !5
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = sext i8 %49 to i32
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.my_node, ptr %51, i32 0, i32 0
  store i32 %50, ptr %52, align 8, !tbaa !14
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call ptr @my_insert(ptr noundef %5, ptr noundef %53)
  store ptr %54, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = icmp ne ptr %55, %56
  br i1 %57, label %58, label %60

58:                                               ; preds = %44
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %59) #5
  br label %60

60:                                               ; preds = %58, %44
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %3, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %3, align 4, !tbaa !9
  br label %40, !llvm.loop !17

64:                                               ; preds = %40
  %65 = load i32, ptr %4, align 4, !tbaa !9
  %66 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
  call void @shuffle(i32 noundef %65, ptr noundef %66)
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %85, %64
  %68 = load i32, ptr %3, align 4, !tbaa !9
  %69 = load i32, ptr %4, align 4, !tbaa !9
  %70 = sdiv i32 %69, 2
  %71 = icmp slt i32 %68, %70
  br i1 %71, label %72, label %88

72:                                               ; preds = %67
  %73 = load i32, ptr %3, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = sext i8 %76 to i32
  %78 = getelementptr inbounds %struct.my_node, ptr %8, i32 0, i32 0
  store i32 %77, ptr %78, align 8, !tbaa !14
  %79 = call ptr @my_erase(ptr noundef %5, ptr noundef %8)
  store ptr %79, ptr %7, align 8, !tbaa !5
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %84

82:                                               ; preds = %72
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %83) #5
  br label %84

84:                                               ; preds = %82, %72
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %3, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %3, align 4, !tbaa !9
  br label %67, !llvm.loop !18

88:                                               ; preds = %67
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  call void @my_itr_first(ptr noundef %89, ptr noundef %9)
  br label %90

90:                                               ; preds = %108, %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %91 = getelementptr inbounds %struct.my_itr_t, ptr %9, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !19
  %93 = getelementptr inbounds %struct.my_itr_t, ptr %9, i32 0, i32 0
  %94 = getelementptr inbounds [64 x ptr], ptr %93, i64 0, i64 0
  %95 = icmp ult ptr %92, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %90
  br label %101

97:                                               ; preds = %90
  %98 = getelementptr inbounds %struct.my_itr_t, ptr %9, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %97, %96
  %102 = phi ptr [ null, %96 ], [ %100, %97 ]
  store ptr %102, ptr %10, align 8, !tbaa !5
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.my_node, ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !14
  %106 = call i32 @putchar(i32 noundef %105)
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %107) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %108

108:                                              ; preds = %101
  %109 = call i32 @my_itr_next(ptr noundef %9)
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %90, label %111, !llvm.loop !21

111:                                              ; preds = %108
  %112 = call i32 @putchar(i32 noundef 10)
  call void @llvm.lifetime.end.p0(i64 528, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 256, ptr %2) #5
  ret i32 0
}

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

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

; Function Attrs: inlinehint nounwind uwtable
declare i32 @putchar(i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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(0,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 = { 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 = { inlinehint 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 = { nounwind allocsize(0,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/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 = !{!15, !10, i64 0}
!15 = !{!"my_node", !10, i64 0, !16, i64 8}
!16 = !{!"", !7, i64 0, !7, i64 16}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = !{!20, !6, i64 512}
!20 = !{!"my_itr_t", !7, i64 0, !6, i64 512, !6, i64 520}
!21 = distinct !{!21, !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"

%struct.my_node = type { i32, %struct.anon }
%struct.anon = type { [2 x ptr], i8 }
%struct.my_itr_t = type { [64 x ptr], ptr, ptr }

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @my_insert(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @my_erase(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @my_itr_first(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @my_itr_next(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @shuffle(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca [256 x i8], align 16
  %2 = alloca ptr, align 8
  %3 = alloca %struct.my_node, align 8
  %4 = alloca %struct.my_itr_t, align 8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 528, ptr nonnull %4) #6
  br label %5

5:                                                ; preds = %18, %0
  %.039 = phi i32 [ 33, %0 ], [ %19, %18 ]
  %.03138 = phi i32 [ 0, %0 ], [ %.132.1, %18 ]
  switch i32 %.039, label %6 [
    i32 59, label %11
    i32 46, label %11
    i32 41, label %11
    i32 40, label %11
  ]

6:                                                ; preds = %5
  %7 = trunc nuw i32 %.039 to i8
  %8 = add nsw i32 %.03138, 1
  %9 = sext i32 %.03138 to i64
  %10 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 %9
  store i8 %7, ptr %10, align 1, !tbaa !9
  br label %11

11:                                               ; preds = %5, %5, %5, %5, %6
  %.132 = phi i32 [ %8, %6 ], [ %.03138, %5 ], [ %.03138, %5 ], [ %.03138, %5 ], [ %.03138, %5 ]
  switch i32 %.039, label %12 [
    i32 58, label %18
    i32 45, label %18
    i32 40, label %18
    i32 39, label %18
  ]

12:                                               ; preds = %11
  %13 = trunc i32 %.039 to i8
  %14 = add i8 %13, 1
  %15 = add nsw i32 %.132, 1
  %16 = sext i32 %.132 to i64
  %17 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 %16
  store i8 %14, ptr %17, align 1, !tbaa !9
  br label %18

18:                                               ; preds = %12, %11, %11, %11, %11
  %.132.1 = phi i32 [ %15, %12 ], [ %.132, %11 ], [ %.132, %11 ], [ %.132, %11 ], [ %.132, %11 ]
  %19 = add nuw nsw i32 %.039, 2
  %exitcond.not.1 = icmp eq i32 %19, 127
  br i1 %exitcond.not.1, label %20, label %5, !llvm.loop !10

20:                                               ; preds = %18
  call void @shuffle(i32 noundef %.132.1, ptr noundef nonnull %1)
  %21 = icmp sgt i32 %.132.1, 0
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %20
  call void @shuffle(i32 noundef %.132.1, ptr noundef nonnull %1)
  br label %._crit_edge44

.lr.ph.preheader:                                 ; preds = %20
  %wide.trip.count = zext nneg i32 %.132.1 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %28
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %28 ]
  %22 = call noalias dereferenceable_or_null(32) ptr @calloc(i64 noundef 1, i64 noundef 32) #7
  %23 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 %indvars.iv
  %24 = load i8, ptr %23, align 1, !tbaa !9
  %25 = sext i8 %24 to i32
  store i32 %25, ptr %22, align 8, !tbaa !12
  %26 = call ptr @my_insert(ptr noundef nonnull %2, ptr noundef nonnull %22)
  %.not37 = icmp eq ptr %22, %26
  br i1 %.not37, label %28, label %27

27:                                               ; preds = %.lr.ph
  call void @free(ptr noundef nonnull %22) #6
  br label %28

28:                                               ; preds = %.lr.ph, %27
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond46.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond46.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %28
  call void @shuffle(i32 noundef %.132.1, ptr noundef nonnull %1)
  %.not52 = icmp eq i32 %.132.1, 1
  br i1 %.not52, label %._crit_edge44, label %.lr.ph43.preheader

.lr.ph43.preheader:                               ; preds = %._crit_edge
  %29 = lshr i32 %.132.1, 1
  %wide.trip.count50 = zext nneg i32 %29 to i64
  br label %.lr.ph43

.lr.ph43:                                         ; preds = %.lr.ph43.preheader, %35
  %indvars.iv47 = phi i64 [ 0, %.lr.ph43.preheader ], [ %indvars.iv.next48, %35 ]
  %30 = getelementptr inbounds [256 x i8], ptr %1, i64 0, i64 %indvars.iv47
  %31 = load i8, ptr %30, align 1, !tbaa !9
  %32 = sext i8 %31 to i32
  store i32 %32, ptr %3, align 8, !tbaa !12
  %33 = call ptr @my_erase(ptr noundef nonnull %2, ptr noundef nonnull %3)
  %.not36 = icmp eq ptr %33, null
  br i1 %.not36, label %35, label %34

34:                                               ; preds = %.lr.ph43
  call void @free(ptr noundef nonnull %33) #6
  br label %35

35:                                               ; preds = %.lr.ph43, %34
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next48, %wide.trip.count50
  br i1 %exitcond51.not, label %._crit_edge44, label %.lr.ph43, !llvm.loop !17

._crit_edge44:                                    ; preds = %35, %._crit_edge.thread, %._crit_edge
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  call void @my_itr_first(ptr noundef %36, ptr noundef nonnull %4)
  %37 = getelementptr inbounds i8, ptr %4, i64 512
  br label %38

38:                                               ; preds = %38, %._crit_edge44
  %39 = load ptr, ptr %37, align 8, !tbaa !18
  %40 = icmp uge ptr %39, %4
  call void @llvm.assume(i1 %40)
  %41 = load ptr, ptr %39, align 8, !tbaa !5
  %42 = load i32, ptr %41, align 8, !tbaa !12
  %43 = call i32 @putchar(i32 noundef %42)
  call void @free(ptr noundef %41) #6
  %44 = call i32 @my_itr_next(ptr noundef nonnull %4)
  %.not = icmp eq i32 %44, 0
  br i1 %.not, label %45, label %38, !llvm.loop !20

45:                                               ; preds = %38
  %46 = call i32 @putchar(i32 noundef 10)
  call void @llvm.lifetime.end.p0(i64 528, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %1) #6
  ret i32 0
}

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

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

; Function Attrs: inlinehint nofree nounwind uwtable
declare noundef i32 @putchar(i32 noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #3 = { 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 #4 = { inlinehint 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 #5 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,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/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !14, i64 0}
!13 = !{!"my_node", !14, i64 0, !15, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!"", !7, i64 0, !7, i64 16}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = !{!19, !6, i64 512}
!19 = !{!"my_itr_t", !7, i64 0, !6, i64 512, !6, i64 520}
!20 = distinct !{!20, !11}


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