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

; 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.tag_____Namespace__ = type { %struct.string__, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, 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_____FieldDef__ = type { ptr, ptr, %struct.Node__, ptr, %struct.tag_____Tag__ }
%struct.Node__ = type { i32, ptr }
%struct.tag_____Token__ = type { i32, %struct.string__, %struct.tag_____IntRange__, %struct.tag_____IntRange__, i32 }
%struct.tag_____List__Ptr__Namespace______ = type { ptr, i32, i32 }
%struct.tag_____Array__Tag____ = type { ptr, i32 }

@mu_____string170 = 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 void @TypeChecker__checkStructFields__(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @TypeChecker__checkFieldCycles__(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr %3, ptr %4) #3 {
  %6 = alloca %struct.tag_____Tag__, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.tag_____Error__, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.tag_____Tag__, align 8
  %17 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 0
  store ptr %3, ptr %17, align 8
  %18 = getelementptr inbounds { ptr, ptr }, ptr %6, i32 0, i32 1
  store ptr %4, ptr %18, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %5
  br label %138

23:                                               ; preds = %5
  %24 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.tag_____Namespace__, ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = and i32 %27, 256
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %121

30:                                               ; preds = %23
  %31 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.tag_____Namespace__, ptr %32, i32 0, i32 3
  %34 = load i32, ptr %33, align 4, !tbaa !11
  %35 = and i32 %34, 262144
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %51

37:                                               ; preds = %30
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.tag_____TypeCheckerContext__, ptr %38, i32 0, i32 2
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.tag_____FieldDef__, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !17
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.tag_____FieldDef__, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !20
  %47 = getelementptr inbounds %struct.tag_____Token__, ptr %46, i32 0, i32 2
  %48 = load i64, ptr %47, align 8
  %49 = load ptr, ptr @mu_____string170, align 8
  %50 = load i32, ptr getelementptr inbounds ({ ptr, i32 }, ptr @mu_____string170, i32 0, i32 1), align 8
  call void @Error__at__(ptr dead_on_unwind writable sret(%struct.tag_____Error__) align 8 %10, ptr noundef %43, i64 %48, ptr %49, i32 %50)
  call void @List__add__Error____(ptr noundef %40, ptr noundef byval(%struct.tag_____Error__) align 8 %10)
  br label %138

51:                                               ; preds = %30
  %52 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.tag_____Namespace__, ptr %53, i32 0, i32 3
  %55 = load i32, ptr %54, align 4, !tbaa !11
  %56 = and i32 %55, 524288
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %62

58:                                               ; preds = %51
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  call void @TypeChecker__checkStructFields__(ptr noundef %59, ptr noundef %61)
  br label %62

62:                                               ; preds = %58, %51
  %63 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %120

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %67 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct.tag_____Namespace__, ptr %68, i32 0, i32 9
  %70 = load ptr, ptr %69, align 8, !tbaa !22
  store ptr %70, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !23
  br label %71

71:                                               ; preds = %116, %66
  %72 = load i32, ptr %12, align 4, !tbaa !23
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.tag_____List__Ptr__Namespace______, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 8, !tbaa !24
  %76 = icmp slt i32 %72, %75
  br i1 %76, label %77, label %119

77:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.tag_____List__Ptr__Namespace______, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !26
  %81 = load i32, ptr %12, align 4, !tbaa !23
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %80, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  store ptr %84, ptr %13, align 8, !tbaa !5
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.tag_____Namespace__, ptr %85, i32 0, i32 3
  %87 = load i32, ptr %86, align 4, !tbaa !11
  %88 = and i32 %87, 32768
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %116

90:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %91 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  store ptr %92, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %93 = load i32, ptr %12, align 4, !tbaa !23
  store i32 %93, ptr %15, align 4, !tbaa !23
  %94 = load i32, ptr %15, align 4, !tbaa !23
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 8, !tbaa !27
  %98 = icmp ult i32 %94, %97
  br i1 %98, label %102, label %99

99:                                               ; preds = %90
  %100 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  call void %101(i32 noundef -3)
  br label %102

102:                                              ; preds = %99, %90
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.tag_____Array__Tag____, ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !29
  %106 = load i32, ptr %15, align 4, !tbaa !23
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds %struct.tag_____Tag__, ptr %105, i64 %107
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %108, i64 16, i1 false), !tbaa.struct !30
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8
  %114 = getelementptr inbounds { ptr, ptr }, ptr %16, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8
  call void @TypeChecker__checkFieldCycles__(ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr %113, ptr %115)
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %116

116:                                              ; preds = %102, %77
  %117 = load i32, ptr %12, align 4, !tbaa !23
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %12, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %71, !llvm.loop !31

119:                                              ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %120

120:                                              ; preds = %119, %62
  br label %138

121:                                              ; preds = %23
  %122 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct.tag_____Namespace__, ptr %123, i32 0, i32 3
  %125 = load i32, ptr %124, align 4, !tbaa !11
  %126 = and i32 %125, 16384
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %137

128:                                              ; preds = %121
  %129 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct.tag_____Namespace__, ptr %130, i32 0, i32 3
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = or i32 %132, 32768
  %134 = getelementptr inbounds %struct.tag_____Tag__, ptr %6, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.tag_____Namespace__, ptr %135, i32 0, i32 3
  store i32 %133, ptr %136, align 4, !tbaa !11
  br label %137

137:                                              ; preds = %128, %121
  br label %138

138:                                              ; preds = %137, %120, %37, %22
  ret void
}

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, !6, i64 0}
!10 = !{!"tag_____Tag__", !6, i64 0, !6, i64 8}
!11 = !{!12, !14, i64 28}
!12 = !{!"tag_____Namespace__", !13, 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}
!13 = !{!"", !6, i64 0, !14, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"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}
!17 = !{!18, !6, i64 0}
!18 = !{!"tag_____FieldDef__", !6, i64 0, !6, i64 8, !19, i64 16, !6, i64 32, !10, i64 40}
!19 = !{!"", !14, i64 0, !6, i64 8}
!20 = !{!18, !6, i64 8}
!21 = !{!10, !6, i64 8}
!22 = !{!12, !6, i64 72}
!23 = !{!14, !14, i64 0}
!24 = !{!25, !14, i64 8}
!25 = !{!"tag_____List__Ptr__Namespace______", !6, i64 0, !14, i64 8, !14, i64 12}
!26 = !{!25, !6, i64 0}
!27 = !{!28, !14, i64 8}
!28 = !{!"tag_____Array__Tag____", !6, i64 0, !14, i64 8}
!29 = !{!28, !6, i64 0}
!30 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!31 = distinct !{!31, !32}
!32 = !{!"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.tag_____Tag__ = type { ptr, ptr }

@mu_____string170 = 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 void @TypeChecker__checkStructFields__(ptr noundef, ptr noundef) local_unnamed_addr #1

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

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %3, i64 28
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = and i32 %10, 256
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %58, label %12

12:                                               ; preds = %8
  %13 = and i32 %10, 262144
  %.not30 = icmp eq i32 %13, 0
  br i1 %.not30, label %24, label %14

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

24:                                               ; preds = %12
  %25 = and i32 %10, 524288
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  tail call void @TypeChecker__checkStructFields__(ptr noundef %0, ptr noundef nonnull %3)
  br label %28

28:                                               ; preds = %27, %24
  %.not31 = icmp eq ptr %4, null
  br i1 %.not31, label %.loopexit, label %29

29:                                               ; preds = %28
  %30 = getelementptr inbounds i8, ptr %3, i64 72
  %31 = load ptr, ptr %30, align 8, !tbaa !19
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load i32, ptr %32, align 8, !tbaa !20
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %29
  %35 = getelementptr inbounds i8, ptr %4, i64 8
  %36 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @top_____abandonFn__)
  br label %37

37:                                               ; preds = %.lr.ph, %54
  %38 = phi i32 [ %33, %.lr.ph ], [ %55, %54 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %54 ]
  %39 = load ptr, ptr %31, align 8, !tbaa !22
  %40 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv
  %41 = load ptr, ptr %40, align 8, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %41, i64 28
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = and i32 %43, 32768
  %.not32 = icmp eq i32 %44, 0
  br i1 %.not32, label %54, label %45

45:                                               ; preds = %37
  %46 = load i32, ptr %35, align 8, !tbaa !24
  %47 = zext i32 %46 to i64
  %48 = icmp ult i64 %indvars.iv, %47
  br i1 %48, label %51, label %49

49:                                               ; preds = %45
  %50 = load ptr, ptr %36, align 8, !tbaa !23
  tail call void %50(i32 noundef -3) #2
  br label %51

51:                                               ; preds = %49, %45
  %52 = load ptr, ptr %4, align 8, !tbaa !26
  %53 = getelementptr inbounds %struct.tag_____Tag__, ptr %52, i64 %indvars.iv
  %.sroa.0.0.copyload = load ptr, ptr %53, align 8, !tbaa !23
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %53, i64 8
  %.sroa.4.0.copyload = load ptr, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !23
  tail call void @TypeChecker__checkFieldCycles__(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr %.sroa.0.0.copyload, ptr %.sroa.4.0.copyload)
  %.pre = load i32, ptr %32, align 8, !tbaa !20
  br label %54

54:                                               ; preds = %51, %37
  %55 = phi i32 [ %.pre, %51 ], [ %38, %37 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = sext i32 %55 to i64
  %57 = icmp slt i64 %indvars.iv.next, %56
  br i1 %57, label %37, label %.loopexit, !llvm.loop !27

58:                                               ; preds = %8
  %59 = and i32 %10, 16384
  %.not29 = icmp eq i32 %59, 0
  br i1 %.not29, label %.loopexit, label %60

60:                                               ; preds = %58
  %61 = or i32 %10, 32768
  store i32 %61, ptr %9, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %54, %29, %58, %60, %28, %5, %14
  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 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, !8, i64 16}
!13 = !{!"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}
!14 = !{!15, !8, i64 0}
!15 = !{!"tag_____FieldDef__", !8, i64 0, !8, i64 8, !16, i64 16, !8, i64 32, !17, i64 40}
!16 = !{!"", !11, i64 0, !8, i64 8}
!17 = !{!"tag_____Tag__", !8, i64 0, !8, i64 8}
!18 = !{!15, !8, i64 8}
!19 = !{!6, !8, i64 72}
!20 = !{!21, !11, i64 8}
!21 = !{!"tag_____List__Ptr__Namespace______", !8, i64 0, !11, i64 8, !11, i64 12}
!22 = !{!21, !8, i64 0}
!23 = !{!8, !8, i64 0}
!24 = !{!25, !11, i64 8}
!25 = !{!"tag_____Array__Tag____", !8, i64 0, !11, i64 8}
!26 = !{!25, !8, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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