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

; 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.typecheck_frame_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.expr_match = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @expr_match(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [4 x ptr], align 16
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call i32 @ast_id(ptr noundef %24)
  %26 = icmp eq i32 %25, 122
  br i1 %26, label %27, label %28

27:                                               ; preds = %2
  br label %29

28:                                               ; preds = %2
  call void @ponyint_assert_fail(ptr noundef @.str, ptr noundef @.str.1, i64 noundef 154, ptr noundef @__func__.expr_match)
  br label %29

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

39:                                               ; preds = %29
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %299

40:                                               ; preds = %29
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = call zeroext i1 @is_type_literal(ptr noundef %41)
  br i1 %42, label %43, label %49

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

49:                                               ; preds = %40
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call zeroext i1 @is_bare(ptr noundef %50)
  br i1 %51, label %52, label %65

52:                                               ; preds = %49
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.pass_opt_t, ptr %53, i32 0, i32 36
  %55 = getelementptr inbounds %struct.typecheck_t, ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %56, ptr noundef %57, ptr noundef @.str.3)
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.pass_opt_t, ptr %58, i32 0, i32 36
  %60 = getelementptr inbounds %struct.typecheck_t, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call ptr @ast_print_type(ptr noundef %63)
  call void (ptr, ptr, ptr, ...) @ast_error_continue(ptr noundef %61, ptr noundef %62, ptr noundef @.str.4, ptr noundef %64)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %299

65:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store ptr null, ptr %12, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = call i32 @ast_checkflag(ptr noundef %66, i32 noundef 1048576)
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %79, label %69

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

73:                                               ; preds = %69
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %298

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

79:                                               ; preds = %74, %65
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  store i8 0, ptr %13, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.pass_opt_t, ptr %80, i32 0, i32 36
  %82 = getelementptr inbounds %struct.typecheck_t, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !17
  %84 = getelementptr inbounds %struct.typecheck_frame_t, ptr %83, i32 0, i32 5
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %86 = call ptr @ast_data(ptr noundef %85)
  store ptr %86, ptr %14, align 8, !tbaa !5
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %103

89:                                               ; preds = %79
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = call i32 @ast_id(ptr noundef %90)
  %92 = icmp eq i32 %91, 73
  br i1 %92, label %93, label %103

93:                                               ; preds = %89
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.pass_opt_t, ptr %94, i32 0, i32 36
  %96 = getelementptr inbounds %struct.typecheck_t, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !17
  %98 = getelementptr inbounds %struct.typecheck_frame_t, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !20
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = icmp ne ptr %99, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %93
  store i8 1, ptr %13, align 1, !tbaa !16
  br label %103

103:                                              ; preds = %102, %93, %89, %79
  %104 = load i8, ptr %13, align 1, !tbaa !16, !range !21, !noundef !22
  %105 = trunc i8 %104 to i1
  br i1 %105, label %259, label %106

106:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = call ptr @is_match_exhaustive(ptr noundef %107, ptr noundef %108, ptr noundef %109)
  store ptr %110, ptr %15, align 8, !tbaa !5
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = icmp eq ptr %111, null
  br i1 %112, label %113, label %222

113:                                              ; preds = %106
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = call i32 @ast_id(ptr noundef %114)
  %116 = icmp eq i32 %115, 2
  br i1 %116, label %117, label %221

117:                                              ; preds = %113
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  call void @ast_scope(ptr noundef %118)
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = call ptr @ast_setid(ptr noundef %119, i32 noundef 175)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %121, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  store ptr null, ptr %20, align 8, !tbaa !5
  %122 = load ptr, ptr %17, align 8, !tbaa !5
  %123 = call ptr @ast_from(ptr noundef %122, i32 noundef 186)
  store ptr %123, ptr %20, align 8, !tbaa !5
  %124 = load ptr, ptr %18, align 8, !tbaa !5
  %125 = icmp eq ptr %124, null
  br i1 %125, label %126, label %128

126:                                              ; preds = %117
  %127 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %127, ptr %18, align 8, !tbaa !5
  br label %140

128:                                              ; preds = %117
  %129 = load ptr, ptr %19, align 8, !tbaa !5
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %135

131:                                              ; preds = %128
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = load ptr, ptr %20, align 8, !tbaa !5
  %134 = call ptr @ast_add(ptr noundef %132, ptr noundef %133)
  store ptr %134, ptr %19, align 8, !tbaa !5
  br label %139

135:                                              ; preds = %128
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = load ptr, ptr %20, align 8, !tbaa !5
  %138 = call ptr @ast_add_sibling(ptr noundef %136, ptr noundef %137)
  store ptr %138, ptr %19, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %135, %131
  br label %140

140:                                              ; preds = %139, %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %141 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %141, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  store ptr null, ptr %23, align 8, !tbaa !5
  %142 = load ptr, ptr %21, align 8, !tbaa !5
  %143 = icmp eq ptr %142, null
  br i1 %143, label %144, label %147

144:                                              ; preds = %140
  %145 = load ptr, ptr %17, align 8, !tbaa !5
  %146 = call ptr @ast_from(ptr noundef %145, i32 noundef 2)
  store ptr %146, ptr %21, align 8, !tbaa !5
  br label %161

147:                                              ; preds = %140
  %148 = load ptr, ptr %22, align 8, !tbaa !5
  %149 = icmp eq ptr %148, null
  br i1 %149, label %150, label %155

150:                                              ; preds = %147
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = call ptr @ast_from(ptr noundef %152, i32 noundef 2)
  %154 = call ptr @ast_add(ptr noundef %151, ptr noundef %153)
  store ptr %154, ptr %22, align 8, !tbaa !5
  br label %160

155:                                              ; preds = %147
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = call ptr @ast_from(ptr noundef %157, i32 noundef 2)
  %159 = call ptr @ast_add_sibling(ptr noundef %156, ptr noundef %158)
  store ptr %159, ptr %22, align 8, !tbaa !5
  br label %160

160:                                              ; preds = %155, %150
  br label %161

161:                                              ; preds = %160, %144
  %162 = load ptr, ptr %21, align 8, !tbaa !5
  %163 = icmp eq ptr %162, null
  br i1 %163, label %164, label %167

164:                                              ; preds = %161
  %165 = load ptr, ptr %17, align 8, !tbaa !5
  %166 = call ptr @ast_from_string(ptr noundef %165, ptr noundef @.str.5)
  store ptr %166, ptr %21, align 8, !tbaa !5
  br label %181

167:                                              ; preds = %161
  %168 = load ptr, ptr %22, align 8, !tbaa !5
  %169 = icmp eq ptr %168, null
  br i1 %169, label %170, label %175

170:                                              ; preds = %167
  %171 = load ptr, ptr %21, align 8, !tbaa !5
  %172 = load ptr, ptr %17, align 8, !tbaa !5
  %173 = call ptr @ast_from_string(ptr noundef %172, ptr noundef @.str.5)
  %174 = call ptr @ast_add(ptr noundef %171, ptr noundef %173)
  store ptr %174, ptr %22, align 8, !tbaa !5
  br label %180

175:                                              ; preds = %167
  %176 = load ptr, ptr %22, align 8, !tbaa !5
  %177 = load ptr, ptr %17, align 8, !tbaa !5
  %178 = call ptr @ast_from_string(ptr noundef %177, ptr noundef @.str.5)
  %179 = call ptr @ast_add_sibling(ptr noundef %176, ptr noundef %178)
  store ptr %179, ptr %22, align 8, !tbaa !5
  br label %180

180:                                              ; preds = %175, %170
  br label %181

181:                                              ; preds = %180, %164
  %182 = load ptr, ptr %21, align 8, !tbaa !5
  %183 = icmp eq ptr %182, null
  br i1 %183, label %184, label %187

184:                                              ; preds = %181
  %185 = load ptr, ptr %17, align 8, !tbaa !5
  %186 = call ptr @ast_from(ptr noundef %185, i32 noundef 2)
  store ptr %186, ptr %21, align 8, !tbaa !5
  br label %201

187:                                              ; preds = %181
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = icmp eq ptr %188, null
  br i1 %189, label %190, label %195

190:                                              ; preds = %187
  %191 = load ptr, ptr %21, align 8, !tbaa !5
  %192 = load ptr, ptr %17, align 8, !tbaa !5
  %193 = call ptr @ast_from(ptr noundef %192, i32 noundef 2)
  %194 = call ptr @ast_add(ptr noundef %191, ptr noundef %193)
  store ptr %194, ptr %22, align 8, !tbaa !5
  br label %200

195:                                              ; preds = %187
  %196 = load ptr, ptr %22, align 8, !tbaa !5
  %197 = load ptr, ptr %17, align 8, !tbaa !5
  %198 = call ptr @ast_from(ptr noundef %197, i32 noundef 2)
  %199 = call ptr @ast_add_sibling(ptr noundef %196, ptr noundef %198)
  store ptr %199, ptr %22, align 8, !tbaa !5
  br label %200

200:                                              ; preds = %195, %190
  br label %201

201:                                              ; preds = %200, %184
  %202 = load ptr, ptr %21, align 8, !tbaa !5
  call void @ast_inheritflags(ptr noundef %202)
  %203 = load ptr, ptr %21, align 8, !tbaa !5
  %204 = load ptr, ptr %22, align 8, !tbaa !5
  %205 = load ptr, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  %206 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %206, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = load ptr, ptr %16, align 8, !tbaa !5
  %209 = call ptr @ast_add(ptr noundef %207, ptr noundef %208)
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = call zeroext i1 @expr_typeref(ptr noundef %210, ptr noundef %16)
  br i1 %211, label %212, label %216

212:                                              ; preds = %201
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = call zeroext i1 @expr_seq(ptr noundef %213, ptr noundef %214)
  br i1 %215, label %217, label %216

216:                                              ; preds = %212, %201
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %218

217:                                              ; preds = %212
  store i32 0, ptr %11, align 4
  br label %218

218:                                              ; preds = %217, %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %219 = load i32, ptr %11, align 4
  switch i32 %219, label %256 [
    i32 0, label %220
  ]

220:                                              ; preds = %218
  br label %221

221:                                              ; preds = %220, %113
  br label %255

222:                                              ; preds = %106
  %223 = load ptr, ptr %15, align 8, !tbaa !5
  %224 = call ptr @ast_sibling(ptr noundef %223)
  %225 = icmp ne ptr %224, null
  br i1 %225, label %226, label %238

226:                                              ; preds = %222
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.pass_opt_t, ptr %227, i32 0, i32 36
  %229 = getelementptr inbounds %struct.typecheck_t, ptr %228, i32 0, i32 2
  %230 = load ptr, ptr %229, align 8, !tbaa !9
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %230, ptr noundef %231, ptr noundef @.str.6)
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.pass_opt_t, ptr %232, i32 0, i32 36
  %234 = getelementptr inbounds %struct.typecheck_t, ptr %233, i32 0, i32 2
  %235 = load ptr, ptr %234, align 8, !tbaa !9
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = call ptr @ast_sibling(ptr noundef %236)
  call void (ptr, ptr, ptr, ...) @ast_error_continue(ptr noundef %235, ptr noundef %237, ptr noundef @.str.7)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %256

238:                                              ; preds = %222
  %239 = load ptr, ptr %8, align 8, !tbaa !5
  %240 = call i32 @ast_id(ptr noundef %239)
  %241 = icmp ne i32 %240, 2
  br i1 %241, label %242, label %253

242:                                              ; preds = %238
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.pass_opt_t, ptr %243, i32 0, i32 36
  %245 = getelementptr inbounds %struct.typecheck_t, ptr %244, i32 0, i32 2
  %246 = load ptr, ptr %245, align 8, !tbaa !9
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %246, ptr noundef %247, ptr noundef @.str.8)
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.pass_opt_t, ptr %248, i32 0, i32 36
  %250 = getelementptr inbounds %struct.typecheck_t, ptr %249, i32 0, i32 2
  %251 = load ptr, ptr %250, align 8, !tbaa !9
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error_continue(ptr noundef %251, ptr noundef %252, ptr noundef @.str.9)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %256

253:                                              ; preds = %238
  br label %254

254:                                              ; preds = %253
  br label %255

255:                                              ; preds = %254, %221
  store i32 0, ptr %11, align 4
  br label %256

256:                                              ; preds = %255, %242, %226, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %257 = load i32, ptr %11, align 4
  switch i32 %257, label %297 [
    i32 0, label %258
  ]

258:                                              ; preds = %256
  br label %259

259:                                              ; preds = %258, %103
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = call i32 @ast_id(ptr noundef %260)
  %262 = icmp ne i32 %261, 2
  br i1 %262, label %263, label %278

263:                                              ; preds = %259
  %264 = load ptr, ptr %8, align 8, !tbaa !5
  %265 = call i32 @ast_checkflag(ptr noundef %264, i32 noundef 1048576)
  %266 = icmp ne i32 %265, 0
  br i1 %266, label %277, label %267

267:                                              ; preds = %263
  %268 = load ptr, ptr %8, align 8, !tbaa !5
  %269 = call ptr @ast_type(ptr noundef %268)
  %270 = call zeroext i1 @is_typecheck_error(ptr noundef %269)
  br i1 %270, label %271, label %272

271:                                              ; preds = %267
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %297

272:                                              ; preds = %267
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = load ptr, ptr %12, align 8, !tbaa !5
  %275 = load ptr, ptr %8, align 8, !tbaa !5
  %276 = call ptr @control_type_add_branch(ptr noundef %273, ptr noundef %274, ptr noundef %275)
  store ptr %276, ptr %12, align 8, !tbaa !5
  br label %277

277:                                              ; preds = %272, %263
  br label %278

278:                                              ; preds = %277, %259
  %279 = load ptr, ptr %12, align 8, !tbaa !5
  %280 = icmp eq ptr %279, null
  br i1 %280, label %281, label %292

281:                                              ; preds = %278
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = call ptr @ast_sibling(ptr noundef %282)
  %284 = icmp ne ptr %283, null
  br i1 %284, label %285, label %292

285:                                              ; preds = %281
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.pass_opt_t, ptr %286, i32 0, i32 36
  %288 = getelementptr inbounds %struct.typecheck_t, ptr %287, i32 0, i32 2
  %289 = load ptr, ptr %288, align 8, !tbaa !9
  %290 = load ptr, ptr %5, align 8, !tbaa !5
  %291 = call ptr @ast_sibling(ptr noundef %290)
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %289, ptr noundef %291, ptr noundef @.str.9)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %297

292:                                              ; preds = %281, %278
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = load ptr, ptr %12, align 8, !tbaa !5
  call void @ast_settype(ptr noundef %293, ptr noundef %294)
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  call void @literal_unify_control(ptr noundef %295, ptr noundef %296)
  store i1 true, ptr %3, align 1
  store i32 1, ptr %11, align 4
  br label %297

297:                                              ; preds = %292, %285, %271, %256
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  br label %298

298:                                              ; preds = %297, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %299

299:                                              ; preds = %298, %52, %43, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %300 = load i1, ptr %3, align 1
  ret i1 %300
}

declare i32 @ast_id(ptr noundef) #1

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

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

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) #2

declare ptr @ast_type(ptr noundef) #1

declare zeroext i1 @is_typecheck_error(ptr noundef) #1

declare zeroext i1 @is_type_literal(ptr noundef) #1

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

declare zeroext i1 @is_bare(ptr noundef) #1

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

declare ptr @ast_print_type(ptr noundef) #1

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

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

declare ptr @ast_data(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden ptr @is_match_exhaustive(ptr noundef, ptr noundef, ptr noundef) #0

declare void @ast_scope(ptr noundef) #1

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

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

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

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

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

declare void @ast_inheritflags(ptr noundef) #1

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

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

declare ptr @ast_sibling(ptr noundef) #1

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

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

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

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

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


; 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 [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.expr_match = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1

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

10:                                               ; preds = %2
  tail call void @ponyint_assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i64 noundef 154, ptr noundef nonnull @__func__.expr_match) #3
  br label %11

11:                                               ; preds = %2, %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #3
  store ptr %3, ptr %6, align 16, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %4, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %5, ptr %13, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %6, i64 24
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @ast_get_children(ptr noundef %1, i64 noundef 3, ptr noundef nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #3
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = call ptr @ast_type(ptr noundef %15) #3
  %17 = call zeroext i1 @is_typecheck_error(ptr noundef %16) #3
  br i1 %17, label %.critedge103, label %18

18:                                               ; preds = %11
  %19 = call zeroext i1 @is_type_literal(ptr noundef %16) #3
  br i1 %19, label %20, label %24

20:                                               ; preds = %18
  %21 = getelementptr inbounds i8, ptr %0, i64 216
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %22, ptr noundef %23, ptr noundef nonnull @.str.2) #3
  br label %.critedge103

24:                                               ; preds = %18
  %25 = call zeroext i1 @is_bare(ptr noundef %16) #3
  br i1 %25, label %26, label %32

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %0, i64 216
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %28, ptr noundef %29, ptr noundef nonnull @.str.3) #3
  %30 = load ptr, ptr %27, align 8, !tbaa !9
  %31 = call ptr @ast_print_type(ptr noundef %16) #3
  call void (ptr, ptr, ptr, ...) @ast_error_continue(ptr noundef %30, ptr noundef %16, ptr noundef nonnull @.str.4, ptr noundef %31) #3
  br label %.critedge103

32:                                               ; preds = %24
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call i32 @ast_checkflag(ptr noundef %33, i32 noundef 1048576) #3
  %.not = icmp eq i32 %34, 0
  br i1 %.not, label %35, label %42

35:                                               ; preds = %32
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call ptr @ast_type(ptr noundef %36) #3
  %38 = call zeroext i1 @is_typecheck_error(ptr noundef %37) #3
  br i1 %38, label %.critedge103, label %39

39:                                               ; preds = %35
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = call ptr @control_type_add_branch(ptr noundef %0, ptr noundef null, ptr noundef %40) #3
  br label %42

42:                                               ; preds = %39, %32
  %.088 = phi ptr [ null, %32 ], [ %41, %39 ]
  %43 = getelementptr inbounds i8, ptr %0, i64 176
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %44, i64 40
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = call ptr @ast_data(ptr noundef %46) #3
  %.not93 = icmp eq ptr %47, null
  br i1 %.not93, label %.critedge, label %48

48:                                               ; preds = %42
  %49 = call i32 @ast_id(ptr noundef nonnull %47) #3
  %50 = icmp eq i32 %49, 73
  br i1 %50, label %51, label %.critedge

51:                                               ; preds = %48
  %52 = load ptr, ptr %43, align 8, !tbaa !16
  %53 = getelementptr inbounds i8, ptr %52, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !19
  %.not94.not = icmp eq ptr %54, %47
  br i1 %.not94.not, label %.critedge, label %115

.critedge:                                        ; preds = %48, %42, %51
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call ptr @is_match_exhaustive(ptr noundef nonnull %0, ptr noundef %16, ptr noundef %55)
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %100

58:                                               ; preds = %.critedge
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = call i32 @ast_id(ptr noundef %59) #3
  %61 = icmp eq i32 %60, 2
  br i1 %61, label %62, label %115

62:                                               ; preds = %58
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  call void @ast_scope(ptr noundef %63) #3
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = call ptr @ast_setid(ptr noundef %64, i32 noundef 175) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call ptr @ast_from(ptr noundef %66, i32 noundef 186) #3
  %68 = icmp eq ptr %67, null
  %69 = call ptr @ast_from(ptr noundef %66, i32 noundef 2) #3
  br i1 %68, label %70, label %72

70:                                               ; preds = %62
  %71 = icmp eq ptr %69, null
  br i1 %71, label %80, label %.thread108

72:                                               ; preds = %62
  %73 = call ptr @ast_add(ptr noundef nonnull %67, ptr noundef %69) #3
  %74 = icmp eq ptr %73, null
  br i1 %74, label %.thread108, label %77

.thread108:                                       ; preds = %70, %72
  %.082106111 = phi ptr [ %67, %72 ], [ %69, %70 ]
  %75 = call ptr @ast_from_string(ptr noundef %66, ptr noundef nonnull @.str.5) #3
  %76 = call ptr @ast_add(ptr noundef nonnull %.082106111, ptr noundef %75) #3
  br label %85

77:                                               ; preds = %72
  %78 = call ptr @ast_from_string(ptr noundef %66, ptr noundef nonnull @.str.5) #3
  %79 = call ptr @ast_add_sibling(ptr noundef nonnull %73, ptr noundef %78) #3
  br label %85

80:                                               ; preds = %70
  %81 = call ptr @ast_from_string(ptr noundef %66, ptr noundef nonnull @.str.5) #3
  %82 = icmp eq ptr %81, null
  br i1 %82, label %83, label %.thread117

83:                                               ; preds = %80
  %84 = call ptr @ast_from(ptr noundef %66, i32 noundef 2) #3
  br label %92

85:                                               ; preds = %.thread108, %77
  %.183.ph = phi ptr [ %67, %77 ], [ %.082106111, %.thread108 ]
  %.180.ph = phi ptr [ %79, %77 ], [ %76, %.thread108 ]
  %86 = icmp eq ptr %.180.ph, null
  br i1 %86, label %.thread117, label %89

.thread117:                                       ; preds = %80, %85
  %.183115120 = phi ptr [ %.183.ph, %85 ], [ %81, %80 ]
  %87 = call ptr @ast_from(ptr noundef %66, i32 noundef 2) #3
  %88 = call ptr @ast_add(ptr noundef nonnull %.183115120, ptr noundef %87) #3
  br label %92

89:                                               ; preds = %85
  %90 = call ptr @ast_from(ptr noundef %66, i32 noundef 2) #3
  %91 = call ptr @ast_add_sibling(ptr noundef nonnull %.180.ph, ptr noundef %90) #3
  br label %92

92:                                               ; preds = %.thread117, %89, %83
  %.284 = phi ptr [ %84, %83 ], [ %.183115120, %.thread117 ], [ %.183.ph, %89 ]
  call void @ast_inheritflags(ptr noundef %.284) #3
  store ptr %67, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call ptr @ast_add(ptr noundef %93, ptr noundef %67) #3
  %95 = call zeroext i1 @expr_typeref(ptr noundef nonnull %0, ptr noundef nonnull %7) #3
  br i1 %95, label %96, label %99

96:                                               ; preds = %92
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = call zeroext i1 @expr_seq(ptr noundef nonnull %0, ptr noundef %97) #3
  br i1 %98, label %.critedge101, label %99

.critedge101:                                     ; preds = %96
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  br label %115

99:                                               ; preds = %92, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  br label %.critedge103

100:                                              ; preds = %.critedge
  %101 = call ptr @ast_sibling(ptr noundef nonnull %56) #3
  %.not95 = icmp eq ptr %101, null
  br i1 %.not95, label %107, label %102

102:                                              ; preds = %100
  %103 = getelementptr inbounds i8, ptr %0, i64 216
  %104 = load ptr, ptr %103, align 8, !tbaa !9
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %104, ptr noundef %1, ptr noundef nonnull @.str.6) #3
  %105 = load ptr, ptr %103, align 8, !tbaa !9
  %106 = call ptr @ast_sibling(ptr noundef nonnull %56) #3
  call void (ptr, ptr, ptr, ...) @ast_error_continue(ptr noundef %105, ptr noundef %106, ptr noundef nonnull @.str.7) #3
  br label %.critedge103

107:                                              ; preds = %100
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = call i32 @ast_id(ptr noundef %108) #3
  %.not96 = icmp eq i32 %109, 2
  br i1 %.not96, label %115, label %110

110:                                              ; preds = %107
  %111 = getelementptr inbounds i8, ptr %0, i64 216
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %112, ptr noundef %1, ptr noundef nonnull @.str.8) #3
  %113 = load ptr, ptr %111, align 8, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ptr, ptr, ...) @ast_error_continue(ptr noundef %113, ptr noundef %114, ptr noundef nonnull @.str.9) #3
  br label %.critedge103

115:                                              ; preds = %.critedge101, %107, %58, %51
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = call i32 @ast_id(ptr noundef %116) #3
  %.not97 = icmp eq i32 %117, 2
  br i1 %.not97, label %128, label %118

118:                                              ; preds = %115
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = call i32 @ast_checkflag(ptr noundef %119, i32 noundef 1048576) #3
  %.not98 = icmp eq i32 %120, 0
  br i1 %.not98, label %121, label %128

121:                                              ; preds = %118
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = call ptr @ast_type(ptr noundef %122) #3
  %124 = call zeroext i1 @is_typecheck_error(ptr noundef %123) #3
  br i1 %124, label %.critedge103, label %125

125:                                              ; preds = %121
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = call ptr @control_type_add_branch(ptr noundef nonnull %0, ptr noundef %.088, ptr noundef %126) #3
  br label %128

128:                                              ; preds = %118, %125, %115
  %.189 = phi ptr [ %.088, %118 ], [ %127, %125 ], [ %.088, %115 ]
  %129 = icmp eq ptr %.189, null
  br i1 %129, label %130, label %136

130:                                              ; preds = %128
  %131 = call ptr @ast_sibling(ptr noundef %1) #3
  %.not99 = icmp eq ptr %131, null
  br i1 %.not99, label %136, label %132

132:                                              ; preds = %130
  %133 = getelementptr inbounds i8, ptr %0, i64 216
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  %135 = call ptr @ast_sibling(ptr noundef %1) #3
  call void (ptr, ptr, ptr, ...) @ast_error(ptr noundef %134, ptr noundef %135, ptr noundef nonnull @.str.9) #3
  br label %.critedge103

136:                                              ; preds = %130, %128
  call void @ast_settype(ptr noundef %1, ptr noundef %.189) #3
  call void @literal_unify_control(ptr noundef %1, ptr noundef nonnull %0) #3
  br label %.critedge103

.critedge103:                                     ; preds = %35, %99, %102, %110, %121, %136, %132, %11, %26, %20
  %.5 = phi i1 [ false, %20 ], [ false, %26 ], [ false, %11 ], [ false, %35 ], [ false, %132 ], [ true, %136 ], [ false, %121 ], [ false, %110 ], [ false, %102 ], [ false, %99 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i1 %.5
}

declare i32 @ast_id(ptr noundef) local_unnamed_addr #1

declare void @ponyint_assert_fail(ptr noundef, 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.start.p0(i64 immarg, ptr nocapture) #2

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) #2

declare ptr @ast_type(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

declare ptr @ast_print_type(ptr noundef) local_unnamed_addr #1

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

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

declare ptr @ast_data(ptr noundef) local_unnamed_addr #1

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

declare void @ast_scope(ptr noundef) local_unnamed_addr #1

declare ptr @ast_setid(ptr noundef, i32 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

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

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

declare void @ast_inheritflags(ptr noundef) local_unnamed_addr #1

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

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

declare ptr @ast_sibling(ptr noundef) local_unnamed_addr #1

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

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

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

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

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


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