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

; 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_____TypeModifierExpression__ = type { ptr, %struct.Node__ }
%struct.tag_____UnaryOperatorExpression__ = type { ptr, %struct.Node__ }
%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_____string160 = external dso_local global %struct.string__, align 8
@mu_____string75 = external dso_local global %struct.string__, align 8
@mu_____string74 = external dso_local global %struct.string__, align 8
@mu_____string298 = 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 zeroext i8 @string__equals__(ptr, i32, ptr, i32) #4

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

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

; Function Attrs: nounwind uwtable
define dso_local { i32, ptr } @Parser__tryParseType__(ptr noundef %0) #4 {
  %2 = alloca %struct.Node__, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.Node__, align 8
  %5 = alloca %struct.Node__, align 8
  %6 = alloca %struct.Node__, align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca %struct.Node__, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.tag_____TypeModifierExpression__, align 8
  %13 = alloca %struct.Node__, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca %struct.tag_____UnaryOperatorExpression__, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca %struct.Node__, align 8
  %20 = alloca %struct.Node__, align 8
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.tag_____ParserState__, ptr %23, i32 0, i32 3
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.tag_____Token__, ptr %25, i32 0, i32 4
  %27 = load i32, ptr %26, align 8, !tbaa !14
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.tag_____ParserState__, ptr %28, i32 0, i32 5
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %31 = icmp sle i32 %27, %30
  br i1 %31, label %32, label %35

32:                                               ; preds = %1
  %33 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  store ptr null, ptr %33, align 8, !tbaa !17
  %34 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 0
  store i32 0, ptr %34, align 8, !tbaa !19
  br label %269

35:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  %36 = getelementptr inbounds %struct.Node__, ptr %4, i32 0, i32 1
  store ptr null, ptr %36, align 8, !tbaa !17
  %37 = getelementptr inbounds %struct.Node__, ptr %4, i32 0, i32 0
  store i32 0, ptr %37, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !20
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.tag_____ParserState__, ptr %38, i32 0, i32 3
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.tag_____Token__, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !22
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %56

44:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.tag_____ParserState__, ptr %45, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds %struct.Node__, ptr %6, i32 0, i32 1
  store ptr %47, ptr %48, align 8, !tbaa !17
  %49 = getelementptr inbounds %struct.Node__, ptr %6, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = icmp ne ptr %50, null
  %52 = zext i1 %51 to i64
  %53 = select i1 %51, i32 21, i32 0
  %54 = getelementptr inbounds %struct.Node__, ptr %6, i32 0, i32 0
  store i32 %53, ptr %54, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !20
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %55)
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %229

56:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.tag_____ParserState__, ptr %57, i32 0, i32 3
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.tag_____Token__, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 8, !tbaa !22
  %62 = icmp eq i32 %61, 4
  %63 = zext i1 %62 to i32
  %64 = trunc i32 %63 to i8
  store i8 %64, ptr %7, align 1, !tbaa !23
  %65 = load i8, ptr %7, align 1, !tbaa !23
  %66 = icmp ne i8 %65, 0
  br i1 %66, label %67, label %95

67:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.tag_____ParserState__, ptr %68, i32 0, i32 3
  %70 = load ptr, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.tag_____Token__, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds { ptr, i32 }, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds { ptr, i32 }, ptr %71, i32 0, i32 1
  %75 = load i32, ptr %74, align 8
  %76 = load ptr, ptr @mu_____string74, align 8
  %77 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string74, i32 0, i32 1), align 8
  %78 = call zeroext i8 @string__equals__(ptr %73, i32 %75, ptr %76, i32 %77)
  store i8 %78, ptr %8, align 1, !tbaa !23
  %79 = load i8, ptr %8, align 1, !tbaa !23
  %80 = icmp ne i8 %79, 0
  br i1 %80, label %93, label %81

81:                                               ; preds = %67
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.tag_____ParserState__, ptr %82, i32 0, i32 3
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct.tag_____Token__, ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds { ptr, i32 }, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8
  %88 = getelementptr inbounds { ptr, i32 }, ptr %85, i32 0, i32 1
  %89 = load i32, ptr %88, align 8
  %90 = load ptr, ptr @mu_____string75, align 8
  %91 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string75, i32 0, i32 1), align 8
  %92 = call zeroext i8 @string__equals__(ptr %87, i32 %89, ptr %90, i32 %91)
  store i8 %92, ptr %8, align 1, !tbaa !23
  br label %93

93:                                               ; preds = %81, %67
  %94 = load i8, ptr %8, align 1, !tbaa !23
  store i8 %94, ptr %7, align 1, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  br label %95

95:                                               ; preds = %93, %56
  %96 = load i8, ptr %7, align 1, !tbaa !23
  %97 = icmp ne i8 %96, 0
  br i1 %97, label %98, label %128

98:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.tag_____ParserState__, ptr %99, i32 0, i32 3
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  store ptr %101, ptr %9, align 8, !tbaa !5
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %102)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %103 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %104 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %107 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !26
  %109 = call ptr %105(ptr noundef %108, i64 noundef 24)
  store ptr %109, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 24, i1 false)
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.tag_____TypeModifierExpression__, ptr %12, i32 0, i32 0
  store ptr %110, ptr %111, align 8, !tbaa !27
  %112 = getelementptr inbounds %struct.tag_____TypeModifierExpression__, ptr %12, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = call { i32, ptr } @Parser__parseTypeModifiers__(ptr noundef %113)
  %115 = getelementptr inbounds { i32, ptr }, ptr %13, i32 0, i32 0
  %116 = extractvalue { i32, ptr } %114, 0
  store i32 %116, ptr %115, align 8
  %117 = getelementptr inbounds { i32, ptr }, ptr %13, i32 0, i32 1
  %118 = extractvalue { i32, ptr } %114, 1
  store ptr %118, ptr %117, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %112, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %119, ptr align 8 %12, i64 24, i1 false), !tbaa.struct !29
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 1
  store ptr %120, ptr %121, align 8, !tbaa !17
  %122 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !17
  %124 = icmp ne ptr %123, null
  %125 = zext i1 %124 to i64
  %126 = select i1 %124, i32 3, i32 0
  %127 = getelementptr inbounds %struct.Node__, ptr %10, i32 0, i32 0
  store i32 %126, ptr %127, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %225

128:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.tag_____ParserState__, ptr %129, i32 0, i32 3
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.tag_____Token__, ptr %131, i32 0, i32 0
  %133 = load i32, ptr %132, align 8, !tbaa !22
  %134 = icmp eq i32 %133, 4
  %135 = zext i1 %134 to i32
  %136 = trunc i32 %135 to i8
  store i8 %136, ptr %14, align 1, !tbaa !23
  %137 = load i8, ptr %14, align 1, !tbaa !23
  %138 = icmp ne i8 %137, 0
  br i1 %138, label %139, label %151

139:                                              ; preds = %128
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.tag_____ParserState__, ptr %140, i32 0, i32 3
  %142 = load ptr, ptr %141, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct.tag_____Token__, ptr %142, i32 0, i32 1
  %144 = getelementptr inbounds { ptr, i32 }, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8
  %146 = getelementptr inbounds { ptr, i32 }, ptr %143, i32 0, i32 1
  %147 = load i32, ptr %146, align 8
  %148 = load ptr, ptr @mu_____string160, align 8
  %149 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string160, i32 0, i32 1), align 8
  %150 = call zeroext i8 @string__equals__(ptr %145, i32 %147, ptr %148, i32 %149)
  store i8 %150, ptr %14, align 1, !tbaa !23
  br label %151

151:                                              ; preds = %139, %128
  %152 = load i8, ptr %14, align 1, !tbaa !23
  %153 = icmp ne i8 %152, 0
  br i1 %153, label %154, label %218

154:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %155 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %156 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %155, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8, !tbaa !24
  %158 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %159 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %158, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8, !tbaa !26
  %161 = call ptr %157(ptr noundef %160, i64 noundef 24)
  store ptr %161, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 24, i1 false)
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.tag_____ParserState__, ptr %162, i32 0, i32 3
  %164 = load ptr, ptr %163, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.tag_____UnaryOperatorExpression__, ptr %16, i32 0, i32 0
  store ptr %164, ptr %165, align 8, !tbaa !30
  %166 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %166, ptr align 8 %16, i64 24, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %167, ptr %17, align 8, !tbaa !5
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %168)
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.tag_____ParserState__, ptr %169, i32 0, i32 3
  %171 = load ptr, ptr %170, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.tag_____Token__, ptr %171, i32 0, i32 4
  %173 = load i32, ptr %172, align 8, !tbaa !14
  %174 = icmp eq i32 %173, 2147483647
  %175 = zext i1 %174 to i32
  %176 = trunc i32 %175 to i8
  store i8 %176, ptr %18, align 1, !tbaa !23
  %177 = load i8, ptr %18, align 1, !tbaa !23
  %178 = icmp ne i8 %177, 0
  br i1 %178, label %179, label %188

179:                                              ; preds = %154
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.tag_____ParserState__, ptr %180, i32 0, i32 3
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct.tag_____Token__, ptr %182, i32 0, i32 0
  %184 = load i32, ptr %183, align 8, !tbaa !22
  %185 = icmp eq i32 %184, 0
  %186 = zext i1 %185 to i32
  %187 = trunc i32 %186 to i8
  store i8 %187, ptr %18, align 1, !tbaa !23
  br label %188

188:                                              ; preds = %179, %154
  %189 = load i8, ptr %18, align 1, !tbaa !23
  %190 = icmp ne i8 %189, 0
  br i1 %190, label %191, label %205

191:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.tag_____ParserState__, ptr %192, i32 0, i32 3
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct.Node__, ptr %19, i32 0, i32 1
  store ptr %194, ptr %195, align 8, !tbaa !17
  %196 = getelementptr inbounds %struct.Node__, ptr %19, i32 0, i32 1
  %197 = load ptr, ptr %196, align 8, !tbaa !17
  %198 = icmp ne ptr %197, null
  %199 = zext i1 %198 to i64
  %200 = select i1 %198, i32 21, i32 0
  %201 = getelementptr inbounds %struct.Node__, ptr %19, i32 0, i32 0
  store i32 %200, ptr %201, align 8, !tbaa !19
  %202 = load ptr, ptr %17, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.tag_____UnaryOperatorExpression__, ptr %202, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %203, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !20
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %204)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %209

205:                                              ; preds = %188
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = load ptr, ptr @mu_____string298, align 8
  %208 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string298, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %206, ptr %207, i32 %208)
  br label %209

209:                                              ; preds = %205, %191
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %210 = load ptr, ptr %17, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 1
  store ptr %210, ptr %211, align 8, !tbaa !17
  %212 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !17
  %214 = icmp ne ptr %213, null
  %215 = zext i1 %214 to i64
  %216 = select i1 %214, i32 9, i32 0
  %217 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 0
  store i32 %216, ptr %217, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %221

218:                                              ; preds = %151
  %219 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  store ptr null, ptr %219, align 8, !tbaa !17
  %220 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 0
  store i32 0, ptr %220, align 8, !tbaa !19
  store i32 1, ptr %21, align 4
  br label %222

221:                                              ; preds = %209
  store i32 0, ptr %21, align 4
  br label %222

222:                                              ; preds = %221, %218
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  %223 = load i32, ptr %21, align 4
  switch i32 %223, label %226 [
    i32 0, label %224
  ]

224:                                              ; preds = %222
  br label %225

225:                                              ; preds = %224, %98
  store i32 0, ptr %21, align 4
  br label %226

226:                                              ; preds = %225, %222
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  %227 = load i32, ptr %21, align 4
  switch i32 %227, label %268 [
    i32 0, label %228
  ]

228:                                              ; preds = %226
  br label %229

229:                                              ; preds = %228, %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.tag_____ParserState__, ptr %230, i32 0, i32 3
  %232 = load ptr, ptr %231, align 8, !tbaa !9
  %233 = getelementptr inbounds %struct.tag_____Token__, ptr %232, i32 0, i32 4
  %234 = load i32, ptr %233, align 8, !tbaa !14
  %235 = icmp eq i32 %234, 2147483647
  %236 = zext i1 %235 to i32
  %237 = trunc i32 %236 to i8
  store i8 %237, ptr %22, align 1, !tbaa !23
  %238 = load i8, ptr %22, align 1, !tbaa !23
  %239 = icmp ne i8 %238, 0
  br i1 %239, label %240, label %249

240:                                              ; preds = %229
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.tag_____ParserState__, ptr %241, i32 0, i32 3
  %243 = load ptr, ptr %242, align 8, !tbaa !9
  %244 = getelementptr inbounds %struct.tag_____Token__, ptr %243, i32 0, i32 0
  %245 = load i32, ptr %244, align 8, !tbaa !22
  %246 = icmp eq i32 %245, 11
  %247 = zext i1 %246 to i32
  %248 = trunc i32 %247 to i8
  store i8 %248, ptr %22, align 1, !tbaa !23
  br label %249

249:                                              ; preds = %240, %229
  %250 = load i8, ptr %22, align 1, !tbaa !23
  %251 = icmp ne i8 %250, 0
  br i1 %251, label %252, label %266

252:                                              ; preds = %249
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  %254 = getelementptr inbounds { i32, ptr }, ptr %5, i32 0, i32 0
  %255 = load i32, ptr %254, align 8
  %256 = getelementptr inbounds { i32, ptr }, ptr %5, i32 0, i32 1
  %257 = load ptr, ptr %256, align 8
  %258 = call ptr @Parser__parseTypeArgsExpressionTail__(ptr noundef %253, i32 %255, ptr %257)
  %259 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  store ptr %258, ptr %259, align 8, !tbaa !17
  %260 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  %261 = load ptr, ptr %260, align 8, !tbaa !17
  %262 = icmp ne ptr %261, null
  %263 = zext i1 %262 to i64
  %264 = select i1 %262, i32 4, i32 0
  %265 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 0
  store i32 %264, ptr %265, align 8, !tbaa !19
  store i32 1, ptr %21, align 4
  br label %267

266:                                              ; preds = %249
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %5, i64 16, i1 false), !tbaa.struct !20
  store i32 1, ptr %21, align 4
  br label %267

267:                                              ; preds = %266, %252
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %268

268:                                              ; preds = %267, %226
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  br label %269

269:                                              ; preds = %268, %32
  %270 = load { i32, ptr }, ptr %2, align 8
  ret { i32, ptr } %270
}

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @Parser__parseTypeArgsExpressionTail__(ptr noundef, i32, ptr) #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 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 = !{!10, !12, i64 44}
!17 = !{!18, !6, i64 8}
!18 = !{!"", !12, i64 0, !6, i64 8}
!19 = !{!18, !12, i64 0}
!20 = !{i64 0, i64 4, !21, i64 8, i64 8, !5}
!21 = !{!12, !12, i64 0}
!22 = !{!15, !12, i64 0}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !6, i64 8}
!25 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!25, !6, i64 0}
!27 = !{!28, !6, i64 0}
!28 = !{!"tag_____TypeModifierExpression__", !6, i64 0, !18, i64 8}
!29 = !{i64 0, i64 8, !5, i64 8, i64 4, !21, i64 16, i64 8, !5}
!30 = !{!31, !6, i64 0}
!31 = !{!"tag_____UnaryOperatorExpression__", !6, i64 0, !18, i64 8}


; 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_____string160 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string75 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string74 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string298 = 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 zeroext i8 @string__equals__(ptr, i32, ptr, i32) 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__expected__(ptr noundef, ptr, i32) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local { i32, ptr } @Parser__tryParseType__(ptr noundef %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 40
  %5 = load i32, ptr %4, align 8, !tbaa !13
  %6 = getelementptr inbounds i8, ptr %0, i64 44
  %7 = load i32, ptr %6, align 4, !tbaa !15
  %.not = icmp sgt i32 %5, %7
  br i1 %.not, label %8, label %.critedge93

8:                                                ; preds = %1
  %9 = load i32, ptr %3, align 8, !tbaa !16
  switch i32 %9, label %.critedge93 [
    i32 0, label %10
    i32 4, label %11
  ]

10:                                               ; preds = %8
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  br label %.thread105

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %3, i64 8
  %13 = load ptr, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr %3, i64 16
  %15 = load i32, ptr %14, align 8
  %16 = load ptr, ptr @mu_____string74, align 8
  %17 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string74, i64 8), align 8
  %18 = tail call zeroext i8 @string__equals__(ptr %13, i32 %15, ptr %16, i32 %17)
  %.not81 = icmp eq i8 %18, 0
  br i1 %.not81, label %19, label %.critedge89

19:                                               ; preds = %11
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = load ptr, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr %20, i64 16
  %24 = load i32, ptr %23, align 8
  %25 = load ptr, ptr @mu_____string75, align 8
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string75, i64 8), align 8
  %27 = tail call zeroext i8 @string__equals__(ptr %22, i32 %24, ptr %25, i32 %26)
  %28 = icmp eq i8 %27, 0
  br i1 %28, label %.critedge, label %.critedge89

.critedge89:                                      ; preds = %11, %19
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  %30 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = load ptr, ptr %30, align 8, !tbaa !19
  %34 = tail call ptr %32(ptr noundef %33, i64 noundef 24) #3
  %35 = tail call { i32, ptr } @Parser__parseTypeModifiers__(ptr noundef nonnull %0)
  %36 = extractvalue { i32, ptr } %35, 0
  %37 = extractvalue { i32, ptr } %35, 1
  store ptr %29, ptr %34, align 8, !tbaa !20
  %.sroa.521.0..sroa_idx = getelementptr inbounds i8, ptr %34, i64 8
  store i32 %36, ptr %.sroa.521.0..sroa_idx, align 8, !tbaa !21
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %34, i64 16
  store ptr %37, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !20
  br label %.thread105

.critedge:                                        ; preds = %19
  %.pre = load ptr, ptr %2, align 8, !tbaa !5
  %.pre111 = load i32, ptr %.pre, align 8, !tbaa !16
  %38 = icmp eq i32 %.pre111, 4
  br i1 %38, label %39, label %.critedge93

39:                                               ; preds = %.critedge
  %40 = getelementptr inbounds i8, ptr %.pre, i64 8
  %41 = load ptr, ptr %40, align 8
  %42 = getelementptr inbounds i8, ptr %.pre, i64 16
  %43 = load i32, ptr %42, align 8
  %44 = load ptr, ptr @mu_____string160, align 8
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string160, i64 8), align 8
  %46 = tail call zeroext i8 @string__equals__(ptr %41, i32 %43, ptr %44, i32 %45)
  %47 = icmp eq i8 %46, 0
  br i1 %47, label %.critedge93, label %48

48:                                               ; preds = %39
  %49 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %50 = getelementptr inbounds i8, ptr %49, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  %52 = load ptr, ptr %49, align 8, !tbaa !19
  %53 = tail call ptr %51(ptr noundef %52, i64 noundef 24) #3
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %54, ptr %53, align 8, !tbaa !20
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.5.0..sroa_idx, i8 0, i64 16, i1 false)
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 40
  %57 = load i32, ptr %56, align 8, !tbaa !13
  %58 = icmp eq i32 %57, 2147483647
  br i1 %58, label %59, label %.critedge91

59:                                               ; preds = %48
  %60 = load i32, ptr %55, align 8, !tbaa !16
  %.not109 = icmp eq i32 %60, 0
  br i1 %.not109, label %61, label %.critedge91

61:                                               ; preds = %59
  store i32 21, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !21
  %.sroa.48.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 16
  store ptr %55, ptr %.sroa.48.0..sroa_idx, align 8, !tbaa !20
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  br label %.thread105

.critedge91:                                      ; preds = %48, %59
  %62 = load ptr, ptr @mu_____string298, align 8
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string298, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef nonnull %0, ptr %62, i32 %63)
  br label %.thread105

.thread105:                                       ; preds = %.critedge91, %61, %.critedge89, %10
  %.sroa.035.3 = phi i32 [ 21, %10 ], [ 3, %.critedge89 ], [ 9, %61 ], [ 9, %.critedge91 ]
  %.sroa.11.3 = phi ptr [ %3, %10 ], [ %34, %.critedge89 ], [ %53, %61 ], [ %53, %.critedge91 ]
  %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 = icmp eq i32 %66, 2147483647
  br i1 %67, label %68, label %.critedge93

68:                                               ; preds = %.thread105
  %69 = load i32, ptr %64, align 8, !tbaa !16
  %.not110 = icmp eq i32 %69, 11
  br i1 %.not110, label %70, label %.critedge93

70:                                               ; preds = %68
  %71 = tail call ptr @Parser__parseTypeArgsExpressionTail__(ptr noundef nonnull %0, i32 %.sroa.035.3, ptr nonnull %.sroa.11.3)
  %.not87 = icmp eq ptr %71, null
  %72 = select i1 %.not87, i32 0, i32 4
  br label %.critedge93

.critedge93:                                      ; preds = %8, %.critedge, %39, %68, %.thread105, %70, %1
  %.sroa.067.5 = phi i32 [ 0, %1 ], [ %72, %70 ], [ %.sroa.035.3, %.thread105 ], [ %.sroa.035.3, %68 ], [ 0, %39 ], [ 0, %.critedge ], [ 0, %8 ]
  %.sroa.669.5 = phi ptr [ null, %1 ], [ %71, %70 ], [ %.sroa.11.3, %.thread105 ], [ %.sroa.11.3, %68 ], [ null, %39 ], [ null, %.critedge ], [ null, %8 ]
  %.fca.0.insert = insertvalue { i32, ptr } poison, i32 %.sroa.067.5, 0
  %.fca.1.insert = insertvalue { i32, ptr } %.fca.0.insert, ptr %.sroa.669.5, 1
  ret { i32, ptr } %.fca.1.insert
}

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @Parser__parseTypeArgsExpressionTail__(ptr noundef, i32, ptr) 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, !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 = !{!6, !11, i64 44}
!16 = !{!14, !11, 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 = !{!8, !8, i64 0}
!21 = !{!11, !11, i64 0}


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