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

; 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_____Tag__ = type { ptr, ptr }
%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_____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 }
%struct.tag_____Namespace__ = type { %struct.string__, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.string__ = type { ptr, i32 }
%struct.tag_____Array__Tag____ = type { ptr, i32 }
%struct.tag_____CallExpression__ = type { %struct.Node__, ptr, ptr, ptr, ptr, ptr }
%struct.Node__ = type { i32, ptr }
%struct.tag_____List__Node____ = type { ptr, i32, i32 }

@top_____abandonFn__ = external dso_local thread_local global ptr, align 8
@Tag__null___ = external hidden global %struct.tag_____Tag__, 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 zeroext i8 @TypeChecker__checkRemainingArgs__(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) #3

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Set__contains__Tag____(ptr noundef, ptr, ptr) #3

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @TypeChecker__checkIs__(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 %struct.tag_____Tag__, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  store ptr %2, ptr %17, align 8
  %18 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  store ptr %3, ptr %18, 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 16, ptr %9) #4
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = call { ptr, ptr } @TypeChecker__getTypeArg__(ptr noundef %19, ptr noundef %20, i32 noundef 0)
  %22 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %23 = extractvalue { ptr, ptr } %21, 0
  store ptr %23, ptr %22, align 8
  %24 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %25 = extractvalue { ptr, ptr } %21, 1
  store ptr %25, ptr %24, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = call zeroext i8 @TypeChecker__checkRemainingArgs__(ptr noundef %26, ptr noundef %27, i32 noundef 1, i8 noundef zeroext 1)
  %29 = icmp ne i8 %28, 0
  %30 = xor i1 %29, true
  %31 = zext i1 %30 to i32
  %32 = trunc i32 %31 to i8
  store i8 %32, ptr %10, align 1, !tbaa !9
  %33 = load i8, ptr %10, align 1, !tbaa !9
  %34 = icmp ne i8 %33, 0
  br i1 %34, label %41, label %35

35:                                               ; preds = %4
  %36 = getelementptr inbounds %struct.tag_____Tag__, ptr %9, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !10
  %38 = icmp eq ptr %37, null
  %39 = zext i1 %38 to i32
  %40 = trunc i32 %39 to i8
  store i8 %40, ptr %10, align 1, !tbaa !9
  br label %41

41:                                               ; preds = %35, %4
  %42 = load i8, ptr %10, align 1, !tbaa !9
  %43 = icmp ne i8 %42, 0
  br i1 %43, label %44, label %49

44:                                               ; preds = %41
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !12
  %48 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %47, i32 0, i32 14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %48, i64 16, i1 false), !tbaa.struct !15
  store i32 1, ptr %11, align 4
  br label %133

49:                                               ; preds = %41
  %50 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !10
  %52 = getelementptr inbounds %struct.tag_____Namespace__, ptr %51, i32 0, i32 3
  %53 = load i32, ptr %52, align 4, !tbaa !16
  %54 = and i32 %53, 65536
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %74

56:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %57 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  store ptr %58, 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 !20
  %59 = load i32, ptr %13, align 4, !tbaa !20
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 8, !tbaa !21
  %63 = icmp ult i32 %59, %62
  br i1 %63, label %67, label %64

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

67:                                               ; preds = %64, %56
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = load i32, ptr %13, align 4, !tbaa !20
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds %struct.tag_____Tag__, ptr %70, i64 %72
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %73, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %74

74:                                               ; preds = %67, %49
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %75 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !10
  %77 = load ptr, ptr @Tag__null___, align 8, !tbaa !10
  %78 = icmp eq ptr %76, %77
  %79 = zext i1 %78 to i32
  %80 = trunc i32 %79 to i8
  store i8 %80, ptr %14, align 1, !tbaa !9
  %81 = load i8, ptr %14, align 1, !tbaa !9
  %82 = icmp ne i8 %81, 0
  br i1 %82, label %97, label %83

83:                                               ; preds = %74
  %84 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !10
  %86 = getelementptr inbounds %struct.tag_____Namespace__, ptr %85, i32 0, i32 8
  %87 = load ptr, ptr %86, align 8, !tbaa !24
  %88 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8
  %92 = call zeroext i8 @Set__contains__Tag____(ptr noundef %87, ptr %89, ptr %91)
  %93 = icmp ne i8 %92, 0
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i32
  %96 = trunc i32 %95 to i8
  store i8 %96, ptr %14, align 1, !tbaa !9
  br label %97

97:                                               ; preds = %83, %74
  %98 = load i8, ptr %14, align 1, !tbaa !9
  %99 = icmp ne i8 %98, 0
  br i1 %99, label %100, label %128

100:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.tag_____CallExpression__, ptr %101, i32 0, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !25
  store ptr %103, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !20
  %104 = load i32, ptr %16, align 4, !tbaa !20
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.tag_____List__Node____, ptr %105, i32 0, i32 1
  %107 = load i32, ptr %106, align 8, !tbaa !28
  %108 = icmp ult i32 %104, %107
  br i1 %108, label %112, label %109

109:                                              ; preds = %100
  %110 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  call void %111(i32 noundef -3)
  br label %112

112:                                              ; preds = %109, %100
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.tag_____List__Node____, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !30
  %117 = load i32, ptr %16, align 4, !tbaa !20
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds %struct.Node__, ptr %116, i64 %118
  %120 = getelementptr inbounds { i32, ptr }, ptr %119, i32 0, i32 0
  %121 = load i32, ptr %120, align 8
  %122 = getelementptr inbounds { i32, ptr }, ptr %119, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8
  %124 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8
  %126 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8
  call void @TypeChecker__badConversion__(ptr noundef %113, i32 %121, ptr %123, ptr %125, ptr %127, ptr noundef byval(%struct.tag_____Tag__) align 8 %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %128

128:                                              ; preds = %112, %97
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !12
  %132 = getelementptr inbounds %struct.tag_____CommonTags__, ptr %131, i32 0, i32 14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %132, i64 16, i1 false), !tbaa.struct !15
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  br label %133

133:                                              ; preds = %128, %44
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  %134 = load { ptr, ptr }, ptr %5, align 8
  ret { ptr, ptr } %134
}

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

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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 0}
!11 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!12 = !{!13, !6, i64 32}
!13 = !{!"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, !14, i64 120, !14, i64 124, !6, i64 128, !14, i64 136, !7, i64 140}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!16 = !{!17, !14, i64 28}
!17 = !{!"tag_____Namespace__", !18, i64 0, !6, i64 16, !14, i64 24, !14, i64 28, !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, !14, i64 104}
!18 = !{!"", !6, i64 0, !14, i64 8}
!19 = !{!11, !6, i64 8}
!20 = !{!14, !14, i64 0}
!21 = !{!22, !14, i64 8}
!22 = !{!"tag_____Array__Tag____", !6, i64 0, !14, i64 8}
!23 = !{!22, !6, i64 0}
!24 = !{!17, !6, i64 64}
!25 = !{!26, !6, i64 24}
!26 = !{!"tag_____CallExpression__", !27, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!27 = !{!"", !14, i64 0, !6, i64 8}
!28 = !{!29, !14, i64 8}
!29 = !{!"tag_____List__Node____", !6, i64 0, !14, i64 8, !14, i64 12}
!30 = !{!29, !6, i64 0}


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

@top_____abandonFn__ = external dso_local thread_local local_unnamed_addr global ptr, align 8
@Tag__null___ = external hidden local_unnamed_addr global %struct.tag_____Tag__, align 8

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @TypeChecker__checkRemainingArgs__(ptr noundef, ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @TypeChecker__badConversion__(ptr noundef, i32, ptr, ptr, ptr, ptr noundef byval(%struct.tag_____Tag__) align 8) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @Set__contains__Tag____(ptr noundef, ptr, ptr) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local { ptr, ptr } @TypeChecker__checkIs__(ptr noundef %0, ptr noundef %1, ptr %2, ptr %3) local_unnamed_addr #2 {
  %5 = alloca %struct.tag_____Tag__, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  %6 = tail call { ptr, ptr } @TypeChecker__getTypeArg__(ptr noundef %0, ptr noundef %1, i32 noundef 0)
  %7 = extractvalue { ptr, ptr } %6, 0
  store ptr %7, ptr %5, align 8
  %8 = getelementptr inbounds i8, ptr %5, i64 8
  %9 = extractvalue { ptr, ptr } %6, 1
  store ptr %9, ptr %8, align 8
  %10 = tail call zeroext i8 @TypeChecker__checkRemainingArgs__(ptr noundef %0, ptr noundef %1, i32 noundef 1, i8 noundef zeroext 1)
  %.not = icmp ne i8 %10, 0
  %11 = icmp ne ptr %7, null
  %.027 = select i1 %.not, i1 %11, i1 false
  br i1 %.027, label %12, label %43

12:                                               ; preds = %4
  %13 = getelementptr inbounds i8, ptr %2, i64 28
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = and i32 %14, 65536
  %.not31 = icmp eq i32 %15, 0
  br i1 %.not31, label %24, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %3, i64 8
  %18 = load i32, ptr %17, align 8, !tbaa !12
  %.not32 = icmp eq i32 %18, 0
  br i1 %.not32, label %19, label %22

19:                                               ; preds = %16
  %20 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  tail call void %21(i32 noundef -3) #3
  br label %22

22:                                               ; preds = %19, %16
  %23 = load ptr, ptr %3, align 8, !tbaa !15
  %.sroa.0.0.copyload = load ptr, ptr %23, align 8, !tbaa !14
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %23, i64 8
  %.sroa.6.0.copyload = load ptr, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !14
  br label %24

24:                                               ; preds = %22, %12
  %.sroa.0.0 = phi ptr [ %.sroa.0.0.copyload, %22 ], [ %2, %12 ]
  %.sroa.6.0 = phi ptr [ %.sroa.6.0.copyload, %22 ], [ %3, %12 ]
  %25 = load ptr, ptr @Tag__null___, align 8, !tbaa !16
  %26 = icmp eq ptr %.sroa.0.0, %25
  br i1 %26, label %.critedge, label %27

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %.sroa.0.0, i64 64
  %29 = load ptr, ptr %28, align 8, !tbaa !18
  %30 = tail call zeroext i8 @Set__contains__Tag____(ptr noundef %29, ptr nonnull %7, ptr %9)
  %.not33.not = icmp eq i8 %30, 0
  br i1 %.not33.not, label %.critedge, label %43

.critedge:                                        ; preds = %24, %27
  %31 = getelementptr inbounds i8, ptr %1, i64 24
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load i32, ptr %33, align 8, !tbaa !22
  %.not35 = icmp eq i32 %34, 0
  br i1 %.not35, label %35, label %38

35:                                               ; preds = %.critedge
  %36 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  tail call void %37(i32 noundef -3) #3
  br label %38

38:                                               ; preds = %35, %.critedge
  %39 = load ptr, ptr %32, align 8, !tbaa !24
  %40 = load i32, ptr %39, align 8
  %41 = getelementptr inbounds i8, ptr %39, i64 8
  %42 = load ptr, ptr %41, align 8
  tail call void @TypeChecker__badConversion__(ptr noundef %0, i32 %40, ptr %42, ptr %.sroa.0.0, ptr %.sroa.6.0, ptr noundef nonnull byval(%struct.tag_____Tag__) align 8 %5)
  br label %43

43:                                               ; preds = %27, %38, %4
  %.pn.in = getelementptr inbounds i8, ptr %0, i64 32
  %.pn = load ptr, ptr %.pn.in, align 8, !tbaa !25
  %.sroa.3.0.in = getelementptr inbounds i8, ptr %.pn, i64 232
  %.sroa.3.0 = load ptr, ptr %.sroa.3.0.in, align 8, !tbaa !14
  %.sroa.023.0.in = getelementptr inbounds i8, ptr %.pn, i64 224
  %.sroa.023.0 = load ptr, ptr %.sroa.023.0.in, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  %.fca.0.insert = insertvalue { ptr, ptr } poison, ptr %.sroa.023.0, 0
  %.fca.1.insert = insertvalue { ptr, ptr } %.fca.0.insert, ptr %.sroa.3.0, 1
  ret { ptr, ptr } %.fca.1.insert
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 28}
!6 = !{!"tag_____Namespace__", !7, i64 0, !8, i64 16, !11, i64 24, !11, i64 28, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !11, i64 104}
!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 = !{!13, !11, i64 8}
!13 = !{!"tag_____Array__Tag____", !8, i64 0, !11, i64 8}
!14 = !{!8, !8, i64 0}
!15 = !{!13, !8, i64 0}
!16 = !{!17, !8, i64 0}
!17 = !{!"tag_____Tag__", !8, i64 0, !8, i64 8}
!18 = !{!6, !8, i64 64}
!19 = !{!20, !8, i64 24}
!20 = !{!"tag_____CallExpression__", !21, i64 0, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48}
!21 = !{!"", !11, i64 0, !8, i64 8}
!22 = !{!23, !11, i64 8}
!23 = !{!"tag_____List__Node____", !8, i64 0, !11, i64 8, !11, i64 12}
!24 = !{!23, !8, i64 0}
!25 = !{!26, !8, i64 32}
!26 = !{!"tag_____TypeCheckerContext__", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !11, i64 120, !11, i64 124, !8, i64 128, !11, i64 136, !9, i64 140}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass