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

; 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 void @new_name(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @rename_var(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @pop_name(ptr noundef) #1

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

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

14:                                               ; preds = %66, %1
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %18, label %17

17:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  br label %70

18:                                               ; preds = %14
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.insn, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 4, !tbaa !14
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %29

23:                                               ; preds = %18
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.basic_block, ptr %24, i32 0, i32 31
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.insn, ptr %27, i32 0, i32 4
  call void @new_name(ptr noundef %26, ptr noundef %28)
  br label %65

29:                                               ; preds = %18
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.insn, ptr %30, i32 0, i32 5
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %29
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.insn, ptr %35, i32 0, i32 5
  call void @rename_var(ptr noundef %36)
  br label %37

37:                                               ; preds = %34, %29
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.insn, ptr %38, i32 0, i32 6
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %53

42:                                               ; preds = %37
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.insn, ptr %43, i32 0, i32 6
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = getelementptr inbounds %struct.var, ptr %45, i32 0, i32 3
  %47 = load i8, ptr %46, align 4, !tbaa !19, !range !23, !noundef !24
  %48 = trunc i8 %47 to i1
  br i1 %48, label %52, label %49

49:                                               ; preds = %42
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.insn, ptr %50, i32 0, i32 6
  call void @rename_var(ptr noundef %51)
  br label %52

52:                                               ; preds = %49, %42
  br label %53

53:                                               ; preds = %52, %37
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.insn, ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !25
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %64

58:                                               ; preds = %53
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.basic_block, ptr %59, i32 0, i32 31
  %61 = load ptr, ptr %60, align 8, !tbaa !16
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.insn, ptr %62, i32 0, i32 4
  call void @new_name(ptr noundef %61, ptr noundef %63)
  br label %64

64:                                               ; preds = %58, %53
  br label %65

65:                                               ; preds = %64, %23
  br label %66

66:                                               ; preds = %65
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.insn, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  store ptr %69, ptr %3, align 8, !tbaa !5
  br label %14, !llvm.loop !27

70:                                               ; preds = %17
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.basic_block, ptr %71, i32 0, i32 3
  %73 = load ptr, ptr %72, align 8, !tbaa !29
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %103

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.basic_block, ptr %76, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !29
  %79 = getelementptr inbounds %struct.basic_block, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds %struct.insn_list_t, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  store ptr %81, ptr %4, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %98, %75
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %86, label %85

85:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  br label %102

86:                                               ; preds = %82
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.insn, ptr %87, i32 0, i32 3
  %89 = load i32, ptr %88, align 4, !tbaa !14
  %90 = icmp eq i32 %89, 1
  br i1 %90, label %91, label %97

91:                                               ; preds = %86
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.insn, ptr %93, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !25
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  call void @append_phi_operand(ptr noundef %92, ptr noundef %95, ptr noundef %96)
  br label %97

97:                                               ; preds = %91, %86
  br label %98

98:                                               ; preds = %97
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.insn, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !26
  store ptr %101, ptr %4, align 8, !tbaa !5
  br label %82, !llvm.loop !30

102:                                              ; preds = %85
  br label %103

103:                                              ; preds = %102, %70
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.basic_block, ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !31
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %136

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.basic_block, ptr %109, i32 0, i32 4
  %111 = load ptr, ptr %110, align 8, !tbaa !31
  %112 = getelementptr inbounds %struct.basic_block, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %struct.insn_list_t, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  store ptr %114, ptr %5, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %131, %108
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %119, label %118

118:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  br label %135

119:                                              ; preds = %115
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.insn, ptr %120, i32 0, i32 3
  %122 = load i32, ptr %121, align 4, !tbaa !14
  %123 = icmp eq i32 %122, 1
  br i1 %123, label %124, label %130

124:                                              ; preds = %119
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.insn, ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !25
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  call void @append_phi_operand(ptr noundef %125, ptr noundef %128, ptr noundef %129)
  br label %130

130:                                              ; preds = %124, %119
  br label %131

131:                                              ; preds = %130
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.insn, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !26
  store ptr %134, ptr %5, align 8, !tbaa !5
  br label %115, !llvm.loop !32

135:                                              ; preds = %118
  br label %136

136:                                              ; preds = %135, %103
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.basic_block, ptr %137, i32 0, i32 5
  %139 = load ptr, ptr %138, align 8, !tbaa !33
  %140 = icmp ne ptr %139, null
  br i1 %140, label %141, label %169

141:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.basic_block, ptr %142, i32 0, i32 5
  %144 = load ptr, ptr %143, align 8, !tbaa !33
  %145 = getelementptr inbounds %struct.basic_block, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds %struct.insn_list_t, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  store ptr %147, ptr %6, align 8, !tbaa !5
  br label %148

148:                                              ; preds = %164, %141
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = icmp ne ptr %149, null
  br i1 %150, label %152, label %151

151:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  br label %168

152:                                              ; preds = %148
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.insn, ptr %153, i32 0, i32 3
  %155 = load i32, ptr %154, align 4, !tbaa !14
  %156 = icmp eq i32 %155, 1
  br i1 %156, label %157, label %163

157:                                              ; preds = %152
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.insn, ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !25
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  call void @append_phi_operand(ptr noundef %158, ptr noundef %161, ptr noundef %162)
  br label %163

163:                                              ; preds = %157, %152
  br label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.insn, ptr %165, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !26
  store ptr %167, ptr %6, align 8, !tbaa !5
  br label %148, !llvm.loop !34

168:                                              ; preds = %151
  br label %169

169:                                              ; preds = %168, %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 0, ptr %7, align 4, !tbaa !35
  br label %170

170:                                              ; preds = %190, %169
  %171 = load i32, ptr %7, align 4, !tbaa !35
  %172 = icmp slt i32 %171, 64
  br i1 %172, label %174, label %173

173:                                              ; preds = %170
  store i32 14, ptr %8, align 4
  br label %193

174:                                              ; preds = %170
  %175 = load ptr, ptr %2, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.basic_block, ptr %175, i32 0, i32 26
  %177 = load i32, ptr %7, align 4, !tbaa !35
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [64 x ptr], ptr %176, i64 0, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = icmp ne ptr %180, null
  br i1 %181, label %183, label %182

182:                                              ; preds = %174
  store i32 14, ptr %8, align 4
  br label %193

183:                                              ; preds = %174
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.basic_block, ptr %184, i32 0, i32 26
  %186 = load i32, ptr %7, align 4, !tbaa !35
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [64 x ptr], ptr %185, i64 0, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  call void @bb_solve_phi_params(ptr noundef %189)
  br label %190

190:                                              ; preds = %183
  %191 = load i32, ptr %7, align 4, !tbaa !35
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %7, align 4, !tbaa !35
  br label %170, !llvm.loop !36

193:                                              ; preds = %182, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %194

194:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.basic_block, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds %struct.insn_list_t, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !9
  store ptr %198, ptr %9, align 8, !tbaa !5
  br label %199

199:                                              ; preds = %223, %194
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  %201 = icmp ne ptr %200, null
  br i1 %201, label %203, label %202

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

203:                                              ; preds = %199
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.insn, ptr %204, i32 0, i32 3
  %206 = load i32, ptr %205, align 4, !tbaa !14
  %207 = icmp eq i32 %206, 1
  br i1 %207, label %208, label %212

208:                                              ; preds = %203
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.insn, ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !25
  call void @pop_name(ptr noundef %211)
  br label %222

212:                                              ; preds = %203
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.insn, ptr %213, i32 0, i32 4
  %215 = load ptr, ptr %214, align 8, !tbaa !25
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %221

217:                                              ; preds = %212
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.insn, ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !25
  call void @pop_name(ptr noundef %220)
  br label %221

221:                                              ; preds = %217, %212
  br label %222

222:                                              ; preds = %221, %208
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.insn, ptr %224, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8, !tbaa !26
  store ptr %226, ptr %9, align 8, !tbaa !5
  br label %199, !llvm.loop !37

227:                                              ; preds = %202
  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, !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 = !{!"basic_block", !11, i64 0, !11, 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, !11, i64 31408, !12, i64 31424}
!11 = !{!"", !6, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!15, !12, i64 20}
!15 = !{!"insn", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !13, i64 52, !6, i64 56, !6, i64 64, !7, i64 72}
!16 = !{!10, !6, i64 31400}
!17 = !{!15, !6, i64 32}
!18 = !{!15, !6, i64 40}
!19 = !{!20, !13, i64 68}
!20 = !{!"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, !21, i64 628, !22, i64 896, !6, i64 912, !6, i64 920, !6, i64 928, !12, i64 936, !13, i64 940, !13, i64 941, !13, i64 942}
!21 = !{!"", !12, i64 0, !7, i64 4, !12, i64 260}
!22 = !{!"ref_block_list", !6, i64 0, !6, i64 8}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!15, !6, i64 24}
!26 = !{!15, !6, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!10, !6, i64 2080}
!30 = distinct !{!30, !28}
!31 = !{!10, !6, i64 2088}
!32 = distinct !{!32, !28}
!33 = !{!10, !6, i64 2096}
!34 = distinct !{!34, !28}
!35 = !{!12, !12, i64 0}
!36 = distinct !{!36, !28}
!37 = distinct !{!37, !28}


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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @bb_solve_phi_params(ptr noundef %0) local_unnamed_addr #0 {
  %.05477 = load ptr, ptr %0, align 8, !tbaa !5
  %.not78 = icmp eq ptr %.05477, null
  br i1 %.not78, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %2 = getelementptr inbounds i8, ptr %0, i64 31400
  br label %5

._crit_edge:                                      ; preds = %29, %1
  %3 = getelementptr inbounds i8, ptr %0, i64 2080
  %4 = load ptr, ptr %3, align 8, !tbaa !9
  %.not61 = icmp eq ptr %4, null
  br i1 %.not61, label %.loopexit76, label %.preheader75

.preheader75:                                     ; preds = %._crit_edge
  %.05380 = load ptr, ptr %4, align 8, !tbaa !5
  %.not6281 = icmp eq ptr %.05380, null
  br i1 %.not6281, label %.loopexit76, label %.lr.ph83

5:                                                ; preds = %.lr.ph, %29
  %.05479 = phi ptr [ %.05477, %.lr.ph ], [ %.054, %29 ]
  %6 = getelementptr inbounds i8, ptr %.05479, i64 20
  %7 = load i32, ptr %6, align 4, !tbaa !14
  %8 = icmp eq i32 %7, 1
  br i1 %8, label %9, label %12

9:                                                ; preds = %5
  %10 = load ptr, ptr %2, align 8, !tbaa !16
  %11 = getelementptr inbounds i8, ptr %.05479, i64 24
  tail call void @new_name(ptr noundef %10, ptr noundef nonnull %11)
  br label %29

12:                                               ; preds = %5
  %13 = getelementptr inbounds i8, ptr %.05479, i64 32
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %.not70 = icmp eq ptr %14, null
  br i1 %.not70, label %16, label %15

15:                                               ; preds = %12
  tail call void @rename_var(ptr noundef nonnull %13)
  br label %16

16:                                               ; preds = %15, %12
  %17 = getelementptr inbounds i8, ptr %.05479, i64 40
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %.not71 = icmp eq ptr %18, null
  br i1 %.not71, label %24, label %19

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

23:                                               ; preds = %19
  tail call void @rename_var(ptr noundef nonnull %17)
  br label %24

24:                                               ; preds = %19, %23, %16
  %25 = getelementptr inbounds i8, ptr %.05479, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !25
  %.not72 = icmp eq ptr %26, null
  br i1 %.not72, label %29, label %27

27:                                               ; preds = %24
  %28 = load ptr, ptr %2, align 8, !tbaa !16
  tail call void @new_name(ptr noundef %28, ptr noundef nonnull %25)
  br label %29

29:                                               ; preds = %9, %27, %24
  %.054 = load ptr, ptr %.05479, align 8, !tbaa !5
  %.not = icmp eq ptr %.054, null
  br i1 %.not, label %._crit_edge, label %5, !llvm.loop !26

.lr.ph83:                                         ; preds = %.preheader75, %36
  %.05382 = phi ptr [ %.053, %36 ], [ %.05380, %.preheader75 ]
  %30 = getelementptr inbounds i8, ptr %.05382, i64 20
  %31 = load i32, ptr %30, align 4, !tbaa !14
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %36

33:                                               ; preds = %.lr.ph83
  %34 = getelementptr inbounds i8, ptr %.05382, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !25
  tail call void @append_phi_operand(ptr noundef nonnull %.05382, ptr noundef %35, ptr noundef nonnull %0)
  br label %36

36:                                               ; preds = %.lr.ph83, %33
  %.053 = load ptr, ptr %.05382, align 8, !tbaa !5
  %.not62 = icmp eq ptr %.053, null
  br i1 %.not62, label %.loopexit76, label %.lr.ph83, !llvm.loop !28

.loopexit76:                                      ; preds = %36, %.preheader75, %._crit_edge
  %37 = getelementptr inbounds i8, ptr %0, i64 2088
  %38 = load ptr, ptr %37, align 8, !tbaa !29
  %.not63 = icmp eq ptr %38, null
  br i1 %.not63, label %.loopexit74, label %.preheader73

.preheader73:                                     ; preds = %.loopexit76
  %.05284 = load ptr, ptr %38, align 8, !tbaa !5
  %.not6485 = icmp eq ptr %.05284, null
  br i1 %.not6485, label %.loopexit74, label %.lr.ph87

.lr.ph87:                                         ; preds = %.preheader73, %45
  %.05286 = phi ptr [ %.052, %45 ], [ %.05284, %.preheader73 ]
  %39 = getelementptr inbounds i8, ptr %.05286, i64 20
  %40 = load i32, ptr %39, align 4, !tbaa !14
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %42, label %45

42:                                               ; preds = %.lr.ph87
  %43 = getelementptr inbounds i8, ptr %.05286, i64 24
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  tail call void @append_phi_operand(ptr noundef nonnull %.05286, ptr noundef %44, ptr noundef nonnull %0)
  br label %45

45:                                               ; preds = %.lr.ph87, %42
  %.052 = load ptr, ptr %.05286, align 8, !tbaa !5
  %.not64 = icmp eq ptr %.052, null
  br i1 %.not64, label %.loopexit74, label %.lr.ph87, !llvm.loop !30

.loopexit74:                                      ; preds = %45, %.preheader73, %.loopexit76
  %46 = getelementptr inbounds i8, ptr %0, i64 2096
  %47 = load ptr, ptr %46, align 8, !tbaa !31
  %.not65 = icmp eq ptr %47, null
  br i1 %.not65, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.loopexit74
  %.05188 = load ptr, ptr %47, align 8, !tbaa !5
  %.not6689 = icmp eq ptr %.05188, null
  br i1 %.not6689, label %.loopexit, label %.lr.ph91

.lr.ph91:                                         ; preds = %.preheader, %54
  %.05190 = phi ptr [ %.051, %54 ], [ %.05188, %.preheader ]
  %48 = getelementptr inbounds i8, ptr %.05190, i64 20
  %49 = load i32, ptr %48, align 4, !tbaa !14
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %51, label %54

51:                                               ; preds = %.lr.ph91
  %52 = getelementptr inbounds i8, ptr %.05190, i64 24
  %53 = load ptr, ptr %52, align 8, !tbaa !25
  tail call void @append_phi_operand(ptr noundef nonnull %.05190, ptr noundef %53, ptr noundef nonnull %0)
  br label %54

54:                                               ; preds = %.lr.ph91, %51
  %.051 = load ptr, ptr %.05190, align 8, !tbaa !5
  %.not66 = icmp eq ptr %.051, null
  br i1 %.not66, label %.loopexit, label %.lr.ph91, !llvm.loop !32

.loopexit:                                        ; preds = %54, %.preheader, %.loopexit74
  %55 = getelementptr inbounds i8, ptr %0, i64 28816
  br label %56

56:                                               ; preds = %.loopexit, %59
  %indvars.iv = phi i64 [ 0, %.loopexit ], [ %indvars.iv.next, %59 ]
  %57 = getelementptr inbounds [64 x ptr], ptr %55, i64 0, i64 %indvars.iv
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %.not67 = icmp eq ptr %58, null
  br i1 %.not67, label %60, label %59

59:                                               ; preds = %56
  tail call void @bb_solve_phi_params(ptr noundef nonnull %58)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 64
  br i1 %exitcond.not, label %60, label %56, !llvm.loop !33

60:                                               ; preds = %56, %59
  %.093 = load ptr, ptr %0, align 8, !tbaa !5
  %.not6894 = icmp eq ptr %.093, null
  br i1 %.not6894, label %._crit_edge98, label %.lr.ph97

._crit_edge98:                                    ; preds = %69, %60
  ret void

.lr.ph97:                                         ; preds = %60, %69
  %.095 = phi ptr [ %.0, %69 ], [ %.093, %60 ]
  %61 = getelementptr inbounds i8, ptr %.095, i64 20
  %62 = load i32, ptr %61, align 4, !tbaa !14
  %63 = icmp eq i32 %62, 1
  %64 = getelementptr inbounds i8, ptr %.095, i64 24
  %65 = load ptr, ptr %64, align 8, !tbaa !25
  br i1 %63, label %66, label %67

66:                                               ; preds = %.lr.ph97
  tail call void @pop_name(ptr noundef %65)
  br label %69

67:                                               ; preds = %.lr.ph97
  %.not69 = icmp eq ptr %65, null
  br i1 %.not69, label %69, label %68

68:                                               ; preds = %67
  tail call void @pop_name(ptr noundef nonnull %65)
  br label %69

69:                                               ; preds = %66, %68, %67
  %.0 = load ptr, ptr %.095, align 8, !tbaa !5
  %.not68 = icmp eq ptr %.0, null
  br i1 %.not68, label %._crit_edge98, label %.lr.ph97, !llvm.loop !34
}

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 2080}
!10 = !{!"basic_block", !11, i64 0, !11, 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, !11, i64 31408, !12, i64 31424}
!11 = !{!"", !6, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!15, !12, i64 20}
!15 = !{!"insn", !6, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !13, i64 52, !6, i64 56, !6, i64 64, !7, i64 72}
!16 = !{!10, !6, i64 31400}
!17 = !{!15, !6, i64 32}
!18 = !{!15, !6, i64 40}
!19 = !{!20, !13, i64 68}
!20 = !{!"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, !21, i64 628, !22, i64 896, !6, i64 912, !6, i64 920, !6, i64 928, !12, i64 936, !13, i64 940, !13, i64 941, !13, i64 942}
!21 = !{!"", !12, i64 0, !7, i64 4, !12, i64 260}
!22 = !{!"ref_block_list", !6, i64 0, !6, i64 8}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!15, !6, i64 24}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!10, !6, i64 2088}
!30 = distinct !{!30, !27}
!31 = !{!10, !6, i64 2096}
!32 = distinct !{!32, !27}
!33 = distinct !{!33, !27}
!34 = distinct !{!34, !27}


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