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

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

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__.method_check_type_params = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @method_check_type_params(ptr noundef %0, ptr noundef %1) #0 {
  %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 i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %26, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call ptr @ast_type(ptr noundef %27)
  store ptr %28, ptr %7, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call zeroext i1 @is_typecheck_error(ptr noundef %29)
  br i1 %30, label %31, label %32

31:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %166

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call ptr @ast_childidx(ptr noundef %33, i64 noundef 1)
  store ptr %34, ptr %9, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call i32 @ast_id(ptr noundef %35)
  %37 = icmp eq i32 %36, 153
  br i1 %37, label %38, label %39

38:                                               ; preds = %32
  br label %40

39:                                               ; preds = %32
  call void @ponyint_assert_fail(ptr noundef @.str, ptr noundef @.str.1, i64 noundef 49, ptr noundef @__func__.method_check_type_params)
  br label %40

40:                                               ; preds = %39, %38
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = call i32 @ast_id(ptr noundef %41)
  %43 = icmp eq i32 %42, 2
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %165

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = call ptr @ast_parent(ptr noundef %46)
  store ptr %47, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store ptr null, ptr %14, align 8, !tbaa !5
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = call ptr @ast_from(ptr noundef %48, i32 noundef 166)
  store ptr %49, ptr %14, align 8, !tbaa !5
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %54

52:                                               ; preds = %45
  %53 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %53, ptr %12, align 8, !tbaa !5
  br label %66

54:                                               ; preds = %45
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %61

57:                                               ; preds = %54
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = call ptr @ast_add(ptr noundef %58, ptr noundef %59)
  store ptr %60, ptr %13, align 8, !tbaa !5
  br label %65

61:                                               ; preds = %54
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = call ptr @ast_add_sibling(ptr noundef %62, ptr noundef %63)
  store ptr %64, ptr %13, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %61, %57
  br label %66

66:                                               ; preds = %65, %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %67, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store ptr null, ptr %17, align 8, !tbaa !5
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  call void @ast_inheritflags(ptr noundef %68)
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %72, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = call zeroext i1 @reify_defaults(ptr noundef %73, ptr noundef %74, i1 noundef zeroext true, ptr noundef %75)
  br i1 %76, label %79, label %77

77:                                               ; preds = %66
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  call void @ast_free_unattached(ptr noundef %78)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %164

79:                                               ; preds = %66
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = call zeroext i1 @check_constraints(ptr noundef %80, ptr noundef %81, ptr noundef %82, i1 noundef zeroext true, ptr noundef %83)
  br i1 %84, label %87, label %85

85:                                               ; preds = %79
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  call void @ast_free_unattached(ptr noundef %86)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %164

87:                                               ; preds = %79
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = call ptr @reify(ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, i1 noundef zeroext true)
  store ptr %92, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = call ptr @ast_childidx(ptr noundef %93, i64 noundef 1)
  store ptr %94, ptr %9, align 8, !tbaa !5
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = call ptr @ast_from(ptr noundef %95, i32 noundef 2)
  call void @ast_replace(ptr noundef %9, ptr noundef %96)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load ptr, ptr %97, align 8, !tbaa !5
  store ptr %98, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store ptr null, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  store ptr null, ptr %21, align 8, !tbaa !5
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = call i32 @ast_id(ptr noundef %100)
  %102 = call ptr @ast_from(ptr noundef %99, i32 noundef %101)
  store ptr %102, ptr %21, align 8, !tbaa !5
  %103 = load ptr, ptr %19, align 8, !tbaa !5
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %107

105:                                              ; preds = %87
  %106 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %106, ptr %19, align 8, !tbaa !5
  br label %119

107:                                              ; preds = %87
  %108 = load ptr, ptr %20, align 8, !tbaa !5
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %114

110:                                              ; preds = %107
  %111 = load ptr, ptr %19, align 8, !tbaa !5
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = call ptr @ast_add(ptr noundef %111, ptr noundef %112)
  store ptr %113, ptr %20, align 8, !tbaa !5
  br label %118

114:                                              ; preds = %107
  %115 = load ptr, ptr %20, align 8, !tbaa !5
  %116 = load ptr, ptr %21, align 8, !tbaa !5
  %117 = call ptr @ast_add_sibling(ptr noundef %115, ptr noundef %116)
  store ptr %117, ptr %20, align 8, !tbaa !5
  br label %118

118:                                              ; preds = %114, %110
  br label %119

119:                                              ; preds = %118, %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %120 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %120, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  store ptr null, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  store ptr null, ptr %24, align 8, !tbaa !5
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  %122 = icmp eq ptr %121, null
  br i1 %122, label %123, label %125

123:                                              ; preds = %119
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %124, ptr %22, align 8, !tbaa !5
  br label %137

125:                                              ; preds = %119
  %126 = load ptr, ptr %23, align 8, !tbaa !5
  %127 = icmp eq ptr %126, null
  br i1 %127, label %128, label %132

128:                                              ; preds = %125
  %129 = load ptr, ptr %22, align 8, !tbaa !5
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = call ptr @ast_add(ptr noundef %129, ptr noundef %130)
  store ptr %131, ptr %23, align 8, !tbaa !5
  br label %136

132:                                              ; preds = %125
  %133 = load ptr, ptr %23, align 8, !tbaa !5
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = call ptr @ast_add_sibling(ptr noundef %133, ptr noundef %134)
  store ptr %135, ptr %23, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %132, %128
  br label %137

137:                                              ; preds = %136, %123
  %138 = load ptr, ptr %22, align 8, !tbaa !5
  %139 = icmp eq ptr %138, null
  br i1 %139, label %140, label %142

140:                                              ; preds = %137
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %141, ptr %22, align 8, !tbaa !5
  br label %154

142:                                              ; preds = %137
  %143 = load ptr, ptr %23, align 8, !tbaa !5
  %144 = icmp eq ptr %143, null
  br i1 %144, label %145, label %149

145:                                              ; preds = %142
  %146 = load ptr, ptr %22, align 8, !tbaa !5
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = call ptr @ast_add(ptr noundef %146, ptr noundef %147)
  store ptr %148, ptr %23, align 8, !tbaa !5
  br label %153

149:                                              ; preds = %142
  %150 = load ptr, ptr %23, align 8, !tbaa !5
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = call ptr @ast_add_sibling(ptr noundef %150, ptr noundef %151)
  store ptr %152, ptr %23, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %149, %145
  br label %154

154:                                              ; preds = %153, %140
  %155 = load ptr, ptr %22, align 8, !tbaa !5
  call void @ast_inheritflags(ptr noundef %155)
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = load ptr, ptr %23, align 8, !tbaa !5
  %158 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  call void @ast_replace(ptr noundef %159, ptr noundef %160)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  call void @ast_settype(ptr noundef %162, ptr noundef %163)
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %164

164:                                              ; preds = %154, %85, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %165

165:                                              ; preds = %164, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %166

166:                                              ; preds = %165, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %167 = load i1, ptr %3, align 1
  ret i1 %167
}

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

declare ptr @ast_type(ptr noundef) #2

declare zeroext i1 @is_typecheck_error(ptr noundef) #2

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

declare i32 @ast_id(ptr noundef) #2

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

declare ptr @ast_parent(ptr noundef) #2

declare ptr @ast_from(ptr noundef, i32 noundef) #2

declare ptr @ast_add(ptr noundef, ptr noundef) #2

declare ptr @ast_add_sibling(ptr noundef, ptr noundef) #2

declare void @ast_inheritflags(ptr noundef) #2

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

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

declare void @ast_free_unattached(ptr noundef) #2

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

declare ptr @reify(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare void @ast_replace(ptr noundef, ptr noundef) #2

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

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


; 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 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@__func__.method_check_type_params = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @method_check_type_params(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = load ptr, ptr %1, align 8, !tbaa !5
  %5 = tail call ptr @ast_type(ptr noundef %4) #3
  %6 = tail call zeroext i1 @is_typecheck_error(ptr noundef %5) #3
  br i1 %6, label %42, label %7

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %8 = tail call ptr @ast_childidx(ptr noundef %5, i64 noundef 1) #3
  %9 = tail call i32 @ast_id(ptr noundef %5) #3
  %10 = icmp eq i32 %9, 153
  br i1 %10, label %12, label %11

11:                                               ; preds = %7
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 49, ptr noundef nonnull @__func__.method_check_type_params) #3
  br label %12

12:                                               ; preds = %7, %11
  %13 = tail call i32 @ast_id(ptr noundef %8) #3
  %14 = icmp eq i32 %13, 2
  br i1 %14, label %41, label %15

15:                                               ; preds = %12
  %16 = tail call ptr @ast_parent(ptr noundef %4) #3
  %17 = tail call ptr @ast_from(ptr noundef %16, i32 noundef 166) #3
  tail call void @ast_inheritflags(ptr noundef %17) #3
  %18 = tail call zeroext i1 @reify_defaults(ptr noundef %8, ptr noundef %17, i1 noundef zeroext true, ptr noundef %0) #3
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  tail call void @ast_free_unattached(ptr noundef %17) #3
  br label %41

20:                                               ; preds = %15
  %21 = tail call zeroext i1 @check_constraints(ptr noundef %4, ptr noundef %8, ptr noundef %17, i1 noundef zeroext true, ptr noundef %0) #3
  br i1 %21, label %23, label %22

22:                                               ; preds = %20
  tail call void @ast_free_unattached(ptr noundef %17) #3
  br label %41

23:                                               ; preds = %20
  %24 = tail call ptr @reify(ptr noundef %5, ptr noundef %8, ptr noundef %17, ptr noundef %0, i1 noundef zeroext true) #3
  %25 = tail call ptr @ast_childidx(ptr noundef %24, i64 noundef 1) #3
  store ptr %25, ptr %3, align 8, !tbaa !5
  %26 = tail call ptr @ast_from(ptr noundef %25, i32 noundef 2) #3
  call void @ast_replace(ptr noundef nonnull %3, ptr noundef %26) #3
  %27 = load ptr, ptr %1, align 8, !tbaa !5
  %28 = call i32 @ast_id(ptr noundef %4) #3
  %29 = call ptr @ast_from(ptr noundef %27, i32 noundef %28) #3
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %33

31:                                               ; preds = %23
  %32 = icmp eq ptr %4, null
  br i1 %32, label %39, label %.thread76

33:                                               ; preds = %23
  %34 = call ptr @ast_add(ptr noundef nonnull %29, ptr noundef %4) #3
  %35 = icmp eq ptr %34, null
  br i1 %35, label %.thread76, label %37

.thread76:                                        ; preds = %31, %33
  %.0677479 = phi ptr [ %29, %33 ], [ %4, %31 ]
  %36 = call ptr @ast_add(ptr noundef nonnull %.0677479, ptr noundef %17) #3
  br label %39

37:                                               ; preds = %33
  %38 = call ptr @ast_add_sibling(ptr noundef nonnull %34, ptr noundef %17) #3
  br label %39

39:                                               ; preds = %31, %.thread76, %37
  %.168 = phi ptr [ %.0677479, %.thread76 ], [ %29, %37 ], [ %17, %31 ]
  call void @ast_inheritflags(ptr noundef %.168) #3
  call void @ast_replace(ptr noundef nonnull %1, ptr noundef %29) #3
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  call void @ast_settype(ptr noundef %40, ptr noundef %24) #3
  br label %41

41:                                               ; preds = %19, %22, %39, %12
  %.1 = phi i1 [ true, %12 ], [ true, %39 ], [ false, %22 ], [ false, %19 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br label %42

42:                                               ; preds = %2, %41
  %.2 = phi i1 [ %.1, %41 ], [ false, %2 ]
  ret i1 %.2
}

; 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_type(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @ast_id(ptr noundef) local_unnamed_addr #2

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

declare ptr @ast_parent(ptr noundef) local_unnamed_addr #2

declare ptr @ast_from(ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @ast_add(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ast_add_sibling(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @ast_inheritflags(ptr noundef) local_unnamed_addr #2

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

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

declare void @ast_free_unattached(ptr noundef) local_unnamed_addr #2

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

declare ptr @reify(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @ast_replace(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass