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

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

@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@__func__.literal_call = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [48 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

declare ptr @ast_data(ptr noundef) #1

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

declare zeroext i1 @is_typecheck_error(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @make_literal_type(ptr noundef) #2

declare i32 @ast_id(ptr noundef) #1

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

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

declare ptr @ast_type(ptr noundef) #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @literal_call(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 ptr, align 8
  %10 = alloca [5 x ptr], align 16
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  br label %21

20:                                               ; preds = %2
  call void @ponyint_assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i64 noundef 923, ptr noundef @__func__.literal_call)
  br label %21

21:                                               ; preds = %20, %19
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call i32 @ast_id(ptr noundef %22)
  %24 = icmp eq i32 %23, 177
  br i1 %24, label %25, label %26

25:                                               ; preds = %21
  br label %27

26:                                               ; preds = %21
  call void @ponyint_assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i64 noundef 924, ptr noundef @__func__.literal_call)
  br label %27

27:                                               ; preds = %26, %25
  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 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #3
  store ptr %6, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds ptr, ptr %10, i64 1
  store ptr %7, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds ptr, ptr %10, i64 2
  store ptr %8, ptr %29, align 8, !tbaa !5
  %30 = getelementptr inbounds ptr, ptr %10, i64 3
  store ptr %9, ptr %30, align 8, !tbaa !5
  %31 = getelementptr inbounds ptr, ptr %10, i64 4
  store ptr null, ptr %31, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds [5 x ptr], ptr %10, i64 0, i64 0
  call void @ast_get_children(ptr noundef %32, i64 noundef 4, ptr noundef %33)
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call ptr @ast_type(ptr noundef %34)
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = call zeroext i1 @is_typecheck_error(ptr noundef %36)
  br i1 %37, label %38, label %39

38:                                               ; preds = %27
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %129

39:                                               ; preds = %27
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = call i32 @ast_id(ptr noundef %40)
  %42 = icmp eq i32 %41, 159
  br i1 %42, label %43, label %49

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

49:                                               ; preds = %39
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = call i32 @ast_id(ptr noundef %50)
  %52 = icmp ne i32 %51, 161
  br i1 %52, label %53, label %54

53:                                               ; preds = %49
  store i1 true, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %129

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call ptr @ast_data(ptr noundef %55)
  store ptr %56, ptr %13, align 8, !tbaa !5
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  br label %61

60:                                               ; preds = %54
  call void @ponyint_assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i64 noundef 943, ptr noundef @__func__.literal_call)
  br label %61

61:                                               ; preds = %60, %59
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = call i64 @ast_childcount(ptr noundef %62)
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %61
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.pass_opt_t, ptr %66, i32 0, i32 36
  %68 = getelementptr inbounds %struct.typecheck_t, ptr %67, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %69, ptr noundef %70, ptr noundef @.str.10)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %128

71:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = call ptr @ast_child(ptr noundef %72)
  store ptr %73, ptr %14, align 8, !tbaa !5
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %110

76:                                               ; preds = %71
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = call zeroext i1 @unify(ptr noundef %77, ptr noundef %78, i1 noundef zeroext true)
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %127

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = call ptr @ast_type(ptr noundef %82)
  store ptr %83, ptr %15, align 8, !tbaa !5
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = call zeroext i1 @is_typecheck_error(ptr noundef %84)
  br i1 %85, label %86, label %87

86:                                               ; preds = %81
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %107

87:                                               ; preds = %81
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = call i32 @ast_id(ptr noundef %88)
  %90 = icmp ne i32 %89, 159
  br i1 %90, label %91, label %95

91:                                               ; preds = %87
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call zeroext i1 @coerce_literals(ptr noundef %6, ptr noundef %92, ptr noundef %93)
  store i1 %94, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %107

95:                                               ; preds = %87
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.lit_op_info_t, ptr %96, i32 0, i32 2
  %98 = load i8, ptr %97, align 8, !tbaa !16, !range !18, !noundef !19
  %99 = trunc i8 %98 to i1
  br i1 %99, label %106, label %100

100:                                              ; preds = %95
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.pass_opt_t, ptr %101, i32 0, i32 36
  %103 = getelementptr inbounds %struct.typecheck_t, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !9
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %104, ptr noundef %105, ptr noundef @.str.11)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %107

106:                                              ; preds = %95
  store i32 0, ptr %12, align 4
  br label %107

107:                                              ; preds = %106, %100, %91, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %108 = load i32, ptr %12, align 4
  switch i32 %108, label %127 [
    i32 0, label %109
  ]

109:                                              ; preds = %107
  br label %110

110:                                              ; preds = %109, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = call i64 @ast_childcount(ptr noundef %111)
  store i64 %112, ptr %16, align 8, !tbaa !20
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.lit_op_info_t, ptr %113, i32 0, i32 1
  %115 = load i64, ptr %114, align 8, !tbaa !21
  %116 = load i64, ptr %16, align 8, !tbaa !20
  %117 = icmp ne i64 %115, %116
  br i1 %117, label %118, label %124

118:                                              ; preds = %110
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.pass_opt_t, ptr %119, i32 0, i32 36
  %121 = getelementptr inbounds %struct.typecheck_t, ptr %120, i32 0, i32 2
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %122, ptr noundef %123, ptr noundef @.str.12)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %126

124:                                              ; preds = %110
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  call void @make_literal_type(ptr noundef %125)
  store i1 true, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %126

126:                                              ; preds = %124, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %127

127:                                              ; preds = %126, %107, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %128

128:                                              ; preds = %127, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %129

129:                                              ; preds = %128, %53, %43, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  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
  %130 = load i1, ptr %3, align 1
  ret i1 %130
}

declare i64 @ast_childcount(ptr noundef) #1

declare ptr @ast_child(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, !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}
!16 = !{!17, !12, i64 16}
!17 = !{!"lit_op_info_t", !6, i64 0, !13, i64 8, !12, i64 16, !12, i64 17}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!13, !13, i64 0}
!21 = !{!17, !13, i64 8}


; 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 [12 x i8], align 1
@__func__.literal_call = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [48 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

declare ptr @ast_data(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

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

; Function Attrs: nounwind uwtable
declare dso_local void @make_literal_type(ptr noundef) local_unnamed_addr #2

declare i32 @ast_id(ptr noundef) local_unnamed_addr #1

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

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

declare ptr @ast_type(ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @literal_call(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 ptr, align 8
  %7 = alloca [5 x ptr], align 16
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %8, label %9

8:                                                ; preds = %2
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i64 noundef 923, ptr noundef nonnull @__func__.literal_call) #3
  br label %9

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

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

13:                                               ; preds = %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 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #3
  store ptr %3, ptr %7, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %4, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %5, ptr %15, align 16, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %6, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr null, ptr %17, align 16, !tbaa !5
  call void @ast_get_children(ptr noundef %0, i64 noundef 4, ptr noundef nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #3
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call ptr @ast_type(ptr noundef %18) #3
  %20 = call zeroext i1 @is_typecheck_error(ptr noundef %19) #3
  br i1 %20, label %.thread, label %21

21:                                               ; preds = %13
  %22 = call i32 @ast_id(ptr noundef %19) #3
  %23 = icmp eq i32 %22, 159
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %1, i64 216
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %26, ptr noundef %0, ptr noundef nonnull @.str.8) #3
  br label %.thread

27:                                               ; preds = %21
  %28 = call i32 @ast_id(ptr noundef %19) #3
  %.not30 = icmp eq i32 %28, 161
  br i1 %.not30, label %29, label %.thread

29:                                               ; preds = %27
  %30 = call ptr @ast_data(ptr noundef %19) #3
  %.not31 = icmp eq ptr %30, null
  br i1 %.not31, label %31, label %32

31:                                               ; preds = %29
  call void @ponyint_assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i64 noundef 943, ptr noundef nonnull @__func__.literal_call) #3
  br label %32

32:                                               ; preds = %29, %31
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call i64 @ast_childcount(ptr noundef %33) #3
  %.not32 = icmp eq i64 %34, 0
  br i1 %.not32, label %39, label %35

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %1, i64 216
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %37, ptr noundef %38, ptr noundef nonnull @.str.10) #3
  br label %.thread

39:                                               ; preds = %32
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = call ptr @ast_child(ptr noundef %40) #3
  %.not33 = icmp eq ptr %41, null
  br i1 %.not33, label %58, label %42

42:                                               ; preds = %39
  %43 = call zeroext i1 @unify(ptr noundef nonnull %41, ptr noundef %1, i1 noundef zeroext true)
  br i1 %43, label %44, label %.thread

44:                                               ; preds = %42
  %45 = call ptr @ast_type(ptr noundef nonnull %41) #3
  %46 = call zeroext i1 @is_typecheck_error(ptr noundef %45) #3
  br i1 %46, label %.thread, label %47

47:                                               ; preds = %44
  %48 = call i32 @ast_id(ptr noundef %45) #3
  %.not34 = icmp eq i32 %48, 159
  br i1 %.not34, label %51, label %49

49:                                               ; preds = %47
  %50 = call zeroext i1 @coerce_literals(ptr noundef nonnull %3, ptr noundef %45, ptr noundef %1)
  br label %.thread

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %30, i64 16
  %53 = load i8, ptr %52, align 8, !tbaa !16, !range !18, !noundef !19
  %54 = trunc nuw i8 %53 to i1
  br i1 %54, label %58, label %55

55:                                               ; preds = %51
  %56 = getelementptr inbounds i8, ptr %1, i64 216
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %57, ptr noundef %0, ptr noundef nonnull @.str.11) #3
  br label %.thread

58:                                               ; preds = %51, %39
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call i64 @ast_childcount(ptr noundef %59) #3
  %61 = getelementptr inbounds i8, ptr %30, i64 8
  %62 = load i64, ptr %61, align 8, !tbaa !20
  %.not35 = icmp eq i64 %62, %60
  br i1 %.not35, label %66, label %63

63:                                               ; preds = %58
  %64 = getelementptr inbounds i8, ptr %1, i64 216
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %65, ptr noundef %0, ptr noundef nonnull @.str.12) #3
  br label %.thread

66:                                               ; preds = %58
  call void @make_literal_type(ptr noundef %0)
  br label %.thread

.thread:                                          ; preds = %44, %55, %49, %35, %63, %66, %42, %27, %13, %24
  %.4 = phi i1 [ false, %24 ], [ false, %13 ], [ true, %27 ], [ false, %35 ], [ false, %42 ], [ true, %66 ], [ false, %63 ], [ false, %44 ], [ false, %55 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  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 %.4
}

declare i64 @ast_childcount(ptr noundef) local_unnamed_addr #1

declare ptr @ast_child(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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, !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}
!16 = !{!17, !12, i64 16}
!17 = !{!"lit_op_info_t", !6, i64 0, !13, i64 8, !12, i64 16, !12, i64 17}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!17, !13, i64 8}


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