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

; 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.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@__func__.expr_if = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1

declare i32 @ast_id(ptr noundef) #0

declare void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 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

declare ptr @ast_parent(ptr noundef) #0

declare ptr @ast_sibling(ptr noundef) #0

declare ptr @ast_type(ptr noundef) #0

declare zeroext i1 @is_typecheck_error(ptr noundef) #0

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare ptr @control_type_add_branch(ptr noundef, ptr noundef, ptr noundef) #0

declare void @ast_settype(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @expr_if(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 ptr, align 8
  %9 = alloca [4 x ptr], align 16
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call i32 @ast_id(ptr noundef %13)
  %15 = icmp eq i32 %14, 108
  br i1 %15, label %20, label %16

16:                                               ; preds = %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call i32 @ast_id(ptr noundef %17)
  %19 = icmp eq i32 %18, 109
  br i1 %19, label %20, label %21

20:                                               ; preds = %16, %2
  br label %22

21:                                               ; preds = %16
  call void @ponyint_assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i64 noundef 84, ptr noundef @__func__.expr_if)
  br label %22

22:                                               ; preds = %21, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #3
  store ptr %6, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds ptr, ptr %9, i64 1
  store ptr %7, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds ptr, ptr %9, i64 2
  store ptr %8, ptr %24, align 8, !tbaa !5
  %25 = getelementptr inbounds ptr, ptr %9, i64 3
  store ptr null, ptr %25, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds [4 x ptr], ptr %9, i64 0, i64 0
  call void @ast_get_children(ptr noundef %26, i64 noundef 3, ptr noundef %27)
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #3
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i32 @ast_id(ptr noundef %28)
  %30 = icmp eq i32 %29, 108
  br i1 %30, label %31, label %50

31:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call ptr @ast_type(ptr noundef %32)
  store ptr %33, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = call zeroext i1 @is_typecheck_error(ptr noundef %34)
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %47

37:                                               ; preds = %31
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = call zeroext i1 @is_bool(ptr noundef %38)
  br i1 %39, label %46, label %40

40:                                               ; preds = %37
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.pass_opt_t, ptr %41, i32 0, i32 36
  %43 = getelementptr inbounds %struct.typecheck_t, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %44, ptr noundef %45, ptr noundef @.str.4)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %47

46:                                               ; preds = %37
  store i32 0, ptr %11, align 4
  br label %47

47:                                               ; preds = %46, %40, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %48 = load i32, ptr %11, align 4
  switch i32 %48, label %112 [
    i32 0, label %49
  ]

49:                                               ; preds = %47
  br label %50

50:                                               ; preds = %49, %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store ptr null, ptr %12, align 8, !tbaa !5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = call i32 @ast_checkflag(ptr noundef %51, i32 noundef 1048576)
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %64, label %54

54:                                               ; preds = %50
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call ptr @ast_type(ptr noundef %55)
  %57 = call zeroext i1 @is_typecheck_error(ptr noundef %56)
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %111

59:                                               ; preds = %54
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = call ptr @control_type_add_branch(ptr noundef %60, ptr noundef %61, ptr noundef %62)
  store ptr %63, ptr %12, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %59, %50
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = call i32 @ast_checkflag(ptr noundef %65, i32 noundef 1048576)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %78, label %68

68:                                               ; preds = %64
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = call ptr @ast_type(ptr noundef %69)
  %71 = call zeroext i1 @is_typecheck_error(ptr noundef %70)
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %111

73:                                               ; preds = %68
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = call ptr @control_type_add_branch(ptr noundef %74, ptr noundef %75, ptr noundef %76)
  store ptr %77, ptr %12, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %73, %64
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = icmp eq ptr %79, null
  br i1 %80, label %81, label %98

81:                                               ; preds = %78
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = call ptr @ast_parent(ptr noundef %82)
  %84 = call i32 @ast_id(ptr noundef %83)
  %85 = icmp eq i32 %84, 175
  br i1 %85, label %86, label %97

86:                                               ; preds = %81
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = call ptr @ast_sibling(ptr noundef %87)
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %97

90:                                               ; preds = %86
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.pass_opt_t, ptr %91, i32 0, i32 36
  %93 = getelementptr inbounds %struct.typecheck_t, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = call ptr @ast_sibling(ptr noundef %95)
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %94, ptr noundef %96, ptr noundef @.str.5)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %111

97:                                               ; preds = %86, %81
  br label %98

98:                                               ; preds = %97, %78
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  call void @ast_settype(ptr noundef %99, ptr noundef %100)
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  call void @literal_unify_control(ptr noundef %101, ptr noundef %102)
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = call i32 @ast_id(ptr noundef %103)
  %105 = icmp eq i32 %104, 109
  br i1 %105, label %106, label %110

106:                                              ; preds = %98
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = call zeroext i1 @resolve_ifdef(ptr noundef %107, ptr noundef %108)
  store i1 %109, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %111

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

111:                                              ; preds = %110, %106, %90, %72, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %112

112:                                              ; preds = %111, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %113 = load i1, ptr %3, align 1
  ret i1 %113
}

declare void @ast_get_children(ptr noundef, i64 noundef, ptr noundef) #0

declare zeroext i1 @is_bool(ptr noundef) #0

declare i32 @ast_checkflag(ptr noundef, i32 noundef) #0

declare void @literal_unify_control(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @resolve_ifdef(ptr noundef, ptr noundef) #2

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

!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}


; 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 [76 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@__func__.expr_if = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare ptr @ast_parent(ptr noundef) local_unnamed_addr #0

declare ptr @ast_sibling(ptr noundef) local_unnamed_addr #0

declare ptr @ast_type(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare ptr @control_type_add_branch(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @ast_settype(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @expr_if(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [4 x ptr], align 16
  %7 = tail call i32 @ast_id(ptr noundef %1) #3
  %8 = icmp eq i32 %7, 108
  br i1 %8, label %13, label %9

9:                                                ; preds = %2
  %10 = tail call i32 @ast_id(ptr noundef %1) #3
  %11 = icmp eq i32 %10, 109
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i64 noundef 84, ptr noundef nonnull @__func__.expr_if) #3
  br label %13

13:                                               ; preds = %2, %9, %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #3
  store ptr %3, ptr %6, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %4, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %5, ptr %15, align 16, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @ast_get_children(ptr noundef %1, i64 noundef 3, ptr noundef nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  %17 = call i32 @ast_id(ptr noundef %1) #3
  %18 = icmp eq i32 %17, 108
  br i1 %18, label %19, label %29

19:                                               ; preds = %13
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = call ptr @ast_type(ptr noundef %20) #3
  %22 = call zeroext i1 @is_typecheck_error(ptr noundef %21) #3
  br i1 %22, label %.critedge, label %23

23:                                               ; preds = %19
  %24 = call zeroext i1 @is_bool(ptr noundef %21) #3
  br i1 %24, label %29, label %25

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %0, i64 216
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %27, ptr noundef %28, ptr noundef nonnull @.str.4) #3
  br label %.critedge

29:                                               ; preds = %23, %13
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call i32 @ast_checkflag(ptr noundef %30, i32 noundef 1048576) #3
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %32, label %39

32:                                               ; preds = %29
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call ptr @ast_type(ptr noundef %33) #3
  %35 = call zeroext i1 @is_typecheck_error(ptr noundef %34) #3
  br i1 %35, label %.critedge, label %36

36:                                               ; preds = %32
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = call ptr @control_type_add_branch(ptr noundef %0, ptr noundef null, ptr noundef %37) #3
  br label %39

39:                                               ; preds = %36, %29
  %.0 = phi ptr [ null, %29 ], [ %38, %36 ]
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call i32 @ast_checkflag(ptr noundef %40, i32 noundef 1048576) #3
  %.not27 = icmp eq i32 %41, 0
  br i1 %.not27, label %42, label %49

42:                                               ; preds = %39
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call ptr @ast_type(ptr noundef %43) #3
  %45 = call zeroext i1 @is_typecheck_error(ptr noundef %44) #3
  br i1 %45, label %.critedge, label %46

46:                                               ; preds = %42
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call ptr @control_type_add_branch(ptr noundef %0, ptr noundef %.0, ptr noundef %47) #3
  br label %49

49:                                               ; preds = %46, %39
  %.1 = phi ptr [ %.0, %39 ], [ %48, %46 ]
  %50 = icmp eq ptr %.1, null
  br i1 %50, label %51, label %61

51:                                               ; preds = %49
  %52 = call ptr @ast_parent(ptr noundef %1) #3
  %53 = call i32 @ast_id(ptr noundef %52) #3
  %54 = icmp eq i32 %53, 175
  br i1 %54, label %55, label %61

55:                                               ; preds = %51
  %56 = call ptr @ast_sibling(ptr noundef %1) #3
  %.not28 = icmp eq ptr %56, null
  br i1 %.not28, label %61, label %57

57:                                               ; preds = %55
  %58 = getelementptr inbounds i8, ptr %0, i64 216
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = call ptr @ast_sibling(ptr noundef %1) #3
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %59, ptr noundef %60, ptr noundef nonnull @.str.5) #3
  br label %.critedge

61:                                               ; preds = %51, %55, %49
  call void @ast_settype(ptr noundef %1, ptr noundef %.1) #3
  call void @literal_unify_control(ptr noundef %1, ptr noundef %0) #3
  %62 = call i32 @ast_id(ptr noundef %1) #3
  %63 = icmp eq i32 %62, 109
  br i1 %63, label %64, label %.critedge

64:                                               ; preds = %61
  %65 = call zeroext i1 @resolve_ifdef(ptr noundef %0, ptr noundef %1)
  br label %.critedge

.critedge:                                        ; preds = %25, %19, %57, %64, %32, %42, %61
  %.2 = phi i1 [ false, %57 ], [ %65, %64 ], [ false, %32 ], [ false, %42 ], [ true, %61 ], [ false, %19 ], [ false, %25 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i1 %.2
}

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

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

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

declare void @literal_unify_control(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @resolve_ifdef(ptr noundef, ptr noundef) local_unnamed_addr #2

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 = { 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 = { 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: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass