; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_Parser (parseAttribute__)

; 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.string__ = type { ptr, i32 }
%struct.tag_____IAllocator__ = type { ptr, ptr, ptr, ptr }
%struct.tag_____Attribute__ = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.tag_____List__Node____ = type { ptr, i32, i32 }
%struct.Node__ = type { i32, ptr }
%struct.tag_____ParserState__ = type { %struct.string__, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, %struct.tag_____IntRange__, i32, i32, ptr, i32, ptr, ptr, ptr }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____Token__ = type { i32, %struct.string__, %struct.tag_____IntRange__, %struct.tag_____IntRange__, i32 }

@mu_____string304 = external dso_local global %struct.string__, align 8
@mu_____string77 = external dso_local global %struct.string__, align 8
@mu_____string303 = external dso_local global %struct.string__, align 8
@mu_____string302 = external dso_local global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, align 8

; 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 speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nounwind uwtable
declare dso_local void @List__add__Node____(ptr noundef, i32, ptr) #4

; Function Attrs: nounwind uwtable
declare dso_local void @Parser__readToken__(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local { i32, ptr } @Parser__tryParseExpression__(ptr noundef, i32 noundef, i8 noundef zeroext) #4

; Function Attrs: nounwind uwtable
declare dso_local void @Parser__badToken__(ptr noundef, ptr, i32) #4

; Function Attrs: nounwind uwtable
declare dso_local void @Parser__expected__(ptr noundef, ptr, i32) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @Parser__parseAttribute__(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca %struct.tag_____Attribute__, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %struct.tag_____List__Node____, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.tag_____List__Node____, align 8
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca %struct.Node__, align 8
  %19 = alloca %struct.Node__, align 8
  %20 = alloca %struct.Node__, align 8
  %21 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.tag_____ParserState__, ptr %22, i32 0, i32 3
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %24, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %25)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.tag_____ParserState__, ptr %26, i32 0, i32 3
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  store ptr %28, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.tag_____Token__, ptr %29, i32 0, i32 4
  %31 = load i32, ptr %30, align 8, !tbaa !14
  %32 = icmp eq i32 %31, 2147483647
  %33 = zext i1 %32 to i32
  %34 = trunc i32 %33 to i8
  store i8 %34, ptr %6, align 1, !tbaa !16
  %35 = load i8, ptr %6, align 1, !tbaa !16
  %36 = icmp ne i8 %35, 0
  br i1 %36, label %37, label %44

37:                                               ; preds = %1
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.tag_____Token__, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !17
  %41 = icmp eq i32 %40, 0
  %42 = zext i1 %41 to i32
  %43 = trunc i32 %42 to i8
  store i8 %43, ptr %6, align 1, !tbaa !16
  br label %44

44:                                               ; preds = %37, %1
  %45 = load i8, ptr %6, align 1, !tbaa !16
  %46 = icmp ne i8 %45, 0
  br i1 %46, label %50, label %47

47:                                               ; preds = %44
  %48 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  call void %49(i32 noundef -2)
  br label %50

50:                                               ; preds = %47, %44
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %52 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %53 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %55 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %56 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !20
  %58 = call ptr %54(ptr noundef %57, i64 noundef 48)
  store ptr %58, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #5
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 48, i1 false)
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.tag_____Attribute__, ptr %8, i32 0, i32 0
  store ptr %59, ptr %60, align 8, !tbaa !21
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.tag_____Attribute__, ptr %8, i32 0, i32 1
  store ptr %61, ptr %62, align 8, !tbaa !23
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %63, ptr align 8 %8, i64 48, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %64, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.tag_____ParserState__, ptr %65, i32 0, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.tag_____Token__, ptr %67, i32 0, i32 4
  %69 = load i32, ptr %68, align 8, !tbaa !14
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.tag_____ParserState__, ptr %70, i32 0, i32 5
  %72 = load i32, ptr %71, align 4, !tbaa !25
  %73 = icmp sle i32 %69, %72
  %74 = zext i1 %73 to i32
  %75 = trunc i32 %74 to i8
  store i8 %75, ptr %10, align 1, !tbaa !16
  %76 = load i8, ptr %10, align 1, !tbaa !16
  %77 = icmp ne i8 %76, 0
  br i1 %77, label %87, label %78

78:                                               ; preds = %50
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.tag_____ParserState__, ptr %79, i32 0, i32 3
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.tag_____Token__, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !17
  %84 = icmp ne i32 %83, 5
  %85 = zext i1 %84 to i32
  %86 = trunc i32 %85 to i8
  store i8 %86, ptr %10, align 1, !tbaa !16
  br label %87

87:                                               ; preds = %78, %50
  %88 = load i8, ptr %10, align 1, !tbaa !16
  %89 = icmp ne i8 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %91, ptr %2, align 8
  store i32 1, ptr %11, align 4
  br label %280

92:                                               ; preds = %87
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.tag_____ParserState__, ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.tag_____Attribute__, ptr %96, i32 0, i32 2
  store ptr %95, ptr %97, align 8, !tbaa !26
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %98)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %99 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %100 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  %102 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %103 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = call ptr %101(ptr noundef %104, i64 noundef 16)
  store ptr %105, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 16, i1 false)
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %106, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !27
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.tag_____Attribute__, ptr %108, i32 0, i32 3
  store ptr %107, ptr %109, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %110 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %111 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %110, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8, !tbaa !18
  %113 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %114 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !20
  %116 = call ptr %112(ptr noundef %115, i64 noundef 16)
  store ptr %116, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 16, i1 false)
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %117, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !27
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.tag_____Attribute__, ptr %119, i32 0, i32 4
  store ptr %118, ptr %120, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !28
  br label %121

121:                                              ; preds = %233, %92
  br label %122

122:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.tag_____ParserState__, ptr %123, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.tag_____Token__, ptr %125, i32 0, i32 4
  %127 = load i32, ptr %126, align 8, !tbaa !14
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.tag_____ParserState__, ptr %128, i32 0, i32 5
  %130 = load i32, ptr %129, align 4, !tbaa !25
  %131 = icmp sgt i32 %127, %130
  %132 = zext i1 %131 to i32
  %133 = trunc i32 %132 to i8
  store i8 %133, ptr %17, align 1, !tbaa !16
  %134 = load i8, ptr %17, align 1, !tbaa !16
  %135 = icmp ne i8 %134, 0
  br i1 %135, label %136, label %145

136:                                              ; preds = %122
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.tag_____ParserState__, ptr %137, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.tag_____Token__, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !17
  %142 = icmp ne i32 %141, 6
  %143 = zext i1 %142 to i32
  %144 = trunc i32 %143 to i8
  store i8 %144, ptr %17, align 1, !tbaa !16
  br label %145

145:                                              ; preds = %136, %122
  %146 = load i8, ptr %17, align 1, !tbaa !16
  %147 = icmp ne i8 %146, 0
  br i1 %147, label %149, label %148

148:                                              ; preds = %145
  store i32 3, ptr %11, align 4
  br label %231

149:                                              ; preds = %145
  %150 = load i32, ptr %16, align 4, !tbaa !28
  %151 = icmp ne i32 %150, 2
  br i1 %151, label %152, label %199

152:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = call { i32, ptr } @Parser__tryParseExpression__(ptr noundef %153, i32 noundef 0, i8 noundef zeroext 1)
  %155 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %156 = extractvalue { i32, ptr } %154, 0
  store i32 %156, ptr %155, align 8
  %157 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %158 = extractvalue { i32, ptr } %154, 1
  store ptr %158, ptr %157, align 8
  %159 = getelementptr inbounds %struct.Node__, ptr %18, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !31
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %177

162:                                              ; preds = %152
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.tag_____Attribute__, ptr %163, i32 0, i32 3
  %165 = load ptr, ptr %164, align 8, !tbaa !29
  %166 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %167 = load i32, ptr %166, align 8
  %168 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8
  call void @List__add__Node____(ptr noundef %165, i32 %167, ptr %169)
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.tag_____Attribute__, ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !30
  %173 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %174 = load i32, ptr %173, align 8
  %175 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8
  call void @List__add__Node____(ptr noundef %172, i32 %174, ptr %176)
  store i32 2, ptr %16, align 4, !tbaa !28
  br label %198

177:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.tag_____ParserState__, ptr %178, i32 0, i32 3
  %180 = load ptr, ptr %179, align 8, !tbaa !9
  %181 = getelementptr inbounds %struct.Node__, ptr %19, i32 0, i32 1
  store ptr %180, ptr %181, align 8, !tbaa !31
  %182 = getelementptr inbounds %struct.Node__, ptr %19, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !31
  %184 = icmp ne ptr %183, null
  %185 = zext i1 %184 to i64
  %186 = select i1 %184, i32 21, i32 0
  %187 = getelementptr inbounds %struct.Node__, ptr %19, i32 0, i32 0
  store i32 %186, ptr %187, align 8, !tbaa !33
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.tag_____Attribute__, ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !30
  %191 = getelementptr inbounds { i32, ptr }, ptr %19, i32 0, i32 0
  %192 = load i32, ptr %191, align 8
  %193 = getelementptr inbounds { i32, ptr }, ptr %19, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8
  call void @List__add__Node____(ptr noundef %190, i32 %192, ptr %194)
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = load ptr, ptr @mu_____string304, align 8
  %197 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string304, i32 0, i32 1), align 8
  call void @Parser__badToken__(ptr noundef %195, ptr %196, i32 %197)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %198

198:                                              ; preds = %177, %162
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %230

199:                                              ; preds = %149
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.tag_____ParserState__, ptr %200, i32 0, i32 3
  %202 = load ptr, ptr %201, align 8, !tbaa !9
  %203 = getelementptr inbounds %struct.tag_____Token__, ptr %202, i32 0, i32 0
  %204 = load i32, ptr %203, align 8, !tbaa !17
  %205 = icmp eq i32 %204, 13
  br i1 %205, label %206, label %225

206:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.tag_____ParserState__, ptr %207, i32 0, i32 3
  %209 = load ptr, ptr %208, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 1
  store ptr %209, ptr %210, align 8, !tbaa !31
  %211 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 1
  %212 = load ptr, ptr %211, align 8, !tbaa !31
  %213 = icmp ne ptr %212, null
  %214 = zext i1 %213 to i64
  %215 = select i1 %213, i32 21, i32 0
  %216 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 0
  store i32 %215, ptr %216, align 8, !tbaa !33
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.tag_____Attribute__, ptr %217, i32 0, i32 4
  %219 = load ptr, ptr %218, align 8, !tbaa !30
  %220 = getelementptr inbounds { i32, ptr }, ptr %20, i32 0, i32 0
  %221 = load i32, ptr %220, align 8
  %222 = getelementptr inbounds { i32, ptr }, ptr %20, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8
  call void @List__add__Node____(ptr noundef %219, i32 %221, ptr %223)
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %224)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %229

225:                                              ; preds = %199
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = load ptr, ptr @mu_____string77, align 8
  %228 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string77, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %226, ptr %227, i32 %228)
  br label %229

229:                                              ; preds = %225, %206
  store i32 1, ptr %16, align 4, !tbaa !28
  br label %230

230:                                              ; preds = %229, %198
  store i32 0, ptr %11, align 4
  br label %231

231:                                              ; preds = %230, %148
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  %232 = load i32, ptr %11, align 4
  switch i32 %232, label %282 [
    i32 0, label %233
    i32 3, label %234
  ]

233:                                              ; preds = %231
  br label %121

234:                                              ; preds = %231
  %235 = load i32, ptr %16, align 4, !tbaa !28
  %236 = icmp eq i32 %235, 1
  br i1 %236, label %237, label %241

237:                                              ; preds = %234
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = load ptr, ptr @mu_____string302, align 8
  %240 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string302, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %238, ptr %239, i32 %240)
  br label %241

241:                                              ; preds = %237, %234
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #5
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.tag_____ParserState__, ptr %242, i32 0, i32 3
  %244 = load ptr, ptr %243, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.tag_____Token__, ptr %244, i32 0, i32 4
  %246 = load i32, ptr %245, align 8, !tbaa !14
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.tag_____ParserState__, ptr %247, i32 0, i32 5
  %249 = load i32, ptr %248, align 4, !tbaa !25
  %250 = icmp sge i32 %246, %249
  %251 = zext i1 %250 to i32
  %252 = trunc i32 %251 to i8
  store i8 %252, ptr %21, align 1, !tbaa !16
  %253 = load i8, ptr %21, align 1, !tbaa !16
  %254 = icmp ne i8 %253, 0
  br i1 %254, label %255, label %264

255:                                              ; preds = %241
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.tag_____ParserState__, ptr %256, i32 0, i32 3
  %258 = load ptr, ptr %257, align 8, !tbaa !9
  %259 = getelementptr inbounds %struct.tag_____Token__, ptr %258, i32 0, i32 0
  %260 = load i32, ptr %259, align 8, !tbaa !17
  %261 = icmp eq i32 %260, 6
  %262 = zext i1 %261 to i32
  %263 = trunc i32 %262 to i8
  store i8 %263, ptr %21, align 1, !tbaa !16
  br label %264

264:                                              ; preds = %255, %241
  %265 = load i8, ptr %21, align 1, !tbaa !16
  %266 = icmp ne i8 %265, 0
  br i1 %266, label %267, label %274

267:                                              ; preds = %264
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.tag_____ParserState__, ptr %268, i32 0, i32 3
  %270 = load ptr, ptr %269, align 8, !tbaa !9
  %271 = load ptr, ptr %9, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.tag_____Attribute__, ptr %271, i32 0, i32 5
  store ptr %270, ptr %272, align 8, !tbaa !34
  %273 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %273)
  br label %278

274:                                              ; preds = %264
  %275 = load ptr, ptr %3, align 8, !tbaa !5
  %276 = load ptr, ptr @mu_____string303, align 8
  %277 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string303, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %275, ptr %276, i32 %277)
  br label %278

278:                                              ; preds = %274, %267
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %279, ptr %2, align 8
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %280

280:                                              ; preds = %278, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %281 = load ptr, ptr %2, align 8
  ret ptr %281

282:                                              ; preds = %231
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 32}
!10 = !{!"tag_____ParserState__", !11, i64 0, !12, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !6, i64 64, !13, i64 72, !12, i64 80, !12, i64 84, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!11 = !{!"", !6, i64 0, !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"tag_____IntRange__", !12, i64 0, !12, i64 4}
!14 = !{!15, !12, i64 40}
!15 = !{!"tag_____Token__", !12, i64 0, !11, i64 8, !13, i64 24, !13, i64 32, !12, i64 40}
!16 = !{!7, !7, i64 0}
!17 = !{!15, !12, i64 0}
!18 = !{!19, !6, i64 8}
!19 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!20 = !{!19, !6, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"tag_____Attribute__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!23 = !{!22, !6, i64 8}
!24 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5}
!25 = !{!10, !12, i64 44}
!26 = !{!22, !6, i64 16}
!27 = !{i64 0, i64 8, !5, i64 8, i64 4, !28, i64 12, i64 4, !28}
!28 = !{!12, !12, i64 0}
!29 = !{!22, !6, i64 24}
!30 = !{!22, !6, i64 32}
!31 = !{!32, !6, i64 8}
!32 = !{!"", !12, i64 0, !6, i64 8}
!33 = !{!32, !12, i64 0}
!34 = !{!22, !6, i64 40}


; 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.string__ = type { ptr, i32 }
%struct.tag_____IAllocator__ = type { ptr, ptr, ptr, ptr }

@mu_____string304 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string77 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string303 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string302 = external dso_local local_unnamed_addr global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local local_unnamed_addr global %struct.tag_____IAllocator__, align 8
@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local { i32, ptr } @Parser__tryParseExpression__(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @Parser__parseAttribute__(ptr noundef %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  tail call void @Parser__readToken__(ptr noundef %0)
  %4 = load ptr, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 40
  %6 = load i32, ptr %5, align 8, !tbaa !13
  %7 = icmp eq i32 %6, 2147483647
  br i1 %7, label %8, label %.thread

8:                                                ; preds = %1
  %9 = load i32, ptr %4, align 8, !tbaa !15
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %12, label %.thread

.thread:                                          ; preds = %1, %8
  %10 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %11 = load ptr, ptr %10, align 8, !tbaa !16
  tail call void %11(i32 noundef -2) #3
  br label %12

12:                                               ; preds = %.thread, %8
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  %13 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !17
  %16 = load ptr, ptr %13, align 8, !tbaa !19
  %17 = tail call ptr %15(ptr noundef %16, i64 noundef 48) #3
  store ptr %3, ptr %17, align 8, !tbaa !16
  %.sroa.534.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 8
  store ptr %4, ptr %.sroa.534.0..sroa_idx, align 8, !tbaa !16
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %17, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %.sroa.6.0..sroa_idx, i8 0, i64 32, i1 false)
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 40
  %20 = load i32, ptr %19, align 8, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %0, i64 44
  %22 = load i32, ptr %21, align 4, !tbaa !20
  %.not81 = icmp sgt i32 %20, %22
  br i1 %.not81, label %23, label %.critedge

23:                                               ; preds = %12
  %24 = load i32, ptr %18, align 8, !tbaa !15
  %.not83 = icmp eq i32 %24, 5
  br i1 %.not83, label %25, label %.critedge

25:                                               ; preds = %23
  store ptr %18, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !21
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  %26 = load ptr, ptr %14, align 8, !tbaa !17
  %27 = load ptr, ptr %13, align 8, !tbaa !19
  %28 = tail call ptr %26(ptr noundef %27, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %28, i8 0, i64 16, i1 false)
  %29 = getelementptr inbounds i8, ptr %17, i64 24
  store ptr %28, ptr %29, align 8, !tbaa !23
  %30 = load ptr, ptr %14, align 8, !tbaa !17
  %31 = load ptr, ptr %13, align 8, !tbaa !19
  %32 = tail call ptr %30(ptr noundef %31, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %32, i8 0, i64 16, i1 false)
  %33 = getelementptr inbounds i8, ptr %17, i64 32
  store ptr %32, ptr %33, align 8, !tbaa !24
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 40
  %36 = load i32, ptr %35, align 8, !tbaa !13
  %37 = load i32, ptr %21, align 4, !tbaa !20
  %38 = icmp sgt i32 %36, %37
  br i1 %38, label %.lr.ph.preheader, label %.thread94.thread

.lr.ph.preheader:                                 ; preds = %25
  %39 = load i32, ptr %34, align 8, !tbaa !15
  %.not102109 = icmp eq i32 %39, 6
  br i1 %.not102109, label %.thread94, label %.lr.ph111

.lr.ph:                                           ; preds = %63
  %40 = load i32, ptr %64, align 8, !tbaa !15
  %.not102 = icmp eq i32 %40, 6
  br i1 %.not102, label %.thread94.loopexit, label %.lr.ph111

.lr.ph111:                                        ; preds = %.lr.ph.preheader, %.lr.ph
  %41 = phi i32 [ %40, %.lr.ph ], [ %39, %.lr.ph.preheader ]
  %.074104110 = phi i32 [ %.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %42 = phi ptr [ %64, %.lr.ph ], [ %34, %.lr.ph.preheader ]
  %.not85 = icmp eq i32 %.074104110, 2
  br i1 %.not85, label %56, label %43

43:                                               ; preds = %.lr.ph111
  %44 = tail call { i32, ptr } @Parser__tryParseExpression__(ptr noundef %0, i32 noundef 0, i8 noundef zeroext 1)
  %45 = extractvalue { i32, ptr } %44, 1
  %.not86 = icmp eq ptr %45, null
  br i1 %.not86, label %50, label %46

46:                                               ; preds = %43
  %47 = extractvalue { i32, ptr } %44, 0
  %48 = load ptr, ptr %29, align 8, !tbaa !23
  tail call void @List__add__Node____(ptr noundef %48, i32 %47, ptr nonnull %45)
  %49 = load ptr, ptr %33, align 8, !tbaa !24
  tail call void @List__add__Node____(ptr noundef %49, i32 %47, ptr nonnull %45)
  br label %63

50:                                               ; preds = %43
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %.not87 = icmp eq ptr %51, null
  %52 = select i1 %.not87, i32 0, i32 21
  %53 = load ptr, ptr %33, align 8, !tbaa !24
  tail call void @List__add__Node____(ptr noundef %53, i32 %52, ptr %51)
  %54 = load ptr, ptr @mu_____string304, align 8
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string304, i64 8), align 8
  tail call void @Parser__badToken__(ptr noundef %0, ptr %54, i32 %55)
  br label %63

56:                                               ; preds = %.lr.ph111
  %57 = icmp eq i32 %41, 13
  br i1 %57, label %58, label %60

58:                                               ; preds = %56
  %59 = load ptr, ptr %33, align 8, !tbaa !24
  tail call void @List__add__Node____(ptr noundef %59, i32 21, ptr nonnull %42)
  tail call void @Parser__readToken__(ptr noundef %0)
  br label %63

60:                                               ; preds = %56
  %61 = load ptr, ptr @mu_____string77, align 8
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string77, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef %0, ptr %61, i32 %62)
  br label %63

63:                                               ; preds = %50, %46, %60, %58
  %.3 = phi i32 [ 2, %46 ], [ %.074104110, %50 ], [ 1, %60 ], [ 1, %58 ]
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 40
  %66 = load i32, ptr %65, align 8, !tbaa !13
  %67 = load i32, ptr %21, align 4, !tbaa !20
  %68 = icmp sgt i32 %66, %67
  br i1 %68, label %.lr.ph, label %.thread94.loopexit

.thread94.loopexit:                               ; preds = %.lr.ph, %63
  %69 = icmp eq i32 %.3, 1
  br label %.thread94

.thread94:                                        ; preds = %.thread94.loopexit, %.lr.ph.preheader
  %70 = phi i32 [ %37, %.lr.ph.preheader ], [ %67, %.thread94.loopexit ]
  %71 = phi ptr [ %34, %.lr.ph.preheader ], [ %64, %.thread94.loopexit ]
  %.074.lcssa.ph = phi i1 [ false, %.lr.ph.preheader ], [ %69, %.thread94.loopexit ]
  br i1 %.074.lcssa.ph, label %72, label %.thread94.thread

72:                                               ; preds = %.thread94
  %73 = load ptr, ptr @mu_____string302, align 8
  %74 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string302, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef nonnull %0, ptr %73, i32 %74)
  %.pre = load ptr, ptr %2, align 8, !tbaa !5
  %.pre107 = load i32, ptr %21, align 4, !tbaa !20
  br label %.thread94.thread

.thread94.thread:                                 ; preds = %25, %72, %.thread94
  %75 = phi i32 [ %.pre107, %72 ], [ %70, %.thread94 ], [ %37, %25 ]
  %76 = phi ptr [ %.pre, %72 ], [ %71, %.thread94 ], [ %34, %25 ]
  %77 = getelementptr inbounds i8, ptr %76, i64 40
  %78 = load i32, ptr %77, align 8, !tbaa !13
  %.not88 = icmp slt i32 %78, %75
  br i1 %.not88, label %.critedge91, label %79

79:                                               ; preds = %.thread94.thread
  %80 = load i32, ptr %76, align 8, !tbaa !15
  %.not103 = icmp eq i32 %80, 6
  br i1 %.not103, label %81, label %.critedge91

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %17, i64 40
  store ptr %76, ptr %82, align 8, !tbaa !25
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  br label %.critedge

.critedge91:                                      ; preds = %.thread94.thread, %79
  %83 = load ptr, ptr @mu_____string303, align 8
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string303, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef nonnull %0, ptr %83, i32 %84)
  br label %.critedge

.critedge:                                        ; preds = %81, %.critedge91, %12, %23
  ret ptr %17
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 32}
!6 = !{!"tag_____ParserState__", !7, i64 0, !11, i64 16, !8, i64 24, !8, i64 32, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !8, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !8, i64 88, !11, i64 96, !8, i64 104, !8, i64 112, !8, i64 120}
!7 = !{!"", !8, i64 0, !11, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"tag_____IntRange__", !11, i64 0, !11, i64 4}
!13 = !{!14, !11, i64 40}
!14 = !{!"tag_____Token__", !11, i64 0, !7, i64 8, !12, i64 24, !12, i64 32, !11, i64 40}
!15 = !{!14, !11, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !8, i64 8}
!18 = !{!"tag_____IAllocator__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!19 = !{!18, !8, i64 0}
!20 = !{!6, !11, i64 44}
!21 = !{!22, !8, i64 16}
!22 = !{!"tag_____Attribute__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40}
!23 = !{!22, !8, i64 24}
!24 = !{!22, !8, i64 32}
!25 = !{!22, !8, i64 40}


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