; 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.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 }
%struct.symbol_list_t = type { ptr, ptr }
%struct.insn = type { ptr, ptr, i32, i32, ptr, ptr, ptr, i32, i8, ptr, ptr, [64 x i8] }
%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 }

@.str.129 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare i32 @printf(ptr noundef, ...) #1

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

; Function Attrs: noreturn nounwind
declare void @abort() #2

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

; Function Attrs: nounwind uwtable
define dso_local void @dce_insn(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca [2048 x ptr], align 16
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16384, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.basic_block, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.insn_list_t, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  store ptr %17, ptr %5, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %35, %1
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %39

22:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds [2048 x ptr], ptr %3, i64 0, i64 0
  %25 = load i32, ptr %4, align 4, !tbaa !9
  %26 = call i32 @dce_init_mark(ptr noundef %23, ptr noundef %24, i32 noundef %25)
  store i32 %26, ptr %6, align 4, !tbaa !9
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = load i32, ptr %4, align 4, !tbaa !9
  %29 = add nsw i32 %28, %27
  store i32 %29, ptr %4, align 4, !tbaa !9
  %30 = load i32, ptr %4, align 4, !tbaa !9
  %31 = icmp sgt i32 %30, 2047
  br i1 %31, label %32, label %34

32:                                               ; preds = %22
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.129)
  call void @abort() #5
  unreachable

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

35:                                               ; preds = %34
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.insn, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  store ptr %38, ptr %5, align 8, !tbaa !5
  br label %18, !llvm.loop !17

39:                                               ; preds = %21
  br label %40

40:                                               ; preds = %169, %39
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %170

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %44 = load i32, ptr %4, align 4, !tbaa !9
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %4, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [2048 x ptr], ptr %3, i64 0, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %48, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.insn, ptr %49, i32 0, i32 5
  %51 = load ptr, ptr %50, align 8, !tbaa !19
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %83

53:                                               ; preds = %43
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.insn, ptr %54, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !19
  %57 = getelementptr inbounds %struct.var, ptr %56, i32 0, i32 18
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %83

60:                                               ; preds = %53
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.insn, ptr %61, i32 0, i32 5
  %63 = load ptr, ptr %62, align 8, !tbaa !19
  %64 = getelementptr inbounds %struct.var, ptr %63, i32 0, i32 18
  %65 = load ptr, ptr %64, align 8, !tbaa !20
  store ptr %65, ptr %8, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.insn, ptr %66, i32 0, i32 8
  %68 = load i8, ptr %67, align 4, !tbaa !24, !range !25, !noundef !26
  %69 = trunc i8 %68 to i1
  br i1 %69, label %82, label %70

70:                                               ; preds = %60
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.insn, ptr %71, i32 0, i32 8
  store i8 1, ptr %72, align 4, !tbaa !24
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.insn, ptr %73, i32 0, i32 9
  %75 = load ptr, ptr %74, align 8, !tbaa !27
  %76 = getelementptr inbounds %struct.basic_block, ptr %75, i32 0, i32 25
  store i8 1, ptr %76, align 4, !tbaa !28
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load i32, ptr %4, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %4, align 4, !tbaa !9
  %80 = sext i32 %78 to i64
  %81 = getelementptr inbounds [2048 x ptr], ptr %3, i64 0, i64 %80
  store ptr %77, ptr %81, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %70, %60
  br label %83

83:                                               ; preds = %82, %53, %43
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.insn, ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !29
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %118

88:                                               ; preds = %83
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.insn, ptr %89, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !29
  %92 = getelementptr inbounds %struct.var, ptr %91, i32 0, i32 18
  %93 = load ptr, ptr %92, align 8, !tbaa !20
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %118

95:                                               ; preds = %88
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.insn, ptr %96, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !29
  %99 = getelementptr inbounds %struct.var, ptr %98, i32 0, i32 18
  %100 = load ptr, ptr %99, align 8, !tbaa !20
  store ptr %100, ptr %9, align 8, !tbaa !5
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.insn, ptr %101, i32 0, i32 8
  %103 = load i8, ptr %102, align 4, !tbaa !24, !range !25, !noundef !26
  %104 = trunc i8 %103 to i1
  br i1 %104, label %117, label %105

105:                                              ; preds = %95
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.insn, ptr %106, i32 0, i32 8
  store i8 1, ptr %107, align 4, !tbaa !24
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.insn, ptr %108, i32 0, i32 9
  %110 = load ptr, ptr %109, align 8, !tbaa !27
  %111 = getelementptr inbounds %struct.basic_block, ptr %110, i32 0, i32 25
  store i8 1, ptr %111, align 4, !tbaa !28
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i32, ptr %4, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %4, align 4, !tbaa !9
  %115 = sext i32 %113 to i64
  %116 = getelementptr inbounds [2048 x ptr], ptr %3, i64 0, i64 %115
  store ptr %112, ptr %116, align 8, !tbaa !5
  br label %117

117:                                              ; preds = %105, %95
  br label %118

118:                                              ; preds = %117, %88, %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %165, %118
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.insn, ptr %121, i32 0, i32 9
  %123 = load ptr, ptr %122, align 8, !tbaa !27
  %124 = getelementptr inbounds %struct.basic_block, ptr %123, i32 0, i32 23
  %125 = load i32, ptr %124, align 4, !tbaa !30
  %126 = icmp slt i32 %120, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %119
  store i32 7, ptr %12, align 4
  br label %168

128:                                              ; preds = %119
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.insn, ptr %129, i32 0, i32 9
  %131 = load ptr, ptr %130, align 8, !tbaa !27
  %132 = getelementptr inbounds %struct.basic_block, ptr %131, i32 0, i32 21
  %133 = load i32, ptr %11, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [64 x ptr], ptr %132, i64 0, i64 %134
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  store ptr %136, ptr %10, align 8, !tbaa !5
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %140, label %139

139:                                              ; preds = %128
  store i32 7, ptr %12, align 4
  br label %168

140:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.basic_block, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds %struct.insn_list_t, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !31
  store ptr %144, ptr %13, align 8, !tbaa !5
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.insn, ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !32
  %148 = icmp eq i32 %147, 13
  br i1 %148, label %149, label %164

149:                                              ; preds = %140
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.insn, ptr %150, i32 0, i32 8
  %152 = load i8, ptr %151, align 4, !tbaa !24, !range !25, !noundef !26
  %153 = trunc i8 %152 to i1
  br i1 %153, label %164, label %154

154:                                              ; preds = %149
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.insn, ptr %155, i32 0, i32 8
  store i8 1, ptr %156, align 4, !tbaa !24
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.basic_block, ptr %157, i32 0, i32 25
  store i8 1, ptr %158, align 4, !tbaa !28
  %159 = load ptr, ptr %13, align 8, !tbaa !5
  %160 = load i32, ptr %4, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %4, align 4, !tbaa !9
  %162 = sext i32 %160 to i64
  %163 = getelementptr inbounds [2048 x ptr], ptr %3, i64 0, i64 %162
  store ptr %159, ptr %163, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %154, %149, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %11, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %11, align 4, !tbaa !9
  br label %119, !llvm.loop !33

168:                                              ; preds = %139, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %169

169:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %40, !llvm.loop !34

170:                                              ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 16384, ptr %3) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noreturn nounwind "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 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 }
attributes #5 = { noreturn 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 = !{!"basic_block", !13, i64 0, !13, 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, !10, i64 8536, !7, i64 8544, !10, i64 14944, !7, i64 14952, !10, i64 21352, !7, i64 21360, !10, i64 27760, !10, i64 27764, !10, i64 27768, !7, i64 27776, !7, i64 28288, !10, i64 28800, !10, i64 28804, !10, i64 28808, !14, i64 28812, !7, i64 28816, !6, i64 29328, !7, i64 29336, !6, i64 31384, !6, i64 31392, !6, i64 31400, !13, i64 31408, !10, i64 31424}
!13 = !{!"", !6, i64 0, !6, i64 8}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"insn", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !14, i64 52, !6, i64 56, !6, i64 64, !7, i64 72}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!16, !6, i64 32}
!20 = !{!21, !6, i64 928}
!21 = !{!"var", !7, i64 0, !7, i64 32, !10, i64 64, !14, i64 68, !14, i64 69, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96, !10, i64 104, !7, i64 112, !10, i64 624, !22, i64 628, !23, i64 896, !6, i64 912, !6, i64 920, !6, i64 928, !10, i64 936, !14, i64 940, !14, i64 941, !14, i64 942}
!22 = !{!"", !10, i64 0, !7, i64 4, !10, i64 260}
!23 = !{!"ref_block_list", !6, i64 0, !6, i64 8}
!24 = !{!16, !14, i64 52}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!16, !6, i64 56}
!28 = !{!12, !14, i64 28812}
!29 = !{!16, !6, i64 40}
!30 = !{!12, !10, i64 28804}
!31 = !{!12, !6, i64 8}
!32 = !{!16, !10, i64 20}
!33 = distinct !{!33, !18}
!34 = distinct !{!34, !18}


; 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"

@.str.129 = external hidden unnamed_addr constant [40 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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: noreturn nounwind
declare void @abort() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @dce_init_mark(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @dce_insn(ptr nocapture noundef readonly %0) local_unnamed_addr #3 {
  %2 = alloca [2048 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 16384, ptr nonnull %2) #4
  br label %3

3:                                                ; preds = %4, %1
  %.039.in = phi ptr [ %0, %1 ], [ %.039, %4 ]
  %.0 = phi i32 [ 0, %1 ], [ %6, %4 ]
  %.039 = load ptr, ptr %.039.in, align 8, !tbaa !5
  %.not = icmp eq ptr %.039, null
  br i1 %.not, label %.preheader, label %4

.preheader:                                       ; preds = %3
  %.not4657 = icmp eq i32 %.0, 0
  br i1 %.not4657, label %._crit_edge60, label %.lr.ph59

4:                                                ; preds = %3
  %5 = call i32 @dce_init_mark(ptr noundef nonnull %.039, ptr noundef nonnull %2, i32 noundef %.0)
  %6 = add nsw i32 %5, %.0
  %7 = icmp sgt i32 %6, 2047
  br i1 %7, label %8, label %3, !llvm.loop !9

8:                                                ; preds = %4
  %9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.129)
  call void @abort() #5
  unreachable

.lr.ph59:                                         ; preds = %.preheader, %._crit_edge
  %.158 = phi i32 [ %.4.lcssa, %._crit_edge ], [ %.0, %.preheader ]
  %10 = add nsw i32 %.158, -1
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [2048 x ptr], ptr %2, i64 0, i64 %11
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 32
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %.not47 = icmp eq ptr %15, null
  br i1 %.not47, label %27, label %16

16:                                               ; preds = %.lr.ph59
  %17 = getelementptr inbounds i8, ptr %15, i64 928
  %18 = load ptr, ptr %17, align 8, !tbaa !15
  %.not48 = icmp eq ptr %18, null
  br i1 %.not48, label %27, label %19

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %18, i64 52
  %21 = load i8, ptr %20, align 4, !tbaa !19, !range !20, !noundef !21
  %22 = trunc nuw i8 %21 to i1
  br i1 %22, label %27, label %23

23:                                               ; preds = %19
  store i8 1, ptr %20, align 4, !tbaa !19
  %24 = getelementptr inbounds i8, ptr %18, i64 56
  %25 = load ptr, ptr %24, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %25, i64 28812
  store i8 1, ptr %26, align 4, !tbaa !23
  store ptr %18, ptr %12, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %19, %23, %16, %.lr.ph59
  %.2 = phi i32 [ %10, %19 ], [ %.158, %23 ], [ %10, %16 ], [ %10, %.lr.ph59 ]
  %28 = getelementptr inbounds i8, ptr %13, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !26
  %.not49 = icmp eq ptr %29, null
  br i1 %.not49, label %44, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %29, i64 928
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %.not50 = icmp eq ptr %32, null
  br i1 %.not50, label %44, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %32, i64 52
  %35 = load i8, ptr %34, align 4, !tbaa !19, !range !20, !noundef !21
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %44, label %37

37:                                               ; preds = %33
  store i8 1, ptr %34, align 4, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %32, i64 56
  %39 = load ptr, ptr %38, align 8, !tbaa !22
  %40 = getelementptr inbounds i8, ptr %39, i64 28812
  store i8 1, ptr %40, align 4, !tbaa !23
  %41 = add nsw i32 %.2, 1
  %42 = sext i32 %.2 to i64
  %43 = getelementptr inbounds [2048 x ptr], ptr %2, i64 0, i64 %42
  store ptr %32, ptr %43, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %33, %37, %30, %27
  %.3 = phi i32 [ %.2, %33 ], [ %41, %37 ], [ %.2, %30 ], [ %.2, %27 ]
  %45 = getelementptr inbounds i8, ptr %13, i64 56
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %47 = getelementptr inbounds i8, ptr %46, i64 28804
  %48 = load i32, ptr %47, align 4, !tbaa !27
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %44, %69
  %50 = phi ptr [ %70, %69 ], [ %46, %44 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %69 ], [ 0, %44 ]
  %.454 = phi i32 [ %.5, %69 ], [ %.3, %44 ]
  %51 = getelementptr inbounds i8, ptr %50, i64 28288
  %52 = getelementptr inbounds [64 x ptr], ptr %51, i64 0, i64 %indvars.iv
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %.not51 = icmp eq ptr %53, null
  br i1 %.not51, label %._crit_edge, label %54

54:                                               ; preds = %.lr.ph
  %55 = getelementptr inbounds i8, ptr %53, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !28
  %57 = getelementptr inbounds i8, ptr %56, i64 20
  %58 = load i32, ptr %57, align 4, !tbaa !29
  %59 = icmp eq i32 %58, 13
  br i1 %59, label %60, label %69

60:                                               ; preds = %54
  %61 = getelementptr inbounds i8, ptr %56, i64 52
  %62 = load i8, ptr %61, align 4, !tbaa !19, !range !20, !noundef !21
  %63 = trunc nuw i8 %62 to i1
  br i1 %63, label %69, label %64

64:                                               ; preds = %60
  store i8 1, ptr %61, align 4, !tbaa !19
  %65 = getelementptr inbounds i8, ptr %53, i64 28812
  store i8 1, ptr %65, align 4, !tbaa !23
  %66 = add nsw i32 %.454, 1
  %67 = sext i32 %.454 to i64
  %68 = getelementptr inbounds [2048 x ptr], ptr %2, i64 0, i64 %67
  store ptr %56, ptr %68, align 8, !tbaa !5
  %.pre = load ptr, ptr %45, align 8, !tbaa !22
  br label %69

69:                                               ; preds = %64, %60, %54
  %70 = phi ptr [ %50, %60 ], [ %.pre, %64 ], [ %50, %54 ]
  %.5 = phi i32 [ %.454, %60 ], [ %66, %64 ], [ %.454, %54 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %71 = getelementptr inbounds i8, ptr %70, i64 28804
  %72 = load i32, ptr %71, align 4, !tbaa !27
  %73 = sext i32 %72 to i64
  %74 = icmp slt i64 %indvars.iv.next, %73
  br i1 %74, label %.lr.ph, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %69, %.lr.ph, %44
  %.4.lcssa = phi i32 [ %.3, %44 ], [ %.454, %.lr.ph ], [ %.5, %69 ]
  %.not46 = icmp eq i32 %.4.lcssa, 0
  br i1 %.not46, label %._crit_edge60, label %.lr.ph59, !llvm.loop !31

._crit_edge60:                                    ; preds = %._crit_edge, %.preheader
  call void @llvm.lifetime.end.p0(i64 16384, ptr nonnull %2) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "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 = { noreturn nounwind "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 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 }
attributes #5 = { noreturn 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 32}
!12 = !{!"insn", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !14, i64 52, !6, i64 56, !6, i64 64, !7, i64 72}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!16, !6, i64 928}
!16 = !{!"var", !7, i64 0, !7, i64 32, !13, i64 64, !14, i64 68, !14, i64 69, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !6, i64 96, !13, i64 104, !7, i64 112, !13, i64 624, !17, i64 628, !18, i64 896, !6, i64 912, !6, i64 920, !6, i64 928, !13, i64 936, !14, i64 940, !14, i64 941, !14, i64 942}
!17 = !{!"", !13, i64 0, !7, i64 4, !13, i64 260}
!18 = !{!"ref_block_list", !6, i64 0, !6, i64 8}
!19 = !{!12, !14, i64 52}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!12, !6, i64 56}
!23 = !{!24, !14, i64 28812}
!24 = !{!"basic_block", !25, i64 0, !25, 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, !13, i64 8536, !7, i64 8544, !13, i64 14944, !7, i64 14952, !13, i64 21352, !7, i64 21360, !13, i64 27760, !13, i64 27764, !13, i64 27768, !7, i64 27776, !7, i64 28288, !13, i64 28800, !13, i64 28804, !13, i64 28808, !14, i64 28812, !7, i64 28816, !6, i64 29328, !7, i64 29336, !6, i64 31384, !6, i64 31392, !6, i64 31400, !25, i64 31408, !13, i64 31424}
!25 = !{!"", !6, i64 0, !6, i64 8}
!26 = !{!12, !6, i64 40}
!27 = !{!24, !13, i64 28804}
!28 = !{!24, !6, i64 8}
!29 = !{!12, !13, i64 20}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}


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