; LLVM IR from ShahjalalShohag/code-library :: Math/Inverse of A Matrix modulo 2.ll (Z7inverseiSt6vectorISt6bitsetILm2005EESaIS1_EE)

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

@z = external dso_local global { [32 x i64] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7inverseiSt6vectorISt6bitsetILm2005EESaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1, ptr noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::bitset<2005>::reference", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::bitset<2005>::reference", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::bitset<2005>::reference", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::bitset<2005>::reference", align 8
  store ptr %0, ptr %4, align 8
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  store i1 false, ptr %7, align 1
  %22 = load i32, ptr %5, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #4
  call void @_ZNSaISt6bitsetILm2005EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %23, ptr noundef nonnull align 8 dereferenceable(256) @z, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %24 unwind label %30

24:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorISt6bitsetILm2005EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %42, %24
  %26 = load i32, ptr %11, align 4, !tbaa !5
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %34, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %49

30:                                               ; preds = %3
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %9, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %10, align 4
  call void @_ZNSt15__new_allocatorISt6bitsetILm2005EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #4
  br label %184

34:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %35 = load i32, ptr %11, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %36) #4
  %38 = load i32, ptr %11, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  invoke void @_ZNSt6bitsetILm2005EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<2005>::reference") align 8 %12, ptr noundef nonnull align 8 dereferenceable(256) %37, i64 noundef %39)
          to label %40 unwind label %45

40:                                               ; preds = %34
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm2005EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %12, i1 noundef zeroext true) #4
  call void @_ZNSt6bitsetILm2005EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  br label %42

42:                                               ; preds = %40
  %43 = load i32, ptr %11, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %11, align 4, !tbaa !5
  br label %25, !llvm.loop !11

45:                                               ; preds = %34
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %9, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %183

49:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %132, %49
  %51 = load i32, ptr %13, align 4, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %136

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %56 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %56, ptr %15, align 4, !tbaa !5
  br label %57

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

61:                                               ; preds = %57
  store i32 8, ptr %14, align 4
  br label %91

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %63 = load i32, ptr %15, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %64) #4
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  invoke void @_ZNSt6bitsetILm2005EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<2005>::reference") align 8 %16, ptr noundef nonnull align 8 dereferenceable(256) %65, i64 noundef %67)
          to label %68 unwind label %83

68:                                               ; preds = %62
  %69 = call noundef zeroext i1 @_ZNKSt6bitsetILm2005EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  call void @_ZNSt6bitsetILm2005EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  br i1 %69, label %70, label %87

70:                                               ; preds = %68
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %72) #4
  %74 = load i32, ptr %15, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %75) #4
  call void @_ZSt4swapISt6bitsetILm2005EEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 8 dereferenceable(256) %73, ptr noundef nonnull align 8 dereferenceable(256) %76) #4
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %78) #4
  %80 = load i32, ptr %15, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %81) #4
  call void @_ZSt4swapISt6bitsetILm2005EEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 8 dereferenceable(256) %79, ptr noundef nonnull align 8 dereferenceable(256) %82) #4
  store i32 8, ptr %14, align 4
  br label %91

83:                                               ; preds = %62
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %9, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %135

87:                                               ; preds = %68
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %15, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %15, align 4, !tbaa !5
  br label %57, !llvm.loop !13

91:                                               ; preds = %70, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %92

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %93 = load i32, ptr %13, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %17, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %128, %92
  %96 = load i32, ptr %17, align 4, !tbaa !5
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %131

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %101 = load i32, ptr %17, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %102) #4
  %104 = load i32, ptr %13, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  invoke void @_ZNSt6bitsetILm2005EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<2005>::reference") align 8 %18, ptr noundef nonnull align 8 dereferenceable(256) %103, i64 noundef %105)
          to label %106 unwind label %123

106:                                              ; preds = %100
  %107 = call noundef zeroext i1 @_ZNKSt6bitsetILm2005EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  call void @_ZNSt6bitsetILm2005EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  br i1 %107, label %108, label %127

108:                                              ; preds = %106
  %109 = load i32, ptr %13, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %110) #4
  %112 = load i32, ptr %17, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %113) #4
  %115 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6bitsetILm2005EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(256) %114, ptr noundef nonnull align 8 dereferenceable(256) %111) #4
  %116 = load i32, ptr %13, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %117) #4
  %119 = load i32, ptr %17, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %120) #4
  %122 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6bitsetILm2005EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(256) %121, ptr noundef nonnull align 8 dereferenceable(256) %118) #4
  br label %127

123:                                              ; preds = %100
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %9, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %135

127:                                              ; preds = %108, %106
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %17, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %17, align 4, !tbaa !5
  br label %95, !llvm.loop !14

131:                                              ; preds = %99
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %13, align 4, !tbaa !5
  br label %50, !llvm.loop !15

135:                                              ; preds = %123, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %183

136:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %137 = load i32, ptr %5, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1
  store i32 %138, ptr %19, align 4, !tbaa !5
  br label %139

139:                                              ; preds = %176, %136
  %140 = load i32, ptr %19, align 4, !tbaa !5
  %141 = icmp sge i32 %140, 0
  br i1 %141, label %143, label %142

142:                                              ; preds = %139
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %179

143:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %144 = load i32, ptr %19, align 4, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %20, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %172, %143
  %147 = load i32, ptr %20, align 4, !tbaa !5
  %148 = load i32, ptr %5, align 4, !tbaa !5
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  store i32 17, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %175

151:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %152 = load i32, ptr %19, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %153) #4
  %155 = load i32, ptr %20, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  invoke void @_ZNSt6bitsetILm2005EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<2005>::reference") align 8 %21, ptr noundef nonnull align 8 dereferenceable(256) %154, i64 noundef %156)
          to label %157 unwind label %167

157:                                              ; preds = %151
  %158 = call noundef zeroext i1 @_ZNKSt6bitsetILm2005EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #4
  call void @_ZNSt6bitsetILm2005EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  br i1 %158, label %159, label %171

159:                                              ; preds = %157
  %160 = load i32, ptr %20, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %161) #4
  %163 = load i32, ptr %19, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %164) #4
  %166 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6bitsetILm2005EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(256) %165, ptr noundef nonnull align 8 dereferenceable(256) %162) #4
  br label %171

167:                                              ; preds = %151
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %9, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %183

171:                                              ; preds = %159, %157
  br label %172

172:                                              ; preds = %171
  %173 = load i32, ptr %20, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %20, align 4, !tbaa !5
  br label %146, !llvm.loop !16

175:                                              ; preds = %150
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %19, align 4, !tbaa !5
  %178 = add nsw i32 %177, -1
  store i32 %178, ptr %19, align 4, !tbaa !5
  br label %139, !llvm.loop !17

179:                                              ; preds = %142
  store i1 true, ptr %7, align 1
  store i32 1, ptr %14, align 4
  %180 = load i1, ptr %7, align 1
  br i1 %180, label %182, label %181

181:                                              ; preds = %179
  call void @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %182

182:                                              ; preds = %181, %179
  ret void

183:                                              ; preds = %167, %135, %45
  call void @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  br label %184

184:                                              ; preds = %183, %30
  %185 = load ptr, ptr %9, align 8
  %186 = load i32, ptr %10, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188
}

; 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 @_ZNSaISt6bitsetILm2005EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(256), 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) #1

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6bitsetILm2005EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::bitset<2005>, std::allocator<std::bitset<2005>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::bitset<2005>, std::allocator<std::bitset<2005>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::bitset<2005>, std::allocator<std::bitset<2005>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::bitset<2005>, std::allocator<std::bitset<2005>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::bitset<2005>::reference" = type { ptr, i64 }

@z = external dso_local global { [32 x i64] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7inverseiSt6vectorISt6bitsetILm2005EESaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::bitset<2005>::reference", align 8
  %6 = alloca %"class.std::bitset<2005>::reference", align 8
  %7 = alloca %"class.std::bitset<2005>::reference", align 8
  %8 = alloca %"class.std::bitset<2005>::reference", align 8
  %9 = sext i32 %1 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  call void @_ZNSaISt6bitsetILm2005EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %9, ptr noundef nonnull align 8 dereferenceable(256) @z, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %10 unwind label %12

10:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorISt6bitsetILm2005EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  %11 = icmp sgt i32 %1, 0
  br i1 %11, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %10
  %wide.trip.count = zext nneg i32 %1 to i64
  br label %.lr.ph

.preheader52:                                     ; preds = %.lr.ph
  br i1 %11, label %.preheader50.preheader, label %._crit_edge

.preheader50.preheader:                           ; preds = %.preheader52
  %wide.trip.count81 = zext nneg i32 %1 to i64
  br label %.preheader50

12:                                               ; preds = %3
  %13 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6bitsetILm2005EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  resume { ptr, i32 } %13

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %14 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #4
  call void @_ZNSt6bitsetILm2005EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<2005>::reference") align 8 %5, ptr noundef nonnull align 8 dereferenceable(256) %14, i64 noundef %indvars.iv)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm2005EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %5, i1 noundef zeroext true) #4
  call void @_ZNSt6bitsetILm2005EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader52, label %.lr.ph, !llvm.loop !5

.loopexit49:                                      ; preds = %36, %.loopexit51
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond82.not = icmp eq i64 %indvars.iv.next67, %wide.trip.count81
  br i1 %exitcond82.not, label %.preheader48, label %.preheader50, !llvm.loop !7

.preheader50:                                     ; preds = %.preheader50.preheader, %.loopexit49
  %indvars.iv73 = phi i64 [ 1, %.preheader50.preheader ], [ %indvars.iv.next74, %.loopexit49 ]
  %indvars.iv66 = phi i64 [ 0, %.preheader50.preheader ], [ %indvars.iv.next67, %.loopexit49 ]
  br label %18

.preheader48:                                     ; preds = %.loopexit49
  br i1 %11, label %.preheader.preheader, label %._crit_edge

.preheader.preheader:                             ; preds = %.preheader48
  %16 = zext nneg i32 %1 to i64
  br label %.preheader

17:                                               ; preds = %18
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %exitcond72.not = icmp eq i64 %indvars.iv.next69, %wide.trip.count81
  br i1 %exitcond72.not, label %.loopexit51, label %18, !llvm.loop !8

18:                                               ; preds = %.preheader50, %17
  %indvars.iv68 = phi i64 [ %indvars.iv66, %.preheader50 ], [ %indvars.iv.next69, %17 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %19 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv68) #4
  call void @_ZNSt6bitsetILm2005EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<2005>::reference") align 8 %6, ptr noundef nonnull align 8 dereferenceable(256) %19, i64 noundef %indvars.iv66)
  %20 = call noundef zeroext i1 @_ZNKSt6bitsetILm2005EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @_ZNSt6bitsetILm2005EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br i1 %20, label %21, label %17

21:                                               ; preds = %18
  %22 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv66) #4
  %23 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv68) #4
  call void @_ZSt4swapISt6bitsetILm2005EEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 8 dereferenceable(256) %22, ptr noundef nonnull align 8 dereferenceable(256) %23) #4
  %24 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv66) #4
  %25 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv68) #4
  call void @_ZSt4swapISt6bitsetILm2005EEENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SE_(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef nonnull align 8 dereferenceable(256) %25) #4
  br label %.loopexit51

.loopexit51:                                      ; preds = %17, %21
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %26 = icmp slt i64 %indvars.iv.next67, %9
  br i1 %26, label %.lr.ph57, label %.loopexit49

.lr.ph57:                                         ; preds = %.loopexit51, %36
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %36 ], [ %indvars.iv73, %.loopexit51 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %27 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv75) #4
  call void @_ZNSt6bitsetILm2005EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<2005>::reference") align 8 %7, ptr noundef nonnull align 8 dereferenceable(256) %27, i64 noundef %indvars.iv66)
  %28 = call noundef zeroext i1 @_ZNKSt6bitsetILm2005EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @_ZNSt6bitsetILm2005EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br i1 %28, label %29, label %36

29:                                               ; preds = %.lr.ph57
  %30 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv66) #4
  %31 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv75) #4
  %32 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6bitsetILm2005EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(256) %31, ptr noundef nonnull align 8 dereferenceable(256) %30) #4
  %33 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv66) #4
  %34 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv75) #4
  %35 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6bitsetILm2005EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(256) %34, ptr noundef nonnull align 8 dereferenceable(256) %33) #4
  br label %36

36:                                               ; preds = %.lr.ph57, %29
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next76, %wide.trip.count81
  br i1 %exitcond79.not, label %.loopexit49, label %.lr.ph57, !llvm.loop !9

.loopexit:                                        ; preds = %45, %.preheader
  %37 = icmp sgt i64 %indvars.iv83, 1
  br i1 %37, label %.preheader, label %._crit_edge, !llvm.loop !10

.preheader:                                       ; preds = %.preheader.preheader, %.loopexit
  %indvars.iv83 = phi i64 [ %16, %.preheader.preheader ], [ %indvars.iv.next84, %.loopexit ]
  %indvars.iv.next84 = add nsw i64 %indvars.iv83, -1
  %38 = icmp slt i64 %indvars.iv83, %9
  br i1 %38, label %.lr.ph60, label %.loopexit

.lr.ph60:                                         ; preds = %.preheader, %45
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %45 ], [ %indvars.iv83, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %39 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next84) #4
  call void @_ZNSt6bitsetILm2005EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<2005>::reference") align 8 %8, ptr noundef nonnull align 8 dereferenceable(256) %39, i64 noundef %indvars.iv85)
  %40 = call noundef zeroext i1 @_ZNKSt6bitsetILm2005EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @_ZNSt6bitsetILm2005EE9referenceD2Ev(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 %41, label %45

41:                                               ; preds = %.lr.ph60
  %42 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv85) #4
  %43 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv.next84) #4
  %44 = call noundef nonnull align 8 dereferenceable(256) ptr @_ZNSt6bitsetILm2005EEeOERKS0_(ptr noundef nonnull align 8 dereferenceable(256) %43, ptr noundef nonnull align 8 dereferenceable(256) %42) #4
  br label %45

45:                                               ; preds = %.lr.ph60, %41
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %46 = trunc nuw i64 %indvars.iv.next86 to i32
  %47 = icmp slt i32 %46, %1
  br i1 %47, label %.lr.ph60, label %.loopexit, !llvm.loop !11

._crit_edge:                                      ; preds = %.loopexit, %10, %.preheader52, %.preheader48
  ret void
}

; 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 @_ZNSaISt6bitsetILm2005EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt6bitsetILm2005EESaIS1_EEC2EmRKS1_RKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 8 dereferenceable(256), 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) #1

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorISt6bitsetILm2005EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}
!11 = distinct !{!11, !6}


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