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

; 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.pass_opt_t = type { i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i64, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.typecheck_t, ptr, ptr }
%struct.typecheck_t = type { ptr, %struct.typecheck_stats_t, ptr }
%struct.typecheck_stats_t = type { i64, i64, i64, i64 }

@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@__func__.expr_nominal = external hidden unnamed_addr constant [13 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [73 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

declare i32 @ast_id(ptr noundef) #1

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

declare ptr @ast_print_type(ptr noundef) #1

declare void @ast_error(ptr noundef, ptr noundef, ptr noundef, ...) #1

declare ptr @ast_childidx(ptr noundef, i64 noundef) #1

declare ptr @ast_child(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @expr_nominal(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 i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call zeroext i1 @names_nominal(ptr noundef %16, ptr noundef %18, ptr noundef %19, i1 noundef zeroext true)
  br i1 %20, label %22, label %21

21:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %120

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %24, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call i32 @ast_id(ptr noundef %25)
  switch i32 %26, label %32 [
    i32 187, label %27
    i32 151, label %33
  ]

27:                                               ; preds = %22
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call i32 @flatten_typeparamref(ptr noundef %28, ptr noundef %29)
  %31 = icmp eq i32 %30, 0
  store i1 %31, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %119

32:                                               ; preds = %22
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %119

33:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call ptr @ast_data(ptr noundef %34)
  store ptr %35, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %33
  br label %40

39:                                               ; preds = %33
  call void @ponyint_assert_fail(ptr noundef @.str.16, ptr noundef @.str.2, i64 noundef 946, ptr noundef @__func__.expr_nominal)
  br label %40

40:                                               ; preds = %39, %38
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = call zeroext i1 @is_pointer(ptr noundef %41)
  br i1 %42, label %46, label %43

43:                                               ; preds = %40
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call zeroext i1 @is_literal(ptr noundef %44, ptr noundef @.str.35)
  br i1 %45, label %46, label %47

46:                                               ; preds = %43, %40
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %118

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call ptr @ast_childidx(ptr noundef %48, i64 noundef 1)
  store ptr %49, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call ptr @ast_childidx(ptr noundef %50, i64 noundef 2)
  store ptr %51, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = call zeroext i1 @reify_defaults(ptr noundef %52, ptr noundef %53, i1 noundef zeroext true, ptr noundef %54)
  br i1 %55, label %57, label %56

56:                                               ; preds = %47
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %117

57:                                               ; preds = %47
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = call zeroext i1 @is_nullable_pointer(ptr noundef %58)
  br i1 %59, label %60, label %111

60:                                               ; preds = %57
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = call i64 @ast_childcount(ptr noundef %61)
  %63 = icmp eq i64 %62, 1
  br i1 %63, label %64, label %65

64:                                               ; preds = %60
  br label %66

65:                                               ; preds = %60
  call void @ponyint_assert_fail(ptr noundef @.str.36, ptr noundef @.str.2, i64 noundef 964, ptr noundef @__func__.expr_nominal)
  br label %66

66:                                               ; preds = %65, %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = call ptr @ast_child(ptr noundef %67)
  store ptr %68, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call ptr @ast_child(ptr noundef %69)
  store ptr %70, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  store i8 0, ptr %13, align 1, !tbaa !9
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = call i32 @ast_id(ptr noundef %71)
  switch i32 %72, label %97 [
    i32 151, label %73
    i32 187, label %85
  ]

73:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = call ptr @ast_data(ptr noundef %74)
  store ptr %75, ptr %14, align 8, !tbaa !5
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  br label %80

79:                                               ; preds = %73
  call void @ponyint_assert_fail(ptr noundef @.str.16, ptr noundef @.str.2, i64 noundef 974, ptr noundef @__func__.expr_nominal)
  br label %80

80:                                               ; preds = %79, %78
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = call i32 @ast_id(ptr noundef %81)
  %83 = icmp eq i32 %82, 75
  %84 = zext i1 %83 to i8
  store i8 %84, ptr %13, align 1, !tbaa !9
  store i32 3, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %98

85:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = call ptr @ast_data(ptr noundef %86)
  store ptr %87, ptr %15, align 8, !tbaa !5
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %91

90:                                               ; preds = %85
  br label %92

91:                                               ; preds = %85
  call void @ponyint_assert_fail(ptr noundef @.str.16, ptr noundef @.str.2, i64 noundef 983, ptr noundef @__func__.expr_nominal)
  br label %92

92:                                               ; preds = %91, %90
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = icmp eq ptr %93, %94
  %96 = zext i1 %95 to i8
  store i8 %96, ptr %13, align 1, !tbaa !9
  store i32 3, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %98

97:                                               ; preds = %66
  br label %98

98:                                               ; preds = %97, %92, %80
  %99 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %100 = trunc i8 %99 to i1
  br i1 %100, label %109, label %101

101:                                              ; preds = %98
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.pass_opt_t, ptr %102, i32 0, i32 36
  %104 = getelementptr inbounds %struct.typecheck_t, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !13
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = call ptr @ast_print_type(ptr noundef %107)
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %105, ptr noundef %106, ptr noundef @.str.37, ptr noundef %108)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %110

109:                                              ; preds = %98
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %110

110:                                              ; preds = %109, %101
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %117

111:                                              ; preds = %57
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = call zeroext i1 @check_constraints(ptr noundef %112, ptr noundef %113, ptr noundef %114, i1 noundef zeroext true, ptr noundef %115)
  store i1 %116, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %117

117:                                              ; preds = %111, %110, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %118

118:                                              ; preds = %117, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %119

119:                                              ; preds = %118, %32, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %120

120:                                              ; preds = %119, %21
  %121 = load i1, ptr %3, align 1
  ret i1 %121
}

declare ptr @ast_data(ptr noundef) #1

declare zeroext i1 @names_nominal(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #1

declare i32 @flatten_typeparamref(ptr noundef, ptr noundef) #1

declare zeroext i1 @is_pointer(ptr noundef) #1

declare zeroext i1 @is_literal(ptr noundef, ptr noundef) #1

declare zeroext i1 @reify_defaults(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) #1

declare zeroext i1 @is_nullable_pointer(ptr noundef) #1

declare i64 @ast_childcount(ptr noundef) #1

declare zeroext i1 @check_constraints(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) #1

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

!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 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !6, i64 216}
!14 = !{!"pass_opt_t", !15, i64 0, !15, i64 4, !10, i64 8, !10, i64 9, !10, i64 10, !10, i64 11, !10, i64 12, !10, i64 13, !10, i64 14, !10, i64 15, !10, i64 16, !10, i64 17, !10, i64 18, !10, i64 19, !10, i64 20, !10, i64 21, !15, i64 24, !16, i64 32, !10, i64 40, !10, i64 41, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !17, i64 176, !6, i64 224, !6, i64 232}
!15 = !{!"int", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"typecheck_t", !6, i64 0, !18, i64 8, !6, i64 40}
!18 = !{!"typecheck_stats_t", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}


; 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.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@__func__.expr_nominal = external hidden unnamed_addr constant [13 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [73 x i8], align 1

declare i32 @ast_id(ptr noundef) local_unnamed_addr #0

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

declare ptr @ast_print_type(ptr noundef) local_unnamed_addr #0

declare void @ast_error(ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

declare ptr @ast_childidx(ptr noundef, i64 noundef) local_unnamed_addr #0

declare ptr @ast_child(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @expr_nominal(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr %1, align 8, !tbaa !5
  %4 = tail call zeroext i1 @names_nominal(ptr noundef %0, ptr noundef %3, ptr noundef nonnull %1, i1 noundef zeroext true) #2
  br i1 %4, label %5, label %48

5:                                                ; preds = %2
  %6 = load ptr, ptr %1, align 8, !tbaa !5
  %7 = tail call i32 @ast_id(ptr noundef %6) #2
  switch i32 %7, label %48 [
    i32 187, label %8
    i32 151, label %11
  ]

8:                                                ; preds = %5
  %9 = tail call i32 @flatten_typeparamref(ptr noundef %0, ptr noundef %6) #2
  %10 = icmp eq i32 %9, 0
  br label %48

11:                                               ; preds = %5
  %12 = tail call ptr @ast_data(ptr noundef %6) #2
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %13, label %14

13:                                               ; preds = %11
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.2, i64 noundef 946, ptr noundef nonnull @__func__.expr_nominal) #2
  br label %14

14:                                               ; preds = %11, %13
  %15 = tail call zeroext i1 @is_pointer(ptr noundef %6) #2
  br i1 %15, label %48, label %16

16:                                               ; preds = %14
  %17 = tail call zeroext i1 @is_literal(ptr noundef %6, ptr noundef nonnull @.str.35) #2
  br i1 %17, label %48, label %18

18:                                               ; preds = %16
  %19 = tail call ptr @ast_childidx(ptr noundef %12, i64 noundef 1) #2
  %20 = tail call ptr @ast_childidx(ptr noundef %6, i64 noundef 2) #2
  %21 = tail call zeroext i1 @reify_defaults(ptr noundef %19, ptr noundef %20, i1 noundef zeroext true, ptr noundef %0) #2
  br i1 %21, label %22, label %48

22:                                               ; preds = %18
  %23 = tail call zeroext i1 @is_nullable_pointer(ptr noundef %6) #2
  br i1 %23, label %24, label %46

24:                                               ; preds = %22
  %25 = tail call i64 @ast_childcount(ptr noundef %20) #2
  %26 = icmp eq i64 %25, 1
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.2, i64 noundef 964, ptr noundef nonnull @__func__.expr_nominal) #2
  br label %28

28:                                               ; preds = %24, %27
  %29 = tail call ptr @ast_child(ptr noundef %19) #2
  %30 = tail call ptr @ast_child(ptr noundef %20) #2
  %31 = tail call i32 @ast_id(ptr noundef %30) #2
  switch i32 %31, label %.thread [
    i32 151, label %32
    i32 187, label %35
  ]

32:                                               ; preds = %28
  %33 = tail call ptr @ast_data(ptr noundef %30) #2
  %.not38 = icmp eq ptr %33, null
  br i1 %.not38, label %34, label %40

34:                                               ; preds = %32
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.2, i64 noundef 974, ptr noundef nonnull @__func__.expr_nominal) #2
  br label %40

35:                                               ; preds = %28
  %36 = tail call ptr @ast_data(ptr noundef %30) #2
  %.not37 = icmp eq ptr %36, null
  br i1 %.not37, label %37, label %38

37:                                               ; preds = %35
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.2, i64 noundef 983, ptr noundef nonnull @__func__.expr_nominal) #2
  br label %38

38:                                               ; preds = %35, %37
  %39 = icmp eq ptr %36, %29
  br i1 %39, label %48, label %.thread

40:                                               ; preds = %34, %32
  %41 = tail call i32 @ast_id(ptr noundef %33) #2
  %42 = icmp eq i32 %41, 75
  br i1 %42, label %48, label %.thread

.thread:                                          ; preds = %28, %38, %40
  %43 = getelementptr inbounds i8, ptr %0, i64 216
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = tail call ptr @ast_print_type(ptr noundef %6) #2
  tail call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %44, ptr noundef %6, ptr noundef nonnull @.str.37, ptr noundef %45) #2
  br label %48

46:                                               ; preds = %22
  %47 = tail call zeroext i1 @check_constraints(ptr noundef %20, ptr noundef %19, ptr noundef %20, i1 noundef zeroext true, ptr noundef %0) #2
  br label %48

48:                                               ; preds = %38, %8, %5, %46, %18, %40, %.thread, %14, %16, %2
  %.4 = phi i1 [ false, %2 ], [ %10, %8 ], [ true, %5 ], [ true, %16 ], [ true, %14 ], [ %47, %46 ], [ false, %18 ], [ true, %40 ], [ false, %.thread ], [ true, %38 ]
  ret i1 %.4
}

declare ptr @ast_data(ptr noundef) local_unnamed_addr #0

declare zeroext i1 @names_nominal(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #0

declare i32 @flatten_typeparamref(ptr noundef, ptr noundef) local_unnamed_addr #0

declare zeroext i1 @is_pointer(ptr noundef) local_unnamed_addr #0

declare zeroext i1 @is_literal(ptr noundef, ptr noundef) local_unnamed_addr #0

declare zeroext i1 @reify_defaults(ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

declare zeroext i1 @is_nullable_pointer(ptr noundef) local_unnamed_addr #0

declare i64 @ast_childcount(ptr noundef) local_unnamed_addr #0

declare zeroext i1 @check_constraints(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #0

attributes #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 = { 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 = { 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 216}
!10 = !{!"pass_opt_t", !11, i64 0, !11, i64 4, !12, i64 8, !12, i64 9, !12, i64 10, !12, i64 11, !12, i64 12, !12, i64 13, !12, i64 14, !12, i64 15, !12, i64 16, !12, i64 17, !12, i64 18, !12, i64 19, !12, i64 20, !12, i64 21, !11, i64 24, !13, i64 32, !12, i64 40, !12, i64 41, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !14, i64 176, !6, i64 224, !6, i64 232}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"typecheck_t", !6, i64 0, !15, i64 8, !6, i64 40}
!15 = !{!"typecheck_stats_t", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass