; LLVM IR from b00dle/libpcc :: src/BitVecArray.ll (ZN11BitVecArray4packEv)

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

%"class.std::bitset<8>::reference" = type { ptr, i64 }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%class.BitVec = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.Vec = type { ptr, i64, i64, i64 }
%class.BitVecArray = type <{ %"class.std::vector", i32, i32, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Vec<unsigned long>, std::allocator<Vec<unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec<unsigned long>, std::allocator<Vec<unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec<unsigned long>, std::allocator<Vec<unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec<unsigned long>, std::allocator<Vec<unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11BitVecArray11getByteSizeEv(ptr noundef nonnull align 8 dereferenceable(36)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

declare void @_ZN6BitVecC1Emmm8BitCountS0_S0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<8>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: nounwind
declare void @_ZN6BitVecD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN11BitVecArray4packEv(ptr noundef nonnull align 8 dereferenceable(36) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::bitset", align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %class.BitVec, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.Vec, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca %"class.std::bitset<8>::reference", align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.std::bitset<8>::reference", align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.std::bitset<8>::reference", align 8
  %21 = alloca %"class.std::bitset<8>::reference", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %22 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %23 = call noundef i64 @_ZNK11BitVecArray11getByteSizeEv(ptr noundef nonnull align 8 dereferenceable(36) %22)
  %24 = call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #8
  store ptr %24, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @_ZNSt6bitsetILm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  %25 = getelementptr inbounds %class.BitVecArray, ptr %22, i32 0, i32 1
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %class.BitVecArray, ptr %22, i32 0, i32 2
  %28 = load i32, ptr %27, align 4, !tbaa !18
  %29 = getelementptr inbounds %class.BitVecArray, ptr %22, i32 0, i32 3
  %30 = load i32, ptr %29, align 8, !tbaa !19
  call void @_ZN6BitVecC1Emmm8BitCountS0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0, i64 noundef 0, i64 noundef 0, i32 noundef %26, i32 noundef %28, i32 noundef %30)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %31 = getelementptr inbounds %class.BitVecArray, ptr %22, i32 0, i32 0
  store ptr %31, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call ptr @_ZNSt6vectorI3VecImESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = call ptr @_ZNSt6vectorI3VecImESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  br label %38

38:                                               ; preds = %202, %1
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3VecImESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %39, label %41, label %40

40:                                               ; preds = %38
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %206

41:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3VecImESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  invoke void @_ZN3VecImEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %42)
          to label %43 unwind label %60

43:                                               ; preds = %41
  %44 = getelementptr inbounds %struct.Vec, ptr %12, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !20
  invoke void @_ZN6BitVec4setXEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %45)
          to label %46 unwind label %64

46:                                               ; preds = %43
  %47 = getelementptr inbounds %struct.Vec, ptr %12, i32 0, i32 2
  %48 = load i64, ptr %47, align 8, !tbaa !22
  invoke void @_ZN6BitVec4setYEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %48)
          to label %49 unwind label %64

49:                                               ; preds = %46
  %50 = getelementptr inbounds %struct.Vec, ptr %12, i32 0, i32 3
  %51 = load i64, ptr %50, align 8, !tbaa !23
  invoke void @_ZN6BitVec4setZEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %51)
          to label %52 unwind label %64

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %103, %52
  %54 = load i64, ptr %15, align 8, !tbaa !9
  %55 = getelementptr inbounds %class.BitVecArray, ptr %22, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !11
  %57 = zext i32 %56 to i64
  %58 = icmp ult i64 %54, %57
  br i1 %58, label %68, label %59

59:                                               ; preds = %53
  store i32 4, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %107

60:                                               ; preds = %41
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %13, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %14, align 4
  br label %205

64:                                               ; preds = %49, %46, %43
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %13, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %14, align 4
  br label %204

68:                                               ; preds = %53
  %69 = invoke noundef ptr @_ZNK6BitVec4getXEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %70 unwind label %94

70:                                               ; preds = %68
  %71 = load i64, ptr %15, align 8, !tbaa !9
  %72 = load ptr, ptr %69, align 8, !tbaa !24
  %73 = getelementptr inbounds ptr, ptr %72, i64 5
  %74 = load ptr, ptr %73, align 8
  %75 = invoke noundef zeroext i1 %74(ptr noundef nonnull align 8 dereferenceable(8) %69, i64 noundef %71)
          to label %76 unwind label %94

76:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  %77 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<8>::reference") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %77)
          to label %78 unwind label %98

78:                                               ; preds = %76
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %16, i1 noundef zeroext %75) #7
  call void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  %80 = load i64, ptr %6, align 8, !tbaa !9
  %81 = add i64 %80, 1
  %82 = urem i64 %81, 8
  store i64 %82, ptr %6, align 8, !tbaa !9
  %83 = load i64, ptr %6, align 8, !tbaa !9
  %84 = icmp eq i64 %83, 0
  br i1 %84, label %85, label %102

85:                                               ; preds = %78
  %86 = invoke noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %87 unwind label %94

87:                                               ; preds = %85
  %88 = trunc i64 %86 to i8
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = load i64, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  store i8 %88, ptr %91, align 1, !tbaa !26
  %92 = load i64, ptr %5, align 8, !tbaa !9
  %93 = add i64 %92, 1
  store i64 %93, ptr %5, align 8, !tbaa !9
  br label %102

94:                                               ; preds = %85, %70, %68
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %13, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %14, align 4
  br label %106

98:                                               ; preds = %76
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %13, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  br label %106

102:                                              ; preds = %87, %78
  br label %103

103:                                              ; preds = %102
  %104 = load i64, ptr %15, align 8, !tbaa !9
  %105 = add i64 %104, 1
  store i64 %105, ptr %15, align 8, !tbaa !9
  br label %53, !llvm.loop !27

106:                                              ; preds = %98, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %204

107:                                              ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %150, %107
  %109 = load i64, ptr %17, align 8, !tbaa !9
  %110 = getelementptr inbounds %class.BitVecArray, ptr %22, i32 0, i32 2
  %111 = load i32, ptr %110, align 4, !tbaa !18
  %112 = zext i32 %111 to i64
  %113 = icmp ult i64 %109, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %108
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %154

115:                                              ; preds = %108
  %116 = invoke noundef ptr @_ZNK6BitVec4getYEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %117 unwind label %141

117:                                              ; preds = %115
  %118 = load i64, ptr %17, align 8, !tbaa !9
  %119 = load ptr, ptr %116, align 8, !tbaa !24
  %120 = getelementptr inbounds ptr, ptr %119, i64 5
  %121 = load ptr, ptr %120, align 8
  %122 = invoke noundef zeroext i1 %121(ptr noundef nonnull align 8 dereferenceable(8) %116, i64 noundef %118)
          to label %123 unwind label %141

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %124 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<8>::reference") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %124)
          to label %125 unwind label %145

125:                                              ; preds = %123
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %18, i1 noundef zeroext %122) #7
  call void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  %127 = load i64, ptr %6, align 8, !tbaa !9
  %128 = add i64 %127, 1
  %129 = urem i64 %128, 8
  store i64 %129, ptr %6, align 8, !tbaa !9
  %130 = load i64, ptr %6, align 8, !tbaa !9
  %131 = icmp eq i64 %130, 0
  br i1 %131, label %132, label %149

132:                                              ; preds = %125
  %133 = invoke noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %134 unwind label %141

134:                                              ; preds = %132
  %135 = trunc i64 %133 to i8
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = load i64, ptr %5, align 8, !tbaa !9
  %138 = getelementptr inbounds i8, ptr %136, i64 %137
  store i8 %135, ptr %138, align 1, !tbaa !26
  %139 = load i64, ptr %5, align 8, !tbaa !9
  %140 = add i64 %139, 1
  store i64 %140, ptr %5, align 8, !tbaa !9
  br label %149

141:                                              ; preds = %132, %117, %115
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %13, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %14, align 4
  br label %153

145:                                              ; preds = %123
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %13, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  br label %153

149:                                              ; preds = %134, %125
  br label %150

150:                                              ; preds = %149
  %151 = load i64, ptr %17, align 8, !tbaa !9
  %152 = add i64 %151, 1
  store i64 %152, ptr %17, align 8, !tbaa !9
  br label %108, !llvm.loop !29

153:                                              ; preds = %145, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %204

154:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %197, %154
  %156 = load i64, ptr %19, align 8, !tbaa !9
  %157 = getelementptr inbounds %class.BitVecArray, ptr %22, i32 0, i32 3
  %158 = load i32, ptr %157, align 8, !tbaa !19
  %159 = zext i32 %158 to i64
  %160 = icmp ult i64 %156, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %155
  store i32 10, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %201

162:                                              ; preds = %155
  %163 = invoke noundef ptr @_ZNK6BitVec4getZEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %164 unwind label %188

164:                                              ; preds = %162
  %165 = load i64, ptr %19, align 8, !tbaa !9
  %166 = load ptr, ptr %163, align 8, !tbaa !24
  %167 = getelementptr inbounds ptr, ptr %166, i64 5
  %168 = load ptr, ptr %167, align 8
  %169 = invoke noundef zeroext i1 %168(ptr noundef nonnull align 8 dereferenceable(8) %163, i64 noundef %165)
          to label %170 unwind label %188

170:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %171 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<8>::reference") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %171)
          to label %172 unwind label %192

172:                                              ; preds = %170
  %173 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %20, i1 noundef zeroext %169) #7
  call void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  %174 = load i64, ptr %6, align 8, !tbaa !9
  %175 = add i64 %174, 1
  %176 = urem i64 %175, 8
  store i64 %176, ptr %6, align 8, !tbaa !9
  %177 = load i64, ptr %6, align 8, !tbaa !9
  %178 = icmp eq i64 %177, 0
  br i1 %178, label %179, label %196

179:                                              ; preds = %172
  %180 = invoke noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %181 unwind label %188

181:                                              ; preds = %179
  %182 = trunc i64 %180 to i8
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = load i64, ptr %5, align 8, !tbaa !9
  %185 = getelementptr inbounds i8, ptr %183, i64 %184
  store i8 %182, ptr %185, align 1, !tbaa !26
  %186 = load i64, ptr %5, align 8, !tbaa !9
  %187 = add i64 %186, 1
  store i64 %187, ptr %5, align 8, !tbaa !9
  br label %196

188:                                              ; preds = %179, %164, %162
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %13, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %14, align 4
  br label %200

192:                                              ; preds = %170
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %13, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  br label %200

196:                                              ; preds = %181, %172
  br label %197

197:                                              ; preds = %196
  %198 = load i64, ptr %19, align 8, !tbaa !9
  %199 = add i64 %198, 1
  store i64 %199, ptr %19, align 8, !tbaa !9
  br label %155, !llvm.loop !30

200:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %204

201:                                              ; preds = %161
  call void @_ZN3VecImED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  br label %202

202:                                              ; preds = %201
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3VecImESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %38

204:                                              ; preds = %200, %153, %106, %64
  call void @_ZN3VecImED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %205

205:                                              ; preds = %204, %60
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %237

206:                                              ; preds = %40
  %207 = load i64, ptr %6, align 8, !tbaa !9
  %208 = icmp ne i64 %207, 0
  br i1 %208, label %209, label %235

209:                                              ; preds = %206
  br label %210

210:                                              ; preds = %215, %209
  %211 = load i64, ptr %6, align 8, !tbaa !9
  %212 = icmp ne i64 %211, 0
  br i1 %212, label %213, label %224

213:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %214 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<8>::reference") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %214)
          to label %215 unwind label %220

215:                                              ; preds = %213
  %216 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %21, i1 noundef zeroext false) #7
  call void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  %217 = load i64, ptr %6, align 8, !tbaa !9
  %218 = add i64 %217, 1
  %219 = urem i64 %218, 8
  store i64 %219, ptr %6, align 8, !tbaa !9
  br label %210, !llvm.loop !31

220:                                              ; preds = %213
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %13, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br label %237

224:                                              ; preds = %210
  %225 = invoke noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %226 unwind label %231

226:                                              ; preds = %224
  %227 = trunc i64 %225 to i8
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = load i64, ptr %5, align 8, !tbaa !9
  %230 = getelementptr inbounds i8, ptr %228, i64 %229
  store i8 %227, ptr %230, align 1, !tbaa !26
  br label %235

231:                                              ; preds = %224
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %13, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %14, align 4
  br label %237

235:                                              ; preds = %226, %206
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  store i32 1, ptr %11, align 4
  call void @_ZN6BitVecD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  ret ptr %236

237:                                              ; preds = %231, %220, %205
  call void @_ZN6BitVecD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %13, align 8
  %240 = load i32, ptr %14, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI3VecImESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI3VecImESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP3VecImESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3VecImESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3VecImEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare void @_ZN6BitVec4setXEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2

declare void @_ZN6BitVec4setYEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2

declare void @_ZN6BitVec4setZEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2

declare noundef ptr @_ZNK6BitVec4getXEv(ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare noundef ptr @_ZNK6BitVec4getYEv(ptr noundef nonnull align 8 dereferenceable(24)) #2

declare noundef ptr @_ZNK6BitVec4getZEv(ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3VecImED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3VecImESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 "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 = { 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 #5 = { nobuiltin allocsize(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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !17, i64 24}
!12 = !{!"_ZTS11BitVecArray", !13, i64 0, !17, i64 24, !17, i64 28, !17, i64 32}
!13 = !{!"_ZTSSt6vectorI3VecImESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI3VecImESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI3VecImESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI3VecImESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTS8BitCount", !7, i64 0}
!18 = !{!12, !17, i64 28}
!19 = !{!12, !17, i64 32}
!20 = !{!21, !10, i64 8}
!21 = !{!"_ZTS3VecImE", !10, i64 8, !10, i64 16, !10, i64 24}
!22 = !{!21, !10, i64 16}
!23 = !{!21, !10, i64 24}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !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"

%"class.std::bitset<8>::reference" = type { ptr, i64 }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%class.BitVec = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%struct.Vec = type { ptr, i64, i64, i64 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK11BitVecArray11getByteSizeEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

declare void @_ZN6BitVecC1Emmm8BitCountS0_S0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef) 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 nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<8>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: nounwind
declare void @_ZN6BitVecD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN11BitVecArray4packEv(ptr noundef nonnull align 8 dereferenceable(36) %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::bitset", align 8
  %3 = alloca %class.BitVec, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %struct.Vec, align 8
  %7 = alloca %"class.std::bitset<8>::reference", align 8
  %8 = alloca %"class.std::bitset<8>::reference", align 8
  %9 = alloca %"class.std::bitset<8>::reference", align 8
  %10 = alloca %"class.std::bitset<8>::reference", align 8
  %11 = tail call noundef i64 @_ZNK11BitVecArray11getByteSizeEv(ptr noundef nonnull align 8 dereferenceable(36) %0)
  %12 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @_ZNSt6bitsetILm8EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = load i32, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 28
  %16 = load i32, ptr %15, align 4, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %0, i64 32
  %18 = load i32, ptr %17, align 8, !tbaa !16
  call void @_ZN6BitVecC1Emmm8BitCountS0_S0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0, i64 noundef 0, i64 noundef 0, i32 noundef %14, i32 noundef %16, i32 noundef %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %19 = call ptr @_ZNSt6vectorI3VecImESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %19, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %20 = call ptr @_ZNSt6vectorI3VecImESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  store ptr %20, ptr %5, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3VecImESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %21, label %.lr.ph86, label %._crit_edge87.thread

._crit_edge87.thread:                             ; preds = %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %116

.lr.ph86:                                         ; preds = %1
  %22 = getelementptr inbounds i8, ptr %6, i64 8
  %23 = getelementptr inbounds i8, ptr %6, i64 16
  %24 = getelementptr inbounds i8, ptr %6, i64 24
  br label %25

._crit_edge87:                                    ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %.not = icmp eq i64 %.346.lcssa, 0
  br i1 %.not, label %116, label %.preheader

25:                                               ; preds = %.lr.ph86, %._crit_edge
  %.04284 = phi i64 [ 0, %.lr.ph86 ], [ %.5.lcssa, %._crit_edge ]
  %.04383 = phi i64 [ 0, %.lr.ph86 ], [ %.346.lcssa, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3VecImESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @_ZN3VecImEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %26)
  %27 = load i64, ptr %22, align 8, !tbaa !17
  invoke void @_ZN6BitVec4setXEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %27)
          to label %28 unwind label %34

28:                                               ; preds = %25
  %29 = load i64, ptr %23, align 8, !tbaa !20
  invoke void @_ZN6BitVec4setYEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %29)
          to label %30 unwind label %34

30:                                               ; preds = %28
  %31 = load i64, ptr %24, align 8, !tbaa !21
  invoke void @_ZN6BitVec4setZEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %31)
          to label %.preheader52 unwind label %34

.preheader52:                                     ; preds = %30
  %32 = load i32, ptr %13, align 8, !tbaa !5
  %.not91 = icmp eq i32 %32, 0
  br i1 %.not91, label %.preheader51, label %.lr.ph

.preheader51:                                     ; preds = %54, %.preheader52
  %.144.lcssa = phi i64 [ %.04383, %.preheader52 ], [ %45, %54 ]
  %.1.lcssa = phi i64 [ %.04284, %.preheader52 ], [ %.2, %54 ]
  %33 = load i32, ptr %15, align 4, !tbaa !15
  %.not92 = icmp eq i32 %33, 0
  br i1 %.not92, label %.preheader50, label %.lr.ph74

34:                                               ; preds = %30, %28, %25
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %108

.lr.ph:                                           ; preds = %.preheader52, %54
  %.03969 = phi i64 [ %55, %54 ], [ 0, %.preheader52 ]
  %.168 = phi i64 [ %.2, %54 ], [ %.04284, %.preheader52 ]
  %.14467 = phi i64 [ %45, %54 ], [ %.04383, %.preheader52 ]
  %36 = invoke noundef ptr @_ZNK6BitVec4getXEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %37 unwind label %52

37:                                               ; preds = %.lr.ph
  %38 = load ptr, ptr %36, align 8, !tbaa !22
  %39 = getelementptr inbounds i8, ptr %38, i64 40
  %40 = load ptr, ptr %39, align 8
  %41 = invoke noundef zeroext i1 %40(ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef %.03969)
          to label %42 unwind label %52

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<8>::reference") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.14467)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext %41) #8
  call void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  %44 = add i64 %.14467, 1
  %45 = and i64 %44, 7
  %46 = icmp eq i64 %45, 0
  br i1 %46, label %47, label %54

47:                                               ; preds = %42
  %48 = call noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %49 = trunc i64 %48 to i8
  %50 = getelementptr inbounds i8, ptr %12, i64 %.168
  store i8 %49, ptr %50, align 1, !tbaa !24
  %51 = add i64 %.168, 1
  br label %54

52:                                               ; preds = %37, %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %108

54:                                               ; preds = %42, %47
  %.2 = phi i64 [ %51, %47 ], [ %.168, %42 ]
  %55 = add nuw nsw i64 %.03969, 1
  %56 = load i32, ptr %13, align 8, !tbaa !5
  %57 = zext i32 %56 to i64
  %58 = icmp ult i64 %55, %57
  br i1 %58, label %.lr.ph, label %.preheader51, !llvm.loop !25

.preheader50:                                     ; preds = %78, %.preheader51
  %.245.lcssa = phi i64 [ %.144.lcssa, %.preheader51 ], [ %69, %78 ]
  %.3.lcssa = phi i64 [ %.1.lcssa, %.preheader51 ], [ %.4, %78 ]
  %59 = load i32, ptr %17, align 8, !tbaa !16
  %.not93 = icmp eq i32 %59, 0
  br i1 %.not93, label %._crit_edge, label %.lr.ph80

.lr.ph74:                                         ; preds = %.preheader51, %78
  %.03873 = phi i64 [ %79, %78 ], [ 0, %.preheader51 ]
  %.372 = phi i64 [ %.4, %78 ], [ %.1.lcssa, %.preheader51 ]
  %.24571 = phi i64 [ %69, %78 ], [ %.144.lcssa, %.preheader51 ]
  %60 = invoke noundef ptr @_ZNK6BitVec4getYEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %61 unwind label %76

61:                                               ; preds = %.lr.ph74
  %62 = load ptr, ptr %60, align 8, !tbaa !22
  %63 = getelementptr inbounds i8, ptr %62, i64 40
  %64 = load ptr, ptr %63, align 8
  %65 = invoke noundef zeroext i1 %64(ptr noundef nonnull align 8 dereferenceable(8) %60, i64 noundef %.03873)
          to label %66 unwind label %76

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<8>::reference") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.24571)
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %8, i1 noundef zeroext %65) #8
  call void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  %68 = add i64 %.24571, 1
  %69 = and i64 %68, 7
  %70 = icmp eq i64 %69, 0
  br i1 %70, label %71, label %78

71:                                               ; preds = %66
  %72 = call noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %73 = trunc i64 %72 to i8
  %74 = getelementptr inbounds i8, ptr %12, i64 %.372
  store i8 %73, ptr %74, align 1, !tbaa !24
  %75 = add i64 %.372, 1
  br label %78

76:                                               ; preds = %61, %.lr.ph74
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %108

78:                                               ; preds = %66, %71
  %.4 = phi i64 [ %75, %71 ], [ %.372, %66 ]
  %79 = add nuw nsw i64 %.03873, 1
  %80 = load i32, ptr %15, align 4, !tbaa !15
  %81 = zext i32 %80 to i64
  %82 = icmp ult i64 %79, %81
  br i1 %82, label %.lr.ph74, label %.preheader50, !llvm.loop !27

._crit_edge:                                      ; preds = %103, %.preheader50
  %.346.lcssa = phi i64 [ %.245.lcssa, %.preheader50 ], [ %94, %103 ]
  %.5.lcssa = phi i64 [ %.3.lcssa, %.preheader50 ], [ %.6, %103 ]
  call void @_ZN3VecImED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3VecImESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP3VecImESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  br i1 %84, label %25, label %._crit_edge87

.lr.ph80:                                         ; preds = %.preheader50, %103
  %.079 = phi i64 [ %104, %103 ], [ 0, %.preheader50 ]
  %.578 = phi i64 [ %.6, %103 ], [ %.3.lcssa, %.preheader50 ]
  %.34677 = phi i64 [ %94, %103 ], [ %.245.lcssa, %.preheader50 ]
  %85 = invoke noundef ptr @_ZNK6BitVec4getZEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %86 unwind label %101

86:                                               ; preds = %.lr.ph80
  %87 = load ptr, ptr %85, align 8, !tbaa !22
  %88 = getelementptr inbounds i8, ptr %87, i64 40
  %89 = load ptr, ptr %88, align 8
  %90 = invoke noundef zeroext i1 %89(ptr noundef nonnull align 8 dereferenceable(8) %85, i64 noundef %.079)
          to label %91 unwind label %101

91:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #8
  call void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<8>::reference") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.34677)
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %9, i1 noundef zeroext %90) #8
  call void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #8
  %93 = add i64 %.34677, 1
  %94 = and i64 %93, 7
  %95 = icmp eq i64 %94, 0
  br i1 %95, label %96, label %103

96:                                               ; preds = %91
  %97 = call noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %98 = trunc i64 %97 to i8
  %99 = getelementptr inbounds i8, ptr %12, i64 %.578
  store i8 %98, ptr %99, align 1, !tbaa !24
  %100 = add i64 %.578, 1
  br label %103

101:                                              ; preds = %86, %.lr.ph80
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %108

103:                                              ; preds = %91, %96
  %.6 = phi i64 [ %100, %96 ], [ %.578, %91 ]
  %104 = add nuw nsw i64 %.079, 1
  %105 = load i32, ptr %17, align 8, !tbaa !16
  %106 = zext i32 %105 to i64
  %107 = icmp ult i64 %104, %106
  br i1 %107, label %.lr.ph80, label %._crit_edge, !llvm.loop !28

108:                                              ; preds = %101, %76, %52, %34
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %77, %76 ], [ %102, %101 ], [ %35, %34 ]
  call void @_ZN3VecImED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN6BitVecD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn

.preheader:                                       ; preds = %._crit_edge87, %.preheader
  %.44790 = phi i64 [ %111, %.preheader ], [ %.346.lcssa, %._crit_edge87 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  call void @_ZNSt6bitsetILm8EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<8>::reference") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %.44790)
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %10, i1 noundef zeroext false) #8
  call void @_ZNSt6bitsetILm8EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  %110 = add i64 %.44790, 1
  %111 = and i64 %110, 7
  %.not48 = icmp eq i64 %111, 0
  br i1 %.not48, label %112, label %.preheader, !llvm.loop !29

112:                                              ; preds = %.preheader
  %113 = call noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %114 = trunc i64 %113 to i8
  %115 = getelementptr inbounds i8, ptr %12, i64 %.5.lcssa
  store i8 %114, ptr %115, align 1, !tbaa !24
  br label %116

116:                                              ; preds = %._crit_edge87.thread, %112, %._crit_edge87
  call void @_ZN6BitVecD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret ptr %12
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI3VecImESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorI3VecImESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIP3VecImESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3VecImESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3VecImEC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare void @_ZN6BitVec4setXEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2

declare void @_ZN6BitVec4setYEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2

declare void @_ZN6BitVec4setZEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2

declare noundef ptr @_ZNK6BitVec4getXEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm8EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6bitsetILm8EE8to_ulongEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare noundef ptr @_ZNK6BitVec4getYEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

declare noundef ptr @_ZNK6BitVec4getZEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3VecImED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP3VecImESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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 = { "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 "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 = { 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 #5 = { nobuiltin allocsize(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 #6 = { 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 #7 = { builtin allocsize(0) }
attributes #8 = { 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, !14, i64 24}
!6 = !{!"_ZTS11BitVecArray", !7, i64 0, !14, i64 24, !14, i64 28, !14, i64 32}
!7 = !{!"_ZTSSt6vectorI3VecImESaIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseI3VecImESaIS1_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseI3VecImESaIS1_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseI3VecImESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTS8BitCount", !12, i64 0}
!15 = !{!6, !14, i64 28}
!16 = !{!6, !14, i64 32}
!17 = !{!18, !19, i64 8}
!18 = !{!"_ZTS3VecImE", !19, i64 8, !19, i64 16, !19, i64 24}
!19 = !{!"long", !12, i64 0}
!20 = !{!18, !19, i64 16}
!21 = !{!18, !19, i64 24}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !13, i64 0}
!24 = !{!12, !12, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}


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