; LLVM IR from nickmqb/muon :: bootstrap/mu.ll_TypeChecker (checkFormat__)

; 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_____Error__ = type { ptr, %struct.tag_____IntRange__, %struct.string__ }
%struct.tag_____IntRange__ = type { i32, i32 }
%struct.tag_____Tag__ = type { ptr, ptr }
%struct.Node__ = type { i32, ptr }
%struct.tag_____CallExpression__ = type { %struct.Node__, ptr, ptr, ptr, ptr, ptr }
%struct.tag_____List__Node____ = type { ptr, i32, i32 }
%struct.tag_____TypeCheckerContext__ = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i8 }
%struct.tag_____Token__ = type { i32, %struct.string__, %struct.tag_____IntRange__, %struct.tag_____IntRange__, i32 }
%struct.tag_____CommonTags__ = type { %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, %struct.tag_____Tag__, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@mu_____string111 = external dso_local global %struct.string__, align 8
@mu_____string223 = external dso_local global %struct.string__, 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local void @List__add__Error____(ptr noundef, ptr noundef byval(%struct.tag_____Error__) align 8) #3

; Function Attrs: nounwind uwtable
declare dso_local void @Error__at__(ptr dead_on_unwind noalias writable sret(%struct.tag_____Error__) align 8, ptr noundef, i64, ptr, i32) #3

; Function Attrs: nounwind uwtable
declare dso_local i64 @RangeFinder__find__(i32, ptr) #3

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @TypeChecker__checkFormat__(ptr noundef %0, ptr noundef %1, ptr %2, ptr %3) #3 {
  %5 = alloca %struct.tag_____Tag__, align 8
  %6 = alloca %struct.tag_____Tag__, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.tag_____Error__, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.Node__, align 8
  %15 = alloca %struct.tag_____Tag__, align 8
  %16 = alloca i8, align 1
  %17 = alloca %struct.tag_____Error__, align 8
  %18 = alloca %struct.tag_____IntRange__, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.Node__, align 8
  %23 = alloca %struct.tag_____Tag__, align 8
  %24 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  store ptr %2, ptr %24, align 8
  %25 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  store ptr %3, ptr %25, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  %26 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %116

29:                                               ; preds = %4
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %30, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds %struct.tag_____List__Node____, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !16
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %54

36:                                               ; preds = %29
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %40, i32 0, i32 5
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  %46 = getelementptr inbounds %struct.tag_____Token__, ptr %45, i32 0, i32 2
  %47 = load i64, ptr %46, align 8
  %48 = load ptr, ptr @mu_____string223, align 8
  %49 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string223, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %10, ptr noundef %42, i64 %47, ptr %48, i32 %49)
  call void @List__add__Error____(ptr noundef %39, ptr noundef byval(%struct.tag_____Error__) align 8 %10)
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  %53 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %52, i32 0, i32 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %53, i64 16, i1 false), !tbaa.struct !23
  store i32 1, ptr %11, align 4
  br label %163

54:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %55, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !13
  store ptr %57, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.tag_____List__Node____, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !16
  %62 = icmp ult i32 %58, %61
  br i1 %62, label %66, label %63

63:                                               ; preds = %54
  %64 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  call void %65(i32 noundef -3)
  br label %66

66:                                               ; preds = %63, %54
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.tag_____List__Node____, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds %struct.Node__, ptr %69, i64 %71
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %72, i64 16, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds { i32, ptr }, ptr %14, i32 0, i32 0
  %75 = load i32, ptr %74, align 8
  %76 = getelementptr inbounds { i32, ptr }, ptr %14, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8
  %78 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %73, i32 %75, ptr %77)
  %79 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 0
  %80 = extractvalue { ptr, ptr } %78, 0
  store ptr %80, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 1
  %82 = extractvalue { ptr, ptr } %78, 1
  store ptr %82, ptr %81, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %83 = getelementptr inbounds %struct.tag_____Tag__, ptr %15, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !11
  %85 = icmp eq ptr %84, null
  %86 = zext i1 %85 to i32
  %87 = trunc i32 %86 to i8
  store i8 %87, ptr %16, align 1, !tbaa !26
  %88 = load i8, ptr %16, align 1, !tbaa !26
  %89 = icmp ne i8 %88, 0
  br i1 %89, label %97, label %90

90:                                               ; preds = %66
  %91 = getelementptr inbounds %struct.Node__, ptr %14, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !27
  %93 = icmp eq i32 %92, 20
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i32
  %96 = trunc i32 %95 to i8
  store i8 %96, ptr %16, align 1, !tbaa !26
  br label %97

97:                                               ; preds = %90, %66
  %98 = load i8, ptr %16, align 1, !tbaa !26
  %99 = icmp ne i8 %98, 0
  br i1 %99, label %100, label %115

100:                                              ; preds = %97
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %101, i32 0, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !18
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %104, i32 0, i32 5
  %106 = load ptr, ptr %105, align 8, !tbaa !20
  %107 = getelementptr inbounds { i32, ptr }, ptr %14, i32 0, i32 0
  %108 = load i32, ptr %107, align 8
  %109 = getelementptr inbounds { i32, ptr }, ptr %14, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8
  %111 = call i64 @RangeFinder__find__(i32 %108, ptr %110)
  store i64 %111, ptr %18, align 4
  %112 = load i64, ptr %18, align 4
  %113 = load ptr, ptr @mu_____string111, align 8
  %114 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string111, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %17, ptr noundef %106, i64 %112, ptr %113, i32 %114)
  call void @List__add__Error____(ptr noundef %103, ptr noundef byval(%struct.tag_____Error__) align 8 %17)
  br label %115

115:                                              ; preds = %100, %97
  store i32 1, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %116

116:                                              ; preds = %115, %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %117 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %117, ptr %19, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %139, %116
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %120, i32 0, i32 2
  %122 = load ptr, ptr %121, align 8, !tbaa !13
  %123 = getelementptr inbounds %struct.tag_____List__Node____, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 8, !tbaa !16
  %125 = icmp slt i32 %119, %124
  br i1 %125, label %126, label %158

126:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %127, i32 0, i32 2
  %129 = load ptr, ptr %128, align 8, !tbaa !13
  store ptr %129, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %130 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %130, ptr %21, align 4, !tbaa !9
  %131 = load i32, ptr %21, align 4, !tbaa !9
  %132 = load ptr, ptr %20, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.tag_____List__Node____, ptr %132, i32 0, i32 1
  %134 = load i32, ptr %133, align 8, !tbaa !16
  %135 = icmp ult i32 %131, %134
  br i1 %135, label %139, label %136

136:                                              ; preds = %126
  %137 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  call void %138(i32 noundef -3)
  br label %139

139:                                              ; preds = %136, %126
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %140 = load ptr, ptr %20, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.tag_____List__Node____, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = load i32, ptr %21, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds %struct.Node__, ptr %142, i64 %144
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %145, i64 16, i1 false), !tbaa.struct !25
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds { i32, ptr }, ptr %22, i32 0, i32 0
  %148 = load i32, ptr %147, align 8
  %149 = getelementptr inbounds { i32, ptr }, ptr %22, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8
  %151 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %146, i32 %148, ptr %150)
  %152 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 0
  %153 = extractvalue { ptr, ptr } %151, 0
  store ptr %153, ptr %152, align 8
  %154 = getelementptr inbounds { ptr, ptr }, ptr %23, i32 0, i32 1
  %155 = extractvalue { ptr, ptr } %151, 1
  store ptr %155, ptr %154, align 8
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %118, !llvm.loop !28

158:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !22
  %162 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %161, i32 0, i32 16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %162, i64 16, i1 false), !tbaa.struct !23
  store i32 1, ptr %11, align 4
  br label %163

163:                                              ; preds = %158, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %164 = load { ptr, ptr }, ptr %5, align 8
  ret { ptr, ptr } %164
}

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: readwrite) }
attributes #3 = { 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 #4 = { 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, !6, i64 0}
!12 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!13 = !{!14, !6, i64 24}
!14 = !{!"tag_____CallExpression__", !15, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!"", !10, i64 0, !6, i64 8}
!16 = !{!17, !10, i64 8}
!17 = !{!"tag_____List__Node____", !6, i64 0, !10, i64 8, !10, i64 12}
!18 = !{!19, !6, i64 16}
!19 = !{!"tag_____TypeCheckerContext__", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !10, i64 124, !6, i64 128, !10, i64 136, !7, i64 140}
!20 = !{!19, !6, i64 40}
!21 = !{!14, !6, i64 16}
!22 = !{!19, !6, i64 32}
!23 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!24 = !{!17, !6, i64 0}
!25 = !{i64 0, i64 4, !9, i64 8, i64 8, !5}
!26 = !{!7, !7, i64 0}
!27 = !{!15, !10, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


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

@mu_____string111 = external dso_local local_unnamed_addr global %struct.string__, align 8
@mu_____string223 = external dso_local local_unnamed_addr global %struct.string__, 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 void @List__add__Error____(ptr noundef, ptr noundef byval(%struct.tag_____Error__) align 8) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @Error__at__(ptr dead_on_unwind noalias writable sret(%struct.tag_____Error__) align 8, ptr noundef, i64, ptr, i32) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @TypeChecker__checkFormat__(ptr noundef %0, ptr nocapture noundef readonly %1, ptr readnone %2, ptr nocapture readnone %3) local_unnamed_addr #1 {
  %5 = alloca %struct.tag_____Error__, align 8
  %6 = alloca %struct.tag_____Error__, align 8
  %7 = icmp eq ptr %2, null
  br i1 %7, label %8, label %38

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %1, i64 24
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = load i32, ptr %11, align 8, !tbaa !12
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %25

14:                                               ; preds = %8
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = getelementptr inbounds i8, ptr %20, i64 24
  %22 = load i64, ptr %21, align 8
  %23 = load ptr, ptr @mu_____string223, align 8
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string223, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %5, ptr noundef %18, i64 %22, ptr %23, i32 %24)
  call void @List__add__Error____(ptr noundef %16, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %5)
  br label %.loopexit

25:                                               ; preds = %8
  %26 = load ptr, ptr %10, align 8, !tbaa !18
  %.sroa.013.0.copyload = load i32, ptr %26, align 8, !tbaa !19
  %.sroa.616.0..sroa_idx = getelementptr inbounds i8, ptr %26, i64 8
  %.sroa.616.0.copyload = load ptr, ptr %.sroa.616.0..sroa_idx, align 8, !tbaa !20
  %27 = tail call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %0, i32 %.sroa.013.0.copyload, ptr %.sroa.616.0.copyload)
  %28 = extractvalue { ptr, ptr } %27, 0
  %29 = icmp ne ptr %28, null
  %.not = icmp eq i32 %.sroa.013.0.copyload, 20
  %spec.select = select i1 %29, i1 %.not, i1 false
  br i1 %spec.select, label %38, label %30

30:                                               ; preds = %25
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds i8, ptr %0, i64 40
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = tail call i64 @RangeFinder__find__(i32 %.sroa.013.0.copyload, ptr %.sroa.616.0.copyload)
  %36 = load ptr, ptr @mu_____string111, align 8
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @mu_____string111, i64 8), align 8
  call void @Error__at__(ptr dead_on_unwind nonnull writable sret(%struct.tag_____Error__) align 8 %6, ptr noundef %34, i64 %35, ptr %36, i32 %37)
  call void @List__add__Error____(ptr noundef %32, ptr noundef nonnull byval(%struct.tag_____Error__) align 8 %6)
  br label %38

38:                                               ; preds = %25, %30, %4
  %.0 = phi i32 [ 0, %4 ], [ 1, %30 ], [ 1, %25 ]
  %39 = getelementptr inbounds i8, ptr %1, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 8
  %42 = load i32, ptr %41, align 8, !tbaa !12
  %43 = icmp slt i32 %.0, %42
  br i1 %43, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %38
  %44 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %45 = zext nneg i32 %.0 to i64
  br label %46

46:                                               ; preds = %.lr.ph, %53
  %indvars.iv = phi i64 [ %45, %.lr.ph ], [ %indvars.iv.next, %53 ]
  %47 = phi i32 [ %42, %.lr.ph ], [ %59, %53 ]
  %48 = phi ptr [ %40, %.lr.ph ], [ %57, %53 ]
  %49 = zext i32 %47 to i64
  %50 = icmp ult i64 %indvars.iv, %49
  br i1 %50, label %53, label %51

51:                                               ; preds = %46
  %52 = load ptr, ptr %44, align 8, !tbaa !20
  call void %52(i32 noundef -3) #2
  br label %53

53:                                               ; preds = %51, %46
  %54 = load ptr, ptr %48, align 8, !tbaa !18
  %55 = getelementptr inbounds %struct.Node__, ptr %54, i64 %indvars.iv
  %.sroa.01.0.copyload = load i32, ptr %55, align 8, !tbaa !19
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %55, i64 8
  %.sroa.42.0.copyload = load ptr, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !20
  %56 = call { ptr, ptr } @TypeChecker__checkExpression__(ptr noundef %0, i32 %.sroa.01.0.copyload, ptr %.sroa.42.0.copyload)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load ptr, ptr %39, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load i32, ptr %58, align 8, !tbaa !12
  %60 = trunc nuw i64 %indvars.iv.next to i32
  %61 = icmp sgt i32 %59, %60
  br i1 %61, label %46, label %.loopexit, !llvm.loop !21

.loopexit:                                        ; preds = %53, %38, %14
  %.pn.in = getelementptr inbounds i8, ptr %0, i64 32
  %.pn = load ptr, ptr %.pn.in, align 8, !tbaa !23
  %.sroa.3.0.in = getelementptr inbounds i8, ptr %.pn, i64 264
  %.sroa.3.0 = load ptr, ptr %.sroa.3.0.in, align 8, !tbaa !20
  %.sroa.037.0.in = getelementptr inbounds i8, ptr %.pn, i64 256
  %.sroa.037.0 = load ptr, ptr %.sroa.037.0.in, align 8, !tbaa !20
  %.fca.0.insert = insertvalue { ptr, ptr } poison, ptr %.sroa.037.0, 0
  %.fca.1.insert = insertvalue { ptr, ptr } %.fca.0.insert, ptr %.sroa.3.0, 1
  ret { ptr, ptr } %.fca.1.insert
}

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 24}
!6 = !{!"tag_____CallExpression__", !7, i64 0, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!7 = !{!"", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !8, i64 8}
!13 = !{!"tag_____List__Node____", !11, i64 0, !8, i64 8, !8, i64 12}
!14 = !{!15, !11, i64 16}
!15 = !{!"tag_____TypeCheckerContext__", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !8, i64 120, !8, i64 124, !11, i64 128, !8, i64 136, !9, i64 140}
!16 = !{!15, !11, i64 40}
!17 = !{!6, !11, i64 16}
!18 = !{!13, !11, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!11, !11, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!15, !11, i64 32}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass