; LLVM IR from ponylang/ponyc :: src/libponyc/ast (ast)

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

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [83 x i8], align 1
@__func__.ast_dup_partial = 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: nounwind uwtable
declare dso_local ptr @ast_token(ptr noundef) #1

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

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

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

declare ptr @token_dup(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @ast_dup_partial(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2, i1 noundef zeroext %3, i1 noundef zeroext %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  %17 = zext i1 %2 to i8
  store i8 %17, ptr %9, align 1, !tbaa !9
  %18 = zext i1 %3 to i8
  store i8 %18, ptr %10, align 1, !tbaa !9
  %19 = zext i1 %4 to i8
  store i8 %19, ptr %11, align 1, !tbaa !9
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %5
  store ptr null, ptr %6, align 8
  br label %141

23:                                               ; preds = %5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call i32 @ast_id(ptr noundef %24)
  %26 = icmp ne i32 %25, 136
  br i1 %26, label %27, label %36

27:                                               ; preds = %23
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = call i32 @ast_id(ptr noundef %28)
  %30 = icmp ne i32 %29, 137
  br i1 %30, label %31, label %36

31:                                               ; preds = %27
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call i32 @ast_id(ptr noundef %32)
  %34 = icmp ne i32 %33, 138
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  br label %37

36:                                               ; preds = %31, %27, %23
  call void @ponyint_assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i64 noundef 485, ptr noundef @__func__.ast_dup_partial)
  br label %37

37:                                               ; preds = %36, %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ast_t, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = call ptr @token_dup(ptr noundef %40)
  %42 = call ptr @ast_token(ptr noundef %41)
  store ptr %42, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ast_t, ptr %43, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ast_t, ptr %46, i32 0, i32 2
  store ptr %45, ptr %47, align 8, !tbaa !14
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ast_t, ptr %48, i32 0, i32 7
  %50 = load i32, ptr %49, align 8, !tbaa !15
  %51 = and i32 %50, 67108863
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ast_t, ptr %52, i32 0, i32 7
  store i32 %51, ptr %53, align 8, !tbaa !15
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ast_t, ptr %55, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !16
  call void @set_scope_no_parent(ptr noundef %54, ptr noundef %57)
  %58 = load i8, ptr %10, align 1, !tbaa !9, !range !17, !noundef !18
  %59 = trunc i8 %58 to i1
  br i1 %59, label %60, label %65

60:                                               ; preds = %37
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = call ptr @ast_annotation(ptr noundef %62)
  %64 = call ptr @duplicate(ptr noundef null, ptr noundef %63)
  call void @ast_setannotation(ptr noundef %61, ptr noundef %64)
  br label %65

65:                                               ; preds = %60, %37
  %66 = load i8, ptr %9, align 1, !tbaa !9, !range !17, !noundef !18
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %73

68:                                               ; preds = %65
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = call ptr @ast_type(ptr noundef %70)
  %72 = call ptr @duplicate(ptr noundef null, ptr noundef %71)
  call void @ast_settype(ptr noundef %69, ptr noundef %72)
  br label %73

73:                                               ; preds = %68, %65
  %74 = load i8, ptr %11, align 1, !tbaa !9, !range !17, !noundef !18
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %88

76:                                               ; preds = %73
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ast_t, ptr %77, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !19
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %88

81:                                               ; preds = %76
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ast_t, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  %85 = call ptr @symtab_dup(ptr noundef %84)
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ast_t, ptr %86, i32 0, i32 1
  store ptr %85, ptr %87, align 8, !tbaa !19
  br label %88

88:                                               ; preds = %81, %76, %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ast_t, ptr %89, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  store ptr %91, ptr %13, align 8, !tbaa !5
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %139

94:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 0
  %97 = load i8, ptr %96, align 1, !tbaa !9, !range !17, !noundef !18
  %98 = trunc i8 %97 to i1
  br i1 %98, label %99, label %102

99:                                               ; preds = %94
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = call ptr @duplicate(ptr noundef null, ptr noundef %100)
  store ptr %101, ptr %14, align 8, !tbaa !5
  br label %104

102:                                              ; preds = %94
  %103 = call ptr @ast_blank(i32 noundef 2)
  store ptr %103, ptr %14, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %102, %99
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ast_t, ptr %106, i32 0, i32 4
  store ptr %105, ptr %107, align 8, !tbaa !20
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  call void @set_scope_and_parent(ptr noundef %108, ptr noundef %109)
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = call ptr @ast_sibling(ptr noundef %110)
  store ptr %111, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store i64 1, ptr %15, align 8, !tbaa !21
  br label %112

112:                                              ; preds = %133, %104
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = icmp ne ptr %113, null
  br i1 %114, label %115, label %138

115:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load i64, ptr %15, align 8, !tbaa !21
  %118 = getelementptr inbounds i8, ptr %116, i64 %117
  %119 = load i8, ptr %118, align 1, !tbaa !9, !range !17, !noundef !18
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %124

121:                                              ; preds = %115
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = call ptr @duplicate(ptr noundef null, ptr noundef %122)
  store ptr %123, ptr %16, align 8, !tbaa !5
  br label %126

124:                                              ; preds = %115
  %125 = call ptr @ast_blank(i32 noundef 2)
  store ptr %125, ptr %16, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %124, %121
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ast_t, ptr %128, i32 0, i32 5
  store ptr %127, ptr %129, align 8, !tbaa !23
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %130, ptr %14, align 8, !tbaa !5
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  call void @set_scope_and_parent(ptr noundef %131, ptr noundef %132)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %133

133:                                              ; preds = %126
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = call ptr @ast_sibling(ptr noundef %134)
  store ptr %135, ptr %13, align 8, !tbaa !5
  %136 = load i64, ptr %15, align 8, !tbaa !21
  %137 = add i64 %136, 1
  store i64 %137, ptr %15, align 8, !tbaa !21
  br label %112, !llvm.loop !24

138:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %139

139:                                              ; preds = %138, %88
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %140, ptr %6, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %141

141:                                              ; preds = %139, %22
  %142 = load ptr, ptr %6, align 8
  ret ptr %142
}

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

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

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

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

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

declare ptr @symtab_dup(ptr noundef) #2

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

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

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 = { "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 }

!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 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"ast_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !10, i64 60}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !13, i64 56}
!16 = !{!12, !6, i64 24}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!12, !6, i64 8}
!20 = !{!12, !6, i64 32}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!12, !6, i64 40}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [83 x i8], align 1
@__func__.ast_dup_partial = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @ast_token(ptr noundef) local_unnamed_addr #0

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

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @set_scope_no_parent(ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @token_dup(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden ptr @duplicate(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @ast_dup_partial(ptr noundef %0, ptr nocapture noundef readonly %1, i1 noundef zeroext %2, i1 noundef zeroext %3, i1 noundef zeroext %4) local_unnamed_addr #0 {
  %6 = icmp eq ptr %0, null
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %5
  %8 = tail call i32 @ast_id(ptr noundef nonnull %0)
  %.not = icmp eq i32 %8, 136
  br i1 %.not, label %13, label %9

9:                                                ; preds = %7
  %10 = tail call i32 @ast_id(ptr noundef nonnull %0)
  %.not49 = icmp eq i32 %10, 137
  br i1 %.not49, label %13, label %11

11:                                               ; preds = %9
  %12 = tail call i32 @ast_id(ptr noundef nonnull %0)
  %.not50 = icmp eq i32 %12, 138
  br i1 %.not50, label %13, label %14

13:                                               ; preds = %11, %9, %7
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i64 noundef 485, ptr noundef nonnull @__func__.ast_dup_partial) #2
  br label %14

14:                                               ; preds = %11, %13
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %16 = tail call ptr @token_dup(ptr noundef %15) #2
  %17 = tail call ptr @ast_token(ptr noundef %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %17, i64 16
  store ptr %19, ptr %20, align 8, !tbaa !12
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  %22 = load i32, ptr %21, align 8, !tbaa !13
  %23 = and i32 %22, 67108863
  %24 = getelementptr inbounds i8, ptr %17, i64 56
  store i32 %23, ptr %24, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  tail call void @set_scope_no_parent(ptr noundef %17, ptr noundef %26)
  br i1 %3, label %27, label %30

27:                                               ; preds = %14
  %28 = tail call ptr @ast_annotation(ptr noundef nonnull %0)
  %29 = tail call ptr @duplicate(ptr noundef null, ptr noundef %28)
  tail call void @ast_setannotation(ptr noundef nonnull %17, ptr noundef %29)
  br label %30

30:                                               ; preds = %27, %14
  br i1 %2, label %31, label %34

31:                                               ; preds = %30
  %32 = tail call ptr @ast_type(ptr noundef nonnull %0)
  %33 = tail call ptr @duplicate(ptr noundef null, ptr noundef %32)
  tail call void @ast_settype(ptr noundef nonnull %17, ptr noundef %33)
  br label %34

34:                                               ; preds = %31, %30
  br i1 %4, label %35, label %41

35:                                               ; preds = %34
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %.not51 = icmp eq ptr %37, null
  br i1 %.not51, label %41, label %38

38:                                               ; preds = %35
  %39 = tail call ptr @symtab_dup(ptr noundef nonnull %37) #2
  %40 = getelementptr inbounds i8, ptr %17, i64 8
  store ptr %39, ptr %40, align 8, !tbaa !15
  br label %41

41:                                               ; preds = %38, %35, %34
  %42 = getelementptr inbounds i8, ptr %0, i64 32
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %.not52 = icmp eq ptr %43, null
  br i1 %.not52, label %.loopexit, label %44

44:                                               ; preds = %41
  %45 = load i8, ptr %1, align 1, !tbaa !17, !range !18, !noundef !19
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %47, label %49

47:                                               ; preds = %44
  %48 = tail call ptr @duplicate(ptr noundef null, ptr noundef nonnull %43)
  br label %51

49:                                               ; preds = %44
  %50 = tail call ptr @ast_blank(i32 noundef 2)
  br label %51

51:                                               ; preds = %49, %47
  %.043 = phi ptr [ %48, %47 ], [ %50, %49 ]
  %52 = getelementptr inbounds i8, ptr %17, i64 32
  store ptr %.043, ptr %52, align 8, !tbaa !16
  tail call void @set_scope_and_parent(ptr noundef %.043, ptr noundef nonnull %17)
  %53 = tail call ptr @ast_sibling(ptr noundef nonnull %43)
  %.not5354 = icmp eq ptr %53, null
  br i1 %.not5354, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %51, %61
  %.04257 = phi i64 [ %64, %61 ], [ 1, %51 ]
  %.156 = phi ptr [ %.0, %61 ], [ %.043, %51 ]
  %.04455 = phi ptr [ %63, %61 ], [ %53, %51 ]
  %54 = getelementptr inbounds i8, ptr %1, i64 %.04257
  %55 = load i8, ptr %54, align 1, !tbaa !17, !range !18, !noundef !19
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %59

57:                                               ; preds = %.lr.ph
  %58 = tail call ptr @duplicate(ptr noundef null, ptr noundef nonnull %.04455)
  br label %61

59:                                               ; preds = %.lr.ph
  %60 = tail call ptr @ast_blank(i32 noundef 2)
  br label %61

61:                                               ; preds = %59, %57
  %.0 = phi ptr [ %58, %57 ], [ %60, %59 ]
  %62 = getelementptr inbounds i8, ptr %.156, i64 40
  store ptr %.0, ptr %62, align 8, !tbaa !20
  tail call void @set_scope_and_parent(ptr noundef %.0, ptr noundef %17)
  %63 = tail call ptr @ast_sibling(ptr noundef nonnull %.04455)
  %64 = add i64 %.04257, 1
  %.not53 = icmp eq ptr %63, null
  br i1 %.not53, label %.loopexit, label %.lr.ph, !llvm.loop !21

.loopexit:                                        ; preds = %61, %51, %41, %5
  %.045 = phi ptr [ null, %5 ], [ %17, %41 ], [ %17, %51 ], [ %17, %61 ]
  ret ptr %.045
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @ast_annotation(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @ast_type(ptr noundef) local_unnamed_addr #0

declare ptr @symtab_dup(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @set_scope_and_parent(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @ast_sibling(ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #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 #2 = { 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 = !{!"ast_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !11, i64 60}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !10, i64 56}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !7, i64 32}
!17 = !{!11, !11, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!6, !7, i64 40}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass