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

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

@mu_____string344 = external dso_local global %struct.string__, align 8
@mu_____string343 = external dso_local global %struct.string__, align 8
@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, 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
define dso_local ptr @Parser__parse__(ptr %0, i32 %1, ptr noundef %2) #4 {
  %4 = alloca %struct.string__, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.tag_____CodeUnit__, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.tag_____List__Node____, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.tag_____ParserState__, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.tag_____Token__, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %struct.tag_____StringBuilder__, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca %struct.Node__, align 8
  %22 = alloca %struct.Node__, align 8
  %23 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 0
  store ptr %0, ptr %23, align 8
  %24 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 1
  store i32 %1, ptr %24, align 8
  store ptr %2, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %25 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %26 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %25, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %29 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = call ptr %27(ptr noundef %30, i64 noundef 48)
  store ptr %31, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 48, i1 false)
  %32 = getelementptr inbounds %struct.tag_____CodeUnit__, ptr %7, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %33 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %34 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %33, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %37 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = call ptr %35(ptr noundef %38, i64 noundef 16)
  store ptr %39, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 16, i1 false)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !15
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.tag_____CodeUnit__, ptr %7, i32 0, i32 3
  store ptr %41, ptr %42, align 8, !tbaa !16
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %7, i64 48, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %44, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %45 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %46 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %49 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = call ptr %47(ptr noundef %50, i64 noundef 128)
  store ptr %51, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 128, i1 false)
  %52 = getelementptr inbounds %struct.tag_____ParserState__, ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !12
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.tag_____ParserState__, ptr %12, i32 0, i32 2
  store ptr %53, ptr %54, align 8, !tbaa !20
  %55 = getelementptr inbounds %struct.tag_____ParserState__, ptr %12, i32 0, i32 6
  store i32 4, ptr %55, align 8, !tbaa !23
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.tag_____ParserState__, ptr %12, i32 0, i32 9
  store ptr %56, ptr %57, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %58 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %59 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %62 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  %64 = call ptr %60(ptr noundef %63, i64 noundef 48)
  store ptr %64, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #5
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 48, i1 false)
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %65, ptr align 8 %14, i64 48, i1 false), !tbaa.struct !25
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.tag_____ParserState__, ptr %12, i32 0, i32 3
  store ptr %66, ptr %67, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %68 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %69 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %72 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = call ptr %70(ptr noundef %73, i64 noundef 16)
  store ptr %74, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 16, i1 false)
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %75, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !15
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.tag_____ParserState__, ptr %12, i32 0, i32 17
  store ptr %76, ptr %77, align 8, !tbaa !27
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %78, ptr align 8 %12, i64 128, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %79, ptr %17, align 8, !tbaa !5
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  call void @Parser__checkTabSizeDirective__(ptr noundef %80)
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %81)
  br label %82

82:                                               ; preds = %203, %3
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.tag_____ParserState__, ptr %84, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !26
  %87 = getelementptr inbounds %struct.tag_____Token__, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !29
  %89 = icmp ne i32 %88, 17
  br i1 %89, label %91, label %90

90:                                               ; preds = %83
  br label %204

91:                                               ; preds = %83
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.tag_____ParserState__, ptr %92, i32 0, i32 3
  %94 = load ptr, ptr %93, align 8, !tbaa !26
  %95 = getelementptr inbounds %struct.tag_____Token__, ptr %94, i32 0, i32 4
  %96 = load i32, ptr %95, align 8, !tbaa !31
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %195

98:                                               ; preds = %91
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.tag_____ParserState__, ptr %99, i32 0, i32 3
  %101 = load ptr, ptr %100, align 8, !tbaa !26
  %102 = getelementptr inbounds %struct.tag_____Token__, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !29
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %173

105:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.tag_____ParserState__, ptr %106, i32 0, i32 3
  %108 = load ptr, ptr %107, align 8, !tbaa !26
  store ptr %108, ptr %18, align 8, !tbaa !5
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %109)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = call ptr @Parser__tryParseTypeParams__(ptr noundef %110)
  store ptr %111, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.tag_____ParserState__, ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !26
  %115 = getelementptr inbounds %struct.tag_____Token__, ptr %114, i32 0, i32 4
  %116 = load i32, ptr %115, align 8, !tbaa !31
  %117 = icmp sgt i32 %116, 0
  %118 = zext i1 %117 to i32
  %119 = trunc i32 %118 to i8
  store i8 %119, ptr %20, align 1, !tbaa !32
  %120 = load i8, ptr %20, align 1, !tbaa !32
  %121 = icmp ne i8 %120, 0
  br i1 %121, label %122, label %131

122:                                              ; preds = %105
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.tag_____ParserState__, ptr %123, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !26
  %126 = getelementptr inbounds %struct.tag_____Token__, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !29
  %128 = icmp eq i32 %127, 5
  %129 = zext i1 %128 to i32
  %130 = trunc i32 %129 to i8
  store i8 %130, ptr %20, align 1, !tbaa !32
  br label %131

131:                                              ; preds = %122, %105
  %132 = load i8, ptr %20, align 1, !tbaa !32
  %133 = icmp ne i8 %132, 0
  br i1 %133, label %134, label %153

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  %138 = call ptr @Parser__parseFunctionTail__(ptr noundef %135, ptr noundef %136, ptr noundef %137)
  %139 = getelementptr inbounds %struct.Node__, ptr %21, i32 0, i32 1
  store ptr %138, ptr %139, align 8, !tbaa !33
  %140 = getelementptr inbounds %struct.Node__, ptr %21, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !33
  %142 = icmp ne ptr %141, null
  %143 = zext i1 %142 to i64
  %144 = select i1 %142, i32 34, i32 0
  %145 = getelementptr inbounds %struct.Node__, ptr %21, i32 0, i32 0
  store i32 %144, ptr %145, align 8, !tbaa !35
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.tag_____CodeUnit__, ptr %146, i32 0, i32 3
  %148 = load ptr, ptr %147, align 8, !tbaa !16
  %149 = getelementptr inbounds { i32, ptr }, ptr %21, i32 0, i32 0
  %150 = load i32, ptr %149, align 8
  %151 = getelementptr inbounds { i32, ptr }, ptr %21, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8
  call void @List__add__Node____(ptr noundef %148, i32 %150, ptr %152)
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %172

153:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = call ptr @Parser__parseNamespaceTail__(ptr noundef %154, ptr noundef %155, ptr noundef %156)
  %158 = getelementptr inbounds %struct.Node__, ptr %22, i32 0, i32 1
  store ptr %157, ptr %158, align 8, !tbaa !33
  %159 = getelementptr inbounds %struct.Node__, ptr %22, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !33
  %161 = icmp ne ptr %160, null
  %162 = zext i1 %161 to i64
  %163 = select i1 %161, i32 31, i32 0
  %164 = getelementptr inbounds %struct.Node__, ptr %22, i32 0, i32 0
  store i32 %163, ptr %164, align 8, !tbaa !35
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.tag_____CodeUnit__, ptr %165, i32 0, i32 3
  %167 = load ptr, ptr %166, align 8, !tbaa !16
  %168 = getelementptr inbounds { i32, ptr }, ptr %22, i32 0, i32 0
  %169 = load i32, ptr %168, align 8
  %170 = getelementptr inbounds { i32, ptr }, ptr %22, i32 0, i32 1
  %171 = load ptr, ptr %170, align 8
  call void @List__add__Node____(ptr noundef %167, i32 %169, ptr %171)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %172

172:                                              ; preds = %153, %134
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %190

173:                                              ; preds = %98
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.tag_____ParserState__, ptr %174, i32 0, i32 3
  %176 = load ptr, ptr %175, align 8, !tbaa !26
  %177 = getelementptr inbounds %struct.tag_____Token__, ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 8, !tbaa !29
  %179 = icmp eq i32 %178, 15
  br i1 %179, label %180, label %185

180:                                              ; preds = %173
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.tag_____CodeUnit__, ptr %182, i32 0, i32 3
  %184 = load ptr, ptr %183, align 8, !tbaa !16
  call void @Parser__parseStaticField__(ptr noundef %181, ptr noundef %184)
  br label %189

185:                                              ; preds = %173
  %186 = load ptr, ptr %17, align 8, !tbaa !5
  %187 = load ptr, ptr @mu_____string343, align 8
  %188 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string343, i32 0, i32 1), align 8
  call void @Parser__badToken__(ptr noundef %186, ptr %187, i32 %188)
  br label %189

189:                                              ; preds = %185, %180
  br label %190

190:                                              ; preds = %189, %172
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.tag_____CodeUnit__, ptr %192, i32 0, i32 3
  %194 = load ptr, ptr %193, align 8, !tbaa !16
  call void @Parser__endLine__(ptr noundef %191, ptr noundef %194)
  br label %203

195:                                              ; preds = %91
  %196 = load ptr, ptr %17, align 8, !tbaa !5
  %197 = load ptr, ptr @mu_____string344, align 8
  %198 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string344, i32 0, i32 1), align 8
  call void @Parser__badToken__(ptr noundef %196, ptr %197, i32 %198)
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.tag_____CodeUnit__, ptr %200, i32 0, i32 3
  %202 = load ptr, ptr %201, align 8, !tbaa !16
  call void @Parser__endLine__(ptr noundef %199, ptr noundef %202)
  br label %203

203:                                              ; preds = %195, %190
  br label %82

204:                                              ; preds = %90
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  ret ptr %205
}

; 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 void @Parser__badToken__(ptr noundef, ptr, i32) #4

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

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

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

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

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

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

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 8}
!10 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!10, !6, i64 0}
!12 = !{i64 0, i64 8, !5, i64 8, i64 4, !13}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 8, !5, i64 8, i64 4, !13, i64 12, i64 4, !13}
!16 = !{!17, !6, i64 40}
!17 = !{!"tag_____CodeUnit__", !18, i64 0, !14, i64 16, !18, i64 24, !6, i64 40}
!18 = !{!"", !6, i64 0, !14, i64 8}
!19 = !{i64 0, i64 8, !5, i64 8, i64 4, !13, i64 16, i64 4, !13, i64 24, i64 8, !5, i64 32, i64 4, !13, i64 40, i64 8, !5}
!20 = !{!21, !6, i64 24}
!21 = !{!"tag_____ParserState__", !18, i64 0, !14, i64 16, !6, i64 24, !6, i64 32, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !6, i64 64, !22, i64 72, !14, i64 80, !14, i64 84, !6, i64 88, !14, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!22 = !{!"tag_____IntRange__", !14, i64 0, !14, i64 4}
!23 = !{!21, !14, i64 48}
!24 = !{!21, !6, i64 64}
!25 = !{i64 0, i64 4, !13, i64 8, i64 8, !5, i64 16, i64 4, !13, i64 24, i64 4, !13, i64 28, i64 4, !13, i64 32, i64 4, !13, i64 36, i64 4, !13, i64 40, i64 4, !13}
!26 = !{!21, !6, i64 32}
!27 = !{!21, !6, i64 120}
!28 = !{i64 0, i64 8, !5, i64 8, i64 4, !13, i64 16, i64 4, !13, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 4, !13, i64 44, i64 4, !13, i64 48, i64 4, !13, i64 52, i64 4, !13, i64 56, i64 4, !13, i64 64, i64 8, !5, i64 72, i64 4, !13, i64 76, i64 4, !13, i64 80, i64 4, !13, i64 84, i64 4, !13, i64 88, i64 8, !5, i64 96, i64 4, !13, i64 104, i64 8, !5, i64 112, i64 8, !5, i64 120, i64 8, !5}
!29 = !{!30, !14, i64 0}
!30 = !{!"tag_____Token__", !14, i64 0, !18, i64 8, !22, i64 24, !22, i64 32, !14, i64 40}
!31 = !{!30, !14, i64 40}
!32 = !{!7, !7, i64 0}
!33 = !{!34, !6, i64 8}
!34 = !{!"", !14, i64 0, !6, i64 8}
!35 = !{!34, !14, i64 0}


; 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_____string344 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string343 = 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

; 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
define dso_local ptr @Parser__parse__(ptr %0, i32 %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr %4, align 8, !tbaa !10
  %8 = tail call ptr %6(ptr noundef %7, i64 noundef 48) #3
  %9 = load ptr, ptr %5, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8, !tbaa !10
  %11 = tail call ptr %9(ptr noundef %10, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  %.sroa.048.sroa.4.0..0.50.sroa_idx = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %0, ptr %.sroa.048.sroa.4.0..0.50.sroa_idx, align 8, !tbaa !11
  %.sroa.048.sroa.5.0..0.50.sroa_idx = getelementptr inbounds i8, ptr %8, i64 32
  store i32 %1, ptr %.sroa.048.sroa.5.0..0.50.sroa_idx, align 8, !tbaa !12
  %.sroa.549.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 40
  store ptr %11, ptr %.sroa.549.0..sroa_idx, align 8, !tbaa !11
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !10
  %14 = tail call ptr %12(ptr noundef %13, i64 noundef 128) #3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8, !tbaa !10
  %17 = tail call ptr %15(ptr noundef %16, i64 noundef 48) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %17, i8 0, i64 48, i1 false)
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8, !tbaa !10
  %20 = tail call ptr %18(ptr noundef %19, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %20, i8 0, i64 16, i1 false)
  store ptr %0, ptr %14, align 8, !tbaa !11
  %.sroa.033.sroa.5.0..0.37.sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store i32 %1, ptr %.sroa.033.sroa.5.0..0.37.sroa_idx, align 8, !tbaa !12
  %.sroa.033.sroa.7.0..0.37.sroa_idx = getelementptr inbounds i8, ptr %14, i64 16
  store i64 0, ptr %.sroa.033.sroa.7.0..0.37.sroa_idx, align 8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 24
  store ptr %8, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !11
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 32
  store ptr %17, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !11
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 40
  store i64 0, ptr %.sroa.7.0..sroa_idx, align 8
  %.sroa.734.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 48
  store i32 4, ptr %.sroa.734.0..sroa_idx, align 8, !tbaa !12
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 52
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %.sroa.8.0..sroa_idx, i8 0, i64 12, i1 false)
  %.sroa.835.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 64
  store ptr %2, ptr %.sroa.835.0..sroa_idx, align 8, !tbaa !11
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 72
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %.sroa.9.0..sroa_idx, i8 0, i64 48, i1 false)
  %.sroa.936.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 120
  store ptr %20, ptr %.sroa.936.0..sroa_idx, align 8, !tbaa !11
  tail call void @Parser__checkTabSizeDirective__(ptr noundef nonnull %14)
  tail call void @Parser__readToken__(ptr noundef nonnull %14)
  %21 = load ptr, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !14
  %22 = load i32, ptr %21, align 8, !tbaa !18
  %.not66 = icmp eq i32 %22, 17
  br i1 %.not66, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3, %52
  %23 = phi i32 [ %55, %52 ], [ %22, %3 ]
  %24 = phi ptr [ %54, %52 ], [ %21, %3 ]
  %25 = getelementptr inbounds i8, ptr %24, i64 40
  %26 = load i32, ptr %25, align 8, !tbaa !20
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %49

28:                                               ; preds = %.lr.ph
  switch i32 %23, label %46 [
    i32 0, label %29
    i32 15, label %44
  ]

29:                                               ; preds = %28
  tail call void @Parser__readToken__(ptr noundef nonnull %14)
  %30 = tail call ptr @Parser__tryParseTypeParams__(ptr noundef nonnull %14)
  %31 = load ptr, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %31, i64 40
  %33 = load i32, ptr %32, align 8, !tbaa !20
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %35, label %.thread

35:                                               ; preds = %29
  %36 = load i32, ptr %31, align 8, !tbaa !18
  %.not65 = icmp eq i32 %36, 5
  br i1 %.not65, label %37, label %.thread

37:                                               ; preds = %35
  %38 = tail call ptr @Parser__parseFunctionTail__(ptr noundef nonnull %14, ptr noundef nonnull %24, ptr noundef %30)
  %.not62 = icmp eq ptr %38, null
  %39 = select i1 %.not62, i32 0, i32 34
  %40 = load ptr, ptr %.sroa.549.0..sroa_idx, align 8, !tbaa !21
  tail call void @List__add__Node____(ptr noundef %40, i32 %39, ptr %38)
  br label %52

.thread:                                          ; preds = %29, %35
  %41 = tail call ptr @Parser__parseNamespaceTail__(ptr noundef nonnull %14, ptr noundef nonnull %24, ptr noundef %30)
  %.not61 = icmp eq ptr %41, null
  %42 = select i1 %.not61, i32 0, i32 31
  %43 = load ptr, ptr %.sroa.549.0..sroa_idx, align 8, !tbaa !21
  tail call void @List__add__Node____(ptr noundef %43, i32 %42, ptr %41)
  br label %52

44:                                               ; preds = %28
  %45 = load ptr, ptr %.sroa.549.0..sroa_idx, align 8, !tbaa !21
  tail call void @Parser__parseStaticField__(ptr noundef nonnull %14, ptr noundef %45)
  br label %52

46:                                               ; preds = %28
  %47 = load ptr, ptr @mu_____string343, align 8
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string343, i64 8), align 8
  tail call void @Parser__badToken__(ptr noundef nonnull %14, ptr %47, i32 %48)
  br label %52

49:                                               ; preds = %.lr.ph
  %50 = load ptr, ptr @mu_____string344, align 8
  %51 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string344, i64 8), align 8
  tail call void @Parser__badToken__(ptr noundef nonnull %14, ptr %50, i32 %51)
  br label %52

52:                                               ; preds = %46, %44, %.thread, %37, %49
  %53 = load ptr, ptr %.sroa.549.0..sroa_idx, align 8, !tbaa !21
  tail call void @Parser__endLine__(ptr noundef nonnull %14, ptr noundef %53)
  %54 = load ptr, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !14
  %55 = load i32, ptr %54, align 8, !tbaa !18
  %.not = icmp eq i32 %55, 17
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %52, %3
  ret ptr %8
}

; 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 void @Parser__badToken__(ptr noundef, ptr, i32) local_unnamed_addr #2

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

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

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

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

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

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

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, !7, i64 8}
!6 = !{!"tag_____IAllocator__", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !7, i64 32}
!15 = !{!"tag_____ParserState__", !16, i64 0, !13, i64 16, !7, i64 24, !7, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !7, i64 64, !17, i64 72, !13, i64 80, !13, i64 84, !7, i64 88, !13, i64 96, !7, i64 104, !7, i64 112, !7, i64 120}
!16 = !{!"", !7, i64 0, !13, i64 8}
!17 = !{!"tag_____IntRange__", !13, i64 0, !13, i64 4}
!18 = !{!19, !13, i64 0}
!19 = !{!"tag_____Token__", !13, i64 0, !16, i64 8, !17, i64 24, !17, i64 32, !13, i64 40}
!20 = !{!19, !13, i64 40}
!21 = !{!22, !7, i64 40}
!22 = !{!"tag_____CodeUnit__", !16, i64 0, !13, i64 16, !16, i64 24, !7, i64 40}


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