; LLVM IR from brpapa/algorithms :: solutions/uva/10651.ll (Z2dpi)

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

@memo = external dso_local global [8192 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z2dpi(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [8192 x i32], ptr @memo, i64 0, i64 %11
  store ptr %12, ptr %4, align 8, !tbaa !9
  %13 = load ptr, ptr %4, align 8, !tbaa !9
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = icmp ne i32 %14, -1
  br i1 %15, label %16, label %19

16:                                               ; preds = %1
  %17 = load ptr, ptr %4, align 8, !tbaa !9
  %18 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %18, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %131

19:                                               ; preds = %1
  %20 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 13, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %66, %19
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = icmp sle i32 %22, 9
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %69

25:                                               ; preds = %21
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = shl i32 1, %27
  %29 = and i32 %26, %28
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %65, label %31

31:                                               ; preds = %25
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  %35 = shl i32 1, %34
  %36 = and i32 %32, %35
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %65

38:                                               ; preds = %31
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = add nsw i32 %40, 2
  %42 = shl i32 1, %41
  %43 = and i32 %39, %42
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %65

45:                                               ; preds = %38
  %46 = load ptr, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  %50 = shl i32 1, %49
  %51 = xor i32 %50, -1
  %52 = and i32 %47, %51
  %53 = load i32, ptr %6, align 4, !tbaa !5
  %54 = add nsw i32 %53, 2
  %55 = shl i32 1, %54
  %56 = xor i32 %55, -1
  %57 = and i32 %52, %56
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = shl i32 1, %58
  %60 = or i32 %57, %59
  %61 = call noundef i32 @_Z2dpi(i32 noundef %60)
  store i32 %61, ptr %7, align 4, !tbaa !5
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 %63, ptr %64, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %65

65:                                               ; preds = %45, %38, %31, %25
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %6, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %6, align 4, !tbaa !5
  br label %21, !llvm.loop !11

69:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 11, ptr %8, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %115, %69
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = icmp sge i32 %71, 2
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %118

74:                                               ; preds = %70
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = shl i32 1, %76
  %78 = and i32 %75, %77
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %114, label %80

80:                                               ; preds = %74
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = sub nsw i32 %82, 1
  %84 = shl i32 1, %83
  %85 = and i32 %81, %84
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %114

87:                                               ; preds = %80
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = sub nsw i32 %89, 2
  %91 = shl i32 1, %90
  %92 = and i32 %88, %91
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %114

94:                                               ; preds = %87
  %95 = load ptr, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %96 = load i32, ptr %3, align 4, !tbaa !5
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = sub nsw i32 %97, 1
  %99 = shl i32 1, %98
  %100 = xor i32 %99, -1
  %101 = and i32 %96, %100
  %102 = load i32, ptr %8, align 4, !tbaa !5
  %103 = sub nsw i32 %102, 2
  %104 = shl i32 1, %103
  %105 = xor i32 %104, -1
  %106 = and i32 %101, %105
  %107 = load i32, ptr %8, align 4, !tbaa !5
  %108 = shl i32 1, %107
  %109 = or i32 %106, %108
  %110 = call noundef i32 @_Z2dpi(i32 noundef %109)
  store i32 %110, ptr %9, align 4, !tbaa !5
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %95, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 %112, ptr %113, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %114

114:                                              ; preds = %94, %87, %80, %74
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %8, align 4, !tbaa !5
  br label %70, !llvm.loop !13

118:                                              ; preds = %73
  %119 = load ptr, ptr %4, align 8, !tbaa !9
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = icmp slt i32 %120, 13
  br i1 %121, label %122, label %125

122:                                              ; preds = %118
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  %124 = load i32, ptr %123, align 4, !tbaa !5
  br label %128

125:                                              ; preds = %118
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = call i32 @llvm.ctpop.i32(i32 %126)
  br label %128

128:                                              ; preds = %125, %122
  %129 = phi i32 [ %124, %122 ], [ %127, %125 ]
  %130 = load ptr, ptr %4, align 8, !tbaa !9
  store i32 %129, ptr %130, align 4, !tbaa !5
  store i32 %129, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %131

131:                                              ; preds = %128, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %132 = load i32, ptr %2, align 4
  ret i32 %132
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #3

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

@memo = external dso_local global [8192 x i32], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z2dpi(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = sext i32 %0 to i64
  %5 = getelementptr inbounds [8192 x i32], ptr @memo, i64 0, i64 %4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i32 %6, -1
  br i1 %.not, label %7, label %198

7:                                                ; preds = %1
  store i32 13, ptr %5, align 4, !tbaa !5
  %8 = and i32 %0, 1
  %.not43 = icmp eq i32 %8, 0
  %9 = and i32 %0, 2
  %.not44 = icmp eq i32 %9, 0
  br i1 %.not43, label %10, label %19

10:                                               ; preds = %7
  br i1 %.not44, label %.thread78, label %11

11:                                               ; preds = %10
  %12 = and i32 %0, 4
  %.not45 = icmp eq i32 %12, 0
  br i1 %.not45, label %.thread, label %13

13:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %14 = and i32 %0, -8
  %15 = or disjoint i32 %14, 1
  %16 = tail call noundef i32 @_Z2dpi(i32 noundef %15)
  store i32 %16, ptr %2, align 4, !tbaa !5
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %18 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %18, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.thread

19:                                               ; preds = %7
  br i1 %.not44, label %.thread78, label %.thread

.thread78:                                        ; preds = %10, %19
  %20 = and i32 %0, 4
  %.not44.1 = icmp eq i32 %20, 0
  br i1 %.not44.1, label %.thread92, label %21

21:                                               ; preds = %.thread78
  %22 = and i32 %0, 8
  %.not45.1 = icmp eq i32 %22, 0
  br i1 %.not45.1, label %.thread84, label %23

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %24 = and i32 %0, -15
  %25 = or disjoint i32 %24, 2
  %26 = tail call noundef i32 @_Z2dpi(i32 noundef %25)
  store i32 %26, ptr %2, align 4, !tbaa !5
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %28 = load i32, ptr %27, align 4, !tbaa !5
  store i32 %28, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.thread84

.thread:                                          ; preds = %13, %11, %19
  %29 = phi i32 [ 13, %19 ], [ %18, %13 ], [ 13, %11 ]
  %.pre56 = and i32 %0, 4
  %.not43.2 = icmp eq i32 %.pre56, 0
  br i1 %.not43.2, label %.thread92, label %.thread84

.thread92:                                        ; preds = %.thread78, %.thread
  %30 = phi i32 [ %29, %.thread ], [ 13, %.thread78 ]
  %.not43.17696 = phi i1 [ false, %.thread ], [ true, %.thread78 ]
  %31 = and i32 %0, 8
  %.not44.2 = icmp eq i32 %31, 0
  br i1 %.not44.2, label %.thread111, label %32

32:                                               ; preds = %.thread92
  %33 = and i32 %0, 16
  %.not45.2 = icmp eq i32 %33, 0
  br i1 %.not45.2, label %.thread100, label %34

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %35 = and i32 %0, -29
  %36 = or disjoint i32 %35, 4
  %37 = call noundef i32 @_Z2dpi(i32 noundef %36)
  store i32 %37, ptr %2, align 4, !tbaa !5
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %39 = load i32, ptr %38, align 4, !tbaa !5
  store i32 %39, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.thread100

.thread84:                                        ; preds = %21, %23, %.thread
  %40 = phi i32 [ %29, %.thread ], [ 13, %21 ], [ %28, %23 ]
  %.not43.17689 = phi i1 [ false, %.thread ], [ true, %21 ], [ true, %23 ]
  %.pre58 = and i32 %0, 8
  %.not43.3 = icmp eq i32 %.pre58, 0
  br i1 %.not43.3, label %.thread111, label %.thread100

.thread111:                                       ; preds = %.thread92, %.thread84
  %41 = phi i32 [ %40, %.thread84 ], [ %30, %.thread92 ]
  %.not43.17688117 = phi i1 [ %.not43.17689, %.thread84 ], [ %.not43.17696, %.thread92 ]
  %.not43.290116 = phi i1 [ false, %.thread84 ], [ true, %.thread92 ]
  %42 = and i32 %0, 16
  %.not44.3 = icmp eq i32 %42, 0
  br i1 %.not44.3, label %.thread135, label %43

43:                                               ; preds = %.thread111
  %44 = and i32 %0, 32
  %.not45.3 = icmp eq i32 %44, 0
  br i1 %.not45.3, label %.thread121, label %45

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %46 = and i32 %0, -57
  %47 = or disjoint i32 %46, 8
  %48 = call noundef i32 @_Z2dpi(i32 noundef %47)
  store i32 %48, ptr %2, align 4, !tbaa !5
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %50 = load i32, ptr %49, align 4, !tbaa !5
  store i32 %50, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.thread121

.thread100:                                       ; preds = %32, %34, %.thread84
  %51 = phi i32 [ %40, %.thread84 ], [ %30, %32 ], [ %39, %34 ]
  %.not43.17688108 = phi i1 [ %.not43.17689, %.thread84 ], [ %.not43.17696, %32 ], [ %.not43.17696, %34 ]
  %.not43.290106 = phi i1 [ false, %.thread84 ], [ true, %32 ], [ true, %34 ]
  %.pre60 = and i32 %0, 16
  %.not43.4 = icmp eq i32 %.pre60, 0
  br i1 %.not43.4, label %.thread135, label %.thread121

.thread135:                                       ; preds = %.thread111, %.thread100
  %52 = phi i32 [ %51, %.thread100 ], [ %41, %.thread111 ]
  %.not43.290105143 = phi i1 [ %.not43.290106, %.thread100 ], [ %.not43.290116, %.thread111 ]
  %.not43.17688107142 = phi i1 [ %.not43.17688108, %.thread100 ], [ %.not43.17688117, %.thread111 ]
  %.not43.3109141 = phi i1 [ false, %.thread100 ], [ true, %.thread111 ]
  %53 = and i32 %0, 32
  %.not44.4 = icmp eq i32 %53, 0
  br i1 %.not44.4, label %.thread164, label %54

54:                                               ; preds = %.thread135
  %55 = and i32 %0, 64
  %.not45.4 = icmp eq i32 %55, 0
  br i1 %.not45.4, label %.thread147, label %56

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %57 = and i32 %0, -113
  %58 = or disjoint i32 %57, 16
  %59 = call noundef i32 @_Z2dpi(i32 noundef %58)
  store i32 %59, ptr %2, align 4, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %61 = load i32, ptr %60, align 4, !tbaa !5
  store i32 %61, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.thread147

.thread121:                                       ; preds = %43, %45, %.thread100
  %62 = phi i32 [ %51, %.thread100 ], [ %41, %43 ], [ %50, %45 ]
  %.not43.290105132 = phi i1 [ %.not43.290106, %.thread100 ], [ %.not43.290116, %43 ], [ %.not43.290116, %45 ]
  %.not43.17688107130 = phi i1 [ %.not43.17688108, %.thread100 ], [ %.not43.17688117, %43 ], [ %.not43.17688117, %45 ]
  %.not43.3109128 = phi i1 [ false, %.thread100 ], [ true, %43 ], [ true, %45 ]
  %.pre62 = and i32 %0, 32
  %.not43.5 = icmp eq i32 %.pre62, 0
  br i1 %.not43.5, label %.thread164, label %.thread147

.thread164:                                       ; preds = %.thread135, %.thread121
  %63 = phi i32 [ %62, %.thread121 ], [ %52, %.thread135 ]
  %.not43.3109127174 = phi i1 [ %.not43.3109128, %.thread121 ], [ %.not43.3109141, %.thread135 ]
  %.not43.17688107129173 = phi i1 [ %.not43.17688107130, %.thread121 ], [ %.not43.17688107142, %.thread135 ]
  %.not43.290105131172 = phi i1 [ %.not43.290105132, %.thread121 ], [ %.not43.290105143, %.thread135 ]
  %.not43.4133171 = phi i1 [ false, %.thread121 ], [ true, %.thread135 ]
  %64 = and i32 %0, 64
  %.not44.5 = icmp eq i32 %64, 0
  br i1 %.not44.5, label %.thread198, label %65

65:                                               ; preds = %.thread164
  %66 = and i32 %0, 128
  %.not45.5 = icmp eq i32 %66, 0
  br i1 %.not45.5, label %.thread178, label %67

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %68 = and i32 %0, -225
  %69 = or disjoint i32 %68, 32
  %70 = call noundef i32 @_Z2dpi(i32 noundef %69)
  store i32 %70, ptr %2, align 4, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %72 = load i32, ptr %71, align 4, !tbaa !5
  store i32 %72, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.thread178

.thread147:                                       ; preds = %54, %56, %.thread121
  %73 = phi i32 [ %62, %.thread121 ], [ %52, %54 ], [ %61, %56 ]
  %.not43.3109127161 = phi i1 [ %.not43.3109128, %.thread121 ], [ %.not43.3109141, %54 ], [ %.not43.3109141, %56 ]
  %.not43.17688107129159 = phi i1 [ %.not43.17688107130, %.thread121 ], [ %.not43.17688107142, %54 ], [ %.not43.17688107142, %56 ]
  %.not43.290105131157 = phi i1 [ %.not43.290105132, %.thread121 ], [ %.not43.290105143, %54 ], [ %.not43.290105143, %56 ]
  %.not43.4133155 = phi i1 [ false, %.thread121 ], [ true, %54 ], [ true, %56 ]
  %.pre64 = and i32 %0, 64
  %.not43.6 = icmp eq i32 %.pre64, 0
  br i1 %.not43.6, label %.thread198, label %.thread178

.thread198:                                       ; preds = %.thread164, %.thread147
  %74 = phi i32 [ %73, %.thread147 ], [ %63, %.thread164 ]
  %.not43.4133154210 = phi i1 [ %.not43.4133155, %.thread147 ], [ %.not43.4133171, %.thread164 ]
  %.not43.290105131156209 = phi i1 [ %.not43.290105131157, %.thread147 ], [ %.not43.290105131172, %.thread164 ]
  %.not43.17688107129158208 = phi i1 [ %.not43.17688107129159, %.thread147 ], [ %.not43.17688107129173, %.thread164 ]
  %.not43.3109127160207 = phi i1 [ %.not43.3109127161, %.thread147 ], [ %.not43.3109127174, %.thread164 ]
  %.not43.5162206 = phi i1 [ false, %.thread147 ], [ true, %.thread164 ]
  %75 = and i32 %0, 128
  %.not44.6 = icmp eq i32 %75, 0
  br i1 %.not44.6, label %.thread237, label %76

76:                                               ; preds = %.thread198
  %77 = and i32 %0, 256
  %.not45.6 = icmp eq i32 %77, 0
  br i1 %.not45.6, label %.thread214, label %78

78:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %79 = and i32 %0, -449
  %80 = or disjoint i32 %79, 64
  %81 = call noundef i32 @_Z2dpi(i32 noundef %80)
  store i32 %81, ptr %2, align 4, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.thread214

.thread178:                                       ; preds = %65, %67, %.thread147
  %84 = phi i32 [ %73, %.thread147 ], [ %63, %65 ], [ %72, %67 ]
  %.not43.4133154195 = phi i1 [ %.not43.4133155, %.thread147 ], [ %.not43.4133171, %65 ], [ %.not43.4133171, %67 ]
  %.not43.290105131156193 = phi i1 [ %.not43.290105131157, %.thread147 ], [ %.not43.290105131172, %65 ], [ %.not43.290105131172, %67 ]
  %.not43.17688107129158191 = phi i1 [ %.not43.17688107129159, %.thread147 ], [ %.not43.17688107129173, %65 ], [ %.not43.17688107129173, %67 ]
  %.not43.3109127160189 = phi i1 [ %.not43.3109127161, %.thread147 ], [ %.not43.3109127174, %65 ], [ %.not43.3109127174, %67 ]
  %.not43.5162187 = phi i1 [ false, %.thread147 ], [ true, %65 ], [ true, %67 ]
  %.pre66 = and i32 %0, 128
  %.not43.7 = icmp eq i32 %.pre66, 0
  br i1 %.not43.7, label %.thread237, label %.thread214

.thread237:                                       ; preds = %.thread198, %.thread178
  %85 = phi i32 [ %84, %.thread178 ], [ %74, %.thread198 ]
  %.not43.5162186251 = phi i1 [ %.not43.5162187, %.thread178 ], [ %.not43.5162206, %.thread198 ]
  %.not43.3109127160188250 = phi i1 [ %.not43.3109127160189, %.thread178 ], [ %.not43.3109127160207, %.thread198 ]
  %.not43.17688107129158190249 = phi i1 [ %.not43.17688107129158191, %.thread178 ], [ %.not43.17688107129158208, %.thread198 ]
  %.not43.290105131156192248 = phi i1 [ %.not43.290105131156193, %.thread178 ], [ %.not43.290105131156209, %.thread198 ]
  %.not43.4133154194247 = phi i1 [ %.not43.4133154195, %.thread178 ], [ %.not43.4133154210, %.thread198 ]
  %.not43.6196246 = phi i1 [ false, %.thread178 ], [ true, %.thread198 ]
  %86 = and i32 %0, 256
  %.not44.7 = icmp eq i32 %86, 0
  br i1 %.not44.7, label %.thread281, label %87

87:                                               ; preds = %.thread237
  %88 = and i32 %0, 512
  %.not45.7 = icmp eq i32 %88, 0
  br i1 %.not45.7, label %.thread255, label %89

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %90 = and i32 %0, -897
  %91 = or disjoint i32 %90, 128
  %92 = call noundef i32 @_Z2dpi(i32 noundef %91)
  store i32 %92, ptr %2, align 4, !tbaa !5
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %94 = load i32, ptr %93, align 4, !tbaa !5
  store i32 %94, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.thread255

.thread214:                                       ; preds = %76, %78, %.thread178
  %95 = phi i32 [ %84, %.thread178 ], [ %74, %76 ], [ %83, %78 ]
  %.not43.5162186234 = phi i1 [ %.not43.5162187, %.thread178 ], [ %.not43.5162206, %76 ], [ %.not43.5162206, %78 ]
  %.not43.3109127160188232 = phi i1 [ %.not43.3109127160189, %.thread178 ], [ %.not43.3109127160207, %76 ], [ %.not43.3109127160207, %78 ]
  %.not43.17688107129158190230 = phi i1 [ %.not43.17688107129158191, %.thread178 ], [ %.not43.17688107129158208, %76 ], [ %.not43.17688107129158208, %78 ]
  %.not43.290105131156192228 = phi i1 [ %.not43.290105131156193, %.thread178 ], [ %.not43.290105131156209, %76 ], [ %.not43.290105131156209, %78 ]
  %.not43.4133154194226 = phi i1 [ %.not43.4133154195, %.thread178 ], [ %.not43.4133154210, %76 ], [ %.not43.4133154210, %78 ]
  %.not43.6196224 = phi i1 [ false, %.thread178 ], [ true, %76 ], [ true, %78 ]
  %.pre68 = and i32 %0, 256
  %.not43.8 = icmp eq i32 %.pre68, 0
  br i1 %.not43.8, label %.thread281, label %.thread255

.thread281:                                       ; preds = %.thread237, %.thread214
  %96 = phi i32 [ %95, %.thread214 ], [ %85, %.thread237 ]
  %.not43.6196223297 = phi i1 [ %.not43.6196224, %.thread214 ], [ %.not43.6196246, %.thread237 ]
  %.not43.4133154194225296 = phi i1 [ %.not43.4133154194226, %.thread214 ], [ %.not43.4133154194247, %.thread237 ]
  %.not43.290105131156192227295 = phi i1 [ %.not43.290105131156192228, %.thread214 ], [ %.not43.290105131156192248, %.thread237 ]
  %.not43.17688107129158190229294 = phi i1 [ %.not43.17688107129158190230, %.thread214 ], [ %.not43.17688107129158190249, %.thread237 ]
  %.not43.3109127160188231293 = phi i1 [ %.not43.3109127160188232, %.thread214 ], [ %.not43.3109127160188250, %.thread237 ]
  %.not43.5162186233292 = phi i1 [ %.not43.5162186234, %.thread214 ], [ %.not43.5162186251, %.thread237 ]
  %.not43.7235291 = phi i1 [ false, %.thread214 ], [ true, %.thread237 ]
  %97 = and i32 %0, 512
  %.not44.8 = icmp eq i32 %97, 0
  br i1 %.not44.8, label %.thread321, label %98

98:                                               ; preds = %.thread281
  %99 = and i32 %0, 1024
  %.not45.8 = icmp eq i32 %99, 0
  br i1 %.not45.8, label %.preheader.preheader, label %100

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %101 = and i32 %0, -1793
  %102 = or disjoint i32 %101, 256
  %103 = call noundef i32 @_Z2dpi(i32 noundef %102)
  store i32 %103, ptr %2, align 4, !tbaa !5
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %105 = load i32, ptr %104, align 4, !tbaa !5
  store i32 %105, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.preheader.preheader

.thread255:                                       ; preds = %87, %89, %.thread214
  %106 = phi i32 [ %95, %.thread214 ], [ %85, %87 ], [ %94, %89 ]
  %.not43.6196223278 = phi i1 [ %.not43.6196224, %.thread214 ], [ %.not43.6196246, %87 ], [ %.not43.6196246, %89 ]
  %.not43.4133154194225276 = phi i1 [ %.not43.4133154194226, %.thread214 ], [ %.not43.4133154194247, %87 ], [ %.not43.4133154194247, %89 ]
  %.not43.290105131156192227274 = phi i1 [ %.not43.290105131156192228, %.thread214 ], [ %.not43.290105131156192248, %87 ], [ %.not43.290105131156192248, %89 ]
  %.not43.17688107129158190229272 = phi i1 [ %.not43.17688107129158190230, %.thread214 ], [ %.not43.17688107129158190249, %87 ], [ %.not43.17688107129158190249, %89 ]
  %.not43.3109127160188231270 = phi i1 [ %.not43.3109127160188232, %.thread214 ], [ %.not43.3109127160188250, %87 ], [ %.not43.3109127160188250, %89 ]
  %.not43.5162186233268 = phi i1 [ %.not43.5162186234, %.thread214 ], [ %.not43.5162186251, %87 ], [ %.not43.5162186251, %89 ]
  %.not43.7235266 = phi i1 [ false, %.thread214 ], [ true, %87 ], [ true, %89 ]
  %.pre70 = and i32 %0, 512
  %.not43.9 = icmp eq i32 %.pre70, 0
  br i1 %.not43.9, label %.thread321, label %.preheader.preheader

.thread321:                                       ; preds = %.thread281, %.thread255
  %107 = phi i32 [ %106, %.thread255 ], [ %96, %.thread281 ]
  %.not43.7235265339 = phi i1 [ %.not43.7235266, %.thread255 ], [ %.not43.7235291, %.thread281 ]
  %.not43.5162186233267338 = phi i1 [ %.not43.5162186233268, %.thread255 ], [ %.not43.5162186233292, %.thread281 ]
  %.not43.3109127160188231269337 = phi i1 [ %.not43.3109127160188231270, %.thread255 ], [ %.not43.3109127160188231293, %.thread281 ]
  %.not43.17688107129158190229271336 = phi i1 [ %.not43.17688107129158190229272, %.thread255 ], [ %.not43.17688107129158190229294, %.thread281 ]
  %.not43.290105131156192227273335 = phi i1 [ %.not43.290105131156192227274, %.thread255 ], [ %.not43.290105131156192227295, %.thread281 ]
  %.not43.4133154194225275334 = phi i1 [ %.not43.4133154194225276, %.thread255 ], [ %.not43.4133154194225296, %.thread281 ]
  %.not43.6196223277333 = phi i1 [ %.not43.6196223278, %.thread255 ], [ %.not43.6196223297, %.thread281 ]
  %.not43.8279332 = phi i1 [ false, %.thread255 ], [ true, %.thread281 ]
  %108 = and i32 %0, 3072
  %or.cond.not = icmp eq i32 %108, 3072
  br i1 %or.cond.not, label %109, label %.preheader.preheader

109:                                              ; preds = %.thread321
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %110 = and i32 %0, -3585
  %111 = or disjoint i32 %110, 512
  %112 = call noundef i32 @_Z2dpi(i32 noundef %111)
  store i32 %112, ptr %2, align 4, !tbaa !5
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %114 = load i32, ptr %113, align 4, !tbaa !5
  store i32 %114, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %98, %100, %109, %.thread321, %.thread255
  %.not43.9320 = phi i1 [ true, %109 ], [ true, %.thread321 ], [ false, %.thread255 ], [ false, %100 ], [ false, %98 ]
  %.not43.7235265319 = phi i1 [ %.not43.7235265339, %109 ], [ %.not43.7235265339, %.thread321 ], [ %.not43.7235266, %.thread255 ], [ %.not43.7235291, %100 ], [ %.not43.7235291, %98 ]
  %.not43.5162186233267318 = phi i1 [ %.not43.5162186233267338, %109 ], [ %.not43.5162186233267338, %.thread321 ], [ %.not43.5162186233268, %.thread255 ], [ %.not43.5162186233292, %100 ], [ %.not43.5162186233292, %98 ]
  %.not43.3109127160188231269317 = phi i1 [ %.not43.3109127160188231269337, %109 ], [ %.not43.3109127160188231269337, %.thread321 ], [ %.not43.3109127160188231270, %.thread255 ], [ %.not43.3109127160188231293, %100 ], [ %.not43.3109127160188231293, %98 ]
  %.not43.17688107129158190229271316 = phi i1 [ %.not43.17688107129158190229271336, %109 ], [ %.not43.17688107129158190229271336, %.thread321 ], [ %.not43.17688107129158190229272, %.thread255 ], [ %.not43.17688107129158190229294, %100 ], [ %.not43.17688107129158190229294, %98 ]
  %.not43.290105131156192227273315 = phi i1 [ %.not43.290105131156192227273335, %109 ], [ %.not43.290105131156192227273335, %.thread321 ], [ %.not43.290105131156192227274, %.thread255 ], [ %.not43.290105131156192227295, %100 ], [ %.not43.290105131156192227295, %98 ]
  %.not43.4133154194225275314 = phi i1 [ %.not43.4133154194225275334, %109 ], [ %.not43.4133154194225275334, %.thread321 ], [ %.not43.4133154194225276, %.thread255 ], [ %.not43.4133154194225296, %100 ], [ %.not43.4133154194225296, %98 ]
  %.not43.6196223277313 = phi i1 [ %.not43.6196223277333, %109 ], [ %.not43.6196223277333, %.thread321 ], [ %.not43.6196223278, %.thread255 ], [ %.not43.6196223297, %100 ], [ %.not43.6196223297, %98 ]
  %.not43.8279312 = phi i1 [ %.not43.8279332, %109 ], [ %.not43.8279332, %.thread321 ], [ false, %.thread255 ], [ true, %100 ], [ true, %98 ]
  %115 = phi i32 [ %114, %109 ], [ %107, %.thread321 ], [ %106, %.thread255 ], [ %105, %100 ], [ %96, %98 ]
  %116 = and i32 %0, 2048
  %.not40 = icmp eq i32 %116, 0
  %117 = and i32 %0, 1024
  %.not41 = icmp eq i32 %117, 0
  br i1 %.not40, label %118, label %.preheader.1

118:                                              ; preds = %.preheader.preheader
  br i1 %.not41, label %.preheader.1.thread344, label %119

119:                                              ; preds = %118
  br i1 %.not43.9320, label %.preheader.2.thread348, label %.preheader.2.thread364

.preheader.2.thread364:                           ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %120 = and i32 %0, -3585
  %121 = or disjoint i32 %120, 2048
  %122 = call noundef i32 @_Z2dpi(i32 noundef %121)
  store i32 %122, ptr %3, align 4, !tbaa !5
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %124 = load i32, ptr %123, align 4, !tbaa !5
  store i32 %124, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.3

.preheader.1:                                     ; preds = %.preheader.preheader
  br i1 %.not41, label %.preheader.1.thread344, label %.preheader.2

.preheader.1.thread344:                           ; preds = %118, %.preheader.1
  br i1 %.not43.9320, label %.preheader.2.thread348, label %125

125:                                              ; preds = %.preheader.1.thread344
  br i1 %.not43.8279312, label %.preheader.3.thread350, label %.preheader.3.thread366

.preheader.3.thread366:                           ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %126 = and i32 %0, -1793
  %127 = or disjoint i32 %126, 1024
  %128 = call noundef i32 @_Z2dpi(i32 noundef %127)
  store i32 %128, ptr %3, align 4, !tbaa !5
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %130 = load i32, ptr %129, align 4, !tbaa !5
  store i32 %130, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.4

.preheader.2:                                     ; preds = %.preheader.1
  br i1 %.not43.9320, label %.preheader.2.thread348, label %.preheader.3

.preheader.2.thread348:                           ; preds = %119, %.preheader.1.thread344, %.preheader.2
  br i1 %.not43.8279312, label %.preheader.3.thread350, label %131

131:                                              ; preds = %.preheader.2.thread348
  br i1 %.not43.7235265319, label %.preheader.4.thread352, label %.preheader.4.thread368

.preheader.4.thread368:                           ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %132 = and i32 %0, -897
  %133 = or disjoint i32 %132, 512
  %134 = call noundef i32 @_Z2dpi(i32 noundef %133)
  store i32 %134, ptr %3, align 4, !tbaa !5
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %136 = load i32, ptr %135, align 4, !tbaa !5
  store i32 %136, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.5

.preheader.3:                                     ; preds = %.preheader.2.thread364, %.preheader.2
  %137 = phi i32 [ %115, %.preheader.2 ], [ %124, %.preheader.2.thread364 ]
  br i1 %.not43.8279312, label %.preheader.3.thread350, label %.preheader.4

.preheader.3.thread350:                           ; preds = %125, %.preheader.2.thread348, %.preheader.3
  %138 = phi i32 [ %137, %.preheader.3 ], [ %115, %.preheader.2.thread348 ], [ %115, %125 ]
  br i1 %.not43.7235265319, label %.preheader.4.thread352, label %139

139:                                              ; preds = %.preheader.3.thread350
  br i1 %.not43.6196223277313, label %.preheader.5.thread354, label %.preheader.5.thread370

.preheader.5.thread370:                           ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %140 = and i32 %0, -449
  %141 = or disjoint i32 %140, 256
  %142 = call noundef i32 @_Z2dpi(i32 noundef %141)
  store i32 %142, ptr %3, align 4, !tbaa !5
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %144 = load i32, ptr %143, align 4, !tbaa !5
  store i32 %144, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.6

.preheader.4:                                     ; preds = %.preheader.3.thread366, %.preheader.3
  %145 = phi i32 [ %137, %.preheader.3 ], [ %130, %.preheader.3.thread366 ]
  br i1 %.not43.7235265319, label %.preheader.4.thread352, label %.preheader.5

.preheader.4.thread352:                           ; preds = %131, %.preheader.3.thread350, %.preheader.4
  %146 = phi i32 [ %145, %.preheader.4 ], [ %138, %.preheader.3.thread350 ], [ %115, %131 ]
  br i1 %.not43.6196223277313, label %.preheader.5.thread354, label %147

147:                                              ; preds = %.preheader.4.thread352
  br i1 %.not43.5162186233267318, label %.preheader.6.thread356, label %.preheader.6.thread372

.preheader.6.thread372:                           ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %148 = and i32 %0, -225
  %149 = or disjoint i32 %148, 128
  %150 = call noundef i32 @_Z2dpi(i32 noundef %149)
  store i32 %150, ptr %3, align 4, !tbaa !5
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %152 = load i32, ptr %151, align 4, !tbaa !5
  store i32 %152, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.7

.preheader.5:                                     ; preds = %.preheader.4.thread368, %.preheader.4
  %153 = phi i32 [ %145, %.preheader.4 ], [ %136, %.preheader.4.thread368 ]
  br i1 %.not43.6196223277313, label %.preheader.5.thread354, label %.preheader.6

.preheader.5.thread354:                           ; preds = %139, %.preheader.4.thread352, %.preheader.5
  %154 = phi i32 [ %153, %.preheader.5 ], [ %146, %.preheader.4.thread352 ], [ %138, %139 ]
  br i1 %.not43.5162186233267318, label %.preheader.6.thread356, label %155

155:                                              ; preds = %.preheader.5.thread354
  br i1 %.not43.4133154194225275314, label %.preheader.7.thread358, label %.preheader.7.thread374

.preheader.7.thread374:                           ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %156 = and i32 %0, -113
  %157 = or disjoint i32 %156, 64
  %158 = call noundef i32 @_Z2dpi(i32 noundef %157)
  store i32 %158, ptr %3, align 4, !tbaa !5
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %160 = load i32, ptr %159, align 4, !tbaa !5
  store i32 %160, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.8

.preheader.6:                                     ; preds = %.preheader.5.thread370, %.preheader.5
  %161 = phi i32 [ %153, %.preheader.5 ], [ %144, %.preheader.5.thread370 ]
  br i1 %.not43.5162186233267318, label %.preheader.6.thread356, label %.preheader.7

.preheader.6.thread356:                           ; preds = %147, %.preheader.5.thread354, %.preheader.6
  %162 = phi i32 [ %161, %.preheader.6 ], [ %154, %.preheader.5.thread354 ], [ %146, %147 ]
  br i1 %.not43.4133154194225275314, label %.preheader.7.thread358, label %163

163:                                              ; preds = %.preheader.6.thread356
  br i1 %.not43.3109127160188231269317, label %.preheader.8.thread360, label %.preheader.8.thread376

.preheader.8.thread376:                           ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %164 = and i32 %0, -57
  %165 = or disjoint i32 %164, 32
  %166 = call noundef i32 @_Z2dpi(i32 noundef %165)
  store i32 %166, ptr %3, align 4, !tbaa !5
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %168 = load i32, ptr %167, align 4, !tbaa !5
  store i32 %168, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.9

.preheader.7:                                     ; preds = %.preheader.6.thread372, %.preheader.6
  %169 = phi i32 [ %161, %.preheader.6 ], [ %152, %.preheader.6.thread372 ]
  br i1 %.not43.4133154194225275314, label %.preheader.7.thread358, label %.preheader.8

.preheader.7.thread358:                           ; preds = %155, %.preheader.6.thread356, %.preheader.7
  %170 = phi i32 [ %169, %.preheader.7 ], [ %162, %.preheader.6.thread356 ], [ %154, %155 ]
  br i1 %.not43.3109127160188231269317, label %.preheader.8.thread360, label %171

171:                                              ; preds = %.preheader.7.thread358
  br i1 %.not43.290105131156192227273315, label %.preheader.9.thread362, label %.preheader.9.thread378

.preheader.9.thread378:                           ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %172 = and i32 %0, -29
  %173 = or disjoint i32 %172, 16
  %174 = call noundef i32 @_Z2dpi(i32 noundef %173)
  store i32 %174, ptr %3, align 4, !tbaa !5
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %176 = load i32, ptr %175, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.9.thread

.preheader.8:                                     ; preds = %.preheader.7.thread374, %.preheader.7
  %177 = phi i32 [ %169, %.preheader.7 ], [ %160, %.preheader.7.thread374 ]
  br i1 %.not43.3109127160188231269317, label %.preheader.8.thread360, label %.preheader.9

.preheader.8.thread360:                           ; preds = %163, %.preheader.7.thread358, %.preheader.8
  %178 = phi i32 [ %177, %.preheader.8 ], [ %170, %.preheader.7.thread358 ], [ %162, %163 ]
  br i1 %.not43.290105131156192227273315, label %.preheader.9.thread362, label %179

179:                                              ; preds = %.preheader.8.thread360
  br i1 %.not43.17688107129158190229271316, label %.preheader.9.thread, label %180

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %181 = and i32 %0, -15
  %182 = or disjoint i32 %181, 8
  %183 = call noundef i32 @_Z2dpi(i32 noundef %182)
  store i32 %183, ptr %3, align 4, !tbaa !5
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %185 = load i32, ptr %184, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.9.thread

.preheader.9:                                     ; preds = %.preheader.8.thread376, %.preheader.8
  %186 = phi i32 [ %177, %.preheader.8 ], [ %168, %.preheader.8.thread376 ]
  br i1 %.not43.290105131156192227273315, label %.preheader.9.thread362, label %.preheader.9.thread

.preheader.9.thread362:                           ; preds = %171, %.preheader.8.thread360, %.preheader.9
  %187 = phi i32 [ %186, %.preheader.9 ], [ %178, %.preheader.8.thread360 ], [ %170, %171 ]
  %brmerge = or i1 %.not43.17688107129158190229271316, %.not43
  br i1 %brmerge, label %.preheader.9.thread, label %188

188:                                              ; preds = %.preheader.9.thread362
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %189 = and i32 %0, -8
  %190 = or disjoint i32 %189, 4
  %191 = call noundef i32 @_Z2dpi(i32 noundef %190)
  store i32 %191, ptr %3, align 4, !tbaa !5
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %193 = load i32, ptr %192, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %.preheader.9.thread

.preheader.9.thread:                              ; preds = %.preheader.9.thread362, %.preheader.9.thread378, %179, %180, %188, %.preheader.9
  %194 = phi i32 [ %193, %188 ], [ %187, %.preheader.9.thread362 ], [ %186, %.preheader.9 ], [ %178, %179 ], [ %185, %180 ], [ %176, %.preheader.9.thread378 ]
  %195 = icmp slt i32 %194, 13
  %196 = call range(i32 0, 33) i32 @llvm.ctpop.i32(i32 %0)
  %197 = select i1 %195, i32 %194, i32 %196
  store i32 %197, ptr %5, align 4, !tbaa !5
  br label %198

198:                                              ; preds = %1, %.preheader.9.thread
  %.037 = phi i32 [ %197, %.preheader.9.thread ], [ %6, %1 ]
  ret i32 %.037
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctpop.i32(i32) #3

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass