; LLVM IR from pavlosdais/Abstract-Data-Types :: modules/RedBlackTree (RedBlackTree)

; 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.tnode = type { ptr, i32, ptr, ptr, ptr }
%struct.Set = type { ptr, i64, ptr, ptr }

@NULLNode = external dso_local global %struct.tnode, align 8
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.rbt_remove = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @rbt_find_node(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @rbt_remove(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  br label %16

15:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 175, ptr noundef @__PRETTY_FUNCTION__.rbt_remove) #5
  unreachable

16:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.Set, ptr %17, i32 0, i32 0
  store ptr %18, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = call ptr @rbt_find_node(ptr noundef %19, ptr noundef %20)
  store ptr %21, ptr %7, align 8, !tbaa !5
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %16
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %137

25:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %26, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.tnode, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !9
  store i32 %29, ptr %10, align 4, !tbaa !12
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.tnode, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = icmp eq ptr %32, @NULLNode
  br i1 %33, label %34, label %43

34:                                               ; preds = %25
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.tnode, ptr %35, i32 0, i32 3
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  store ptr %37, ptr %7, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.tnode, ptr %40, i32 0, i32 3
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  call void @shift_node(ptr noundef %38, ptr noundef %39, ptr noundef %42)
  br label %114

43:                                               ; preds = %25
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.tnode, ptr %44, i32 0, i32 3
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = icmp eq ptr %46, @NULLNode
  br i1 %47, label %48, label %55

48:                                               ; preds = %43
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.tnode, ptr %49, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !13
  store ptr %51, ptr %7, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  call void @shift_node(ptr noundef %52, ptr noundef %53, ptr noundef %54)
  br label %113

55:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = call ptr @find_successor(ptr noundef %56)
  store ptr %57, ptr %11, align 8, !tbaa !5
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.tnode, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !9
  store i32 %60, ptr %10, align 4, !tbaa !12
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.tnode, ptr %61, i32 0, i32 3
  %63 = load ptr, ptr %62, align 8, !tbaa !14
  store ptr %63, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.tnode, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.tnode, ptr %67, i32 0, i32 1
  store i32 %66, ptr %68, align 8, !tbaa !9
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.tnode, ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = icmp eq ptr %71, %72
  br i1 %73, label %74, label %78

74:                                               ; preds = %55
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.tnode, ptr %76, i32 0, i32 4
  store ptr %75, ptr %77, align 8, !tbaa !15
  br label %94

78:                                               ; preds = %55
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.tnode, ptr %81, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !14
  call void @shift_node(ptr noundef %79, ptr noundef %80, ptr noundef %83)
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.tnode, ptr %84, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !14
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.tnode, ptr %87, i32 0, i32 3
  store ptr %86, ptr %88, align 8, !tbaa !14
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.tnode, ptr %90, i32 0, i32 3
  %92 = load ptr, ptr %91, align 8, !tbaa !14
  %93 = getelementptr inbounds %struct.tnode, ptr %92, i32 0, i32 4
  store ptr %89, ptr %93, align 8, !tbaa !15
  br label %94

94:                                               ; preds = %78, %74
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  call void @shift_node(ptr noundef %95, ptr noundef %96, ptr noundef %97)
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.tnode, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.tnode, ptr %101, i32 0, i32 2
  store ptr %100, ptr %102, align 8, !tbaa !13
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.tnode, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = getelementptr inbounds %struct.tnode, ptr %106, i32 0, i32 4
  store ptr %103, ptr %107, align 8, !tbaa !15
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.tnode, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 8, !tbaa !9
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.tnode, ptr %111, i32 0, i32 1
  store i32 %110, ptr %112, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %113

113:                                              ; preds = %94, %48
  br label %114

114:                                              ; preds = %113, %34
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Set, ptr %115, i32 0, i32 3
  %117 = load ptr, ptr %116, align 8, !tbaa !16
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %126

119:                                              ; preds = %114
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Set, ptr %120, i32 0, i32 3
  %122 = load ptr, ptr %121, align 8, !tbaa !16
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.tnode, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  call void %122(ptr noundef %125)
  br label %126

126:                                              ; preds = %119, %114
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %127) #6
  %128 = load i32, ptr %10, align 4, !tbaa !12
  %129 = icmp eq i32 %128, 1
  br i1 %129, label %130, label %132

130:                                              ; preds = %126
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  call void @fix_remove(ptr noundef %131, ptr noundef %7)
  br label %132

132:                                              ; preds = %130, %126
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Set, ptr %133, i32 0, i32 1
  %135 = load i64, ptr %134, align 8, !tbaa !20
  %136 = add i64 %135, -1
  store i64 %136, ptr %134, align 8, !tbaa !20
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %137

137:                                              ; preds = %132, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %138 = load i1, ptr %3, align 1
  ret i1 %138
}

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { noreturn nounwind }
attributes #6 = { 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, !11, i64 8}
!10 = !{!"tnode", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32}
!16 = !{!17, !6, i64 24}
!17 = !{!"Set", !6, i64 0, !18, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"long", !7, i64 0}
!19 = !{!10, !6, i64 0}
!20 = !{!17, !18, i64 8}


; 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.tnode = type { ptr, i32, ptr, ptr, ptr }

@NULLNode = external dso_local global %struct.tnode, align 8
@.str.1 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.rbt_remove = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @rbt_find_node(ptr noundef, ptr 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: nounwind uwtable
define dso_local noundef zeroext i1 @rbt_remove(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca ptr, align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 175, ptr noundef nonnull @__PRETTY_FUNCTION__.rbt_remove) #5
  unreachable

5:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %6 = tail call ptr @rbt_find_node(ptr noundef nonnull %0, ptr noundef %1)
  %7 = icmp ne ptr %6, null
  br i1 %7, label %8, label %50

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %6, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %6, i64 16
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = icmp eq ptr %12, @NULLNode
  %14 = getelementptr inbounds i8, ptr %6, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  br i1 %13, label %16, label %17

16:                                               ; preds = %8
  store ptr %15, ptr %3, align 8, !tbaa !13
  tail call void @shift_node(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %15)
  br label %38

17:                                               ; preds = %8
  %18 = icmp eq ptr %15, @NULLNode
  br i1 %18, label %19, label %20

19:                                               ; preds = %17
  store ptr %12, ptr %3, align 8, !tbaa !13
  tail call void @shift_node(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %12)
  br label %38

20:                                               ; preds = %17
  %21 = tail call ptr @find_successor(ptr noundef nonnull %6)
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %21, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !12
  store ptr %25, ptr %3, align 8, !tbaa !13
  %26 = load i32, ptr %9, align 8, !tbaa !5
  store i32 %26, ptr %22, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %21, i64 32
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %29 = icmp eq ptr %28, %6
  br i1 %29, label %32, label %30

30:                                               ; preds = %20
  tail call void @shift_node(ptr noundef nonnull %0, ptr noundef nonnull %21, ptr noundef %25)
  %31 = load ptr, ptr %14, align 8, !tbaa !12
  store ptr %31, ptr %24, align 8, !tbaa !12
  br label %32

32:                                               ; preds = %20, %30
  %.sink50 = phi ptr [ %31, %30 ], [ %25, %20 ]
  %33 = getelementptr inbounds i8, ptr %.sink50, i64 32
  store ptr %21, ptr %33, align 8, !tbaa !14
  tail call void @shift_node(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef nonnull %21)
  %34 = load ptr, ptr %11, align 8, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %21, i64 16
  store ptr %34, ptr %35, align 8, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %34, i64 32
  store ptr %21, ptr %36, align 8, !tbaa !14
  %37 = load i32, ptr %9, align 8, !tbaa !5
  store i32 %37, ptr %22, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %19, %32, %16
  %.044 = phi i32 [ %10, %16 ], [ %10, %19 ], [ %23, %32 ]
  %39 = getelementptr inbounds i8, ptr %0, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %.not49 = icmp eq ptr %40, null
  br i1 %.not49, label %43, label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr %6, align 8, !tbaa !18
  tail call void %40(ptr noundef %42) #6
  br label %43

43:                                               ; preds = %41, %38
  tail call void @free(ptr noundef nonnull %6) #6
  %44 = icmp eq i32 %.044, 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %43
  call void @fix_remove(ptr noundef nonnull %0, ptr noundef nonnull %3)
  br label %46

46:                                               ; preds = %45, %43
  %47 = getelementptr inbounds i8, ptr %0, i64 8
  %48 = load i64, ptr %47, align 8, !tbaa !19
  %49 = add i64 %48, -1
  store i64 %49, ptr %47, align 8, !tbaa !19
  br label %50

50:                                               ; preds = %5, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i1 %7
}

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 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 = { noreturn nounwind }
attributes #6 = { 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, !10, i64 8}
!6 = !{!"tnode", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !7, i64 24}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 32}
!15 = !{!16, !7, i64 24}
!16 = !{!"Set", !7, i64 0, !17, i64 8, !7, i64 16, !7, i64 24}
!17 = !{!"long", !8, i64 0}
!18 = !{!6, !7, i64 0}
!19 = !{!16, !17, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass