; LLVM IR from sgtlaugh/algovault :: code_library/gauss_bitset.ll (Z5gaussiSt6vectorISt6bitsetILm1024EESaIS1_EERS1_)

; 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::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::bitset<1024>::reference" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5gaussiSt6vectorISt6bitsetILm1024EESaIS1_EERS1_(i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(128) %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::allocator.2", align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::bitset<1024>::reference", align 8
  %22 = alloca %"class.std::bitset<1024>::reference", align 8
  %23 = alloca %"class.std::bitset<1024>::reference", align 8
  %24 = alloca i1, align 1
  %25 = alloca i1, align 1
  %26 = alloca %"class.std::bitset<1024>::reference", align 8
  %27 = alloca %"class.std::bitset<1024>::reference", align 8
  %28 = alloca %"class.std::bitset<1024>::reference", align 8
  %29 = alloca %"class.std::bitset<1024>::reference", align 8
  %30 = alloca %"class.std::bitset<1024>::reference", align 8
  %31 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  %32 = load ptr, ptr %7, align 8, !tbaa !9
  %33 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1024EE5resetEv(ptr noundef nonnull align 8 dereferenceable(128) %32) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 -1, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %35, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %36 unwind label %73

36:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %37 = call noundef i64 @_ZNKSt6vectorISt6bitsetILm1024EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %38 = trunc i64 %37 to i32
  store i32 %38, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %155, %36
  %40 = load i32, ptr %14, align 4, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %47

43:                                               ; preds = %39
  %44 = load i32, ptr %13, align 4, !tbaa !5
  %45 = load i32, ptr %19, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br label %47

47:                                               ; preds = %43, %39
  %48 = phi i1 [ false, %39 ], [ %46, %43 ]
  br i1 %48, label %49, label %158

49:                                               ; preds = %47
  %50 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %50, ptr %18, align 4, !tbaa !5
  %51 = load i32, ptr %13, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %15, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %82, %49
  %54 = load i32, ptr %18, align 4, !tbaa !5
  %55 = load i32, ptr %13, align 4, !tbaa !5
  %56 = icmp eq i32 %54, %55
  br i1 %56, label %57, label %61

57:                                               ; preds = %53
  %58 = load i32, ptr %15, align 4, !tbaa !5
  %59 = load i32, ptr %19, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br label %61

61:                                               ; preds = %57, %53
  %62 = phi i1 [ false, %53 ], [ %60, %57 ]
  br i1 %62, label %63, label %85

63:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %64 = load i32, ptr %15, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %65) #4
  %67 = load i32, ptr %14, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  invoke void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<1024>::reference") align 8 %21, ptr noundef nonnull align 8 dereferenceable(128) %66, i64 noundef %68)
          to label %69 unwind label %77

69:                                               ; preds = %63
  %70 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  br i1 %70, label %71, label %81

71:                                               ; preds = %69
  %72 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %72, ptr %18, align 4, !tbaa !5
  br label %81

73:                                               ; preds = %3
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %11, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %12, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %265

77:                                               ; preds = %63
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %11, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  br label %264

81:                                               ; preds = %71, %69
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %15, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %15, align 4, !tbaa !5
  br label %53, !llvm.loop !11

85:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %86 = load i32, ptr %18, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %87) #4
  %89 = load i32, ptr %14, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  invoke void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<1024>::reference") align 8 %22, ptr noundef nonnull align 8 dereferenceable(128) %88, i64 noundef %90)
          to label %91 unwind label %136

91:                                               ; preds = %85
  %92 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  br i1 %92, label %93, label %154

93:                                               ; preds = %91
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %96) #4
  store i32 %94, ptr %97, align 4, !tbaa !5
  %98 = load i32, ptr %18, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %99) #4
  %101 = load i32, ptr %13, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %102) #4
  call void @_ZSt4swapISt6bitsetILm1024EEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 8 dereferenceable(128) %100, ptr noundef nonnull align 8 dereferenceable(128) %103) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %148, %93
  %105 = load i32, ptr %15, align 4, !tbaa !5
  %106 = load i32, ptr %19, align 4, !tbaa !5
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %151

108:                                              ; preds = %104
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = icmp ne i32 %109, %110
  store i1 false, ptr %24, align 1
  store i1 false, ptr %25, align 1
  br i1 %111, label %112, label %120

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  store i1 true, ptr %24, align 1
  %113 = load i32, ptr %15, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %114) #4
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  invoke void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<1024>::reference") align 8 %23, ptr noundef nonnull align 8 dereferenceable(128) %115, i64 noundef %117)
          to label %118 unwind label %140

118:                                              ; preds = %112
  store i1 true, ptr %25, align 1
  %119 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  br label %120

120:                                              ; preds = %118, %108
  %121 = phi i1 [ false, %108 ], [ %119, %118 ]
  %122 = load i1, ptr %25, align 1
  br i1 %122, label %123, label %124

123:                                              ; preds = %120
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  br label %124

124:                                              ; preds = %123, %120
  %125 = load i1, ptr %24, align 1
  br i1 %125, label %126, label %127

126:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  br label %127

127:                                              ; preds = %126, %124
  br i1 %121, label %128, label %147

128:                                              ; preds = %127
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %130) #4
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %133) #4
  %135 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1024EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(128) %134, ptr noundef nonnull align 8 dereferenceable(128) %131) #4
  br label %147

136:                                              ; preds = %85
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %11, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  br label %264

140:                                              ; preds = %112
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %11, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %12, align 4
  %144 = load i1, ptr %24, align 1
  br i1 %144, label %145, label %146

145:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  br label %146

146:                                              ; preds = %145, %140
  br label %264

147:                                              ; preds = %128, %127
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %15, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %15, align 4, !tbaa !5
  br label %104, !llvm.loop !13

151:                                              ; preds = %104
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %13, align 4, !tbaa !5
  br label %154

154:                                              ; preds = %151, %91
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %14, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %14, align 4, !tbaa !5
  br label %39, !llvm.loop !14

158:                                              ; preds = %47
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %197, %158
  %160 = load i32, ptr %13, align 4, !tbaa !5
  %161 = load i32, ptr %5, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %163, label %200

163:                                              ; preds = %159
  %164 = load i32, ptr %13, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %165) #4
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = icmp eq i32 %167, -1
  br i1 %168, label %169, label %172

169:                                              ; preds = %163
  %170 = load i32, ptr %20, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %20, align 4, !tbaa !5
  br label %196

172:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #4
  %173 = load i32, ptr %13, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %174) #4
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %177) #4
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  invoke void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<1024>::reference") align 8 %26, ptr noundef nonnull align 8 dereferenceable(128) %178, i64 noundef %180)
          to label %181 unwind label %187

181:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  %182 = load ptr, ptr %7, align 8, !tbaa !9
  %183 = load i32, ptr %13, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  invoke void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<1024>::reference") align 8 %27, ptr noundef nonnull align 8 dereferenceable(128) %182, i64 noundef %184)
          to label %185 unwind label %191

185:                                              ; preds = %181
  %186 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm1024EE9referenceaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %26) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  br label %196

187:                                              ; preds = %172
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %11, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %12, align 4
  br label %195

191:                                              ; preds = %181
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %11, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #4
  br label %195

195:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  br label %264

196:                                              ; preds = %185, %169
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %13, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %13, align 4, !tbaa !5
  br label %159, !llvm.loop !15

200:                                              ; preds = %159
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %257, %200
  %202 = load i32, ptr %13, align 4, !tbaa !5
  %203 = load i32, ptr %19, align 4, !tbaa !5
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %205, label %260

205:                                              ; preds = %201
  store i32 0, ptr %14, align 4, !tbaa !5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %228, %205
  %207 = load i32, ptr %14, align 4, !tbaa !5
  %208 = load i32, ptr %5, align 4, !tbaa !5
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %210, label %240

210:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #4
  %211 = load ptr, ptr %7, align 8, !tbaa !9
  %212 = load i32, ptr %14, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  invoke void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<1024>::reference") align 8 %28, ptr noundef nonnull align 8 dereferenceable(128) %211, i64 noundef %213)
          to label %214 unwind label %231

214:                                              ; preds = %210
  %215 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #4
  %216 = zext i1 %215 to i32
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #4
  %217 = load i32, ptr %13, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %218) #4
  %220 = load i32, ptr %14, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  invoke void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<1024>::reference") align 8 %29, ptr noundef nonnull align 8 dereferenceable(128) %219, i64 noundef %221)
          to label %222 unwind label %235

222:                                              ; preds = %214
  %223 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %29) #4
  %224 = zext i1 %223 to i32
  %225 = and i32 %216, %224
  %226 = load i32, ptr %17, align 4, !tbaa !5
  %227 = xor i32 %226, %225
  store i32 %227, ptr %17, align 4, !tbaa !5
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  br label %228

228:                                              ; preds = %222
  %229 = load i32, ptr %14, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %14, align 4, !tbaa !5
  br label %206, !llvm.loop !16

231:                                              ; preds = %210
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %11, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %12, align 4
  br label %239

235:                                              ; preds = %214
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %11, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #4
  br label %239

239:                                              ; preds = %235, %231
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  br label %264

240:                                              ; preds = %206
  %241 = load i32, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #4
  %242 = load i32, ptr %13, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %243) #4
  %245 = load i32, ptr %5, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  invoke void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<1024>::reference") align 8 %30, ptr noundef nonnull align 8 dereferenceable(128) %244, i64 noundef %246)
          to label %247 unwind label %252

247:                                              ; preds = %240
  %248 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %30) #4
  %249 = zext i1 %248 to i32
  %250 = icmp ne i32 %241, %249
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  br i1 %250, label %251, label %256

251:                                              ; preds = %247
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %31, align 4
  br label %262

252:                                              ; preds = %240
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %11, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  br label %264

256:                                              ; preds = %247
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %13, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %13, align 4, !tbaa !5
  br label %201, !llvm.loop !17

260:                                              ; preds = %201
  %261 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %261, ptr %4, align 4
  store i32 1, ptr %31, align 4
  br label %262

262:                                              ; preds = %260, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  %263 = load i32, ptr %4, align 4
  ret i32 %263

264:                                              ; preds = %252, %239, %195, %146, %136, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %265

265:                                              ; preds = %264, %73
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr %11, align 8
  %268 = load i32, ptr %12, align 4
  %269 = insertvalue { ptr, i32 } poison, ptr %267, 0
  %270 = insertvalue { ptr, i32 } %269, i32 %268, 1
  resume { ptr, i32 } %270
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapISt6bitsetILm1024EEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1024EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm1024EE9referenceaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !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"

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::bitset<1024>::reference" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5gaussiSt6vectorISt6bitsetILm1024EESaIS1_EERS1_(i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(128) %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::bitset<1024>::reference", align 8
  %8 = alloca %"class.std::bitset<1024>::reference", align 8
  %9 = alloca %"class.std::bitset<1024>::reference", align 8
  %10 = alloca %"class.std::bitset<1024>::reference", align 8
  %11 = alloca %"class.std::bitset<1024>::reference", align 8
  %12 = alloca %"class.std::bitset<1024>::reference", align 8
  %13 = alloca %"class.std::bitset<1024>::reference", align 8
  %14 = alloca %"class.std::bitset<1024>::reference", align 8
  %15 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1024EE5resetEv(ptr noundef nonnull align 8 dereferenceable(128) %2) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  %16 = sext i32 %0 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  store i32 -1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #4
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %16, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %17 unwind label %36

17:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %18 = call noundef i64 @_ZNKSt6vectorISt6bitsetILm1024EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #4
  %19 = trunc i64 %18 to i32
  %20 = icmp sgt i32 %0, 0
  %21 = icmp sgt i32 %19, 0
  %22 = and i1 %20, %21
  br i1 %22, label %.lr.ph86, label %.preheader77

.lr.ph86:                                         ; preds = %17
  %23 = and i64 %18, 2147483647
  %wide.trip.count = and i64 %18, 2147483647
  br label %24

.preheader77:                                     ; preds = %.loopexit, %17
  br i1 %20, label %.lr.ph89.preheader, label %.preheader76.thread

.lr.ph89.preheader:                               ; preds = %.preheader77
  %wide.trip.count114 = zext nneg i32 %0 to i64
  br label %.lr.ph89

24:                                               ; preds = %.lr.ph86, %.loopexit
  %indvars.iv108 = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next109, %.loopexit ]
  %.06784 = phi i32 [ 0, %.lr.ph86 ], [ %.168, %.loopexit ]
  %25 = add nsw i32 %.06784, 1
  %26 = icmp slt i32 %25, %19
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %24
  %27 = sext i32 %.06784 to i64
  %28 = add nsw i64 %27, 1
  br label %29

29:                                               ; preds = %.lr.ph, %29
  %indvars.iv = phi i64 [ %28, %.lr.ph ], [ %indvars.iv.next, %29 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %30 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %7, ptr noundef nonnull align 8 dereferenceable(128) %30, i64 noundef %indvars.iv108)
  %31 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  %32 = trunc nsw i64 %indvars.iv to i32
  %spec.select = select i1 %31, i32 %32, i32 %.06784
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %33 = icmp eq i32 %spec.select, %.06784
  %34 = icmp slt i64 %indvars.iv.next, %23
  %35 = select i1 %33, i1 %34, i1 false
  br i1 %35, label %29, label %._crit_edge, !llvm.loop !9

36:                                               ; preds = %3
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  resume { ptr, i32 } %37

._crit_edge:                                      ; preds = %29, %24
  %.064.lcssa = phi i32 [ %.06784, %24 ], [ %spec.select, %29 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %38 = sext i32 %.064.lcssa to i64
  %39 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %38) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %39, i64 noundef %indvars.iv108)
  %40 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br i1 %40, label %.lr.ph82.preheader, label %.loopexit

.lr.ph82.preheader:                               ; preds = %._crit_edge
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv108) #4
  store i32 %.06784, ptr %41, align 4, !tbaa !5
  %42 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %38) #4
  %43 = sext i32 %.06784 to i64
  %44 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %43) #4
  call void @_ZSt4swapISt6bitsetILm1024EEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 8 dereferenceable(128) %42, ptr noundef nonnull align 8 dereferenceable(128) %44) #4
  %45 = zext i32 %.06784 to i64
  br label %.lr.ph82

.lr.ph82:                                         ; preds = %.lr.ph82.preheader, %.critedge.thread
  %indvars.iv105 = phi i64 [ 0, %.lr.ph82.preheader ], [ %indvars.iv.next106, %.critedge.thread ]
  %.not75.not = icmp eq i64 %indvars.iv105, %45
  br i1 %.not75.not, label %.critedge.thread, label %.critedge

.critedge:                                        ; preds = %.lr.ph82
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %46 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv105) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %9, ptr noundef nonnull align 8 dereferenceable(128) %46, i64 noundef %indvars.iv108)
  %47 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  br i1 %47, label %48, label %.critedge.thread

48:                                               ; preds = %.critedge
  %49 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %43) #4
  %50 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv105) #4
  %51 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1024EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(128) %50, ptr noundef nonnull align 8 dereferenceable(128) %49) #4
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %.lr.ph82, %.critedge, %48
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph82, !llvm.loop !11

.loopexit:                                        ; preds = %.critedge.thread, %._crit_edge
  %.168 = phi i32 [ %.06784, %._crit_edge ], [ %25, %.critedge.thread ]
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %52 = icmp slt i64 %indvars.iv.next109, %16
  %53 = icmp slt i32 %.168, %19
  %54 = and i1 %52, %53
  br i1 %54, label %24, label %.preheader77, !llvm.loop !12

.preheader76:                                     ; preds = %77
  br i1 %21, label %.preheader.lr.ph, label %._crit_edge97

.preheader76.thread:                              ; preds = %.preheader77
  br i1 %21, label %.preheader.preheader, label %._crit_edge97

.preheader.lr.ph:                                 ; preds = %.preheader76
  br i1 %20, label %.preheader.us.preheader, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader76.thread, %.preheader.lr.ph
  %.062.lcssa132134 = phi i32 [ %.1, %.preheader.lr.ph ], [ 0, %.preheader76.thread ]
  %wide.trip.count119 = and i64 %18, 2147483647
  br label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count129 = and i64 %18, 2147483647
  %wide.trip.count124 = zext nneg i32 %0 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %62
  %indvars.iv126 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next127, %62 ]
  br label %55

55:                                               ; preds = %.preheader.us, %55
  %indvars.iv121 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next122, %55 ]
  %.06692.us = phi i32 [ 0, %.preheader.us ], [ %61, %55 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %12, ptr noundef nonnull align 8 dereferenceable(128) %2, i64 noundef %indvars.iv121)
  %56 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  %57 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %13, ptr noundef nonnull align 8 dereferenceable(128) %57, i64 noundef %indvars.iv121)
  %58 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  %59 = and i1 %56, %58
  %60 = zext i1 %59 to i32
  %61 = xor i32 %.06692.us, %60
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %exitcond125.not = icmp eq i64 %indvars.iv.next122, %wide.trip.count124
  br i1 %exitcond125.not, label %._crit_edge94.us, label %55, !llvm.loop !13

62:                                               ; preds = %._crit_edge94.us
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count129
  br i1 %exitcond130.not, label %._crit_edge97, label %.preheader.us, !llvm.loop !14

._crit_edge94.us:                                 ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  %63 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv126) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %14, ptr noundef nonnull align 8 dereferenceable(128) %63, i64 noundef %16)
  %64 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  %65 = zext i1 %64 to i32
  %.not.us = icmp eq i32 %61, %65
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  br i1 %.not.us, label %62, label %._crit_edge97

.lr.ph89:                                         ; preds = %.lr.ph89.preheader, %77
  %indvars.iv111 = phi i64 [ 0, %.lr.ph89.preheader ], [ %indvars.iv.next112, %77 ]
  %.06288 = phi i32 [ 0, %.lr.ph89.preheader ], [ %.1, %77 ]
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv111) #4
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = icmp eq i32 %67, -1
  br i1 %68, label %69, label %71

69:                                               ; preds = %.lr.ph89
  %70 = add nsw i32 %.06288, 1
  br label %77

71:                                               ; preds = %.lr.ph89
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv111) #4
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %74) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %10, ptr noundef nonnull align 8 dereferenceable(128) %75, i64 noundef %16)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %11, ptr noundef nonnull align 8 dereferenceable(128) %2, i64 noundef %indvars.iv111)
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm1024EE9referenceaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  br label %77

77:                                               ; preds = %69, %71
  %.1 = phi i32 [ %70, %69 ], [ %.06288, %71 ]
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %.preheader76, label %.lr.ph89, !llvm.loop !15

78:                                               ; preds = %.preheader
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count119
  br i1 %exitcond120.not, label %._crit_edge97, label %.preheader, !llvm.loop !14

.preheader:                                       ; preds = %.preheader.preheader, %78
  %indvars.iv116 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next117, %78 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  %79 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv116) #4
  call void @_ZNSt6bitsetILm1024EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<1024>::reference") align 8 %14, ptr noundef nonnull align 8 dereferenceable(128) %79, i64 noundef %16)
  %80 = call noundef zeroext i1 @_ZNKSt6bitsetILm1024EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  call void @_ZNSt6bitsetILm1024EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  br i1 %80, label %._crit_edge97, label %78

._crit_edge97:                                    ; preds = %.preheader, %78, %._crit_edge94.us, %62, %.preheader76.thread, %.preheader76
  %.063 = phi i32 [ %.1, %.preheader76 ], [ 0, %.preheader76.thread ], [ %.1, %62 ], [ -1, %._crit_edge94.us ], [ %.062.lcssa132134, %78 ], [ -1, %.preheader ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  ret i32 %.063
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6vectorISt6bitsetILm1024EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapISt6bitsetILm1024EEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1024EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm1024EE9referenceaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


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