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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.pass_opt_t = type { i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i64, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.typecheck_t, ptr, ptr }
%struct.typecheck_t = type { ptr, %struct.typecheck_stats_t, ptr }
%struct.typecheck_stats_t = type { i64, i64, i64, i64 }
%struct.deferred_reification_t = type { ptr, ptr, ptr, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [60 x i8], align 1
@__func__.expr_addressof = external hidden unnamed_addr constant [15 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 void @ast_get_children(ptr noundef, i64 noundef, 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 void @ast_settype(ptr noundef, ptr noundef) #1

declare i32 @ast_id(ptr noundef) #1

declare ptr @ast_type(ptr noundef) #1

declare zeroext i1 @is_typecheck_error(ptr noundef) #1

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

declare void @ast_free_unattached(ptr noundef) #1

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

declare ptr @ast_parent(ptr noundef) #1

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

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

declare ptr @ast_name(ptr noundef) #1

declare ptr @ast_child(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @expr_addressof(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 i8, align 1
  %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 [3 x ptr], align 16
  %15 = alloca [3 x ptr], align 16
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %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
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = 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
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call ptr @ast_parent(ptr noundef %36)
  store ptr %37, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  store i8 0, ptr %7, align 1, !tbaa !9
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = call i32 @ast_id(ptr noundef %38)
  %40 = icmp eq i32 %39, 175
  br i1 %40, label %41, label %56

41:                                               ; preds = %2
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = call ptr @ast_parent(ptr noundef %42)
  store ptr %43, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call i32 @ast_id(ptr noundef %44)
  %46 = icmp eq i32 %45, 169
  br i1 %46, label %47, label %55

47:                                               ; preds = %41
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = call ptr @ast_parent(ptr noundef %48)
  store ptr %49, ptr %6, align 8, !tbaa !5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call i32 @ast_id(ptr noundef %50)
  %52 = icmp eq i32 %51, 143
  br i1 %52, label %53, label %54

53:                                               ; preds = %47
  store i8 1, ptr %7, align 1, !tbaa !9
  br label %54

54:                                               ; preds = %53, %47
  br label %55

55:                                               ; preds = %54, %41
  br label %56

56:                                               ; preds = %55, %2
  %57 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %58 = trunc i8 %57 to i1
  br i1 %58, label %65, label %59

59:                                               ; preds = %56
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.pass_opt_t, ptr %60, i32 0, i32 36
  %62 = getelementptr inbounds %struct.typecheck_t, ptr %61, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %63, ptr noundef %64, ptr noundef @.str.21)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %407

65:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call ptr @ast_child(ptr noundef %66)
  store ptr %67, ptr %9, align 8, !tbaa !5
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = call i32 @ast_id(ptr noundef %68)
  switch i32 %69, label %101 [
    i32 192, label %70
    i32 196, label %70
    i32 191, label %70
    i32 190, label %70
    i32 193, label %71
    i32 194, label %77
    i32 195, label %83
    i32 197, label %89
    i32 198, label %95
  ]

70:                                               ; preds = %65, %65, %65, %65
  br label %107

71:                                               ; preds = %65
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.pass_opt_t, ptr %72, i32 0, i32 36
  %74 = getelementptr inbounds %struct.typecheck_t, ptr %73, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %75, ptr noundef %76, ptr noundef @.str.22)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %406

77:                                               ; preds = %65
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.pass_opt_t, ptr %78, i32 0, i32 36
  %80 = getelementptr inbounds %struct.typecheck_t, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %81, ptr noundef %82, ptr noundef @.str.23)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %406

83:                                               ; preds = %65
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.pass_opt_t, ptr %84, i32 0, i32 36
  %86 = getelementptr inbounds %struct.typecheck_t, ptr %85, i32 0, i32 2
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %87, ptr noundef %88, ptr noundef @.str.24)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %406

89:                                               ; preds = %65
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.pass_opt_t, ptr %90, i32 0, i32 36
  %92 = getelementptr inbounds %struct.typecheck_t, ptr %91, i32 0, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %93, ptr noundef %94, ptr noundef @.str.25)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %406

95:                                               ; preds = %65
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.pass_opt_t, ptr %96, i32 0, i32 36
  %98 = getelementptr inbounds %struct.typecheck_t, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !13
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %99, ptr noundef %100, ptr noundef @.str.26)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %406

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

107:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = call ptr @ast_type(ptr noundef %108)
  store ptr %109, ptr %10, align 8, !tbaa !5
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = call zeroext i1 @is_typecheck_error(ptr noundef %110)
  br i1 %111, label %112, label %113

112:                                              ; preds = %107
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %405

113:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store ptr null, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = call i32 @ast_id(ptr noundef %114)
  switch i32 %115, label %397 [
    i32 191, label %116
    i32 190, label %116
  ]

116:                                              ; preds = %113, %113
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = call zeroext i1 @method_check_type_params(ptr noundef %117, ptr noundef %9)
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %404

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #3
  store ptr %12, ptr %14, align 8, !tbaa !5
  %121 = getelementptr inbounds ptr, ptr %14, i64 1
  store ptr %13, ptr %121, align 8, !tbaa !5
  %122 = getelementptr inbounds ptr, ptr %14, i64 2
  store ptr null, ptr %122, align 8, !tbaa !5
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds [3 x ptr], ptr %14, i64 0, i64 0
  call void @ast_get_children(ptr noundef %123, i64 noundef 2, ptr noundef %124)
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = call i32 @ast_id(ptr noundef %125)
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = call i32 @ast_id(ptr noundef %127)
  %129 = icmp eq i32 %126, %128
  br i1 %129, label %130, label %135

130:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #3
  store ptr %12, ptr %15, align 8, !tbaa !5
  %131 = getelementptr inbounds ptr, ptr %15, i64 1
  store ptr %13, ptr %131, align 8, !tbaa !5
  %132 = getelementptr inbounds ptr, ptr %15, i64 2
  store ptr null, ptr %132, align 8, !tbaa !5
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = getelementptr inbounds [3 x ptr], ptr %15, i64 0, i64 0
  call void @ast_get_children(ptr noundef %133, i64 noundef 2, ptr noundef %134)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #3
  br label %135

135:                                              ; preds = %130, %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = call ptr @ast_type(ptr noundef %138)
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = call ptr @ast_name(ptr noundef %140)
  %142 = call ptr @lookup(ptr noundef %136, ptr noundef %137, ptr noundef %139, ptr noundef %141)
  store ptr %142, ptr %16, align 8, !tbaa !5
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.deferred_reification_t, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !19
  %146 = call i32 @ast_id(ptr noundef %145)
  %147 = icmp eq i32 %146, 89
  br i1 %147, label %154, label %148

148:                                              ; preds = %135
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.deferred_reification_t, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !19
  %152 = call i32 @ast_id(ptr noundef %151)
  %153 = icmp eq i32 %152, 90
  br i1 %153, label %154, label %155

154:                                              ; preds = %148, %135
  br label %156

155:                                              ; preds = %148
  call void @ponyint_assert_fail(ptr noundef @.str.28, ptr noundef @.str.2, i64 noundef 673, ptr noundef @__func__.expr_addressof)
  br label %156

156:                                              ; preds = %155, %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.deferred_reification_t, ptr %158, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8, !tbaa !19
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = call ptr @deferred_reify_method_def(ptr noundef %157, ptr noundef %160, ptr noundef %161)
  store ptr %162, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = call ptr @ast_child(ptr noundef %163)
  %165 = call i32 @ast_id(ptr noundef %164)
  %166 = icmp eq i32 %165, 37
  %167 = zext i1 %166 to i8
  store i8 %167, ptr %18, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %168 = load ptr, ptr %17, align 8, !tbaa !5
  %169 = call ptr @ast_childidx(ptr noundef %168, i64 noundef 3)
  store ptr %169, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = call ptr @ast_sibling(ptr noundef %170)
  store ptr %171, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %172 = load ptr, ptr %20, align 8, !tbaa !5
  %173 = call ptr @ast_sibling(ptr noundef %172)
  store ptr %173, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %174 = load ptr, ptr %19, align 8, !tbaa !5
  %175 = call ptr @ast_from(ptr noundef %174, i32 noundef 2)
  store ptr %175, ptr %22, align 8, !tbaa !5
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = call i32 @ast_id(ptr noundef %176)
  %178 = icmp ne i32 %177, 2
  br i1 %178, label %179, label %196

179:                                              ; preds = %156
  %180 = load ptr, ptr %22, align 8, !tbaa !5
  %181 = call ptr @ast_setid(ptr noundef %180, i32 noundef 164)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = call ptr @ast_child(ptr noundef %182)
  store ptr %183, ptr %23, align 8, !tbaa !5
  br label %184

184:                                              ; preds = %187, %179
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %195

187:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %188 = load ptr, ptr %23, align 8, !tbaa !5
  %189 = call ptr @ast_childidx(ptr noundef %188, i64 noundef 1)
  store ptr %189, ptr %24, align 8, !tbaa !5
  %190 = load ptr, ptr %22, align 8, !tbaa !5
  %191 = load ptr, ptr %24, align 8, !tbaa !5
  %192 = call ptr @ast_append(ptr noundef %190, ptr noundef %191)
  %193 = load ptr, ptr %23, align 8, !tbaa !5
  %194 = call ptr @ast_sibling(ptr noundef %193)
  store ptr %194, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br label %184, !llvm.loop !21

195:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %196

196:                                              ; preds = %195, %156
  %197 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %198 = trunc i8 %197 to i1
  br i1 %198, label %207, label %199

199:                                              ; preds = %196
  %200 = load ptr, ptr %22, align 8, !tbaa !5
  %201 = call ptr @ast_setid(ptr noundef %200, i32 noundef 164)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = call ptr @ast_type(ptr noundef %202)
  store ptr %203, ptr %25, align 8, !tbaa !5
  %204 = load ptr, ptr %22, align 8, !tbaa !5
  %205 = load ptr, ptr %25, align 8, !tbaa !5
  %206 = call ptr @ast_add(ptr noundef %204, ptr noundef %205)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  br label %207

207:                                              ; preds = %199, %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %208, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  store ptr null, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  store ptr null, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  store ptr null, ptr %29, align 8, !tbaa !5
  %209 = load ptr, ptr %26, align 8, !tbaa !5
  %210 = call ptr @ast_from(ptr noundef %209, i32 noundef 155)
  store ptr %210, ptr %29, align 8, !tbaa !5
  %211 = load ptr, ptr %27, align 8, !tbaa !5
  %212 = icmp eq ptr %211, null
  br i1 %212, label %213, label %215

213:                                              ; preds = %207
  %214 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %214, ptr %27, align 8, !tbaa !5
  br label %227

215:                                              ; preds = %207
  %216 = load ptr, ptr %28, align 8, !tbaa !5
  %217 = icmp eq ptr %216, null
  br i1 %217, label %218, label %222

218:                                              ; preds = %215
  %219 = load ptr, ptr %27, align 8, !tbaa !5
  %220 = load ptr, ptr %29, align 8, !tbaa !5
  %221 = call ptr @ast_add(ptr noundef %219, ptr noundef %220)
  store ptr %221, ptr %28, align 8, !tbaa !5
  br label %226

222:                                              ; preds = %215
  %223 = load ptr, ptr %28, align 8, !tbaa !5
  %224 = load ptr, ptr %29, align 8, !tbaa !5
  %225 = call ptr @ast_add_sibling(ptr noundef %223, ptr noundef %224)
  store ptr %225, ptr %28, align 8, !tbaa !5
  br label %226

226:                                              ; preds = %222, %218
  br label %227

227:                                              ; preds = %226, %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %228 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %228, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  store ptr null, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  store ptr null, ptr %32, align 8, !tbaa !5
  %229 = load ptr, ptr %30, align 8, !tbaa !5
  %230 = icmp eq ptr %229, null
  br i1 %230, label %231, label %234

231:                                              ; preds = %227
  %232 = load ptr, ptr %26, align 8, !tbaa !5
  %233 = call ptr @ast_from(ptr noundef %232, i32 noundef 2)
  store ptr %233, ptr %30, align 8, !tbaa !5
  br label %248

234:                                              ; preds = %227
  %235 = load ptr, ptr %31, align 8, !tbaa !5
  %236 = icmp eq ptr %235, null
  br i1 %236, label %237, label %242

237:                                              ; preds = %234
  %238 = load ptr, ptr %30, align 8, !tbaa !5
  %239 = load ptr, ptr %26, align 8, !tbaa !5
  %240 = call ptr @ast_from(ptr noundef %239, i32 noundef 2)
  %241 = call ptr @ast_add(ptr noundef %238, ptr noundef %240)
  store ptr %241, ptr %31, align 8, !tbaa !5
  br label %247

242:                                              ; preds = %234
  %243 = load ptr, ptr %31, align 8, !tbaa !5
  %244 = load ptr, ptr %26, align 8, !tbaa !5
  %245 = call ptr @ast_from(ptr noundef %244, i32 noundef 2)
  %246 = call ptr @ast_add_sibling(ptr noundef %243, ptr noundef %245)
  store ptr %246, ptr %31, align 8, !tbaa !5
  br label %247

247:                                              ; preds = %242, %237
  br label %248

248:                                              ; preds = %247, %231
  %249 = load ptr, ptr %30, align 8, !tbaa !5
  %250 = icmp eq ptr %249, null
  br i1 %250, label %251, label %254

251:                                              ; preds = %248
  %252 = load ptr, ptr %26, align 8, !tbaa !5
  %253 = call ptr @ast_from(ptr noundef %252, i32 noundef 2)
  store ptr %253, ptr %30, align 8, !tbaa !5
  br label %268

254:                                              ; preds = %248
  %255 = load ptr, ptr %31, align 8, !tbaa !5
  %256 = icmp eq ptr %255, null
  br i1 %256, label %257, label %262

257:                                              ; preds = %254
  %258 = load ptr, ptr %30, align 8, !tbaa !5
  %259 = load ptr, ptr %26, align 8, !tbaa !5
  %260 = call ptr @ast_from(ptr noundef %259, i32 noundef 2)
  %261 = call ptr @ast_add(ptr noundef %258, ptr noundef %260)
  store ptr %261, ptr %31, align 8, !tbaa !5
  br label %267

262:                                              ; preds = %254
  %263 = load ptr, ptr %31, align 8, !tbaa !5
  %264 = load ptr, ptr %26, align 8, !tbaa !5
  %265 = call ptr @ast_from(ptr noundef %264, i32 noundef 2)
  %266 = call ptr @ast_add_sibling(ptr noundef %263, ptr noundef %265)
  store ptr %266, ptr %31, align 8, !tbaa !5
  br label %267

267:                                              ; preds = %262, %257
  br label %268

268:                                              ; preds = %267, %251
  %269 = load ptr, ptr %30, align 8, !tbaa !5
  %270 = icmp eq ptr %269, null
  br i1 %270, label %271, label %274

271:                                              ; preds = %268
  %272 = load ptr, ptr %26, align 8, !tbaa !5
  %273 = call ptr @ast_from(ptr noundef %272, i32 noundef 2)
  store ptr %273, ptr %30, align 8, !tbaa !5
  br label %288

274:                                              ; preds = %268
  %275 = load ptr, ptr %31, align 8, !tbaa !5
  %276 = icmp eq ptr %275, null
  br i1 %276, label %277, label %282

277:                                              ; preds = %274
  %278 = load ptr, ptr %30, align 8, !tbaa !5
  %279 = load ptr, ptr %26, align 8, !tbaa !5
  %280 = call ptr @ast_from(ptr noundef %279, i32 noundef 2)
  %281 = call ptr @ast_add(ptr noundef %278, ptr noundef %280)
  store ptr %281, ptr %31, align 8, !tbaa !5
  br label %287

282:                                              ; preds = %274
  %283 = load ptr, ptr %31, align 8, !tbaa !5
  %284 = load ptr, ptr %26, align 8, !tbaa !5
  %285 = call ptr @ast_from(ptr noundef %284, i32 noundef 2)
  %286 = call ptr @ast_add_sibling(ptr noundef %283, ptr noundef %285)
  store ptr %286, ptr %31, align 8, !tbaa !5
  br label %287

287:                                              ; preds = %282, %277
  br label %288

288:                                              ; preds = %287, %271
  %289 = load ptr, ptr %30, align 8, !tbaa !5
  %290 = icmp eq ptr %289, null
  br i1 %290, label %291, label %293

291:                                              ; preds = %288
  %292 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %292, ptr %30, align 8, !tbaa !5
  br label %305

293:                                              ; preds = %288
  %294 = load ptr, ptr %31, align 8, !tbaa !5
  %295 = icmp eq ptr %294, null
  br i1 %295, label %296, label %300

296:                                              ; preds = %293
  %297 = load ptr, ptr %30, align 8, !tbaa !5
  %298 = load ptr, ptr %22, align 8, !tbaa !5
  %299 = call ptr @ast_add(ptr noundef %297, ptr noundef %298)
  store ptr %299, ptr %31, align 8, !tbaa !5
  br label %304

300:                                              ; preds = %293
  %301 = load ptr, ptr %31, align 8, !tbaa !5
  %302 = load ptr, ptr %22, align 8, !tbaa !5
  %303 = call ptr @ast_add_sibling(ptr noundef %301, ptr noundef %302)
  store ptr %303, ptr %31, align 8, !tbaa !5
  br label %304

304:                                              ; preds = %300, %296
  br label %305

305:                                              ; preds = %304, %291
  %306 = load ptr, ptr %30, align 8, !tbaa !5
  %307 = icmp eq ptr %306, null
  br i1 %307, label %308, label %310

308:                                              ; preds = %305
  %309 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %309, ptr %30, align 8, !tbaa !5
  br label %322

310:                                              ; preds = %305
  %311 = load ptr, ptr %31, align 8, !tbaa !5
  %312 = icmp eq ptr %311, null
  br i1 %312, label %313, label %317

313:                                              ; preds = %310
  %314 = load ptr, ptr %30, align 8, !tbaa !5
  %315 = load ptr, ptr %20, align 8, !tbaa !5
  %316 = call ptr @ast_add(ptr noundef %314, ptr noundef %315)
  store ptr %316, ptr %31, align 8, !tbaa !5
  br label %321

317:                                              ; preds = %310
  %318 = load ptr, ptr %31, align 8, !tbaa !5
  %319 = load ptr, ptr %20, align 8, !tbaa !5
  %320 = call ptr @ast_add_sibling(ptr noundef %318, ptr noundef %319)
  store ptr %320, ptr %31, align 8, !tbaa !5
  br label %321

321:                                              ; preds = %317, %313
  br label %322

322:                                              ; preds = %321, %308
  %323 = load ptr, ptr %30, align 8, !tbaa !5
  %324 = icmp eq ptr %323, null
  br i1 %324, label %325, label %327

325:                                              ; preds = %322
  %326 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %326, ptr %30, align 8, !tbaa !5
  br label %339

327:                                              ; preds = %322
  %328 = load ptr, ptr %31, align 8, !tbaa !5
  %329 = icmp eq ptr %328, null
  br i1 %329, label %330, label %334

330:                                              ; preds = %327
  %331 = load ptr, ptr %30, align 8, !tbaa !5
  %332 = load ptr, ptr %21, align 8, !tbaa !5
  %333 = call ptr @ast_add(ptr noundef %331, ptr noundef %332)
  store ptr %333, ptr %31, align 8, !tbaa !5
  br label %338

334:                                              ; preds = %327
  %335 = load ptr, ptr %31, align 8, !tbaa !5
  %336 = load ptr, ptr %21, align 8, !tbaa !5
  %337 = call ptr @ast_add_sibling(ptr noundef %335, ptr noundef %336)
  store ptr %337, ptr %31, align 8, !tbaa !5
  br label %338

338:                                              ; preds = %334, %330
  br label %339

339:                                              ; preds = %338, %325
  %340 = load ptr, ptr %26, align 8, !tbaa !5
  %341 = call ptr @ast_from(ptr noundef %340, i32 noundef 94)
  store ptr %341, ptr %32, align 8, !tbaa !5
  %342 = load ptr, ptr %30, align 8, !tbaa !5
  %343 = icmp eq ptr %342, null
  br i1 %343, label %344, label %346

344:                                              ; preds = %339
  %345 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %345, ptr %30, align 8, !tbaa !5
  br label %358

346:                                              ; preds = %339
  %347 = load ptr, ptr %31, align 8, !tbaa !5
  %348 = icmp eq ptr %347, null
  br i1 %348, label %349, label %353

349:                                              ; preds = %346
  %350 = load ptr, ptr %30, align 8, !tbaa !5
  %351 = load ptr, ptr %32, align 8, !tbaa !5
  %352 = call ptr @ast_add(ptr noundef %350, ptr noundef %351)
  store ptr %352, ptr %31, align 8, !tbaa !5
  br label %357

353:                                              ; preds = %346
  %354 = load ptr, ptr %31, align 8, !tbaa !5
  %355 = load ptr, ptr %32, align 8, !tbaa !5
  %356 = call ptr @ast_add_sibling(ptr noundef %354, ptr noundef %355)
  store ptr %356, ptr %31, align 8, !tbaa !5
  br label %357

357:                                              ; preds = %353, %349
  br label %358

358:                                              ; preds = %357, %344
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  %359 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %359, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  store ptr null, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  store ptr null, ptr %35, align 8, !tbaa !5
  %360 = load ptr, ptr %33, align 8, !tbaa !5
  call void @ast_inheritflags(ptr noundef %360)
  %361 = load ptr, ptr %33, align 8, !tbaa !5
  %362 = load ptr, ptr %34, align 8, !tbaa !5
  %363 = load ptr, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  %364 = load ptr, ptr %30, align 8, !tbaa !5
  %365 = icmp eq ptr %364, null
  br i1 %365, label %366, label %369

366:                                              ; preds = %358
  %367 = load ptr, ptr %26, align 8, !tbaa !5
  %368 = call ptr @ast_from(ptr noundef %367, i32 noundef 2)
  store ptr %368, ptr %30, align 8, !tbaa !5
  br label %383

369:                                              ; preds = %358
  %370 = load ptr, ptr %31, align 8, !tbaa !5
  %371 = icmp eq ptr %370, null
  br i1 %371, label %372, label %377

372:                                              ; preds = %369
  %373 = load ptr, ptr %30, align 8, !tbaa !5
  %374 = load ptr, ptr %26, align 8, !tbaa !5
  %375 = call ptr @ast_from(ptr noundef %374, i32 noundef 2)
  %376 = call ptr @ast_add(ptr noundef %373, ptr noundef %375)
  store ptr %376, ptr %31, align 8, !tbaa !5
  br label %382

377:                                              ; preds = %369
  %378 = load ptr, ptr %31, align 8, !tbaa !5
  %379 = load ptr, ptr %26, align 8, !tbaa !5
  %380 = call ptr @ast_from(ptr noundef %379, i32 noundef 2)
  %381 = call ptr @ast_add_sibling(ptr noundef %378, ptr noundef %380)
  store ptr %381, ptr %31, align 8, !tbaa !5
  br label %382

382:                                              ; preds = %377, %372
  br label %383

383:                                              ; preds = %382, %366
  %384 = load ptr, ptr %30, align 8, !tbaa !5
  call void @ast_inheritflags(ptr noundef %384)
  %385 = load ptr, ptr %30, align 8, !tbaa !5
  %386 = load ptr, ptr %31, align 8, !tbaa !5
  %387 = load ptr, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  %388 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %388, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  %389 = load ptr, ptr %17, align 8, !tbaa !5
  call void @ast_free_unattached(ptr noundef %389)
  %390 = load ptr, ptr %16, align 8, !tbaa !5
  call void @deferred_reify_free(ptr noundef %390)
  %391 = load ptr, ptr %4, align 8, !tbaa !5
  %392 = call zeroext i1 @ast_passes_subtree(ptr noundef %11, ptr noundef %391, i32 noundef 10)
  br i1 %392, label %394, label %393

393:                                              ; preds = %383
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %395

394:                                              ; preds = %383
  store i32 3, ptr %8, align 4
  br label %395

395:                                              ; preds = %394, %393
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  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 1, ptr %18) #3
  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 %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %396 = load i32, ptr %8, align 4
  switch i32 %396, label %404 [
    i32 3, label %401
  ]

397:                                              ; preds = %113
  %398 = load ptr, ptr %4, align 8, !tbaa !5
  %399 = load ptr, ptr %10, align 8, !tbaa !5
  %400 = call ptr @type_pointer_to(ptr noundef %398, ptr noundef %399)
  store ptr %400, ptr %11, align 8, !tbaa !5
  br label %401

401:                                              ; preds = %397, %395
  %402 = load ptr, ptr %5, align 8, !tbaa !5
  %403 = load ptr, ptr %11, align 8, !tbaa !5
  call void @ast_settype(ptr noundef %402, ptr noundef %403)
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %404

404:                                              ; preds = %401, %395, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %405

405:                                              ; preds = %404, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %406

406:                                              ; preds = %405, %101, %95, %89, %83, %77, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  br label %407

407:                                              ; preds = %406, %59
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %408 = load i1, ptr %3, align 1
  ret i1 %408
}

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

declare ptr @lookup(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @deferred_reify_method_def(ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @ast_sibling(ptr noundef) #1

declare ptr @ast_append(ptr noundef, ptr noundef) #1

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

declare void @ast_inheritflags(ptr noundef) #1

declare void @deferred_reify_free(ptr noundef) #1

declare zeroext i1 @ast_passes_subtree(ptr noundef, ptr noundef, i32 noundef) #1

declare ptr @type_pointer_to(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !6, i64 216}
!14 = !{!"pass_opt_t", !15, i64 0, !15, i64 4, !10, i64 8, !10, i64 9, !10, i64 10, !10, i64 11, !10, i64 12, !10, i64 13, !10, i64 14, !10, i64 15, !10, i64 16, !10, i64 17, !10, i64 18, !10, i64 19, !10, i64 20, !10, i64 21, !15, i64 24, !16, i64 32, !10, i64 40, !10, i64 41, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !17, i64 176, !6, i64 224, !6, i64 232}
!15 = !{!"int", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"typecheck_t", !6, i64 0, !18, i64 8, !6, i64 40}
!18 = !{!"typecheck_stats_t", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!19 = !{!20, !6, i64 0}
!20 = !{!"deferred_reification_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [60 x i8], align 1
@__func__.expr_addressof = external hidden unnamed_addr constant [15 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 void @ast_get_children(ptr noundef, i64 noundef, 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 void @ast_settype(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @ast_id(ptr noundef) local_unnamed_addr #1

declare ptr @ast_type(ptr noundef) local_unnamed_addr #1

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

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

declare void @ast_free_unattached(ptr noundef) local_unnamed_addr #1

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

declare ptr @ast_parent(ptr noundef) local_unnamed_addr #1

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

declare ptr @ast_setid(ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @ast_name(ptr noundef) local_unnamed_addr #1

declare ptr @ast_child(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @expr_addressof(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 [3 x ptr], align 16
  %8 = alloca [3 x ptr], align 16
  %9 = tail call ptr @ast_parent(ptr noundef %1) #3
  %10 = tail call i32 @ast_id(ptr noundef %9) #3
  %11 = icmp eq i32 %10, 175
  br i1 %11, label %12, label %.critedge

12:                                               ; preds = %2
  %13 = tail call ptr @ast_parent(ptr noundef %9) #3
  %14 = tail call i32 @ast_id(ptr noundef %13) #3
  %15 = icmp eq i32 %14, 169
  br i1 %15, label %16, label %.critedge

16:                                               ; preds = %12
  %17 = tail call ptr @ast_parent(ptr noundef %13) #3
  %18 = tail call i32 @ast_id(ptr noundef %17) #3
  %19 = icmp eq i32 %18, 143
  br i1 %19, label %22, label %.critedge

.critedge:                                        ; preds = %12, %2, %16
  %20 = getelementptr inbounds i8, ptr %0, i64 216
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  tail call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %21, ptr noundef %1, ptr noundef nonnull @.str.21) #3
  br label %176

22:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %23 = tail call ptr @ast_child(ptr noundef %1) #3
  store ptr %23, ptr %3, align 8, !tbaa !15
  %24 = tail call i32 @ast_id(ptr noundef %23) #3
  switch i32 %24, label %40 [
    i32 192, label %43
    i32 196, label %43
    i32 191, label %43
    i32 190, label %43
    i32 193, label %25
    i32 194, label %28
    i32 195, label %31
    i32 197, label %34
    i32 198, label %37
  ]

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

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 216
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  tail call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %30, ptr noundef %1, ptr noundef nonnull @.str.23) #3
  br label %175

31:                                               ; preds = %22
  %32 = getelementptr inbounds i8, ptr %0, i64 216
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  tail call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %33, ptr noundef %1, ptr noundef nonnull @.str.24) #3
  br label %175

34:                                               ; preds = %22
  %35 = getelementptr inbounds i8, ptr %0, i64 216
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  tail call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %36, ptr noundef %1, ptr noundef nonnull @.str.25) #3
  br label %175

37:                                               ; preds = %22
  %38 = getelementptr inbounds i8, ptr %0, i64 216
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  tail call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %39, ptr noundef %1, ptr noundef nonnull @.str.26) #3
  br label %175

40:                                               ; preds = %22
  %41 = getelementptr inbounds i8, ptr %0, i64 216
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  tail call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %42, ptr noundef %1, ptr noundef nonnull @.str.27) #3
  br label %175

43:                                               ; preds = %22, %22, %22, %22
  %44 = tail call ptr @ast_type(ptr noundef %23) #3
  %45 = tail call zeroext i1 @is_typecheck_error(ptr noundef %44) #3
  br i1 %45, label %175, label %46

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  store ptr null, ptr %4, align 8, !tbaa !15
  %47 = tail call i32 @ast_id(ptr noundef %23) #3
  %48 = and i32 %47, -2
  %switch = icmp eq i32 %48, 190
  br i1 %switch, label %49, label %170

49:                                               ; preds = %46
  %50 = call zeroext i1 @method_check_type_params(ptr noundef %0, ptr noundef nonnull %3) #3
  br i1 %50, label %51, label %174

51:                                               ; preds = %49
  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 24, ptr nonnull %7) #3
  store ptr %5, ptr %7, align 16, !tbaa !15
  %52 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %6, ptr %52, align 8, !tbaa !15
  %53 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr null, ptr %53, align 16, !tbaa !15
  %54 = load ptr, ptr %3, align 8, !tbaa !15
  call void @ast_get_children(ptr noundef %54, i64 noundef 2, ptr noundef nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  %55 = load ptr, ptr %5, align 8, !tbaa !15
  %56 = call i32 @ast_id(ptr noundef %55) #3
  %57 = load ptr, ptr %3, align 8, !tbaa !15
  %58 = call i32 @ast_id(ptr noundef %57) #3
  %59 = icmp eq i32 %56, %58
  br i1 %59, label %60, label %64

60:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #3
  store ptr %5, ptr %8, align 16, !tbaa !15
  %61 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %6, ptr %61, align 8, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr null, ptr %62, align 16, !tbaa !15
  %63 = load ptr, ptr %5, align 8, !tbaa !15
  call void @ast_get_children(ptr noundef %63, i64 noundef 2, ptr noundef nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  br label %64

64:                                               ; preds = %60, %51
  %65 = load ptr, ptr %3, align 8, !tbaa !15
  %66 = load ptr, ptr %5, align 8, !tbaa !15
  %67 = call ptr @ast_type(ptr noundef %66) #3
  %68 = load ptr, ptr %6, align 8, !tbaa !15
  %69 = call ptr @ast_name(ptr noundef %68) #3
  %70 = call ptr @lookup(ptr noundef %0, ptr noundef %65, ptr noundef %67, ptr noundef %69) #3
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = call i32 @ast_id(ptr noundef %71) #3
  %73 = icmp eq i32 %72, 89
  br i1 %73, label %79, label %74

74:                                               ; preds = %64
  %75 = load ptr, ptr %70, align 8, !tbaa !16
  %76 = call i32 @ast_id(ptr noundef %75) #3
  %77 = icmp eq i32 %76, 90
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  call void @ponyint_assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.2, i64 noundef 673, ptr noundef nonnull @__func__.expr_addressof) #3
  br label %79

79:                                               ; preds = %64, %74, %78
  %80 = load ptr, ptr %70, align 8, !tbaa !16
  %81 = call ptr @deferred_reify_method_def(ptr noundef nonnull %70, ptr noundef %80, ptr noundef %0) #3
  %82 = call ptr @ast_child(ptr noundef %81) #3
  %83 = call i32 @ast_id(ptr noundef %82) #3
  %84 = icmp eq i32 %83, 37
  %85 = call ptr @ast_childidx(ptr noundef %81, i64 noundef 3) #3
  %86 = call ptr @ast_sibling(ptr noundef %85) #3
  %87 = call ptr @ast_sibling(ptr noundef %86) #3
  %88 = call ptr @ast_from(ptr noundef %85, i32 noundef 2) #3
  %89 = call i32 @ast_id(ptr noundef %85) #3
  %.not = icmp eq i32 %89, 2
  br i1 %.not, label %.loopexit, label %90

90:                                               ; preds = %79
  %91 = call ptr @ast_setid(ptr noundef %88, i32 noundef 164) #3
  %92 = call ptr @ast_child(ptr noundef %85) #3
  %.not148216 = icmp eq ptr %92, null
  br i1 %.not148216, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %90, %.lr.ph
  %.0147217 = phi ptr [ %95, %.lr.ph ], [ %92, %90 ]
  %93 = call ptr @ast_childidx(ptr noundef nonnull %.0147217, i64 noundef 1) #3
  %94 = call ptr @ast_append(ptr noundef %88, ptr noundef %93) #3
  %95 = call ptr @ast_sibling(ptr noundef nonnull %.0147217) #3
  %.not148 = icmp eq ptr %95, null
  br i1 %.not148, label %.loopexit, label %.lr.ph, !llvm.loop !18

.loopexit:                                        ; preds = %.lr.ph, %90, %79
  br i1 %84, label %101, label %96

96:                                               ; preds = %.loopexit
  %97 = call ptr @ast_setid(ptr noundef %88, i32 noundef 164) #3
  %98 = load ptr, ptr %5, align 8, !tbaa !15
  %99 = call ptr @ast_type(ptr noundef %98) #3
  %100 = call ptr @ast_add(ptr noundef %88, ptr noundef %99) #3
  br label %101

101:                                              ; preds = %96, %.loopexit
  %102 = call ptr @ast_from(ptr noundef %44, i32 noundef 155) #3
  %103 = icmp eq ptr %102, null
  %104 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  br i1 %103, label %105, label %107

105:                                              ; preds = %101
  %106 = icmp eq ptr %104, null
  br i1 %106, label %115, label %.thread153

107:                                              ; preds = %101
  %108 = call ptr @ast_add(ptr noundef nonnull %102, ptr noundef %104) #3
  %109 = icmp eq ptr %108, null
  br i1 %109, label %.thread153, label %112

.thread153:                                       ; preds = %105, %107
  %.0137151156 = phi ptr [ %102, %107 ], [ %104, %105 ]
  %110 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  %111 = call ptr @ast_add(ptr noundef nonnull %.0137151156, ptr noundef %110) #3
  br label %118

112:                                              ; preds = %107
  %113 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  %114 = call ptr @ast_add_sibling(ptr noundef nonnull %108, ptr noundef %113) #3
  br label %118

115:                                              ; preds = %105
  %116 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  %117 = icmp eq ptr %116, null
  br i1 %117, label %125, label %.thread162

118:                                              ; preds = %.thread153, %112
  %.1138.ph = phi ptr [ %102, %112 ], [ %.0137151156, %.thread153 ]
  %.1133.ph = phi ptr [ %114, %112 ], [ %111, %.thread153 ]
  %119 = icmp eq ptr %.1133.ph, null
  br i1 %119, label %.thread162, label %122

.thread162:                                       ; preds = %115, %118
  %.1138160165 = phi ptr [ %.1138.ph, %118 ], [ %116, %115 ]
  %120 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  %121 = call ptr @ast_add(ptr noundef nonnull %.1138160165, ptr noundef %120) #3
  br label %128

122:                                              ; preds = %118
  %123 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  %124 = call ptr @ast_add_sibling(ptr noundef nonnull %.1133.ph, ptr noundef %123) #3
  br label %128

125:                                              ; preds = %115
  %126 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  %127 = icmp eq ptr %126, null
  br i1 %127, label %133, label %.thread172

128:                                              ; preds = %.thread162, %122
  %.2139.ph = phi ptr [ %.1138.ph, %122 ], [ %.1138160165, %.thread162 ]
  %.2134.ph = phi ptr [ %124, %122 ], [ %121, %.thread162 ]
  %129 = icmp eq ptr %.2134.ph, null
  br i1 %129, label %.thread172, label %131

.thread172:                                       ; preds = %125, %128
  %.2139170175 = phi ptr [ %.2139.ph, %128 ], [ %126, %125 ]
  %130 = call ptr @ast_add(ptr noundef nonnull %.2139170175, ptr noundef %88) #3
  br label %135

131:                                              ; preds = %128
  %132 = call ptr @ast_add_sibling(ptr noundef nonnull %.2134.ph, ptr noundef %88) #3
  br label %135

133:                                              ; preds = %125
  %134 = icmp eq ptr %88, null
  br i1 %134, label %140, label %.thread182

135:                                              ; preds = %.thread172, %131
  %.3140.ph = phi ptr [ %.2139.ph, %131 ], [ %.2139170175, %.thread172 ]
  %.3135.ph = phi ptr [ %132, %131 ], [ %130, %.thread172 ]
  %136 = icmp eq ptr %.3135.ph, null
  br i1 %136, label %.thread182, label %138

.thread182:                                       ; preds = %133, %135
  %.3140180185 = phi ptr [ %.3140.ph, %135 ], [ %88, %133 ]
  %137 = call ptr @ast_add(ptr noundef nonnull %.3140180185, ptr noundef %86) #3
  br label %142

138:                                              ; preds = %135
  %139 = call ptr @ast_add_sibling(ptr noundef nonnull %.3135.ph, ptr noundef %86) #3
  br label %142

140:                                              ; preds = %133
  %141 = icmp eq ptr %86, null
  br i1 %141, label %147, label %.thread192

142:                                              ; preds = %.thread182, %138
  %.4141.ph = phi ptr [ %.3140.ph, %138 ], [ %.3140180185, %.thread182 ]
  %.4136.ph = phi ptr [ %139, %138 ], [ %137, %.thread182 ]
  %143 = icmp eq ptr %.4136.ph, null
  br i1 %143, label %.thread192, label %145

.thread192:                                       ; preds = %140, %142
  %.4141190195 = phi ptr [ %.4141.ph, %142 ], [ %86, %140 ]
  %144 = call ptr @ast_add(ptr noundef nonnull %.4141190195, ptr noundef %87) #3
  br label %150

145:                                              ; preds = %142
  %146 = call ptr @ast_add_sibling(ptr noundef nonnull %.4136.ph, ptr noundef %87) #3
  br label %150

147:                                              ; preds = %140
  %148 = call ptr @ast_from(ptr noundef %44, i32 noundef 94) #3
  %149 = icmp eq ptr %87, null
  br i1 %149, label %157, label %.thread202

150:                                              ; preds = %.thread192, %145
  %.5142.ph = phi ptr [ %.4141.ph, %145 ], [ %.4141190195, %.thread192 ]
  %.5.ph = phi ptr [ %146, %145 ], [ %144, %.thread192 ]
  %151 = call ptr @ast_from(ptr noundef %44, i32 noundef 94) #3
  %152 = icmp eq ptr %.5.ph, null
  br i1 %152, label %.thread202, label %155

.thread202:                                       ; preds = %147, %150
  %.5142200205 = phi ptr [ %.5142.ph, %150 ], [ %87, %147 ]
  %153 = phi ptr [ %151, %150 ], [ %148, %147 ]
  %154 = call ptr @ast_add(ptr noundef nonnull %.5142200205, ptr noundef %153) #3
  br label %161

155:                                              ; preds = %150
  %156 = call ptr @ast_add_sibling(ptr noundef nonnull %.5.ph, ptr noundef %151) #3
  br label %161

157:                                              ; preds = %147
  call void @ast_inheritflags(ptr noundef %148) #3
  %158 = icmp eq ptr %148, null
  br i1 %158, label %159, label %.thread212

159:                                              ; preds = %157
  %160 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  br label %168

161:                                              ; preds = %.thread202, %155
  %.ph = phi ptr [ %151, %155 ], [ %153, %.thread202 ]
  %.6143.ph = phi ptr [ %.5142.ph, %155 ], [ %.5142200205, %.thread202 ]
  %.6.ph = phi ptr [ %156, %155 ], [ %154, %.thread202 ]
  call void @ast_inheritflags(ptr noundef %.ph) #3
  %162 = icmp eq ptr %.6.ph, null
  br i1 %162, label %.thread212, label %165

.thread212:                                       ; preds = %157, %161
  %.6143210215 = phi ptr [ %.6143.ph, %161 ], [ %148, %157 ]
  %163 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  %164 = call ptr @ast_add(ptr noundef nonnull %.6143210215, ptr noundef %163) #3
  br label %168

165:                                              ; preds = %161
  %166 = call ptr @ast_from(ptr noundef %44, i32 noundef 2) #3
  %167 = call ptr @ast_add_sibling(ptr noundef nonnull %.6.ph, ptr noundef %166) #3
  br label %168

168:                                              ; preds = %.thread212, %165, %159
  %.7144 = phi ptr [ %160, %159 ], [ %.6143210215, %.thread212 ], [ %.6143.ph, %165 ]
  call void @ast_inheritflags(ptr noundef %.7144) #3
  store ptr %102, ptr %4, align 8, !tbaa !15
  call void @ast_free_unattached(ptr noundef %81) #3
  call void @deferred_reify_free(ptr noundef nonnull %70) #3
  %169 = call zeroext i1 @ast_passes_subtree(ptr noundef nonnull %4, ptr noundef %0, i32 noundef 10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br i1 %169, label %._crit_edge, label %174

._crit_edge:                                      ; preds = %168
  %.pre = load ptr, ptr %4, align 8, !tbaa !15
  br label %172

170:                                              ; preds = %46
  %171 = tail call ptr @type_pointer_to(ptr noundef %0, ptr noundef %44) #3
  store ptr %171, ptr %4, align 8, !tbaa !15
  br label %172

172:                                              ; preds = %._crit_edge, %170
  %173 = phi ptr [ %.pre, %._crit_edge ], [ %171, %170 ]
  call void @ast_settype(ptr noundef %1, ptr noundef %173) #3
  br label %174

174:                                              ; preds = %49, %168, %172
  %.1 = phi i1 [ true, %172 ], [ false, %168 ], [ false, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br label %175

175:                                              ; preds = %174, %43, %40, %37, %34, %31, %28, %25
  %.3 = phi i1 [ false, %40 ], [ false, %37 ], [ false, %34 ], [ false, %31 ], [ false, %28 ], [ false, %25 ], [ %.1, %174 ], [ false, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  br label %176

176:                                              ; preds = %175, %.critedge
  %.4 = phi i1 [ %.3, %175 ], [ false, %.critedge ]
  ret i1 %.4
}

declare zeroext i1 @method_check_type_params(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @lookup(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @deferred_reify_method_def(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @ast_sibling(ptr noundef) local_unnamed_addr #1

declare ptr @ast_append(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @ast_inheritflags(ptr noundef) local_unnamed_addr #1

declare void @deferred_reify_free(ptr noundef) local_unnamed_addr #1

declare zeroext i1 @ast_passes_subtree(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass