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

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

@mu_____string77 = external dso_local global %struct.string__, align 8
@mu_____string78 = external dso_local global %struct.string__, align 8
@mu_____string299 = external dso_local global %struct.string__, align 8
@mu_____string300 = 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
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__expected__(ptr noundef, ptr, i32) #4

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

; Function Attrs: nounwind uwtable
define dso_local ptr @Parser__parseTypeArgsExpressionTail__(ptr noundef %0, i32 %1, ptr %2) #4 {
  %4 = alloca %struct.Node__, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.tag_____TypeArgsExpression__, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.tag_____List__Node____, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.tag_____List__Node____, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca %struct.Node__, align 8
  %17 = alloca %struct.Node__, align 8
  %18 = alloca %struct.Node__, align 8
  %19 = alloca i8, align 1
  %20 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 0
  store i32 %1, ptr %20, align 8
  %21 = getelementptr inbounds { i32, ptr }, ptr %4, i32 0, i32 1
  store ptr %2, ptr %21, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %22 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %23 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %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 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = call ptr %24(ptr noundef %27, i64 noundef 48)
  store ptr %28, 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)
  %29 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %7, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !12
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.tag_____ParserState__, ptr %30, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %7, i32 0, i32 1
  store ptr %32, ptr %33, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %34 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %35 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %34, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %38 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = call ptr %36(ptr noundef %39, i64 noundef 16)
  store ptr %40, 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)
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !22
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %7, i32 0, i32 2
  store ptr %42, ptr %43, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %45 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %48 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = call ptr %46(ptr noundef %49, i64 noundef 16)
  store ptr %50, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 16, i1 false)
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !22
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %7, i32 0, i32 3
  store ptr %52, ptr %53, align 8, !tbaa !24
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %54, ptr align 8 %7, i64 48, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %55, ptr %12, align 8, !tbaa !5
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.tag_____ParserState__, ptr %56, i32 0, i32 8
  %58 = load i32, ptr %57, align 8, !tbaa !26
  %59 = add nsw i32 %58, 1
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.tag_____ParserState__, ptr %60, i32 0, i32 8
  store i32 %59, ptr %61, align 8, !tbaa !26
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %62)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !13
  br label %63

63:                                               ; preds = %172, %3
  br label %64

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.tag_____ParserState__, ptr %65, i32 0, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = getelementptr inbounds %struct.tag_____Token__, ptr %67, i32 0, i32 4
  %69 = load i32, ptr %68, align 8, !tbaa !27
  %70 = icmp eq i32 %69, 2147483647
  %71 = zext i1 %70 to i32
  %72 = trunc i32 %71 to i8
  store i8 %72, ptr %14, align 1, !tbaa !29
  %73 = load i8, ptr %14, align 1, !tbaa !29
  %74 = icmp ne i8 %73, 0
  br i1 %74, label %75, label %84

75:                                               ; preds = %64
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.tag_____ParserState__, ptr %76, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !15
  %79 = getelementptr inbounds %struct.tag_____Token__, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !30
  %81 = icmp ne i32 %80, 12
  %82 = zext i1 %81 to i32
  %83 = trunc i32 %82 to i8
  store i8 %83, ptr %14, align 1, !tbaa !29
  br label %84

84:                                               ; preds = %75, %64
  %85 = load i8, ptr %14, align 1, !tbaa !29
  %86 = icmp ne i8 %85, 0
  br i1 %86, label %88, label %87

87:                                               ; preds = %84
  store i32 3, ptr %15, align 4
  br label %170

88:                                               ; preds = %84
  %89 = load i32, ptr %13, align 4, !tbaa !13
  %90 = icmp ne i32 %89, 2
  br i1 %90, label %91, label %138

91:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = call { i32, ptr } @Parser__tryParseType__(ptr noundef %92)
  %94 = getelementptr inbounds { i32, ptr }, ptr %16, i32 0, i32 0
  %95 = extractvalue { i32, ptr } %93, 0
  store i32 %95, ptr %94, align 8
  %96 = getelementptr inbounds { i32, ptr }, ptr %16, i32 0, i32 1
  %97 = extractvalue { i32, ptr } %93, 1
  store ptr %97, ptr %96, align 8
  %98 = getelementptr inbounds %struct.Node__, ptr %16, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !31
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %116

101:                                              ; preds = %91
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !23
  %105 = getelementptr inbounds { i32, ptr }, ptr %16, i32 0, i32 0
  %106 = load i32, ptr %105, align 8
  %107 = getelementptr inbounds { i32, ptr }, ptr %16, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8
  call void @List__add__Node____(ptr noundef %104, i32 %106, ptr %108)
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %109, i32 0, i32 3
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  %112 = getelementptr inbounds { i32, ptr }, ptr %16, i32 0, i32 0
  %113 = load i32, ptr %112, align 8
  %114 = getelementptr inbounds { i32, ptr }, ptr %16, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8
  call void @List__add__Node____(ptr noundef %111, i32 %113, ptr %115)
  store i32 2, ptr %13, align 4, !tbaa !13
  br label %137

116:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.tag_____ParserState__, ptr %117, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !15
  %120 = getelementptr inbounds %struct.Node__, ptr %17, i32 0, i32 1
  store ptr %119, ptr %120, align 8, !tbaa !31
  %121 = getelementptr inbounds %struct.Node__, ptr %17, i32 0, i32 1
  %122 = load ptr, ptr %121, align 8, !tbaa !31
  %123 = icmp ne ptr %122, null
  %124 = zext i1 %123 to i64
  %125 = select i1 %123, i32 21, i32 0
  %126 = getelementptr inbounds %struct.Node__, ptr %17, i32 0, i32 0
  store i32 %125, ptr %126, align 8, !tbaa !32
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %127, i32 0, i32 3
  %129 = load ptr, ptr %128, align 8, !tbaa !24
  %130 = getelementptr inbounds { i32, ptr }, ptr %17, i32 0, i32 0
  %131 = load i32, ptr %130, align 8
  %132 = getelementptr inbounds { i32, ptr }, ptr %17, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8
  call void @List__add__Node____(ptr noundef %129, i32 %131, ptr %133)
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load ptr, ptr @mu_____string299, align 8
  %136 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string299, i32 0, i32 1), align 8
  call void @Parser__badToken__(ptr noundef %134, ptr %135, i32 %136)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %137

137:                                              ; preds = %116, %101
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %169

138:                                              ; preds = %88
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.tag_____ParserState__, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !15
  %142 = getelementptr inbounds %struct.tag_____Token__, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !30
  %144 = icmp eq i32 %143, 13
  br i1 %144, label %145, label %164

145:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.tag_____ParserState__, ptr %146, i32 0, i32 3
  %148 = load ptr, ptr %147, align 8, !tbaa !15
  %149 = getelementptr inbounds %struct.Node__, ptr %18, i32 0, i32 1
  store ptr %148, ptr %149, align 8, !tbaa !31
  %150 = getelementptr inbounds %struct.Node__, ptr %18, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !31
  %152 = icmp ne ptr %151, null
  %153 = zext i1 %152 to i64
  %154 = select i1 %152, i32 21, i32 0
  %155 = getelementptr inbounds %struct.Node__, ptr %18, i32 0, i32 0
  store i32 %154, ptr %155, align 8, !tbaa !32
  %156 = load ptr, ptr %12, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %156, i32 0, i32 3
  %158 = load ptr, ptr %157, align 8, !tbaa !24
  %159 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 0
  %160 = load i32, ptr %159, align 8
  %161 = getelementptr inbounds { i32, ptr }, ptr %18, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8
  call void @List__add__Node____(ptr noundef %158, i32 %160, ptr %162)
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %163)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %168

164:                                              ; preds = %138
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = load ptr, ptr @mu_____string77, align 8
  %167 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string77, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %165, ptr %166, i32 %167)
  br label %168

168:                                              ; preds = %164, %145
  store i32 1, ptr %13, align 4, !tbaa !13
  br label %169

169:                                              ; preds = %168, %137
  store i32 0, ptr %15, align 4
  br label %170

170:                                              ; preds = %169, %87
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  %171 = load i32, ptr %15, align 4
  switch i32 %171, label %222 [
    i32 0, label %172
    i32 3, label %173
  ]

172:                                              ; preds = %170
  br label %63

173:                                              ; preds = %170
  %174 = load i32, ptr %13, align 4, !tbaa !13
  %175 = icmp ne i32 %174, 2
  br i1 %175, label %176, label %180

176:                                              ; preds = %173
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = load ptr, ptr @mu_____string300, align 8
  %179 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string300, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %177, ptr %178, i32 %179)
  br label %180

180:                                              ; preds = %176, %173
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.tag_____ParserState__, ptr %181, i32 0, i32 3
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = getelementptr inbounds %struct.tag_____Token__, ptr %183, i32 0, i32 4
  %185 = load i32, ptr %184, align 8, !tbaa !27
  %186 = icmp eq i32 %185, 2147483647
  %187 = zext i1 %186 to i32
  %188 = trunc i32 %187 to i8
  store i8 %188, ptr %19, align 1, !tbaa !29
  %189 = load i8, ptr %19, align 1, !tbaa !29
  %190 = icmp ne i8 %189, 0
  br i1 %190, label %191, label %200

191:                                              ; preds = %180
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.tag_____ParserState__, ptr %192, i32 0, i32 3
  %194 = load ptr, ptr %193, align 8, !tbaa !15
  %195 = getelementptr inbounds %struct.tag_____Token__, ptr %194, i32 0, i32 0
  %196 = load i32, ptr %195, align 8, !tbaa !30
  %197 = icmp eq i32 %196, 12
  %198 = zext i1 %197 to i32
  %199 = trunc i32 %198 to i8
  store i8 %199, ptr %19, align 1, !tbaa !29
  br label %200

200:                                              ; preds = %191, %180
  %201 = load i8, ptr %19, align 1, !tbaa !29
  %202 = icmp ne i8 %201, 0
  br i1 %202, label %203, label %210

203:                                              ; preds = %200
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.tag_____ParserState__, ptr %204, i32 0, i32 3
  %206 = load ptr, ptr %205, align 8, !tbaa !15
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.tag_____TypeArgsExpression__, ptr %207, i32 0, i32 4
  store ptr %206, ptr %208, align 8, !tbaa !33
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %209)
  br label %214

210:                                              ; preds = %200
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = load ptr, ptr @mu_____string78, align 8
  %213 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string78, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %211, ptr %212, i32 %213)
  br label %214

214:                                              ; preds = %210, %203
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.tag_____ParserState__, ptr %215, i32 0, i32 8
  %217 = load i32, ptr %216, align 8, !tbaa !26
  %218 = sub nsw i32 %217, 1
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.tag_____ParserState__, ptr %219, i32 0, i32 8
  store i32 %218, ptr %220, align 8, !tbaa !26
  %221 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, 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 %221

222:                                              ; preds = %170
  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 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 4, !13, i64 8, i64 8, !5}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 32}
!16 = !{!"tag_____ParserState__", !17, 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, !18, i64 72, !14, i64 80, !14, i64 84, !6, i64 88, !14, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!17 = !{!"", !6, i64 0, !14, i64 8}
!18 = !{!"tag_____IntRange__", !14, i64 0, !14, i64 4}
!19 = !{!20, !6, i64 16}
!20 = !{!"tag_____TypeArgsExpression__", !21, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!21 = !{!"", !14, i64 0, !6, i64 8}
!22 = !{i64 0, i64 8, !5, i64 8, i64 4, !13, i64 12, i64 4, !13}
!23 = !{!20, !6, i64 24}
!24 = !{!20, !6, i64 32}
!25 = !{i64 0, i64 4, !13, 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}
!26 = !{!16, !14, i64 56}
!27 = !{!28, !14, i64 40}
!28 = !{!"tag_____Token__", !14, i64 0, !17, i64 8, !18, i64 24, !18, i64 32, !14, i64 40}
!29 = !{!7, !7, i64 0}
!30 = !{!28, !14, i64 0}
!31 = !{!21, !6, i64 8}
!32 = !{!21, !14, i64 0}
!33 = !{!20, !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_____string77 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string78 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string299 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string300 = 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
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__expected__(ptr noundef, ptr, i32) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @Parser__parseTypeArgsExpressionTail__(ptr noundef %0, i32 %1, ptr %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 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !11
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8, !tbaa !10
  %13 = tail call ptr %11(ptr noundef %12, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8, !tbaa !10
  %16 = tail call ptr %14(ptr noundef %15, i64 noundef 16) #3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %16, i8 0, i64 16, i1 false)
  store i32 %1, ptr %8, align 8, !tbaa !16
  %.sroa.027.sroa.6.0..0.29.sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %2, ptr %.sroa.027.sroa.6.0..0.29.sroa_idx, align 8, !tbaa !17
  %.sroa.528.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %10, ptr %.sroa.528.0..sroa_idx, align 8, !tbaa !17
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %13, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !17
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 32
  store ptr %16, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !17
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 40
  store ptr null, ptr %.sroa.8.0..sroa_idx, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  %18 = load i32, ptr %17, align 8, !tbaa !18
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %17, align 8, !tbaa !18
  tail call void @Parser__readToken__(ptr noundef %0)
  %20 = load ptr, ptr %9, align 8, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %20, i64 40
  %22 = load i32, ptr %21, align 8, !tbaa !19
  %23 = icmp eq i32 %22, 2147483647
  br i1 %23, label %.lr.ph, label %.thread.thread

.lr.ph:                                           ; preds = %3, %47
  %24 = phi ptr [ %48, %47 ], [ %20, %3 ]
  %.05473 = phi i32 [ %.3, %47 ], [ 0, %3 ]
  %25 = load i32, ptr %24, align 8, !tbaa !21
  %.not72 = icmp eq i32 %25, 12
  br i1 %.not72, label %.thread, label %26

26:                                               ; preds = %.lr.ph
  %.not60 = icmp eq i32 %.05473, 2
  br i1 %.not60, label %40, label %27

27:                                               ; preds = %26
  %28 = tail call { i32, ptr } @Parser__tryParseType__(ptr noundef %0)
  %29 = extractvalue { i32, ptr } %28, 1
  %.not61 = icmp eq ptr %29, null
  br i1 %.not61, label %34, label %30

30:                                               ; preds = %27
  %31 = extractvalue { i32, ptr } %28, 0
  %32 = load ptr, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !22
  tail call void @List__add__Node____(ptr noundef %32, i32 %31, ptr nonnull %29)
  %33 = load ptr, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !25
  tail call void @List__add__Node____(ptr noundef %33, i32 %31, ptr nonnull %29)
  br label %47

34:                                               ; preds = %27
  %35 = load ptr, ptr %9, align 8, !tbaa !11
  %.not62 = icmp eq ptr %35, null
  %36 = select i1 %.not62, i32 0, i32 21
  %37 = load ptr, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !25
  tail call void @List__add__Node____(ptr noundef %37, i32 %36, ptr %35)
  %38 = load ptr, ptr @mu_____string299, align 8
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string299, i64 8), align 8
  tail call void @Parser__badToken__(ptr noundef %0, ptr %38, i32 %39)
  br label %47

40:                                               ; preds = %26
  %41 = icmp eq i32 %25, 13
  br i1 %41, label %42, label %44

42:                                               ; preds = %40
  %43 = load ptr, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !25
  tail call void @List__add__Node____(ptr noundef %43, i32 21, ptr nonnull %24)
  tail call void @Parser__readToken__(ptr noundef %0)
  br label %47

44:                                               ; preds = %40
  %45 = load ptr, ptr @mu_____string77, align 8
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string77, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef %0, ptr %45, i32 %46)
  br label %47

47:                                               ; preds = %34, %30, %44, %42
  %.3 = phi i32 [ 2, %30 ], [ %.05473, %34 ], [ 1, %44 ], [ 1, %42 ]
  %48 = load ptr, ptr %9, align 8, !tbaa !11
  %49 = getelementptr inbounds i8, ptr %48, i64 40
  %50 = load i32, ptr %49, align 8, !tbaa !19
  %51 = icmp eq i32 %50, 2147483647
  br i1 %51, label %.lr.ph, label %.thread

.thread:                                          ; preds = %.lr.ph, %47
  %52 = phi ptr [ %24, %.lr.ph ], [ %48, %47 ]
  %.054.lcssa.ph = phi i32 [ %.05473, %.lr.ph ], [ %.3, %47 ]
  %53 = icmp eq i32 %.054.lcssa.ph, 2
  br i1 %53, label %56, label %.thread.thread

.thread.thread:                                   ; preds = %3, %.thread
  %54 = load ptr, ptr @mu_____string300, align 8
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string300, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef nonnull %0, ptr %54, i32 %55)
  %.pre = load ptr, ptr %9, align 8, !tbaa !11
  br label %56

56:                                               ; preds = %.thread.thread, %.thread
  %57 = phi ptr [ %.pre, %.thread.thread ], [ %52, %.thread ]
  %58 = getelementptr inbounds i8, ptr %57, i64 40
  %59 = load i32, ptr %58, align 8, !tbaa !19
  %60 = icmp eq i32 %59, 2147483647
  br i1 %60, label %61, label %.critedge

61:                                               ; preds = %56
  %62 = load i32, ptr %57, align 8, !tbaa !21
  %.not = icmp eq i32 %62, 12
  br i1 %.not, label %63, label %.critedge

63:                                               ; preds = %61
  store ptr %57, ptr %.sroa.8.0..sroa_idx, align 8, !tbaa !26
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  br label %66

.critedge:                                        ; preds = %56, %61
  %64 = load ptr, ptr @mu_____string78, align 8
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string78, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef nonnull %0, ptr %64, i32 %65)
  br label %66

66:                                               ; preds = %.critedge, %63
  %67 = load i32, ptr %17, align 8, !tbaa !18
  %68 = add nsw i32 %67, -1
  store i32 %68, ptr %17, align 8, !tbaa !18
  ret ptr %8
}

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 = !{!12, !7, i64 32}
!12 = !{!"tag_____ParserState__", !13, i64 0, !14, i64 16, !7, i64 24, !7, i64 32, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !7, i64 64, !15, i64 72, !14, i64 80, !14, i64 84, !7, i64 88, !14, i64 96, !7, i64 104, !7, i64 112, !7, i64 120}
!13 = !{!"", !7, i64 0, !14, i64 8}
!14 = !{!"int", !8, i64 0}
!15 = !{!"tag_____IntRange__", !14, i64 0, !14, i64 4}
!16 = !{!14, !14, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!12, !14, i64 56}
!19 = !{!20, !14, i64 40}
!20 = !{!"tag_____Token__", !14, i64 0, !13, i64 8, !15, i64 24, !15, i64 32, !14, i64 40}
!21 = !{!20, !14, i64 0}
!22 = !{!23, !7, i64 24}
!23 = !{!"tag_____TypeArgsExpression__", !24, i64 0, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!24 = !{!"", !14, i64 0, !7, i64 8}
!25 = !{!23, !7, i64 32}
!26 = !{!23, !7, i64 40}


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