; LLVM IR from buzz-lang/Buzz :: src/buzz (buzzparser)

; 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.idrefinfo_s = type { i32, i32 }
%struct.buzzparser_s = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.buzztok_s = type { i32, ptr, i64, i64, ptr }

@PARSE_ERROR = external hidden global i32, align 4
@PARSE_OK = external hidden global i32, align 4
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @string_add(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @match(ptr noundef, i32 noundef) #2

declare ptr @buzzlex_nexttok(ptr noundef) #3

declare void @buzzlex_destroytok(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @parse_condition(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strchr(ptr noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @parse_power(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @parse_operand(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %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 i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %struct.idrefinfo_s, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.buzzparser_s, ptr %15, i32 0, i32 4
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = getelementptr inbounds %struct.buzztok_s, ptr %17, i32 0, i32 0
  %19 = load i32, ptr %18, align 8, !tbaa !12
  %20 = icmp eq i32 %19, 7
  br i1 %20, label %21, label %41

21:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.buzzparser_s, ptr %22, i32 0, i32 10
  %24 = load i32, ptr %23, align 8, !tbaa !15
  %25 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %4, ptr noundef @.str.65, i32 noundef %24) #5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.buzzparser_s, ptr %26, i32 0, i32 6
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.buzzparser_s, ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  call void @chunk_addcode(ptr noundef %28, ptr noundef %29, ptr noundef %32)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call i32 @parse_lambda(ptr noundef %34)
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %39, label %37

37:                                               ; preds = %21
  %38 = load i32, ptr @PARSE_ERROR, align 4, !tbaa !17
  store i32 %38, ptr %2, align 4
  br label %432

39:                                               ; preds = %21
  %40 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  store i32 %40, ptr %2, align 4
  br label %432

41:                                               ; preds = %1
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.buzzparser_s, ptr %42, i32 0, i32 4
  %44 = load ptr, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.buzztok_s, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !12
  %47 = icmp eq i32 %46, 4
  br i1 %47, label %48, label %85

48:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %49 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %5, ptr noundef @.str.20) #5
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.buzzparser_s, ptr %50, i32 0, i32 6
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.buzzparser_s, ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !9
  call void @chunk_addcode(ptr noundef %52, ptr noundef %53, ptr noundef %56)
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %57) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %58

58:                                               ; preds = %81, %48
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.buzzparser_s, ptr %59, i32 0, i32 4
  call void @buzzlex_destroytok(ptr noundef %60)
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.buzzparser_s, ptr %61, i32 0, i32 3
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = call ptr @buzzlex_nexttok(ptr noundef %63)
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.buzzparser_s, ptr %65, i32 0, i32 4
  store ptr %64, ptr %66, align 8, !tbaa !9
  br label %67

67:                                               ; preds = %58
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.buzzparser_s, ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.buzztok_s, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !12
  %73 = icmp ne i32 %72, 31
  br i1 %73, label %74, label %81

74:                                               ; preds = %67
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.buzzparser_s, ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.buzztok_s, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !12
  %80 = icmp eq i32 %79, 26
  br label %81

81:                                               ; preds = %74, %67
  %82 = phi i1 [ false, %67 ], [ %80, %74 ]
  br i1 %82, label %58, label %83, !llvm.loop !19

83:                                               ; preds = %81
  %84 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  store i32 %84, ptr %2, align 4
  br label %432

85:                                               ; preds = %41
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.buzzparser_s, ptr %86, i32 0, i32 4
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.buzztok_s, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 8, !tbaa !12
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %158

92:                                               ; preds = %85
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.buzzparser_s, ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.buzztok_s, ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !21
  %98 = call ptr @strchr(ptr noundef %97, i32 noundef 46) #6
  %99 = icmp ne ptr %98, null
  br i1 %99, label %100, label %115

100:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.buzzparser_s, ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.buzztok_s, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !21
  %106 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %6, ptr noundef @.str.48, ptr noundef %105) #5
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.buzzparser_s, ptr %107, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !16
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.buzzparser_s, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  call void @chunk_addcode(ptr noundef %109, ptr noundef %110, ptr noundef %113)
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  call void @free(ptr noundef %114) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %130

115:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.buzzparser_s, ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.buzztok_s, ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  %121 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %7, ptr noundef @.str.49, ptr noundef %120) #5
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.buzzparser_s, ptr %122, i32 0, i32 6
  %124 = load ptr, ptr %123, align 8, !tbaa !16
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.buzzparser_s, ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  call void @chunk_addcode(ptr noundef %124, ptr noundef %125, ptr noundef %128)
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %129) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %130

130:                                              ; preds = %115, %100
  br label %131

131:                                              ; preds = %154, %130
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.buzzparser_s, ptr %132, i32 0, i32 4
  call void @buzzlex_destroytok(ptr noundef %133)
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.buzzparser_s, ptr %134, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = call ptr @buzzlex_nexttok(ptr noundef %136)
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.buzzparser_s, ptr %138, i32 0, i32 4
  store ptr %137, ptr %139, align 8, !tbaa !9
  br label %140

140:                                              ; preds = %131
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.buzzparser_s, ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.buzztok_s, ptr %143, i32 0, i32 0
  %145 = load i32, ptr %144, align 8, !tbaa !12
  %146 = icmp ne i32 %145, 31
  br i1 %146, label %147, label %154

147:                                              ; preds = %140
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.buzzparser_s, ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.buzztok_s, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !12
  %153 = icmp eq i32 %152, 26
  br label %154

154:                                              ; preds = %147, %140
  %155 = phi i1 [ false, %140 ], [ %153, %147 ]
  br i1 %155, label %131, label %156, !llvm.loop !22

156:                                              ; preds = %154
  %157 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  store i32 %157, ptr %2, align 4
  br label %432

158:                                              ; preds = %85
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.buzzparser_s, ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.buzztok_s, ptr %161, i32 0, i32 0
  %163 = load i32, ptr %162, align 8, !tbaa !12
  %164 = icmp eq i32 %163, 2
  br i1 %164, label %165, label %211

165:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.buzzparser_s, ptr %166, i32 0, i32 9
  %168 = load ptr, ptr %167, align 8, !tbaa !23
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.buzzparser_s, ptr %169, i32 0, i32 4
  %171 = load ptr, ptr %170, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.buzztok_s, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !21
  %174 = call i32 @string_add(ptr noundef %168, ptr noundef %173)
  %175 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %8, ptr noundef @.str.47, i32 noundef %174) #5
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.buzzparser_s, ptr %176, i32 0, i32 6
  %178 = load ptr, ptr %177, align 8, !tbaa !16
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.buzzparser_s, ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  call void @chunk_addcode(ptr noundef %178, ptr noundef %179, ptr noundef %182)
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %183) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %184

184:                                              ; preds = %207, %165
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.buzzparser_s, ptr %185, i32 0, i32 4
  call void @buzzlex_destroytok(ptr noundef %186)
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.buzzparser_s, ptr %187, i32 0, i32 3
  %189 = load ptr, ptr %188, align 8, !tbaa !18
  %190 = call ptr @buzzlex_nexttok(ptr noundef %189)
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.buzzparser_s, ptr %191, i32 0, i32 4
  store ptr %190, ptr %192, align 8, !tbaa !9
  br label %193

193:                                              ; preds = %184
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.buzzparser_s, ptr %194, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.buzztok_s, ptr %196, i32 0, i32 0
  %198 = load i32, ptr %197, align 8, !tbaa !12
  %199 = icmp ne i32 %198, 31
  br i1 %199, label %200, label %207

200:                                              ; preds = %193
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.buzzparser_s, ptr %201, i32 0, i32 4
  %203 = load ptr, ptr %202, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.buzztok_s, ptr %203, i32 0, i32 0
  %205 = load i32, ptr %204, align 8, !tbaa !12
  %206 = icmp eq i32 %205, 26
  br label %207

207:                                              ; preds = %200, %193
  %208 = phi i1 [ false, %193 ], [ %206, %200 ]
  br i1 %208, label %184, label %209, !llvm.loop !24

209:                                              ; preds = %207
  %210 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  store i32 %210, ptr %2, align 4
  br label %432

211:                                              ; preds = %158
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.buzzparser_s, ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct.buzztok_s, ptr %214, i32 0, i32 0
  %216 = load i32, ptr %215, align 8, !tbaa !12
  %217 = icmp eq i32 %216, 22
  br i1 %217, label %218, label %284

218:                                              ; preds = %211
  br label %219

219:                                              ; preds = %242, %218
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.buzzparser_s, ptr %220, i32 0, i32 4
  call void @buzzlex_destroytok(ptr noundef %221)
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.buzzparser_s, ptr %222, i32 0, i32 3
  %224 = load ptr, ptr %223, align 8, !tbaa !18
  %225 = call ptr @buzzlex_nexttok(ptr noundef %224)
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.buzzparser_s, ptr %226, i32 0, i32 4
  store ptr %225, ptr %227, align 8, !tbaa !9
  br label %228

228:                                              ; preds = %219
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.buzzparser_s, ptr %229, i32 0, i32 4
  %231 = load ptr, ptr %230, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.buzztok_s, ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 8, !tbaa !12
  %234 = icmp ne i32 %233, 31
  br i1 %234, label %235, label %242

235:                                              ; preds = %228
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.buzzparser_s, ptr %236, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.buzztok_s, ptr %238, i32 0, i32 0
  %240 = load i32, ptr %239, align 8, !tbaa !12
  %241 = icmp eq i32 %240, 26
  br label %242

242:                                              ; preds = %235, %228
  %243 = phi i1 [ false, %228 ], [ %241, %235 ]
  br i1 %243, label %219, label %244, !llvm.loop !25

244:                                              ; preds = %242
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = call i32 @parse_condition(ptr noundef %245)
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %250, label %248

248:                                              ; preds = %244
  %249 = load i32, ptr @PARSE_ERROR, align 4, !tbaa !17
  store i32 %249, ptr %2, align 4
  br label %432

250:                                              ; preds = %244
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = call i32 @match(ptr noundef %251, i32 noundef 23)
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %256, label %254

254:                                              ; preds = %250
  %255 = load i32, ptr @PARSE_ERROR, align 4, !tbaa !17
  store i32 %255, ptr %2, align 4
  br label %432

256:                                              ; preds = %250
  br label %257

257:                                              ; preds = %280, %256
  %258 = load ptr, ptr %3, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.buzzparser_s, ptr %258, i32 0, i32 4
  call void @buzzlex_destroytok(ptr noundef %259)
  %260 = load ptr, ptr %3, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.buzzparser_s, ptr %260, i32 0, i32 3
  %262 = load ptr, ptr %261, align 8, !tbaa !18
  %263 = call ptr @buzzlex_nexttok(ptr noundef %262)
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.buzzparser_s, ptr %264, i32 0, i32 4
  store ptr %263, ptr %265, align 8, !tbaa !9
  br label %266

266:                                              ; preds = %257
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.buzzparser_s, ptr %267, i32 0, i32 4
  %269 = load ptr, ptr %268, align 8, !tbaa !9
  %270 = getelementptr inbounds %struct.buzztok_s, ptr %269, i32 0, i32 0
  %271 = load i32, ptr %270, align 8, !tbaa !12
  %272 = icmp ne i32 %271, 31
  br i1 %272, label %273, label %280

273:                                              ; preds = %266
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.buzzparser_s, ptr %274, i32 0, i32 4
  %276 = load ptr, ptr %275, align 8, !tbaa !9
  %277 = getelementptr inbounds %struct.buzztok_s, ptr %276, i32 0, i32 0
  %278 = load i32, ptr %277, align 8, !tbaa !12
  %279 = icmp eq i32 %278, 26
  br label %280

280:                                              ; preds = %273, %266
  %281 = phi i1 [ false, %266 ], [ %279, %273 ]
  br i1 %281, label %257, label %282, !llvm.loop !26

282:                                              ; preds = %280
  %283 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  store i32 %283, ptr %2, align 4
  br label %432

284:                                              ; preds = %211
  %285 = load ptr, ptr %3, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.buzzparser_s, ptr %285, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.buzztok_s, ptr %287, i32 0, i32 0
  %289 = load i32, ptr %288, align 8, !tbaa !12
  %290 = icmp eq i32 %289, 13
  br i1 %290, label %291, label %424

291:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  %292 = load ptr, ptr %3, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.buzzparser_s, ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !9
  %295 = getelementptr inbounds %struct.buzztok_s, ptr %294, i32 0, i32 1
  %296 = load ptr, ptr %295, align 8, !tbaa !21
  %297 = getelementptr inbounds i8, ptr %296, i64 0
  %298 = load i8, ptr %297, align 1, !tbaa !27
  store i8 %298, ptr %9, align 1, !tbaa !27
  br label %299

299:                                              ; preds = %322, %291
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.buzzparser_s, ptr %300, i32 0, i32 4
  call void @buzzlex_destroytok(ptr noundef %301)
  %302 = load ptr, ptr %3, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.buzzparser_s, ptr %302, i32 0, i32 3
  %304 = load ptr, ptr %303, align 8, !tbaa !18
  %305 = call ptr @buzzlex_nexttok(ptr noundef %304)
  %306 = load ptr, ptr %3, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.buzzparser_s, ptr %306, i32 0, i32 4
  store ptr %305, ptr %307, align 8, !tbaa !9
  br label %308

308:                                              ; preds = %299
  %309 = load ptr, ptr %3, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.buzzparser_s, ptr %309, i32 0, i32 4
  %311 = load ptr, ptr %310, align 8, !tbaa !9
  %312 = getelementptr inbounds %struct.buzztok_s, ptr %311, i32 0, i32 0
  %313 = load i32, ptr %312, align 8, !tbaa !12
  %314 = icmp ne i32 %313, 31
  br i1 %314, label %315, label %322

315:                                              ; preds = %308
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.buzzparser_s, ptr %316, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !9
  %319 = getelementptr inbounds %struct.buzztok_s, ptr %318, i32 0, i32 0
  %320 = load i32, ptr %319, align 8, !tbaa !12
  %321 = icmp eq i32 %320, 26
  br label %322

322:                                              ; preds = %315, %308
  %323 = phi i1 [ false, %308 ], [ %321, %315 ]
  br i1 %323, label %299, label %324, !llvm.loop !28

324:                                              ; preds = %322
  %325 = load ptr, ptr %3, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.buzzparser_s, ptr %325, i32 0, i32 4
  %327 = load ptr, ptr %326, align 8, !tbaa !9
  %328 = getelementptr inbounds %struct.buzztok_s, ptr %327, i32 0, i32 0
  %329 = load i32, ptr %328, align 8, !tbaa !12
  %330 = icmp eq i32 %329, 1
  br i1 %330, label %331, label %401

331:                                              ; preds = %324
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.buzzparser_s, ptr %332, i32 0, i32 4
  %334 = load ptr, ptr %333, align 8, !tbaa !9
  %335 = getelementptr inbounds %struct.buzztok_s, ptr %334, i32 0, i32 1
  %336 = load ptr, ptr %335, align 8, !tbaa !21
  %337 = call ptr @strchr(ptr noundef %336, i32 noundef 46) #6
  %338 = icmp ne ptr %337, null
  br i1 %338, label %339, label %356

339:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %340 = load i8, ptr %9, align 1, !tbaa !27
  %341 = sext i8 %340 to i32
  %342 = load ptr, ptr %3, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.buzzparser_s, ptr %342, i32 0, i32 4
  %344 = load ptr, ptr %343, align 8, !tbaa !9
  %345 = getelementptr inbounds %struct.buzztok_s, ptr %344, i32 0, i32 1
  %346 = load ptr, ptr %345, align 8, !tbaa !21
  %347 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %10, ptr noundef @.str.66, i32 noundef %341, ptr noundef %346) #5
  %348 = load ptr, ptr %3, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.buzzparser_s, ptr %348, i32 0, i32 6
  %350 = load ptr, ptr %349, align 8, !tbaa !16
  %351 = load ptr, ptr %10, align 8, !tbaa !5
  %352 = load ptr, ptr %3, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.buzzparser_s, ptr %352, i32 0, i32 4
  %354 = load ptr, ptr %353, align 8, !tbaa !9
  call void @chunk_addcode(ptr noundef %350, ptr noundef %351, ptr noundef %354)
  %355 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %355) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %373

356:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %357 = load i8, ptr %9, align 1, !tbaa !27
  %358 = sext i8 %357 to i32
  %359 = load ptr, ptr %3, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.buzzparser_s, ptr %359, i32 0, i32 4
  %361 = load ptr, ptr %360, align 8, !tbaa !9
  %362 = getelementptr inbounds %struct.buzztok_s, ptr %361, i32 0, i32 1
  %363 = load ptr, ptr %362, align 8, !tbaa !21
  %364 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %11, ptr noundef @.str.67, i32 noundef %358, ptr noundef %363) #5
  %365 = load ptr, ptr %3, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.buzzparser_s, ptr %365, i32 0, i32 6
  %367 = load ptr, ptr %366, align 8, !tbaa !16
  %368 = load ptr, ptr %11, align 8, !tbaa !5
  %369 = load ptr, ptr %3, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.buzzparser_s, ptr %369, i32 0, i32 4
  %371 = load ptr, ptr %370, align 8, !tbaa !9
  call void @chunk_addcode(ptr noundef %367, ptr noundef %368, ptr noundef %371)
  %372 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %372) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %373

373:                                              ; preds = %356, %339
  br label %374

374:                                              ; preds = %397, %373
  %375 = load ptr, ptr %3, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.buzzparser_s, ptr %375, i32 0, i32 4
  call void @buzzlex_destroytok(ptr noundef %376)
  %377 = load ptr, ptr %3, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.buzzparser_s, ptr %377, i32 0, i32 3
  %379 = load ptr, ptr %378, align 8, !tbaa !18
  %380 = call ptr @buzzlex_nexttok(ptr noundef %379)
  %381 = load ptr, ptr %3, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.buzzparser_s, ptr %381, i32 0, i32 4
  store ptr %380, ptr %382, align 8, !tbaa !9
  br label %383

383:                                              ; preds = %374
  %384 = load ptr, ptr %3, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.buzzparser_s, ptr %384, i32 0, i32 4
  %386 = load ptr, ptr %385, align 8, !tbaa !9
  %387 = getelementptr inbounds %struct.buzztok_s, ptr %386, i32 0, i32 0
  %388 = load i32, ptr %387, align 8, !tbaa !12
  %389 = icmp ne i32 %388, 31
  br i1 %389, label %390, label %397

390:                                              ; preds = %383
  %391 = load ptr, ptr %3, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.buzzparser_s, ptr %391, i32 0, i32 4
  %393 = load ptr, ptr %392, align 8, !tbaa !9
  %394 = getelementptr inbounds %struct.buzztok_s, ptr %393, i32 0, i32 0
  %395 = load i32, ptr %394, align 8, !tbaa !12
  %396 = icmp eq i32 %395, 26
  br label %397

397:                                              ; preds = %390, %383
  %398 = phi i1 [ false, %383 ], [ %396, %390 ]
  br i1 %398, label %374, label %399, !llvm.loop !29

399:                                              ; preds = %397
  %400 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  store i32 %400, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %423

401:                                              ; preds = %324
  %402 = load ptr, ptr %3, align 8, !tbaa !5
  %403 = call i32 @parse_power(ptr noundef %402)
  %404 = icmp ne i32 %403, 0
  br i1 %404, label %407, label %405

405:                                              ; preds = %401
  %406 = load i32, ptr @PARSE_ERROR, align 4, !tbaa !17
  store i32 %406, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %423

407:                                              ; preds = %401
  %408 = load i8, ptr %9, align 1, !tbaa !27
  %409 = sext i8 %408 to i32
  %410 = icmp eq i32 %409, 45
  br i1 %410, label %411, label %421

411:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %412 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %13, ptr noundef @.str.68) #5
  %413 = load ptr, ptr %3, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.buzzparser_s, ptr %413, i32 0, i32 6
  %415 = load ptr, ptr %414, align 8, !tbaa !16
  %416 = load ptr, ptr %13, align 8, !tbaa !5
  %417 = load ptr, ptr %3, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.buzzparser_s, ptr %417, i32 0, i32 4
  %419 = load ptr, ptr %418, align 8, !tbaa !9
  call void @chunk_addcode(ptr noundef %415, ptr noundef %416, ptr noundef %419)
  %420 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %420) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %421

421:                                              ; preds = %411, %407
  %422 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  store i32 %422, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %423

423:                                              ; preds = %421, %405, %399
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %432

424:                                              ; preds = %284
  br label %425

425:                                              ; preds = %424
  br label %426

426:                                              ; preds = %425
  br label %427

427:                                              ; preds = %426
  br label %428

428:                                              ; preds = %427
  br label %429

429:                                              ; preds = %428
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %430 = load ptr, ptr %3, align 8, !tbaa !5
  %431 = call i32 @parse_idref(ptr noundef %430, i32 noundef 0, ptr noundef %14)
  store i32 %431, ptr %2, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %432

432:                                              ; preds = %429, %423, %282, %254, %248, %209, %156, %83, %39, %37
  %433 = load i32, ptr %2, align 4
  ret i32 %433
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @parse_lambda(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @parse_idref(ptr noundef, i32 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 = { "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 #4 = { nounwind willreturn memory(read) "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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 32}
!10 = !{!"buzzparser_s", !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, !11, i64 80}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"buzztok_s", !11, i64 0, !6, i64 8, !14, i64 16, !14, i64 24, !6, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !11, i64 80}
!16 = !{!10, !6, i64 48}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !6, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!13, !6, i64 8}
!22 = distinct !{!22, !20}
!23 = !{!10, !6, i64 72}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{!7, !7, i64 0}
!28 = distinct !{!28, !20}
!29 = distinct !{!29, !20}


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

%struct.idrefinfo_s = type { i32, i32 }

@PARSE_ERROR = external hidden local_unnamed_addr global i32, align 4
@PARSE_OK = external hidden local_unnamed_addr global i32, align 4
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [5 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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @string_add(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @match(ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @buzzlex_nexttok(ptr noundef) local_unnamed_addr #4

declare void @buzzlex_destroytok(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strchr(ptr noundef, i32 noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
define dso_local i32 @parse_operand(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.idrefinfo_s, align 4
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = load i32, ptr %12, align 8, !tbaa !11
  switch i32 %13, label %141 [
    i32 7, label %15
    i32 4, label %29
    i32 1, label %42
    i32 2, label %66
    i32 22, label %.preheader114
    i32 13, label %99
  ]

.preheader114:                                    ; preds = %1
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  br label %84

15:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  %17 = load i32, ptr %16, align 8, !tbaa !14
  %18 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.65, i32 noundef %17) #6
  %19 = getelementptr inbounds i8, ptr %0, i64 48
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %21 = load ptr, ptr %2, align 8, !tbaa !16
  %22 = load ptr, ptr %11, align 8, !tbaa !5
  call void @chunk_addcode(ptr noundef %20, ptr noundef %21, ptr noundef %22)
  %23 = load ptr, ptr %2, align 8, !tbaa !16
  call void @free(ptr noundef %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %24 = call i32 @parse_lambda(ptr noundef nonnull %0)
  %.not107 = icmp eq i32 %24, 0
  br i1 %.not107, label %25, label %27

25:                                               ; preds = %15
  %26 = load i32, ptr @PARSE_ERROR, align 4, !tbaa !17
  br label %143

27:                                               ; preds = %15
  %28 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  br label %143

29:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %30 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %3, ptr noundef nonnull @.str.20) #6
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = load ptr, ptr %3, align 8, !tbaa !16
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  call void @chunk_addcode(ptr noundef %32, ptr noundef %33, ptr noundef %34)
  %35 = load ptr, ptr %3, align 8, !tbaa !16
  call void @free(ptr noundef %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  br label %37

37:                                               ; preds = %37, %29
  call void @buzzlex_destroytok(ptr noundef nonnull %11) #6
  %38 = load ptr, ptr %36, align 8, !tbaa !18
  %39 = call ptr @buzzlex_nexttok(ptr noundef %38) #6
  store ptr %39, ptr %11, align 8, !tbaa !5
  %40 = load i32, ptr %39, align 8, !tbaa !11
  %cond = icmp eq i32 %40, 26
  br i1 %cond, label %37, label %.critedge

.critedge:                                        ; preds = %37
  %41 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  br label %143

42:                                               ; preds = %1
  %43 = getelementptr inbounds i8, ptr %12, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  %45 = tail call ptr @strchr(ptr noundef nonnull dereferenceable(1) %44, i32 noundef 46) #7
  %.not104 = icmp eq ptr %45, null
  %46 = getelementptr inbounds i8, ptr %0, i64 48
  br i1 %.not104, label %53, label %47

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %48 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.48, ptr noundef %44) #6
  %49 = load ptr, ptr %46, align 8, !tbaa !15
  %50 = load ptr, ptr %4, align 8, !tbaa !16
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  call void @chunk_addcode(ptr noundef %49, ptr noundef %50, ptr noundef %51)
  %52 = load ptr, ptr %4, align 8, !tbaa !16
  call void @free(ptr noundef %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %59

53:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %54 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.49, ptr noundef %44) #6
  %55 = load ptr, ptr %46, align 8, !tbaa !15
  %56 = load ptr, ptr %5, align 8, !tbaa !16
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  call void @chunk_addcode(ptr noundef %55, ptr noundef %56, ptr noundef %57)
  %58 = load ptr, ptr %5, align 8, !tbaa !16
  call void @free(ptr noundef %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  br label %59

59:                                               ; preds = %53, %47
  %60 = getelementptr inbounds i8, ptr %0, i64 24
  br label %61

61:                                               ; preds = %61, %59
  call void @buzzlex_destroytok(ptr noundef nonnull %11) #6
  %62 = load ptr, ptr %60, align 8, !tbaa !18
  %63 = call ptr @buzzlex_nexttok(ptr noundef %62) #6
  store ptr %63, ptr %11, align 8, !tbaa !5
  %64 = load i32, ptr %63, align 8, !tbaa !11
  %cond108 = icmp eq i32 %64, 26
  br i1 %cond108, label %61, label %.critedge2

.critedge2:                                       ; preds = %61
  %65 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  br label %143

66:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %67 = getelementptr inbounds i8, ptr %0, i64 72
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = getelementptr inbounds i8, ptr %12, i64 8
  %70 = load ptr, ptr %69, align 8, !tbaa !19
  %71 = tail call i32 @string_add(ptr noundef %68, ptr noundef %70)
  %72 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.47, i32 noundef %71) #6
  %73 = getelementptr inbounds i8, ptr %0, i64 48
  %74 = load ptr, ptr %73, align 8, !tbaa !15
  %75 = load ptr, ptr %6, align 8, !tbaa !16
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  call void @chunk_addcode(ptr noundef %74, ptr noundef %75, ptr noundef %76)
  %77 = load ptr, ptr %6, align 8, !tbaa !16
  call void @free(ptr noundef %77) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %78 = getelementptr inbounds i8, ptr %0, i64 24
  br label %79

79:                                               ; preds = %79, %66
  call void @buzzlex_destroytok(ptr noundef nonnull %11) #6
  %80 = load ptr, ptr %78, align 8, !tbaa !18
  %81 = call ptr @buzzlex_nexttok(ptr noundef %80) #6
  store ptr %81, ptr %11, align 8, !tbaa !5
  %82 = load i32, ptr %81, align 8, !tbaa !11
  %cond109 = icmp eq i32 %82, 26
  br i1 %cond109, label %79, label %.critedge4

.critedge4:                                       ; preds = %79
  %83 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  br label %143

84:                                               ; preds = %.preheader114, %84
  tail call void @buzzlex_destroytok(ptr noundef nonnull %11) #6
  %85 = load ptr, ptr %14, align 8, !tbaa !18
  %86 = tail call ptr @buzzlex_nexttok(ptr noundef %85) #6
  store ptr %86, ptr %11, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 8, !tbaa !11
  %cond110 = icmp eq i32 %87, 26
  br i1 %cond110, label %84, label %.critedge6

.critedge6:                                       ; preds = %84
  %88 = tail call i32 @parse_condition(ptr noundef nonnull %0)
  %.not100 = icmp eq i32 %88, 0
  br i1 %.not100, label %89, label %91

89:                                               ; preds = %.critedge6
  %90 = load i32, ptr @PARSE_ERROR, align 4, !tbaa !17
  br label %143

91:                                               ; preds = %.critedge6
  %92 = tail call i32 @match(ptr noundef nonnull %0, i32 noundef 23)
  %.not101 = icmp eq i32 %92, 0
  br i1 %.not101, label %93, label %.preheader

93:                                               ; preds = %91
  %94 = load i32, ptr @PARSE_ERROR, align 4, !tbaa !17
  br label %143

.preheader:                                       ; preds = %91, %.preheader
  tail call void @buzzlex_destroytok(ptr noundef nonnull %11) #6
  %95 = load ptr, ptr %14, align 8, !tbaa !18
  %96 = tail call ptr @buzzlex_nexttok(ptr noundef %95) #6
  store ptr %96, ptr %11, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 8, !tbaa !11
  %cond111 = icmp eq i32 %97, 26
  br i1 %cond111, label %.preheader, label %.critedge8

.critedge8:                                       ; preds = %.preheader
  %98 = load i32, ptr @PARSE_OK, align 4, !tbaa !17
  br label %143

99:                                               ; preds = %1
  %100 = getelementptr inbounds i8, ptr %12, i64 8
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = load i8, ptr %101, align 1, !tbaa !21
  %103 = getelementptr inbounds i8, ptr %0, i64 24
  br label %104

104:                                              ; preds = %104, %99
  tail call void @buzzlex_destroytok(ptr noundef nonnull %11) #6
  %105 = load ptr, ptr %103, align 8, !tbaa !18
  %106 = tail call ptr @buzzlex_nexttok(ptr noundef %105) #6
  store ptr %106, ptr %11, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 8, !tbaa !11
  switch i32 %107, label %130 [
    i32 26, label %104
    i32 1, label %108
  ]

108:                                              ; preds = %104
  %109 = getelementptr inbounds i8, ptr %106, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !19
  %111 = tail call ptr @strchr(ptr noundef nonnull dereferenceable(1) %110, i32 noundef 46) #7
  %.not97 = icmp eq ptr %111, null
  %112 = sext i8 %102 to i32
  %113 = getelementptr inbounds i8, ptr %0, i64 48
  br i1 %.not97, label %120, label %114

114:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %115 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.66, i32 noundef %112, ptr noundef %110) #6
  %116 = load ptr, ptr %113, align 8, !tbaa !15
  %117 = load ptr, ptr %7, align 8, !tbaa !16
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  call void @chunk_addcode(ptr noundef %116, ptr noundef %117, ptr noundef %118)
  %119 = load ptr, ptr %7, align 8, !tbaa !16
  call void @free(ptr noundef %119) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br label %.preheader122

120:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %121 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.67, i32 noundef %112, ptr noundef %110) #6
  %122 = load ptr, ptr %113, align 8, !tbaa !15
  %123 = load ptr, ptr %8, align 8, !tbaa !16
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  call void @chunk_addcode(ptr noundef %122, ptr noundef %123, ptr noundef %124)
  %125 = load ptr, ptr %8, align 8, !tbaa !16
  call void @free(ptr noundef %125) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %.preheader122

.preheader122:                                    ; preds = %120, %114
  br label %126

126:                                              ; preds = %.preheader122, %126
  call void @buzzlex_destroytok(ptr noundef nonnull %11) #6
  %127 = load ptr, ptr %103, align 8, !tbaa !18
  %128 = call ptr @buzzlex_nexttok(ptr noundef %127) #6
  store ptr %128, ptr %11, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 8, !tbaa !11
  %cond113 = icmp eq i32 %129, 26
  br i1 %cond113, label %126, label %.critedge12

130:                                              ; preds = %104
  %131 = tail call i32 @parse_power(ptr noundef nonnull %0)
  %.not96 = icmp eq i32 %131, 0
  br i1 %.not96, label %.critedge12, label %132

132:                                              ; preds = %130
  %133 = icmp eq i8 %102, 45
  br i1 %133, label %134, label %.critedge12

134:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %135 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.68) #6
  %136 = getelementptr inbounds i8, ptr %0, i64 48
  %137 = load ptr, ptr %136, align 8, !tbaa !15
  %138 = load ptr, ptr %9, align 8, !tbaa !16
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  call void @chunk_addcode(ptr noundef %137, ptr noundef %138, ptr noundef %139)
  %140 = load ptr, ptr %9, align 8, !tbaa !16
  call void @free(ptr noundef %140) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %.critedge12

.critedge12:                                      ; preds = %126, %132, %134, %130
  %.0.in = phi ptr [ @PARSE_ERROR, %130 ], [ @PARSE_OK, %134 ], [ @PARSE_OK, %132 ], [ @PARSE_OK, %126 ]
  %.0 = load i32, ptr %.0.in, align 4, !tbaa !17
  br label %143

141:                                              ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %142 = call i32 @parse_idref(ptr noundef nonnull %0, i32 noundef 0, ptr noundef nonnull %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %143

143:                                              ; preds = %141, %.critedge12, %.critedge8, %93, %89, %.critedge4, %.critedge2, %.critedge, %27, %25
  %.1 = phi i32 [ %28, %27 ], [ %26, %25 ], [ %41, %.critedge ], [ %65, %.critedge2 ], [ %83, %.critedge4 ], [ %98, %.critedge8 ], [ %94, %93 ], [ %90, %89 ], [ %.0, %.critedge12 ], [ %142, %141 ]
  ret i32 %.1
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @parse_idref(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 "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 #4 = { "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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 32}
!6 = !{!"buzzparser_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !10, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"buzztok_s", !10, i64 0, !7, i64 8, !13, i64 16, !13, i64 24, !7, i64 32}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !10, i64 80}
!15 = !{!6, !7, i64 48}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !7, i64 24}
!19 = !{!12, !7, i64 8}
!20 = !{!6, !7, i64 72}
!21 = !{!8, !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass