; LLVM IR from fmela/libdict :: src (skiplist)

; 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.dict_insert_result = type { ptr, i8 }
%struct.skiplist = type { ptr, i32, i32, ptr, i64 }
%struct.skip_node = type { ptr, ptr, ptr, i32, [0 x ptr] }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [62 x i8], align 1
@__func__.skiplist_insert = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #0

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

; Function Attrs: noreturn nounwind
declare void @abort() #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @node_new(ptr noundef, i32 noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i8 } @skiplist_insert(ptr noundef %0, ptr noundef %1) #5 {
  %3 = alloca %struct.dict_insert_result, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [32 x ptr], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.skiplist, ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  store ptr %14, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr %7) #7
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.skiplist, ptr %15, i32 0, i32 2
  %17 = load i32, ptr %16, align 4, !tbaa !13
  %18 = add i32 %17, 1
  store i32 %18, ptr %8, align 4, !tbaa !14
  br label %19

19:                                               ; preds = %100, %2
  %20 = load i32, ptr %8, align 4, !tbaa !14
  %21 = add i32 %20, -1
  store i32 %21, ptr %8, align 4, !tbaa !14
  %22 = icmp ugt i32 %20, 0
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  store i32 2, ptr %9, align 4
  br label %105

24:                                               ; preds = %19
  br label %25

25:                                               ; preds = %24
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.skip_node, ptr %26, i32 0, i32 3
  %28 = load i32, ptr %27, align 8, !tbaa !14
  %29 = load i32, ptr %8, align 4, !tbaa !14
  %30 = icmp ugt i32 %28, %29
  %31 = zext i1 %30 to i32
  %32 = sext i32 %31 to i64
  %33 = call i64 @llvm.expect.i64(i64 %32, i64 1)
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %38, label %35

35:                                               ; preds = %25
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 188, ptr noundef @__func__.skiplist_insert, ptr noundef @.str.4) #7
  call void @abort() #8
  unreachable

38:                                               ; preds = %25
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %99, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.skip_node, ptr %42, i32 0, i32 4
  %44 = load i32, ptr %8, align 4, !tbaa !14
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds [0 x ptr], ptr %43, i64 0, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %47, ptr %10, align 8, !tbaa !5
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %51, label %50

50:                                               ; preds = %41
  store i32 6, ptr %9, align 4
  br label %97

51:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.skiplist, ptr %52, i32 0, i32 3
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.skip_node, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = call i32 %54(ptr noundef %55, ptr noundef %58)
  store i32 %59, ptr %11, align 4, !tbaa !14
  %60 = load i32, ptr %11, align 4, !tbaa !14
  %61 = icmp slt i32 %60, 0
  br i1 %61, label %62, label %85

62:                                               ; preds = %51
  br label %63

63:                                               ; preds = %78, %62
  %64 = load i32, ptr %8, align 4, !tbaa !14
  %65 = icmp ugt i32 %64, 0
  br i1 %65, label %66, label %76

66:                                               ; preds = %63
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.skip_node, ptr %67, i32 0, i32 4
  %69 = load i32, ptr %8, align 4, !tbaa !14
  %70 = sub i32 %69, 1
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds [0 x ptr], ptr %68, i64 0, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = icmp eq ptr %73, %74
  br label %76

76:                                               ; preds = %66, %63
  %77 = phi i1 [ false, %63 ], [ %75, %66 ]
  br i1 %77, label %78, label %84

78:                                               ; preds = %76
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load i32, ptr %8, align 4, !tbaa !14
  %81 = add i32 %80, -1
  store i32 %81, ptr %8, align 4, !tbaa !14
  %82 = zext i32 %80 to i64
  %83 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %82
  store ptr %79, ptr %83, align 8, !tbaa !5
  br label %63, !llvm.loop !16

84:                                               ; preds = %76
  store i32 6, ptr %9, align 4
  br label %96

85:                                               ; preds = %51
  %86 = load i32, ptr %11, align 4, !tbaa !14
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %93

88:                                               ; preds = %85
  %89 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 0
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.skip_node, ptr %90, i32 0, i32 1
  store ptr %91, ptr %89, align 8, !tbaa !18
  %92 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 1
  store i8 0, ptr %92, align 8, !tbaa !21
  store i32 1, ptr %9, align 4
  br label %96

93:                                               ; preds = %85
  br label %94

94:                                               ; preds = %93
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %95, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %9, align 4
  br label %96

96:                                               ; preds = %94, %88, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %97

97:                                               ; preds = %96, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %98 = load i32, ptr %9, align 4
  switch i32 %98, label %105 [
    i32 0, label %99
    i32 6, label %100
  ]

99:                                               ; preds = %97
  br label %41

100:                                              ; preds = %97
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load i32, ptr %8, align 4, !tbaa !14
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 %103
  store ptr %101, ptr %104, align 8, !tbaa !5
  br label %19, !llvm.loop !22

105:                                              ; preds = %97, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  %106 = load i32, ptr %9, align 4
  switch i32 %106, label %125 [
    i32 2, label %107
  ]

107:                                              ; preds = %105
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = call i32 @rand_link_count(ptr noundef %109)
  %111 = call ptr @node_new(ptr noundef %108, i32 noundef %110)
  store ptr %111, ptr %6, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %117, label %114

114:                                              ; preds = %107
  %115 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 0
  store ptr null, ptr %115, align 8, !tbaa !18
  %116 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 1
  store i8 0, ptr %116, align 8, !tbaa !21
  store i32 1, ptr %9, align 4
  br label %125

117:                                              ; preds = %107
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds [32 x ptr], ptr %7, i64 0, i64 0
  call void @node_insert(ptr noundef %118, ptr noundef %119, ptr noundef %120)
  %121 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 0
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.skip_node, ptr %122, i32 0, i32 1
  store ptr %123, ptr %121, align 8, !tbaa !18
  %124 = getelementptr inbounds %struct.dict_insert_result, ptr %3, i32 0, i32 1
  store i8 1, ptr %124, align 8, !tbaa !21
  store i32 1, ptr %9, align 4
  br label %125

125:                                              ; preds = %117, %114, %105
  call void @llvm.lifetime.end.p0(i64 256, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %126 = load { ptr, i8 }, ptr %3, align 8
  ret { ptr, i8 } %126
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @rand_link_count(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @node_insert(ptr noundef, ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #1 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { 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, !6, i64 0}
!10 = !{!"skiplist", !6, i64 0, !11, i64 8, !11, i64 12, !6, i64 16, !12, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !11, i64 12}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"", !6, i64 0, !20, i64 8}
!20 = !{!"_Bool", !7, i64 0}
!21 = !{!19, !20, i64 8}
!22 = distinct !{!22, !17}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [34 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [62 x i8], align 1
@__func__.skiplist_insert = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @node_new(ptr noundef, i32 noundef) 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) #2

; Function Attrs: nounwind uwtable
define dso_local { ptr, i8 } @skiplist_insert(ptr noundef %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca [32 x ptr], align 16
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %3, i8 0, i64 256, i1 false)
  %5 = getelementptr inbounds i8, ptr %0, i64 12
  %6 = load i32, ptr %5, align 4, !tbaa !12
  %7 = add i32 %6, 1
  %.not70 = icmp eq i32 %7, 0
  br i1 %.not70, label %.thread, label %.lr.ph73

.lr.ph73:                                         ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  br label %9

9:                                                ; preds = %.lr.ph73, %.loopexit
  %.03072 = phi i32 [ %7, %.lr.ph73 ], [ %.4.ph, %.loopexit ]
  %.03371 = phi ptr [ %4, %.lr.ph73 ], [ %.134, %.loopexit ]
  %10 = add i32 %.03072, -1
  %11 = getelementptr inbounds i8, ptr %.03371, i64 24
  %12 = load i32, ptr %11, align 8, !tbaa !13
  %13 = icmp ugt i32 %12, %10
  br i1 %13, label %.critedge.preheader, label %15, !prof !14

.critedge.preheader:                              ; preds = %9
  %14 = zext i32 %10 to i64
  br label %.critedge

15:                                               ; preds = %9
  %16 = load ptr, ptr @stderr, align 8, !tbaa !15
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 188, ptr noundef nonnull @__func__.skiplist_insert, ptr noundef nonnull @.str.4) #7
  tail call void @abort() #8
  unreachable

.critedge:                                        ; preds = %.critedge.preheader, %32
  %.134 = phi ptr [ %20, %32 ], [ %.03371, %.critedge.preheader ]
  %18 = getelementptr inbounds i8, ptr %.134, i64 32
  %19 = getelementptr inbounds [0 x ptr], ptr %18, i64 0, i64 %14
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %.not41 = icmp eq ptr %20, null
  br i1 %.not41, label %.loopexit, label %21

21:                                               ; preds = %.critedge
  %22 = load ptr, ptr %8, align 8, !tbaa !16
  %23 = load ptr, ptr %20, align 8, !tbaa !15
  %24 = tail call i32 %22(ptr noundef %1, ptr noundef %23) #6
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %.preheader, label %32

.preheader:                                       ; preds = %21
  %.not4266 = icmp eq i32 %10, 0
  br i1 %.not4266, label %.loopexit.thread, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %30
  %indvars.iv = phi i64 [ %26, %30 ], [ %14, %.preheader ]
  %26 = add nsw i64 %indvars.iv, -1
  %27 = getelementptr inbounds [0 x ptr], ptr %18, i64 0, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  %29 = icmp eq ptr %28, %20
  br i1 %29, label %30, label %.loopexit.loopexit

30:                                               ; preds = %.lr.ph
  %31 = getelementptr inbounds [32 x ptr], ptr %3, i64 0, i64 %indvars.iv
  store ptr %.134, ptr %31, align 8, !tbaa !15
  %.not42.wide = icmp eq i64 %26, 0
  br i1 %.not42.wide, label %.loopexit.thread, label %.lr.ph, !llvm.loop !17

32:                                               ; preds = %21
  %33 = icmp eq i32 %24, 0
  br i1 %33, label %37, label %.critedge

.loopexit.thread:                                 ; preds = %.preheader, %30
  store ptr %.134, ptr %3, align 16, !tbaa !15
  br label %.thread

.loopexit.loopexit:                               ; preds = %.lr.ph
  %34 = trunc nuw i64 %indvars.iv to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.critedge, %.loopexit.loopexit
  %.4.ph = phi i32 [ %34, %.loopexit.loopexit ], [ %10, %.critedge ]
  %35 = zext i32 %.4.ph to i64
  %36 = getelementptr inbounds [32 x ptr], ptr %3, i64 0, i64 %35
  store ptr %.134, ptr %36, align 8, !tbaa !15
  %.not = icmp eq i32 %.4.ph, 0
  br i1 %.not, label %.thread, label %9, !llvm.loop !19

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %20, i64 8
  br label %43

.thread:                                          ; preds = %.loopexit, %.loopexit.thread, %2
  %39 = tail call i32 @rand_link_count(ptr noundef nonnull %0)
  %40 = tail call ptr @node_new(ptr noundef %1, i32 noundef %39)
  %.not43 = icmp eq ptr %40, null
  br i1 %.not43, label %43, label %41

41:                                               ; preds = %.thread
  call void @node_insert(ptr noundef nonnull %0, ptr noundef nonnull %40, ptr noundef nonnull %3)
  %42 = getelementptr inbounds i8, ptr %40, i64 8
  br label %43

43:                                               ; preds = %37, %.thread, %41
  %.sroa.0.5 = phi ptr [ %42, %41 ], [ %38, %37 ], [ null, %.thread ]
  %.sroa.4.5 = phi i8 [ 1, %41 ], [ 0, %37 ], [ 0, %.thread ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #6
  %.fca.0.insert = insertvalue { ptr, i8 } poison, ptr %.sroa.0.5, 0
  %.fca.1.insert = insertvalue { ptr, i8 } %.fca.0.insert, i8 %.sroa.4.5, 1
  ret { ptr, i8 } %.fca.1.insert
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @rand_link_count(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @node_insert(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { cold nounwind }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"skiplist", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !11, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !10, i64 12}
!13 = !{!10, !10, i64 0}
!14 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !7, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass