; LLVM IR from vteromero/VTEnc :: tests/unit (stack_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.stack = type { [10 x %struct.StackItem], i64 }
%struct.StackItem = type { i32, i8 }

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 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: inlinehint nounwind uwtable
declare hidden void @stack_init(ptr noundef) #1

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

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @stack_size(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 uwtable
define dso_local i32 @test_stack_push_and_pop() #3 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.stack, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.StackItem, align 4
  %5 = alloca %struct.StackItem, align 4
  %6 = alloca %struct.StackItem, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.StackItem, align 4
  %9 = alloca %struct.StackItem, align 4
  call void @llvm.lifetime.start.p0(i64 88, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @stack_init(ptr noundef %2)
  %10 = getelementptr inbounds %struct.StackItem, ptr %4, i32 0, i32 0
  store i32 0, ptr %10, align 4, !tbaa !5
  %11 = getelementptr inbounds %struct.StackItem, ptr %4, i32 0, i32 1
  store i8 97, ptr %11, align 4, !tbaa !10
  call void @stack_push(ptr noundef %2, ptr noundef %4)
  %12 = getelementptr inbounds %struct.StackItem, ptr %5, i32 0, i32 0
  store i32 1, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds %struct.StackItem, ptr %5, i32 0, i32 1
  store i8 98, ptr %13, align 4, !tbaa !10
  call void @stack_push(ptr noundef %2, ptr noundef %5)
  %14 = getelementptr inbounds %struct.StackItem, ptr %6, i32 0, i32 0
  store i32 2, ptr %14, align 4, !tbaa !5
  %15 = getelementptr inbounds %struct.StackItem, ptr %6, i32 0, i32 1
  store i8 99, ptr %15, align 4, !tbaa !10
  call void @stack_push(ptr noundef %2, ptr noundef %6)
  br label %16

16:                                               ; preds = %0
  %17 = call i64 @stack_size(ptr noundef %2)
  %18 = icmp eq i64 %17, 3
  br i1 %18, label %21, label %19

19:                                               ; preds = %16
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

21:                                               ; preds = %16
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  %24 = call ptr @stack_pop(ptr noundef %2)
  store ptr %24, ptr %3, align 8, !tbaa !11
  br label %25

25:                                               ; preds = %23
  %26 = load ptr, ptr %3, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct.StackItem, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp eq i32 %28, 2
  br i1 %29, label %30, label %36

30:                                               ; preds = %25
  %31 = load ptr, ptr %3, align 8, !tbaa !11
  %32 = getelementptr inbounds %struct.StackItem, ptr %31, i32 0, i32 1
  %33 = load i8, ptr %32, align 4, !tbaa !10
  %34 = sext i8 %33 to i32
  %35 = icmp eq i32 %34, 99
  br i1 %35, label %38, label %36

36:                                               ; preds = %30, %25
  %37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

38:                                               ; preds = %30
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  %41 = call ptr @stack_pop(ptr noundef %2)
  store ptr %41, ptr %3, align 8, !tbaa !11
  br label %42

42:                                               ; preds = %40
  %43 = load ptr, ptr %3, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.StackItem, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %47, label %53

47:                                               ; preds = %42
  %48 = load ptr, ptr %3, align 8, !tbaa !11
  %49 = getelementptr inbounds %struct.StackItem, ptr %48, i32 0, i32 1
  %50 = load i8, ptr %49, align 4, !tbaa !10
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 98
  br i1 %52, label %55, label %53

53:                                               ; preds = %47, %42
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

55:                                               ; preds = %47
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = call i64 @stack_size(ptr noundef %2)
  %60 = icmp eq i64 %59, 1
  br i1 %60, label %63, label %61

61:                                               ; preds = %58
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

63:                                               ; preds = %58
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  %66 = getelementptr inbounds %struct.StackItem, ptr %8, i32 0, i32 0
  store i32 3, ptr %66, align 4, !tbaa !5
  %67 = getelementptr inbounds %struct.StackItem, ptr %8, i32 0, i32 1
  store i8 100, ptr %67, align 4, !tbaa !10
  call void @stack_push(ptr noundef %2, ptr noundef %8)
  %68 = getelementptr inbounds %struct.StackItem, ptr %9, i32 0, i32 0
  store i32 4, ptr %68, align 4, !tbaa !5
  %69 = getelementptr inbounds %struct.StackItem, ptr %9, i32 0, i32 1
  store i8 101, ptr %69, align 4, !tbaa !10
  call void @stack_push(ptr noundef %2, ptr noundef %9)
  br label %70

70:                                               ; preds = %65
  %71 = call i64 @stack_size(ptr noundef %2)
  %72 = icmp eq i64 %71, 3
  br i1 %72, label %75, label %73

73:                                               ; preds = %70
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

75:                                               ; preds = %70
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  %78 = call ptr @stack_pop(ptr noundef %2)
  store ptr %78, ptr %3, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %77
  %80 = load ptr, ptr %3, align 8, !tbaa !11
  %81 = getelementptr inbounds %struct.StackItem, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = icmp eq i32 %82, 4
  br i1 %83, label %84, label %90

84:                                               ; preds = %79
  %85 = load ptr, ptr %3, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct.StackItem, ptr %85, i32 0, i32 1
  %87 = load i8, ptr %86, align 4, !tbaa !10
  %88 = sext i8 %87 to i32
  %89 = icmp eq i32 %88, 101
  br i1 %89, label %92, label %90

90:                                               ; preds = %84, %79
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

92:                                               ; preds = %84
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  %95 = call ptr @stack_pop(ptr noundef %2)
  store ptr %95, ptr %3, align 8, !tbaa !11
  br label %96

96:                                               ; preds = %94
  %97 = load ptr, ptr %3, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.StackItem, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = icmp eq i32 %99, 3
  br i1 %100, label %101, label %107

101:                                              ; preds = %96
  %102 = load ptr, ptr %3, align 8, !tbaa !11
  %103 = getelementptr inbounds %struct.StackItem, ptr %102, i32 0, i32 1
  %104 = load i8, ptr %103, align 4, !tbaa !10
  %105 = sext i8 %104 to i32
  %106 = icmp eq i32 %105, 100
  br i1 %106, label %109, label %107

107:                                              ; preds = %101, %96
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

109:                                              ; preds = %101
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  %112 = call ptr @stack_pop(ptr noundef %2)
  store ptr %112, ptr %3, align 8, !tbaa !11
  br label %113

113:                                              ; preds = %111
  %114 = load ptr, ptr %3, align 8, !tbaa !11
  %115 = getelementptr inbounds %struct.StackItem, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %124

118:                                              ; preds = %113
  %119 = load ptr, ptr %3, align 8, !tbaa !11
  %120 = getelementptr inbounds %struct.StackItem, ptr %119, i32 0, i32 1
  %121 = load i8, ptr %120, align 4, !tbaa !10
  %122 = sext i8 %121 to i32
  %123 = icmp eq i32 %122, 97
  br i1 %123, label %126, label %124

124:                                              ; preds = %118, %113
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

126:                                              ; preds = %118
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  %130 = call i64 @stack_size(ptr noundef %2)
  %131 = icmp eq i64 %130, 0
  br i1 %131, label %134, label %132

132:                                              ; preds = %129
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

134:                                              ; preds = %129
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  %138 = call i32 @stack_empty(ptr noundef %2)
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %142, label %140

140:                                              ; preds = %137
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

142:                                              ; preds = %137
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  store i32 1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %145

145:                                              ; preds = %144, %140, %132, %124, %107, %90, %73, %61, %53, %36, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 88, ptr %2) #4
  %146 = load i32, ptr %1, align 4
  ret i32 %146
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @stack_pop(ptr noundef) #1

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

!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 = !{!"StackItem", !7, i64 0, !8, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !8, i64 4}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}


; 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.stack = type { [10 x %struct.StackItem], i64 }
%struct.StackItem = type { i32, i8 }

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 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: inlinehint nounwind uwtable
declare hidden void @stack_init(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @stack_size(ptr noundef) local_unnamed_addr #1

; 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
define dso_local range(i32 0, 2) i32 @test_stack_push_and_pop() local_unnamed_addr #3 {
  %1 = alloca %struct.stack, align 8
  %2 = alloca %struct.StackItem, align 4
  %3 = alloca %struct.StackItem, align 4
  %4 = alloca %struct.StackItem, align 4
  %5 = alloca %struct.StackItem, align 4
  %6 = alloca %struct.StackItem, align 4
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %1) #4
  call void @stack_init(ptr noundef nonnull %1)
  store i32 0, ptr %2, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 4
  store i8 97, ptr %7, align 4, !tbaa !10
  call void @stack_push(ptr noundef nonnull %1, ptr noundef nonnull %2)
  store i32 1, ptr %3, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %3, i64 4
  store i8 98, ptr %8, align 4, !tbaa !10
  call void @stack_push(ptr noundef nonnull %1, ptr noundef nonnull %3)
  store i32 2, ptr %4, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %4, i64 4
  store i8 99, ptr %9, align 4, !tbaa !10
  call void @stack_push(ptr noundef nonnull %1, ptr noundef nonnull %4)
  %10 = call i64 @stack_size(ptr noundef nonnull %1)
  %11 = icmp eq i64 %10, 3
  br i1 %11, label %12, label %.sink.split

12:                                               ; preds = %0
  %13 = call ptr @stack_pop(ptr noundef nonnull %1)
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = icmp eq i32 %14, 2
  br i1 %15, label %16, label %.sink.split

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %13, i64 4
  %18 = load i8, ptr %17, align 4, !tbaa !10
  %19 = icmp eq i8 %18, 99
  br i1 %19, label %20, label %.sink.split

20:                                               ; preds = %16
  %21 = call ptr @stack_pop(ptr noundef nonnull %1)
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = icmp eq i32 %22, 1
  br i1 %23, label %24, label %.sink.split

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %21, i64 4
  %26 = load i8, ptr %25, align 4, !tbaa !10
  %27 = icmp eq i8 %26, 98
  br i1 %27, label %28, label %.sink.split

28:                                               ; preds = %24
  %29 = call i64 @stack_size(ptr noundef nonnull %1)
  %30 = icmp eq i64 %29, 1
  br i1 %30, label %31, label %.sink.split

31:                                               ; preds = %28
  store i32 3, ptr %5, align 4, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %5, i64 4
  store i8 100, ptr %32, align 4, !tbaa !10
  call void @stack_push(ptr noundef nonnull %1, ptr noundef nonnull %5)
  store i32 4, ptr %6, align 4, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %6, i64 4
  store i8 101, ptr %33, align 4, !tbaa !10
  call void @stack_push(ptr noundef nonnull %1, ptr noundef nonnull %6)
  %34 = call i64 @stack_size(ptr noundef nonnull %1)
  %35 = icmp eq i64 %34, 3
  br i1 %35, label %36, label %.sink.split

36:                                               ; preds = %31
  %37 = call ptr @stack_pop(ptr noundef nonnull %1)
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = icmp eq i32 %38, 4
  br i1 %39, label %40, label %.sink.split

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %37, i64 4
  %42 = load i8, ptr %41, align 4, !tbaa !10
  %43 = icmp eq i8 %42, 101
  br i1 %43, label %44, label %.sink.split

44:                                               ; preds = %40
  %45 = call ptr @stack_pop(ptr noundef nonnull %1)
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = icmp eq i32 %46, 3
  br i1 %47, label %48, label %.sink.split

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %45, i64 4
  %50 = load i8, ptr %49, align 4, !tbaa !10
  %51 = icmp eq i8 %50, 100
  br i1 %51, label %52, label %.sink.split

52:                                               ; preds = %48
  %53 = call ptr @stack_pop(ptr noundef nonnull %1)
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %.sink.split

56:                                               ; preds = %52
  %57 = getelementptr inbounds i8, ptr %53, i64 4
  %58 = load i8, ptr %57, align 4, !tbaa !10
  %59 = icmp eq i8 %58, 97
  br i1 %59, label %60, label %.sink.split

60:                                               ; preds = %56
  %61 = call i64 @stack_size(ptr noundef nonnull %1)
  %62 = icmp eq i64 %61, 0
  br i1 %62, label %63, label %.sink.split

63:                                               ; preds = %60
  %64 = call i32 @stack_empty(ptr noundef nonnull %1)
  %.not = icmp eq i32 %64, 0
  br i1 %.not, label %.sink.split, label %66

.sink.split:                                      ; preds = %63, %60, %52, %56, %44, %48, %36, %40, %31, %28, %20, %24, %12, %16, %0
  %.str.sink = phi ptr [ @.str.2, %0 ], [ @.str.3, %16 ], [ @.str.3, %12 ], [ @.str.4, %24 ], [ @.str.4, %20 ], [ @.str.5, %28 ], [ @.str.2, %31 ], [ @.str.6, %40 ], [ @.str.6, %36 ], [ @.str.7, %48 ], [ @.str.7, %44 ], [ @.str.8, %56 ], [ @.str.8, %52 ], [ @.str.1, %60 ], [ @.str, %63 ]
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.sink)
  br label %66

66:                                               ; preds = %.sink.split, %63
  %.0 = phi i32 [ 1, %63 ], [ 0, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %1) #4
  ret i32 %.0
}

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

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

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

!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 = !{!"StackItem", !7, i64 0, !8, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !8, i64 4}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass