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

; 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.program_t = type { ptr, ptr, i32, ptr, ptr, i64, i64, ptr }
%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 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@__func__.program_lib_build_args = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 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 void @ponyint_assert_fail(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

declare i32 @ast_id(ptr noundef) #1

declare ptr @ast_data(ptr noundef) #1

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

declare zeroext i1 @is_path_absolute(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @program_lib_build_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %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 i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i8, align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %8
  br label %30

29:                                               ; preds = %8
  call void @ponyint_assert_fail(ptr noundef @.str, ptr noundef @.str.1, i64 noundef 182, ptr noundef @__func__.program_lib_build_args)
  br label %30

30:                                               ; preds = %29, %28
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = call i32 @ast_id(ptr noundef %31)
  %33 = icmp eq i32 %32, 136
  br i1 %33, label %34, label %35

34:                                               ; preds = %30
  br label %36

35:                                               ; preds = %30
  call void @ponyint_assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i64 noundef 183, ptr noundef @__func__.program_lib_build_args)
  br label %36

36:                                               ; preds = %35, %34
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %40

39:                                               ; preds = %36
  br label %41

40:                                               ; preds = %36
  call void @ponyint_assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i64 noundef 184, ptr noundef @__func__.program_lib_build_args)
  br label %41

41:                                               ; preds = %40, %39
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  br label %46

45:                                               ; preds = %41
  call void @ponyint_assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i64 noundef 185, ptr noundef @__func__.program_lib_build_args)
  br label %46

46:                                               ; preds = %45, %44
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %46
  br label %51

50:                                               ; preds = %46
  call void @ponyint_assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i64 noundef 186, ptr noundef @__func__.program_lib_build_args)
  br label %51

51:                                               ; preds = %50, %49
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  br label %56

55:                                               ; preds = %51
  call void @ponyint_assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i64 noundef 187, ptr noundef @__func__.program_lib_build_args)
  br label %56

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

61:                                               ; preds = %56
  br label %63

62:                                               ; preds = %56
  call void @ponyint_assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i64 noundef 190, ptr noundef @__func__.program_lib_build_args)
  br label %63

63:                                               ; preds = %62, %61
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.program_t, ptr %64, i32 0, i32 7
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = icmp eq ptr %66, null
  br i1 %67, label %68, label %69

68:                                               ; preds = %63
  br label %70

69:                                               ; preds = %63
  call void @ponyint_assert_fail(ptr noundef @.str.11, ptr noundef @.str.1, i64 noundef 191, ptr noundef @__func__.program_lib_build_args)
  br label %70

70:                                               ; preds = %69, %68
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.program_t, ptr %71, i32 0, i32 6
  store i64 256, ptr %72, align 8, !tbaa !13
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.program_t, ptr %73, i32 0, i32 6
  %75 = load i64, ptr %74, align 8, !tbaa !13
  %76 = call noalias ptr @ponyint_pool_alloc_size(i64 noundef %75)
  %77 = load ptr, ptr %17, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.program_t, ptr %77, i32 0, i32 7
  store ptr %76, ptr %78, align 8, !tbaa !9
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.program_t, ptr %79, i32 0, i32 7
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %81, i64 0
  store i8 0, ptr %82, align 1, !tbaa !14
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.program_t, ptr %83, i32 0, i32 5
  store i64 0, ptr %84, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.program_t, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  store ptr %87, ptr %18, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %109, %70
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  br label %112

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = call ptr @strlist_data(ptr noundef %93)
  store ptr %94, ptr %19, align 8, !tbaa !5
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %95, ptr noundef %96)
  %97 = load ptr, ptr %17, align 8, !tbaa !5
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %97, ptr noundef %98)
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %99, ptr noundef @.str.12)
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %108

102:                                              ; preds = %92
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %103, ptr noundef %104)
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %105, ptr noundef %106)
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %107, ptr noundef @.str.12)
  br label %108

108:                                              ; preds = %102, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = call ptr @strlist_next(ptr noundef %110)
  store ptr %111, ptr %18, align 8, !tbaa !5
  br label %88, !llvm.loop !17

112:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.pass_opt_t, ptr %113, i32 0, i32 20
  %115 = load ptr, ptr %114, align 8, !tbaa !19
  store ptr %115, ptr %20, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %146, %112
  %117 = load ptr, ptr %20, align 8, !tbaa !5
  %118 = icmp ne ptr %117, null
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  br label %149

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = call ptr @strlist_data(ptr noundef %122)
  %124 = call ptr @quoted_locator(ptr noundef %121, ptr noundef null, ptr noundef %123)
  store ptr %124, ptr %22, align 8, !tbaa !5
  %125 = load ptr, ptr %22, align 8, !tbaa !5
  %126 = icmp eq ptr %125, null
  br i1 %126, label %127, label %128

127:                                              ; preds = %120
  store i32 7, ptr %21, align 4
  br label %143

128:                                              ; preds = %120
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %129, ptr noundef %130)
  %131 = load ptr, ptr %17, align 8, !tbaa !5
  %132 = load ptr, ptr %22, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %131, ptr noundef %132)
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %133, ptr noundef @.str.12)
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = icmp ne ptr %134, null
  br i1 %135, label %136, label %142

136:                                              ; preds = %128
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %137, ptr noundef %138)
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = load ptr, ptr %22, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %139, ptr noundef %140)
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %141, ptr noundef @.str.12)
  br label %142

142:                                              ; preds = %136, %128
  store i32 0, ptr %21, align 4
  br label %143

143:                                              ; preds = %142, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %144 = load i32, ptr %21, align 4
  switch i32 %144, label %188 [
    i32 0, label %145
    i32 7, label %146
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145, %143
  %147 = load ptr, ptr %20, align 8, !tbaa !5
  %148 = call ptr @strlist_next(ptr noundef %147)
  store ptr %148, ptr %20, align 8, !tbaa !5
  br label %116, !llvm.loop !24

149:                                              ; preds = %119
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %150, ptr noundef %151)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.program_t, ptr %152, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !25
  store ptr %154, ptr %23, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %182, %149
  %156 = load ptr, ptr %23, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %185

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %160 = load ptr, ptr %23, align 8, !tbaa !5
  %161 = call ptr @strlist_data(ptr noundef %160)
  store ptr %161, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #3
  %162 = load ptr, ptr %24, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 1
  %164 = call zeroext i1 @is_path_absolute(ptr noundef %163)
  %165 = xor i1 %164, true
  %166 = zext i1 %165 to i8
  store i8 %166, ptr %25, align 1, !tbaa !26
  %167 = load i8, ptr %25, align 1, !tbaa !26, !range !27, !noundef !28
  %168 = trunc i8 %167 to i1
  br i1 %168, label %169, label %172

169:                                              ; preds = %159
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %170, ptr noundef %171)
  br label %172

172:                                              ; preds = %169, %159
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = load ptr, ptr %24, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %173, ptr noundef %174)
  %175 = load i8, ptr %25, align 1, !tbaa !26, !range !27, !noundef !28
  %176 = trunc i8 %175 to i1
  br i1 %176, label %177, label %180

177:                                              ; preds = %172
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  %179 = load ptr, ptr %16, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %178, ptr noundef %179)
  br label %180

180:                                              ; preds = %177, %172
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %181, ptr noundef @.str.12)
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br label %182

182:                                              ; preds = %180
  %183 = load ptr, ptr %23, align 8, !tbaa !5
  %184 = call ptr @strlist_next(ptr noundef %183)
  store ptr %184, ptr %23, align 8, !tbaa !5
  br label %155, !llvm.loop !29

185:                                              ; preds = %158
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = load ptr, ptr %14, align 8, !tbaa !5
  call void @append_to_args(ptr noundef %186, ptr noundef %187)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  ret void

188:                                              ; preds = %143
  unreachable
}

declare noalias ptr @ponyint_pool_alloc_size(i64 noundef) #1

declare ptr @strlist_data(ptr noundef) #1

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

declare ptr @strlist_next(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 56}
!10 = !{!"program_t", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 48, !6, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 48}
!14 = !{!7, !7, i64 0}
!15 = !{!10, !12, i64 40}
!16 = !{!10, !6, i64 24}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !6, i64 48}
!20 = !{!"pass_opt_t", !11, i64 0, !11, i64 4, !21, i64 8, !21, i64 9, !21, i64 10, !21, i64 11, !21, i64 12, !21, i64 13, !21, i64 14, !21, i64 15, !21, i64 16, !21, i64 17, !21, i64 18, !21, i64 19, !21, i64 20, !21, i64 21, !11, i64 24, !12, i64 32, !21, i64 40, !21, 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, !22, i64 176, !6, i64 224, !6, i64 232}
!21 = !{!"_Bool", !7, i64 0}
!22 = !{!"typecheck_t", !6, i64 0, !23, i64 8, !6, i64 40}
!23 = !{!"typecheck_stats_t", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!24 = distinct !{!24, !18}
!25 = !{!10, !6, i64 32}
!26 = !{!21, !21, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !18}


; 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 [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@__func__.program_lib_build_args = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [2 x i8], align 1

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

declare i32 @ast_id(ptr noundef) local_unnamed_addr #0

declare ptr @ast_data(ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @program_lib_build_args(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %9, label %10

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

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

13:                                               ; preds = %10
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i64 noundef 183, ptr noundef nonnull @__func__.program_lib_build_args) #2
  br label %14

14:                                               ; preds = %10, %13
  %.not67 = icmp eq ptr %4, null
  br i1 %.not67, label %15, label %16

15:                                               ; preds = %14
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i64 noundef 184, ptr noundef nonnull @__func__.program_lib_build_args) #2
  br label %16

16:                                               ; preds = %14, %15
  %.not68 = icmp eq ptr %5, null
  br i1 %.not68, label %17, label %18

17:                                               ; preds = %16
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i64 noundef 185, ptr noundef nonnull @__func__.program_lib_build_args) #2
  br label %18

18:                                               ; preds = %16, %17
  %.not69 = icmp eq ptr %6, null
  br i1 %.not69, label %19, label %20

19:                                               ; preds = %18
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i64 noundef 186, ptr noundef nonnull @__func__.program_lib_build_args) #2
  br label %20

20:                                               ; preds = %18, %19
  %.not70 = icmp eq ptr %7, null
  br i1 %.not70, label %21, label %22

21:                                               ; preds = %20
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i64 noundef 187, ptr noundef nonnull @__func__.program_lib_build_args) #2
  br label %22

22:                                               ; preds = %20, %21
  %23 = tail call ptr @ast_data(ptr noundef %0) #2
  %.not71 = icmp eq ptr %23, null
  br i1 %.not71, label %24, label %25

24:                                               ; preds = %22
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i64 noundef 190, ptr noundef nonnull @__func__.program_lib_build_args) #2
  br label %25

25:                                               ; preds = %22, %24
  %26 = getelementptr inbounds i8, ptr %23, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i64 noundef 191, ptr noundef nonnull @__func__.program_lib_build_args) #2
  br label %30

30:                                               ; preds = %25, %29
  %31 = getelementptr inbounds i8, ptr %23, i64 48
  store i64 256, ptr %31, align 8, !tbaa !12
  %32 = tail call noalias ptr @ponyint_pool_alloc_size(i64 noundef 256) #2
  store ptr %32, ptr %26, align 8, !tbaa !5
  store i8 0, ptr %32, align 1, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %23, i64 40
  store i64 0, ptr %33, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %23, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %.not7277 = icmp eq ptr %35, null
  br i1 %.not7277, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %30
  %.not76 = icmp eq ptr %3, null
  br i1 %.not76, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %.078.us = phi ptr [ %37, %.lr.ph.split.us ], [ %35, %.lr.ph ]
  %36 = tail call ptr @strlist_data(ptr noundef nonnull %.078.us) #2
  tail call void @append_to_args(ptr noundef %23, ptr noundef %2)
  tail call void @append_to_args(ptr noundef %23, ptr noundef %36)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull @.str.12)
  %37 = tail call ptr @strlist_next(ptr noundef nonnull %.078.us) #2
  %.not72.us = icmp eq ptr %37, null
  br i1 %.not72.us, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %30
  %38 = getelementptr inbounds i8, ptr %1, i64 48
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %.not7379 = icmp eq ptr %39, null
  br i1 %.not7379, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %._crit_edge
  %.not75 = icmp eq ptr %3, null
  br i1 %.not75, label %.lr.ph82.split.us, label %.lr.ph82.split

.lr.ph82.split.us:                                ; preds = %.lr.ph82, %44
  %.06380.us = phi ptr [ %45, %44 ], [ %39, %.lr.ph82 ]
  %40 = tail call ptr @strlist_data(ptr noundef nonnull %.06380.us) #2
  %41 = tail call ptr @quoted_locator(ptr noundef %1, ptr noundef null, ptr noundef %40)
  %42 = icmp eq ptr %41, null
  br i1 %42, label %44, label %43

43:                                               ; preds = %.lr.ph82.split.us
  tail call void @append_to_args(ptr noundef %23, ptr noundef %2)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull %41)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull @.str.12)
  br label %44

44:                                               ; preds = %43, %.lr.ph82.split.us
  %45 = tail call ptr @strlist_next(ptr noundef nonnull %.06380.us) #2
  %.not73.us = icmp eq ptr %45, null
  br i1 %.not73.us, label %._crit_edge83, label %.lr.ph82.split.us, !llvm.loop !23

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %.078 = phi ptr [ %47, %.lr.ph.split ], [ %35, %.lr.ph ]
  %46 = tail call ptr @strlist_data(ptr noundef nonnull %.078) #2
  tail call void @append_to_args(ptr noundef %23, ptr noundef %2)
  tail call void @append_to_args(ptr noundef %23, ptr noundef %46)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull @.str.12)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull %3)
  tail call void @append_to_args(ptr noundef %23, ptr noundef %46)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull @.str.12)
  %47 = tail call ptr @strlist_next(ptr noundef nonnull %.078) #2
  %.not72 = icmp eq ptr %47, null
  br i1 %.not72, label %._crit_edge, label %.lr.ph.split, !llvm.loop !16

._crit_edge83:                                    ; preds = %54, %44, %._crit_edge
  tail call void @append_to_args(ptr noundef %23, ptr noundef %4)
  %48 = getelementptr inbounds i8, ptr %23, i64 32
  %49 = load ptr, ptr %48, align 8, !tbaa !24
  %.not7484 = icmp eq ptr %49, null
  br i1 %.not7484, label %._crit_edge88, label %.lr.ph87

.lr.ph82.split:                                   ; preds = %.lr.ph82, %54
  %.06380 = phi ptr [ %55, %54 ], [ %39, %.lr.ph82 ]
  %50 = tail call ptr @strlist_data(ptr noundef nonnull %.06380) #2
  %51 = tail call ptr @quoted_locator(ptr noundef %1, ptr noundef null, ptr noundef %50)
  %52 = icmp eq ptr %51, null
  br i1 %52, label %54, label %53

53:                                               ; preds = %.lr.ph82.split
  tail call void @append_to_args(ptr noundef %23, ptr noundef %2)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull %51)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull @.str.12)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull %3)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull %51)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull @.str.12)
  br label %54

54:                                               ; preds = %53, %.lr.ph82.split
  %55 = tail call ptr @strlist_next(ptr noundef nonnull %.06380) #2
  %.not73 = icmp eq ptr %55, null
  br i1 %.not73, label %._crit_edge83, label %.lr.ph82.split, !llvm.loop !23

._crit_edge88:                                    ; preds = %.critedge, %._crit_edge83
  tail call void @append_to_args(ptr noundef %23, ptr noundef %5)
  ret void

.lr.ph87:                                         ; preds = %._crit_edge83, %.critedge
  %.06485 = phi ptr [ %60, %.critedge ], [ %49, %._crit_edge83 ]
  %56 = tail call ptr @strlist_data(ptr noundef nonnull %.06485) #2
  %57 = getelementptr inbounds i8, ptr %56, i64 1
  %58 = tail call zeroext i1 @is_path_absolute(ptr noundef nonnull %57) #2
  br i1 %58, label %.critedge, label %59

59:                                               ; preds = %.lr.ph87
  tail call void @append_to_args(ptr noundef %23, ptr noundef %6)
  tail call void @append_to_args(ptr noundef %23, ptr noundef %56)
  br label %.critedge

.critedge:                                        ; preds = %.lr.ph87, %59
  %.sink = phi ptr [ %7, %59 ], [ %56, %.lr.ph87 ]
  tail call void @append_to_args(ptr noundef %23, ptr noundef %.sink)
  tail call void @append_to_args(ptr noundef %23, ptr noundef nonnull @.str.12)
  %60 = tail call ptr @strlist_next(ptr noundef nonnull %.06485) #2
  %.not74 = icmp eq ptr %60, null
  br i1 %.not74, label %._crit_edge88, label %.lr.ph87, !llvm.loop !25
}

declare noalias ptr @ponyint_pool_alloc_size(i64 noundef) local_unnamed_addr #0

declare ptr @strlist_data(ptr noundef) local_unnamed_addr #0

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

declare ptr @strlist_next(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, !7, i64 56}
!6 = !{!"program_t", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !11, i64 40, !11, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !11, i64 48}
!13 = !{!8, !8, i64 0}
!14 = !{!6, !11, i64 40}
!15 = !{!6, !7, i64 24}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !7, i64 48}
!19 = !{!"pass_opt_t", !10, i64 0, !10, i64 4, !20, i64 8, !20, i64 9, !20, i64 10, !20, i64 11, !20, i64 12, !20, i64 13, !20, i64 14, !20, i64 15, !20, i64 16, !20, i64 17, !20, i64 18, !20, i64 19, !20, i64 20, !20, i64 21, !10, i64 24, !11, i64 32, !20, i64 40, !20, i64 41, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !21, i64 176, !7, i64 224, !7, i64 232}
!20 = !{!"_Bool", !8, i64 0}
!21 = !{!"typecheck_t", !7, i64 0, !22, i64 8, !7, i64 40}
!22 = !{!"typecheck_stats_t", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!23 = distinct !{!23, !17}
!24 = !{!6, !7, i64 32}
!25 = distinct !{!25, !17}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass