; LLVM IR from sysprog21/shecc :: src (ssa)

; 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.func_list_t = type { ptr, ptr }
%struct.func = type { %struct.var, [8 x %struct.var], i32, i32, i32, ptr, ptr, %struct.symbol_list_t, i32, i32, ptr }
%struct.var = type { [32 x i8], [32 x i8], i32, i8, i8, i32, i32, i32, i32, i32, ptr, i32, [64 x ptr], i32, %struct.rename_t, %struct.ref_block_list, ptr, ptr, ptr, i32, i8, i8, i8 }
%struct.rename_t = type { i32, [64 x i32], i32 }
%struct.ref_block_list = type { ptr, ptr }
%struct.symbol_list_t = type { ptr, ptr }
%struct.basic_block = type { %struct.insn_list_t, %struct.ph2_ir_list_t, [128 x %struct.bb_connection_t], ptr, ptr, ptr, ptr, ptr, ptr, ptr, [800 x ptr], i32, [800 x ptr], i32, [800 x ptr], i32, [800 x ptr], i32, i32, i32, [64 x ptr], [64 x ptr], i32, i32, i32, i8, [64 x ptr], ptr, [256 x ptr], ptr, ptr, ptr, %struct.symbol_list_t, i32 }
%struct.insn_list_t = type { ptr, ptr }
%struct.ph2_ir_list_t = type { ptr, ptr }
%struct.bb_connection_t = type { ptr, i32 }

@FUNC_LIST = external dso_local global %struct.func_list_t, 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @intersect(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @build_idom() #1 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #2
  %8 = load ptr, ptr @FUNC_LIST, align 8, !tbaa !5
  store ptr %8, ptr %1, align 8, !tbaa !10
  br label %9

9:                                                ; preds = %141, %0
  %10 = load ptr, ptr %1, align 8, !tbaa !10
  %11 = icmp ne ptr %10, null
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #2
  br label %145

13:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #2
  %14 = load ptr, ptr %1, align 8, !tbaa !10
  %15 = getelementptr inbounds %struct.func, ptr %14, i32 0, i32 5
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = load ptr, ptr %1, align 8, !tbaa !10
  %18 = getelementptr inbounds %struct.func, ptr %17, i32 0, i32 5
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct.basic_block, ptr %19, i32 0, i32 6
  store ptr %16, ptr %20, align 8, !tbaa !18
  br label %21

21:                                               ; preds = %137, %13
  store i8 0, ptr %3, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  %22 = load ptr, ptr %1, align 8, !tbaa !10
  %23 = getelementptr inbounds %struct.func, ptr %22, i32 0, i32 5
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %struct.basic_block, ptr %24, i32 0, i32 8
  %26 = load ptr, ptr %25, align 8, !tbaa !21
  store ptr %26, ptr %4, align 8, !tbaa !10
  br label %27

27:                                               ; preds = %132, %21
  %28 = load ptr, ptr %4, align 8, !tbaa !10
  %29 = icmp ne ptr %28, null
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 7, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  br label %136

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  store i32 0, ptr %6, align 4, !tbaa !22
  br label %32

32:                                               ; preds = %66, %31
  %33 = load i32, ptr %6, align 4, !tbaa !22
  %34 = icmp slt i32 %33, 128
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 10, ptr %2, align 4
  br label %69

36:                                               ; preds = %32
  %37 = load ptr, ptr %4, align 8, !tbaa !10
  %38 = getelementptr inbounds %struct.basic_block, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %6, align 4, !tbaa !22
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %38, i64 0, i64 %40
  %42 = getelementptr inbounds %struct.bb_connection_t, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  %44 = icmp ne ptr %43, null
  br i1 %44, label %46, label %45

45:                                               ; preds = %36
  br label %66

46:                                               ; preds = %36
  %47 = load ptr, ptr %4, align 8, !tbaa !10
  %48 = getelementptr inbounds %struct.basic_block, ptr %47, i32 0, i32 2
  %49 = load i32, ptr %6, align 4, !tbaa !22
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %48, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.bb_connection_t, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !23
  %54 = getelementptr inbounds %struct.basic_block, ptr %53, i32 0, i32 6
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = icmp ne ptr %55, null
  br i1 %56, label %58, label %57

57:                                               ; preds = %46
  br label %66

58:                                               ; preds = %46
  %59 = load ptr, ptr %4, align 8, !tbaa !10
  %60 = getelementptr inbounds %struct.basic_block, ptr %59, i32 0, i32 2
  %61 = load i32, ptr %6, align 4, !tbaa !22
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %60, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.bb_connection_t, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  store ptr %65, ptr %5, align 8, !tbaa !10
  store i32 10, ptr %2, align 4
  br label %69

66:                                               ; preds = %57, %45
  %67 = load i32, ptr %6, align 4, !tbaa !22
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %6, align 4, !tbaa !22
  br label %32, !llvm.loop !25

69:                                               ; preds = %58, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  br label %70

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 0, ptr %7, align 4, !tbaa !22
  br label %71

71:                                               ; preds = %118, %70
  %72 = load i32, ptr %7, align 4, !tbaa !22
  %73 = icmp slt i32 %72, 128
  br i1 %73, label %75, label %74

74:                                               ; preds = %71
  store i32 13, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %121

75:                                               ; preds = %71
  %76 = load ptr, ptr %4, align 8, !tbaa !10
  %77 = getelementptr inbounds %struct.basic_block, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %7, align 4, !tbaa !22
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %77, i64 0, i64 %79
  %81 = getelementptr inbounds %struct.bb_connection_t, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !23
  %83 = icmp ne ptr %82, null
  br i1 %83, label %85, label %84

84:                                               ; preds = %75
  br label %118

85:                                               ; preds = %75
  %86 = load ptr, ptr %4, align 8, !tbaa !10
  %87 = getelementptr inbounds %struct.basic_block, ptr %86, i32 0, i32 2
  %88 = load i32, ptr %7, align 4, !tbaa !22
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %87, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.bb_connection_t, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !23
  %93 = load ptr, ptr %5, align 8, !tbaa !10
  %94 = icmp eq ptr %92, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %85
  br label %118

96:                                               ; preds = %85
  %97 = load ptr, ptr %4, align 8, !tbaa !10
  %98 = getelementptr inbounds %struct.basic_block, ptr %97, i32 0, i32 2
  %99 = load i32, ptr %7, align 4, !tbaa !22
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %98, i64 0, i64 %100
  %102 = getelementptr inbounds %struct.bb_connection_t, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !23
  %104 = getelementptr inbounds %struct.basic_block, ptr %103, i32 0, i32 6
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %117

107:                                              ; preds = %96
  %108 = load ptr, ptr %4, align 8, !tbaa !10
  %109 = getelementptr inbounds %struct.basic_block, ptr %108, i32 0, i32 2
  %110 = load i32, ptr %7, align 4, !tbaa !22
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %109, i64 0, i64 %111
  %113 = getelementptr inbounds %struct.bb_connection_t, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !23
  %115 = load ptr, ptr %5, align 8, !tbaa !10
  %116 = call ptr @intersect(ptr noundef %114, ptr noundef %115)
  store ptr %116, ptr %5, align 8, !tbaa !10
  br label %117

117:                                              ; preds = %107, %96
  br label %118

118:                                              ; preds = %117, %95, %84
  %119 = load i32, ptr %7, align 4, !tbaa !22
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %7, align 4, !tbaa !22
  br label %71, !llvm.loop !27

121:                                              ; preds = %74
  %122 = load ptr, ptr %4, align 8, !tbaa !10
  %123 = getelementptr inbounds %struct.basic_block, ptr %122, i32 0, i32 6
  %124 = load ptr, ptr %123, align 8, !tbaa !18
  %125 = load ptr, ptr %5, align 8, !tbaa !10
  %126 = icmp ne ptr %124, %125
  br i1 %126, label %127, label %131

127:                                              ; preds = %121
  %128 = load ptr, ptr %5, align 8, !tbaa !10
  %129 = load ptr, ptr %4, align 8, !tbaa !10
  %130 = getelementptr inbounds %struct.basic_block, ptr %129, i32 0, i32 6
  store ptr %128, ptr %130, align 8, !tbaa !18
  store i8 1, ptr %3, align 1, !tbaa !20
  br label %131

131:                                              ; preds = %127, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  br label %132

132:                                              ; preds = %131
  %133 = load ptr, ptr %4, align 8, !tbaa !10
  %134 = getelementptr inbounds %struct.basic_block, ptr %133, i32 0, i32 8
  %135 = load ptr, ptr %134, align 8, !tbaa !21
  store ptr %135, ptr %4, align 8, !tbaa !10
  br label %27, !llvm.loop !28

136:                                              ; preds = %30
  br label %137

137:                                              ; preds = %136
  %138 = load i8, ptr %3, align 1, !tbaa !20, !range !29, !noundef !30
  %139 = trunc i8 %138 to i1
  br i1 %139, label %21, label %140, !llvm.loop !31

140:                                              ; preds = %137
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #2
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %1, align 8, !tbaa !10
  %143 = getelementptr inbounds %struct.func, ptr %142, i32 0, i32 10
  %144 = load ptr, ptr %143, align 8, !tbaa !32
  store ptr %144, ptr %1, align 8, !tbaa !10
  br label %9, !llvm.loop !33

145:                                              ; preds = %12
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 8512}
!12 = !{!"func", !13, i64 0, !8, i64 944, !14, i64 8496, !14, i64 8500, !14, i64 8504, !7, i64 8512, !7, i64 8520, !6, i64 8528, !14, i64 8544, !14, i64 8548, !7, i64 8552}
!13 = !{!"var", !8, i64 0, !8, i64 32, !14, i64 64, !15, i64 68, !15, i64 69, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !7, i64 96, !14, i64 104, !8, i64 112, !14, i64 624, !16, i64 628, !17, i64 896, !7, i64 912, !7, i64 920, !7, i64 928, !14, i64 936, !15, i64 940, !15, i64 941, !15, i64 942}
!14 = !{!"int", !8, i64 0}
!15 = !{!"_Bool", !8, i64 0}
!16 = !{!"", !14, i64 0, !8, i64 4, !14, i64 260}
!17 = !{!"ref_block_list", !7, i64 0, !7, i64 8}
!18 = !{!19, !7, i64 2104}
!19 = !{!"basic_block", !6, i64 0, !6, i64 16, !8, i64 32, !7, i64 2080, !7, i64 2088, !7, i64 2096, !7, i64 2104, !7, i64 2112, !7, i64 2120, !7, i64 2128, !8, i64 2136, !14, i64 8536, !8, i64 8544, !14, i64 14944, !8, i64 14952, !14, i64 21352, !8, i64 21360, !14, i64 27760, !14, i64 27764, !14, i64 27768, !8, i64 27776, !8, i64 28288, !14, i64 28800, !14, i64 28804, !14, i64 28808, !15, i64 28812, !8, i64 28816, !7, i64 29328, !8, i64 29336, !7, i64 31384, !7, i64 31392, !7, i64 31400, !6, i64 31408, !14, i64 31424}
!20 = !{!15, !15, i64 0}
!21 = !{!19, !7, i64 2120}
!22 = !{!14, !14, i64 0}
!23 = !{!24, !7, i64 0}
!24 = !{!"", !7, i64 0, !14, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !26}
!32 = !{!12, !7, i64 8552}
!33 = distinct !{!33, !26}


; 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.func_list_t = type { ptr, ptr }
%struct.bb_connection_t = type { ptr, i32 }

@FUNC_LIST = external dso_local local_unnamed_addr global %struct.func_list_t, align 8

; Function Attrs: nounwind uwtable
declare dso_local ptr @intersect(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @build_idom() local_unnamed_addr #0 {
  %.03657 = load ptr, ptr @FUNC_LIST, align 8, !tbaa !5
  %.not58 = icmp eq ptr %.03657, null
  br i1 %.not58, label %._crit_edge62, label %.lr.ph

._crit_edge62:                                    ; preds = %.split56.us, %0
  ret void

.lr.ph:                                           ; preds = %0, %.split56.us
  %.03660 = phi ptr [ %.036, %.split56.us ], [ %.03657, %0 ]
  %.03259 = phi ptr [ %.us-phi, %.split56.us ], [ undef, %0 ]
  %1 = getelementptr inbounds i8, ptr %.03660, i64 8512
  %2 = load ptr, ptr %1, align 8, !tbaa !9
  %3 = getelementptr inbounds i8, ptr %2, i64 2104
  store ptr %2, ptr %3, align 8, !tbaa !17
  %4 = getelementptr inbounds i8, ptr %2, i64 2120
  %5 = load ptr, ptr %4, align 8, !tbaa !19
  %6 = icmp eq ptr %5, null
  br i1 %6, label %.split56.us, label %.split

.split:                                           ; preds = %.lr.ph, %._crit_edge
  %.1 = phi ptr [ %.5, %._crit_edge ], [ %.03259, %.lr.ph ]
  %7 = load ptr, ptr %1, align 8, !tbaa !9
  %.033.in48 = getelementptr inbounds i8, ptr %7, i64 2120
  %.03349 = load ptr, ptr %.033.in48, align 8, !tbaa !19
  %.not3950 = icmp eq ptr %.03349, null
  br i1 %.not3950, label %.split56.us, label %.preheader

.preheader:                                       ; preds = %.split, %36
  %.03353 = phi ptr [ %.033, %36 ], [ %.03349, %.split ]
  %.252 = phi ptr [ %.5, %36 ], [ %.1, %.split ]
  %.03451 = phi i1 [ %.135, %36 ], [ false, %.split ]
  %8 = getelementptr inbounds i8, ptr %.03353, i64 32
  br label %9

._crit_edge:                                      ; preds = %36
  br i1 %.135, label %.split, label %.split56.us, !llvm.loop !20

9:                                                ; preds = %21, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next.1, %21 ]
  %10 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %8, i64 0, i64 %indvars.iv
  %11 = load ptr, ptr %10, align 8, !tbaa !23
  %.not40 = icmp eq ptr %11, null
  br i1 %.not40, label %15, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %11, i64 2104
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %.not41 = icmp eq ptr %14, null
  br i1 %.not41, label %15, label %.preheader71

15:                                               ; preds = %12, %9
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %16 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %8, i64 0, i64 %indvars.iv.next
  %17 = load ptr, ptr %16, align 8, !tbaa !23
  %.not40.1 = icmp eq ptr %17, null
  br i1 %.not40.1, label %21, label %18

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %17, i64 2104
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %.not41.1 = icmp eq ptr %20, null
  br i1 %.not41.1, label %21, label %.preheader71

21:                                               ; preds = %18, %15
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 128
  br i1 %exitcond.not.1, label %.preheader71, label %9, !llvm.loop !25

.preheader71:                                     ; preds = %21, %18, %12
  %.446.ph = phi ptr [ %11, %12 ], [ %17, %18 ], [ %.252, %21 ]
  br label %25

22:                                               ; preds = %34
  %23 = getelementptr inbounds i8, ptr %.03353, i64 2104
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %.not42 = icmp eq ptr %24, %.5
  br i1 %.not42, label %36, label %35

25:                                               ; preds = %.preheader71, %34
  %indvars.iv64 = phi i64 [ %indvars.iv.next65, %34 ], [ 0, %.preheader71 ]
  %.446 = phi ptr [ %.5, %34 ], [ %.446.ph, %.preheader71 ]
  %26 = getelementptr inbounds [128 x %struct.bb_connection_t], ptr %8, i64 0, i64 %indvars.iv64
  %27 = load ptr, ptr %26, align 8, !tbaa !23
  %.not43 = icmp eq ptr %27, null
  %28 = icmp eq ptr %27, %.446
  %or.cond = select i1 %.not43, i1 true, i1 %28
  br i1 %or.cond, label %34, label %29

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %27, i64 2104
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %.not44 = icmp eq ptr %31, null
  br i1 %.not44, label %34, label %32

32:                                               ; preds = %29
  %33 = tail call ptr @intersect(ptr noundef nonnull %27, ptr noundef %.446)
  br label %34

34:                                               ; preds = %29, %32, %25
  %.5 = phi ptr [ %33, %32 ], [ %.446, %29 ], [ %.446, %25 ]
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next65, 128
  br i1 %exitcond67.not, label %22, label %25, !llvm.loop !26

35:                                               ; preds = %22
  store ptr %.5, ptr %23, align 8, !tbaa !17
  br label %36

36:                                               ; preds = %35, %22
  %.135 = phi i1 [ true, %35 ], [ %.03451, %22 ]
  %.033.in = getelementptr inbounds i8, ptr %.03353, i64 2120
  %.033 = load ptr, ptr %.033.in, align 8, !tbaa !19
  %.not39 = icmp eq ptr %.033, null
  br i1 %.not39, label %._crit_edge, label %.preheader, !llvm.loop !27

.split56.us:                                      ; preds = %.split, %._crit_edge, %.lr.ph
  %.us-phi = phi ptr [ %.03259, %.lr.ph ], [ %.1, %.split ], [ %.5, %._crit_edge ]
  %37 = getelementptr inbounds i8, ptr %.03660, i64 8552
  %.036 = load ptr, ptr %37, align 8, !tbaa !5
  %.not = icmp eq ptr %.036, null
  br i1 %.not, label %._crit_edge62, label %.lr.ph, !llvm.loop !28
}

attributes #0 = { 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" }

!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 8512}
!10 = !{!"func", !11, i64 0, !7, i64 944, !12, i64 8496, !12, i64 8500, !12, i64 8504, !6, i64 8512, !6, i64 8520, !16, i64 8528, !12, i64 8544, !12, i64 8548, !6, i64 8552}
!11 = !{!"var", !7, i64 0, !7, i64 32, !12, i64 64, !13, i64 68, !13, i64 69, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !6, i64 96, !12, i64 104, !7, i64 112, !12, i64 624, !14, i64 628, !15, i64 896, !6, i64 912, !6, i64 920, !6, i64 928, !12, i64 936, !13, i64 940, !13, i64 941, !13, i64 942}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"", !12, i64 0, !7, i64 4, !12, i64 260}
!15 = !{!"ref_block_list", !6, i64 0, !6, i64 8}
!16 = !{!"", !6, i64 0, !6, i64 8}
!17 = !{!18, !6, i64 2104}
!18 = !{!"basic_block", !16, i64 0, !16, i64 16, !7, i64 32, !6, i64 2080, !6, i64 2088, !6, i64 2096, !6, i64 2104, !6, i64 2112, !6, i64 2120, !6, i64 2128, !7, i64 2136, !12, i64 8536, !7, i64 8544, !12, i64 14944, !7, i64 14952, !12, i64 21352, !7, i64 21360, !12, i64 27760, !12, i64 27764, !12, i64 27768, !7, i64 27776, !7, i64 28288, !12, i64 28800, !12, i64 28804, !12, i64 28808, !13, i64 28812, !7, i64 28816, !6, i64 29328, !7, i64 29336, !6, i64 31384, !6, i64 31392, !6, i64 31400, !16, i64 31408, !12, i64 31424}
!19 = !{!18, !6, i64 2120}
!20 = distinct !{!20, !21, !22}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.unswitch.partial.disable"}
!23 = !{!24, !6, i64 0}
!24 = !{!"", !6, i64 0, !12, i64 8}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass