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

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

@top_____currentAllocator__ = external dso_local thread_local global %struct.tag_____IAllocator__, align 8
@top_____abandonFn__ = external dso_local thread_local global ptr, align 8

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @IntRange__cons__(i32 noundef, i32 noundef) #4

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

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

38:                                               ; preds = %5
  %39 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  call void %40(i32 noundef -3)
  br label %41

41:                                               ; preds = %38, %5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.string__, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = load i32, ptr %13, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds i8, ptr %44, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !17
  store i8 %48, ptr %14, align 1, !tbaa !17
  br label %49

49:                                               ; preds = %108, %41
  br label %50

50:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %51 = load i8, ptr %14, align 1, !tbaa !17
  %52 = sext i8 %51 to i32
  %53 = icmp eq i32 %52, 32
  %54 = zext i1 %53 to i32
  %55 = trunc i32 %54 to i8
  store i8 %55, ptr %15, align 1, !tbaa !17
  %56 = load i8, ptr %15, align 1, !tbaa !17
  %57 = icmp ne i8 %56, 0
  br i1 %57, label %64, label %58

58:                                               ; preds = %50
  %59 = load i8, ptr %14, align 1, !tbaa !17
  %60 = sext i8 %59 to i32
  %61 = icmp eq i32 %60, 9
  %62 = zext i1 %61 to i32
  %63 = trunc i32 %62 to i8
  store i8 %63, ptr %15, align 1, !tbaa !17
  br label %64

64:                                               ; preds = %58, %50
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %65 = load i8, ptr %15, align 1, !tbaa !17
  store i8 %65, ptr %16, align 1, !tbaa !17
  %66 = load i8, ptr %16, align 1, !tbaa !17
  %67 = icmp ne i8 %66, 0
  br i1 %67, label %74, label %68

68:                                               ; preds = %64
  %69 = load i8, ptr %14, align 1, !tbaa !17
  %70 = sext i8 %69 to i32
  %71 = icmp eq i32 %70, 13
  %72 = zext i1 %71 to i32
  %73 = trunc i32 %72 to i8
  store i8 %73, ptr %16, align 1, !tbaa !17
  br label %74

74:                                               ; preds = %68, %64
  %75 = load i8, ptr %16, align 1, !tbaa !17
  %76 = icmp ne i8 %75, 0
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  store i32 3, ptr %17, align 4
  br label %106

78:                                               ; preds = %74
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.tag_____ParserState__, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !11
  %82 = add nsw i32 %81, 1
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.tag_____ParserState__, ptr %83, i32 0, i32 1
  store i32 %82, ptr %84, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.tag_____ParserState__, ptr %85, i32 0, i32 0
  store ptr %86, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.tag_____ParserState__, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !11
  store i32 %89, ptr %19, align 4, !tbaa !9
  %90 = load i32, ptr %19, align 4, !tbaa !9
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.string__, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 8, !tbaa !15
  %94 = icmp ult i32 %90, %93
  br i1 %94, label %98, label %95

95:                                               ; preds = %78
  %96 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  call void %97(i32 noundef -3)
  br label %98

98:                                               ; preds = %95, %78
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.string__, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !16
  %102 = load i32, ptr %19, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds i8, ptr %101, i64 %103
  %105 = load i8, ptr %104, align 1, !tbaa !17
  store i8 %105, ptr %14, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  store i32 0, ptr %17, align 4
  br label %106

106:                                              ; preds = %98, %77
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  %107 = load i32, ptr %17, align 4
  switch i32 %107, label %173 [
    i32 0, label %108
    i32 3, label %109
  ]

108:                                              ; preds = %106
  br label %49

109:                                              ; preds = %106
  %110 = load i8, ptr %14, align 1, !tbaa !17
  %111 = sext i8 %110 to i32
  %112 = icmp eq i32 %111, 10
  br i1 %112, label %113, label %125

113:                                              ; preds = %109
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.tag_____ParserState__, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 8, !tbaa !11
  %117 = add nsw i32 %116, 1
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.tag_____ParserState__, ptr %118, i32 0, i32 1
  store i32 %117, ptr %119, align 8, !tbaa !11
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.tag_____ParserState__, ptr %120, i32 0, i32 1
  %122 = load i32, ptr %121, align 8, !tbaa !11
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.tag_____ParserState__, ptr %123, i32 0, i32 4
  store i32 %122, ptr %124, align 8, !tbaa !18
  br label %125

125:                                              ; preds = %113, %109
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.tag_____ParserState__, ptr %126, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  %129 = getelementptr inbounds %struct.tag_____Token__, ptr %128, i32 0, i32 2
  %130 = getelementptr inbounds %struct.tag_____IntRange__, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 4, !tbaa !20
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.tag_____ParserState__, ptr %132, i32 0, i32 12
  store i32 %131, ptr %133, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %134 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %135 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !23
  %137 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %138 = getelementptr inbounds %struct.tag_____IAllocator__, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !25
  %140 = call ptr %136(ptr noundef %139, i64 noundef 48)
  store ptr %140, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #5
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 48, i1 false)
  %141 = load i32, ptr %10, align 4, !tbaa !9
  %142 = getelementptr inbounds %struct.tag_____Token__, ptr %21, i32 0, i32 0
  store i32 %141, ptr %142, align 8, !tbaa !26
  %143 = getelementptr inbounds %struct.tag_____Token__, ptr %21, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.tag_____ParserState__, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %8, align 4, !tbaa !9
  %147 = load i32, ptr %11, align 4, !tbaa !9
  %148 = getelementptr inbounds { ptr, i32 }, ptr %145, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, i32 }, ptr %145, i32 0, i32 1
  %151 = load i32, ptr %150, align 8
  %152 = call { ptr, i32 } @string__slice__(ptr %149, i32 %151, i32 noundef %146, i32 noundef %147)
  %153 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %154 = extractvalue { ptr, i32 } %152, 0
  store ptr %154, ptr %153, align 8
  %155 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %156 = extractvalue { ptr, i32 } %152, 1
  store i32 %156, ptr %155, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %143, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = getelementptr inbounds %struct.tag_____Token__, ptr %21, i32 0, i32 4
  store i32 %157, ptr %158, align 8, !tbaa !28
  %159 = getelementptr inbounds %struct.tag_____Token__, ptr %21, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %160 = load i32, ptr %8, align 4, !tbaa !9
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = call i64 @IntRange__cons__(i32 noundef %160, i32 noundef %161)
  store i64 %162, ptr %23, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %159, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  %163 = getelementptr inbounds %struct.tag_____Token__, ptr %21, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %164 = load i32, ptr %7, align 4, !tbaa !9
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.tag_____ParserState__, ptr %165, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !11
  %168 = call i64 @IntRange__cons__(i32 noundef %164, i32 noundef %167)
  store i64 %168, ptr %24, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %163, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  %169 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %169, ptr align 8 %21, i64 48, i1 false), !tbaa.struct !30
  %170 = load ptr, ptr %20, align 8, !tbaa !5
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.tag_____ParserState__, ptr %171, i32 0, i32 3
  store ptr %170, ptr %172, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #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 4, ptr %11) #5
  ret void

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


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

@top_____currentAllocator__ = external dso_local thread_local local_unnamed_addr global %struct.tag_____IAllocator__, align 8
@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @IntRange__cons__(i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @Parser__finishToken__(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !13
  %10 = icmp ult i32 %7, %9
  %.pre59 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  br i1 %10, label %.sink.split, label %.sink.split.sink.split

.sink.split.sink.split:                           ; preds = %15, %5
  %.sink61.ph.ph = phi i32 [ %7, %5 ], [ %17, %15 ]
  %11 = load ptr, ptr %.pre59, align 8, !tbaa !14
  tail call void %11(i32 noundef -3) #2
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %5
  %.sink61.ph = phi i32 [ %7, %5 ], [ %.sink61.ph.ph, %.sink.split.sink.split ]
  %.pre = load ptr, ptr %0, align 8, !tbaa !15
  br label %12

12:                                               ; preds = %.sink.split, %15
  %.sink61 = phi i32 [ %17, %15 ], [ %.sink61.ph, %.sink.split ]
  %13 = zext i32 %.sink61 to i64
  %14 = getelementptr inbounds i8, ptr %.pre, i64 %13
  %.0 = load i8, ptr %14, align 1, !tbaa !16
  switch i8 %.0, label %.loopexit [
    i8 32, label %15
    i8 13, label %15
    i8 9, label %15
    i8 10, label %20
  ]

15:                                               ; preds = %12, %12, %12
  %16 = load i32, ptr %6, align 8, !tbaa !5
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr %6, align 8, !tbaa !5
  %18 = load i32, ptr %8, align 8, !tbaa !13
  %19 = icmp ult i32 %17, %18
  br i1 %19, label %12, label %.sink.split.sink.split

20:                                               ; preds = %12
  %21 = load i32, ptr %6, align 8, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %22, ptr %23, align 8, !tbaa !17
  br label %.loopexit

.loopexit:                                        ; preds = %12, %20
  %24 = getelementptr inbounds i8, ptr %0, i64 32
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %25, i64 28
  %27 = load i32, ptr %26, align 4, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 %27, ptr %28, align 4, !tbaa !21
  %29 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____currentAllocator__)
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  %32 = load ptr, ptr %29, align 8, !tbaa !24
  %33 = tail call ptr %31(ptr noundef %32, i64 noundef 48) #2
  %34 = load ptr, ptr %0, align 8
  %35 = load i32, ptr %8, align 8
  %36 = tail call { ptr, i32 } @string__slice__(ptr %34, i32 %35, i32 noundef %2, i32 noundef %7)
  %37 = extractvalue { ptr, i32 } %36, 0
  %38 = extractvalue { ptr, i32 } %36, 1
  %39 = tail call i64 @IntRange__cons__(i32 noundef %2, i32 noundef %7)
  %40 = load i32, ptr %6, align 8, !tbaa !5
  %41 = tail call i64 @IntRange__cons__(i32 noundef %1, i32 noundef %40)
  store i32 %4, ptr %33, align 8, !tbaa !25
  %.sroa.54.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 4
  store i32 0, ptr %.sroa.54.0..sroa_idx, align 4
  %.sroa.55.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 8
  store ptr %37, ptr %.sroa.55.0..sroa_idx, align 8, !tbaa !14
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 16
  store i32 %38, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !25
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 24
  store i64 %39, ptr %.sroa.8.0..sroa_idx, align 8
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 32
  store i64 %41, ptr %.sroa.9.0..sroa_idx, align 8
  %.sroa.10.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 40
  store i32 %3, ptr %.sroa.10.0..sroa_idx, align 8, !tbaa !25
  %.sroa.11.0..sroa_idx = getelementptr inbounds i8, ptr %33, i64 44
  store i32 0, ptr %.sroa.11.0..sroa_idx, align 4
  store ptr %33, ptr %24, align 8, !tbaa !18
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { 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, !11, i64 16}
!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 = !{!7, !11, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!7, !8, i64 0}
!16 = !{!9, !9, i64 0}
!17 = !{!6, !11, i64 40}
!18 = !{!6, !8, i64 32}
!19 = !{!20, !11, i64 28}
!20 = !{!"tag_____Token__", !11, i64 0, !7, i64 8, !12, i64 24, !12, i64 32, !11, i64 40}
!21 = !{!6, !11, i64 84}
!22 = !{!23, !8, i64 8}
!23 = !{!"tag_____IAllocator__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24}
!24 = !{!23, !8, i64 0}
!25 = !{!11, !11, i64 0}


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