; LLVM IR from attractivechaos/klib :: test (krmq_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, i32, %struct.anon }
%struct.anon = type { [2 x ptr], ptr, i8, i32 }

@__const.check.m = external hidden unnamed_addr constant [2 x i32], align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @check(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [2 x i32], align 4
  %10 = alloca [2 x 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
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !9
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 2147483647, ptr %12, align 4, !tbaa !9
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %169

15:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.memset.p0.i64(ptr align 4 %9, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 @__const.check.m, i64 8, i1 false)
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.my_node, ptr %16, i32 0, i32 1
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %18, ptr %19, align 4, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.my_node, ptr %20, i32 0, i32 2
  %22 = getelementptr inbounds %struct.anon, ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds [2 x ptr], ptr %22, i64 0, i64 0
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %37

26:                                               ; preds = %15
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.my_node, ptr %27, i32 0, i32 2
  %29 = getelementptr inbounds %struct.anon, ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds [2 x ptr], ptr %29, i64 0, i64 0
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %33 = getelementptr inbounds [2 x i32], ptr %10, i64 0, i64 0
  %34 = call i32 @check(ptr noundef %31, ptr noundef %32, ptr noundef %33)
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = add nsw i32 %35, %34
  store i32 %36, ptr %8, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %26, %15
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.my_node, ptr %38, i32 0, i32 2
  %40 = getelementptr inbounds %struct.anon, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds [2 x ptr], ptr %40, i64 0, i64 1
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %55

44:                                               ; preds = %37
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.my_node, ptr %45, i32 0, i32 2
  %47 = getelementptr inbounds %struct.anon, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds [2 x ptr], ptr %47, i64 0, i64 1
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %51 = getelementptr inbounds [2 x i32], ptr %10, i64 0, i64 1
  %52 = call i32 @check(ptr noundef %49, ptr noundef %50, ptr noundef %51)
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = add nsw i32 %53, %52
  store i32 %54, ptr %8, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %44, %37
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = getelementptr inbounds [2 x i32], ptr %10, i64 0, i64 0
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp slt i32 %57, %59
  br i1 %60, label %61, label %64

61:                                               ; preds = %55
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  br label %67

64:                                               ; preds = %55
  %65 = getelementptr inbounds [2 x i32], ptr %10, i64 0, i64 0
  %66 = load i32, ptr %65, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %64, %61
  %68 = phi i32 [ %63, %61 ], [ %66, %64 ]
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %68, ptr %69, align 4, !tbaa !9
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = getelementptr inbounds [2 x i32], ptr %10, i64 0, i64 1
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = icmp slt i32 %71, %73
  br i1 %74, label %75, label %78

75:                                               ; preds = %67
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  br label %81

78:                                               ; preds = %67
  %79 = getelementptr inbounds [2 x i32], ptr %10, i64 0, i64 1
  %80 = load i32, ptr %79, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %78, %75
  %82 = phi i32 [ %77, %75 ], [ %80, %78 ]
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 %82, ptr %83, align 4, !tbaa !9
  %84 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = icmp sgt i32 %85, %87
  br i1 %88, label %89, label %92

89:                                               ; preds = %81
  %90 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %91 = load i32, ptr %90, align 4, !tbaa !9
  br label %95

92:                                               ; preds = %81
  %93 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %94 = load i32, ptr %93, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %92, %89
  %96 = phi i32 [ %91, %89 ], [ %94, %92 ]
  %97 = add nsw i32 %96, 1
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %97, ptr %98, align 4, !tbaa !9
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.my_node, ptr %101, i32 0, i32 2
  %103 = getelementptr inbounds %struct.anon, ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !14
  %105 = getelementptr inbounds %struct.my_node, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !11
  %107 = icmp ne i32 %100, %106
  br i1 %107, label %108, label %122

108:                                              ; preds = %95
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.my_node, ptr %112, i32 0, i32 2
  %114 = getelementptr inbounds %struct.anon, ptr %113, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !14
  %116 = getelementptr inbounds %struct.my_node, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !11
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.my_node, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 8, !tbaa !15
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str, i32 noundef %111, i32 noundef %117, i32 noundef %120) #5
  br label %122

122:                                              ; preds = %108, %95
  %123 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = sub nsw i32 %124, %126
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.my_node, ptr %128, i32 0, i32 2
  %130 = getelementptr inbounds %struct.anon, ptr %129, i32 0, i32 2
  %131 = load i8, ptr %130, align 8, !tbaa !16
  %132 = sext i8 %131 to i32
  %133 = icmp ne i32 %127, %132
  br i1 %133, label %134, label %149

134:                                              ; preds = %122
  %135 = load ptr, ptr @stderr, align 8, !tbaa !5
  %136 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.my_node, ptr %140, i32 0, i32 2
  %142 = getelementptr inbounds %struct.anon, ptr %141, i32 0, i32 2
  %143 = load i8, ptr %142, align 8, !tbaa !16
  %144 = sext i8 %143 to i32
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.my_node, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !15
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.1, i32 noundef %137, i32 noundef %139, i32 noundef %144, i32 noundef %147) #5
  br label %149

149:                                              ; preds = %134, %122
  %150 = load i32, ptr %8, align 4, !tbaa !9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.my_node, ptr %151, i32 0, i32 2
  %153 = getelementptr inbounds %struct.anon, ptr %152, i32 0, i32 3
  %154 = load i32, ptr %153, align 4, !tbaa !17
  %155 = icmp ne i32 %150, %154
  br i1 %155, label %156, label %167

156:                                              ; preds = %149
  %157 = load ptr, ptr @stderr, align 8, !tbaa !5
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.my_node, ptr %158, i32 0, i32 2
  %160 = getelementptr inbounds %struct.anon, ptr %159, i32 0, i32 3
  %161 = load i32, ptr %160, align 4, !tbaa !17
  %162 = load i32, ptr %8, align 4, !tbaa !9
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.my_node, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 8, !tbaa !15
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.2, i32 noundef %161, i32 noundef %162, i32 noundef %165) #5
  br label %167

167:                                              ; preds = %156, %149
  %168 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %168, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %170

169:                                              ; preds = %3
  store i32 0, ptr %4, align 4
  br label %170

170:                                              ; preds = %169, %167
  %171 = load i32, ptr %4, align 4
  ret i32 %171
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"my_node", !10, i64 0, !10, i64 4, !13, i64 8}
!13 = !{!"", !7, i64 0, !6, i64 16, !7, i64 24, !10, i64 28}
!14 = !{!12, !6, i64 24}
!15 = !{!12, !10, i64 0}
!16 = !{!12, !7, i64 32}
!17 = !{!12, !10, i64 36}


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

@__const.check.m = external hidden unnamed_addr constant [2 x i32], align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1

; 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: nofree nounwind uwtable
define dso_local i32 @check(ptr noundef readonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef %2) local_unnamed_addr #1 {
  %4 = alloca [2 x i32], align 8
  %5 = alloca [2 x i32], align 8
  store i32 0, ptr %1, align 4, !tbaa !5
  store i32 2147483647, ptr %2, align 4, !tbaa !5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %60, label %6

6:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store i64 0, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %7 = load i64, ptr @__const.check.m, align 4
  store i64 %7, ptr %5, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %9, ptr %2, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %.not44 = icmp eq ptr %11, null
  br i1 %.not44, label %15, label %12

12:                                               ; preds = %6
  %13 = call i32 @check(ptr noundef nonnull %11, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %14 = add nsw i32 %13, 1
  br label %15

15:                                               ; preds = %12, %6
  %.0 = phi i32 [ %14, %12 ], [ 1, %6 ]
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %.not45 = icmp eq ptr %17, null
  br i1 %.not45, label %23, label %18

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %4, i64 4
  %20 = getelementptr inbounds i8, ptr %5, i64 4
  %21 = call i32 @check(ptr noundef nonnull %17, ptr noundef nonnull %19, ptr noundef nonnull %20)
  %22 = add nsw i32 %21, %.0
  br label %23

23:                                               ; preds = %18, %15
  %.1 = phi i32 [ %22, %18 ], [ %.0, %15 ]
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = load i32, ptr %5, align 8, !tbaa !5
  %. = tail call i32 @llvm.smin.i32(i32 %24, i32 %25)
  %26 = getelementptr inbounds i8, ptr %5, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = tail call i32 @llvm.smin.i32(i32 %., i32 %27)
  store i32 %28, ptr %2, align 4, !tbaa !5
  %29 = load i32, ptr %4, align 8
  %30 = getelementptr inbounds i8, ptr %4, i64 4
  %31 = load i32, ptr %30, align 4
  %32 = tail call i32 @llvm.smax.i32(i32 %29, i32 %31)
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %1, align 4, !tbaa !5
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %0, i64 24
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds i8, ptr %36, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %.not46 = icmp eq i32 %34, %38
  br i1 %.not46, label %43, label %39

39:                                               ; preds = %23
  %40 = load ptr, ptr @stderr, align 8, !tbaa !13
  %41 = load i32, ptr %0, align 8, !tbaa !15
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str, i32 noundef %34, i32 noundef %38, i32 noundef %41) #5
  br label %43

43:                                               ; preds = %39, %23
  %44 = sub nsw i32 %31, %29
  %45 = getelementptr inbounds i8, ptr %0, i64 32
  %46 = load i8, ptr %45, align 8, !tbaa !16
  %47 = sext i8 %46 to i32
  %.not47 = icmp eq i32 %44, %47
  br i1 %.not47, label %52, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr @stderr, align 8, !tbaa !13
  %50 = load i32, ptr %0, align 8, !tbaa !15
  %51 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.1, i32 noundef %31, i32 noundef %29, i32 noundef %47, i32 noundef %50) #5
  br label %52

52:                                               ; preds = %48, %43
  %53 = getelementptr inbounds i8, ptr %0, i64 36
  %54 = load i32, ptr %53, align 4, !tbaa !17
  %.not48 = icmp eq i32 %.1, %54
  br i1 %.not48, label %59, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr @stderr, align 8, !tbaa !13
  %57 = load i32, ptr %0, align 8, !tbaa !15
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.2, i32 noundef %54, i32 noundef %.1, i32 noundef %57) #5
  br label %59

59:                                               ; preds = %55, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  br label %60

60:                                               ; preds = %3, %59
  %.032 = phi i32 [ %.1, %59 ], [ 0, %3 ]
  ret i32 %.032
}

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
attributes #5 = { cold 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 4}
!10 = !{!"my_node", !6, i64 0, !6, i64 4, !11, i64 8}
!11 = !{!"", !7, i64 0, !12, i64 16, !7, i64 24, !6, i64 28}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !12, i64 24}
!15 = !{!10, !6, i64 0}
!16 = !{!10, !7, i64 32}
!17 = !{!10, !6, i64 36}


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