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

; 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__parseTypeModifiers__(ptr noundef %0) #4 {
  %2 = alloca %struct.Node__, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca ptr, 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 i8, align 1
  %16 = alloca ptr, align 8
  %17 = alloca %struct.tag_____UnaryOperatorExpression__, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i8, align 1
  %20 = alloca %struct.Node__, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.tag_____ParserState__, ptr %21, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.tag_____Token__, ptr %23, i32 0, i32 4
  %25 = load i32, ptr %24, align 8, !tbaa !14
  %26 = icmp eq i32 %25, 2147483647
  %27 = zext i1 %26 to i32
  %28 = trunc i32 %27 to i8
  store i8 %28, ptr %4, align 1, !tbaa !16
  %29 = load i8, ptr %4, align 1, !tbaa !16
  %30 = icmp ne i8 %29, 0
  br i1 %30, label %31, label %40

31:                                               ; preds = %1
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.tag_____ParserState__, ptr %32, i32 0, i32 3
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.tag_____Token__, ptr %34, i32 0, i32 0
  %36 = load i32, ptr %35, align 8, !tbaa !17
  %37 = icmp eq i32 %36, 0
  %38 = zext i1 %37 to i32
  %39 = trunc i32 %38 to i8
  store i8 %39, ptr %4, align 1, !tbaa !16
  br label %40

40:                                               ; preds = %31, %1
  %41 = load i8, ptr %4, align 1, !tbaa !16
  %42 = icmp ne i8 %41, 0
  br i1 %42, label %43, label %56

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

56:                                               ; preds = %40
  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 4
  %61 = load i32, ptr %60, align 8, !tbaa !14
  %62 = icmp eq i32 %61, 2147483647
  %63 = zext i1 %62 to i32
  %64 = trunc i32 %63 to i8
  store i8 %64, ptr %7, align 1, !tbaa !16
  %65 = load i8, ptr %7, align 1, !tbaa !16
  %66 = icmp ne i8 %65, 0
  br i1 %66, label %67, label %76

67:                                               ; preds = %56
  %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 0
  %72 = load i32, ptr %71, align 8, !tbaa !17
  %73 = icmp eq i32 %72, 4
  %74 = zext i1 %73 to i32
  %75 = trunc i32 %74 to i8
  store i8 %75, ptr %7, align 1, !tbaa !16
  br label %76

76:                                               ; preds = %67, %56
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %77 = load i8, ptr %7, align 1, !tbaa !16
  store i8 %77, ptr %8, align 1, !tbaa !16
  %78 = load i8, ptr %8, align 1, !tbaa !16
  %79 = icmp ne i8 %78, 0
  br i1 %79, label %80, label %108

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.tag_____ParserState__, ptr %81, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.tag_____Token__, ptr %83, i32 0, i32 1
  %85 = getelementptr inbounds { ptr, i32 }, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8
  %87 = getelementptr inbounds { ptr, i32 }, ptr %84, i32 0, i32 1
  %88 = load i32, ptr %87, align 8
  %89 = load ptr, ptr @mu_____string74, align 8
  %90 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string74, i32 0, i32 1), align 8
  %91 = call zeroext i8 @string__equals__(ptr %86, i32 %88, ptr %89, i32 %90)
  store i8 %91, ptr %9, align 1, !tbaa !16
  %92 = load i8, ptr %9, align 1, !tbaa !16
  %93 = icmp ne i8 %92, 0
  br i1 %93, label %106, label %94

94:                                               ; preds = %80
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.tag_____ParserState__, ptr %95, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.tag_____Token__, ptr %97, i32 0, i32 1
  %99 = getelementptr inbounds { ptr, i32 }, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds { ptr, i32 }, ptr %98, i32 0, i32 1
  %102 = load i32, ptr %101, align 8
  %103 = load ptr, ptr @mu_____string75, align 8
  %104 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string75, i32 0, i32 1), align 8
  %105 = call zeroext i8 @string__equals__(ptr %100, i32 %102, ptr %103, i32 %104)
  store i8 %105, ptr %9, align 1, !tbaa !16
  br label %106

106:                                              ; preds = %94, %80
  %107 = load i8, ptr %9, align 1, !tbaa !16
  store i8 %107, ptr %8, align 1, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  br label %108

108:                                              ; preds = %106, %76
  %109 = load i8, ptr %8, align 1, !tbaa !16
  %110 = icmp ne i8 %109, 0
  br i1 %110, label %111, label %141

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.tag_____ParserState__, ptr %112, i32 0, i32 3
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  store ptr %114, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %115)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %116 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %117 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %116, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !21
  %119 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %120 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !23
  %122 = call ptr %118(ptr noundef %121, i64 noundef 24)
  store ptr %122, 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)
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.tag_____TypeModifierExpression__, ptr %12, i32 0, i32 0
  store ptr %123, ptr %124, align 8, !tbaa !24
  %125 = getelementptr inbounds %struct.tag_____TypeModifierExpression__, ptr %12, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = call { i32, ptr } @Parser__parseTypeModifiers__(ptr noundef %126)
  %128 = getelementptr inbounds { i32, ptr }, ptr %13, i32 0, i32 0
  %129 = extractvalue { i32, ptr } %127, 0
  store i32 %129, ptr %128, align 8
  %130 = getelementptr inbounds { i32, ptr }, ptr %13, i32 0, i32 1
  %131 = extractvalue { i32, ptr } %127, 1
  store ptr %131, ptr %130, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %125, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %132, ptr align 8 %12, i64 24, i1 false), !tbaa.struct !28
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  store ptr %133, ptr %134, align 8, !tbaa !18
  %135 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = icmp ne ptr %136, null
  %138 = zext i1 %137 to i64
  %139 = select i1 %137, i32 3, i32 0
  %140 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 0
  store i32 %139, ptr %140, align 8, !tbaa !20
  store i32 1, ptr %6, align 4
  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 8, ptr %10) #5
  br label %251

141:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.tag_____ParserState__, ptr %142, i32 0, i32 3
  %144 = load ptr, ptr %143, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.tag_____Token__, ptr %144, i32 0, i32 4
  %146 = load i32, ptr %145, align 8, !tbaa !14
  %147 = icmp eq i32 %146, 2147483647
  %148 = zext i1 %147 to i32
  %149 = trunc i32 %148 to i8
  store i8 %149, ptr %14, align 1, !tbaa !16
  %150 = load i8, ptr %14, align 1, !tbaa !16
  %151 = icmp ne i8 %150, 0
  br i1 %151, label %152, label %161

152:                                              ; preds = %141
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.tag_____ParserState__, ptr %153, i32 0, i32 3
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.tag_____Token__, ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 8, !tbaa !17
  %158 = icmp eq i32 %157, 4
  %159 = zext i1 %158 to i32
  %160 = trunc i32 %159 to i8
  store i8 %160, ptr %14, align 1, !tbaa !16
  br label %161

161:                                              ; preds = %152, %141
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %162 = load i8, ptr %14, align 1, !tbaa !16
  store i8 %162, ptr %15, align 1, !tbaa !16
  %163 = load i8, ptr %15, align 1, !tbaa !16
  %164 = icmp ne i8 %163, 0
  br i1 %164, label %165, label %177

165:                                              ; preds = %161
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.tag_____ParserState__, ptr %166, i32 0, i32 3
  %168 = load ptr, ptr %167, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.tag_____Token__, ptr %168, i32 0, i32 1
  %170 = getelementptr inbounds { ptr, i32 }, ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8
  %172 = getelementptr inbounds { ptr, i32 }, ptr %169, i32 0, i32 1
  %173 = load i32, ptr %172, align 8
  %174 = load ptr, ptr @mu_____string160, align 8
  %175 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string160, i32 0, i32 1), align 8
  %176 = call zeroext i8 @string__equals__(ptr %171, i32 %173, ptr %174, i32 %175)
  store i8 %176, ptr %15, align 1, !tbaa !16
  br label %177

177:                                              ; preds = %165, %161
  %178 = load i8, ptr %15, align 1, !tbaa !16
  %179 = icmp ne i8 %178, 0
  br i1 %179, label %180, label %244

180:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %181 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %182 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %181, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !21
  %184 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %185 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !23
  %187 = call ptr %183(ptr noundef %186, i64 noundef 24)
  store ptr %187, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 24, i1 false)
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.tag_____ParserState__, ptr %188, i32 0, i32 3
  %190 = load ptr, ptr %189, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct.tag_____UnaryOperatorExpression__, ptr %17, i32 0, i32 0
  store ptr %190, ptr %191, align 8, !tbaa !29
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %192, ptr align 8 %17, i64 24, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %193, ptr %18, align 8, !tbaa !5
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %194)
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #5
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.tag_____ParserState__, ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %196, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.tag_____Token__, ptr %197, i32 0, i32 4
  %199 = load i32, ptr %198, align 8, !tbaa !14
  %200 = icmp eq i32 %199, 2147483647
  %201 = zext i1 %200 to i32
  %202 = trunc i32 %201 to i8
  store i8 %202, ptr %19, align 1, !tbaa !16
  %203 = load i8, ptr %19, align 1, !tbaa !16
  %204 = icmp ne i8 %203, 0
  br i1 %204, label %205, label %214

205:                                              ; preds = %180
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.tag_____ParserState__, ptr %206, i32 0, i32 3
  %208 = load ptr, ptr %207, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.tag_____Token__, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 8, !tbaa !17
  %211 = icmp eq i32 %210, 0
  %212 = zext i1 %211 to i32
  %213 = trunc i32 %212 to i8
  store i8 %213, ptr %19, align 1, !tbaa !16
  br label %214

214:                                              ; preds = %205, %180
  %215 = load i8, ptr %19, align 1, !tbaa !16
  %216 = icmp ne i8 %215, 0
  br i1 %216, label %217, label %231

217:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.tag_____ParserState__, ptr %218, i32 0, i32 3
  %220 = load ptr, ptr %219, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 1
  store ptr %220, ptr %221, align 8, !tbaa !18
  %222 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8, !tbaa !18
  %224 = icmp ne ptr %223, null
  %225 = zext i1 %224 to i64
  %226 = select i1 %224, i32 21, i32 0
  %227 = getelementptr inbounds %struct.Node__, ptr %20, i32 0, i32 0
  store i32 %226, ptr %227, align 8, !tbaa !20
  %228 = load ptr, ptr %18, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.tag_____UnaryOperatorExpression__, ptr %228, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %229, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !26
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Parser__readToken__(ptr noundef %230)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %235

231:                                              ; preds = %214
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = load ptr, ptr @mu_____string298, align 8
  %234 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string298, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %232, ptr %233, i32 %234)
  br label %235

235:                                              ; preds = %231, %217
  %236 = load ptr, ptr %18, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  store ptr %236, ptr %237, align 8, !tbaa !18
  %238 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  %239 = load ptr, ptr %238, align 8, !tbaa !18
  %240 = icmp ne ptr %239, null
  %241 = zext i1 %240 to i64
  %242 = select i1 %240, i32 9, i32 0
  %243 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 0
  store i32 %242, ptr %243, align 8, !tbaa !20
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %250

244:                                              ; preds = %177
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = load ptr, ptr @mu_____string298, align 8
  %247 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string298, i32 0, i32 1), align 8
  call void @Parser__expected__(ptr noundef %245, ptr %246, i32 %247)
  %248 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 1
  store ptr null, ptr %248, align 8, !tbaa !18
  %249 = getelementptr inbounds %struct.Node__, ptr %2, i32 0, i32 0
  store i32 0, ptr %249, align 8, !tbaa !20
  store i32 1, ptr %6, align 4
  br label %250

250:                                              ; preds = %244, %235
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  br label %251

251:                                              ; preds = %250, %111
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %252

252:                                              ; preds = %251, %43
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  %253 = load { i32, ptr }, ptr %2, align 8
  ret { i32, ptr } %253
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"tag_____ParserState__", !11, i64 0, !12, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !6, i64 64, !13, i64 72, !12, i64 80, !12, i64 84, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!11 = !{!"", !6, i64 0, !12, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"tag_____IntRange__", !12, i64 0, !12, i64 4}
!14 = !{!15, !12, i64 40}
!15 = !{!"tag_____Token__", !12, i64 0, !11, i64 8, !13, i64 24, !13, i64 32, !12, i64 40}
!16 = !{!7, !7, i64 0}
!17 = !{!15, !12, i64 0}
!18 = !{!19, !6, i64 8}
!19 = !{!"", !12, i64 0, !6, i64 8}
!20 = !{!19, !12, i64 0}
!21 = !{!22, !6, i64 8}
!22 = !{!"tag_____IAllocator__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!22, !6, i64 0}
!24 = !{!25, !6, i64 0}
!25 = !{!"tag_____TypeModifierExpression__", !6, i64 0, !19, i64 8}
!26 = !{i64 0, i64 4, !27, i64 8, i64 8, !5}
!27 = !{!12, !12, i64 0}
!28 = !{i64 0, i64 8, !5, i64 8, i64 4, !27, i64 16, i64 8, !5}
!29 = !{!30, !6, i64 0}
!30 = !{!"tag_____UnaryOperatorExpression__", !6, i64 0, !19, 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__parseTypeModifiers__(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 = icmp eq i32 %5, 2147483647
  br i1 %6, label %7, label %.critedge77

7:                                                ; preds = %1
  %8 = load i32, ptr %3, align 8, !tbaa !15
  switch i32 %8, label %.critedge73.thread [
    i32 0, label %9
    i32 4, label %10
  ]

9:                                                ; preds = %7
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  br label %65

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

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

.critedge74:                                      ; preds = %10, %.critedge72
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  %28 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = load ptr, ptr %28, align 8, !tbaa !18
  %32 = tail call ptr %30(ptr noundef %31, i64 noundef 24) #3
  %33 = tail call { i32, ptr } @Parser__parseTypeModifiers__(ptr noundef nonnull %0)
  %34 = extractvalue { i32, ptr } %33, 0
  %35 = extractvalue { i32, ptr } %33, 1
  store ptr %27, ptr %32, align 8, !tbaa !19
  %.sroa.515.0..sroa_idx = getelementptr inbounds i8, ptr %32, i64 8
  store i32 %34, ptr %.sroa.515.0..sroa_idx, align 8, !tbaa !20
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %32, i64 16
  store ptr %35, ptr %.sroa.7.0..sroa_idx, align 8, !tbaa !19
  br label %65

.critedge73:                                      ; preds = %.critedge72
  %.pre = load ptr, ptr %2, align 8, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 40
  %.pre84 = load i32, ptr %.phi.trans.insert, align 8, !tbaa !13
  %36 = icmp eq i32 %.pre84, 2147483647
  br i1 %36, label %thread-pre-split, label %.critedge77

thread-pre-split:                                 ; preds = %.critedge73
  %.pr = load i32, ptr %.pre, align 8, !tbaa !15
  br label %.critedge73.thread

.critedge73.thread:                               ; preds = %7, %thread-pre-split
  %37 = phi i32 [ %.pr, %thread-pre-split ], [ %8, %7 ]
  %38 = phi ptr [ %.pre, %thread-pre-split ], [ %3, %7 ]
  %.not82 = icmp eq i32 %37, 4
  br i1 %.not82, label %.critedge76, label %.critedge77

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

47:                                               ; preds = %.critedge76
  %48 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !16
  %51 = load ptr, ptr %48, align 8, !tbaa !18
  %52 = tail call ptr %50(ptr noundef %51, i64 noundef 24) #3
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %53, ptr %52, align 8, !tbaa !19
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %52, 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)
  %54 = load ptr, ptr %2, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 40
  %56 = load i32, ptr %55, align 8, !tbaa !13
  %57 = icmp eq i32 %56, 2147483647
  br i1 %57, label %58, label %.critedge79

58:                                               ; preds = %47
  %59 = load i32, ptr %54, align 8, !tbaa !15
  %.not83 = icmp eq i32 %59, 0
  br i1 %.not83, label %60, label %.critedge79

60:                                               ; preds = %58
  store i32 21, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !20
  %.sroa.41.0..sroa_idx = getelementptr inbounds i8, ptr %52, i64 16
  store ptr %54, ptr %.sroa.41.0..sroa_idx, align 8, !tbaa !19
  tail call void @Parser__readToken__(ptr noundef nonnull %0)
  br label %65

.critedge79:                                      ; preds = %47, %58
  %61 = load ptr, ptr @mu_____string298, align 8
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string298, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef nonnull %0, ptr %61, i32 %62)
  br label %65

.critedge77:                                      ; preds = %1, %.critedge73.thread, %.critedge73, %.critedge76
  %63 = load ptr, ptr @mu_____string298, align 8
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string298, i64 8), align 8
  tail call void @Parser__expected__(ptr noundef nonnull %0, ptr %63, i32 %64)
  br label %65

65:                                               ; preds = %60, %.critedge79, %.critedge74, %.critedge77, %9
  %.sroa.050.2 = phi i32 [ 21, %9 ], [ 3, %.critedge74 ], [ 0, %.critedge77 ], [ 9, %.critedge79 ], [ 9, %60 ]
  %.sroa.551.2 = phi ptr [ %3, %9 ], [ %32, %.critedge74 ], [ null, %.critedge77 ], [ %52, %.critedge79 ], [ %52, %60 ]
  %.fca.0.insert = insertvalue { i32, ptr } poison, i32 %.sroa.050.2, 0
  %.fca.1.insert = insertvalue { i32, ptr } %.fca.0.insert, ptr %.sroa.551.2, 1
  ret { i32, ptr } %.fca.1.insert
}

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

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

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


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